[arm] Eliminate TARGET_FPU_NAME
[gcc.git] / gcc / ChangeLog
1 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
2
3 * arm.h (TARGET_FPU_NAME): Delete.
4 * arm.c (arm_identify_fpu_from_isa): New function.
5 (arm_declare_function_name): Use it to get the name for the FPU.
6
7 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
8
9 * arm-protos.h: Include sbitmap.h
10 (arm_configure_build_target): Make public.
11 * arm.c (arm_configure_build_target): Now not static.
12 (arm_valid_target_attribute_rec): Move internal option check to...
13 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
14 active target.
15 (arm_override_options_after_change): Call arm_configure_build_target.
16 (isa_all_fpubits): Renamed from isa_fpubits.
17 (arm_option_restore): New function.
18 (TARGET_OPTION_RESTORE): Register it.
19 (arm_configure_build_target): Initialize the FPU capability bits in
20 the isa.
21 (arm_option_override): Move the code that forces the setting of the
22 FPU option before the call to arm_configure_build_target.
23 * arm.opt (march): Mark as Save.
24 (mcpu, mtune): Likewise.
25 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
26 after pragmas change the target options.
27
28 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
29
30 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
31 fP_dbl, fp_d32 and fp_crypto.
32 (ISA_ALL_FPU): Add all the new bits.
33 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
34 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
35 * arm-fpus.def: Add ISA features to all FPUs.
36 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
37 * arm.c (all_fpus): Initialize it.
38 * arm-tables.opt: Regenerated.
39
40 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
41
42 * arm.h (FPU_FL_VFPv2) New feature bit.
43 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
44 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
45 macros.
46 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
47 (TARGET_FPU_REV): Delete.
48 (TARGET_VFP3): Use feature bits.
49 (TARGET_VFP5): Likewise.
50 (TARGET_FMA): Likewise.
51 (TARGET_FPU_ARMV8): Likewise.
52 (struct arm_fpu_desc): Delete rev field.
53 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
54 * arm.c (all_fpus): Delete rev field.
55
56 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
57
58 * arm.h (vfp_reg_type): Delete.
59 (TARGET_FPU_REGS): Delete.
60 (arm_fpu_desc): Delete regs field.
61 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
62 values.
63 (FPU_FL_DBL, FPU_FL_D32): Define.
64 (TARGET_VFPD32): Use feature test.
65 (TARGET_VFP_SINGLE): Likewise.
66 (TARGET_VFP_DOUBLE): Likewise.
67 * arm-fpus.def: Update all entries for new feature bits.
68 * arm.c (all_fpus): Update initializer macro.
69 (arm_can_inline_p): Remove test on fpu regs.
70
71 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
72
73 * arm.h (arm_fp_model): Delete.
74
75 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
76
77 * arm-cores.def: Remove FLAGS field from all core definitions.
78 * arm-arches.def: Likewise.
79 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
80 ARM_CORES macro.
81 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
82 * arm-protos.h (FL_*): Delete.
83 (arm_feature_set): Delete.
84 (ARM_FSET_*): Delete.
85 * arm.c (struct processors): Delete flags field.
86 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
87 (all architectures): Likewise.
88
89 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
90
91 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
92 Initialize it.
93 (arm_arch_core_flag): Delete flags field.
94 (arm_arch_core_flags): Don't initialize flags field.
95 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
96 (arm_target_thumb_only): Use new isa bits arrays.
97
98 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
99
100 * arm-protos.h (insn_flags): Delete declaration.
101 (arm_arch7ve): Declare.
102 * arm.c (insn_flags): Delete.
103 (arm_arch7ve): New variable.
104 (arm_selected_cpu): Delete.
105 (arm_option_check_internal): Use new ISA bitmap.
106 (arm_option_override_internal): Likewise.
107 (arm_configure_build_target): Declare arm_selected_cpu locally.
108 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
109 Rearrange variable intialization by general function.
110 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
111
112 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
113
114 * arm-builtins.c: Include sbitmap.h.
115 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
116 available features in the current target.
117 (struct builtin_description): Change type of feature field.
118 (IWMMXT_BUILTIN): Use the isa_features types.
119 (IWMMXT2_BUILTIN): Likewise.
120 (IWMMXT_BUILTIN2): Likewise.
121 (IWMMXT2_BUILTIN2): Likewise.
122 (CRC32_BUILTIN): Likewise.
123 (CRYPTO_BUILTIN): Likewise.
124 (iwmmx_builtin): Likewise.
125 (iwmmx2_builtin): Likewise.
126 (arm_iwmmxt_builtin): Check for specific feature bits.
127
128 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
129
130 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
131 (ISA_ALL_QUIRKS): New macro.
132 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
133 * arm.c (isa_quirkbits): New feature-list bitmap.
134 (arm_configure_build_target): Ignore quirk bits when comparing an
135 architecture feature list with a CPU feature list.
136 (arm_option_override): Initialize_isa_quirkbits. If the user has
137 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
138 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
139
140 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
141
142 * arm.c (arm_option_override): Use arm_active_target as source of
143 information for arm_base_arch and arm_arch_name.
144 * (arm_file_start): Use arm_active_target for core name.
145
146 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
147
148 * arm.c (arm_selected_tune): Delete static variable.
149 (arm_selected_arch): Likewise.
150 (arm_configure_build_target): Declare local versions of arm_selected
151 target and arm_selected_arch. Initialize more fields in target
152 data structure.
153 (arm_option_override): Use arm_active_target instead of
154 arm_selected_tune and arm_selected_arch.
155 (asm_file_start): Use arm_active_target.
156
157 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
158
159 * arm-protos.h (arm_build_target): New structure.
160 (arm_active_target): Declare it.
161 * arm.c (arm_active_target): New variable.
162 (bitmap_popcount): New function.
163 (feature_count): Delete.
164 (arm_initialize_isa): New function.
165 isa_fpubits): New variable.
166 (arm_configure_build_target): New function.
167 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
168 Use arm_configure_build_target.
169
170 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
171
172 * arm-isa.h: New file.
173 * arm-protos.h: Include it.
174 * arm-arches.def: Add new ISA field to all entries. Drop bogus
175 armv8.1-a+crc architecture.
176 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
177 * arm-opts.h (enum processor_type): Adjust for new field.
178 * arm.c (struct processors): New field 'isa_bits'.
179 (all_cores, all_architectures): Initialize new field.
180 * arm-tables.opt: Regenerated.
181 * arm-tune.md: Regenerated.
182
183 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
184
185 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
186 tuning properties from architectural FLAGS field.
187 * arm-cores.def (ARM_CORE): Likewise.
188 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
189 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
190 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
191 (FL_TUNE): Remove deleted elements.
192 (tune_flags): Convert type to unsigned int.
193 * arm.c (struct processors): Add new field tune_flags.
194 (all_cores, all_arches): Initialize it.
195 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
196 for deciding when we should have slow multiply operations.
197
198 2016-12-14 Martin Sebor <msebor@redhat.com>
199
200 PR middle-end/78519
201 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
202 (format_directive): Diagnose null pointer arguments.
203 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
204 pointers. Correct location of null format string in diagnostics.
205
206 2016-12-14 David Malcolm <dmalcolm@redhat.com>
207
208 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
209 (s-selftest): Add dependency on the selftests data directory.
210 * common.opt (fself-test): Rename to...
211 (fself-test=): ...this, documenting the meaning of the argument.
212 * selftest-run-tests.c (along): Likewise.
213 * selftest-run-tests.c: Include "options.h".
214 (selftest::run_tests): Initialize selftest::path_to_selftest_files
215 from flag_self_test.
216 * selftest.c (selftest::path_to_selftest_files): New global.
217 (selftest::locate_file): New function.
218 (selftest::test_locate_file): New function.
219 (selftest_c_tests): Likewise.
220 (selftest::selftest_c_tests): Call test_locate_file.
221 * selftest.h (selftest::locate_file): New decl.
222 (selftest::path_to_selftest_files): New decl.
223
224 2016-12-14 Andrew Pinski <apinski@cavium.com>
225
226 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
227 of the cores.
228 (thunderx): Update to include LSE by default.
229 (thunderxt88p1): New core.
230 (thunderxt88): New core.
231 (thunderxt81): New core.
232 (thunderxt83): New core.
233 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
234 Add variant field.
235 (ALL_VARIANTS): New define.
236 (AARCH64_CORE): Support VARIANT operand.
237 (cpu_data): Likewise.
238 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
239 Combine the arch and single core case and support variant searching.
240 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
241 Add VARIANT operand.
242 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
243 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
244 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
245 * config/aarch64/aarch64-tune.md: Regenerate.
246 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
247 thunderxt88p1, thunderxt81, thunderxt83 as available options.
248
249 2016-12-14 Martin Jambor <mjambor@suse.cz>
250
251 * omp-offload.c: Fix coding style.
252 * omp-expand.c: Likewise.
253 * omp-general.c: Likewise.
254 * omp-grid.c: Likewise.
255 * omp-low.c: Fix coding style of parts touched by the
256 previous splitting patch.
257
258 2016-12-14 Martin Jambor <mjambor@suse.cz>
259
260 * omp-general.h: New file.
261 * omp-general.c: New file.
262 * omp-expand.h: Likewise.
263 * omp-expand.c: Likewise.
264 * omp-offload.h: Likewise.
265 * omp-offload.c: Likewise.
266 * omp-grid.c: Likewise.
267 * omp-grid.c: Likewise.
268 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
269 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
270 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
271 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
272 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
273 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
274 (omp_find_combined_for): Declare.
275 (find_omp_clause): Renamed to omp_find_clause and moved to
276 omp-general.h.
277 (free_omp_regions): Renamed to omp_free_regions and moved to
278 omp-expand.h.
279 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
280 to omp-general.h.
281 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
282 omp-general.h.
283 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
284 moved to omp-general.h.
285 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
286 omp-general.h.
287 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
288 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
289 omp-general.c.
290 (omp_expand_local): Moved to omp-expand.h.
291 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
292 omp-expand.h.
293 (omp_finish_file): Moved to omp-offload.h.
294 (default_goacc_validate_dims): Renamed to
295 oacc_default_goacc_validate_dims and moved to omp-offload.h.
296 (offload_funcs, offload_vars): Moved to omp-offload.h.
297 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
298 (omp_region): Moved to omp-expand.c.
299 (omp_for_data_loop): Moved to omp-general.h.
300 (omp_for_data): Likewise.
301 (oacc_loop): Moved to omp-offload.c.
302 (oacc_loop_flags): Moved to omp-general.h.
303 (offload_funcs, offload_vars): Moved to omp-offload.c.
304 (root_omp_region): Moved to omp-expand.c.
305 (omp_any_child_fn_dumped): Likewise.
306 (find_omp_clause): Renamed to omp_find_clause and moved to
307 omp-general.c.
308 (is_combined_parallel): Moved to omp-expand.c.
309 (is_reference): Renamed to omp_is_reference and and moved to
310 omp-general.c.
311 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
312 to omp-general.c.
313 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
314 and moved to omp-general.c.
315 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
316 omp-general.c.
317 (workshare_safe_to_combine_p): Moved to omp-expand.c.
318 (omp_adjust_chunk_size): Likewise.
319 (get_ws_args_for): Likewise.
320 (get_base_type): Removed.
321 (dump_omp_region): Moved to omp-expand.c.
322 (debug_omp_region): Likewise.
323 (debug_all_omp_regions): Likewise.
324 (new_omp_region): Likewise.
325 (free_omp_region_1): Likewise.
326 (free_omp_regions): Renamed to omp_free_regions and moved to
327 omp-expand.c.
328 (find_combined_for): Renamed to omp_find_combined_for, made global.
329 (build_omp_barrier): Renamed to omp_build_barrier and moved to
330 omp-general.c.
331 (omp_max_vf): Moved to omp-general.c.
332 (omp_max_simt_vf): Likewise.
333 (gimple_build_cond_empty): Moved to omp-expand.c.
334 (parallel_needs_hsa_kernel_p): Likewise.
335 (expand_omp_build_assign): Moved declaration to omp-expand.c.
336 (expand_parallel_call): Moved to omp-expand.c.
337 (expand_cilk_for_call): Likewise.
338 (expand_task_call): Likewise.
339 (vec2chain): Likewise.
340 (remove_exit_barrier): Likewise.
341 (remove_exit_barriers): Likewise.
342 (optimize_omp_library_calls): Likewise.
343 (expand_omp_regimplify_p): Likewise.
344 (expand_omp_build_assign): Likewise.
345 (expand_omp_taskreg): Likewise.
346 (oacc_collapse): Likewise.
347 (expand_oacc_collapse_init): Likewise.
348 (expand_oacc_collapse_vars): Likewise.
349 (expand_omp_for_init_counts): Likewise.
350 (expand_omp_for_init_vars): Likewise.
351 (extract_omp_for_update_vars): Likewise.
352 (expand_omp_ordered_source): Likewise.
353 (expand_omp_ordered_sink): Likewise.
354 (expand_omp_ordered_source_sink): Likewise.
355 (expand_omp_for_ordered_loops): Likewise.
356 (expand_omp_for_generic): Likewise.
357 (expand_omp_for_static_nochunk): Likewise.
358 (find_phi_with_arg_on_edge): Likewise.
359 (expand_omp_for_static_chunk): Likewise.
360 (expand_cilk_for): Likewise.
361 (expand_omp_simd): Likewise.
362 (expand_omp_taskloop_for_outer): Likewise.
363 (expand_omp_taskloop_for_inner): Likewise.
364 (expand_oacc_for): Likewise.
365 (expand_omp_for): Likewise.
366 (expand_omp_sections): Likewise.
367 (expand_omp_single): Likewise.
368 (expand_omp_synch): Likewise.
369 (expand_omp_atomic_load): Likewise.
370 (expand_omp_atomic_store): Likewise.
371 (expand_omp_atomic_fetch_op): Likewise.
372 (expand_omp_atomic_pipeline): Likewise.
373 (expand_omp_atomic_mutex): Likewise.
374 (expand_omp_atomic): Likewise.
375 (oacc_launch_pack): and moved to omp-general.c, made public.
376 (OACC_FN_ATTRIB): Likewise.
377 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
378 to omp-general.c.
379 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
380 omp-general.c.
381 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
382 moved to omp-general.c.
383 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
384 omp-general.c.
385 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
386 (oacc_fn_attrib_level): Moved to omp-offload.c.
387 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
388 omp-general.c.
389 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
390 omp-general.c.
391 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
392 (grid_launch_attributes_trees): Likewise.
393 (grid_attr_trees): Likewise.
394 (grid_create_kernel_launch_attr_types): Likewise.
395 (grid_insert_store_range_dim): Likewise.
396 (grid_get_kernel_launch_attributes): Likewise.
397 (get_target_argument_identifier_1): Likewise.
398 (get_target_argument_identifier): Likewise.
399 (get_target_argument_value): Likewise.
400 (push_target_argument_according_to_value): Likewise.
401 (get_target_arguments): Likewise.
402 (expand_omp_target): Likewise.
403 (grid_expand_omp_for_loop): Moved to omp-grid.c.
404 (grid_arg_decl_map): Likewise.
405 (grid_remap_kernel_arg_accesses): Likewise.
406 (grid_expand_target_grid_body): Likewise.
407 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
408 (build_omp_regions_1): Moved to omp-expand.c.
409 (build_omp_regions_root): Likewise.
410 (omp_expand_local): Likewise.
411 (build_omp_regions): Likewise.
412 (execute_expand_omp): Likewise.
413 (pass_data_expand_omp): Likewise.
414 (pass_expand_omp): Likewise.
415 (make_pass_expand_omp): Likewise.
416 (pass_data_expand_omp_ssa): Likewise.
417 (pass_expand_omp_ssa): Likewise.
418 (make_pass_expand_omp_ssa): Likewise.
419 (grid_lastprivate_predicate): Renamed to
420 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
421 (grid_prop): Moved to omp-grid.c.
422 (GRID_MISSED_MSG_PREFIX): Likewise.
423 (grid_safe_assignment_p): Likewise.
424 (grid_seq_only_contains_local_assignments): Likewise.
425 (grid_find_single_omp_among_assignments_1): Likewise.
426 (grid_find_single_omp_among_assignments): Likewise.
427 (grid_find_ungridifiable_statement): Likewise.
428 (grid_parallel_clauses_gridifiable): Likewise.
429 (grid_inner_loop_gridifiable_p): Likewise.
430 (grid_dist_follows_simple_pattern): Likewise.
431 (grid_gfor_follows_tiling_pattern): Likewise.
432 (grid_call_permissible_in_distribute_p): Likewise.
433 (grid_handle_call_in_distribute): Likewise.
434 (grid_dist_follows_tiling_pattern): Likewise.
435 (grid_target_follows_gridifiable_pattern): Likewise.
436 (grid_remap_prebody_decls): Likewise.
437 (grid_var_segment): Likewise.
438 (grid_mark_variable_segment): Likewise.
439 (grid_copy_leading_local_assignments): Likewise.
440 (grid_process_grid_body): Likewise.
441 (grid_eliminate_combined_simd_part): Likewise.
442 (grid_mark_tiling_loops): Likewise.
443 (grid_mark_tiling_parallels_and_loops): Likewise.
444 (grid_process_kernel_body_copy): Likewise.
445 (grid_attempt_target_gridification): Likewise.
446 (grid_gridify_all_targets_stmt): Likewise.
447 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
448 and moved to omp-grid.c, made public.
449 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
450 omp-expand.c.
451 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
452 (omp_finish_file): Likewise.
453 (oacc_thread_numbers): Likewise.
454 (oacc_xform_loop): Likewise.
455 (oacc_default_dims, oacc_min_dims): Likewise.
456 (oacc_parse_default_dims): Likewise.
457 (oacc_validate_dims): Likewise.
458 (new_oacc_loop_raw): Likewise.
459 (new_oacc_loop_outer): Likewise.
460 (new_oacc_loop): Likewise.
461 (new_oacc_loop_routine): Likewise.
462 (finish_oacc_loop): Likewise.
463 (free_oacc_loop): Likewise.
464 (dump_oacc_loop_part): Likewise.
465 (dump_oacc_loop): Likewise.
466 (debug_oacc_loop): Likewise.
467 (oacc_loop_discover_walk): Likewise.
468 (oacc_loop_sibling_nreverse): Likewise.
469 (oacc_loop_discovery): Likewise.
470 (oacc_loop_xform_head_tail): Likewise.
471 (oacc_loop_xform_loop): Likewise.
472 (oacc_loop_process): Likewise.
473 (oacc_loop_fixed_partitions): Likewise.
474 (oacc_loop_auto_partitions): Likewise.
475 (oacc_loop_partition): Likewise.
476 (default_goacc_fork_join): Likewise.
477 (default_goacc_reduction): Likewise.
478 (execute_oacc_device_lower): Likewise.
479 (default_goacc_validate_dims): Likewise.
480 (default_goacc_dim_limit): Likewise.
481 (pass_data_oacc_device_lower): Likewise.
482 (pass_oacc_device_lower): Likewise.
483 (make_pass_oacc_device_lower): Likewise.
484 (execute_omp_device_lower): Likewise.
485 (pass_data_omp_device_lower): Likewise.
486 (pass_omp_device_lower): Likewise.
487 (make_pass_omp_device_lower): Likewise.
488 (pass_data_omp_target_link): Likewise.
489 (pass_omp_target_link): Likewise.
490 (find_link_var_op): Likewise.
491 (pass_omp_target_link::execute): Likewise.
492 (make_pass_omp_target_link): Likewise.
493 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
494 and omp-grid.o.
495 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
496 omp-low.h.
497 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
498 (fold_internal_goacc_dim): Adjusted calls to
499 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
500 * gimplify.c: Include omp-low.h.
501 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
502 its new name.
503 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
504 name.
505 (gimplify_omp_for): Likewise.
506 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
507 * toplev.c: Include omp-offload.h instead of omp-low.h.
508 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
509 include omp-expand.h.
510 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
511 new name.
512 (make_edges): Adjust the call to free_omp_regions to use its new name.
513 * tree-parloops.c: Include omp-general.h.
514 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
515 its new name.
516 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
517 its new name.
518 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
519 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
520 its new name.
521 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
522 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
523 get_oacc_fn_dim_size to use their new names.
524 * varpool.c: Include omp-offload.h instead of omp-low.h.
525 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
526 ifiles.
527 * config/nvptx/nvptx.c: Include omp-general.c.
528 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
529 its new name.
530 (nvptx_reorg): Likewise.
531 (nvptx_record_offload_symbol): Likewise.
532
533 2016-12-14 Martin Sebor <msebor@redhat.com>
534
535 PR middle-end/78786
536 * gimple-ssa-sprintf.c (target_dir_max): New macro.
537 (get_mpfr_format_length): New function.
538 (format_integer): Use HOST_WIDE_INT instead of int.
539 (format_floating_max): Same.
540 (format_floating): Call get_mpfr_format_length.
541 (format_directive): Use target_dir_max.
542
543 2016-12-14 Jakub Jelinek <jakub@redhat.com>
544
545 PR target/78791
546 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
547 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
548 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
549 SLOT_TEMP.
550
551 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
552
553 PR target/59874
554 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
555 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
556 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
557 (*clzhi2): Ditto.
558
559 2016-12-14 Jakub Jelinek <jakub@redhat.com>
560
561 PR debug/77844
562 * valtrack.c: Include rtl-iter.h.
563 (struct rtx_subst_pair): Add insn field.
564 (propagate_for_debug_subst): If pair->to contains at least 2
565 regs, create a DEBUG_INSN with a debug temp before pair->insn
566 and replace from with the debug temp instead of pair->to.
567 (propagate_for_debug): Initialize p.insn.
568 * combine.c (insn_uid_check): New inline function.
569 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
570 (find_single_use, combine_instructions,
571 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
572 INSN_P.
573
574 2016-12-14 Martin Sebor <msebor@redhat.com>
575
576 PR c/17308
577 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
578 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
579 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
580 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
581 (ATTR_NOTHROW_NONNULL_1_5): Same.
582 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
583 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
584 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
585 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
586 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
587 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
588 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
589 * builtins.c (validate_arg): Add argument. Treat null pointers
590 passed to nonnull arguments as invalid.
591 (validate_arglist): Same.
592 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
593 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
594 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
595 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
596 (initialize_argument_information): Diagnose null pointers passed to
597 arguments declared nonnull.
598 * calls.h (get_nonnull_args): Declared.
599
600 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
601
602 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
603 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
604 instructions.
605 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
606 type constraint registers.
607 (VSr3): Likewise.
608 (FL_CONV): New mode iterator for binary floating types that have a
609 direct conversion from 64-bit integer to floating point.
610 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
611 VEXTU{B,H,W}{L,R}X extract instructions.
612 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
613 extract byte position into the GPR if we are using the
614 VEXTU{B,H,W}{L,R}X extract instructions.
615 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
616 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
617 we can use reg+offset address instructions.
618 (vsx_extract_<mode>_var): Support extracts to GPRs.
619 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
620 insn to combine vector extracts with zero_extend.
621 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
622 extracting a small integer vector element and converting it to a
623 floating point type.
624 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
625 (UNSPEC_XXEXTRACTUW): New unspec.
626 (UNSPEC_XXINSERTW): Likewise.
627 (vextract4b): Add support for the vec_vextract4b built-in
628 function.
629 (vextract4b_internal): Likewise.
630 (vinsert4b): Add support for the vec_insert4b built-in function.
631 Include both a version that inserts element 1 from a V4SI object
632 and one that inserts a DI object.
633 (vinsert4b_internal): Likewise.
634 (vinsert4b_di): Likewise.
635 (vinsert4b_di_internal): Likewise.
636 * config/rs6000/predicates.md (const_0_to_11_operand): New
637 predicate, match 0..11.
638 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
639 type to ternary, not binary.
640 (BU_P9V_64BIT_VSX_3): Likewise.
641 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
642 vec_extract4b non-overloaded built-in functions.
643 (P9V_BUILTIN_VINSERT4B): Likewise.
644 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
645 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
646 3.0 built-in functions.
647 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
648 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
649 vec_insert4b and vec_extract4 built-in functions.
650 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
651 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
652 overloaded support for vec_vinsert4b and vec_extract4b.
653 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
654 the vec_insert4b and vec_extract4b byte number being a constant in
655 the range 0..11.
656 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
657 and vec_extract4b built-in functions.
658 * doc/extend.doc (PowerPC VSX built-in functions): Document
659 vec_insert4b and vec_extract4b.
660
661 2016-12-14 Martin Liska <mliska@suse.cz>
662
663 * gimple-pretty-print.c (dump_probability): New function.
664 (dump_edge_probability): Use the function.
665 (dump_gimple_label): Likewise.
666 (dump_gimple_bb_header): Likewise.
667
668 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
669 Jakub Jelinek <jakub@redhat.com>
670
671 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
672 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
673
674 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
675
676 * lra-constraints.c (process_address_1): Do not attempt to decompose
677 addresses for MEMs that satisfy fixed-form constraints.
678
679 2016-12-14 Richard Biener <rguenther@suse.de>
680
681 PR tree-optimization/78788
682 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
683 (set_and_canonicalize_value_range): Do not drop the above to
684 VARYING.
685
686 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
687
688 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
689 Adjust unaligned load cost.
690
691 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
692
693 PR target/78794
694 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
695 Calculate additional gain for andnot for targets without BMI.
696
697 2016-12-13 Carl Love <cel@us.ibm.com>
698
699 * config/rs6000/rs6000-c.c: Add built-in support for
700 vector float vec_pack (vector double, vector double)
701 vector double vec_sld (vector double, vector double)
702 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
703 4-bit unsigned literal.
704 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
705 * doc/extend.texi: Update the built-in documentation file for the
706 new powerpc vec_pack and vec_sld built-ins.
707
708 2016-12-13 Martin Liska <mliska@suse.cz>
709
710 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
711 (sanopt_optimize): Add new argument.
712 (sanitize_asan_mark_unpoison): New function.
713 (maybe_contains_asan_check): Likewise.
714 (sanitize_asan_mark_poison): Likewise.
715 (pass_sanopt::execute): Call the new functions.
716
717 2016-12-13 Martin Liska <mliska@suse.cz>
718
719 PR tree-optimization/78428
720 * expr.c (store_constructor_field): Add new arguments to the function.
721 (store_constructor): Set up bitregion_end and add gcc_unreachable to
722 fields that have either non-constant size or (and) offset.
723
724 2016-12-13 Marek Polacek <polacek@redhat.com>
725
726 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
727 parameters' type from int to HOST_WIDE_INT.
728 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
729 int to HOST_WIDE_INT.
730 (build_classic_dist_vector_1): Likewise.
731 (add_multivariate_self_dist): Likewise.
732
733 2016-12-13 Michael Matz <matz@suse.de>
734
735 PR tree-optimization/78725
736 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
737 at correct use point.
738
739 2016-12-13 Martin Liska <mliska@suse.cz>
740
741 * asan.c (asan_expand_mark_ifn): Use renamed
742 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
743 * sanitizer.def: Likewise.
744
745 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
746
747 * doc/extend.texi (Half-Precision): Update to document current
748 compiler behaviour.
749
750 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
751
752 * doc/extend.texi (Floating Types): Document availability of
753 _Float16 on ARM/AArch64.
754
755 2016-12-13 Richard Biener <rguenther@suse.de>
756
757 PR tree-optimization/78699
758 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
759 group size.
760
761 2016-12-13 Richard Biener <rguenther@suse.de>
762
763 PR middle-end/78742
764 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
765 * tree-object-size.c (compute_builtin_object_size): Use
766 tree_fits_shwi_p.
767 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
768
769 2016-12-13 Martin Liska <mliska@suse.cz>
770
771 * asan.c (asan_mark_poison_p): Remove.
772 (asan_mark_p): New function.
773 (transform_statements): Use the function.
774 (asan_expand_mark_ifn): Do not use masked enum.
775 * asan.h (enum asan_mark_flags): Declare it via a macro.
776 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
777 argument of ASAN_MARK.
778 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
779 (asan_poison_variable): Likewise.
780
781 2016-12-13 Jakub Jelinek <jakub@redhat.com>
782
783 PR ipa/77905
784 * ipa-pure-const.c (cdtor_p): Return true for
785 DECL_STATIC_{CON,DE}STRUCTOR even when it is
786 DECL_LOOPING_CONST_OR_PURE_P.
787
788 2016-12-12 Jakub Jelinek <jakub@redhat.com>
789
790 PR tree-optimization/78777
791 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
792 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
793
794 PR other/78766
795 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
796 Formatting fix.
797
798 2016-12-12 Martin Sebor <msebor@redhat.com>
799
800 PR middle-end/78622
801 PR middle-end78606
802 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
803 rather than res.bounded.
804 (get_width_and_precision): Set precision to -1 when negative.
805 (adjust_range_for_overflow): New function.
806 (format_integer): Correct the handling of the space, plus, and pound
807 flags, and the special case of zero precision.
808 Always set res.bounded to true unless either precision or width
809 is specified and unknown.
810 Call adjust_range_for_overflow.
811 Avoid use zero as the shortest value when precision is specified
812 but unknown.
813 (format_directive): Remove vestigial quoting. Always inform of
814 argument value or range when it's available.
815 (add_bytes): Correct the computation of boundrange used to
816 decide whether a warning is of a "maybe" or "defnitely" kind.
817
818 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
819
820 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
821
822 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
823
824 PR target/78738
825 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
826 flag_unsafe_math_optimizations.
827 (X87_ENABLE_FLOAT): Ditto.
828
829 2016-12-12 Marek Polacek <polacek@redhat.com>
830
831 PR middle-end/78716
832 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
833 Case 1; check POINTER_TYPE_P instead.
834
835 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
836
837 PR rtl-optimization/78669
838 * ira.c (combine_and_move_insns): When deleting an insn, clear the
839 replace flag for all used regs in that insn.
840
841 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
842
843 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
844 arm_arch_core_flags to ...
845 * common/config/arm/arm-common.c: There.
846
847 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
848
849 * config/sparc/constraints.md (T): Use special memory constraint.
850 (U): Minor tweak.
851 (W): Add TARGET_ARCH64 test.
852 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
853 (*movdf_insn_sp32): Likewise.
854 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
855 conjunction with offsettable memory references.
856
857 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
858
859 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
860 to avoid shared structure error.
861
862 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
863
864 PR target/78695
865 * config/rs6000/rs6000.c (find_alignment_op): Discard from
866 consideration any artificial definition.
867
868 2016-12-11 Iain Sandoe <iain@codesourcery.com>
869
870 * configure.ac (CROSS directory tests): Remove the assumption that
871 Darwin hosts contain suitable target sysroots in "/".
872 * configure: Regenerate.
873
874 2016-12-11 Iain Sandoe <iain@codesourcery.com>
875
876 PR rtl-optimization/71496
877 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
878 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
879 reload_macho_picbase_di): Likewise.
880
881 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
882
883 * config/pa/pa.c (pa_callee_copies): New function.
884 * config/pa/pa.opt (mcaller-copies): New option.
885 * doc/invoke.texi (mcaller-copies): Document option.
886
887 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
888
889 PR target/70799
890 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
891 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
892 Add FIXME comment.
893 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
894 constant shifts larger or equal than 32.
895
896 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
897
898 * config/i386/x86-64.h: Append --32 to the assembler options when
899 -m16 is used on non-glibc systems as well.
900
901 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
902
903 PR target/70118
904 * config/i386/mmintrin.h (__m64_u): New type
905 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
906 Make the allowed unaligned memory access explicit.
907
908 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
909
910 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
911 Generally use cpu generic.
912
913 2016-12-10 Jakub Jelinek <jakub@redhat.com>
914 Marc Glisse <marc.glisse@inria.fr>
915
916 PR tree-optimization/78720
917 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
918 is negative, sign extend to @1's type and than AND with C.
919
920 2016-12-10 Jakub Jelinek <jakub@redhat.com>
921
922 PR fortran/78758
923 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
924 non-zero low bound or non-standard element sizes.
925
926 PR sanitizer/78708
927 * lto-streamer-in.c (input_function): In addition to debug stmts
928 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
929 bit is not enabled.
930
931 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
932
933 * config/rs6000/rs6000-passes.def: New file.
934 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
935 * config/rs6000/rs6000.c (rs6000_option_override): Remove
936 registration of machine-specific passes.
937 (pass_analyze_swaps::clone): New function.
938 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
939
940 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
941
942 PR ipa/78721
943 * ipa-cp.c (propagate_vr_accross_jump_function): Call
944 drop_tree_overflow after fold_convert.
945
946 2016-12-09 Jakub Jelinek <jakub@redhat.com>
947
948 PR target/72742
949 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
950 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
951 condition.
952
953 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
954
955 PR target/78683
956 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
957 GET_MODE_BITSIZE. Return 2.
958 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
959 TARGET_POPCNTD the same as TARGET_CTZ.
960 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
961 (ffs<mode>2): Reimplement.
962
963 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
964
965 PR rtl-optimization/78255
966 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
967 NO_FUNCTION_CSE is true.
968
969 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
970
971 PR ipa/78027
972 * ipa-icf.c (sem_function::parse): Don't process functions with
973 oacc decl attributes, as they may be OpenACC routines.
974
975 2016-12-09 David Malcolm <dmalcolm@redhat.com>
976
977 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
978 pointer.
979
980 2016-12-09 Nathan Sidwell <nathan@acm.org>
981
982 PR C++/78550
983 * convert.c (convert_to_integer_1): Maybe fold conversions to
984 integral types with fewer bits than its mode.
985
986 2016-12-09 Martin Liska <mliska@suse.cz>
987
988 * tree-pretty-print.c (pretty_print_string): Escape non-printable
989 chars in strings.
990
991 2016-12-09 Jakub Jelinek <jakub@redhat.com>
992
993 PR tree-optimization/78726
994 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
995 argument. For lhs uses in debug stmts, don't replace lhs with
996 new_lhs, but with a debug temp set to new_lhs opcode op.
997 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
998 OP down to make_new_ssa_for_def.
999 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1000 stmts_to_fix is empty, if *def has not changed yet. Pass
1001 OPCODE to make_new_ssa_for_all_defs.
1002
1003 2016-12-08 Martin Sebor <msebor@redhat.com>
1004
1005 PR c/78284
1006 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1007 identifier tree nodes.
1008 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1009 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1010 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1011 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1012 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1013 * builtins.c (expand_builtin_alloca): Call
1014 maybe_warn_alloc_args_overflow.
1015 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1016 Add attribute alloc_size.
1017 (alloca): Add attribute alloc_size and returns_nonnull.
1018 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1019 * calls.c (alloc_max_size, operand_signed_p): New functions.
1020 (maybe_warn_alloc_args_overflow): Define.
1021 (initialize_argument_information): Diagnose overflow in functions
1022 declared with attaribute alloc_size.
1023 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1024 -Walloc-size-larger-than.
1025
1026 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1027
1028 PR rtl-optimization/78671
1029 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1030 allocno class.
1031
1032 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1033
1034 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1035 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1036
1037 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1038
1039 PR target/78733
1040 * config/aarch64/aarch64.c (aarch64_classify_address):
1041 Set load_store_pair_p for TImode and TFmode.
1042
1043 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1044
1045 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1046 regno_reg_rtx resizing logic to...
1047 (emit_status::ensure_regno_capacity): ...this new method,
1048 and ensure that the buffers are large enough.
1049 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1050 rather than ggc_vec_alloc.
1051 * function.h (emit_status::ensure_regno_capacity): New method.
1052
1053 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1054
1055 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1056 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1057 * doc/invoke.texi (-fsanitize=kernel-address):
1058 Don't say that it enables -fsanitize-address-use-after-scope.
1059
1060 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1061
1062 PR middle-end/78684
1063 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1064 sign bit for index step of data reference.
1065
1066 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1067
1068 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1069 Handle SYMBOL_SMALL_TLSGD for ILP32.
1070 * config/aarch64/aarch64.md : tlsgd_small modified into
1071 tlsgd_small_<mode> to support SImode and DImode.
1072 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1073 DImode.
1074
1075 2016-12-08 Andrew Pinski <apinski@cavium.com>
1076
1077 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1078 Access the lower part of RTX appropriately.
1079
1080 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1081
1082 * genpreds.c (write_tm_constrs_h): Update for renaming of
1083 rtx_reader_ptr to md_reader_ptr.
1084 (write_tm_preds_h): Likewise.
1085 (write_insn_preds_c): Likewise.
1086 * read-md.c (rtx_reader_ptr): Rename to...
1087 (md_reader_ptr): ...this, and convert from an
1088 rtx_reader * to a md_reader *.
1089 (rtx_reader::set_md_ptr_loc): Rename to...
1090 (md_reader::set_md_ptr_loc): ...this.
1091 (rtx_reader::get_md_ptr_loc): Rename to...
1092 (md_reader::get_md_ptr_loc): ...this.
1093 (rtx_reader::copy_md_ptr_loc): Rename to...
1094 (md_reader::copy_md_ptr_loc): ...this.
1095 (rtx_reader::fprint_md_ptr_loc): Rename to...
1096 (md_reader::fprint_md_ptr_loc): ...this.
1097 (rtx_reader::print_md_ptr_loc): Rename to...
1098 (md_reader::print_md_ptr_loc): ...this.
1099 (rtx_reader::join_c_conditions): Rename to...
1100 (md_reader::join_c_conditions): ...this.
1101 (rtx_reader::fprint_c_condition): ...this.
1102 (rtx_reader::print_c_condition): Rename to...
1103 (md_reader::print_c_condition): ...this.
1104 (fatal_with_file_and_line): Update for renaming of
1105 rtx_reader_ptr to md_reader_ptr.
1106 (rtx_reader::require_char): Rename to...
1107 (md_reader::require_char): ...this.
1108 (rtx_reader::require_char_ws): Rename to...
1109 (md_reader::require_char_ws): ...this.
1110 (rtx_reader::require_word_ws): Rename to...
1111 (md_reader::require_word_ws): ...this.
1112 (rtx_reader::read_char): Rename to...
1113 (md_reader::read_char): ...this.
1114 (rtx_reader::unread_char): Rename to...
1115 (md_reader::unread_char): ...this.
1116 (rtx_reader::peek_char): Rename to...
1117 (md_reader::peek_char): ...this.
1118 (rtx_reader::read_name): Rename to...
1119 (md_reader::read_name): ...this.
1120 (rtx_reader::read_escape): Rename to...
1121 (md_reader::read_escape): ...this.
1122 (rtx_reader::read_quoted_string): Rename to...
1123 (md_reader::read_quoted_string): ...this.
1124 (rtx_reader::read_braced_string): Rename to...
1125 (md_reader::read_braced_string): ...this.
1126 (rtx_reader::read_string): Rename to...
1127 (md_reader::read_string): ...this.
1128 (rtx_reader::read_skip_construct): Rename to...
1129 (md_reader::read_skip_construct): ...this.
1130 (rtx_reader::handle_constants): Rename to...
1131 (md_reader::handle_constants): ...this.
1132 (rtx_reader::traverse_md_constants): Rename to...
1133 (md_reader::traverse_md_constants): ...this.
1134 (rtx_reader::handle_enum): Rename to...
1135 (md_reader::handle_enum): ...this.
1136 (rtx_reader::lookup_enum_type): Rename to...
1137 (md_reader::lookup_enum_type): ...this.
1138 (rtx_reader::traverse_enum_types): Rename to...
1139 (md_reader::traverse_enum_types): ...this.
1140 (rtx_reader::rtx_reader): Rename to...
1141 (md_reader::md_reader): ...this, and update for renaming of
1142 rtx_reader_ptr to md_reader_ptr.
1143 (rtx_reader::~rtx_reader): Rename to...
1144 (md_reader::~md_reader): ...this, and update for renaming of
1145 rtx_reader_ptr to md_reader_ptr.
1146 (rtx_reader::handle_include): Rename to...
1147 (md_reader::handle_include): ...this.
1148 (rtx_reader::handle_file): Rename to...
1149 (md_reader::handle_file): ...this.
1150 (rtx_reader::handle_toplevel_file): Rename to...
1151 (md_reader::handle_toplevel_file): ...this.
1152 (rtx_reader::get_current_location): Rename to...
1153 (md_reader::get_current_location): ...this.
1154 (rtx_reader::add_include_path): Rename to...
1155 (md_reader::add_include_path): ...this.
1156 (rtx_reader::read_md_files): Rename to...
1157 (md_reader::read_md_files): ...this.
1158 * read-md.h (class rtx_reader): Split into...
1159 (class md_reader): ...new class.
1160 (rtx_reader_ptr): Rename to...
1161 (md_reader_ptr): ...this, and convert to a md_reader *.
1162 (class noop_reader): Update base class to be md_reader.
1163 (class rtx_reader): Reintroduce as a subclass of md_reader.
1164 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1165 (read_char): Update for renaming of rtx_reader_ptr to
1166 md_reader_ptr.
1167 (unread_char): Likewise.
1168 * read-rtl.c (rtx_reader_ptr): New global.
1169 (rtx_reader::apply_iterator_to_string): Rename to...
1170 (md_reader::apply_iterator_to_string): ...this.
1171 (rtx_reader::copy_rtx_for_iterators): Rename to...
1172 (md_reader::copy_rtx_for_iterators): ...this.
1173 (rtx_reader::read_conditions): Rename to...
1174 (md_reader::read_conditions): ...this.
1175 (rtx_reader::record_potential_iterator_use): Rename to...
1176 (md_reader::record_potential_iterator_use): ...this.
1177 (rtx_reader::read_mapping): Rename to...
1178 (md_reader::read_mapping): ...this.
1179 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1180 read_rtx_code.
1181 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1182 than directly accessing m_string_obstack.
1183 (rtx_reader::rtx_reader): New ctor.
1184 (rtx_reader::~rtx_reader): New dtor.
1185
1186 2016-12-07 Martin Sebor <msebor@redhat.com>
1187
1188 PR middle-end/77784
1189 PR middle-end/78149
1190 PR middle-end/78138
1191
1192 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1193 functions.
1194 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1195 (check_memop_sizes): Same.
1196 (expand_builtin_memcpy): Call check memop_sizes.
1197 (expand_builtin_mempcpy): Same.
1198 (expand_builtin_memset): Same,
1199 (expand_builtin_bzero): Same.
1200 (expand_builtin_memory_chk): Call check_sizes.
1201 (expand_builtin_strcpy): Same.
1202 (expand_builtin_strncpy): Same.
1203 (maybe_emit_sprintf_chk_warning): Same.
1204 (expand_builtin): Handle strcat and strncat.
1205 (fini_object_sizes): Reset pointers.
1206 (compute_object_size): New function.
1207 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1208 Avoid issuing warnings also issued during built-in expansion.
1209 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1210
1211 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1212
1213 PR target/72717
1214 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1215 V2DImode elements are SUBREG's convert the result into DImode
1216 rather than failing in emit_move_insn.
1217
1218 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1219
1220 * builtins.c (fold_builtin_strstr): Removed.
1221 (fold_builtin_2): Don't call fold_builtin_strstr.
1222 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1223 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1224 (gimple_fold_builtin_strstr): New function.
1225 (gimple_fold_builtin): Call it.
1226 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1227
1228 PR c++/78692
1229 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1230 var to lhs of new_stmt right before noreturn handling rather than to
1231 lhs of e->call_stmt early.
1232
1233 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1234
1235 * read-md.c (rtx_reader::require_char): New method.
1236 (require_char_ws): Convert from function to...
1237 (rtx_reader::require_char_ws): ...method.
1238 (rtx_reader::require_word_ws): New method.
1239 * read-md.h (rtx_reader::require_char): New method decl.
1240 (require_char_ws): Remove global decl in favor of...
1241 (rtx_reader::require_char_ws): ...new method decl.
1242 (rtx_reader::require_word_ws): New method decl.
1243 (rtx_reader::peek_char): New method decl.
1244
1245 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1246
1247 PR rtl-optimization/78617
1248 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1249 registers, also setting hard registers mapped to pseudo registers.
1250
1251 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1252
1253 * cfgexpand.c (pass_expand::execute): Move stack initializations
1254 to rtl_data::init_stack_alignment and call it.
1255 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1256 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1257
1258 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1259
1260 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1261 (ira): Move initialization of crtl->is_leaf earlier.
1262
1263 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1264
1265 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1266 (movtf_aarch64): Likewise.
1267 * config/aarch64/aarch64.c (aarch64_classify_address):
1268 Use correct intersection of offsets.
1269 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1270 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1271 Use 7-bit signed scaled mode for modes > 16 bytes.
1272
1273 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1274
1275 PR rtl-optimization/78561
1276 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1277 constant_pool_empty_p in place of get_pool_size_upper_bound.
1278 (rs6000_stack_info): Likewise.
1279 (rs6000_emit_prologue): Likewise.
1280 (rs6000_elf_declare_function_name): Likewise.
1281 (rs6000_set_up_by_prologue): Likewise.
1282 (rs6000_can_eliminate): Likewise.
1283 * output.h (get_pool_size_upper_bound): Delete.
1284 (constant_pool_empty_p): New.
1285 * varasm.c (get_pool_size_upper_bound): Delete
1286 (constant_pool_empty_p): New.
1287
1288 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1289
1290 PR tree-optimization/78691
1291 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1292 Require integral type for the outer expression.
1293
1294 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1295
1296 * config/aarch64/aarch64.c
1297 (aarch64_builtin_support_vector_misalignment): New.
1298 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1299
1300 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1301
1302 PR bootstrap/78705
1303 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1304 Conditionalize the string comparison on Pmode == DImode.
1305
1306 2016-12-06 Tom de Vries <tom@codesourcery.com>
1307
1308 PR tree-optimization/67955
1309 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1310 (stmt_kills_ref_p): Use it.
1311
1312 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1313
1314 PR middle-end/78700
1315 * calls.c (expand_call): Move back call to prepare_call_address.
1316
1317 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1318
1319 PR target/78658
1320 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1321 ?* constraints for the ISA 3.0 patterns, so the register allocator
1322 is more likely to allocate QImode/HImode to vector registers for
1323 conversion to floating point unless a reload is needed.
1324 (zero_extendhi<mode>2): Likewise.
1325 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1326 first alternative which is converting QImode/HImode to floating
1327 point and the QImode/HImode value is in a vector register, and
1328 does not allocate the second pseudo register. Remove zero
1329 extending into traditional floating point registers, since the
1330 instruction used only works on traditional altivec registers.
1331 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1332
1333 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1334
1335 * config/i386/i386.c: Include print-rtl.h.
1336 (selftest::ix86_test_dumping_memory_blockage): New function.
1337 (selftest::ix86_run_selftests): Call it.
1338 * print-rtl-function.c (print_rtx_function): Create an
1339 rtx_reuse_manager and use it.
1340 * print-rtl.c: Include "rtl-iter.h".
1341 (rtx_writer::rtx_writer): Add reuse_manager param.
1342 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1343 (uses_rtx_reuse_p): New function.
1344 (rtx_reuse_manager::preprocess): New function.
1345 (rtx_reuse_manager::has_reuse_id): New function.
1346 (rtx_reuse_manager::seen_def_p): New function.
1347 (rtx_reuse_manager::set_seen_def): New function.
1348 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1349 prefix the first time in_rtx is seen, and print reuse_rtx
1350 subsequently.
1351 (print_inline_rtx): Supply NULL for new reuse_manager param.
1352 (debug_rtx): Likewise.
1353 (print_rtl): Likewise.
1354 (print_rtl_single): Likewise.
1355 (rtx_writer::print_rtl_single_with_indent): Likewise.
1356 * print-rtl.h: Include bitmap.h when building for host.
1357 (rtx_writer::rtx_writer): Add reuse_manager param.
1358 (rtx_writer::m_rtx_reuse_manager): New field.
1359 (class rtx_reuse_manager): New class.
1360 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1361 param and use it when constructing rtx_writer.
1362 (selftest::test_dumping_rtx_reuse): New function.
1363 (selftest::rtl_tests_c_tests): Call it.
1364 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1365 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1366 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1367 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1368
1369 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1370
1371 PR target/77761
1372 * lra-lives.c (process_bb_lives): Update biggest mode for
1373 implicitly used hard reg.
1374
1375 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1376
1377 * config/i386/predicates.md (general_gr_operand): New predicate.
1378 * config/i386/i386.md (TImode and DImode push_operand splitter):
1379 Use general_gr_operand. Macroize using DWI mode macro.
1380 (TImode and DImode nonimmediate_operand splitter): Use
1381 nonimmediate_gr_operand and general_gr_operand. Macroize using
1382 DWI mode macro.
1383 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1384 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1385 and general_gr_operand.
1386 (XFmode nonimmediate_operand splitter): Ditto.
1387 (DFmode nonimmediate_operand splitter): Ditto.
1388 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1389
1390 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1391
1392 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1393 alphabetical order with respect to other ARMv8 processors.
1394 * config/arm/arm-tables.opt: Regenerate.
1395 * config/arm/arm-tune.md: Likewise.
1396
1397 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1398
1399 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1400 ranges of literal integer arguments.
1401
1402 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1403
1404 PR middle-end/78548
1405 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1406 destroy_predicate_vecs.
1407 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1408
1409 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1410
1411 PR middle-end/78566
1412 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1413 argument type to a pred_chain.
1414 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1415 worklist.
1416 (flatten_out_predicate_chains): Remove.
1417 (uninit_uses_cannot_happen): Rename from
1418 uninit_ops_invalidate_phi_use.
1419 Change logic so that we are checking that the PHI use will
1420 invalidate _ALL_ possibly uninitialized operands.
1421 (is_use_properly_guarded): Rename call to
1422 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1423
1424 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1425
1426 * gcc/config/aarch64/arm_neon.h
1427 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1428 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1429 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1430 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1431 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1432 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1433 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1434 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1435 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1436 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1437 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1438 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1439 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1440 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1441
1442 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR c++/71537
1445 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1446 plus offset is non-zero. For maybe_nonzero_address decl base0,
1447 require indirect_base0.
1448
1449 PR c++/71537
1450 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1451 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1452 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1453 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1454 and arguments have no side-effects, return 0.
1455 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1456
1457 PR c++/71537
1458 * fold-const-call.c (fold_const_call): Handle
1459 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1460
1461 PR tree-optimization/78675
1462 * tree-vect-loop.c (vectorizable_live_operation): For
1463 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1464 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1465
1466 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1467
1468 PR middle-end/78642
1469 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1470 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1471 (copy_insn_1) <CLOBBER>: Likewise.
1472
1473 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1474
1475 PR target/78688
1476 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1477 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1478 comparing signed to unsigned values.
1479 (FUNCTION_ARG_REGNO_P): Likewise.
1480
1481 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1482 Stefan Freudenberger <stefan@reservoir.com>
1483
1484 PR tree-optimization/78646
1485 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1486 addition used for the memory base expression should have the type
1487 of the candidate.
1488
1489 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1490
1491 PR target/71721
1492 * config.gcc (*-*-uclinux*): Enable posix threads.
1493
1494 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1495
1496 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1497 * config/i386/avx512dqintrin.h: Ditto.
1498 * config/i386/avx512fintrin.h: Ditto.
1499 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1500 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1501 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1502 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1503 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1504 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1505 function types.
1506 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1507 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1508 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1509 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1510 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1511 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1512 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1513 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1514 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1515
1516 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1517
1518 * combine.c: Revert r243162.
1519
1520 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1521
1522 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1523 X tests a single bit.
1524
1525 2016-12-05 Nathan Sidwell <nathan@acm.org>
1526
1527 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1528 (diagnostic_action_after_output): ... here.
1529 (diagnostic_report_diagnostic): Call it for non-notes.
1530 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1531 (diagnostic_check_max_errors): Declare.
1532
1533 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1534
1535 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1536 (ENDFILE_SPEC): Likewise.
1537
1538 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1539
1540 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1541 * config/arc/arc.c (arc_unspec_offset): New function.
1542 (arc_finalize_pic): Change.
1543 (arc_emit_call_tls_get_addr): Likewise.
1544 (arc_legitimize_tls_address): Likewise.
1545 (arc_legitimize_pic_address): Likewise.
1546 (insn_is_tls_gd_dispatch): Remove.
1547 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1548 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1549 (tls_gd_dispatch): Likewise.
1550
1551 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1552
1553 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1554 location.
1555
1556 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1557
1558 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1559 (sparc_split_reg_mem_legitimate): ...this.
1560 (sparc_split_reg_mem): Declare.
1561 (sparc_split_mem_reg): Likewise.
1562 (sparc_split_regreg_legitimate): Rename to...
1563 (sparc_split_reg_reg_legitimate): ...this.
1564 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1565 (sparc_split_reg_mem_legitimate): ...this.
1566 (sparc_split_reg_mem): New function.
1567 (sparc_split_mem_reg): Likewise.
1568 (sparc_split_regreg_legitimate): Rename to...
1569 (sparc_split_reg_reg_legitimate): ...this.
1570 (sparc_split_reg_reg): New function.
1571 * config/sparc/sparc.md (lra): Remove "none" value.
1572 (enabled): Adjust to above change.
1573 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1574 (DImode splitters): Adjust to above renamings and use new functions.
1575 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1576 (DFmode splitters): Adjust to above renamings and use new functions.
1577 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1578 constraint in conjunction with e.
1579 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1580 alternative and reorder others.
1581 (VM64:mode splitters): Adjust to above renamings and use new functions.
1582
1583 2016-12-04 Martin Sebor <msebor@redhat.com>
1584
1585 PR c/78668
1586 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1587 identifier tree nodes.
1588 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1589 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1590 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1591 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1592 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1593 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1594 Add attribute alloc_size.
1595 (alloca): Add attribute alloc_size and returns_nonnull.
1596
1597 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1598
1599 PR target/70322
1600 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1601 (dimode_scalar_chain::compute_convert_gain): Ditto.
1602 (dimode_scalar_chain::convert_insn): Ditto.
1603
1604 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1605
1606 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1607 cases to build a lowpart SUBREG.
1608
1609 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1610 David S. Miller <davem@davemloft.net>
1611
1612 * config/sparc/constraints.md (U): Adjust comment.
1613 * config/sparc/sparc.md (lra): New attribute.
1614 (enabled): For base instructions, if the lra attribute is set,
1615 return 1 if it is in keeping with TARGET_LRA.
1616 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1617 constraint and duplicate them with U replaced by r.
1618 (*movdf_insn_sp32): Likewise.
1619 (*mov<VM64:mode>_insn_sp32): Likewise.
1620 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1621
1622 2016-12-02 Jeff Law <law@redhat.com>
1623
1624 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1625 variable main_variant.
1626
1627 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1628
1629 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1630 default on PowerPC linux systems.
1631
1632 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1633
1634 PR rtl-optimization/78638
1635 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1636 GET_MODE (op). Fix this.
1637
1638 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1639
1640 PR bootstrap/78616
1641 * selftest.c (selftest::assert_strndup_eq): Rename to...
1642 (selftest::assert_xstrndup_eq): ...this, and remove call to
1643 strndup.
1644 (selftest::test_strndup): Rename to...
1645 (selftest::test_xstrndup): ...this, updating for above renaming.
1646 (selftest::test_libiberty): Update for renaming.
1647
1648 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1649
1650 PR target/78639
1651 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1652 subversion id 242679 that causes the wrong store instruction to be
1653 generated if a DImode is in an Altivec register using REG+REG
1654 addressing.
1655
1656 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1657
1658 PR target/70322
1659 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1660 and corresponding post-reload splitter.
1661
1662 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1663
1664 * config/aarch64/aarch64.h (machine_function): Add
1665 reg_is_wrapped_separately field.
1666 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1667 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1668 rtx_insn *.
1669 (aarch64_save_callee_saves): Don't save registers that are wrapped
1670 separately.
1671 (aarch64_restore_callee_saves): Don't restore registers that are
1672 wrapped separately.
1673 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1674 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1675 (aarch64_get_separate_components): New function.
1676 (aarch64_get_next_set_bit): Likewise.
1677 (aarch64_components_for_bb): Likewise.
1678 (aarch64_disqualify_components): Likewise.
1679 (aarch64_emit_prologue_components): Likewise.
1680 (aarch64_emit_epilogue_components): Likewise.
1681 (aarch64_set_handled_components): Likewise.
1682 (aarch64_process_components): Likewise.
1683 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1684 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1685 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1686 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1687 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1688 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1689
1690 2016-12-02 Martin Jambor <mjambor@suse.cz>
1691
1692 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1693 pass_build_ssa_passes.
1694
1695 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1696
1697 * config/alpha/alpha.md (exception_receiver): Copy
1698 alpha_gp_ave_rtx return value.
1699
1700 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1701
1702 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1703 for several include directories that may be relative to sysroot.
1704 * config/i386/x-mingw32 (gplus_includedir): Define.
1705 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1706 (native_system_includedir): Likewise.
1707 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1708 override if TARGET_SYSTEM_ROOT is defined.
1709 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1710
1711 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1712
1713 PR target/70322
1714 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1715 (dimode_scalar_chain::compute_convert_gain): Likewise.
1716 (dimode_scalar_chain::convert_insn): Likewise.
1717 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1718 define_insn_and_split.
1719 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1720
1721 PR target/78614
1722 * rtl.c (copy_rtx): Don't clear used flag here.
1723 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1724 is shareable.
1725 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1726 'E' in format, copy all vectors.
1727 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1728 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1729 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1730
1731 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1732 Thomas Preud'homme <thomas.preudhomme@arm.com>
1733
1734 * config/arm/arm-builtins.c (arm_builtins): Define
1735 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1736 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1737 (arm_init_builtins): Handle cmse_nonsecure_caller.
1738 (arm_expand_builtin): Likewise.
1739 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1740
1741 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1742 Thomas Preud'homme <thomas.preudhomme@arm.com>
1743
1744 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1745 (cmse_nonsecure_call_clear_caller_saved): New.
1746 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1747 (arm_function_ok_for_sibcall): Disable sibcalls for
1748 cmse_nonsecure_call.
1749 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1750 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1751 (call_value): Likewise.
1752 (nonsecure_call_internal): New.
1753 (nonsecure_call_value_internal): New.
1754 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1755 (*nonsecure_call_value_reg_thumb1_v5): New.
1756 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1757 (*nonsecure_call_value_reg_thumb2): New.
1758 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1759
1760 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1761 Thomas Preud'homme <thomas.preudhomme@arm.com>
1762
1763 * config/arm/arm.c (gimplify.h): New include.
1764 (arm_handle_cmse_nonsecure_call): New.
1765 (arm_attribute_table): Added cmse_nonsecure_call.
1766 (arm_comp_type_attributes): Deny compatibility of function types
1767 with without the cmse_nonsecure_call attribute.
1768 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1769
1770 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1771 Thomas Preud'homme <thomas.preudhomme@arm.com>
1772
1773 * config/arm/arm.c (output_return_instruction): Clear
1774 registers.
1775 (thumb2_expand_return): Likewise.
1776 (thumb1_expand_epilogue): Likewise.
1777 (thumb_exit): Likewise.
1778 (arm_expand_epilogue): Likewise.
1779 (cmse_nonsecure_entry_clear_before_return): New.
1780 (comp_not_to_clear_mask_str_un): New.
1781 (compute_not_to_clear_mask): New.
1782 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1783 * config/arm/thumb2.md (*thumb2_return): Disable for
1784 cmse_nonsecure_entry functions.
1785 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1786 cmse_nonsecure_entry functions.
1787
1788 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1789 Thomas Preud'homme <thomas.preudhomme@arm.com>
1790
1791 * config/arm/arm.c (use_return_insn): Change to return with bxns
1792 when cmse_nonsecure_entry.
1793 (output_return_instruction): Likewise.
1794 (arm_output_function_prologue): Likewise.
1795 (thumb_pop): Likewise.
1796 (thumb_exit): Likewise.
1797 (thumb2_expand_return): Assert that entry functions always have simple
1798 returns.
1799 (arm_expand_epilogue): Handle entry functions.
1800 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1801 (arm_asm_declare_function_name): New.
1802 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1803 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1804 use arm_asm_declare_function_name.
1805
1806 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1807 Thomas Preud'homme <thomas.preudhomme@arm.com>
1808
1809 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1810 (arm_attribute_table): Added cmse_nonsecure_entry
1811 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1812 (cmse_func_args_or_return_in_stack): New.
1813 (arm_handle_cmse_nonsecure_entry): New.
1814 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1815 (IS_CMSE_ENTRY): Likewise.
1816 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1817
1818 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1819 Thomas Preud'homme <thomas.preudhomme@arm.com>
1820
1821 * config.gcc (extra_headers): Added arm_cmse.h.
1822 * config/arm/arm-arches.def (ARM_ARCH):
1823 (armv8-m): Add FL2_CMSE.
1824 (armv8-m.main): Likewise.
1825 (armv8-m.main+dsp): Likewise.
1826 * config/arm/arm-c.c
1827 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1828 * config/arm/arm-flags.h: Define FL2_CMSE.
1829 * config/arm.c (arm_arch_cmse): New.
1830 (arm_option_override): New error for unsupported cmse target.
1831 * config/arm/arm.h (arm_arch_cmse): New.
1832 * config/arm/arm.opt (mcmse): New.
1833 * config/arm/arm_cmse.h: New file.
1834 * doc/invoke.texi (ARM Options): Add -mcmse.
1835 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1836 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1837
1838 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1839
1840 * config/avr/avr.c: Fix coding rule glitches.
1841
1842 2016-12-02 Martin Jambor <mjambor@suse.cz>
1843
1844 * hsa.c (hsa_callable_function_p): Return false for artificial
1845 functions.
1846
1847 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1848
1849 PR rtl-optimization/78561
1850 * varasm.c (recompute_pool_offsets): New.
1851 (output_constant_pool): Call it.
1852
1853 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1854
1855 PR rtl-optimization/78561
1856 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1857 get_pool_size to get_pool_size_upper_bound.
1858 (rs6000_stack_info): Likewise.
1859 (rs6000_emit_prologue): Likewise.
1860 (rs6000_elf_declare_function_name): Likewise.
1861 (rs6000_set_up_by_prologue): Likewise.
1862 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1863 * output.h (get_pool_size): Rename to...
1864 (get_pool_size_upper_bound): ...This.
1865 * varasm.c (get_pool_size): Rename to...
1866 (get_pool_size_upper_bound): ...This.
1867
1868 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1869
1870 * match.pd: Add new pattern:
1871 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1872
1873 2016-12-02 Nathan Sidwell <nathan@acm.org>
1874
1875 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1876 braces.
1877
1878 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1879
1880 PR middle-end/78328
1881 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1882 VR_ANTI_RANGE.
1883
1884 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1885
1886 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1887 problem.
1888
1889 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1890
1891 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1892 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1893 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1894 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1895 avr_mcu_types.flash_size to compute default value.
1896 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1897 mcu->flash_size to compute value for spec.
1898
1899 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1900
1901 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1902 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1903 about linker description to avoid progmem altogether.
1904 [absdata]: Point to -mabsdata option.
1905
1906 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1907
1908 PR rtl-optimization/78547
1909 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1910 DECL_INCOMING_RTL is not shared.
1911 * config/i386/i386.c (convert_scalars_to_vectors): If any
1912 insns have been converted, adjust all parameter's DEC_RTL and
1913 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1914 TImode.
1915
1916 PR rtl-optimization/78575
1917 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1918 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1919 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1920 affect further iterations.
1921
1922 2016-12-02 Martin Liska <mliska@suse.cz>
1923
1924 PR ipa/78555
1925 * sreal.c (sreal::to_int): Make absolute value before shifting.
1926 (sreal::operator/): Likewise.
1927 (sreal_verify_negative_division): New test.
1928 (void sreal_c_tests): Call the new test.
1929 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1930 SREAL_SIGN macros.
1931 (sreal::normalize_down): Likewise.
1932
1933 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1934
1935 * combine.c (combine_simplify_rtx): Suppress replacement of
1936 "(and (reg) (const_int bit))" with "if_then_else".
1937
1938 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1939
1940 PR target/77822
1941 * config/s390/s390.md ("extzv")
1942 ("*extzv<mode><clobbercc_or_nocc>")
1943 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1944 ("*<risbg_n>_ior_and_sr_ze")
1945 ("*extract1bitdi<clobbercc_or_nocc>")
1946 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1947 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1948 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1949 to validate the arguments of zero_extract and sign_extract.
1950
1951 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1952
1953 PR target/77822
1954 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1955
1956 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1957
1958 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1959 function.
1960 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1961 macro.
1962
1963 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1964
1965 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1966 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1967 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1968 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1969 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1970 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1971 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1972 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1973 ("vec_unpacku_lo_v4si"): New pattern definitions.
1974 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1975 vector.md.
1976
1977 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1978
1979 * config/s390/s390-protos.h (s390_reverse_condition): New
1980 prototype.
1981 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1982 of CC mode values.
1983 (s390_reverse_condition): New function.
1984 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1985 target macros.
1986
1987 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1988
1989 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1990 (CCVHUANY): Remove modes.
1991 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1992 documentation.
1993 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1994 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1995 modes.
1996 (s390_branch_condition_mask): Adjust to use the new cc consumer
1997 modes. The new modes allow for proper reversal in the middle-end.
1998 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1999 consumer modes for a comparison.
2000 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2001 throughout the file.
2002 * config/s390/vx-builtins.md: Likewise.
2003
2004 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2005
2006 * asan.c (asan_global_struct): Refactor.
2007 (create_odr_indicator): New function.
2008 (asan_needs_odr_indicator_p): Likewise.
2009 (is_odr_indicator): Likewise.
2010 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2011 constructor.
2012 (asan_protect_global): Do not protect odr indicators.
2013
2014 2016-12-01 Jeff Law <law@redhat.com>
2015
2016 * tree-ssa-threadedge.c
2017 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2018 propagation of operands if there are no operands.
2019
2020 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2021
2022 PR tree-optimization/78586
2023 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2024 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2025 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2026 type is INTEGER_TYPE or POINTER_TYPE.
2027
2028 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2029
2030 PR target/78577
2031 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2032 (vextuhrx): Likewise.
2033 (vextuwlx): Likewise.
2034 (vextuwrx): Likewise.
2035
2036 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2037
2038 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2039 early_dwarf_finished.
2040
2041 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2042 David S. Miller <davem@davemloft.net>
2043
2044 * config/sparc/sparc.opt (mlra): New target option.
2045 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2046 (sparc_lra_p): ...this. New function.
2047 (D_MODES, DF_MODES): Add missing cast.
2048 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2049 provide these insns when flag_pic.
2050 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2051 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2052 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2053 embmedany_textulo, embmedany_textlo): Likewise.
2054 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2055
2056 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2057
2058 PR debug/66419
2059 PR c++/78235
2060 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2061
2062 2016-12-01 Richard Biener <rguenther@suse.de>
2063 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2064
2065 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2066 memset if len-oldlen != 0.
2067 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2068
2069 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2070
2071 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2072
2073 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2074
2075 * config/avr/avr.c: Fix coding rule glitches.
2076
2077 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2078
2079 PR tree-optimization/78598
2080 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2081 overflows.
2082
2083 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2084
2085 PR rtl-optimization/78596
2086 * combine.c (simplify_comparison): Cast to unsigned to avoid
2087 left shifting of negative value.
2088
2089 2016-12-01 Matthias Klose <doko@ubuntu.com>
2090
2091 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2092
2093 2016-12-01 Richard Biener <rguenther@suse.de>
2094
2095 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2096 treat arrays with same type as objects that cannot overlap.
2097
2098 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2099
2100 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2101 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2102 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2103
2104 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2105
2106 PR debug/78587
2107 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2108 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2109 in unsigned HOST_WIDE_INT type.
2110 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2111
2112 PR target/78614
2113 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2114 set_used_flags (pat) before any simplifications. Clear used flag on
2115 PARALLEL copy. Don't guard add_reg_note call. Call
2116 copy_rtx_if_shared on pat before storing it into
2117 REG_FRAME_RELATED_EXPR.
2118
2119 2016-12-01 Alan Modra <amodra@gmail.com>
2120
2121 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2122 look inside UNSPEC_VSX_XXSPLTW vec.
2123
2124 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2125
2126 PR rtl-optimization/78607
2127 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2128
2129 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2130
2131 PR target/78602
2132 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2133 element is not a constant or in a register, force it to a
2134 register.
2135
2136 PR target/78560
2137 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2138 that will be set to a vector element to be in a register.
2139 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2140 the wrong multiplier to convert the element number to a byte
2141 offset.
2142
2143 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2144
2145 PR tree-optimization/77856
2146 * lra-constraints.c (inherit_in_ebb): Check original regno for
2147 invalid invariant regs too. Set only clobbered hard regs for the
2148 invalid invariant regs.
2149
2150 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2151
2152 Commit files forgotten in r242966.
2153
2154 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2155 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2156 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2157 prefix check to find wrap-around value, instead use MCU flash size.
2158 For 8k flash devices, update link_pmem_wrap spec string to
2159 add --pmem-wrap-around=8k.
2160 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2161 here...
2162 (LINK_SPEC): ...to here.
2163
2164 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2165
2166 PR c/78498
2167 * selftest.c (selftest::assert_strndup_eq): New function.
2168 (selftest::test_strndup): New function.
2169 (selftest::test_libiberty): New function.
2170 (selftest::selftest_c_tests): Call test_libiberty.
2171
2172 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2173
2174 PR rtl-optimization/78610
2175 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2176 instructions.
2177
2178 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2179
2180 PR tree-optimization/78574
2181 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2182 header PHI that doesn't define biv.
2183
2184 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2185
2186 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2187 reset_used_flags.
2188
2189 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2190 sharing the SUBREG rtx between move and following insn.
2191
2192 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2193 for REG_EQUIV argument.
2194
2195 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2196
2197 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2198
2199 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2200
2201 PR ipa/78555
2202 * real.c (real_hash): Add cast to avoid left
2203 shifting of negative values.
2204
2205 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2206
2207 PR target/78362
2208 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2209 from a subreg in operands[1] and don't call REGNO on a non-reg
2210 expression when deciding to force operands[2] into a reg.
2211
2212 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2213 Andrew Burgess <andrew.burgess@embecosm.com>
2214
2215 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2216 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2217 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2218 * config/arc/arc700.md: Add define_bypass for store/load.
2219
2220 2016-11-30 Martin Liska <mliska@suse.cz>
2221
2222 * cgraph.c (symbol_table::initialize): Initialize
2223 ipa_clones_dump_file.
2224 (cgraph_node::remove): Report to ipa_clones_dump_file.
2225 * cgraph.h: Add new argument (suffix) to cloning methods.
2226 * cgraphclones.c (dump_callgraph_transformation): New function.
2227 (cgraph_node::create_clone): New argument.
2228 (cgraph_node::create_virtual_clone): Likewise.
2229 (cgraph_node::create_version_clone): Likewise.
2230 * dumpfile.c: Add .ipa-clones dump file.
2231 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2232 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2233 to dump_callgraph_transformation.
2234
2235 2016-11-30 Martin Liska <mliska@suse.cz>
2236
2237 PR sanitizer/78541
2238 * asan.c (asan_expand_mark_ifn): Properly
2239 select a VAR_DECL from FRAME.* component reference.
2240
2241 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2242
2243 PR rtl-optimization/78583
2244 * simplify-rtx.c (simplify_truncation): Add check missing from the
2245 previous commit.
2246
2247 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2248
2249 PR rtl-optimization/78590
2250 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2251 if the subreg_reg is a scalar integer mode.
2252
2253 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2254
2255 PR tree-optimization/78586
2256 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2257 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2258 Don't build_int_cst min/max twice. Formatting fix.
2259
2260 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2261
2262 PR rtl-optimization/78588
2263 * combine.c (if_then_else_cond): Also guard against BLKmode.
2264 * rtlanal.c (num_sign_bit_copies1): Add assert.
2265
2266 2016-11-29 Jeff Law <law@redhat.com>
2267
2268 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2269 variables.
2270
2271 * lra-constraints.c (check_and_process_move): Constrain the
2272 range of DCLASS and SCLASS to avoid false positive out of bounds
2273 array index warning.
2274
2275 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2276
2277 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2278
2279 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2280
2281 PR preprocessor/78569
2282 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2283 line directives were present.
2284
2285 2016-11-30 Matthias Klose <doko@ubuntu.com>
2286
2287 * doc/install.texi: Document configure options --enable-objc-gc
2288 and --with-target-bdw-gc.
2289
2290 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2291
2292 PR target/78594
2293 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2294 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2295 residing in traditional altivec registers can be stored
2296 correctly.
2297
2298 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2299
2300 PR target/78603
2301 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2302 overhead loop start between a call and its CALL_ARG_LOCATION
2303 note.
2304
2305 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2306
2307 * config/bfin/linux.h (CPP_SPEC): Define.
2308
2309 2016-11-29 Martin Sebor <msebor@redhat.com>
2310
2311 PR tree-optimization/78512
2312 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2313 * config/rs6000/linux.h: Same.
2314 * config/rs6000/linux64.h: Same.
2315 * config/sol2.h: Same.
2316 * config/sol2.c (solaris_printf_pointer_format): Remove.
2317 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2318 * doc/tm.texi: Regenerate.
2319 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2320 (pass_sprintf_length::compute_format_length): Return bool.
2321 (pass_sprintf_length::handle_gimple_call): Adjust.
2322 * target.def (printf_pointer_format): Remove.
2323 * targhooks.c (default_printf_pointer_format): Remove.
2324 (linux_printf_pointer_format): Same.
2325 * targhooks.h (default_printf_pointer_format): Remove.
2326 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2327
2328 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2329
2330 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2331 (mshift): Ditto.
2332 (SWI1248_AVX512BWDQ): Ditto.
2333 (SWI1248_AVX512BW): Ditto.
2334 (k<any_logic:code><mode>): Ditto.
2335 (kandn<mode>): Ditto.
2336 (kxnor<mode>): Ditto.
2337 (knot<mode>): Ditto.
2338 (*k<any_lshift:code><mode>): Ditto.
2339 (kortestzhi, kortestchi): Ditto.
2340 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2341
2342 2016-11-29 Andrew Pinski <apinski@cavium.com>
2343
2344 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2345 for the EQ_EXPR.
2346
2347 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2348
2349 PR target/71331
2350 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2351 to stack before call mcount.
2352 (tilegx_can_use_return_insn_p): Clean up code.
2353
2354 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2355
2356 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2357
2358 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2359
2360 PR c++/72774
2361 PR c++/72786
2362 PR c++/77922
2363 PR c++/78313
2364 * spellcheck.c (selftest::test_find_closest_string): Verify that
2365 we don't offer the goal string as a suggestion.
2366 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2367 offer the goal string as a suggestion.
2368
2369
2370 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2371
2372 * config/arc/arc.c (arc_override_options): Avoid selection of
2373 compact casesi for ARCv2.
2374
2375 2016-11-29 Richard Biener <rguenther@suse.de>
2376
2377 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2378 PHIs after a regular stmt.
2379 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2380 start a new BB.
2381
2382 2016-11-29 Martin Liska <mliska@suse.cz>
2383
2384 PR gcov-profile/78582
2385 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2386 to prevent PHI argument clash.
2387
2388 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2389
2390 * config/arc/arc.opt (marclinux): Fix typo.
2391 (marclinux_prof): Likewise.
2392
2393 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2394
2395 * target.def (stack_protect_runtime_enabled_p): New.
2396 * function.c (expand_function_end): Guard stack_protect_epilogue with
2397 targetm.stack_protect_runtime_enabled_p.
2398 * cfgexpand.c (pass_expand::execute): Likewise.
2399 * calls.c (expand_call): Likewise.
2400 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2401 * doc/tm.texi: Regenerate.
2402
2403 2016-11-29 Richard Biener <rguenther@suse.de>
2404
2405 PR middle-end/78546
2406 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2407
2408 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2409
2410 * doc/contrib.texi: Add a few missing gfortran contributors.
2411
2412 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2413
2414 * combine.c (change_zero_ext): Also handle extends from a subreg
2415 to a mode bigger than that of the operand of the subreg.
2416
2417 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2418
2419 PR target/77687
2420 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2421 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2422 SPE ABIs.
2423 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2424
2425 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2426
2427 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2428 head_components and tail_components.
2429 (spread_components): New algorithm.
2430 (emit_common_tails_for_components): Clear head_components and
2431 tail_components.
2432 (insert_prologue_epilogue_for_components): Write extra output to the
2433 dump file for sibcalls and abnormal exits.
2434
2435 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2436
2437 PR rtl-optimization/78342
2438 * combine.c: Include "cfghooks.h".
2439 (try_combine): If we create an unconditional trap, break the basic
2440 block in two just after it, and remove the edge between; also, set
2441 the *new_direct_jump_p flag so that cleanup_cfg is run.
2442
2443 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2444
2445 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2446 and sign_extract.
2447
2448 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2449
2450 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2451 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2452 output template string.
2453 (*anddi_1): Use multi-line output template string.
2454 (*andqi_1): Ditto.
2455
2456 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2457
2458 PR middle-end/78540
2459 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2460 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2461 note has been removed.
2462 * postreload.c (reload_combine_recognize_pattern): If
2463 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2464
2465 2016-11-28 Martin Sebor <msebor@redhat.com>
2466
2467 PR middle-end/78520
2468 * gimple-ssa-sprintf.c (target_max_value): Remove.
2469 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2470 (get_width_and_precision): New function.
2471 (format_integer, format_floating, get_string_length, format_string):
2472 Correct handling of width and precision with unknown value.
2473 (format_directive): Add warning.
2474 (pass_sprintf_length::compute_format_length): Allow for precision
2475 to consist of a sole period with no asterisk or digits after it.
2476
2477 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2478
2479 PR rtl-optimization/78546
2480 * simplify-rtx.c (neg_const_int): When negating most negative
2481 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2482 simplify_const_unary_operation to produce CONST_DOUBLE or
2483 CONST_WIDE_INT.
2484 (simplify_plus_minus): Handle the case where neg_const_int
2485 doesn't return a CONST_INT.
2486
2487 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2488
2489 PR target/78556
2490 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2491 left shifting of negative values.
2492
2493 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2494
2495 PR fortran/78298
2496 * tree-nested.c (convert_local_reference_stmt): After adding
2497 shared (FRAME.NN) clause to omp parallel, task or target,
2498 add it also to all outer omp parallel, task or target constructs.
2499
2500 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2501
2502 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2503 (UNSPEC_KMOV): Remove.
2504 (kmovw): Expand to plain HImode move.
2505 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2506 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2507 Remove corresponding clobber-removing splitter.
2508 (*anddi_1): Remove mask register alternatives.
2509 (*andsi_1): Ditto.
2510 (*andhi_1): Ditto.
2511 (*andqi_1): Ditto.
2512 (*<any_or:code><mode>_1): Ditto.
2513 (*<any_or:code>qi_1): Ditto.
2514 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2515 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2516 Remove corresponding splitter to operation with general registers.
2517 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2518 (*andn<SWI12:mode>): New pattern.
2519 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2520 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2521 with general registers.
2522 (knot<mode>): New insn pattern.
2523 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2524 (one_cmplqi2_1): Ditto.
2525 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2526 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2527 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2528 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2529 to generate kmaskop shift.
2530 (vec_unpacks_hi_<mode>): Ditto.
2531 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2532 Use CODE_FOR_kandhi.
2533 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2534 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2535 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2536
2537 2016-11-28 Richard Biener <rguenther@suse.de>
2538
2539 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2540 to SSA names via extract_range_from_ssa_name if allowed.
2541
2542 2016-11-28 Richard Biener <rguenther@suse.de>
2543
2544 PR tree-optimization/78542
2545 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2546 if allowed.
2547
2548 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2549
2550 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2551 isolates a single bit, even if the condition involves subregs.
2552
2553 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2554
2555 * config/aarch64/aarch64-simd-builtins.def
2556 (BSL_P): Added di and v2di mode.
2557 * config/aarch64/arm_neon.h
2558 (vsriq_n_p64, vsri_n_p64): Added poly type.
2559 (vextq_p64, vext_p64): Likewise.
2560 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2561
2562 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2563
2564 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2565 (TYPES_GETREGP): Likewise.
2566 (TYPES_SHIFTINSERTP): Likewise.
2567 (TYPES_COMBINEP): Likewise.
2568 (TYPES_STORE1P): Likewise.
2569 * config/aarch64/aarch64-simd-builtins.def
2570 (combine): Added poly generator.
2571 (get_dregoi): Likewise.
2572 (get_dregci): Likewise.
2573 (get_dregxi): Likewise.
2574 (ssli_n): Likewise.
2575 (ld1): Likewise.
2576 (st1): Likewise.
2577 * config/aarch64/arm_neon.h
2578 (poly64x1x2_t, poly64x1x3_t): New.
2579 (poly64x1x4_t, poly64x2x2_t): Likewise.
2580 (poly64x2x3_t, poly64x2x4_t): Likewise.
2581 (poly64x1_t): Likewise.
2582 (vcreate_p64, vcombine_p64): Likewise.
2583 (vdup_n_p64, vdupq_n_p64): Likewise.
2584 (vld2_p64, vld2q_p64): Likewise.
2585 (vld3_p64, vld3q_p64): Likewise.
2586 (vld4_p64, vld4q_p64): Likewise.
2587 (vld2_dup_p64, vld3_dup_p64): Likewise.
2588 (vld4_dup_p64, vsli_n_p64): Likewise.
2589 (vsliq_n_p64, vst1_p64): Likewise.
2590 (vst1q_p64, vst2_p64): Likewise.
2591 (vst3_p64, vst4_p64): Likewise.
2592 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2593 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2594 (vget_lane_p64, vgetq_lane_p64): Likewise.
2595 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2596 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2597 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2598 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2599 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2600 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2601 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2602 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2603 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2604 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2605 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2606 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2607 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2608 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2609 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2610 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2611 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2612 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2613 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2614 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2615 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2616 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2617 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2618 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2619 (vset_lane_p64, vsetq_lane_p64): Likewise.
2620 (vget_low_p64, vget_high_p64): Likewise.
2621 (vcombine_p64, vst2_lane_p64): Likewise.
2622 (vst3_lane_p64, vst4_lane_p64): Likewise.
2623 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2624 (vst4q_lane_p64, vget_lane_p64): Likewise.
2625 (vget_laneq_p64, vset_lane_p64): Likewise.
2626 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2627 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2628 (vdupq_n_p64, vdup_lane_p64): Likewise.
2629 (vdup_laneq_p64, vld1_p64): Likewise.
2630 (vld1q_p64, vld1_dup_p64): Likewise.
2631 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2632 (vmov_n_p64, vmovq_n_p64): Likewise.
2633 (vst3q_p64, vst4q_p64): Likewise.
2634 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2635 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2636 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2637 (vdupq_laneq_p64): Likewise.
2638
2639 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2640
2641 * config/arm/arm_neon.h (vget_lane_p64): New.
2642
2643 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2644
2645 PR target/71767
2646 * configure.ac (with_ld64): Use portable method to extract the
2647 major part of the version number.
2648 * configure: Regenerated.
2649
2650 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2651
2652 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2653 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2654 intmax_t couldn't be determined.
2655 (format_integer): Make {,u}intmax_type_node no longer static,
2656 initialize them only when needed. For z and t use
2657 signed_or_unsigned_type_for instead of assuming size_t and
2658 ptrdiff_t have the same precision.
2659
2660 PR lto/78211
2661 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2662 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2663 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2664 vector instead of traversing m_classes hash table. Release
2665 m_classes_vec.
2666 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2667 Formatting fixes.
2668 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2669 add it also to m_classes_vec vector.
2670 (sem_item_optimizer::remove_symtab_node,
2671 sem_item_optimizer::build_hash_based_classes,
2672 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2673 (sem_item_optimizer::subdivide_classes_by_equality,
2674 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2675 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2676 instead of traversing m_classes hash table. Formatting fixes.
2677 (sem_item_optimizer::traverse_congruence_split,
2678 sem_item_optimizer::do_congruence_step_for_index,
2679 sem_item_optimizer::do_congruence_step): Formatting fixes.
2680 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2681 vector instead of traversing m_classes hash table.
2682 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2683 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2684 instead of traversing m_classes hash table.
2685
2686 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2687
2688 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2689 X is not unused after.
2690
2691 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2692
2693 PR rtl-optimization/78120
2694 * rtlanal.c (insn_rtx_cost): Revert previous change.
2695
2696 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2697
2698 PR 41076
2699 * config/avr/avr.md (SPLIT34): New mode iterator.
2700 (bitop): New code iterator.
2701 (*iorhi3.ashift8-*). New insn-and-split patterns.
2702 (*movhi): Post-reload split reg = 0.
2703 [!MOVW]: Post-reload split reg = reg.
2704 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2705 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2706 (iorhi3, iorpsi3, iorsi3): Same.
2707 (xorhi3, xorpsi3, xorsi3): Same.
2708 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2709 costs to *iorhi3.ashift8-* patterns.
2710
2711 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2712 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2713
2714 PR target/67710
2715 * config.in: Regenerate
2716 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2717 for the assembler.
2718 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2719 * config/darwin.opt(asm_macosx_version_min): New.
2720 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2721 * configure: Regenerate
2722 * configure.ac: Check for mmacosx-version-min handling.
2723
2724 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2725
2726 PR target/57438
2727 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2728 where the function might otherwise appear empty for picbase thunks.
2729 (ix86_output_function_epilogue): If we find a zero-sized function
2730 assume that reaching it is UB and trap. If we find a trailing label
2731 append a nop.
2732 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2733 find a zero-sized function assume that reaching it is UB and trap.
2734 If we find a trailing label, append a nop.
2735
2736 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2737
2738 PR target/71767
2739 * config/darwin-sections.def (picbase_thunk_section): New.
2740 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2741 section. (darwin_rodata_section, darwin_objc2_section,
2742 machopic_select_section, darwin_asm_declare_constant_name,
2743 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2744 coalesced with newer linkers.
2745 (darwin_override_options): Decide on usage of coalesed sections
2746 on the basis of the target linker version.
2747 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2748 * config/darwin.opt (mtarget-linker): New.
2749 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2750 a coalesced section, instead use a thunks section.
2751
2752 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2753
2754 PR target/71767
2755 * configure.ac (with-ld64): New var, set for Darwin, set on
2756 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2757 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2758 * config/darwin10.h(DEF_LD64): Update for this target version.
2759 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2760 (DEF_LD64): Update for this target version.
2761 * configure: Regenerated.
2762 * config.in: Regenerated.
2763
2764 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2765
2766 PR target/71767
2767 * config/darwin.c (imachopic_indirection_name): Make data
2768 section indirections linker-visible.
2769 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2770 constant labels linker-visible.
2771
2772 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2773
2774 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2775 (free_lang_data): Remove assignment to ptrdiff_type_node.
2776
2777 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2778
2779 PR rtl-optimization/78526
2780 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2781 beyond val's precision.
2782
2783 PR rtl-optimization/78527
2784 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2785 out of bounds shift count.
2786
2787 2016-11-25 Martin Liska <mliska@suse.cz>
2788
2789 PR web/71666
2790 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2791 where -fprofile-generate is documented.
2792
2793 2016-11-25 Martin Liska <mliska@suse.cz>
2794
2795 PR gcov-profile/78086
2796 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2797 not supported by a target. Set priority to 100 if possible.
2798 (build_gcov_exit_decl): Likewise.
2799
2800 2016-11-25 Richard Biener <rguenther@suse.de>
2801
2802 PR ipa/78515
2803 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2804 unary, binary and single RHSs.
2805 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2806
2807 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2808
2809 PR middle-end/78507
2810 PR middle-end/78510
2811 PR middle-end/78517
2812 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2813 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2814 and set it to result code if transformation is valid. Use code EQ
2815 directly in last simplification case.
2816
2817 2016-11-25 Richard Biener <rguenther@suse.de>
2818
2819 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2820 before valueizing return stmts.
2821
2822 2016-11-24 Richard Biener <rguenther@suse.de>
2823
2824 PR tree-optimization/78343
2825 * passes.def: Add CD-DCE pass after loop splitting.
2826 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2827 SCEV init/finalize ...
2828 (perform_tree_ssa_dce): ... here. Deal with being
2829 executed inside the loop pipeline in aggressive mode.
2830
2831 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2832
2833 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2834
2835 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2836
2837 PR tree-optimization/77673
2838 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2839 (init_symbolic_number): Initialize src field from src parameter.
2840 (perform_symbolic_merge): Select most dominated statement as the
2841 source statement. Set src field of resulting n structure from the
2842 input src with the lowest address.
2843 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2844 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2845 of load from src field rather than insertion statement. Cancel
2846 optimization if statement analyzed is not dominated by the insertion
2847 statement.
2848 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2849 dominance information.
2850
2851 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2852
2853 PR ada/67205
2854 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2855
2856 2016-11-25 Martin Jambor <mjambor@suse.cz>
2857
2858 PR tree-optimization/70965
2859 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2860
2861 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2862
2863 PR target/78509
2864 * config/i386/i386.c (i386_excess_precision): Do not return
2865 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2866 EXCESS_PRECISION_TYPE_STANDARD.
2867 * target.def (excess_precision): Document that targets should
2868 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2869 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2870 Fix typo in first sentence.
2871 * doc/tm.texi: Regenerate.
2872
2873 2016-11-25 Richard Biener <rguenther@suse.de>
2874
2875 PR tree-optimization/78396
2876 * tree-vectorizer.c (vectorize_loops): When the if-converted
2877 body contains masked loads or stores do not attempt to
2878 basic-block-vectorize it.
2879
2880 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2881 Alan Hayward <alan.hayward@arm.com>
2882 David Sherwood <david.sherwood@arm.com>
2883
2884 * function.h (spill_slot_alignment): Declare.
2885 * function.c (spill_slot_alignment): New function.
2886 * lra-spills.c (slot): Add align and size fields.
2887 (assign_mem_slot): Use them in the call to assign_stack_local.
2888 (add_pseudo_to_slot): Update the fields.
2889 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2890
2891 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2892 Alan Hayward <alan.hayward@arm.com>
2893 David Sherwood <david.sherwood@arm.com>
2894
2895 * stor-layout.c (layout_type): Allow the caller to set the mode of
2896 a float type. Only choose one here if the mode is still VOIDmode.
2897 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2898 floats before calling layout_type.
2899 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2900
2901 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2902
2903 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2904 local variables if all references are known to be direct.
2905
2906 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2907 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2908
2909 PR middle-end/78501
2910 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2911 non null and it's precision matches precision of lhs's type.
2912
2913 2016-11-24 Martin Sebor <msebor@redhat.com>
2914
2915 PR tree-optimization/78476
2916 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2917 Add a member.
2918 (handle_gimple_call): Adjust signature.
2919 (try_substitute_return_value): Remove calls to bounded functions
2920 with zero buffer size whose result is known.
2921 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2922
2923 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2924
2925 * varasm.c (assemble_start_function): Wrap align_log definition in
2926 ASM_OUTPUT_MAX_SKIP_ALIGN.
2927
2928 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2929
2930 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2931 explicit mode macros.
2932 (wide OR insn to QImode splitter): Ditto.
2933
2934 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2935
2936 PR rtl-optimization/77541
2937 * lra-constraints.c (struct input_reload): Add field match_p.
2938 (get_reload_reg): Check modes of input reloads to generate unique
2939 value reload pseudo.
2940 (match_reload): Add input reload pseudo for the current insn.
2941
2942 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2943
2944 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2945 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2946 architecture levels.
2947 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2948 the aarch64_fp16_type_node, not all HFmode types.
2949 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2950 (aarch64_scalar_mode_supported_p): Likewise.
2951 (aarch64_excess_precision): New.
2952 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2953 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2954 (TARGET_C_EXCESS_PRECISION): Likewise.
2955
2956 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2957
2958 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2959 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2960
2961 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2962
2963 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2964 (<optab>dihf2): Likewise.
2965 (aarch64_fp16_<optab><mode>hf2): New.
2966
2967 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2968
2969 PR target/67822
2970 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2971
2972 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2973
2974 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2975 Enable REE at -O2 and higher.
2976 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2977 in 32-bit mode.
2978
2979 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2980
2981 PR target/48863
2982 PR inline-asm/70184
2983 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2984 (new_temp_expr_table): Initialise reg_vars_cnt.
2985 (free_temp_expr_table): Release reg_vars_cnt.
2986 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2987 field of TAB.
2988 (find_replaceable_in_bb): Use the above to record register variable
2989 write occurrences and cancel replacement across them.
2990
2991 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2992
2993 PR rtl-optimization/78437
2994 * ree.c (get_uses): New function.
2995 (combine_reaching_defs): When a copy is needed, return false if any
2996 reaching use of the source register reads it in a mode larger than
2997 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2998
2999 2016-11-24 Martin Liska <mliska@suse.cz>
3000
3001 * gimple-pretty-print.c (dump_edge_probability): New function.
3002 (dump_gimple_switch): Dump label edge probabilities.
3003 (dump_gimple_cond): Likewise.
3004 (dump_gimple_label): Dump
3005 (dump_gimple_bb_header): Dump basic block frequency.
3006 (pp_cfg_jump): Replace e->dest argument with e.
3007 (dump_implicit_edges): Likewise.
3008 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3009 Use gimple_bb (at) instead of at->bb.
3010
3011 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3012
3013 * common.opt (flimit-function-alignment): New.
3014 * doc/invoke.texi (-flimit-function-alignment): Document.
3015 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3016 * final.c (shorten_branches): Set it.
3017 * varasm.c (assemble_start_function): Limit alignment if
3018 requested.
3019
3020 2016-11-24 Richard Biener <rguenther@suse.de>
3021
3022 PR tree-optimization/71595
3023 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3024 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3025 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3026 called functions. Only fix irred flags if the caller didn't
3027 request state.
3028 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3029 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3030 to remove_path.
3031
3032 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3033
3034 PR rtl-optimization/78120
3035 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3036 cases, and additionally test against max_seq_cost for speed
3037 optimization.
3038 (noce_process_if_block): Compute an estimate for the original cost when
3039 optimizing for speed, using the minimum of then and else block costs.
3040
3041 PR rtl-optimization/78120
3042 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3043
3044 PR rtl-optimization/78120
3045 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3046
3047 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3048
3049 * match.pd: Refine type conversion in result expr for below pattern:
3050 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3051
3052 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3053
3054 PR middle-end/78429
3055 * tree.h (wi::fits_to_boolean_p): New predicate.
3056 (wi::fits_to_tree_p): Use it for boolean types.
3057 * tree.c (int_fits_type_p): Likewise.
3058
3059 2016-11-24 Martin Liska <mliska@suse.cz>
3060
3061 * print-tree.c (struct bucket): Remove.
3062 (print_node): Add new argument which drives whether a tree node
3063 is printed briefly or not.
3064 (debug_tree): Replace a custom hash table with hash_set<T>.
3065 * print-tree.h (print_node): Add the argument.
3066
3067 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3068
3069 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3070
3071 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3072
3073 PR target/78458
3074 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3075 if it is at least NREGS wide.
3076
3077 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3078
3079 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3080 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3081 TFmode, IFmode and KFmode.
3082
3083 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3084
3085 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3086 pattern.
3087
3088 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3089
3090 * combine.c (change_zero_ext): Only change the mode of a hard register
3091 destination if can_change_dest_mode holds for that.
3092
3093 2016-11-23 Jeff Law <law@redhat.com>
3094
3095 * varasm.c (assemble_name): Increase buffer size for name.
3096
3097 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3098
3099 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3100
3101 * doc/extend.texi: Constify first argument to __builtin_object_size.
3102
3103 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3104
3105 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3106 to be used. Add brackets around macro argument.
3107
3108 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3109
3110 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3111
3112 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3113
3114 PR sanitizer/69278
3115 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3116 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3117
3118 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3119
3120 PR middle-end/69183
3121 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3122 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3123 on worksharing constructs, treat it like clauses on simd construct.
3124 Formatting fix.
3125 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3126 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3127 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3128 of true as last argument to build_outer_var_ref.
3129
3130 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3131
3132 * config/i386/i386.md (*movqi_internal): Calculate mode
3133 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3134 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3135 (*k<logic><mode>): Calculate mode attribute depending on
3136 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3137 (*andqi_1): Calculate mode attribute of alternative 3 depending
3138 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3139 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3140 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3141 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3142 iterator. Calculate mode attribute of alternative 1 depending
3143 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3144 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3145 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3146
3147 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3148
3149 PR middle-end/78153
3150 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3151 * tree-vrp.c (extract_range_basic): Handle case for
3152 CFN_BUILT_IN_STRLEN.
3153
3154 2016-11-23 Jeff Law <law@redhat.com>
3155
3156 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3157
3158 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3159 in boolean context warning.
3160
3161 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3162
3163 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3164
3165 PR target/63250
3166 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3167 (arm_fp16_type_node): ...This, make visibile.
3168 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3169 arm_fp16_type_node.
3170 (arm_init_simd_builtin_types): Likewise.
3171 (arm_init_fp16_builtins): Likewise.
3172 * config/arm/arm.c (arm_excess_precision): New.
3173 (arm_floatn_mode): Likewise.
3174 (TARGET_C_EXCESS_PRECISION): Likewise.
3175 (TARGET_FLOATN_MODE): Likewise.
3176 (arm_promoted_type): Only promote arm_fp16_type_node.
3177 * config/arm/arm.h (arm_fp16_type_node): Declare.
3178
3179 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3180
3181 * config/arm/arm.c (arm_convert_to_type): Delete.
3182 (TARGET_CONVERT_TO_TYPE): Delete.
3183 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3184 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3185 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3186 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3187 are in fast math mode, and have no single step hardware instruction.
3188 (extendhfdf2): Only expand through SFmode if we don't have a
3189 single-step hardware instruction.
3190 * config/arm/vfp.md (*truncdfhf2): New.
3191 (extendhfdf2): Likewise.
3192
3193 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3194
3195 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3196 provides HFmode.
3197
3198 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3199
3200 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3201 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3202 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3203 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3204 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3205 * doc/tm.texi: Regenerate.
3206 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3207
3208 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3209
3210 * toplev.c (init_excess_precision): Delete most logic.
3211 * tree.c (excess_precision_type): Rewrite to use
3212 TARGET_EXCESS_PRECISION.
3213 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3214 more generic fashion.
3215 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3216 __STDC_WANT_IEC_60559_TYPES_EXT__.
3217
3218 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3219
3220 * common.opt (fpermitted-flt-eval-methods): New.
3221 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3222 * flag_types.h (permitted_flt_eval_methods): New.
3223
3224 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3225
3226 * config/m68k/m68k.c (m68k_excess_precision): New.
3227 (TARGET_C_EXCESS_PRECISION): Define.
3228
3229 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3230
3231 * config/s390/s390.c (s390_excess_precision): New.
3232 (TARGET_C_EXCESS_PRECISION): Define.
3233
3234 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3235
3236 * config/i386/i386.c (ix86_excess_precision): New.
3237 (TARGET_C_EXCESS_PRECISION): Define.
3238
3239 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3240
3241 * target.def (excess_precision): New hook.
3242 * target.h (flt_eval_method): New.
3243 (excess_precision_type): Likewise.
3244 * targhooks.c (default_excess_precision): New.
3245 * targhooks.h (default_excess_precision): New.
3246 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3247 * doc/tm.texi: Regenerate.
3248
3249 2016-11-23 Martin Sebor <msebor@redhat.com>
3250
3251 PR middle-end/78461
3252 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3253 set the minimum number of bytes for an unknown string to zero.
3254
3255 2016-11-23 Martin Jambor <mjambor@suse.cz>
3256 Martin Liska <mliska@suse.cz>
3257
3258 * hsa-builtins.def: New file.
3259 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3260 * builtins.def: Include hsa-builtins.def.
3261 (DEF_HSA_BUILTIN): New macro.
3262 * dumpfile.h (OPTGROUP_OPENMP): Define.
3263 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3264 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3265 GF_OMP_FOR_GRID_GROUP_ITER.
3266 (gimple_omp_for_grid_phony): Added checking assert.
3267 (gimple_omp_for_set_grid_phony): Likewise.
3268 (gimple_omp_for_grid_intra_group): New function.
3269 (gimple_omp_for_set_grid_intra_group): Likewise.
3270 (gimple_omp_for_grid_group_iter): Likewise.
3271 (gimple_omp_for_set_grid_group_iter): Likewise.
3272 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3273 previosuly only distribute loop was permitted.
3274 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3275 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3276 dimensions.
3277 (grid_expand_omp_for_loop): Likewise and also support standalone
3278 distribute constructs. New parameter INTRA_GROUP, updated both users.
3279 (grid_expand_target_grid_body): Support standalone distribute
3280 constructs.
3281 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3282 (pass_data_expand_omp_ssa): Likewise.
3283 (pass_data_omp_device_lower): Likewsie.
3284 (pass_data_lower_omp): Likewise.
3285 (pass_data_diagnose_omp_blocks): Likewise.
3286 (pass_data_oacc_device_lower): Likewise.
3287 (pass_data_omp_target_link): Likewise.
3288 (grid_lastprivate_predicate): New function.
3289 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3290 gridified loops.
3291 (lower_omp_for): Support standalone distribute constructs.
3292 (grid_prop): New type.
3293 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3294 parameter GRID.
3295 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3296 it to callee.
3297 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3298 optimization info messages.
3299 (grid_find_single_omp_among_assignments): Likewise.
3300 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3301 (grid_parallel_clauses_gridifiable): New function.
3302 (grid_inner_loop_gridifiable_p): Likewise.
3303 (grid_dist_follows_simple_pattern): Likewise.
3304 (grid_gfor_follows_tiling_pattern): Likewise.
3305 (grid_call_permissible_in_distribute_p): Likewise.
3306 (grid_handle_call_in_distribute): Likewise.
3307 (grid_dist_follows_tiling_pattern): Likewise.
3308 (grid_target_follows_gridifiable_pattern): Support standalone
3309 distribute constructs.
3310 (grid_var_segment): New enum.
3311 (grid_mark_variable_segment): New function.
3312 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3313 if a new argument says so.
3314 (grid_process_grid_body): New function.
3315 (grid_eliminate_combined_simd_part): Likewise.
3316 (grid_mark_tiling_loops): Likewise.
3317 (grid_mark_tiling_parallels_and_loops): Likewise.
3318 (grid_process_kernel_body_copy): Support standalone distribute
3319 constructs.
3320 (grid_attempt_target_gridification): New grid variable holding overall
3321 gridification state. Support standalone distribute constructs and
3322 collapse clauses.
3323 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3324 * hsa.h (hsa_bb): Add method method append_phi.
3325 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3326 occurences in all files too.
3327 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3328 (is_a_helper <hsa_insn_br *>::test): New function.
3329 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3330 branch instructions.
3331 (hsa_insn_signal): Make a direct descendant of
3332 hsa_insn_basic. Add memorder constructor parameter and
3333 m_memory_order and m_signalop member variables.
3334 (hsa_insn_queue): Changed constructor parameters to common form.
3335 Added m_segment and m_memory_order member variables.
3336 (hsa_summary_t): Add private member function
3337 process_gpu_implementation_attributes.
3338 (hsa_function_summary): Rename m_binded_function to
3339 m_bound_function.
3340 (hsa_insn_basic_p): Remove typedef.
3341 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3342 (hsa_op_reg_p): Remove typedef.
3343 (hsa_function_representation): Change hsa_op_reg_p into plain
3344 pointers.
3345 (hsa_insn_phi): Removed new and delete operators.
3346 (hsa_insn_br): Likewise.
3347 (hsa_insn_cbr): Likewise.
3348 (hsa_insn_sbr): Likewise.
3349 (hsa_insn_cmp): Likewise.
3350 (hsa_insn_mem): Likewise.
3351 (hsa_insn_atomic): Likewise.
3352 (hsa_insn_signal): Likewise.
3353 (hsa_insn_seg): Likewise.
3354 (hsa_insn_call): Likewise.
3355 (hsa_insn_arg_block): Likewise.
3356 (hsa_insn_comment): Likewise.
3357 (hsa_insn_srctype): Likewise.
3358 (hsa_insn_packed): Likewise.
3359 (hsa_insn_cvt): Likewise.
3360 (hsa_insn_alloca): Likewise.
3361 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3362 (process_gpu_implementation_attributes): New function.
3363 (link_functions): Move some functionality into it. Adjust after
3364 renaming m_binded_functions to m_bound_functions.
3365 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3366 to the list of instructions with no output registers.
3367 (get_in_type): Return this if it is a register of
3368 matching size.
3369 (hsa_get_declaration_name): Moved to...
3370 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3371 temporary string on an obstack instead from ggc.
3372 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3373 down to two overloads.
3374 (hsa_allocp_operand_address): Removed.
3375 (hsa_allocp_operand_immed): Likewise.
3376 (hsa_allocp_operand_reg): Likewise.
3377 (hsa_allocp_operand_code_list): Likewise.
3378 (hsa_allocp_operand_operand_list): Likewise.
3379 (hsa_allocp_inst_basic): Likewise.
3380 (hsa_allocp_inst_phi): Likewise.
3381 (hsa_allocp_inst_mem): Likewise.
3382 (hsa_allocp_inst_atomic): Likewise.
3383 (hsa_allocp_inst_signal): Likewise.
3384 (hsa_allocp_inst_seg): Likewise.
3385 (hsa_allocp_inst_cmp): Likewise.
3386 (hsa_allocp_inst_br): Likewise.
3387 (hsa_allocp_inst_sbr): Likewise.
3388 (hsa_allocp_inst_call): Likewise.
3389 (hsa_allocp_inst_arg_block): Likewise.
3390 (hsa_allocp_inst_comment): Likewise.
3391 (hsa_allocp_inst_queue): Likewise.
3392 (hsa_allocp_inst_srctype): Likewise.
3393 (hsa_allocp_inst_packed): Likewise.
3394 (hsa_allocp_inst_cvt): Likewise.
3395 (hsa_allocp_inst_alloca): Likewise.
3396 (hsa_allocp_bb): Likewise.
3397 (hsa_obstack): New.
3398 (hsa_init_data_for_cfun): Initialize obstack.
3399 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3400 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3401 (hsa_op_reg::operator new): Likewise.
3402 (hsa_op_address::operator new): Likewise.
3403 (hsa_op_code_list::operator new): Likewise.
3404 (hsa_op_operand_list::operator new): Likewise.
3405 (hsa_insn_basic::operator new): Likewise.
3406 (hsa_insn_phi::operator new): Likewise.
3407 (hsa_insn_br::operator new): Likewise.
3408 (hsa_insn_sbr::operator new): Likewise.
3409 (hsa_insn_cmp::operator new): Likewise.
3410 (hsa_insn_mem::operator new): Likewise.
3411 (hsa_insn_atomic::operator new): Likewise.
3412 (hsa_insn_signal::operator new): Likewise.
3413 (hsa_insn_seg::operator new): Likewise.
3414 (hsa_insn_call::operator new): Likewise.
3415 (hsa_insn_arg_block::operator new): Likewise.
3416 (hsa_insn_comment::operator new): Likewise.
3417 (hsa_insn_srctype::operator new): Likewise.
3418 (hsa_insn_packed::operator new): Likewise.
3419 (hsa_insn_cvt::operator new): Likewise.
3420 (hsa_insn_alloca::operator new): Likewise.
3421 (hsa_init_new_bb): Likewise.
3422 (hsa_bb::append_phi): New function.
3423 (gen_hsa_phi_from_gimple_phi): Use it.
3424 (get_symbol_for_decl): Fix dinstinguishing between
3425 global and local functions. Put local variables into a segment
3426 according to their attribute or static flag, if there is one.
3427 (hsa_insn_br::hsa_insn_br): New.
3428 (hsa_insn_br::operator new): Likewise.
3429 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3430 (query_hsa_grid_nodim): New function.
3431 (multiply_grid_dim_characteristics): Likewise.
3432 (gen_get_num_threads): Likewise.
3433 (gen_get_num_teams): Reimplemented.
3434 (gen_get_team_num): Likewise.
3435 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3436 helper functions.
3437 (get_memory_order_name): Removed.
3438 (get_memory_order): Likewise.
3439 (hsa_memorder_from_tree): New function.
3440 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3441 gen_hsa_atomic_for_builtin, can also create signals.
3442 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3443 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3444 (hsa_insn_atomic): Fix function comment.
3445 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3446 ancestor constructor and initialization of new member variables.
3447 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3448 member variables.
3449 (hsa_get_host_function): Handle functions with no bound CPU
3450 implementation. Fix binded to bound.
3451 (get_brig_function_name): Likewise.
3452 (HSA_SORRY_ATV): Remove semicolon after macro.
3453 (HSA_SORRY_AT): Likewise.
3454 (omp_simple_builtin::generate): Add missing semicolons.
3455 (hsa_insn_phi::operator new): Removed.
3456 (hsa_insn_br::operator new): Likewise.
3457 (hsa_insn_cbr::operator new): Likewise.
3458 (hsa_insn_sbr::operator new): Likewise.
3459 (hsa_insn_cmp::operator new): Likewise.
3460 (hsa_insn_mem::operator new): Likewise.
3461 (hsa_insn_atomic::operator new): Likewise.
3462 (hsa_insn_signal::operator new): Likewise.
3463 (hsa_insn_seg::operator new): Likewise.
3464 (hsa_insn_call::operator new): Likewise.
3465 (hsa_insn_arg_block::operator new): Likewise.
3466 (hsa_insn_comment::operator new): Likewise.
3467 (hsa_insn_srctype::operator new): Likewise.
3468 (hsa_insn_packed::operator new): Likewise.
3469 (hsa_insn_cvt::operator new): Likewise.
3470 (hsa_insn_alloca::operator new): Likewise.
3471 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3472 readonly segment.
3473 (gen_hsa_addr): Also process CONST_DECLs.
3474 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3475 copies.
3476 (gen_hsa_unary_operation): Make sure the function does
3477 not use bittype source type for firstbit and lastbit operations.
3478 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3479 source type.
3480 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3481 instruction.
3482 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3483 Emit the width stored in the class.
3484 (emit_generic_branch_insn): New function.
3485 (emit_insn): Call emit_generic_branch_insn.
3486 (emit_signal_insn): Remove obsolete comment. Update
3487 member variable name, pick a type according to profile.
3488 (emit_alloca_insn): Remove obsolete comment.
3489 (emit_atomic_insn): Likewise.
3490 (emit_queue_insn): Get segment and memory order from the IR object.
3491 (hsa_brig_section): Make allocate_new_chunk, chunks
3492 and cur_chunk provate, add a default NULL parameter to add method.
3493 (hsa_brig_section::add): Added a new parameter, store pointer to
3494 output data there if it is non-NULL.
3495 (emit_function_directives): Use this new parameter instead of
3496 calculating the pointer itself, fix function comment.
3497 (hsa_brig_emit_function): Add forgotten endian conversion.
3498 (hsa_output_kernels): Remove unnecessary building of
3499 kernel_dependencies_vector_type.
3500 (emit_immediate_operand): Declare.
3501 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3502 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3503 (verify_function_arguments): Properly detect variadic
3504 arguments.
3505 * hsa-dump.c (hsa_width_specifier_name): New function.
3506 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3507 member variable name. Special dumping for queue objects.
3508 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3509 m_binded_functions to m_bound_functions. Copy externally visible flag
3510 to the node.
3511 (ipa_hsa_write_summary): Likewise.
3512 (ipa_hsa_read_section): Likewise.
3513
3514 2016-11-23 Richard Biener <rguenther@suse.de>
3515
3516 PR tree-optimization/78396
3517 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3518 vectorize try vectorizing an if-converted body using BB vectorization.
3519
3520 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3521 Alan Hayward <alan.hayward@arm.com>
3522 David Sherwood <david.sherwood@arm.com>
3523
3524 * rtlanal.c (subreg_get_info): Use more local variables.
3525 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3526 occupies at least one register. Assume that full hard registers
3527 have consistent endianness. Share previously-duplicated if block.
3528 Rework the main handling so that it operates on independently-
3529 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3530 to check lowpart offsets, without trying to find an equivalent
3531 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3532 as a final register-endianness correction.
3533
3534 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3535
3536 PR target/77881
3537 PR bootstrap/78390
3538 PR target/78438
3539 PR bootstrap/78477
3540 * combine.c (make_compound_operation_int): Do not convert a subreg of
3541 a non-constant logical shift right to a zero_extract. Handle the case
3542 where some zero bits have been shifted into the range covered by that
3543 subreg.
3544
3545 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3546 Alan Hayward <alan.hayward@arm.com>
3547 David Sherwood <david.sherwood@arm.com>
3548
3549 * rtl.h (subreg_size_offset_from_lsb): Declare.
3550 (subreg_offset_from_lsb): New function.
3551 (subreg_size_lowpart_offset): Declare.
3552 (subreg_lowpart_offset): Turn into an inline function.
3553 (subreg_size_highpart_offset): Declare.
3554 (subreg_highpart_offset): Turn into an inline function.
3555 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3556 (subreg_size_highpart_offset): Likewise
3557 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3558
3559 2016-11-23 Richard Biener <rguenther@suse.de>
3560
3561 PR tree-optimization/78482
3562 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3563 (remove_forwarder_block_with_phi): When merging with a loop
3564 header creates a new latch reset number of iteration information
3565 of the loop.
3566
3567 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3568
3569 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3570 (*ashrsi3_extend0): ...this. Accept constant integers.
3571 (*ashrsi3_extend2): Rename to...
3572 (*ashrsi3_extend1): ...this.
3573 (*ashrsi3_extend2): New pattern.
3574 (*lshrsi3_extend1): Accept constant integers.
3575 (*lshrsi3_extend2): Fix condition on operand 2.
3576
3577 2016-11-23 Martin Liska <mliska@suse.cz>
3578
3579 * config/i386/i386.c: Initialize function pointer to NULL.
3580
3581 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3582
3583 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3584 for A == C1 ? A : C2 to below.
3585 * match.pd: Move from above to here:
3586 (cond (eq (convert1? x) c1) (convert2? x) c2)
3587 -> (cond (eq x c1) c1 c2).
3588
3589 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3590
3591 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3592 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3593 * match.pd: Move and extend simplification from above to here:
3594 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3595 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3596 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3597
3598 2016-11-23 Martin Liska <mliska@suse.cz>
3599 Martin Jambor <mjambor@suse.cz>
3600
3601 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3602
3603 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3604
3605 PR target/78213
3606 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3607
3608 2016-11-23 Richard Biener <rguenther@suse.de>
3609
3610 PR middle-end/71762
3611 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3612 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3613
3614 2016-11-23 Richard Biener <rguenther@suse.de>
3615
3616 PR lto/78472
3617 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3618 fields.
3619
3620 2016-11-23 Richard Biener <rguenther@suse.de>
3621 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3622
3623 PR tree-optimization/78154
3624 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3625 returns it's argument and the argument is nonnull.
3626 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3627 ATT_RETNONNULL_NOTHROW_LEAF.
3628 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3629 ATTR_RETNONNULL_NOTHROW_LEAF.
3630 (BUILT_IN_STPCPY): Likewise.
3631 (BUILT_IN_STPNCPY): Likewise.
3632 (BUILT_IN_MEMPCPY_CHK): Likewise.
3633 (BUILT_IN_STPCPY_CHK): Likewise.
3634 (BUILT_IN_STPNCPY_CHK): Likewise.
3635 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3636 (BUILT_IN_STRNCAT): Likewise.
3637 (BUILT_IN_STRNCPY): Likewise.
3638 (BUILT_IN_MEMSET_CHK): Likewise.
3639 (BUILT_IN_STRCAT_CHK): Likewise.
3640 (BUILT_IN_STRCPY_CHK): Likewise.
3641 (BUILT_IN_STRNCAT_CHK): Likewise.
3642 (BUILT_IN_STRNCPY_CHK): Likewise.
3643
3644 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3645
3646 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3647 * fold-const.h (tree_expr_nonzero_p) : Declare.
3648 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3649
3650 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3651
3652 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3653 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3654 "defined" in macros.
3655 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3656 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3657 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3658
3659 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3660
3661 PR target/60300
3662 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3663 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3664 of RCALLs in prologue to 3.
3665
3666 2016-11-22 Michael Collison <michael.collison@arm.com>
3667
3668 * config/aarch64/aarch64-protos.h
3669 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3670 (aarch64_and_bitmask_imm): New prototypes
3671 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3672 New overloaded function to create bit mask covering the
3673 lowest to highest bits set.
3674 (aarch64_and_split_imm2): New overloaded functions to create bit
3675 mask of zeros between first and last bit set.
3676 (aarch64_and_bitmask_imm): New function to determine if a integer
3677 is a valid two instruction "and" operation.
3678 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3679 allowing wider range of constants with "and" operations.
3680 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3681 "and" operator from matching restricted constant range used for
3682 ior and xor operators.
3683 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3684 for constants in "and" operantions.
3685 (UsP constraint): New DImode constraint for constants
3686 in "and" operations.
3687 * config/aarch64/iterators.md (lconst2): New mode iterator.
3688 (LOGICAL2): New code iterator.
3689 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3690 predicate.
3691 (aarch64_logical_and_operand): New predicate allowing extended
3692 constants for "and" operations.
3693
3694 2016-11-22 Walter Lee <walt@tilera.com>
3695
3696 * config/tilegx/tilegx.md (trap): New pattern.
3697 * config/tilepro/tilepro.md (trap): Likewise.
3698
3699 2016-11-22 Walter Lee <walt@tilera.com>
3700
3701 * config/tilegx/tilegx.md (*zero_extract): Use
3702 define_insn_and_split instead of define_insn; Handle pos + size >
3703 64.
3704 (*sign_extract): Likewise.
3705
3706 2016-11-22 Marek Polacek <polacek@redhat.com>
3707
3708 PR tree-optimization/78455
3709 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3710
3711 2016-11-22 Ian Lance Taylor <iant@golang.org>
3712
3713 PR go/78431
3714 PR go/78432
3715 * godump.c (go_format_type): Always pass alignment as 1 when
3716 calling go_append_padding at end of struct/union.
3717
3718 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3719
3720 PR target/78451
3721 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3722 _mm512_setzero_hi): Removed.
3723 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3724 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3725 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3726 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3727 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3728 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3729 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3730 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3731 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3732 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3733 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3734 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3735 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3736 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3737 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3738 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3739 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3740 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3741 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3742 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3743 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3744 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3745 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3746 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3747 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3748 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3749 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3750 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3751 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3752 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3753 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3754 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3755 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3756 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3757 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3758 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3759 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3760 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3761 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3762 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3763 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3764 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3765 _mm512_setzero_qi or _mm512_setzero_hi.
3766 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3767 _mm512_maskz_dbsad_epu8): Formatting fixes.
3768 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3769 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3770 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3771 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3772 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3773 _mm512_setzero_qi or _mm512_setzero_hi.
3774
3775 2016-11-22 Nathan Sidwell <nathan@acm.org>
3776
3777 * gcc-ar.c (main): Fix indentation.
3778 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3779 * ggc-page.c (move_ptes_to_front): Fix formatting.
3780 * hsa-dump.c (dump_has_cfun): Fix indentation.
3781 * sel-sched-ir.h: Remove trailing blank lines.
3782
3783 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3784 Alexander Monakov <amonakov@ispras.ru>
3785
3786 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3787 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3788 (omp_clause_code_name): Add _simt_ name.
3789 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3790 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3791 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3792 (scan_omp_simd): New function.
3793 (scan_omp_1_stmt): Use it in target regions if needed.
3794 (omp_max_vf): Don't max with omp_max_simt_vf.
3795 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3796 OMP_CLAUSE__SIMT_ is present.
3797 (lower_rec_input_clauses): Compute maybe_simt from presence of
3798 OMP_CLAUSE__SIMT_.
3799 (lower_lastprivate_clauses): Likewise.
3800 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3801 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3802 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3803 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3804
3805 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3806
3807 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3808 (expand_GOMP_SIMT_VF): New.
3809 (expand_GOMP_SIMT_LAST_LANE): New.
3810 (expand_GOMP_SIMT_ORDERED_PRED): New.
3811 (expand_GOMP_SIMT_VOTE_ANY): New.
3812 (expand_GOMP_SIMT_XCHG_BFLY): New.
3813 (expand_GOMP_SIMT_XCHG_IDX): New.
3814 * internal-fn.def (GOMP_SIMT_LANE): New.
3815 (GOMP_SIMT_VF): New.
3816 (GOMP_SIMT_LAST_LANE): New.
3817 (GOMP_SIMT_ORDERED_PRED): New.
3818 (GOMP_SIMT_VOTE_ANY): New.
3819 (GOMP_SIMT_XCHG_BFLY): New.
3820 (GOMP_SIMT_XCHG_IDX): New.
3821 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3822 (create_omp_child_function): ...here. Set "omp target entrypoint"
3823 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3824 (omp_max_simt_vf): New. Use it...
3825 (omp_max_vf): ...here.
3826 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3827 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3828 (lower_omp_ordered): Likewise, for "ordered" lowering.
3829 (expand_omp_simd): Add SIMT transforms.
3830 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3831 (execute_omp_device_lower): New.
3832 (pass_data_omp_device_lower): New.
3833 (pass_omp_device_lower): New pass.
3834 (make_pass_omp_device_lower): New.
3835 * passes.def (pass_omp_device_lower): Position new pass.
3836 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3837 (make_pass_omp_device_lower): Declare.
3838
3839 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3840
3841 PR target/78451
3842 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3843 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3844 _mm_setzero_di.
3845 (_mm_maskz_load_epi64): Likewise.
3846 (_mm_setzero_hi): Removed.
3847 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3848 _mm_setzero_di.
3849 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3850 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3851 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3852 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3853 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3854 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3855 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3856 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3857 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3858 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3859 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3860 Likewise.
3861 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3862 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3863 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3864 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3865 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3866 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3867 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3868 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3869 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3870 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3871 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3872 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3873 instead of _mm_setzero_hi.
3874 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3875 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3876 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3877 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3878 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3879 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3880 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3881 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3882 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3883 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3884 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3885 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3886 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3887 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3888 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3889 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3890 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3891 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3892 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3893 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3894 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3895 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3896 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3897 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3898 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3899 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3900 _mm_setzero_di.
3901 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3902 instead of _mm_setzero_hi.
3903 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3904 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3905 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3906 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3907 _mm_setzero_si128 instead of _mm_setzero_di.
3908 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3909 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3910 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3911 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3912 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3913 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3914 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3915 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3916 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3917 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3918 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3919 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3920 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3921 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3922 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3923 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3924 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3925 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3926 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3927 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3928 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3929 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3930 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3931 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3932 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3933 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3934 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3935 _mm512_maskz_insertf32x8): Formatting fixes.
3936 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3937 _mm_setzero_si128 instead of _mm_setzero_di.
3938 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3939 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3940 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3941 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3942 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3943 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3944 _mm_setzero_si128 instead of _mm_setzero_di.
3945 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3946 Likewise in macros.
3947 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3948 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3949 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3950 _mm_setzero_si128 instead of _mm_setzero_hi.
3951 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3952 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3953 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3954 instead of _mm_setzero_di.
3955 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3956 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3957 _mm_setzero_hi.
3958 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3959 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3960 _mm_setzero_hi.
3961 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3962 _mm_setzero_di.
3963 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3964 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3965 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3966
3967 2016-11-22 Carl Love <cel@us.ibm.com>
3968
3969 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3970 equal and vector compare not equal. The vector compares take two
3971 arguments of type vector bool char, vector bool short, vector bool int,
3972 vector bool long long with the same return type.
3973 * doc/extend.texi: Update built-in documentation file for the new
3974 powerpc built-ins.
3975
3976 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3977
3978 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3979 of -j argument.
3980
3981 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3982
3983 * config.gcc: Allow new rmprofile value for configure option
3984 --with-multilib-list.
3985 * config/arm/t-rmprofile: New file.
3986 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3987 for ARM.
3988
3989 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3990
3991 PR target/78439
3992 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3993 register operand in alternatives 4,5,6.
3994
3995 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3996
3997 PR target/77904
3998 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3999 in save register mask if it is needed.
4000
4001 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4002
4003 PR tree-optimization/78436
4004 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4005 (shift_bytes_in_array, shift_bytes_in_array_right,
4006 merged_store_group::apply_stores): Formatting fixes.
4007 (clear_bit_region): Likewise. Use memset.
4008 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4009 instead of EXPR and inerted instead of inserted. Use memset instead
4010 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4011 if shift_amnt is 0.
4012
4013 PR middle-end/78416
4014 * expmed.c (expand_divmod): Use wide_int for computation of
4015 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4016 Use size <= HOST_BITS_PER_WIDE_INT instead of
4017 HOST_BITS_PER_WIDE_INT >= size.
4018
4019 PR tree-optimization/78445
4020 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4021 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4022 is 1. Formatting fix.
4023
4024 2016-11-22 Martin Liska <mliska@suse.cz>
4025
4026 PR ipa/78309
4027 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4028 (sem_function::get_hash): Use the new field.
4029 (sem_function::parse): Remove an argument from ctor.
4030 (sem_variable::parse): Likewise.
4031 (sem_variable::get_hash): Use the new field.
4032 (sem_item_optimizer::read_section): Use new ctor and set hash.
4033 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4034 sem_variable::sem_variable, sem_function::sem_function.
4035
4036 2016-11-21 Jeff Law <law@redhat.com>
4037
4038 PR target/68538
4039 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4040 can_create_pseudo_p is true.
4041
4042 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4043
4044 PR target/68803
4045 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4046 *rotldi3_insert_7): New define_insns.
4047
4048 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4049
4050 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4051 so that DImode can be allocated to FP/vector registers in more
4052 cases, and we can avoid direct move operations. If the register
4053 needs reloading, prefer GPRs over FP/vector registers. In the
4054 case of FPR vs. Altivec registers, prefer FPR registers unless we
4055 have the ISA 3.0 reg+offset scalar instructions.
4056 (movdi_internal64): Likewise.
4057
4058 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4059
4060 PR middle-end/67335
4061 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4062 for tmp simd array if DECL_NAME (parm) is NULL.
4063
4064 2016-11-20 Jeff Law <law@redhat.com>
4065
4066 PR target/25128
4067 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4068 predicate.
4069 * config/m68k/m68k.md (relational tests against 65535/65536): New
4070 peephole2.
4071
4072 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4073
4074 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4075
4076 2016-11-21 Martin Sebor <msebor@redhat.com>
4077
4078 * doc/invoke.texi (-fprintf-return-value): Document that option
4079 is enabled by default.
4080
4081 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4082
4083 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4084 for-loop declaration of loop variable.
4085 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4086 * config/avr/avr.c (avr_popcount_each_byte)
4087 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4088 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4089 (avr_expand_epilogue, avr_function_arg_advance)
4090 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4091 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4092 (avr_adjust_reg_alloc_order, output_reload_in_const)
4093 (avr_conditional_register_usage, avr_find_unused_d_reg)
4094 (avr_map_decompose, avr_fold_builtin): Same.
4095
4096 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4097
4098 * config/avr/avr.c (avr_popcount): Remove static function.
4099 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4100
4101 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4102
4103 * arm.opt (mapcs-float): Delete option.
4104 * arm.c (arm_option_override): Remove hunk relating to
4105 TARGET_APCS_FLOAT.
4106 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4107
4108 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4109
4110 * tree-tailcall.c (process_assignment): Simplify the check for
4111 a valid copy, allowing the source to be a local variable as
4112 well as an SSA name.
4113 (find_tail_calls): Allow copies between local variables to follow
4114 the call. Allow the result to be stored in any local variable,
4115 even if it's an aggregate.
4116 (eliminate_tail_call): Check whether the result is an SSA name
4117 before updating its SSA_NAME_DEF_STMT.
4118
4119 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4120
4121 PR preprocessor/78324
4122 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4123 -ftrack-macro-expansion has a value other than 2.
4124
4125 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4126
4127 PR rtl-optimization/78400
4128 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4129 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4130 and df_update_exit_block_uses.
4131
4132 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4133
4134 PR c++/71973
4135 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4136 new default-enabled warning..
4137 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4138 (BT_PTR_CONST_STRING): Updated.
4139 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4140 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4141 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4142 (strftime): Update builtin function.
4143 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4144 * tree.h (const_tm_ptr_type_node): New type node.
4145 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4146 const_tm_ptr_type_node.
4147
4148 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4149
4150 PR tree-optimization/78413
4151 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4152 inner and outer loop latches have single predecessors.
4153
4154 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4155
4156 PR target/78093
4157 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4158 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4159
4160 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4161
4162 * rtl.h: Adjust prototype.
4163 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4164 (dead_or_set_regno_p): Likewise.
4165
4166 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4167
4168 * rtl.h: Adjust prototype.
4169 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4170
4171 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4172
4173 * function.c (contains): Change argument type to rtx_insn *.
4174 (prologue_contains): Likewise.
4175 (epilogue_contains): Likewise.
4176 (prologue_epilogue_contains): Likewise.
4177 * function.h: Adjust prototype.
4178
4179 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4180
4181 * optabs.c (emit_libcall_block): Change argument type to
4182 rtx_insn *.
4183 * optabs.h: Adjust prototype.
4184
4185 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4186
4187 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4188 (fixup_reorder_chain): Adjust.
4189 * cfgrtl.h: Adjust prototype.
4190
4191 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4192
4193 * rtl.h: Adjust prototype.
4194 * rtlanal.c (replace_label_in_insn): Change argument type to
4195 rtx_insn *.
4196
4197 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4198
4199 * config/v850/v850.c (expand_prologue): Adjust.
4200 (expand_epilogue): Likewise.
4201 * expr.c (init_expr_target): Likewise.
4202 * genrecog.c (print_subroutine): Always make the argument type
4203 rtx_insn *.
4204 * recog.h: Adjust prototype.
4205
4206 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4207
4208 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4209 up variables to make some rtx_insn *.
4210 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4211 * config/arc/arc.c: Likewise.
4212 * config/arm/arm.c: Likewise.
4213 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4214 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4215 Likewise.
4216 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4217
4218 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4219
4220 * config/arm/arm.c (legitimize_pic_address): Change to use
4221 rtx_insn * as the type of variables.
4222 (arm_pic_static_addr): Likewise.
4223 (arm_emit_movpair): Likewise.
4224 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4225 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4226 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4227 * config/frv/frv.md: Likewise.
4228 * config/i386/i386-protos.h: Likewise.
4229 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4230 (ix86_split_fp_branch): Likewise.
4231 (predict_jump): Likewise.
4232 * config/ia64/ia64.c: Likewise.
4233 * config/mcore/mcore.c: Likewise.
4234 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4235 * config/s390/s390.c: Likewise.
4236 * config/s390/s390.md: Likewise.
4237 * config/spu/spu.md: Likewise.
4238 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4239 * lower-subreg.c (resolve_simple_move): Likewise.
4240
4241 2016-11-20 Jeff Law <law@redhat.com>
4242
4243 PR target/48551
4244 * reload.h (struct target_reload): Make x_double_reg_address_ok
4245 be per-mode rather.
4246 * reload.c (find_reloads_address): Check if double_reg_address_ok
4247 is true for the mode of the memory reference.
4248 * reload1.c (init_reload): Initialize double_reg_address_ok for
4249 each mode.
4250
4251 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4252
4253 PR middle-end/61409
4254 * tree-ssa-uninit.c: Define new global max_phi_args.
4255 (compute_uninit_opnds_pos): Use max_phi_args.
4256 (prune_uninit_phi_opnds): Same.
4257 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4258 missing NUM_PREDS in function comment.
4259 (can_one_predicate_be_invalidated_p): New.
4260 (can_chain_union_be_invalidated_p): New.
4261 (flatten_out_predicate_chains): New.
4262 (uninit_ops_invalidate_phi_use): New.
4263 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4264
4265 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4266
4267 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4268 * match.pd (A /[ex] B CMP C): New simplifications.
4269
4270 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4271
4272 * match.pd (0 / X, X / X, X % X): New simplifications.
4273
4274 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4275
4276 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4277 when checking if callee's isa flags are subset of caller's isa flags.
4278 Fix comment wording.
4279
4280 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4281 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4282 instead and using = 0 instead of &= 0.
4283
4284 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4285 ix86_add_new_builtins): Formatting fixes.
4286 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4287 (ix86_get_builtin): Likewise.
4288
4289 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4290 don't initialize it, don't use it for the case where it isn't
4291 provable %{z} nor using the same argument, instead move merge
4292 argument into a new pseudo and use that as target. Formatting fixes.
4293
4294 2016-11-19 Jeff Law <law@redhat.com>
4295
4296 PR target/25111
4297 * config/m68k/m68k.md (bsetdreg): New pattern.
4298 (bchgdreg, bclrdreg): Likewise.
4299
4300 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4301
4302 PR target/78426
4303 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4304 instead of force_reg.
4305 (sh_expand_setmem): Likewise.
4306
4307 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4308
4309 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4310
4311 2016-11-18 Walter Lee <walt@tilera.com>
4312
4313 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4314 end-of-bundle marker for consecutive barriers.
4315
4316 2016-11-18 Walter Lee <walt@tilera.com>
4317
4318 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4319
4320 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4321
4322 PR middle-end/78419
4323 * multiple_target.c (get_attr_len): Start with argnum and increment
4324 argnum on every arg. Use strchr in a loop instead of counting commas
4325 manually.
4326 (get_attr_str): Increment argnum for every comma in the string.
4327 (separate_attrs): Use for instead of while loop, simplify.
4328 (expand_target_clones): Rename defenition argument to definition.
4329 Free attrs and attr_str even when diagnosing errors. Temporarily
4330 change input_location around targetm.target_option.valid_attribute_p
4331 calls. Don't emit warning or errors if that function fails.
4332
4333 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4334
4335 PR debug/78191
4336 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4337 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4338 abbrev_opt_base_type_end only by increasing die_abbrev, before
4339 any other dies.
4340 (optimize_abbrev_table): Don't change abbrev numbers of
4341 base types and CU or optimize implicit consts in them if
4342 calc_base_type_die_sizes has been called during build_abbrev_table.
4343 (calc_base_type_die_sizes): If abbrev_opt_start, set
4344 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4345
4346 2016-11-18 Jeff Law <law@redhat.com>
4347
4348 PR target/25112
4349 * config/m68k/m68k.c (moveq feeding equality comparison): New
4350 peepholes.
4351 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4352 (equality_comparison_operator): Likewise.
4353
4354 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4355
4356 * rtlanal.c (load_extend_op): Move to...
4357 * rtl.h: ...here and make inline.
4358
4359 2016-11-18 Terry Guo <terry.guo@arm.com>
4360 Thomas Preud'homme <thomas.preudhomme@arm.com>
4361
4362 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4363 * config/arm/arm-opts.h: Include arm-flags.h.
4364 (struct arm_arch_core_flag): Define.
4365 (arm_arch_core_flags): Define.
4366 * config/arm/arm-protos.h: Include arm-flags.h
4367 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4368 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4369 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4370 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4371 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4372 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4373 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4374 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4375 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4376 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4377 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4378 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4379 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4380 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4381 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4382 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4383 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4384 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4385 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4386 ARM_FSET_CPU_SUBSET): Move to ...
4387 * config/arm/arm-flags.h: This new file.
4388 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4389 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4390 (TARGET_MODE_SPECS): Define.
4391 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4392
4393 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4394
4395 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4396 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4397 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4398 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4399 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4400 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4401 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4402 missing and make value unsigned.
4403 (arm_feature_set): Use unsigned entries instead of unsigned long.
4404
4405 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4406
4407 Re-apply after PR bootstrap/77359 is fixed:
4408 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4409
4410 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4411 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4412 size needed.
4413
4414 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4415
4416 PR bootstrap/77359
4417 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4418 variables in functions calling alloca. Also update the ASCII
4419 drawings.
4420 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4421 (STACK_DYNAMIC_OFFSET): Likewise.
4422 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4423 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4424 macros to aix.h.
4425
4426 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4427 Alan Hayward <alan.hayward@arm.com>
4428 David Sherwood <david.sherwood@arm.com>
4429
4430 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4431 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4432 (add_const_value_attribute): Likewise.
4433 * explow.c (plus_constant): Likewise.
4434 * expmed.c (expand_mult, make_tree): Likewise.
4435 * expr.c (convert_modes): Likewise.
4436 * loop-doloop.c (doloop_optimize): Likewise.
4437 * postreload.c (reload_cse_simplify_set): Likewise.
4438 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4439 (simplify_binary_operation_1, simplify_const_binary_operation):
4440 Likewise.
4441 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4442 * wide-int.h: Update documentation to recommend rtx_mode_t
4443 instead of std::make_pair.
4444
4445 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4446 Alan Hayward <alan.hayward@arm.com>
4447 David Sherwood <david.sherwood@arm.com>
4448
4449 * tree.h (SET_DECL_MODE): New macro.
4450 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4451 (expand_gimple_basic_block): Likewise.
4452 * function.c (split_complex_args): Likeise.
4453 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4454 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4455 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4456 (finish_bitfield_representative): Likewise.
4457 * tree.c (make_node_stat): Likewise.
4458 * tree-inline.c (remap_ssa_name): Likewise.
4459 (tree_function_versioning): Likewise.
4460 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4461 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4462 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4463 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4464 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4465 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4466 * varasm.c (make_debug_expr_from_rtl): Likewise.
4467
4468 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4469
4470 PR rtl-optimization/71785
4471 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4472 (duplicate_computed_gotos): New function.
4473 (pass_duplicate_computed_gotos::execute): Rewrite.
4474
4475 2016-11-17 Jeff Law <law@redhat.com>
4476
4477 PR target/47192
4478 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4479 barrier prior to deallocating the stack.
4480
4481 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4482
4483 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4484 to make better use of cmem loads in the case where a single bit is
4485 being accessed.
4486 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4487
4488 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4489
4490 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4491 F_AVX5124FMAPS.
4492 (isa_names_table): Handle new features.
4493
4494 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4495 Andrew Senkevich <andrew.senkevich@intel.com>
4496
4497 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4498 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4499 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4500 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4501 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4502 * config/i386/avx5124fmapsintrin.h: New file.
4503 * config/i386/avx5124vnniwintrin.h: Ditto.
4504 * config/i386/constraints.md (h): New constraint.
4505 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4506 * config/i386/driver-i386.c (host_detect_local_cpu):
4507 Detect avx5124fmaps, avx5124vnniw.
4508 * config/i386/i386-builtin-types.def: Add types
4509 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4510 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4511 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4512 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4513 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4514 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4515 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4516 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4517 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4518 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4519 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4520 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4521 __builtin_ia32_vp4dpwssds_mask): New.
4522 * config/i386/i386-c.c (ix86_target_macros_internal):
4523 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4524 * config/i386/i386-modes.def: Fixed comment typos, added new
4525 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4526 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4527 -mavx5124vnniw.
4528 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4529 (ix86_option_override_internal): Handle new options.
4530 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4531 avx5124vnniw.
4532 (ix86_expand_builtin): Handle new builtins.
4533 (ix86_additional_allocno_class_p): New.
4534 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4535 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4536 (reg_class): Add MOD4_SSE_REGS.
4537 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4538 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4539 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4540 avx5124vnniwintrin.h.
4541 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4542 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4543 (define_mode_iterator IMOD4): New.
4544 (define_mode_attr imod4_narrow): Ditto.
4545 (define_insn "mov<mode>"): Ditto.
4546 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4547 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4548 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4549 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4550 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4551 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4552 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4553 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4554 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4555 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4556 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4557 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4558 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4559 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4560 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4561 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4562 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4563 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4564 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4565 * genmodes.c (mode_size_inline): Extend return type.
4566 * machmode.h (mode_size, mode_base_align): Extend type.
4567
4568 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4569
4570 PR target/78101
4571 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4572 the appropriate checks for SFmode/DFmode load/stores in GPR
4573 registers.
4574 (fusion_addis_mem_combo_store): Likewise.
4575 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4576 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4577 d-form instructions for traditional Altivec registers.
4578 (emit_fusion_p9_load): Likewise.
4579 (emit_fusion_p9_store): Likewise.
4580 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4581 early clobber from scratch register. Do not match if the register
4582 being stored is the scratch register.
4583 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4584 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4585 instructions for traditional Altivec registers.
4586 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4587 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4588 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4589
4590 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4591
4592 PR target/77933
4593 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4594 being live in the function and lr needing to be saved. Distinguish
4595 between already saved pushable registers and registers to push.
4596 Check for LR being an available pushable register.
4597
4598 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4599
4600 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4601 string input is a string constant.
4602 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4603 via cmpstrnsi even if neither string is constant.
4604
4605 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4606
4607 PR middle-end/78201
4608 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4609 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4610 instead, return false if it is NULL, or doesn't fit into uhwi, or
4611 is larger or equal to targetm.max_anchor_offset.
4612
4613 2016-11-17 Pip Cet <pipcet@gmail.com>
4614 Eric Botcazou <ebotcazou@adacore.com>
4615
4616 PR rtl-optimization/78355
4617 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4618 needs to deal with unaligned accesses.
4619 * doc/tm.texi: Regenerate.
4620 * lra-constraints.c (simplify_operand_subreg): Only invoke
4621 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4622
4623 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4624
4625 * input.c (selftest::test_lexer_string_locations_long_line): New
4626 function.
4627 (selftest::test_lexer_string_locations_raw_string_multiline): New
4628 function.
4629 (selftest::input_c_tests): Call the new functions, via
4630 for_each_line_table_case.
4631
4632 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4633
4634 * config/aarch64/aarch64.md (mov<mode>): Call
4635 aarch64_split_dimode_const_store on DImode constant stores.
4636 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4637 New prototype.
4638 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4639 function.
4640
4641 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4642 Richard Biener <rguenther@suse.de>
4643
4644 PR tree-optimization/77848
4645 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4646 the user specified -ftree-loop-if-convert.
4647
4648 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4649
4650 PR target/77308
4651 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4652 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4653 *thumb2_strd_base_neg): Recognize insn regardless of
4654 current_tune->prefer_ldrd_strd.
4655 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4656 whenever possible.
4657
4658 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4659
4660 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4661 instruction type.
4662
4663 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4664
4665 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4666 for arcem.
4667 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4668 * config/arc/arc-cpus.def (quarkse_em): Add.
4669 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4670 * config/arc/arc-opts.h (FPX_QK): Define.
4671 * config/arc/arc-tables.opt: Regenerate.
4672 * config/arc/arc.c (gen_compare_reg): Change.
4673 (arc_register_move_cost): Avoid Dy,Dx moves.
4674 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4675 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4676 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4677 New expands.
4678 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4679 (fix_truncsfsi2_fpu): Rename.
4680 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4681 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4682 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4683 * config/arc/t-multilib: Regenerate.
4684
4685 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4686
4687 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4688 appropriate.
4689 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4690 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4691 (avr_rtx_costs_1, extra_constraint_Q): Same.
4692 (avr_address_cost): Use SUBREG_P if possible.
4693
4694 2016-11-17 Richard Biener <rguenther@suse.de>
4695
4696 PR middle-end/78383
4697 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4698 non-local goto into CFG.
4699
4700 2016-11-17 Richard Biener <rguenther@suse.de>
4701
4702 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4703 backward compatibility.
4704 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4705 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4706 flag_tree_loop_if_convert_stores.
4707 (pass_if_conversion::execute): Likewise.
4708
4709 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4710
4711 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4712 const_double code before calling aarch64_float_const_zero_rtx_p.
4713
4714 2016-11-17 Richard Biener <rguenther@suse.de>
4715
4716 PR tree-optimization/78306
4717 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4718 inhibit inlining if function calls cilk_spawn.
4719 (can_inline_edge_p): Likewise.
4720
4721 2016-11-17 Richard Biener <rguenther@suse.de>
4722
4723 PR middle-end/78305
4724 * fold-const.c (negate_expr_p): Fix multiplication case.
4725
4726 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4727
4728 PR target/78357
4729 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4730 condition.
4731 (TARGET_INIT_LIBFUNCS): Delete definition and...
4732 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4733 comments.
4734
4735 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4736
4737 * config/netbsd-stdint.h: New.
4738 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4739 (x86_64-*-netbsd*): Likewise.
4740
4741 2016-11-16 Andrew PInski <apinski@cavium.com>
4742
4743 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4744 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4745 flag_aarch64_verbose_cost instead of checking for details dump.
4746 (aarch64_rtx_costs_wrapper): Likewise.
4747
4748 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4749
4750 PR rtl-optimization/78378
4751 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4752 inner only if pos is 0. Fix up formatting.
4753
4754 2016-11-17 Alan Modra <amodra@gmail.com>
4755
4756 PR rtl-optimization/78325
4757 PR rtl-optimization/70890
4758 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4759 for dead regno.
4760
4761 2016-11-16 Jason Merrill <jason@redhat.com>
4762
4763 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4764
4765 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4766 Richard Biener <rguenther@suse.de>
4767
4768 PR tree-optimization/77848
4769 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4770 an outer loop, only save basic block aux information for the inner
4771 loop.
4772 (versionable_outer_loop_p): New function.
4773 (tree_if_conversion): Version the outer loop instead of the inner
4774 one if the pattern will be recognized for outer-loop
4775 vectorization.
4776
4777 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4778
4779 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4780 (pass_partition_blocks::gate): No longer check
4781 user_defined_section_attribute, instead check the function decl
4782 for a section attribute.
4783 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4784 set user_defined_section_attribute.
4785 * gcc/final.c (rest_of_handle_final): Likewise.
4786 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4787 * gcc/toplev.h: Remove declaration of
4788 user_defined_section_attribute.
4789
4790 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4791
4792 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4793 Explicitly switch between JR and JRC for the table jump. Adjust
4794 instruction count.
4795
4796 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4797
4798 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4799 `insn_count' to 11 rather than 16.
4800
4801 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4802
4803 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4804 `ltu' rather than `leu' operation in the RTL pattern
4805
4806 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4807
4808 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4809 missing <d> instruction prefixes throughout. Correct
4810 formatting.
4811
4812 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4813
4814 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4815 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4816 cancel short delay slots in PIC call relaxation.
4817
4818 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4819
4820 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4821 general register with general register or ARM constant into SP
4822 register.
4823
4824 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4825
4826 PR fortran/78299
4827 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4828 that loop->header == body_bb if broken_loop.
4829
4830 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4831
4832 * tree-ssa-math-opts.c (bswap_replace): Remove test
4833 of SLOW_UNALIGNED_ACCESS.
4834
4835 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4836
4837 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4838 is selected. Pass -mgomp to offload compiler in OpenMP case.
4839 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4840 declaration from nvptx.c.
4841 (nvptx_gen_shuffle): Declare.
4842 (nvptx_output_set_softstack): Declare.
4843 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4844 (need_softstack_decl): New variable.
4845 (need_unisimt_decl): New variable.
4846 (diagnose_openacc_conflict): New. Use it...
4847 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4848 (nvptx_encode_section_info): Handle "shared" attribute.
4849 (write_as_kernel): Restrict to OpenACC target regions.
4850 (init_softstack_frame): New.
4851 (nvptx_init_unisimt_predicate): New.
4852 (write_omp_entry): New. Use it...
4853 (nvptx_declare_function_name): ...here to emit OpenMP target region
4854 entrypoints. Handle TARGET_SOFT_STACK. Call
4855 nvptx_init_unisimt_predicate.
4856 (nvptx_output_set_softstack): New.
4857 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4858 (nvptx_gen_shuffle): Export.
4859 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4860 predicate.
4861 (nvptx_print_operand): Fix handling of instruction predicates.
4862 (nvptx_get_unisimt_master): New helper function.
4863 (nvptx_get_unisimt_predicate): Ditto.
4864 (nvptx_call_insn_is_syscall_p): Ditto.
4865 (nvptx_unisimt_handle_set): Ditto.
4866 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4867 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4868 (nvptx_handle_shared_attribute): New. Use it...
4869 (nvptx_attribute_table): ... here (new entry).
4870 (nvptx_record_offload_symbol): Handle NULL attributes.
4871 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4872 (nvptx_simt_vf): New.
4873 (TARGET_SIMT_VF): Define.
4874 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4875 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4876 -muniform-simt option is active.
4877 (STACK_SIZE_MODE): Define.
4878 (FIXED_REGISTERS): Adjust.
4879 (SOFTSTACK_SLOT_REGNUM): New.
4880 (SOFTSTACK_PREV_REGNUM): New.
4881 (REGISTER_NAMES): Adjust.
4882 (struct machine_function): New fields.
4883 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4884 (UNSPEC_VOTE_BALLOT): Ditto.
4885 (UNSPEC_LANEID): Ditto.
4886 (UNSPECV_NOUNROLL): Ditto.
4887 (atomic): New attribute.
4888 (predicable): New attribute. Generate predicated forms via
4889 define_cond_exec.
4890 (br_true): Mark as not predicable.
4891 (br_false): Ditto.
4892 (br_true_uni): Ditto.
4893 (br_false_uni): Ditto.
4894 (return): Ditto.
4895 (trap_if_true): Ditto.
4896 (trap_if_false): Ditto.
4897 (nvptx_fork): Ditto.
4898 (nvptx_forked): Ditto.
4899 (nvptx_joining): Ditto.
4900 (nvptx_join): Ditto.
4901 (nvptx_barsync): Ditto.
4902 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4903 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4904 (allocate_stack_<mode>): Remove unused pattern.
4905 (set_softstack_insn): New pattern.
4906 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4907 (nvptx_vote_ballot): New pattern.
4908 (omp_simt_lane): Ditto.
4909 (omp_simt_last_lane): Ditto.
4910 (omp_simt_ordered): Ditto.
4911 (omp_simt_vote_any): Ditto.
4912 (omp_simt_xchg_bfly): Ditto.
4913 (omp_simt_xchg_idx): Ditto.
4914 (nvptx_nounroll): Ditto.
4915 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4916 (atomic_exchange<mode>): Ditto.
4917 (atomic_fetch_add<mode>): Ditto.
4918 (atomic_fetch_addsf): Ditto.
4919 (atomic_fetch_<logic><mode>): Ditto.
4920 * config/nvptx/nvptx.opt (msoft-stack): New option.
4921 (muniform-simt): Ditto.
4922 (mgomp): Ditto.
4923 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4924 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4925 * doc/invoke.texi (msoft-stack): Document.
4926 (muniform-simt): Document
4927 (mgomp): Document.
4928 * doc/tm.texi: Regenerate.
4929 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4930 * target.def: Define it.
4931 * target-insns.def (omp_simt_lane): New.
4932 (omp_simt_last_lane): New.
4933 (omp_simt_ordered): New.
4934 (omp_simt_vote_any): New.
4935 (omp_simt_xchg_bfly): New.
4936 (omp_simt_xchg_idx): New.
4937
4938 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4939
4940 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4941 prototype.
4942 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4943 (ASM_OUTPUT_CASE_END): Likewise.
4944 * config/mips/mips.c (mips_set_text_contents_type): New function.
4945 (mips16_emit_constants): Record the pool's initial label number
4946 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4947 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4948 for `consttable' insns.
4949 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4950 for `consttable_end' insns.
4951 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4952 (consttable): Add operand.
4953 (consttable_end): New insn.
4954
4955 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4956
4957 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4958 * tree-if-conv.c (tree_if_conversion): Make public.
4959 * * tree-if-conv.h: New file.
4960 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4961 dynamic alias checks for epilogues.
4962 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4963 * tree-vect-loop.c: include tree-if-conv.h.
4964 (new_loop_vec_info): Add zeroing orig_loop_info field.
4965 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4966 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4967 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4968 using passed argument.
4969 (vect_transform_loop): Check if created epilogue should be returned
4970 for further vectorization with less vf. If-convert epilogue if
4971 required. Print vectorization success for epilogue.
4972 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4973 if it is required, pass loop_vinfo produced during vectorization of
4974 loop body to vect_analyze_loop.
4975 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4976 orig_loop_info.
4977 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4978 (LOOP_VINFO_EPILOGUE_P): New.
4979 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4980 (vect_do_peeling): Change prototype to return epilogue.
4981 (vect_analyze_loop): Add argument of loop_vec_info type.
4982 (vect_transform_loop): Return created loop.
4983
4984 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4985
4986 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4987 component as used also if LR_REGNO is a live input to the bb.
4988 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4989 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4990 (df_get_exit_block_use_set): Ditto.
4991 * df.h (df_scan_flags): New enum.
4992 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4993 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4994 df_update_entry_block_defs and df_update_exit_block_uses
4995 at the start; clear the flag and call those functions at the end.
4996
4997 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4998 Alan Hayward <alan.hayward@arm.com>
4999 David Sherwood <david.sherwood@arm.com>
5000
5001 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5002 nb_iterations to the number of latch iterations rather than the
5003 number of loop iterations.
5004
5005 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5006 Alan Hayward <alan.hayward@arm.com>
5007 David Sherwood <david.sherwood@arm.com>
5008
5009 * combine.c (maybe_swap_commutative_operands): New function.
5010 (combine_simplify_rtx): Use it.
5011 (change_zero_ext): Likewise.
5012 (make_compound_operation_int): New function, split out of...
5013 (make_compound_operation): ...here. Use
5014 maybe_swap_commutative_operands for both.
5015
5016 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5017
5018 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5019 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5020 * arm/arm-tables.opt: Regenerated.
5021 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5022 neon-vfpv3.
5023 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5024 and 'neon' are aliases for specific implementations.
5025
5026 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5027 Alan Hayward <alan.hayward@arm.com>
5028 David Sherwood <david.sherwood@arm.com>
5029
5030 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5031 and use it in the final call to gen_rtx_fmt_ee.
5032 (expand_vec_cond_expr): Update accordingly.
5033 (expand_vec_cmp_expr): Likewise.
5034
5035 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5036 Alan Hayward <alan.hayward@arm.com>
5037 David Sherwood <david.sherwood@arm.com>
5038
5039 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5040
5041 2016-11-16 Richard Biener <rguenther@suse.de>
5042
5043 PR middle-end/78333
5044 * gimplify.c (gimplify_function_tree): Do not instrument
5045 GNU extern inline functions.
5046
5047 2016-11-16 Martin Liska <mliska@suse.cz>
5048
5049 PR sanitizer/78270
5050 * gimplify.c (gimplify_switch_expr): Always save previous
5051 gimplify_ctxp->live_switch_vars.
5052
5053 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5054
5055 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5056 zero_extract operations to allow a movb to occur.
5057 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5058 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5059 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5060 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5061 little endian arc.
5062
5063 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5064 Alan Hayward <alan.hayward@arm.com>
5065 David Sherwood <david.sherwood@arm.com>
5066
5067 * expr.c (emit_group_load_1): Tighten check for whether an
5068 access involves only one operand of a CONCAT. Use extract_bit_field
5069 for constants if the bit range does span the whole operand.
5070
5071 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5072 Alan Hayward <alan.hayward@arm.com>
5073 David Sherwood <david.sherwood@arm.com>
5074
5075 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5076
5077 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5078 Alan Hayward <alan.hayward@arm.com>
5079 David Sherwood <david.sherwood@arm.com>
5080
5081 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5082 all three iteration counts with an any_* test. Use a single update
5083 for each count. Fix the calculation of nb_iterations_estimate.
5084
5085 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5086
5087 * config/pdp11/pdp11.c: Include dbxout.h.
5088
5089 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5090
5091 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5092
5093 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5094
5095 PR target/78364
5096 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5097 proper ranges for an SBFX instruction.
5098 (extzv_t2): Likewise for UBFX.
5099
5100 2016-11-16 Richard Biener <rguenther@suse.de>
5101
5102 PR tree-optimization/78348
5103 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5104 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5105 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5106 revealed no dependency, PKIND_MEMMOVE otherwise.
5107
5108 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5109
5110 PR sanitizer/77823
5111 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5112 it points to non-NULL tree, use it instead of ubsan_create_data.
5113 (instrument_si_overflow): Handle vector signed integer overflow
5114 checking.
5115 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5116 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5117 vector IFN_UBSAN_CHECK_*.
5118 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5119 pass it through to ubsan_build_overflow_builtin.
5120 (expand_neg_overflow, expand_mul_overflow): Likewise.
5121 (expand_vector_ubsan_overflow): New function.
5122 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5123 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5124 (expand_arith_overflow): Adjust expand_*_overflow callers.
5125
5126 2016-11-16 Matthias Klose <doko@ubuntu.com>
5127
5128 * doc/install.texi: Remove references to java/libjava.
5129
5130 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5131
5132 * tree-ssa-coalesce.c (register_default_def): Remove
5133 register_ssa_partition.
5134 (create_outofssa_var_map): Likewise.
5135 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5136 * tree-ssa-live.h (register_ssa_partition): Likewise.
5137
5138 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5139
5140 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5141 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5142 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5143 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5144 rtx when all sub-rtx are also permanent.
5145 (attr_eq): Simplify.
5146 (attr_copy_rtx): Remove.
5147 (make_canonical, get_attr_value): Use attr_equal_p.
5148 (copy_boolean): Rehash NOT.
5149 (simplify_test_exp_in_temp,
5150 optimize_attrs): Remove call to attr_copy_rtx.
5151 (attr_alt_intersection, attr_alt_union,
5152 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5153 (make_automaton_attrs): Use attr_eq.
5154
5155 2016-11-15 Matthias Klose <doko@ubuntu.com>
5156
5157 * doc/install.texi: Remove references to java/libjava.
5158 * doc/sourcebuild.texi: Likewise.
5159 * doc/invoke.texi: Likewise.
5160 * doc/standards.texi: Likewise.
5161
5162 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5163 Alan Hayward <alan.hayward@arm.com>
5164 David Sherwood <david.sherwood@arm.com>
5165
5166 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5167 of VOIDmode.
5168 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5169 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5170 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5171 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5172 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5173 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5174 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5175
5176 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5177 Alan Hayward <alan.hayward@arm.com>
5178 David Sherwood <david.sherwood@arm.com>
5179
5180 * dce.c (check_argument_store): Pass the size instead of
5181 the memory reference.
5182 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5183
5184 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5185 Alan Hayward <alan.hayward@arm.com>
5186 David Sherwood <david.sherwood@arm.com>
5187
5188 * alias.c (canon_rtx): Use simplify_gen_binary.
5189
5190 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5191 Alan Hayward <alan.hayward@arm.com>
5192 David Sherwood <david.sherwood@arm.com>
5193
5194 * rtl.h (load_extend_op): Declare.
5195 * rtlanal.c (load_extend_op): New function.
5196 (nonzero_bits1): Use it.
5197 (num_sign_bit_copies1): Likewise.
5198 * cse.c (cse_insn): Likewise.
5199 * fold-const.c (fold_single_bit_test): Likewise.
5200 (fold_unary_loc): Likewise.
5201 * fwprop.c (free_load_extend): Likewise.
5202 * postreload.c (reload_cse_simplify_set): Likewise.
5203 (reload_cse_simplify_operands): Likewise.
5204 * combine.c (try_combine): Likewise.
5205 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5206 subreg_lowpart_p checks.
5207
5208 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5209 Alan Hayward <alan.hayward@arm.com>
5210 David Sherwood <david.sherwood@arm.com>
5211
5212 * combine.c (simplify_shift_const_1): Use the number of bits
5213 in the inner mode to determine the range of the shift.
5214 When handling shifts of vectors, skip any rules that apply
5215 only to scalars.
5216
5217 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5218 Alan Hayward <alan.hayward@arm.com>
5219 David Sherwood <david.sherwood@arm.com>
5220
5221 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5222 handling VOIDmode.
5223
5224 2016-11-15 Matthias Klose <doko@ubuntu.com>
5225
5226 * doc/install.texi: Remove references to gcj/libjava.
5227 * doc/invoke.texi: Likewise.
5228
5229 2016-11-15 Jeff Law <law@redhat.com>
5230
5231 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5232 parameter. Callers changed.
5233 (check-subpath_and_update_thread_path): Extracted from
5234 fsm_find_control_statement_thread_paths.
5235 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5236 (handle_phi, handle_assignment): Allow any constant node, not
5237 just INTEGER_CST.
5238
5239 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5240
5241 * config/arc/arc-arch.h: New file.
5242 * config/arc/arc-arches.def: Likewise.
5243 * config/arc/arc-cpus.def: Likewise.
5244 * config/arc/arc-options.def: Likewise.
5245 * config/arc/t-multilib: Likewise.
5246 * config/arc/genmultilib.awk: Likewise.
5247 * config/arc/genoptions.awk: Likewise.
5248 * config/arc/arc-tables.opt: Likewise.
5249 * config/arc/driver-arc.c: Likewise.
5250 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5251 * common/config/arc/arc-common.c (arc_handle_option): Trace
5252 toggled options.
5253 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5254 options; check for supported cpu against arc-cpus.def file.
5255 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5256 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5257 * config/arc/arc-c.def: Add emacs local variables.
5258 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5259 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5260 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5261 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5262 (DEFAULT_arc_fpu_build): Define.
5263 (DEFAULT_arc_mpy_option): Define.
5264 * config/arc/arc-protos.h (arc_init): Delete.
5265 * config/arc/arc.c (arc_cpu_name): New variable.
5266 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5267 (arc_arc700, arc_arc600, arc_arc601): New variable.
5268 (arc_init): Add static; remove selection of default tune value,
5269 cleanup obsolete error messages.
5270 (arc_override_options): Make use of .def files for selecting the
5271 right cpu and option configurations.
5272 * config/arc/arc.h (stdbool.h): Include.
5273 (TARGET_CPU_DEFAULT): Define.
5274 (CPP_SPEC): Remove mcpu=NPS400 handling.
5275 (arc_cpu_to_as): Declare.
5276 (EXTRA_SPEC_FUNCTIONS): Define.
5277 (OPTION_DEFAULT_SPECS): Likewise.
5278 (ASM_DEFAULT): Remove.
5279 (ASM_SPEC): Use arc_cpu_to_as.
5280 (DRIVER_SELF_SPECS): Remove deprecated options.
5281 (arc_base_cpu): Declare.
5282 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5283 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5284 variable.
5285 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5286 * config/arc/arc.md (attr_cpu): Remove.
5287 * config/arc/arc.opt (mno-mpy): Deprecate.
5288 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5289 (mcpu=ARCHS): Remove.
5290 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5291 Deprecate.
5292 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5293 (arc_fpu): Use new defines.
5294 (mpy-option): Change to use numeric or string like inputs.
5295 * config/arc/t-arc (driver-arc.o): New target.
5296 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5297 * config/arc/t-arc-newlib: Delete.
5298 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5299 * doc/invoke.texi (ARC): Update arc options.
5300
5301 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5302
5303 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5304 insn at the beginning of the constant pool.
5305 (mips_insert_insn_pseudos): New function.
5306 (mips_machine_reorg2): Call it.
5307 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5308 UNSPEC_INSN_PSEUDO enum values.
5309 (insn_pseudo, consttable): New insns.
5310
5311 2016-11-15 Michael Matz <matz@suse.de>
5312
5313 PR missed-optimization/77881
5314 * combine.c (simplify_comparison): Remove useless subregs
5315 also inside the loop, not just after it.
5316 (make_compound_operation): Recognize some subregs as being
5317 masking as well.
5318
5319 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5320 Alan Hayward <alan.hayward@arm.com>
5321 David Sherwood <david.sherwood@arm.com>
5322
5323 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5324 GET_MODE_SIZE typo.
5325
5326 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5327
5328 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5329 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5330
5331 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5332 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5333 vinsert{b,h} on ISA 3.0.
5334
5335 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5336
5337 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5338 and cmpnop in two steps: first the ones not accessed in original gimple
5339 expression in a endian independent way and then the ones not accessed
5340 in the final result in an endian-specific way.
5341 (bswap_replace): Stop doing big endian adjustment.
5342
5343 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5344
5345 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5346 (*ashl<mode>3_doubleword): Ditto.
5347
5348 2016-11-14 Martin Liska <mliska@suse.cz>
5349
5350 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5351
5352 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5353 Richard Biener <rguenther@suse.de>
5354
5355 * doc/invoke.texi (fgimple): Document.
5356 * dumpfile.h (TDF_GIMPLE): Add.
5357 * dumpfile.c (dump_options): Add gimple.
5358 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5359 for TDF_GIMPLE.
5360 (dump_gimple_label): Likewise.
5361 (dump_gimple_phi): Likewise.
5362 (dump_gimple_bb_header): Likewise.
5363 (dump_phi_nodes): Likewise.
5364 (pp_cfg_jump): Likewise. Pass in dump flags.
5365 (dump_implicit_edges): Adjust.
5366 * passes.c (pass_init_dump_file): Do not dump function header
5367 for TDF_GIMPLE.
5368 * tree-cfg.c (dump_function_to_file): Dump function return type
5369 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5370 GIMPLE stmts.
5371 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5372 (dump_generic_node): Likewise.
5373 * function.h (struct function): Add pass_startwith member.
5374 * passes.c (execute_one_pass): Implement startwith.
5375 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5376 and assign proper version for parsed ssa names.
5377 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5378 * internal-fn.c (expand_PHI): New function.
5379 * internal-fn.h (expand_PHI): Declared here.
5380 * internal-fn.def: New defination for PHI.
5381 * tree-cfg.c (lower_phi_internal_fn): New function.
5382 (build_gimple_cfg): Call it.
5383 (verify_gimple_call): Condition for passing label as arg in internal
5384 function PHI.
5385 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5386 present PHIs with arguments.
5387
5388 2016-11-14 Martin Liska <mliska@suse.cz>
5389
5390 PR bootstrap/78069
5391 * common.opt: Add prefer-atomic as a new enum value for
5392 -fprofile-update.
5393 * coretypes.h: Likewise.
5394 * doc/invoke.texi: Document the new option value.
5395 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5396 * tree-profile.c (tree_profiling): Select default value
5397 of -fprofile-update when 'prefer-atomic' is selected.
5398
5399 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5400
5401 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5402 (cortex_a57_alu_shift): ...here.
5403
5404 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5405
5406 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5407 Use bfx attribute.
5408 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5409 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5410 (<optab>si3_insn_uxtw): Likewise.
5411 (<optab><mode>3_insn): Likewise.
5412 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5413 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5414 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5415 (<optab><mode>): Likewise.
5416 (insv<mode>): Likewise.
5417 (andim_ashift<mode>_bfiz): Likewise.
5418 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5419 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5420 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5421 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5422 (exynos_m1_alu_p): Likewise.
5423 * config/arm/types.md: Add bfx.
5424 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5425
5426 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5427
5428 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5429 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5430
5431 2016-11-14 Richard Biener <rguenther@suse.de>
5432
5433 PR tree-optimization/78312
5434 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5435 flow-sensitive info.
5436
5437 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5438
5439 PR target/78093
5440 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5441 * config/avr/avr.opt (-mabsdata): New option.
5442 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5443 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5444 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5445 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5446 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5447 spec depending on AVR_ISA_LDS.
5448 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5449
5450 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5451
5452 * match.pd: Don't try to compare addresses of variables with
5453 DECL_VALUE_EXPR.
5454
5455 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5456
5457 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5458 (propagate_vr_accross_jump_function): Handle unary expressions.
5459 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5460 (load_from_param_1): New.
5461 (load_from_unmodified_param): Factor common part into load_from_param_1.
5462 (load_from_param): New.
5463 (compute_complex_assign_jump_func): Handle unary expressions.
5464 (update_jump_functions_after_inlining): Likewise.
5465 (ipa_write_jump_function): Likewise.
5466 (ipa_read_jump_function): Likewise.
5467
5468 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5469
5470 PR c/35503
5471 * doc/invoke.texi: Document Wrestrict.
5472 * pretty-print.c (pp_format): Add case for "Z" specifier.
5473 (test_pp_format): Test "Z" specifier.
5474
5475 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5476
5477 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5478 original function needs a static chain.
5479
5480 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5481
5482 PR target/78336
5483 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5484 ASM_OUTPUT_DEF.
5485
5486 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5487
5488 PR target/77957
5489 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5490 return early if !optional_tbtab.
5491
5492 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5493
5494 PR rtl-optimization/59461
5495 * doc/rtl.texi (paradoxical subregs): Add missing word.
5496 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5497 in modes with precision larger than that of last_set_mode.
5498 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5499 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5500 REGs to paradoxical SUBREGs.
5501 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5502 larger than a word before invoking LOAD_EXTEND_OP on it.
5503
5504 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5505
5506 PR target/78243
5507 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5508 element order for little endian ordering.
5509
5510 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5511 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5512 number.
5513
5514 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5515
5516 PR target/78310
5517 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5518 when calculating operand 2.
5519 (rotate to rotatex zext splitter): Ditto.
5520
5521 2016-11-11 Jeff Law <law@redhat.com>
5522
5523 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5524 function.
5525 (stmt_uses_name_in_undefined_way): New function, extracted from
5526 find_implicit_erroneous_behavior and extended for div/mod case.
5527 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5528 find_explicit_erroneous_behavior and extended for div/mod case.
5529 (find_implicit_erroneous_behavior): Use new helper function.
5530 (find_explicit_erroneous_behavior): Use new helper function.
5531
5532 2016-11-11 Richard Biener <rguenther@suse.de>
5533
5534 PR tree-optimization/71575
5535 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5536 bogus assert.
5537
5538 2016-11-11 Richard Biener <rguenther@suse.de>
5539
5540 PR middle-end/78295
5541 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5542 about uninitialized destination arg of BIT_INSERT_EXPR.
5543
5544 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5545
5546 PR c/37998
5547 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5548 terminology. Expand to remove ambiguity.
5549
5550 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5551
5552 PR rtl-optimization/78232
5553 * combine.c (try_combine): Add a big comment about why reusing i2dest
5554 is undesirable.
5555 (change_zero_ext): Do not call simplify_gen_binary, do the
5556 simplifications manually.
5557
5558 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5559
5560 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5561 enable HImode and QImode to go in vector registers by default if
5562 the -mvsx-small-integer option is enabled.
5563 (rs6000_secondary_reload_simple_move): Likewise.
5564 (rs6000_preferred_reload_class): Don't force integer constants to
5565 be loaded into vector registers that we can easily make into
5566 memory (or being created in the GPRs and moved over with direct move).
5567 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5568 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5569 vector extraction on ISA 3.0 when the scalar integer can be
5570 allocated in vector registers. Generate the VEC_SELECT directy,
5571 and don't use UNSPEC's to avoid having the scalar type in a vector
5572 register. Make the expander target registers, and let the
5573 combiner fold in results storing to memory, if the machine
5574 supports stores.
5575 (vsx_extract_<mode>_di): Likewise.
5576 (vsx_extract_<mode>_p9): Likewise.
5577 (vsx_extract_<mode>_di_p9): Likewise.
5578 (vsx_extract_<mode>_store_p9): Likewise.
5579 (vsx_extract_si): Likewise.
5580 (vsx_extract_<mode>_p8): Likewise.
5581 (p9_lxsi<wd>zx): Delete, no longer used.
5582 (p9_stxsi<wd>x): Likewise.
5583 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5584 integers in vector registers for ISA 3.0.
5585 (QHI): Update comment.
5586 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5587 vector extract instructions in sign/zero extend.
5588 (zero_extendhi<mode>): Likewise.
5589 (extendqi<mode>): Likewise.
5590 (extendhi<mode>2): Likewise.
5591 (HImode splitter for load/sign extend in vector register): Likewise.
5592 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5593 optimizing floating point conversions to/from small data types and
5594 rewrite it to support QImode/HImode being allowed in vector
5595 registers on ISA 3.0.
5596 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5597 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5598 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5599 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5600 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5601 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5602 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5603 VSPLITISW on ISA 2.07.
5604 (movhi_internal): Combine movhi_internal and movqi_internal into
5605 one mov<mode>_internal with an iterator. Add support for QImode
5606 and HImode being allowed in vector registers. Make large number
5607 of attributes and constraints easier to read.
5608 (movqi_internal): Likewise.
5609 (mov<mode>_internal): Likewise.
5610 (movdi_internal64): Fix constraint to allow loading -16..15 with
5611 VSPLITISW on ISA 2.07.
5612 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5613 well as DImode.
5614
5615 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5616
5617 PR rtl-optimization/78241
5618 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5619 but emit initial peel copy if niter expr is not reliable.
5620
5621 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5622
5623 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5624 (maybe_record_trace_start): If the CFI is different on the new and
5625 old paths, print out both to the dump file before ICEing.
5626
5627 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5628
5629 * target.def (additional_allocno_class_p): New.
5630 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5631 * hooks.c (hook_bool_reg_class_t_false): New.
5632 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5633 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5634 * doc/tm.texi: Update.
5635
5636 2016-11-10 Jason Merrill <jason@redhat.com>
5637
5638 * gengtype.c (new_structure): Append to structures list.
5639 (find_structure): Likewise.
5640
5641 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5642
5643 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5644 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5645 check.
5646
5647 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5648
5649 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5650 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5651 TRUNC_DIV_EXPR.
5652 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5653 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5654 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5655 teams distribute parallel for simd even to distribute and teams
5656 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5657 OMP_CLAUSE_DEPEND_SINK case.
5658 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5659 (omp_no_lastprivate): Removed.
5660 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5661 (gimplify_omp_for): Likewise.
5662 (computable_teams_clause): Fail for automatic vars from current
5663 function not yet seen in bind expr.
5664 * langhooks.c (lhd_omp_scalar_p): New function.
5665 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5666 * varpool.c (varpool_node::get_create): Set node->offloading
5667 even for DECL_EXTERNAL decls.
5668 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5669 (LANG_HOOKS_OMP_SCALAR_P): Define.
5670 (LANG_HOOKS_DECLS): Use it.
5671
5672 2016-11-10 Martin Liska <mliska@suse.cz>
5673
5674 PR sanitizer/78270
5675 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5676 only when SWITCH_BODY is a BIND_EXPR.
5677
5678 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5679
5680 PR debug/78112
5681 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5682 on the context only when it has no DIE yet.
5683
5684 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5685
5686 * arm.h (target_cpus): Delete.
5687 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5688 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5689 (all_architectures): Likewise.
5690 (arm_option_override): Adjust use of CPU enums.
5691 (arm_sched_reorder): Likewise.
5692 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5693 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5694 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5695 TARGET_CPU_.
5696 * arm-tables.opt: Regenerated.
5697
5698 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5699
5700 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5701 (falkor): New core.
5702 * config/aarch64/aarch64-tune.md: Regenerated.
5703 * config/arm/arm-cores.def (falkor): New core.
5704 * config/arm/arm-tables.opt: Regenerated.
5705 * config/arm/arm-tune.md: Regenerated.
5706 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5707 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5708 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5709 (ARM Options/-mtune): Likewise.
5710
5711 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5712
5713 Revert
5714 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5715
5716 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5717 (propagate_vr_accross_jump_function): Likewise.
5718 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5719 (load_from_param_1): New.
5720 (load_from_unmodified_param): Factor common part into load_from_param_1.
5721 (load_from_param): New.
5722 (compute_complex_assign_jump_func): Handle unary expressions.
5723 (ipa_write_jump_function): Likewise.
5724 (ipa_read_jump_function): Likewise.
5725
5726 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5727
5728 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5729 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5730 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5731 is a const_int.
5732
5733 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5734
5735 * print-rtl-function.c: Include varasm.h.
5736 (print_any_param_name): New function.
5737 (print_param): New function.
5738 (print_rtx_function): Call print_param for each argument.
5739 * print-rtl.c (rtx_writer::finish_directive): New function.
5740 * print-rtl.h (rtx_writer::finish_directive): New decl.
5741
5742 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5743
5744 PR target/78262
5745 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5746 operand 0 as earlyclobber.
5747 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5748
5749 2016-11-09 Martin Liska <mliska@suse.cz>
5750
5751 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5752
5753 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5754
5755 PR target/77718
5756 * builtins.c (expand_builtin_memcmp): Formatting fix.
5757
5758 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5759 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5760 or of them, renumber other enumerators.
5761 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5762 * doc/invoke.texi: Document -fsanitize=shift-base and
5763 -fsanitize-shift-exponent, document -fsanitize=shift as
5764 having those 2 suboptions.
5765
5766 2016-11-09 Richard Biener <rguenther@suse.de>
5767
5768 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5769 * fold-const.c (tree_swap_operands_p): Likewise.
5770 (fold_binary_loc): Adjust.
5771 (fold_ternary_loc): Likewise.
5772 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5773 * gimple-fold.c (fold_stmt_1): Likewise.
5774 * gimple-match-head.c (gimple_resimplify2): Likewise.
5775 (gimple_resimplify3): Likewise.
5776 (gimple_simplify): Likewise.
5777 * tree-ssa-dom.c (record_equality): Likewise.
5778 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5779 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5780 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5781
5782 2016-11-09 Richard Biener <rguenther@suse.de>
5783
5784 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5785 (optimize_stmt): Remove redundant pre-propagation canonicalization
5786 of comparison operand order.
5787
5788 2016-11-09 Martin Liska <mliska@suse.cz>
5789
5790 * fold-const-call.c (fold_const_call): Fix the folding.
5791
5792 2016-11-09 Richard Biener <rguenther@suse.de>
5793
5794 * common.opt (flag_evaluation_order): Remove.
5795 * expr.c (expand_operands): Remove code guarded by
5796 flag_evaluation_order.
5797 * fold-const.c (reorder_operands_p): Remove, it always returns
5798 true.
5799 (negate_expr_p): Remove calls to reorder_operands_p.
5800 (fold_negate_expr): Likewise.
5801 (tree_swap_operands_p): Likewise.
5802 (fold_binary_loc): Likewise.
5803
5804 2016-11-09 Andreas Schwab <schwab@suse.de>
5805
5806 PR target/78254
5807 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5808 insns operating on a register.
5809
5810 2016-11-09 Richard Biener <rguenther@suse.de>
5811
5812 PR tree-optimization/78007
5813 * tree-vect-stmts.c (vectorizable_bswap): New function.
5814 (vectorizable_call): Call vectorizable_bswap for
5815 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5816
5817 2016-11-09 Richard Biener <rguenther@suse.de>
5818
5819 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5820 Look at the DR_BASE_ADDRESS object for forcing alignment.
5821
5822 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5823
5824 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5825 (propagate_vr_accross_jump_function): Likewise.
5826 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5827 (load_from_param_1): New.
5828 (load_from_unmodified_param): Factor common part into load_from_param_1.
5829 (load_from_param): New.
5830 (compute_complex_assign_jump_func): Handle unary expressions.
5831 (ipa_write_jump_function): Likewise.
5832 (ipa_read_jump_function): Likewise.
5833
5834 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5835
5836 PR ipa/78121
5837 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5838 Also fold constant passed as argument while computing value range.
5839 (propagate_constants_accross_call): Pass param type.
5840 * ipa-prop.c: export ipa_get_callee_param_type.
5841 * ipa-prop.h: export ipa_get_callee_param_type.
5842
5843 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5844
5845 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5846 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5847
5848 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5849
5850 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5851 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5852 ASAN_STACK_MAGIC_MIDDLE.
5853 (asan_global_struct): Increase the size of fields.
5854 (asan_add_global): Add new field constructor.
5855 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5856 __asan_version_mismatch_check_v8.
5857
5858 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5859
5860 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5861 at runtime.
5862
5863 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5864
5865 PR target/70799
5866 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5867 Handle ASHIFT and LSHIFTRT.
5868 (dimode_scalar_chain::compute_convert_gain): Ditto.
5869 (dimode_scalar_chain::convert_insn): Ditto.
5870
5871 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5872
5873 * gimple-ssa-store-merging.c: Include selftest.h
5874 (verify_array_eq): New function.
5875 (verify_shift_bytes_in_array): Likewise.
5876 (verify_shift_bytes_in_array_right): Likewise.
5877 (verify_clear_bit_region): Likewise.
5878 (verify_clear_bit_region_be): Likewise.
5879 (store_merging_c_tests): Likewise.
5880 * selftest.h (store_merging_c_tests): Declare prototype.
5881 * selftest-run-tests.c (selftest::run_tests): Run
5882 store_merging_c_tests.
5883
5884 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5885
5886 * config/arm/arm.opt (mold-rtx-costs): Delete.
5887 (mnew-generic-costs): Delete.
5888 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5889 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5890 (arm_size_rtx_costs): Likewise.
5891 (arm_slowmul_rtx_costs): Likewise.
5892 (arm_fastmul_rtx_costs): Likewise.
5893 (arm_xscale_rtx_costs): Likewise.
5894 (arm_9e_rtx_costs): Likewise.
5895 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5896 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5897 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5898 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5899 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5900 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5901 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5902 arm_cortex_m7_tune):
5903 Delete rtx_costs field.
5904 (arm_new_rtx_costs): Rename to...
5905 (arm_rtx_costs_internal): ... This.
5906 (arm_rtx_costs): Remove old way of doing rtx costs.
5907
5908 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909
5910 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5911 (arm_fastmul_tune): Likewise.
5912 (arm_strongarm_tune): Likewise.
5913 (arm_xscale_tune): Likewise.
5914 (arm_9e_tune): Likewise.
5915 (arm_marvell_pj4_tune): Likewise.
5916 (arm_v6t2_tune): Likewise.
5917 (arm_v6m_tune): Likewise.
5918 (arm_fa726te_tune): Likewise.
5919
5920 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5921
5922 PR tree-optimization/78234
5923 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5924 in start != 0 case.
5925
5926 2016-11-08 Martin Liska <mliska@suse.cz>
5927
5928 PR testsuite/78242
5929 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5930 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5931 with a value expr. Do not add artificial variables to
5932 live_switch_vars. Use the debug counter.
5933 (gimplify_target_expr): Use the debug counter.
5934 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5935 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5936 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5937
5938 2016-11-08 Richard Biener <rguenther@suse.de>
5939
5940 * tree-vect-stmts.c (get_group_load_store_type): If the
5941 access is aligned do not trigger peeling for gaps.
5942 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5943 force alignment of vars with DECL_USER_ALIGN.
5944
5945 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5946
5947 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5948
5949 2016-11-08 Richard Biener <rguenther@suse.de>
5950
5951 PR tree-optimization/78205
5952 * tree-vect-stmts.c (vectorizable_load): Move check whether
5953 we may run into gaps when BB vectorizing SLP permutations ...
5954 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5955 here where we can do a more precise check.
5956
5957 2016-11-08 Richard Biener <rguenther@suse.de>
5958
5959 PR tree-optimization/78224
5960 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5961 Split the fallthru edge in case its successor may have PHIs.
5962 Do not free dominance info.
5963
5964 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5965
5966 PR target/78229
5967 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5968 EH info even for bzhi and pdep/pext.
5969
5970 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5971
5972 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5973 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5974
5975 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5976
5977 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5978 if appropriate.
5979 * config/rs6000/vector.md (div<mode>3): Ditto.
5980
5981 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5982
5983 * configure.ac (.hidden): Change to conftest_s string. Provide string
5984 for AIX assembler.
5985 (gcc_cv_ld_hidden): Yes for AIX.
5986 * configure: Regenerate.
5987
5988 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5989
5990 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5991 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5992 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5993 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5994 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5995 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5996 from #if to if.
5997 (rs6000_xcoff_visibility): New.
5998 (rs6000_xcoff_declare_function_name): Add visibility support.
5999 (rs6000_xcoff_asm_globalize_decl_name): New.
6000 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6001 (rs6000_asm_weaken_decl): New.
6002 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6003 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6004 reference function.
6005
6006 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6007
6008 PR driver/78206
6009 * incpath.c (remove_dup): Also silently ignore EPERM.
6010
6011 2016-11-07 Martin Jambor <mjambor@suse.cz>
6012
6013 * tree.c (verify_type_variant): Use pointer comparison to check that
6014 TYPE_SIZE_UNIT match.
6015
6016 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6017
6018 PR target/77834
6019 * dse.c (dse_step5): Call scan_reads even if just
6020 insn_info->frame_read. Improve and fix dump file messages.
6021
6022 PR target/78227
6023 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6024 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6025
6026 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6027
6028 PR middle-end/35691
6029 * match.pd: Add following two patterns:
6030 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6031 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6032
6033 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6034
6035 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6036 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6037 * rtl.h (duplicate_reg_notes): Declare.
6038 * rtlanal.c (duplicate_reg_note): New function.
6039
6040 PR rtl-optimization/77309
6041 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6042 don't assume an equality comparison for plain COMPARE.
6043 (simplify_comparison): Pass a more accurate code to
6044 make_compound_operation.
6045
6046 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6047
6048 * target.def (compute_pressure_classes): New target hook.
6049 * doc/tm.texi.in: Document it.
6050 * doc/tm.texi: Regenerate.
6051 * ira.c (setup_pressure_classes): Call target hook if defined.
6052
6053 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6054
6055 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6056 method.
6057 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6058 that have the default values.
6059 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6060 method.
6061 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6062 label string from expected dump.
6063 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6064 from expected dump.
6065
6066 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6067
6068 PR target/77834
6069 * alias.c (nonoverlapping_memrefs_p): If one decl is
6070 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6071
6072 2016-11-07 Richard Biener <rguenther@suse.de>
6073
6074 PR target/78229
6075 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6076 EH info.
6077
6078 2016-11-07 Richard Biener <rguenther@suse.de>
6079
6080 PR tree-optimization/78218
6081 * gimple-ssa-store-merging.c
6082 (pass_store_merging::terminate_all_aliasing_chains):
6083 Drop unused argument, fix alias check to also consider uses.
6084 (pass_store_merging::execute): Adjust.
6085
6086 2016-11-07 Richard Biener <rguenther@suse.de>
6087
6088 PR tree-optimization/78228
6089 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6090 undefined behavior.
6091
6092 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6093
6094 PR target/77822
6095 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6096 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6097 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6098 to restrict them to an appropriate range and add FAIL check if the
6099 region they specify is out of range. Delete useless constraint
6100 strings.
6101 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6102 2 and 3 to restrict their range and add pattern predicate.
6103
6104 2016-11-07 Martin Liska <mliska@suse.cz>
6105
6106 * asan.c (enum asan_check_flags): Move the enum to header file.
6107 (asan_init_shadow_ptr_types): Make type creation more generic.
6108 (shadow_mem_size): New function.
6109 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6110 Rewritten stack unpoisoning code.
6111 (build_shadow_mem_access): Add new argument return_address.
6112 (instrument_derefs): Instrument local variables if use after scope
6113 sanitization is enabled.
6114 (asan_store_shadow_bytes): New function.
6115 (asan_expand_mark_ifn): Likewise.
6116 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6117 * asan.h (enum asan_mark_flags): Moved here from asan.c
6118 (asan_protect_stack_decl): Protect all declaration that need
6119 to live in memory.
6120 (asan_sanitize_use_after_scope): New function.
6121 (asan_no_sanitize_address_p): Likewise.
6122 * cfgexpand.c (partition_stack_vars): Consider
6123 asan_sanitize_use_after_scope in condition.
6124 (expand_stack_vars): Likewise.
6125 * common.opt (-fsanitize-address-use-after-scope): New option.
6126 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6127 Explain the parameter.
6128 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6129 * gimplify.c (build_asan_poison_call_expr): New function.
6130 (asan_poison_variable): Likewise.
6131 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6132 variables that have address taken.
6133 (gimplify_decl_expr): Likewise.
6134 (gimplify_target_expr): Likewise for C++ temporaries.
6135 (sort_by_decl_uid): New function.
6136 (gimplify_expr): Unpoison all variables for a label we can jump
6137 from outside of a scope.
6138 (gimplify_switch_expr): Unpoison variables defined in the switch
6139 context.
6140 (gimplify_function_tree): Clear asan_poisoned_variables.
6141 (asan_poison_variables): New function.
6142 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6143 * internal-fn.c (expand_ASAN_MARK): New function.
6144 * internal-fn.def (ASAN_MARK): Declare.
6145 * opts.c (finish_options): Handle -fstack-reuse if
6146 -fsanitize-address-use-after-scope is enabled.
6147 (common_handle_option): Enable address sanitization if
6148 -fsanitize-address-use-after-scope is enabled.
6149 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6150 New parameter.
6151 * params.h: Likewise.
6152 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6153 * sanitizer.def: Define __asan_poison_stack_memory and
6154 __asan_unpoison_stack_memory functions.
6155 * asan.c (asan_mark_poison_p): New function.
6156 (transform_statements): Handle asan_mark_poison_p calls.
6157 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6158
6159 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6160
6161 PR driver/78196
6162 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6163
6164 2016-11-07 Martin Liska <mliska@suse.cz>
6165
6166 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6167 to time_profiler_counter_ptr.
6168
6169 2016-11-07 Richard Biener <rguenther@suse.de>
6170
6171 PR tree-optimization/37150
6172 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6173 parameter.
6174 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6175 (vect_analyze_slp_cost_1): Account for the real number of
6176 permutations emitted and for dead loads.
6177 (vect_transform_slp_perm_load): Add n_perms parameter counting
6178 the number of emitted permutations.
6179 * tree-vect-stmts.c (vectorizable_load): Adjust.
6180
6181 2016-11-07 Richard Biener <rguenther@suse.de>
6182
6183 PR tree-optimization/78189
6184 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6185 alignment computation.
6186
6187 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6188
6189 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6190
6191 2016-11-05 Martin Sebor <msebor@redhat.com>
6192
6193 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6194 documentation.
6195
6196 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6197
6198 PR bootstrap/78188
6199 PR c++/71848
6200 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6201
6202 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6203
6204 PR target/77834
6205 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6206 doesn't have rtl set.
6207
6208 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6209
6210 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6211 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6212 rs6000_gimple_fold_builtin.
6213 (rs6000_gimple_fold_builtin): New function. Add handling for
6214 early expansion of vector addition builtins.
6215
6216 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6217
6218 * expr.h (copy_blkmode_from_reg): Delete.
6219 * expr.c (copy_blkmode_from_reg): Make static.
6220
6221 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6222
6223 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6224 * combine.c (LOAD_EXTEND_OP): Delete.
6225 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6226 * cse.c (LOAD_EXTEND_OP): Delete.
6227 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6228 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6229 * postreload.c (LOAD_EXTEND_OP): Delete.
6230 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6231 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6232 (find_reloads): Likewise.
6233 * reload1.c (eliminate_regs_1): Likewise.
6234 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6235 (num_sign_bit_copies1): Likewise.
6236
6237 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6238
6239 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6240 (selftest::ix86_test_dumping_hard_regs): New function.
6241 (selftest::ix86_run_selftests): New function.
6242 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6243 selftest::ix86_run_selftests.
6244 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6245 * doc/tm.texi: Regenerate
6246 * selftest-rtl.h: New file.
6247 * rtl-tests.c: Include "selftest-rtl.h".
6248 (selftest::assert_rtl_dump_eq): Make non-static.
6249 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6250 (selftest::test_dumping_regs): Update comment.
6251 * selftest-run-tests.c: Include "target.h".
6252 (selftest::run_tests): If non-NULL, call
6253 targetm.run_target_selftests.
6254 * target.def (run_target_selftests): New hook.
6255
6256 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6257
6258 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6259 representative core for this architecture.
6260 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6261 * config/arm/arm-tables.opt: Regenerate.
6262 * config/arm/arm-tune.md: Likewise.
6263 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6264 valid -mcpu options.
6265 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6266
6267 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6268
6269 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6270 representative core for this architecture.
6271 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6272 * config/arm/arm-tables.opt: Regenerate.
6273 * config/arm/arm-tune.md: Likewise.
6274 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6275 this tuning parameters apply to in the comment.
6276 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6277 valid -mcpu options.
6278 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6279
6280 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6281
6282 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6283 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6284 where cond_expr can't be a lvalue.
6285
6286 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6287
6288 * config/arc/arc.c (arc_process_double_reg_moves): Use
6289 gen_dexcl_2op call.
6290 * config/arc/arc.md (movsi_insn): Disable unsupported move
6291 instructions for ARCv2 cores.
6292 (movdi): Use prepare_move_operands.
6293 (movsf, movdf): Use move_dest_operand predicate.
6294 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6295 present.
6296 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6297 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6298 also a destination.
6299 (dexcl_3op_peep2_insn_nores): Likewise.
6300 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6301 (LINK_COMMAND_SPEC): Remove.
6302
6303 2016-11-04 Richard Biener <rguenther@suse.de>
6304
6305 PR middle-end/78185
6306 * loop-invariant.c (find_exits): Record entering inner
6307 loops as possibly exiting to handle infinite sub-loops.
6308 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6309 (fill_always_executed_in_1): Honor infinite child loops.
6310
6311 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6312
6313 PR target/78192
6314 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6315 has already been adjusted for endianness, so don't adjust it any
6316 further.
6317
6318 PR target/77993
6319 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6320 ICmode unless we have standard PowerPC floating point.
6321 * config/rs6000/rs6000.md (FP iterator): Likewise.
6322 (FMOVE128 iterator): Likewise.
6323
6324 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6325 Alexandre Oliva <aoliva@redhat.com>
6326 Jason Merrill <jason@redhat.com>
6327
6328 PR debug/28767
6329 PR debug/56974
6330 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6331 langhook.
6332 * langhooks.c (lhd_type_dwarf_attribute): New function.
6333 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6334 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6335 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6336 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6337 (check_qualified_type, check_aligned_type): Call it.
6338 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6339 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6340 check_base_type and check_lang_type.
6341 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6342 return early. For pointer-to-data-member add DW_AT_use_location
6343 attribute.
6344 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6345 if needed.
6346 (gen_type_die_with_usage): Don't use type_main_variant
6347 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6348 check_base_type and check_lang_type. Formatting fixes. Call
6349 get_debug_type langhook.
6350
6351 2016-11-03 Jason Merrill <jason@redhat.com>
6352
6353 * tree.c (check_lang_type): New.
6354 (check_qualified_type): Use it.
6355 (check_aligned_type): Use it.
6356 * tree.h: Declare it.
6357
6358 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6359
6360 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6361 (arm*-freebsd*): Likewise.
6362 (arm*-*-netbsdelf*): Likewise.
6363 (arm*-*-linux*): Likewise.
6364 (arm*-*-uclinux*eabi*): Likewise.
6365 (arm*-*-phoenix*): Likewise.
6366 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6367 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6368 specified. Default to arm6 if target_cpu_cname is not set.
6369 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6370 default cpu has been correctly configured.
6371 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6372 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6373 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6374 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6375 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6376 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6377 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6378
6379 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6380
6381 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6382 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6383 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6384 (output_cfa_loc): Support DW_CFA_val_expression.
6385 (output_cfa_loc_raw): Likewise.
6386 (output_cfi): Likewise.
6387 (output_cfi_directive): Likewise.
6388 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6389 (dw_cfi_oprnd2_desc): Likewise.
6390 (mem_loc_descriptor): Recognize new pattern generated for value
6391 expression.
6392
6393 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6394
6395 PR rtl-optimization/78186
6396 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6397 well, when converting to IOR.
6398
6399 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6400
6401 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6402 (vec_interleave_highv8qi): Likewise.
6403
6404 2016-11-03 Martin Liska <mliska@suse.cz>
6405
6406 * profile.c (instrument_values): Fix coding style.
6407 (branch_prob): Use renamed function.
6408 * tree-profile.c (init_ic_make_global_vars): Likewise.
6409 (gimple_init_edge_profiler): Rename to
6410 gimple_init_gcov_profiler.
6411 tree_time_profiler_counter variable declaration.
6412 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6413 emission.
6414 * value-prof.h: Remove an argument.
6415
6416 2016-11-03 Richard Biener <rguenther@suse.de>
6417
6418 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6419 symtab_node::get_create.
6420
6421 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6422
6423 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6424 Move comments into more natural position.
6425
6426 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6427
6428 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6429 (PTRDIFF_TYPE): Define as int.
6430
6431 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6432
6433 * ccmp.c (expand_ccmp_expr_1): Adjust.
6434 (expand_ccmp_expr): Likewise.
6435 (expand_ccmp_next): Likewise.
6436 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6437 (aarch64_gen_ccmp_first): Likewise.
6438 * doc/tm.texi: Regenerate.
6439 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6440 (gen_ccmp_next): Likewise.
6441
6442 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6443
6444 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6445 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6446
6447 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6448
6449 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6450 darwin_rename_builtins here.
6451 (ix86_expand_divmod_libfunc): New.
6452 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6453 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6454
6455 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6456 Nathan Sidwell <nathan@acm.org>
6457
6458 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6459
6460 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6461
6462 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6463 New function.
6464 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6465 to format MODE_INT and MODE_PARTIAL_INT literals.
6466
6467 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6468
6469 PR target/78168
6470 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6471 NULL if TARGET_SPE_ABI.
6472
6473 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6474
6475 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6476 clear padding bits even when they're less than a byte.
6477
6478 2016-11-02 Richard Biener <rguenther@suse.de>
6479
6480 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6481 (imm_store_chain_info::output_merged_stores): Force base_addr
6482 to be proper GIMPLE for a MEM_REF address.
6483 (pass_store_merging::execute): Restrict negative bitpos
6484 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6485 check. Take into account non-NULL_TREE offset if the base
6486 is already addressable.
6487
6488 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6489
6490 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6491 New pattern.
6492 (aarch64_be_crypto_sha1hv4si): New pattern.
6493
6494 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6495
6496 * config/aarch64/aarch64.md (add<mode>3): Remove
6497 redundant code. Don't split frame based additions.
6498
6499 2016-11-02 Richard Biener <rguenther@suse.de>
6500
6501 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6502 redundant val and dest members.
6503 (store_immediate_info::store_immediate_info): Adjust.
6504 (merged_store_group::merged_store_group): Adjust.
6505 (merged_store_group::apply_stores): Likewise.
6506 (struct imm_store_chain_info): Add base_addr field.
6507 (imm_store_chain_info::imm_store_chain_info): New constructor.
6508 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6509 (imm_store_chain_info::output_merged_store): Likewise. Use
6510 addr_base which is already the address.
6511 (imm_store_chain_info::output_merged_stores): Likewise.
6512 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6513 imm_store_chain_info instead of base. Fix alias check.
6514 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6515 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6516 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6517 use the address of the base and adjust for other changes.
6518
6519 2016-11-02 Martin Liska <mliska@suse.cz>
6520
6521 * fold-const-call.c (host_size_t_cst_p): Test whether
6522 t is convertible to size_t.
6523
6524 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6525
6526 PR tree-optimization/78170
6527 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6528 introduced by native_encode_expr on little-endian as well.
6529
6530 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6531
6532 PR tree-optimization/78162
6533 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6534 as invalid.
6535
6536 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6537
6538 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6539 function comment.
6540 (aarch64_next_callee_save): Likewise.
6541 (aarch64_pushwb_single_reg): Likewise.
6542 (aarch64_gen_storewb_pair): Likewise.
6543 (aarch64_push_regs): Likewise.
6544 (aarch64_gen_loadwb_pair): Likewise.
6545 (aarch64_pop_regs): Likewise.
6546 (aarch64_gen_store_pair): Likewise.
6547 (aarch64_gen_load_pair): Likewise.
6548 (aarch64_save_callee_saves): Likewise.
6549 (aarch64_restore_callee_saves): Likewise.
6550
6551 2016-11-02 Richard Biener <rguenther@suse.de>
6552
6553 PR tree-optimization/78035
6554 PR tree-optimization/77964
6555 * gimple-pretty-print.c (pp_points_to_solution): Print
6556 vars_contains_interposable.
6557 * tree-ssa-alias.c: Include varasm.h.
6558 (ptrs_compare_unequal): Check vars_contains_interposable and
6559 decl_binds_to_current_def_p.
6560 (dump_points_to_solution): Dump vars_contains_interposable.
6561 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6562 flag.
6563 * tree-ssa-structalias.c: Include varasm.h.
6564 (set_uids_in_ptset): Record whether vars contains a
6565 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6566 (ipa_escaped_pt): Update initializer.
6567
6568 2016-11-02 Richard Biener <rguenther@suse.de>
6569
6570 PR tree-optimization/78047
6571 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6572 fake field at offset zero conservatively regarding to may_have_pointers.
6573
6574 2016-11-02 Richard Biener <rguenther@suse.de>
6575
6576 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6577 infer_value_range on stmt ops and update value-ranges.
6578 Dump visited stmts and blocks.
6579 (evrp_dom_walker::push_value_range): Dump changes.
6580 (evrp_dom_walker::pop_value_range): Likewise.
6581 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6582
6583 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6584
6585 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6586 rtx_insn *.
6587 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6588
6589 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6590
6591 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6592 and adjust for that.
6593 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6594
6595 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6596
6597 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6598 to rtx_insn *.
6599 (transcode_memory_rtx): Likewise.
6600 (move_to_acc): Likewise.
6601 (move_from_acc): Likewise.
6602 (move_acc_to_reg): Likewise.
6603 (move_to_x): Likewise.
6604 (move_to_hl): Likewise.
6605 (move_to_de): Likewise.
6606 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6607 (rs6000_emit_savres_rtx): Likewise.
6608 (rs6000_emit_prologue): Likewise.
6609 * reorg.c (update_reg_unused_notes): Likewise.
6610 * rtl.h (remove_note): Adjust prototype.
6611 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6612
6613 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6614
6615 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6616 variables so some can be rtx_insn *.
6617 (alpha_emit_xfloating_libcall): Likewise.
6618 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6619 (mips_legitimize_tls_address): Likewise.
6620 * optabs.c (expand_binop): Likewise.
6621 * reload1.c (gen_reload): Likewise.
6622
6623 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6624
6625 * reorg.c (relax_delay_slots): Split up the trial variable.
6626
6627 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6628
6629 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6630 of variables rtx_insn *.
6631 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6632 (legitimize_tls_address): Likewise.
6633 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6634 (bfin_gen_bundles): Likewise.
6635 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6636 (c6x_reorg): Likewise.
6637 * config/frv/frv.c (frv_reorder_packet): Likewise.
6638 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6639 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6640 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6641 * config/mn10300/mn10300.c: Likewise.
6642 * config/rl78/rl78.c: Likewise.
6643 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6644 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6645 (sh_expand_cmpnstr): Likewise.
6646 (sh_expand_strlen): Likewise.
6647 (sh_expand_setmem): Likewise.
6648 * config/sh/sh.md: Likewise.
6649 * emit-rtl.c (emit_pattern_before): Likewise.
6650 * except.c: Likewise.
6651 * final.c: Likewise.
6652 * jump.c: Likewise.
6653
6654 2016-11-01 Jason Merrill <jason@redhat.com>
6655
6656 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6657 a COND_EXPR with constant condition.
6658
6659 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6660
6661 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6662 and its initialization.
6663
6664 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6665
6666 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6667 HAVE_AS_LEB128.
6668
6669 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6670
6671 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6672 argument, don't call add_linkage_name if it is true.
6673 (gen_variable_die): For C++ inline static data members, consider the
6674 initial call when old_die is NULL to be declaration and call
6675 add_name_and_src_coords_attributes in that case with true as
6676 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6677 (gen_member_die): For C++ inline static data members, emit a
6678 definition DIE right away in DW_TAG_compile_unit context.
6679
6680 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6681
6682 PR target/78166
6683 * config/pa/pa.md: Add new shift/add patterns to handle
6684 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6685
6686 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6687
6688 * config/xtensa/xtensa-protos.h
6689 (xtensa_use_return_instruction_p): New prototype.
6690 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6691 xtensa_callee_save_size): Remove.
6692 (struct machine_function): Add new fields: current_frame_size,
6693 callee_save_size, frame_laid_out and epilogue_done.
6694 (compute_frame_size, xtensa_expand_prologue,
6695 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6696 cfun->machine->callee_save_size and xtensa_current_frame_size
6697 with cfun->machine->current_frame_size.
6698 (compute_frame_size): Update cfun->machine->frame_laid_out and
6699 don't update frame layout after reload completion.
6700 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6701 instead of zeroing xtensa_current_frame_size.
6702 (xtensa_use_return_instruction_p): New function.
6703 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6704 declaration.
6705 (INITIAL_ELIMINATION_OFFSET): Use return value of
6706 compute_frame_size instead of xtensa_current_frame_size value.
6707 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6708 function xtensa_use_return_instruction_p instead of inline code.
6709
6710 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6711
6712 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6713 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6714 * dwarf2out.c (rnglist_idx): New variable.
6715 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6716 (DEBUG_RNGLISTS_SECTION): Define.
6717 (ranges_base_label): New variable.
6718 (size_of_die) <case dw_val_class_range_list>: If using
6719 DW_FORM_rnglistx, count size of uleb128 of range list index.
6720 (value_format) <case dw_val_class_range_list>: For
6721 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6722 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6723 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6724 (add_ranges_num): Remove useless prototype. Don't multiply
6725 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6726 for new fields added to dw_ranges struct.
6727 (add_ranges): Add maybe_new_sec argument and pass it
6728 through to add_ranges_num.
6729 (note_rnglist_head): New function.
6730 (add_ranges_by_labels): Pass true as maybe_new_sec to
6731 add_ranges_num, call note_rnglist_head on the head of the list.
6732 (output_ranges): Add function comment. Switch to
6733 .debug_ranges section here and emit .Ldebug_ranges0 label.
6734 (index_rnglists, output_rnglists): New functions.
6735 (gen_subprogram_die): Formatting fixes.
6736 (add_high_low_attributes): Don't divide offsets
6737 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6738 first list element or when pointing into the middle of
6739 a list. Pass true as second argument to add_ranges on the
6740 first block fragment after cold/hot section switch.
6741 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6742 section instead of .debug_ranges. Initialize
6743 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6744 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6745 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6746 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6747 Call output_rnglists for -gdwarf-5.
6748 (dwarf2out_c_finalize): Clear rnglist_idx.
6749
6750 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6751
6752 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6753
6754 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6755 Tamar Christina <tamar.christina@arm.com>
6756
6757 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6758 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6759 (vmaxnmq_f32): Likewise.
6760 (vminnm_f32): Likewise.
6761 (vminnmq_f32): Likewise.
6762 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6763 (vminnm): Likewise.
6764 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6765 expander.
6766
6767 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6768
6769 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6770 binary floating point types supported by the hardware except for
6771 double.
6772 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6773 vector instruction for optimizing extracting a SImode from a
6774 V4SImode vector and converting it to floating point.
6775 (vsx_xvcvuxwdp_df): Likewise.
6776 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6777 registers to be any VSX register. Move stores to the end of the
6778 constraints.
6779 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6780 to optimize extracting a SImode from a V4SImode vector and
6781 converting it to a binary floating point type supported by the
6782 hardware. Use the vector converts instead of extracting the
6783 element, sign extending it, and then converting it to double.
6784 Other floating point types than double first convert to double,
6785 then the double is converted to that type.
6786 (vsx_extract_si_<uns>float_<mode>): Likewise.
6787
6788 2016-10-31 Andrew Pinski <apinski@cavium.com>
6789
6790 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6791 Rewrite handling of part num to handle the case where
6792 multiple implementers share the same part num.
6793
6794 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6795 Jakub Jelinek <jakub@redhat.com>
6796
6797 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6798 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6799
6800 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6801
6802 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6803 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6804 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6805 (is_cu_die, is_unit_die): Likewise.
6806 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6807 comments for DWARF5 DW_UT_type units.
6808 (output_compilation_unit_header): Add UT argument, output
6809 start of DWARF5 .debug_info section header.
6810 (output_comp_unit): Add dwo_id argument. Adjust
6811 output_compilation_unit_header caller, for DW_UT_split_compile
6812 emit dwo_id field, otherwise padding1. Emit padding2 field.
6813 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6814 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6815 (output_skeleton_debug_sections): Add dwo_id argument, for
6816 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6817 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6818 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6819 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6820 DW_TAG_compile_unit for skeleton unit die. Don't add
6821 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6822 address to output_comp_unit and output_skeleton_debug_sections.
6823
6824 * dwarf2out.c (debug_line_str_section): New variable.
6825 (debug_line_str_hash): Likewise.
6826 (DEBUG_LINE_STR_SECTION): Define.
6827 (set_indirect_string): Handle DW_FORM_line_strp like
6828 DW_FORM_strp.
6829 (find_string_form): Fix up formatting.
6830 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6831 Fix up indentation.
6832 (output_die): Handle DW_FORM_line_strp.
6833 (DWARF5_USE_DEBUG_LINE_STR): Define.
6834 (output_line_string): New function.
6835 (output_file_names): Add -gdwarf-5 support.
6836 (output_line_info): Likewise.
6837 (init_sections_and_labels): Initialize debug_line_str_section.
6838 (output_indirect_string): Change 2nd argument from void *
6839 to enum dwarf_form form, compare with form rather than
6840 DW_FORM_strp.
6841 (output_indirect_strings): Pass DW_FORM_strp to
6842 output_indirect_string traversion.
6843 (dwarf2out_finish): Output .debug_line_str strings.
6844 (dwarf2out_c_finalize): Clear debug_line_str_section and
6845 debug_line_str_hash.
6846
6847 2016-10-31 Tom Tromey <tom@tromey.com>
6848
6849 PR debug/77315
6850 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6851 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6852 DW_OP_GNU_push_tls_address case.
6853 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6854
6855 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6856
6857 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6858 for frame_offset_rel bit.
6859 (struct array_descr_info): Add rank field.
6860 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6861 and placeholder_seen fields.
6862 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6863 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6864 DW_OP_pick 1 into DW_OP_over.
6865 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6866 gen_variant_part): Clear placeholder_{arg,seen}.
6867 (loc_list_from_tree_1): Drop const from context argument.
6868 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6869 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6870 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6871 context argument.
6872 (add_scalar_info): Drop const from context argument. Handle
6873 context->placeholder_arg.
6874 (add_bound_info): Drop const from context argument.
6875 (gen_descr_array_type_die): Drop const from ctx variable.
6876 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6877 attribute and use a single DW_TAG_generic_subrange instead of
6878 7 DW_TAG_subrange_type for assumed rank arrays.
6879
6880 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6881 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6882 from bool to 1-bit uchar bitfield. Add num_assigned and
6883 offset_emitted bitfields.
6884 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6885 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6886 dw_val_class_loclistsptr.
6887 (new_addr_loc_descr): Fix up formatting.
6888 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6889 (add_AT_low_high_pc): Fix up formatting.
6890 (add_AT_loclistsptr): New function.
6891 (AT_lbl): Allow dw_val_class_loclistsptr.
6892 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6893 Handle dw_val_class_loclistsptr.
6894 (loc_list_idx): New variable.
6895 (output_loclists_offsets, assign_location_list_indexes): New
6896 functions.
6897 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6898 add size_of_uleb128 of the index. Drop never used
6899 dwarf_split_debug_info AT_index handling. Handle
6900 dw_val_class_loclistsptr.
6901 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6902 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6903 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6904 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6905 DW_FORM_loclistx indexes.
6906 (output_attr_index_or_value): Fix up formatting. Don't handle
6907 dw_val_class_loc_list here.
6908 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6909 For dw_val_class_loc_list call output_loc_list_offset rather than
6910 output_attr_index_or_value.
6911 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6912 or .debug_loclists.dwo section name for debug_loc_section.
6913 (resolve_addr_in_expr): Formatting fix.
6914 (index_location_lists): Likewise.
6915 (dwarf2out_finish): If there are any location lists, for
6916 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6917 index_location_lists only if have_location_lists. Call
6918 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6919 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6920 -gsplit-dwarf also emit offset table.
6921
6922 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6923 (size_of_die, value_format, output_die): Use
6924 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6925 dw_val_class_wide_int.
6926
6927 * dwarf2out.c (dwarf_op): Renamed to ...
6928 (dwarf_OP): ... this.
6929 (convert_descriptor_to_mode, scompare_loc_descriptor,
6930 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6931 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6932 callers.
6933 (dwarf_AT, dwarf_TAG): New functions.
6934 (check_die): Disallow DW_AT_call_all_calls next to
6935 DW_AT_GNU_all_call_sites.
6936 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6937 and attributes instead of the corresponding GNU tag and attributes.
6938 (gen_subprogram_die): Likewise. Emit call site information even
6939 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6940 DW_AT_defaulted in comment.
6941 (resolve_addr): Handle DW_AT_call_origin attribute on
6942 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6943 DW_TAG_GNU_call_site DIE.
6944
6945 * dwarf2out.c (dwarf_op): New function.
6946 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6947 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6948 (output_loc_operands, output_loc_operands_raw): Likewise.
6949 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6950 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6951 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6952 if dwarf_version < 5.
6953 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6954 DW_OP_GNU_xxx.
6955 (scompare_loc_descriptor, ucompare_loc_descriptor,
6956 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6957 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6958 optimize_location_into_implicit_ptr): Likewise. Only punt for
6959 !dwarf_strict if dwarf_version < 5.
6960 (string_cst_pool_decl): Adjust comment.
6961 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6962
6963 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6964 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6965 (struct dw_val_node): Add val_file_implicit field.
6966 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6967 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6968 output_die): Handle dw_val_class_const_implicit,
6969 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6970 (abbrev_die_table): Change into va_gc vec.
6971 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6972 ABBREV_DIE_TABLE_INCREMENT): Remove.
6973 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6974 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6975 variables.
6976 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6977 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6978 vectors.
6979 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6980 functions.
6981 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6982 the implicit value.
6983 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6984 vec.
6985 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6986 unit. Call optimize_abbrev_table.
6987 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6988 abbrev_die_table being a va_gc vec.
6989
6990 PR tree-optimization/77860
6991 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6992 also integral complex and vector constants.
6993
6994 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6995 optimize_macinfo_range, save_macinfo_strings): Replace
6996 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6997 (output_macinfo): Likewise. Emit .debug_macro* rather than
6998 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6999 (init_sections_and_labels): Use .debug_macro* labels rather than
7000 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7001 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7002 or DW_AT_GNU_macros for -gdwarf-5.
7003
7004 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7005
7006 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7007
7008 2016-09-11 Le-Chun Wu <lcwu@google.com>
7009 Mark Wielaard <mjw@redhat.com>
7010
7011 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7012 (Wshadow=local): New option.
7013 (Wshadow-local): Hidden alias for -Wshadow=local.
7014 (Wshadow=compatible-local): New option.
7015 (Wshadow-compatible-local): Hidden alias for
7016 -Wshadow=compatible-local.
7017 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7018 Wshadow=compatible-local.
7019
7020 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7021
7022 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7023 Check slp defs for COND_EXPR by swapping/inverting operands if the
7024 new parameter SWAP indicates so.
7025 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7026 is isomorphic to the first stmt via swapping/inverting. Store swap
7027 information in the new parameter SWAP.
7028 (vect_build_slp_tree): New local array SWAP and pass it to function
7029 vect_build_slp_tree_1. Cleanup result handling code for function
7030 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7031 order of operands has been fixed as indicated by SWAP[i].
7032
7033 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7034
7035 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7036 unnecessary data dependence check after visited store stmt.
7037
7038 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7039
7040 PR tree-optimization/71915
7041 PR tree-optimization/71490
7042 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7043 stride_type field.
7044 (find_basis_for_base_expr): Require stride types to match when
7045 seeking a basis.
7046 (alloc_cand_and_find_basis): Record the stride type.
7047 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7048 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7049 the expressions having those types.
7050 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7051 (create_mul_ssa_cand): Likewise.
7052 (create_mul_imm_cand): Likewise.
7053 (create_add_ssa_cand): Likewise.
7054 (create_add_imm_cand): Likewise.
7055 (legal_cast_p_1): Change interface to accept types rather than the
7056 expressions having those types.
7057 (legal_cast_p): Pass types to legal_cast_p_1.
7058 (slsr_process_cast): Pass stride type to
7059 alloc_cand_and_find_basis.
7060 (slsr_process_copy): Likewise.
7061 (dump_candidate): Display stride type when a cast exists.
7062 (create_add_on_incoming_edge): Introduce a cast when necessary for
7063 the stride type.
7064 (analyze_increments): Change the code checking for invalid casts
7065 to rely on the stride type, and update the documentation and
7066 example. Change the code checking for pointer multiplies to rely
7067 on the stride type.
7068 (insert_initializers): Introduce a cast when necessary for the
7069 stride type. Use the stride type for the type of the initializer.
7070
7071 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7072
7073 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7074
7075 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7076
7077 PR rtl-optimization/77919
7078 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7079 into memory if both modes are complex and their inner modes have the
7080 same precision. If the two modes are different complex modes, convert
7081 each part separately and generate a new CONCAT.
7082
7083 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7084
7085 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7086
7087 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7088
7089 PR target/78148
7090 * gimple-ssa-store-merging.c
7091 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7092 instead of SET_TYPE_ALIGN on shared integral type.
7093
7094 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7095
7096 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7097 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7098 Adjust comment.
7099
7100 2016-10-28 Jeff Law <law@redhat.com>
7101
7102 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7103 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7104
7105 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7106
7107 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7108
7109 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7110
7111 * target.def (min_arithmetic_precision): New hook.
7112 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7113 * doc/tm.texi: Regenerate.
7114 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7115 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7116 * targhooks.c (default_min_arithmetic_precision): New function.
7117 * targhooks.h (default_min_arithmetic_precision): Declare.
7118 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7119 (sparc_min_arithmetic_precision): New function.
7120
7121 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7122
7123 PR target/71847
7124 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7125 Swap commutative operands in new RTL if needed. Handle zero_ext
7126 in the set_dest.
7127 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7128 PATTERN (insn).
7129
7130 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7131 Kugan Vivekanandarajah <kuganv@linaro.org>
7132 Jim Wilson <jim.wilson@linaro.org>
7133
7134 PR tree-optimization/43721
7135 * target.def: New hook expand_divmod_libfunc.
7136 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7137 * doc/tm.texi: Regenerate.
7138 * internal-fn.def: Add new entry for DIVMOD ifn.
7139 * internal-fn.c (expand_DIVMOD): New.
7140 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7141 targhooks.h.
7142 (widen_mul_stats): Add new field divmod_calls_inserted.
7143 (target_supports_divmod_p): New.
7144 (divmod_candidate_p): Likewise.
7145 (convert_to_divmod): Likewise.
7146 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7147 renumber_gimple_stmt_uids at beginning of function. Call
7148 convert_to_divmod and record stats for divmod.
7149 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7150 TARGET_EXPAND_DIVMOD_LIBFUNC.
7151 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7152 divmod_simode.
7153
7154 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7155 Segher Boessenkool <segher@kernel.crashing.org>
7156
7157 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7158 swapping the arms of the branch.
7159 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7160 sequence for the generic signed-signed-signed case.
7161
7162 2016-10-28 Jeff Law <law@redhat.com>
7163
7164 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7165 fallthru comment.
7166 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7167
7168 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7169
7170 PR rtl-optimization/78029
7171 * function.c (prologue_contains, epilogue_contains): New functions.
7172 (record_prologue_seq, record_epilogue_seq): New functions.
7173 * function.h (prologue_contains, epilogue_contains,
7174 record_prologue_seq, record_epilogue_seq): New declarations.
7175 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7176 mixing prologue and epilogue insns.
7177 (init_deps): Initialize the new fields in struct deps_desc.
7178 * sched-int.h (struct deps_desc): New fields last_prologue,
7179 last_epilogue, and last_logue_was_epilogue.
7180 * shrink-wrap.c (emit_common_heads_for_components): Record all
7181 emitted prologue and epilogue insns.
7182 (emit_common_tails_for_components): Ditto.
7183 (insert_prologue_epilogue_for_components): Ditto.
7184
7185 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7186
7187 PR middle-end/22141
7188 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7189 * common.opt (fstore-merging): New Optimization option.
7190 * opts.c (default_options_table): Add entry for
7191 OPT_ftree_store_merging.
7192 * fold-const.h (can_native_encode_type_p): Declare prototype.
7193 * fold-const.c (can_native_encode_type_p): Define.
7194 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7195 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7196 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7197 * passes.def: Insert pass_tree_store_merging.
7198 * tree-pass.h (make_pass_store_merging): Declare extern
7199 prototype.
7200 * gimple-ssa-store-merging.c: New file.
7201 * doc/invoke.texi (Optimization Options): Document
7202 -fstore-merging.
7203 (--param documentation): Document store-merging-allow-unaligned
7204 and max-stores-to-merge.
7205
7206 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7207
7208 PR middle-end/72747
7209 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7210 assignment to earlier in the if/else logic.
7211
7212 2016-10-28 Richard Biener <rguenther@suse.de>
7213
7214 PR middle-end/78128
7215 PR middle-end/71002
7216 * fold-const.c (make_bit_field_ref): Only adjust alias set
7217 when the original alias set was zero.
7218
7219 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7220
7221 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7222 (s390_adjust_loops): New function.
7223 (s390_reorg): Invoke s390_adjust_loops.
7224 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7225 ("osc_break"): New insn definition.
7226
7227 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7228
7229 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7230 * config.gcc: Support alternate archXX cpu levels with
7231 --with-arch= and --with-tune=.
7232 * config/s390/linux.h: Translate new archXX cpu levels to the
7233 original names when calling GAS.
7234 * config/s390/tpf.h: Likewise.
7235 * doc/invoke.texi: Document the alternate cpu level names.
7236
7237 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7238
7239 PR rtl-optimization/77919
7240 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7241 MEM if mode1 is not a complex mode.
7242
7243 PR rtl-optimization/78132
7244 * ree.c (combine_reaching_defs): Give up if copy_needed and
7245 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7246
7247 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7248
7249 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7250
7251 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7252
7253 * config/rs6000/constraints.md (wH constraint): Add new
7254 constraints for allowing 32-bit integers (and eventually 8/16-bit
7255 integers) into the vector registers.
7256 (wI constraint): Likewise.
7257 (wJ constraint): Likewise.
7258 (wK constraint): Likewise.
7259 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7260 -mvsx-small-integer as a default option for ISA 2.07
7261 (i.e. power8).
7262 (POWERPC_MASKS): Likewise.
7263 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7264 switch to turn off small integer support in vector registers.
7265 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7266 test for -mupper-regs-di, since it is already done with the
7267 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7268 -mvsx-small-integer.
7269 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7270 constraints.
7271 (rs6000_setup_reg_addr_masks): Likewise.
7272 (rs6000_init_hard_regno_mode_ok): Likewise.
7273 (rs6000_option_override_internal): Add consistency checks for
7274 -mvsx-small-integer.
7275 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7276 -mvsx-small-integer.
7277 (rs6000_secondary_reload): Use std::swap.
7278 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7279 VSX_REGS for small integers in vector registers, since there is no
7280 D-FORM address mode for such types.
7281 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7282 (rs6000_opt_masks): Add -mvsx-small-integer.
7283 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7284 support.
7285 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7286 extracts can be done on ISA 2.07.
7287 (vsx_extract_<mode>): Add support for small integers in vsx
7288 registers.
7289 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7290 longer support V4SImode in this pattern.
7291 (vsx_extract_si): New insn to support extraction of SImode in ISA
7292 2.07 using either xxextractuw or vspltw.
7293 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7294 longer support V4SImode in this pattern.
7295 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7296 wJ, and wK constraints.
7297 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7298 storing SDmode with VSX instructions.
7299 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7300 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7301 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7302 small integers in vector registers.
7303 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7304 load and before the FPR and VSX loads. Remove ??, ! from the
7305 constraints. Add VEXTSW2D support for small integers in vector
7306 registers.
7307 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7308 integers in vector registers.
7309 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7310 move instead of using an UNSPEC.
7311 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7312 integers in vector registers.
7313 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7314 move instead of using an UNSPEC.
7315 (movsi_internal1): Add support for -mvsx-small-integer. Align
7316 columns so that it is more readable.
7317 (SImode splitter for ISA 3.0 constants): Add splitter for
7318 -128..127 constants that can easily be constructed on ISA 3.0.
7319 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7320 constraints.
7321
7322 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7323
7324 PR middle-end/78025
7325 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7326 functions.
7327
7328 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7329
7330 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7331 PIC_OFFSET_TABLE_REGNUM twice.
7332
7333 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7334
7335 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7336 support for constant operand for OP.
7337
7338 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7339
7340 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7341 splice_child_die if child doesn't have DW_AT_specification attribute.
7342
7343 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7344
7345 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7346 (TARGET_HAVE_LDREXBH): Likewise.
7347 (TARGET_HAVE_LDACQ): Likewise.
7348
7349 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7350
7351 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7352 logic to to decide whether to copy over old value to register for new
7353 value.
7354 * config/arm/sync.md: Add comments explaning why mode and code
7355 attribute are not defined in iterators.md
7356 (thumb1_atomic_op_str): New code attribute.
7357 (thumb1_atomic_newop_str): Likewise.
7358 (thumb1_atomic_fetch_op_str): Likewise.
7359 (thumb1_atomic_fetch_newop_str): Likewise.
7360 (thumb1_atomic_fetch_oldop_str): Likewise.
7361 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7362 mirror the more restrictive constraints of the Thumb-1 insns after
7363 split compared to Thumb-2 counterpart insns.
7364 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7365 in sync with non atomic version.
7366 (atomic_nand<mode>): Likewise.
7367 (atomic_fetch_<sync_optab><mode>): Likewise.
7368 (atomic_fetch_nand<mode>): Likewise.
7369 (atomic_<sync_optab>_fetch<mode>): Likewise.
7370 (atomic_nand_fetch<mode>): Likewise.
7371 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7372 in sync with atomic version.
7373 (thumb1_subsi3_insn): Likewise.
7374 (thumb1_andsi3_insn): Likewise.
7375 (thumb1_iorsi3_insn): Likewise.
7376 (thumb1_xorsi3_insn): Likewise.
7377
7378 2016-10-27 Nick Clifton <nickc@redhat.com>
7379
7380 * plugin.c (register_plugin_info): Produce an error message if the
7381 plugin is not found in the hash table.
7382
7383 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7384
7385 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7386 New pattern.
7387
7388 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7389
7390 PR target/78056
7391 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7392 define builtin functions from the bdesc_spe_predicates or
7393 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7394 the current compiler configuration.
7395 (paired_init_builtins): Modify loop to not define define builtin
7396 functions from the bdesc_paried_preds array if the builtin mask is
7397 not compatible with the current compiler configuration.
7398 (altivec_init_builtins): Modify loops to not define the
7399 __builtin_altivec_stxvl function nor the builtin functions from
7400 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7401 builtin mask is not compatible with the current compiler
7402 configuration.
7403
7404 2016-10-26 Jeff Law <law@redhat.com>
7405
7406 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7407 (gen_shl_and): Likewise.
7408 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7409
7410 * config/mips/mips.c (mips16_constant_cost): Add missing
7411 fallthru comments.
7412 (mips16_build_call_stub): Increase buffer size. Adjust
7413 fallthru comment.
7414
7415 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7416
7417 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7418 INSN_UIDs for all insns in compact mode.
7419 (rtx_writer::print_rtx): Likewise.
7420 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7421 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7422 output to include INSN_UID.
7423 (selftest::test_uncond_jump): Likewise.
7424
7425 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7426
7427 * haifa-sched.c (call_used_regs_num): Rename to...
7428 (call_saved_regs_num): ...this.
7429 (fixed_regs_num): New variable.
7430 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7431 regs not call_used.
7432 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7433
7434 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7435
7436 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7437 class rtx_writer.
7438 * print-rtl.c (outfile): Delete global.
7439 (sawclose): Likewise.
7440 (indent): Likewise.
7441 (in_call_function_usage): Likewise.
7442 (flag_compact): Likewise.
7443 (flag_simple): Likewise.
7444 (rtx_writer::rtx_writer): New ctor.
7445 (print_rtx_operand_code_0): Convert to...
7446 (rtx_writer::print_rtx_operand_code_0): ...this.
7447 (print_rtx_operand_code_e): Convert to...
7448 (rtx_writer::print_rtx_operand_code_e): ...this.
7449 (print_rtx_operand_codes_E_and_V): Convert to...
7450 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7451 (print_rtx_operand_code_i): Convert to...
7452 (rtx_writer::print_rtx_operand_code_i): ...this.
7453 (print_rtx_operand_code_r): Convert to...
7454 (rtx_writer::print_rtx_operand_code_r): ...this.
7455 (print_rtx_operand_code_u): Convert to...
7456 (rtx_writer::print_rtx_operand_code_u): ...this.
7457 (print_rtx_operand): Convert to...
7458 (rtx_writer::print_rtx_operand): ...this.
7459 (print_rtx): Convert to...
7460 (rtx_writer::print_rtx): ...this.
7461 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7462 (debug_rtx): Likewise.
7463 (print_rtl): Convert to...
7464 (rtx_writer::print_rtl): ...this.
7465 (print_rtl): Reimplement in terms of class rtx_writer.
7466 (print_rtl_single): Rewrite in terms of class rtx_writer.
7467 (print_rtl_single_with_indent): Convert to..
7468 (rtx_writer::print_rtl_single_with_indent): ...this.
7469 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7470 * print-rtl.h (flag_compact): Delete decl.
7471 (class rtx_writer): New class.
7472 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7473 class rtx_writer.
7474
7475 2016-10-26 Jeff Law <law@redhat.com>
7476
7477 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7478 fallthru.
7479
7480 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7481 (check_if_valid_sleep_operand): Add missing fallthru comment.
7482 (arc_register_move_cost): Increase buffer size.
7483 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7484 comment.
7485 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7486
7487 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7488 comment. Add gcc_unreachable for path that should never happen.
7489
7490 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7491 fallthru comment.
7492
7493 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7494 Martin Liska <mliska@suse.cz>
7495
7496 PR fortran/77973
7497 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7498 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7499 on outer context if any.
7500
7501 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7502
7503 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7504 by increment rather than double it.
7505 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7506 emit a space before args[4].
7507 (END): Don't emit a space before with_arg.
7508
7509 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7510
7511 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7512 Baseline only alternatives to (i) hold store atomic success value in a
7513 return register rather than a scratch register, (ii) use a low register
7514 for it and to (iii) ensure the cbranchsi insn generated by the split
7515 respect the constraints of Thumb-1 cbranchsi4_insn and
7516 cbranchsi4_scratch.
7517 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7518 constraints must match those in atomic_compare_and_swap.
7519 (cbranchsi4_scratch): Likewise.
7520
7521 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7522
7523 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7524 variable. Add the new parameter to the insn generator. Set that
7525 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7526 return value from the negation of that parameter for Thumb-1, keeping
7527 the logic unchanged otherwise except for using bdst as the destination
7528 register of the compare_and_swap insn.
7529 (arm_split_compare_and_swap): Add explanation about how is the value
7530 returned to the function comment. Rename scratch variable to
7531 neg_bval. Adapt initialization of variables holding operands to the
7532 new operand numbers. Use return register to hold result of store
7533 exclusive for Thumb-1, scratch register otherwise. Construct the
7534 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7535 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7536 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7537 for strongly ordered compare_and_swap.
7538 * config/arm/predicates.md (cc_register_operand): New predicate.
7539 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7540 match_operand with the new predicate to accept either the CC flag or a
7541 destination register for the boolean return value, restricting it to
7542 CC flag only via constraint. Adapt operand numbers accordingly.
7543
7544 2016-10-26 Jeff Law <law@redhat.com>
7545
7546 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7547
7548 * config/frv/frv.c (comparison_string): Do not fall through after
7549 an error.
7550
7551 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7552 comment.
7553 (expand_one_builtin): Add missing break.
7554
7555 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7556 (m32c_legitimate_address_p): Likewise.
7557
7558 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7559
7560 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7561
7562 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7563 fallthru comment.
7564
7565 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7566 fallthru comment.
7567
7568 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7569
7570 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7571 comment.
7572 (rl78_asm_ctor_dtor): Increase buffer size.
7573
7574 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7575 buffer size.
7576 (xstormy16_asm_output_constructor): Likewise.
7577
7578 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7579 size.
7580
7581 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7582 comment to silence warning.
7583
7584 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7585 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7586 comment.
7587
7588 2016-10-26 Michael Matz <matz@suse.de>
7589
7590 PR tree-optimization/78060
7591 PR tree-optimization/78061
7592 PR tree-optimization/78088
7593 * tree-ssa-loop-split.c (easy_exit_values): New function.
7594 (tree_ssa_split_loops): Use it.
7595 (compute_new_first_bound): Change order of operations,
7596 fix invalid use of types.
7597
7598 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7599
7600 gen-pass-instances.awk is sensitive to the order in which
7601 passes are added; passes that appear later have to be added first.
7602
7603 PR target/71676
7604 PR target/71678
7605 * config/avr/avr-passes.def: Swap order of directives for
7606 gen-pass-instances.awk.
7607
7608 2016-10-25 Jeff Law <law@redhat.com>
7609
7610 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7611 (vax_notice_update_cc): Likewise.
7612
7613 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7614
7615 * config.gcc (sparc*-*-solaris2*): Adjust.
7616 (sparc64-*-linux*): Likewise.
7617 * config/sparc/default-64.h: Rename to...
7618 * config/sparc/default64.h: ...this.
7619 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7620 with TARGET_ARCH64.
7621 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7622 * config/sparc/sparc.h: Minor tweaks.
7623 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7624 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7625
7626 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7627
7628 * input.c (fcache::file_patch): Add comment about lifetime.
7629 (selftest::cpp_reader_ptr): New class.
7630 (selftest::lexer_test): Convert m_parser from cpp_reader *
7631 to a cpp_reader_ptr, and move m_tempfile to after it.
7632 (selftest::lexer_test::lexer_test): Update for above reordering.
7633 (lexer_test::~lexer_test): Move cleanup of m_parser to
7634 cpp_reader_ptr's dtor.
7635
7636 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7637
7638 * toplev.c (toplev::main): Remove call to
7639 location_adhoc_data_fini.
7640
7641 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7642
7643 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7644 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7645
7646 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7647
7648 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7649 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7650 (test_basic_struct): Update for above renaming.
7651 (test_length): Likewise.
7652 (test_union): Likewise.
7653 (test_finalization): Likewise.
7654 (test_deletable_global): Likewise.
7655 (test_inheritance): Likewise.
7656 (test_chain_next): Likewise.
7657 (test_user_struct): Likewise.
7658 (test_tree_marking): Likewise.
7659 * selftest-run-tests.c (selftest::run_tests): Call
7660 selftest::forcibly_ggc_collect at the end of the selftests.
7661 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7662
7663 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7664
7665 PR target/78102
7666 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7667 * optabs.c (expand_vec_cond_expr): For comparison codes
7668 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7669 (expand_vec_cmp_expr): For comparison codes
7670 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7671 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7672 Add enum tree_code argument.
7673 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7674 inline functions.
7675 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7676 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7677 fallback.
7678 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7679 NE_EXPR, attempt to use vcondeq_optab as fallback.
7680 * tree-vect-generic.c (expand_vector_comparison,
7681 expand_vector_divmod, expand_vector_condition): Adjust
7682 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7683 * tree-vect-stmts.c (vectorizable_condition,
7684 vectorizable_comparison): Likewise.
7685 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7686 check_bool_pattern, search_type_for_mask_1): Likewise.
7687 * expr.c (do_store_flag): Likewise.
7688 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7689 @code{vcondeq@var{m}@var{n}}): Document.
7690 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7691 New expanders.
7692
7693 2016-10-25 Jeff Law <law@redhat.com>
7694
7695 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7696 comment.
7697 (v850_output_aligned_bss): Add missing break.
7698
7699 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7700
7701 2016-10-25 Martin Liska <mliska@suse.cz>
7702
7703 PR sanitizer/78106
7704 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7705 statements as they can also contain possibly a freeing call.
7706
7707 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7708 Martin Liska <mliska@suse.cz>
7709
7710 PR ipa/78099
7711 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7712 * ipa-icf.c (sem_function::get_hash): Add target optimization
7713 node to hash.
7714
7715 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7716
7717 PR target/78041
7718 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7719 Remove partial overlap check for shift by 1.
7720 (ashldi3_neon): Likewise.
7721
7722 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7723
7724 * config/arm/constraints.md (Q constraint): Document its use for
7725 Thumb-1.
7726 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7727 models.
7728 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7729 alternatives to allow any register when memory model matches Pf and
7730 thus lda is used, but only low registers otherwise. Use unpredicated
7731 output template for Thumb-1 targets.
7732 (atomic_store<mode>): Likewise for stl.
7733 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7734 whose output template does not have predication.
7735 (arm_load_acquire_exclusive<mode>): Likewise.
7736 (arm_load_exclusivesi): Likewise.
7737 (arm_load_acquire_exclusivesi): Likewise.
7738 (arm_store_release_exclusive<mode>): Likewise.
7739 (arm_store_exclusive<mode>): Use unpredicated output template for
7740 Thumb-1 targets.
7741
7742 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7743
7744 * internal-fn.def (LAUNDER): New internal function.
7745 * internal-fn.c (expand_LAUNDER): New function.
7746
7747 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7748 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7749
7750 New avr target pass to work around performance loss by PR fix.
7751
7752 PR target/71676
7753 PR target/71678
7754 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7755 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7756 * config/avr/predicates.md (extend_operator): New.
7757 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7758 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7759 (make_avr_pass_casesi): New prototypes.
7760 * config/avr/avr.c (print-rtl.h): Include it.
7761 (pass_data avr_pass_data_casesi): Data for new pass.
7762 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7763 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7764 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7765 (avr_optimize_casesi): New functions.
7766
7767 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7768 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7769
7770 PR target/71676
7771 PR target/71678
7772 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7773
7774 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7775
7776 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7777 DW_AT_rvalue_reference attributes.
7778
7779 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7780
7781 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7782 * value-prof.c (stringop_block_profile): Fix a warning.
7783
7784 2016-10-24 Martin Sebor <msebor@redhat.com>
7785
7786 PR middle-end/77735
7787 * builtins.c (string_length): New function.
7788 (c_strlen): Use string_length. Correctly handle wide strings.
7789 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7790 functions.
7791 (target_int_max): Call target_max_value.
7792 (format_result::knownrange): New data member.
7793 (fmtresult::fmtresult): Define default constructor.
7794 (format_integer): Use it and set format_result::knownrange.
7795 Handle global constants.
7796 (format_floating_max): Add third argument.
7797 (format_floating): Recompute maximum value for %a for each argument.
7798 (get_string_length): Use fmtresult default ctor.
7799 (format_string): Set format_result::knownrange.
7800 (format_directive): Check format_result::knownrange.
7801 (add_bytes): Same. Correct caret placement in diagnostics.
7802 (pass_sprintf_length::compute_format_length): Set
7803 format_result::knownrange.
7804 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7805
7806 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7807
7808 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7809 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7810
7811 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7812
7813 PR debug/77985
7814 * dwarf2out.c (file_table_relative_p): Remove.
7815 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7816 also for absolute paths.
7817 * doc/tm.texi: Update.
7818 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7819 * target.def (force_at_comp_dir): Remove hook.
7820 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7821
7822 2016-10-24 Richard Biener <rguenther@suse.de>
7823
7824 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7825 backedges when identifying the single predecessor to take
7826 conditional info from. Use SCEV to get at ranges for loop IVs.
7827 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7828 avoid false warning.
7829
7830 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7831
7832 PR target/78093
7833 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7834 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7835 (avr_address_tiny_absdata_p): New static function.
7836 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7837 it to determine validity of constant addresses.
7838 (avr_attribute_table) [absdata]: New variable attribute...
7839 (avr_handle_absdata_attribute): ...and handler.
7840 (avr_decl_absdata_p): New static function.
7841 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7842 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7843 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7844
7845 2016-10-24 Richard Biener <rguenther@suse.de>
7846
7847 PR tree-optimization/78076
7848 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7849 also on the loop tree root.
7850
7851 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7852
7853 * config/i386/i386.c (ix86_fold_builtin): Handle
7854 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7855 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7856 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7857 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7858
7859 2016-10-24 Martin Liska <mliska@suse.cz>
7860
7861 PR sanitizer/77966
7862 * opts.c (finish_options): Skip conditionally.
7863
7864 2016-10-23 Martin Sebor <msebor@redhat.com>
7865
7866 PR target/77837
7867 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7868 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7869
7870 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7871
7872 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7873 (enabled): Likewise.
7874 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7875 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7876 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7877 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7878 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7879 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7880
7881 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7882
7883 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7884 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7885
7886 2016-10-21 Andrew Pinski <apinski@cavium.com>
7887
7888 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7889 integer constants.
7890 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7891 implementer_id to unsigned char.
7892 Change part_no to unsigned int.
7893 (AARCH64_BIG_LITTLE): New define.
7894 (INVALID_IMP): New define.
7895 (INVALID_CORE): New define.
7896 (cpu_data): Change the last element's implementer_id and part_no to
7897 integers.
7898 (valid_bL_string_p): Rewrite to ..
7899 (valid_bL_core_p): this for integers instead of strings.
7900 (parse_field): New function.
7901 (contains_string_p): Rewrite to ...
7902 (contains_core_p): this for integers and only for the part_no.
7903 (host_detect_local_cpu): Rewrite handling of implementation and
7904 par num to be integers; simplifying the code.
7905
7906 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7907
7908 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7909 value range for pointers in more cases.
7910
7911 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7912
7913 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7914 Add extra argument to allow emitting the move immediate.
7915 Use add/sub with positive immediate.
7916 (aarch64_add_constant): Add inline function.
7917 (aarch64_add_sp): Likewise.
7918 (aarch64_sub_sp): Likewise.
7919 (aarch64_expand_prologue): Call aarch64_sub_sp.
7920 (aarch64_expand_epilogue): Call aarch64_add_sp.
7921 Decide when to leave out move.
7922 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7923
7924 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7925
7926 * config/aarch64/aarch64.c (aarch64_layout_frame):
7927 Align FP callee-saves.
7928
7929 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7930
7931 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7932 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7933 Formatting fixes.
7934 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7935 _rdseed64_step): Likewise.
7936 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7937
7938 PR target/78057
7939 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7940 and tree-ssanames.h.
7941 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7942 with INTEGER_CST argument.
7943 (ix86_gimple_fold_builtin): New function.
7944 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7945
7946 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7947 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7948 (ranges_table_allocated, ranges_table_in_use,
7949 ranges_by_label_allocated, ranges_by_label_in_use,
7950 RANGES_TABLE_INCREMENT): Removed.
7951 (add_ranges_num): Use vec_safe_push into ranges_table.
7952 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7953 (output_ranges): Adjust for ranges_table and ranges_by_label
7954 conversion from arrays to vec.
7955 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7956 conversion from arrays to vec.
7957 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7958 ranges_table_in_use, ranges_by_label_allocated and
7959 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7960
7961 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7962 if needed. Re-add origin_die variable and its initialization.
7963
7964 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7965 even for -fstack-reuse=none, or for volatile vars etc.
7966
7967 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7968
7969 * print-rtl-function.c (flag_compact): Move extern decl to...
7970 * print-rtl.h (flag_compact): ...here.
7971 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7972 (ASSERT_RTL_DUMP_EQ): New macro.
7973 (selftest::test_dumping_regs): New function.
7974 (selftest::test_dumping_insns): New function.
7975 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7976 the insns.
7977 (selftest::rtl_tests_c_tests): Call the new test functions.
7978
7979 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7980
7981 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7982 (outgoing_edges_match): Likewise.
7983 (try_crossjump_to_edge): Likewise.
7984 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7985 (rtl_tidy_fallthru_edge): Likewise.
7986 * rtl.h (tablejump_p): Adjust prototype.
7987 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7988
7989 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7990
7991 * rtl.h (label_ref_label): New function.
7992 (set_label_ref_label): New function.
7993 (LABEL_REF_LABEL): Delete.
7994 * alias.c (rtx_equal_for_memref_p): Adjust.
7995 * cfgbuild.c (make_edges): Likewise.
7996 (purge_dead_tablejump_edges): Likewise.
7997 * cfgexpand.c (convert_debug_memory_address): Likewise.
7998 * cfgrtl.c (patch_jump_insn): Likewise.
7999 * combine.c (distribute_notes): Likewise.
8000 * cse.c (hash_rtx_cb): Likewise.
8001 (exp_equiv_p): Likewise.
8002 (fold_rtx): Likewise.
8003 (check_for_label_ref): Likewise.
8004 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8005 (cselib_hash_rtx): Likewise.
8006 * emit-rtl.c (mark_label_nuses): Likewise.
8007 * explow.c (convert_memory_address_addr_space_1): Likewise.
8008 * final.c (output_asm_label): Likewise.
8009 (output_addr_const): Likewise.
8010 * gcse.c (add_label_notes): Likewise.
8011 * genconfig.c (walk_insn_part): Likewise.
8012 * genrecog.c (validate_pattern): Likewise.
8013 * ifcvt.c (cond_exec_get_condition): Likewise.
8014 (noce_emit_store_flag): Likewise.
8015 (noce_get_alt_condition): Likewise.
8016 (noce_get_condition): Likewise.
8017 * jump.c (maybe_propagate_label_ref): Likewise.
8018 (mark_jump_label_1): Likewise.
8019 (redirect_exp_1): Likewise.
8020 (rtx_renumbered_equal_p): Likewise.
8021 * lra-constraints.c (operands_match_p): Likewise.
8022 * print-rtl.c (print_value): Likewise.
8023 * reload.c (find_reloads): Likewise.
8024 * reload1.c (set_label_offsets): Likewise.
8025 * reorg.c (get_branch_condition): Likewise.
8026 * rtl-tests.c (test_uncond_jump): Likewise.
8027 * rtl.c (rtx_equal_p_cb): Likewise.
8028 (rtx_equal_p): Likewise.
8029 * rtlanal.c (reg_mentioned_p): Likewise.
8030 (rtx_referenced_p): Likewise.
8031 (get_condition): Likewise.
8032 * varasm.c (const_hash_1): Likewise.
8033 (compare_constant): Likewise.
8034 (const_rtx_hash_1): Likewise.
8035 (output_constant_pool_1): Likewise.
8036
8037 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8038
8039 PR target/71627
8040 * reload.c (find_valid_class_1): Allow regclass if atleast one
8041 regno in regclass is ok. Compute and use rclass size based on
8042 actually available regnos for mode in rclass.
8043
8044 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8045
8046 * config/sparc/sparc-modes.def (CCV): New.
8047 (CCXV): Likewise.
8048 * config/sparc/predicates.md (v_comparison_operator): New.
8049 (icc_comparison_operator): Add support for CCV/CCXV.
8050 (xcc_comparison_operator): Likewise.
8051 * config/sparc/sparc.c (output_cbranch): Likewise.
8052 (sparc_print_operand): Likewise.
8053 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8054 (uaddvdi4): New expander.
8055 (addvdi4): Likewise.
8056 (uaddvdi4_sp32): New instruction.
8057 (addvdi4_sp32): Likewise.
8058 (uaddvsi4): New expander.
8059 (addvsi4): Likewise.
8060 (cmp_ccc_plus_sltu_set): New instruction.
8061 (cmp_ccv_plus): Likewise.
8062 (cmp_ccxv_plus): Likewise.
8063 (cmp_ccv_plus_set): Likewise.
8064 (cmp_ccxv_plus_set): Likewise.
8065 (cmp_ccv_plus_sltu_set): Likewise.
8066 (uaddvdi4): New expander.
8067 (subvdi4): Likewise.
8068 (usubdi4_sp32): New instruction.
8069 (subvdi4_sp32): Likewise.
8070 (usubvsi4): New expander.
8071 (subvsi4): Likewise.
8072 (cmpsi_minus_sltu_set): New instruction.
8073 (cmp_ccv_minus): Likewise.
8074 (cmp_ccxv_minus): Likewise.
8075 (cmp_ccv_minus_set): Likewise.
8076 (cmp_ccxv_minus_set): Likewise.
8077 (cmp_ccv_minus_sltu_set): Likewise.
8078 (unegvdi3): New expander.
8079 (negvdi3): Likewise.
8080 (unegdi3_sp32): New instruction.
8081 (negvdi3_sp32): Likewise.
8082 (unegvsi3): New expander.
8083 (negvsi3): Likewise.
8084 (cmp_ccc_neg_sltu_set): New instruction.
8085 (cmp_ccv_neg): Likewise.
8086 (cmp_ccxv_neg): Likewise.
8087 (cmp_ccv_neg_set): Likewise.
8088 (cmp_ccxv_neg_set): Likewise.
8089 (cmp_ccv_neg_sltu_set): Likewise.
8090
8091 * tree-ssa-loop-split.c: Remove trailing spaces.
8092 * match.pd: Likewise.
8093
8094 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8095
8096 PR rtl-optimization/78038
8097 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8098 be deduced to set REG through the RTL structure.
8099 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8100
8101 2016-10-21 Richard Biener <rguenther@suse.de>
8102
8103 PR tree-optimization/78051
8104 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8105 and mark replaced if folding did something.
8106
8107 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8108
8109 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8110 and "protected" in visibility types.
8111 (rs6000_xcoff_declare_function_name): Fix formatting.
8112 (rs6000_xcoff_declare_object_name): Fix formatting.
8113
8114 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8115
8116 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8117 and IX86_BUILTIN_HUGE_VALQ here ...
8118 (ix86_expand_builtin): ... not here.
8119
8120 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8121
8122 * doc/gty.texi (for_user): Use @item next to @findex.
8123
8124 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8125
8126 PR target/78037
8127 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8128 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8129 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8130 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8131 __builtin_ia32_lzcnt_u16.
8132 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8133 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8134 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8135 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8136 (bmi_tzcnt_<mode>): New expander.
8137 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8138 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8139 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8140 (lzcnt_<mode>): New expander.
8141 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8142 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8143 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8144 (UINT64_FTYPE_UINT64): New.
8145 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8146 (__builtin_ia32_lzcnt_u16): New description.
8147 (__builtin_ia32_lzcnt_u32): Ditto.
8148 (__builtin_ia32_lzcnt_u64): Ditto.
8149 (__builtin_ctzs): Remove description.
8150 (__builtin_ia32_tzcnt_u16): New description.
8151 (__builtin_ia32_tzcnt_u32): Ditto.
8152 (__builtin_ia32_tzcnt_u64): Ditto.
8153 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8154 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8155
8156 2016-10-20 Martin Liska <mliska@suse.cz>
8157
8158 PR lto/78049
8159 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8160 comparison with STMT_UID_NOT_IN_RANGE.
8161 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8162 LTRANS.
8163
8164 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8165
8166 * compare-elim.c (conforming_compare): Accept UNSPECs.
8167 (find_comparison_dom_walker::before_dom_children): Deal with
8168 instructions both using and killing the flags register.
8169 (equivalent_reg_at_start): New function extracted from...
8170 (try_eliminate_compare): ...here. Use it and add support for
8171 registers and UNSPECs as second operand of the compare.
8172 * config/visium/visium-modes.def (CCV): New.
8173 * config/visium/predicates.md (visium_v_comparison_operator): New.
8174 (visium_branch_operator): Deal with CCV mode.
8175 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8176 (output_cbranch): Likewise.
8177 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8178 (uaddv<mode>4): New expander.
8179 (addv<mode>4): Likewise.
8180 (add<mode>3_insn_set_carry): New instruction.
8181 (add<mode>3_insn_set_overflow): Likewise.
8182 (addsi3_insn_set_overflow): Likewise.
8183 (usubv<mode>4): New expander.
8184 (subv<mode>4): Likewise.
8185 (sub<mode>3_insn_set_carry): New instruction.
8186 (sub<mode>3_insn_set_overflow): Likewise.
8187 (subsi3_insn_set_overflow): Likewise.
8188 (unegv<mode>3): New expander.
8189 (negv<mode>3): Likewise.
8190 (neg<mode>2_insn_set_overflow): New instruction.
8191 (addv_tst<mode>): Likewise.
8192 (subv_tst<mode>): Likewise.
8193 (negv_tst<mode>): Likewise.
8194 (cbranch<mode>4_addv_insn): New splitter and instruction.
8195 (cbranch<mode>4_subv_insn): Likewise.
8196 (cbranch<mode>4_negv_insn): Likewise.
8197
8198 2016-10-20 Richard Biener <rguenther@suse.de>
8199
8200 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8201 Handle decls possibly not bound.
8202 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8203 nothing_id for decls that might not be bound if we are interested
8204 for the address.
8205 (get_constraint_for_component_ref): Deal with that.
8206
8207 2016-10-20 Michael Matz <matz@suse.de>
8208
8209 Loop splitting.
8210 * common.opt (-fsplit-loops): New flag.
8211 * passes.def (pass_loop_split): Add.
8212 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8213 (enable_fdo_optimizations): Add loop splitting.
8214 * timevar.def (TV_LOOP_SPLIT): Add.
8215 * tree-pass.h (make_pass_loop_split): Declare.
8216 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8217 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8218 * tree-ssa-loop-split.c: New file.
8219 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8220 * doc/invoke.texi (fsplit-loops): Document.
8221 * doc/passes.texi (Loop optimization): Add paragraph about loop
8222 splitting.
8223
8224 2016-10-20 Richard Biener <rguenther@suse.de>
8225
8226 * cgraphunit.c (analyze_functions): Set node->definition to
8227 false to signal symbol removal to debug_hooks->late_global_decl.
8228 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8229 WPA signal symbol removal to the debuginfo machinery.
8230 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8231 using early_finised to guard the we're called for symbol
8232 removal case look at the symtabs definition flag.
8233 (gen_variable_die): Remove redundant check.
8234
8235 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8236
8237 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8238
8239 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8240
8241 PR tree-optimization/53979
8242 * match.pd ((a ^ b) | a -> a | b): New pattern.
8243
8244 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8245
8246 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8247 config/pa/pa64-hpux-lib.h.
8248 (PA_CRTBEGIN_HACK): Likewise.
8249 (DTOR_LIST_BEGIN): Likewise.
8250
8251 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8252
8253 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8254 register only if "in" and "out" are different registers.
8255
8256 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8257
8258 * omp-low.c (pass_oacc_device_lower::gate): New method.
8259 (execute): Always call execute_oacc_device_lower.
8260
8261 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8262
8263 PR tree-optimization/77916
8264 PR tree-optimization/77937
8265 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8266 stopgap fix.
8267 (insert_initializers): Requirement of initializer for -1 should be
8268 based on pointer-typedness of the candidate basis.
8269
8270 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8271
8272 PR tree-optimization/78005
8273 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8274 upper (included) bound for niters of prolog loop.
8275 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8276 Compute niters of scalar loop above which vectorized loop is
8277 preferred, as well as the upper (included) bound for the niters.
8278 (vect_do_peeling): Record niter bound for loops accordingly.
8279
8280 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8281
8282 PR lto/77458
8283 * tree-core.h (enum tree_index): Put the complex types after their
8284 component types.
8285 * tree-streamer.c (verify_common_node_recorded): New function.
8286 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8287
8288 2016-10-19 Martin Liska <mliska@suse.cz>
8289
8290 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8291 Replace NULL with false as a return value.
8292
8293 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8294
8295 PR tree-optimization/78024
8296 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8297 don't clear BB_VISITED after processing.
8298
8299 2016-10-19 Richard Biener <rguenther@suse.de>
8300
8301 * domwalk.c (dom_walker::walk): Use RPO order.
8302
8303 2016-10-19 Richard Biener <rguenther@suse.de>
8304
8305 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8306 stmts_to_remove.
8307 (evrp_dom_walker::~evrp_dom_walker): Free it.
8308 (evrp_dom_walker::stmts_to_remove): Add.
8309 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8310 whose output we fully propagate for removal. Propagate
8311 into BB destination PHI arguments.
8312 (execute_early_vrp): Remove queued stmts. Dump value ranges
8313 before stmt removal.
8314
8315 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8316
8317 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8318 * passes.def: Add two instances of pass_walloca.
8319 * tree-pass.h (make_pass_walloca): New.
8320 * gimple-ssa-warn-alloca.c: New file.
8321 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8322 -Wvla-larger-than= options.
8323
8324 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8325
8326 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8327 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8328
8329 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8330
8331 * config/rs6000/altivec.h (vec_xl_len): New macro.
8332 (vec_xst_len): New macro.
8333 (vec_cmpnez): New macro.
8334 (vec_cntlz_lsbb): New macro.
8335 (vec_cnttz_lsbb): New macro.
8336 (vec_xlx): New macro.
8337 (vec_xrx): New macro.
8338 (vec_all_nez): New C++ predicate template.
8339 (vec_any_eqz): New C++ predicate template.
8340 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8341 conditional compilation.
8342 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8343 conditional compilation.
8344 (vec_all_nez): New macro.
8345 (vec_any_eqz): New macro.
8346 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8347 compilation.
8348 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8349 compilation.
8350 * config/rs6000/vector.md (VI): Moved this mode iterator
8351 definition from altivec.md to vector.md.
8352 (UNSPEC_NEZ_P): New value.
8353 (vector_ne_<mode>_p): New expansion for implementation of
8354 vec_all_ne and vec_any_eq built-in functions.
8355 (vector_nez_<mode>_p): New expansion for implementation of
8356 vec_all_nez and vec_any_eqz built-in functions.
8357 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8358 and vec_any_eq built-in function.
8359 (cr6_test_for_zero): New commentary to explain this expansion.
8360 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8361 (cr6_test_for_lt): New commentary to explain this expansion.
8362 (cr6_test_for_lt_reverse): New commentary to explain this
8363 expansion.
8364 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8365 overloaded function prototypes for vec_all_ne, vec_all_nez,
8366 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8367 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8368 built-in functions.
8369 (altivec_resolve_overloaded_builtin): Modify the handling of
8370 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8371 the compiler is configured to support TARGET_P9_VECTOR.
8372 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8373 to explain the special processing that is given to predicate
8374 built-ins introduced using this macro.
8375 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8376 the special processing given to predicate built-ins introduced
8377 using this macro.
8378 (BU_VSX_P): Likewise.
8379 (BU_P8V_AV_P): Likewise.
8380 (BU_P9V_AV_P): Likewise.
8381 (BU_P9V_AV_X): New macro.
8382 (BU_P9V_64BIT_AV_X): New macro.
8383 (BU_P9V_VSX_3): New macro.
8384 (BU_P9V_OVERLOAD_P): New macro.
8385 (LXVL): New BU_P9V_64BIT_VSX_2.
8386 (VEXTUBLX): New BU_P9V_AV_2.
8387 (VEXTUBRX): Likewise.
8388 (VEXTUHLX): Likewise.
8389 (VEXTUHRX): Likewise.
8390 (VEXTUWLX): Likewise.
8391 (VEXTUWRX): Likewise.
8392 (STXVL): New BU_P9V_64BIT_AV_X.
8393 (VCLZLSBB): New BU_P9V_AV_1.
8394 (VCTZLSBB): Likewise.
8395 (CMPNEB): New BU_P9V_AV_2.
8396 (CMPNEH): Likewise.
8397 (CMPNEW): Likewise.
8398 (CMPNEF): Likewise.
8399 (CMPNED): Likewise.
8400 (VCMPNEB_P): New BU_P9V_AV_P.
8401 (VCMPNEH_P): Likewise.
8402 (VCMPNEW_P): Likewise.
8403 (VCMPNED_P): Likewise.
8404 (VCMPNEFP_P): Likewise.
8405 (VCMPNEDP_P): Likewise.
8406 (CMPNEZB): New BU_P9V_AV_2.
8407 (CMPNEZH): Likewise.
8408 (CMPNEZW): Likewise.
8409 (VCMPNEZB_P): New BU_P9V_AV_P.
8410 (VCMPNEZH_P): Likewise.
8411 (VCMPNEZW_P): Likewise.
8412 (LXVL): New BU_P9V_OVERLOAD_2.
8413 (STXVL): New BU_P9V_OVERLOAD_3.
8414 (VEXTULX): New BU_P9V_OVERLOAD_2.
8415 (VEXTURX): Likewise.
8416 (CMPNEZ): Likewise.
8417 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8418 (VCMPNE_P): Likewise.
8419 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8420 (VCTZLSBB): Likewise.
8421 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8422 comment to explain mode used for scratch register.
8423 (altivec_expand_stxvl_builtin): New function.
8424 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8425 (altivec_init_builtins): Add initialized variable
8426 void_ftype_v16qi_pvoid_long and use this type to define the
8427 built-in function __builtin_altivec_stxvl.
8428 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8429 (UNSPEC_STXVL): New value.
8430 (UNSPEC_VCLZLSBB): New value.
8431 (UNSPEC_VCTZLSBB): New value.
8432 (UNSPEC_VEXTUBLX): New value.
8433 (UNSPEC_VEXTUHLX): New value.
8434 (UNSPEC_VEXTUWLX): New value.
8435 (UNSPEC_VEXTUBRX): New value.
8436 (UNSPEC_VEXTUHRX): New value.
8437 (UNSPEC_VEXTUWRX): New value.
8438 (UNSPEC_VCMPNEB): New value.
8439 (UNSPEC_VCMPNEZB): New value.
8440 (UNSPEC_VCMPNEH): New value.
8441 (UNSPEC_VCMPNEZH): New value.
8442 (UNSPEC_VCMPNEW): New value.
8443 (UNSPEC_VCMPNEZW): New value.
8444 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8445 vector of integer modes.
8446 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8447 vector of float or double modes.
8448 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8449 zero.
8450 (lxvl): New expand for load VSX vector with length.
8451 (*lxvl): New insn for load VSX vector with length.
8452 (stxvl): New expand for store VSX vector with length.
8453 (*stxvl): New insn for store VSX vector with length.
8454 (vcmpneb): New insn for vector of byte compare not equal.
8455 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8456 (vcmpneh): New insn for vector of half word compare not equal.
8457 (vcmpnezh): New insn for vector of half word compare not equal or
8458 zero.
8459 (vcmpnew): New insn for vector of word compare not equal.
8460 (vcmpne<VSs>): New insn for vector of float or double compare not
8461 equal.
8462 (vcmpnezw): New insn for vector of word compare not equal or zero.
8463 (vclzlsbb): New insn for vector count leading zero
8464 least-significant bits byte.
8465 (vctzlsbb): New insn for vector count trailing zero least
8466 signficant bits byte.
8467 (vextublx): New insn for vector extract unsigned byte left
8468 indexed.
8469 (vextubrx): New insn for vector extract unsigned byte right
8470 indexed.
8471 (vextuhlx): New insn for vector extract unsigned half word left
8472 indexed.
8473 (vextuhrx): New insn for vector extract unsigned half word right
8474 indexed.
8475 (vextuwlx): New insn for vector extract unsigned word left
8476 indexed.
8477 (vextuwrx): New insn for vector extract unsigned word right
8478 indexed.
8479 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8480 clarify intent of this constant.
8481 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8482 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8483 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8484 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8485 and vec_xrx functions.
8486
8487 2016-10-18 Andrew Pinski <apinski@cavium.com>
8488
8489 PR tree-opt/65950
8490 * predict.c (is_exit_with_zero_arg): New function.
8491 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8492 as nottaken.
8493
8494 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8495
8496 PR target/77991
8497 * config/i386/i386.c (legitimize_tls_address)
8498 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8499 convert dest to Pmode if different than Pmode.
8500
8501 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8502
8503 PR tree-optimization/77916
8504 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8505 stopgap fix, as pointers with -1 increment are still broken.
8506
8507 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8508
8509 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8510 mapping class decoration from here...
8511 (rs6000_xcoff_encode_section): ...to here.
8512
8513 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8514 if shrink-wrapping and optimizing for speed.
8515
8516 2016-10-18 Richard Biener <rguenther@suse.de>
8517
8518 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8519 not visited but non-executable predecessors. Return taken edge.
8520 Simplify conditions and refactor propagation vs. folding step.
8521
8522 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8523
8524 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8525 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8526 (rs6000_get_separate_components): Assert we do not have those
8527 strategies selected.
8528
8529 2016-10-18 Richard Biener <rguenther@suse.de>
8530
8531 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8532 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8533 clearing.
8534 (substitute_and_fold_dom_walker): Adjust constructor.
8535 (substitute_and_fold_dom_walker::before_dom_children): Remove
8536 do_dce flag and handling (always true).
8537 (substitute_and_fold): Likewise.
8538 * tree-vrp.c (vrp_finalize): Adjust.
8539 (execute_early_vrp): Remove final BB_VISITED clearing.
8540 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8541 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8542 * ira.c (ira): Call clear_bb_flags.
8543
8544 2016-10-18 Richard Biener <rguenther@suse.de>
8545
8546 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8547 get at the operand to look at with TREE_OPERAND for generic
8548 sub-nodes.
8549
8550 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8551
8552 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8553 copy_md_ptr_loc.
8554 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8555 (write_test_expr): Use rtx_reader_ptr for calls to
8556 fprint_c_condition.
8557 (write_attr_value): Likewise.
8558 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8559 call to print_md_ptr_loc.
8560 (write_one_condition): Likewise for calls to print_c_condition.
8561 * genconstants.c: Include "statistics.h" and "vec.h".
8562 (main): Update for conversion to member functions.
8563 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8564 call to print_md_ptr_loc.
8565 * genenums.c: Include "statistics.h" and "vec.h".
8566 (main): Update for conversion of traverse_enum_types to a method.
8567 * genmddeps.c: Include "statistics.h" and "vec.h".
8568 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8569 print_md_ptr_loc.
8570 * genpreds.c (write_predicate_subfunction): Likewise.
8571 (write_predicate_expr): Likewise for calls to print_c_condition.
8572 * genrecog.c (print_test): Likewise.
8573 * gensupport.c (process_rtx): Likewise for calls to
8574 copy_md_ptr_loc and join_c_conditions.
8575 (alter_test_for_insn): Likewise for call to join_c_conditions.
8576 (process_substs_on_one_elem): Likewise.
8577 (gen_mnemonic_setattr): Update for move of string_obstack to a
8578 field of rtx_reader.
8579 (mnemonic_htab_callback): Likewise. Fix formatting.
8580 (gen_mnemonic_attr): Likewise.
8581 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8582 to print_c_condition.
8583 * read-md.c: Include "statistics.h" and "vec.h".
8584 (string_obstack): Convert this global to field "m_string_obstack"
8585 of class rtx_reader.
8586 (ptr_locs): Likewise, as "m_ptr_locs".
8587 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8588 (joined_conditions): Likewise, as "m_joined_conditions".
8589 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8590 (md_constants): Likewise, as "m_md_constants".
8591 (enum_types): Likewise, as "m_enum_types".
8592 (set_md_ptr_loc): Convert to...
8593 (rtx_reader::set_md_ptr_loc): ...member function.
8594 (get_md_ptr_loc): Convert to...
8595 (rtx_reader::get_md_ptr_loc): ...member function.
8596 (copy_md_ptr_loc): Convert to...
8597 (rtx_reader::copy_md_ptr_loc): ...member function.
8598 (fprint_md_ptr_loc): Convert to...
8599 (rtx_reader::fprint_md_ptr_loc): ...member function.
8600 (print_md_ptr_loc): Convert to...
8601 (rtx_reader::print_md_ptr_loc): ...member function.
8602 (join_c_conditions): Convert to...
8603 (rtx_reader::join_c_conditions): ...member function.
8604 (fprint_c_condition): Convert to...
8605 (rtx_reader::fprint_c_condition): ...member function.
8606 (print_c_condition): Convert to...
8607 (rtx_reader::print_c_condition): ...member function.
8608 (read_name): Convert to...
8609 (rtx_reader::read_name): ...member function.
8610 (read_escape): Convert to...
8611 (rtx_reader::read_escape): ...member function.
8612 (read_quoted_string): Convert to...
8613 (rtx_reader::read_quoted_string): ...member function.
8614 (read_braced_string): Convert to...
8615 (rtx_reader::read_braced_string): ...member function.
8616 (read_string): Convert to...
8617 (rtx_reader::read_string): ...member function.
8618 (read_skip_construct): Convert to...
8619 (rtx_reader::read_skip_construct): ...member function.
8620 (handle_constants): Convert to...
8621 (rtx_reader::handle_constants): ...member function.
8622 (traverse_md_constants): Convert to...
8623 (rtx_reader::traverse_md_constants): ...member function.
8624 (handle_enum): Convert to...
8625 (rtx_reader::handle_enum): ...member function.
8626 (lookup_enum_type): Convert to...
8627 (rtx_reader::lookup_enum_type): ...member function.
8628 (traverse_enum_types): Convert to...
8629 (rtx_reader::traverse_enum_types): ...member function.
8630 (rtx_reader::rtx_reader): Move initializations
8631 of various former global data from rtx_reader::read_md_files to
8632 here, as fields, along with the call to unlock_std_streams.
8633 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8634 the new fields.
8635 (rtx_reader::read_md_files): Move initializations of various
8636 global data from here to the ctor.
8637 * read-md.h (read_name): Convert to...
8638 (rtx_reader::read_name): ...member function.
8639 (rtx_reader::read_escape): New method decl.
8640 (read_quoted_string): Convert to...
8641 (rtx_reader::read_quoted_string): ...member function.
8642 (rtx_reader::read_braced_string): New method decl.
8643 (read_string): Convert to...
8644 (rtx_reader::read_string): ...member function.
8645 (rtx_reader::read_skip_construct): New method decl.
8646 (rtx_reader::set_md_ptr_loc): New method decl.
8647 (rtx_reader::get_md_ptr_loc): New method decl.
8648 (copy_md_ptr_loc): Convert to...
8649 (rtx_reader::copy_md_ptr_loc): ...member function.
8650 (fprint_md_ptr_loc): Convert to...
8651 (rtx_reader::fprint_md_ptr_loc): ...member function.
8652 (print_md_ptr_loc): Convert to...
8653 (rtx_reader::print_md_ptr_loc): ...member function.
8654 (rtx_reader::lookup_enum_type): New method decl.
8655 (rtx_reader::traverse_enum_types): New method decl.
8656 (rtx_reader::handle_constants): New method decl.
8657 (traverse_md_constants): Convert to...
8658 (rtx_reader::traverse_md_constants): ...member function.
8659 (rtx_reader::handle_enum): New method decl.
8660 (rtx_reader::join_c_conditions): New method decl.
8661 (fprint_c_condition): Convert to...
8662 (rtx_reader::fprint_c_condition): ...member function.
8663 (print_c_condition): Convert to...
8664 (rtx_reader::print_c_condition): ...member function.
8665 (rtx_reader::apply_iterator_to_string): New method decl.
8666 (rtx_reader::copy_rtx_for_iterators): New method decl.
8667 (rtx_reader::read_conditions): New method decl.
8668 (rtx_reader::record_potential_iterator_use): New method decl.
8669 (rtx_reader::read_mapping): New method decl.
8670 (rtx_reader::read_rtx): New method decl.
8671 (rtx_reader::read_rtx_code): New method decl.
8672 (rtx_reader::read_rtx_operand): New method decl.
8673 (rtx_reader::read_nested_rtx): New method decl.
8674 (rtx_reader::read_rtx_variadic): New method decl.
8675 (rtx_reader::get_string_obstack): New method.
8676 (rtx_reader::get_md_constants): New method.
8677 (string_obstack): Convert global variable decl to...
8678 (rtx_reader::m_string_obstack): ...this new field.
8679 (rtx_reader::m_ptr_locs): New field.
8680 (rtx_reader::m_ptr_loc_obstack): New field.
8681 (rtx_reader::m_joined_conditions): New field.
8682 (rtx_reader::m_joined_conditions_obstack): New field.
8683 (rtx_reader::m_md_constants): New field.
8684 (rtx_reader::m_enum_types): New field.
8685 * read-rtl.c (apply_iterator_to_string): Convert to...
8686 (rtx_reader::apply_iterator_to_string): ...member function.
8687 (copy_rtx_for_iterators): Convert to...
8688 (rtx_reader::copy_rtx_for_iterators): ...member function.
8689 (add_condition_to_string): Use rtx_reader_ptr for
8690 calls join_c_conditions.
8691 (apply_iterators): Use rtx_reader_ptr for calls to
8692 join_c_conditions and copy_rtx_for_iterators.
8693 (read_conditions): Convert to...
8694 (rtx_reader::read_conditions): ...member function.
8695 (record_potential_iterator_use): Convert to...
8696 (rtx_reader::record_potential_iterator_use): ...member function.
8697 (read_mapping): Convert to...
8698 (rtx_reader::read_mapping): ...member function.
8699 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8700 (read_rtx): Convert to...
8701 (rtx_reader::read_rtx): ...member function.
8702 (read_rtx_code): Convert to...
8703 (rtx_reader::read_rtx_code): ...member function.
8704 (read_rtx_operand): Convert to...
8705 (rtx_reader::read_rtx_operand): ...member function. Update for move
8706 of string_obstack to a field.
8707 (read_nested_rtx): Convert to..
8708 (rtx_reader::read_nested_rtx): ...member function.
8709 (read_rtx_variadic): Convert to..
8710 (rtx_reader::read_rtx_variadic): ...member function.
8711
8712 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8713
8714 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8715
8716 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8717
8718 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8719 for pointer type too.
8720 (ipcp_update_vr): set_ptr_nonnull for pointer.
8721
8722 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8723
8724 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8725 pt_solution_singleton_p.
8726 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8727 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8728 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8729 pointer nonnull computed by VRP.
8730 Also Conservatively set pt.null to 1.
8731 (pt_solution_reset): Conservatively set pt.null to 1.
8732 (pt_solution_singleton_or_null_p): Renamed from
8733 pt_solution_singleton_p.
8734 * tree-ssanames.h (set_ptr_nonnull): Declare.
8735 (get_ptr_nonnull): Likewise.
8736 * tree-ssanames.c (set_ptr_nonnull): New.
8737 (get_ptr_nonnull): Likewise.
8738 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8739 (evrp_dom_walker::before_dom_children): Likewise.
8740
8741 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8742
8743 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8744 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8745 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8746 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8747 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8748 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8749 (rs6000_option_override_internal): Clear it if ABI_AIX.
8750 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8751 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8752
8753 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8754
8755 * gimple-ssa-strength-reduction.c (record_increment): Remove
8756 garbage comment.
8757
8758 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8759
8760 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8761 that the result is non-zero if it is true.
8762 (maybe_expand_shift): New wrapper around expand_shift_1.
8763 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8764
8765 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8766
8767 PR tree-optimization/77916
8768 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8769 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8770 or unknown strides.
8771 (record_increment): Increments of -1 for unknown strides just use
8772 a multiply initializer like other negative values.
8773 (analyze_increments): Remove stopgap solution for -1 increment
8774 applied to pointer arithmetic.
8775
8776 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8777
8778 * dominance.c (dom_info::dom_info): Add new constructor for region
8779 which is vector of basic blocks.
8780 (dom_init): New method to initialize members common for both
8781 constructors.
8782 (dom_info::dom_info): Invoke dom_init for partial initialization.
8783 (dom_info::get_idom): Add check to corner cases on basic blocks which
8784 are not in region.
8785 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8786 to detect unreachable bbs.
8787 (dom_info::calc_idoms): Likewise.
8788 (compute_dom_fast_query_in_region): New function.
8789 (calculate_dominance_info_for_region): Likewise.
8790 (free_dominance_info_for_region): Likewise.
8791 * dominance.h: Add prototypes for introduced region-based functions
8792 * tree-if-conv.c (build_region): New function.
8793 (if_convertible_loop_p_1): Invoke local version of post-dominators
8794 calculation before basic block predication with subsequent freeing
8795 post-dominator info.
8796 (tree_if_conversion): Remove free of post-dominator info
8797 (pass_if_conversion::execute): Delete detection of infinite loops
8798 and fake edges to exit block since post-dominator calculation is
8799 performed per if-converted loop only.
8800
8801 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8802
8803 PR target/77308
8804 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8805 register explicitly.
8806 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8807 optimizing for size.
8808
8809 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8810
8811 * config/aarch64/aarch64.c: Delete inclusion of
8812 cortex-a57-fma-steering.h.
8813 (aarch64_override_options): Delete call
8814 to aarch64_register_fma_steering.
8815 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8816 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8817 * config/aarch64/aarch64-passes.def: New file.
8818 * config/aarch64/cortex-a57-fma-steering.c
8819 (aarch64_register_fma_steering): Delete definition.
8820 (make_pass_fma_steering): Remove static qualifier.
8821 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8822 (cortex-a57-fma-steering.o): Remove dependency on
8823 cortex-a57-fma-steering.h.
8824
8825 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8826
8827 * explow.c (validize_mem): Do not modify the argument in-place.
8828
8829 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8830
8831 * tree-streamer.c (record_common_node): Explicitly list expected
8832 tree codes.
8833
8834 2016-10-17 Richard Biener <rguenther@suse.de>
8835
8836 PR tree-optimization/77988
8837 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8838
8839 2016-10-17 Marek Polacek <polacek@redhat.com>
8840
8841 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8842
8843 2016-10-17 Richard Biener <rguenther@suse.de>
8844
8845 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8846 before using it.
8847
8848 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8849
8850 PR tree-optimization/71636
8851 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8852
8853 2016-10-17 Richard Biener <rguenther@suse.de>
8854
8855 * gimplify.c (gimplify_function_tree): Do not move the outer
8856 binds block.
8857
8858 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8859
8860 * langhooks.h (struct lang_hooks_for_decls): Remove
8861 function_decl_explicit_p, function_decl_deleted_p and
8862 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8863 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8864 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8865 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8866 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8867 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8868 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8869 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8870 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8871 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8872 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8873 * dwarf2out.c (gen_subprogram_die): Use
8874 lang_hooks.decls.decl_dwarf_attribute instead of
8875 lang_hooks.decls.function_decl_*.
8876
8877 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8878
8879 PR ada/37139
8880 PR ada/67205
8881 * common.opt (-ftrampolines): New option.
8882 * doc/invoke.texi (Code Gen Options): Document it.
8883 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8884 * doc/tm.texi: Regenerate.
8885 * builtins.def: Add init_descriptor and adjust_descriptor.
8886 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8887 on platforms with descriptors.
8888 (expand_builtin_init_descriptor): New function.
8889 (expand_builtin_adjust_descriptor): Likewise.
8890 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8891 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8892 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8893 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8894 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8895 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8896 (expand_call): Likewise. Move around call to prepare_call_address
8897 and pass all flags to it.
8898 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8899 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8900 (gimple_call_set_by_descriptor): New setter.
8901 (gimple_call_by_descriptor_p): New getter.
8902 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8903 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8904 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8905 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8906 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8907 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8908 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8909 * target.def (custom_function_descriptors): New POD hook.
8910 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8911 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8912 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8913 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8914 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8915 (build_common_builtin_nodes): Initialize init_descriptor and
8916 adjust_descriptor.
8917 * tree-nested.c: Include target.h.
8918 (struct nesting_info): Add 'any_descr_created' field.
8919 (get_descriptor_type): New function.
8920 (lookup_element_for_decl): New function extracted from...
8921 (create_field_for_decl): Likewise.
8922 (lookup_tramp_for_decl): ...here. Adjust.
8923 (lookup_descr_for_decl): New function.
8924 (convert_tramp_reference_op): Deal with descriptors.
8925 (build_init_call_stmt): New function extracted from...
8926 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8927 * defaults.h (FUNCTION_ALIGNMENT): Define.
8928 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8929 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8930 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8931 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8932 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8933
8934 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8935
8936 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8937 constants in CONST_VECTORs.
8938
8939 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8940
8941 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8942 register as destination of bmask.
8943 (vector_init_bshuffle): Likewise.
8944 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8945 (bmaskdi_vis): Enable only in 64-bit mode.
8946
8947 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8948
8949 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8950 make LR a separately shrink-wrapped component unless savres_strategy
8951 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8952 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8953 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8954
8955 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8956
8957 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8958 and keep looping on failure.
8959
8960 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8961
8962 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8963 set.
8964 (print_rtx_function): Update example in comment for...
8965 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8966 non-virtual pseudos with a '%' sigil followed by the regno, offset
8967 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8968 pseudo is dumped as "%0".
8969
8970 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8971
8972 PR middle-end/77959
8973 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8974 return a MEM.
8975
8976 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8977
8978 * config/sparc/sparc-passes.def: New file.
8979 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8980 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8981 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8982
8983 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8984
8985 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8986 loop peel to loops with exit test at the beginning.
8987
8988 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8989
8990 PR rtl-optimization/68212
8991 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8992 frequency when computing scale factor for peeled copies.
8993 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8994 values for switch/peel blocks/edges.
8995
8996 2016-10-14 Pedro Alves <palves@redhat.com>
8997
8998 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8999
9000 2016-10-14 Catherine Moore <clm@codesourcery.com>
9001
9002 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9003 micromips_globals to zero.
9004
9005 2016-10-14 Richard Biener <rguenther@suse.de>
9006
9007 PR tree-optimization/77979
9008 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9009 in the equivalency sets.
9010 (compare_names): Likewise.
9011
9012 2016-10-14 Martin Liska <mliska@suse.cz>
9013
9014 * builtins.h(target_char_cst_p): Declare the function.
9015 * builtins.c (fold_builtin_memchr): Remove.
9016 (target_char_cst_p): Move the function from gimple-fold.c.
9017 (fold_builtin_3): Do not call the function.
9018 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9019 (gimple_fold_builtin): Call the function.
9020 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9021
9022 2016-10-14 Martin Liska <mliska@suse.cz>
9023
9024 * builtins.c (fold_builtin_strcmp): Remove function.
9025 (fold_builtin_strncmp): Likewise.
9026 (fold_builtin_2): Remove call of the function.
9027 (fold_builtin_3): Likewise.
9028 * fold-const-call.c (fold_const_call): Add constant folding
9029 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9030 * fold-const-call.h (build_cmp_result): Declare the function.
9031 * gimple-fold.c (gimple_load_first_char): New function.
9032 (gimple_fold_builtin_string_compare): Likewise.
9033 (gimple_fold_builtin): Call the function.
9034
9035 2016-10-14 Nathan Sidwell <nathan@acm.org>
9036
9037 * gcov-io.c (gcov_open): Deconstify 'mode'.
9038
9039 2016-10-14 Martin Liska <mliska@suse.cz>
9040
9041 * fold-const.c (c_getstr): Support of properly \0-terminated
9042 string constants. New argument is added.
9043 * fold-const.h: New argument is added.
9044
9045 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9046
9047 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9048 New function.
9049 (aarch64_print_hint_for_core): Likewise.
9050 (aarch64_print_hint_for_arch): Likewise.
9051 (aarch64_validate_march): Use it. Fix indentation in type signature.
9052 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9053 (aarch64_validate_mtune): Likewise.
9054 (aarch64_handle_attr_arch): Likewise.
9055 (aarch64_handle_attr_cpu): Likewise.
9056 (aarch64_handle_attr_tune): Likewise.
9057
9058 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9059
9060 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9061 and udivmod_optab.
9062
9063 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9064
9065 * config/m68k/m68k.c (m68k_option_override): Check
9066 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9067 instead of stack_limit_rtx.
9068
9069 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9070
9071 * dwarf2out.c (gen_member_die): Handle inline static data member
9072 definitions.
9073
9074 2016-10-13 Nathan Sidwell <nathan@acm.org>
9075
9076 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9077 gcov_var.mode. Remove unnecessary fstat.
9078
9079 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9080
9081 PR bootstrap/77962
9082 * function.c (thread_prologue_and_epilogue_insns): Call all
9083 make_*logue_seq in the same order as traditional. Call them
9084 all a second time if shrink_wrapped_separate.
9085
9086 2016-10-13 Marek Polacek <polacek@redhat.com>
9087
9088 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9089 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9090 use -Wno-error.
9091
9092 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9093
9094 PR tree-optimization/77937
9095 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9096 to infinite when we have a pointer with an increment of -1.
9097
9098 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9099
9100 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9101 into ...
9102 * memmodel.h: This file.
9103 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9104 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9105 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9106 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9107 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9108 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9109 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9110 compare-elim.c, config/aarch64/aarch64-builtins.c,
9111 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9112 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9113 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9114 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9115 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9116 config/darwin.c, config/epiphany/epiphany.c,
9117 config/epiphany/mode-switch-use.c,
9118 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9119 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9120 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9121 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9122 config/m68k/m68k.c, config/mcore/mcore.c,
9123 config/microblaze/microblaze.c, config/mmix/mmix.c,
9124 config/mn10300/mn10300.c, config/moxie/moxie.c,
9125 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9126 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9127 config/nds32/nds32-memory-manipulation.c,
9128 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9129 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9130 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9131 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9132 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9133 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9134 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9135 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9136 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9137 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9138 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9139 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9140 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9141 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9142 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9143 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9144 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9145 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9146 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9147 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9148 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9149 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9150 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9151 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9152 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9153 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9154 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9155 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9156 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9157 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9158 var-tracking.c, varasm.c: Include memmodel.h.
9159 * genattrtab.c (write_header): Include memmodel.h in generated file.
9160 * genautomata.c (main): Likewise.
9161 * gengtype.c (open_base_files): Likewise.
9162 * genopinit.c (main): Likewise.
9163 * genconditions.c (write_header): Include memmodel.h earlier in
9164 generated file.
9165 * genemit.c (main): Likewise.
9166 * genoutput.c (output_prologue): Likewise.
9167 * genpeep.c (main): Likewise.
9168 * genpreds.c (write_insn_preds_c): Likewise.
9169 * genrecog.c (write_header): Likewise.
9170 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9171
9172 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9173
9174 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9175 for new "compact" param of print_rtx_function. Check for "cinsn"
9176 rather than "insn".
9177 * print-rtl-function.c (flag_compact): New decl.
9178 (print_rtx_function): Add param "compact" and use it to set
9179 flag_compact, adding a description of the effect to the leading
9180 comment, and updating the example output.
9181 * print-rtl.c (flag_compact): New variable.
9182 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9183 mode.
9184 (print_rtx_operand_code_i): When printing source locations, wrap
9185 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9186 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9187 virtuals in compact mode.
9188 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9189 apart from in LABEL_REFs.
9190 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9191 Don't print basic block ids in compact mode.
9192 (print_rtx): In compact mode, prefix the code of insns with "c",
9193 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9194 * print-rtl.h (print_rtx_function): Add "compact" param.
9195
9196 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9197
9198 * arm.h (TARGET_VFP): Delete.
9199 (TARGET_VFPD32): Remove references to TARGET_VFP.
9200 (TARGET_VFP3, TARGET_VFP5): Likewise.
9201 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9202 (TARGET_NEON_FP16): Likewise.
9203 (TARGET_FMA): Likewise.
9204 (TARGET_CRYPTO): Likewise.
9205 (TARGET_NEON): Likewise.
9206 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9207 (FUNCTION_ARG_REGNO_P): Likewise.
9208 * arm.c (arm_option_check_internal): Likewise.
9209 (arm_option_override): Likewise.
9210 (use_return_insn): Likewise.
9211 (arm_function_value_regno_p): Likewise.
9212 (arm_apply_result_size): Likewise.
9213 (use_vfp_abi): Likewise.
9214 (arm_legitimate_address_outer_p): Likewise.
9215 (thumb2_legitimate_address_p): Likewise.
9216 (arm_legitimate_index_p): Likewise.
9217 (thumb2_legitimate_index_p): Likewise.
9218 (arm_legitimate_address): Likewise.
9219 (arm_get_vfp_saved_size): Likewise.
9220 (arm_emit_vfp_multi_reg_pop): Likewise.
9221 (arm_get_frame_offsets): Likewise.
9222 (arm_save_coproc_regs): Likewise.
9223 (arm_hard_regno_mode_ok): Likewise.
9224 (arm_expand_epilogue_apcs_frame): Likewise.
9225 (arm_expand_epilogue): Likewise.
9226 (arm_file_start): Likewise.
9227 (arm_conditional_register_usage): Likewise.
9228 (arm_validize_comparison): Use vfp_compare_operand directly.
9229 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9230 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9231 unsupported usage.
9232 (arm_atomic_assign_expand_fenv): Likewise.
9233 * arm.md (divsf3): Likewise.
9234 (arm_negsi2): Likewise.
9235 (absdf2): Likewise.
9236 (arm_movdi): Likewise.
9237 (arm_movt): Likewise.
9238 (cbranchsf4): Change predicate to vfp_compare_operand.
9239 (cbranchdf4): Change predicate to vfp_compare_operand.
9240 (cstorehf4): Change predicate to vfp_compare_operand.
9241 (cstoresf4): Change predicate to vfp_compare_operand.
9242 (cstoredf4): Change predicate to vfp_compare_operand.
9243 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9244 (movhi_insn_arch4, movhi_bytes): Likewise.
9245 * constraints.md (Dt): Likewise.
9246 (Dp): Likewise.
9247 * iterators.md (SDF): Likewise.
9248 * predicates.md (arm_float_compare_operand): Delete.
9249 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9250 TARGET_VFP.
9251 (const_double_vcvt_power_of_two): Likewise.
9252 * thumb2.md thumb2_movsi_insn): Likewise.
9253 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9254 (movhf_vfp): Likewise.
9255 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9256 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9257 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9258 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9259 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9260 (subsf3_vfp, divsf3_vfp): Likewise.
9261 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9262 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9263 (mulsf3negsfsubsf_vfp): Likewise.
9264 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9265 (floatunssisf2, sqrtsf2_vfp): Likewise.
9266 (movcc_vfp): Likewise.
9267 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9268 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9269 (push_multi_vfp): Likewise.
9270 (set_fpscr, get_fpscr): Likewise.
9271 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9272
9273 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9274
9275 * arm.h (TARGET_VFP): Unconditionally define to 1.
9276 (arm_fpu_desc): Remove 'model' field.
9277 (TARGET_FPU_MODEL): Delete.
9278 * arm.c (all_fpus): Don't initialize the model field.
9279 (arm_can_inline_p): Don't check the FPU model.
9280 * arm-fpus.def: Remove redundant model field from all FPU
9281 descriptions.
9282
9283 2016-10-13 Richard Biener <rguenther@suse.de>
9284
9285 PR middle-end/77826
9286 * genmatch.c (struct capture): Add value_match member.
9287 (commutate): Preserve value_match.
9288 (lower_opt_convert): Likewise.
9289 (lower_cond): Likewise.
9290 (replace_id): Likewise.
9291 (struct dt_operand): Add value_match member.
9292 (decision_tree::cmp_node): Compare it.
9293 (decision_tree::insert_operand): Honor it when finding and
9294 when appending a DT_MATCH.
9295 (dt_operand::gen_match_op): Generate a type check after
9296 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9297 (parser::get_internal_capture_id): New helper.
9298 (parser::finish_match_operand): New function lowering @@<id>.
9299 (parser::parse_capture): Parse @@<id> as value-match.
9300 (parser::parse_expr): Use get_internal_capture_id.
9301 (parser::parse_simplify): Call finish_match_operand.
9302 (walk_captures): New helper.
9303 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9304 of operand_equal_p.
9305 ((X /[ex] A) * A -> X): Likewise.
9306 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9307 convert[12] and value-matching.
9308 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9309 ((X | Y) | Y -> X | Y): Likewise.
9310 ((X ^ Y) ^ Y -> X): Likewise.
9311 (A - (A & B) -> ~B & A): Likewise.
9312 ((T)(P + A) - (T)P -> (T) A): Likewise.
9313 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9314 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9315 * doc/match-and-simplify.texi: Amend capture section.
9316
9317 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9318
9319 * config/arc/arc.md (umul_600): Remove predicated variant.
9320 (umul64_600): Likewise.
9321
9322 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9323
9324 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9325
9326 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9327
9328 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9329 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9330 no-overflow information to vect_do_peeling_for_loop_bound and
9331 vect_gen_vector_loop_niters.
9332
9333 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9334
9335 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9336 iterates 1 time.
9337
9338 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9339
9340 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9341 adjust_vec automatically.
9342 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9343 param exit_bb to guard_to.
9344 (slpeel_checking_verify_cfg_after_peeling):
9345 (set_prologue_iterations):
9346 (create_lcssa_for_virtual_phi): New func which is factored out from
9347 slpeel_tree_peel_loop_to_edge.
9348 (slpeel_tree_peel_loop_to_edge):
9349 (iv_phi_p): New func.
9350 (vect_can_advance_ivs_p): Call iv_phi_p.
9351 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9352 new gimple stmts in basic block.
9353 (vect_gen_niters_for_prolog_loop): Rename to...
9354 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9355 adjust implementation.
9356 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9357 sizetype if necessary.
9358 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9359 it to external function.
9360 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9361 (vect_gen_vector_loop_niters_mult_vf): New.
9362 (slpeel_update_phi_nodes_for_loops): New.
9363 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9364 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9365 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9366 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9367 tree-vect-loop-manip.c
9368 (vect_generate_tmps_on_preheader): Delete.
9369 (vect_transform_loop): Rename vectorization_factor to vf. Call
9370 vect_do_peeling instead of vect_do_peeling-* functions.
9371 * tree-vectorizer.h (vect_do_peeling): New decl.
9372 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9373 (vect_do_peeling_for_loop_bound): Delete.
9374 (vect_do_peeling_for_alignment): Delete.
9375
9376 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9377
9378 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9379 duplicated loop after its preheader and after the original loop.
9380
9381 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9382
9383 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9384 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9385
9386 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9387
9388 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9389 for live variable outside loop but not in lcssa form.
9390
9391 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9392
9393 * cfg.c (reset_original_copy_tables): New func.
9394 * cfg.h (reset_original_copy_tables): New decl.
9395
9396 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9397
9398 PR c/77946
9399 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9400 public_flag.
9401 * varasm.c (default_binds_local_p_3): Formatting fix.
9402
9403 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9404
9405 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9406 style issue.
9407 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9408 Remove useless code.
9409
9410 2016-10-13 Martin Liska <mliska@suse.cz>
9411
9412 PR tree-optimization/77943
9413 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9414 a different EH landing pads.
9415
9416 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9417
9418 PR target/77957
9419 * hooks.h (hook_tree_void_null): Declare.
9420 * hooks.c (hook_tree_void_null): New function.
9421 * langhooks.c (lhd_return_null_tree_v): Remove.
9422 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9423 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9424 set y to const0_rtx.
9425 * function.c (stack_protect_epilogue): Likewise.
9426 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9427 if TARGET_THREAD_SSP_OFFSET is defined.
9428 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9429 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9430 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9431 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9432 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9433 (ix86_stack_protect_guard): New function.
9434
9435 2016-10-13 Richard Biener <rguenther@suse.de>
9436
9437 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9438 rtl_for_decl_init during early phase.
9439 (gen_variable_die): Do not create locations during early phase.
9440 (gen_label_die): Likewise.
9441 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9442 twice.
9443
9444 2016-10-12 Richard Biener <rguenther@suse.de>
9445
9446 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9447 try_add_new_range and made to eturn new range.
9448 (evrp_dom_walker::before_dom_children): Push op1 value range before
9449 pushing op0 value range.
9450
9451 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9452
9453 PR tree-optimization/77937
9454 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9455 POINTER_TYPE_P on the candidate type to determine whether
9456 candidates in this chain require pointer arithmetic.
9457
9458 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9459
9460 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9461 correction if the type is smaller than a word.
9462 (visium_select_cc_mode): Add ... fall through ... comment.
9463
9464 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9465
9466 * config/rs6000/rs6000.c (machine_function): Add new fields
9467 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9468 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9469 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9470 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9471 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9472 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9473 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9474 (rs6000_get_separate_components): New function.
9475 (rs6000_components_for_bb): New function.
9476 (rs6000_disqualify_components): New function.
9477 (rs6000_emit_prologue_components): New function.
9478 (rs6000_emit_epilogue_components): New function.
9479 (rs6000_set_handled_components): New function.
9480 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9481 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9482 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9483 (rs6000_emit_epilogue): Don't emit GPR restores if
9484 gpr_is_wrapped_separately for that register. Don't make a
9485 REG_CFA_RESTORE note for registers we did not restore, either.
9486
9487 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9488
9489 * function.c (thread_prologue_and_epilogue_insns): Call
9490 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9491 if it has possibly changed. Compute the split_prologue_seq and
9492 epilogue_seq later, too.
9493 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9494 (dump_components): New function.
9495 (struct sw): New struct.
9496 (SW): New function.
9497 (init_separate_shrink_wrap): New function.
9498 (fini_separate_shrink_wrap): New function.
9499 (place_prologue_for_one_component): New function.
9500 (spread_components): New function.
9501 (disqualify_problematic_components): New function.
9502 (emit_common_heads_for_components): New function.
9503 (emit_common_tails_for_components): New function.
9504 (insert_prologue_epilogue_for_components): New function.
9505 (try_shrink_wrapping_separate): New function.
9506 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9507
9508 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9509
9510 * regrename.c (build_def_use): Invalidate chains that have a
9511 REG_CFA_RESTORE on some instruction.
9512
9513 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9514
9515 * dce.c (delete_unmarked_insns): Don't delete instructions with
9516 a REG_CFA_RESTORE note.
9517
9518 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9519
9520 * common.opt (-fshrink-wrap-separate): New flag.
9521 * doc/invoke.texi: Document it.
9522 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9523 * doc/tm.texi: Regenerate.
9524 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9525 * target.def (shrink_wrap): New hook vector.
9526 (get_separate_components, components_for_bb, disqualify_components,
9527 emit_prologue_components, emit_epilogue_components,
9528 set_handled_components): New hooks.
9529
9530 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9531
9532 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9533 vector return by reference only if -Wpsabi.
9534 (rs6000_pass_by_reference): Similarly, for argument passing.
9535
9536 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9537
9538 * function-tests.c: Include "print-rtl.h".
9539 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9540 function, and verify what is dumped.
9541 * print-rtl-function.c (print_edge): New function.
9542 (begin_any_block): New function.
9543 (end_any_block): New function.
9544 (can_have_basic_block_p): New function.
9545 (print_rtx_function): Track the basic blocks of insns in the
9546 chain, wrapping those that are within blocks within "(block)"
9547 directives. Remove the "(cfg)" directive.
9548
9549 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9550
9551 * selftest.c (selftest::read_file): New function.
9552 (selftest::test_read_file): New function.
9553 (selftest::selftest_c_tests): Call test_read_file.
9554 * selftest.h (selftest::read_file): New decl.
9555
9556 2016-10-12 Richard Biener <rguenther@suse.de>
9557
9558 PR debug/77947
9559 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9560 function context.
9561
9562 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9563
9564 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9565
9566 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9567 dwarf2out_assembly_start.
9568
9569 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9570
9571 * Makefile.in (SELFTEST_FLAGS): New variable.
9572 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9573
9574 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9575 early_finish hook.
9576
9577 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9578
9579 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9580 dumped in RTL dumps.
9581
9582 2016-10-12 Martin Liska <mliska@suse.cz>
9583
9584 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9585 (gimple_fold_builtin_memory_op): Use the function.
9586 (gimple_fold_builtin_strchr): Likewise.
9587 (gimple_fold_builtin_strcat): Likewise.
9588 (gimple_build): Likewise.
9589
9590 2016-10-12 Nathan Sidwell <nathan@acm.org>
9591
9592 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9593
9594 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9595
9596 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9597 equivalent 32-bit constant (modulo 2**32) when that yields
9598 smaller instructions.
9599 (size_of_int_loc_descriptor): Update accordingly.
9600
9601 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9602
9603 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9604 functions, call dwarf2out_decl on the parent function first.
9605
9606 2016-10-12 Richard Biener <rguenther@suse.de>
9607
9608 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9609 on the conversion.
9610
9611 2016-10-12 Richard Biener <rguenther@suse.de>
9612
9613 * tree-ssa-propagate.c
9614 (substitute_and_fold_dom_walker::before_dom_children): Do not
9615 ignore ASSERT_EXPRs but only preserve them.
9616 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9617 that have been propagated into.
9618 (vrp_finalize): Enable DCE for substitute_and_fold.
9619
9620 2016-10-12 Richard Biener <rguenther@suse.de>
9621
9622 PR tree-optimization/77920
9623 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9624 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9625 (simplify_abs_using_ranges): Likewise.
9626 (simplify_conversion_using_ranges): Likewise.
9627 (simplify_stmt_using_ranges): Adjust.
9628
9629 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9630
9631 PR tree-optimization/77929
9632 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9633 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9634
9635 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9636
9637 PR target/77934
9638 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9639 needs a base register for arg 1.
9640
9641 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9642
9643 * common.opt (Wimplicit-fallthrough) Turn into alias to
9644 -Wimplicit-fallthrough=3. Remove EnabledBy.
9645 (Wimplicit-fallthrough=): New option.
9646 * gimplify.c (warn_implicit_fallthrough_r): Use
9647 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9648 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9649 to -Wimplicit-fallthrough=3.
9650 (-Wimplicit-fallthrough=): Document.
9651
9652 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9653
9654 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9655 and GEU in DImode if TARGET_SUBXC.
9656 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9657 (seqdi<W:mode>_zero_subxc): Delete.
9658 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9659 (neg_seqdi<W:mode>_zero_vis3): Delete.
9660 (plus_seqdi<W:mode>_zero): Likewise.
9661 (minus_seqdi<W:mode>_zero): Likewise.
9662 (plus_plus_sltu<W:mode>): Accept only register.
9663 (addx<W:mode>): Likewise.
9664 (plus_sltu<W:mode>_vis3): Likewise.
9665 (plus_plus_sltu<W:mode>_vis3): Likewise.
9666 (neg_sgeu<W:mode>_vis3): Delete.
9667 (minus_sgeu<W:mode>_vis3): Likewise.
9668 (addxc<W:mode>): Accept only registers.
9669 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9670 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9671 (neg_plus_sltu<W:mode>_subxc): Likewise.
9672 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9673 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9674 (sgeu<W:mode>_insn_subxc): Delete.
9675 (plus_sgeu<W:mode>_subxc): Likewise.
9676 (subxc<W:mode>): Accept only register.
9677 (scc splitter): Split always GEU again.
9678
9679 2016-10-11 Jeff Law <law@redhat.com>
9680
9681 PR tree-optimization/77424
9682 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9683 dead conditionals. Assert that all e->aux fields are NULL.
9684
9685 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9686
9687 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9688 operand-printing "switch" statement into...
9689 (print_rtx_operand_code_0): ...this new function, ...
9690 (print_rtx_operand_code_e): ...this new function, ...
9691 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9692 (print_rtx_operand_code_i): ...this new function, ...
9693 (print_rtx_operand_code_r): ...this new function, ...
9694 (print_rtx_operand_code_u): ...this new function, ...
9695 (print_rtx_operand): ...and this new function.
9696
9697 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9698
9699 * config/alpha/alpha-passes.def: New file.
9700 * config/alpha/t-alpha: New file.
9701 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9702 (make_pass_handle_trap_shadows): New prototype.
9703 (make_pass_align_insns): Ditto.
9704 * config/alpha/alpha.c (alpha_option_override): Don't register
9705 passes here.
9706 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9707
9708 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9709
9710 PR target/77924
9711 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9712 distinct __ibm128 IBM extended double type if long doubles are
9713 128-bits and the default format for long double is IEEE 128-bit.
9714
9715 2016-10-11 Richard Biener <rguenther@suse.de>
9716
9717 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9718 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9719 (verify_die): New function.
9720 (dwarf2out_finish): Call it.
9721 (output_line_info): Handle case of -gsplit-dwarf without
9722 DWARF2_ASM_LINE_DEBUG_INFO.
9723
9724 2016-10-11 Richard Biener <rguenther@suse.de>
9725
9726 PR debug/77931
9727 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9728 sub-chains of BLOCK_VARS and gimple_bind_vars.
9729
9730 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9731
9732 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9733
9734 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9735
9736 * config/sparc/sparc.opt (msubxc): New option.
9737 * doc/invoke.texi (SPARC options): Document it and tidy up.
9738 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9739 * doc/tm.texi: Regenerate.
9740 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9741 (CCNZ): ...this.
9742 (CCX_NOOV): Rename into...
9743 (CCXNZ): ...this.
9744 (CCC): New.
9745 (CCXC): Likewise.
9746 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9747 (fcc0_register_operand): Likewise.
9748 (icc_register_operand): New.
9749 (icc_or_fcc_register_operand): Simplify.
9750 (nz_comparison_operator): New.
9751 (c_comparison_operator): Likewise.
9752 (noov_compare_operator): Rename into...
9753 (icc_comparison_operator): ...this. Use above predicates.
9754 (noov_compare64_operator): Rename into...
9755 (v9_comparison_operator): ...this and tidy up.
9756 (fcc_comparison_operator): New.
9757 (icc_or_fcc_comparison_operator): Likewise.
9758 (v9_register_compare_operator): Rename info...
9759 (v9_register_comparison_operator): ...this.
9760 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9761 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9762 for Niagara-7.
9763 (sparc_fixed_condition_code_regs): New function.
9764 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9765 renaming and add support for CCC/CCXC.
9766 (output_cbranch): Likewise.
9767 (sparc_print_operand): Likewise.
9768 (gen_v9_scc): Remove obsolete assertion.
9769 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9770 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9771 (output_cbcond): Remove bogus handling of CC modes.
9772 (sparc_register_move_cost): Return 100 for NO_REGS.
9773 * config/sparc/sparc.md (W): New mode iterator.
9774 (length): Adjust for noov_compare64_operator renaming.
9775 (cmpsi_sne): New instruction.
9776 (cmpdi_sne): Likewise.
9777 (seqdi_special): Delete.
9778 (seqdi_special): Likewise.
9779 (snesi<P:mode>_special): Likewise.
9780 (snedi_special): Likewise.
9781 (snedi_special_vis3): Likewise.
9782 (snesi patterns): Use W iterator.
9783 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9784 (sltu patterns): Likewise.
9785 (sgeu patterns): Likewise.
9786 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9787 (normal_branch): Use icc_comparison_operator predicate.
9788 (inverted_branch): Likewise.
9789 (cbcond_sp32): Use comparison_operator predicate.
9790 (cbcond_sp64): Likewise.
9791 (normal_int_branch_sp64): Adjust for renaming
9792 (inverted_int_branch_sp64): Likewise.
9793 (mov<I:mode>_cc_reg_sp64): Likewise.
9794 (movsf_cc_reg_sp6): Likewise.
9795 (movdf_cc_reg_sp64): Likewise.
9796 (movtf_cc_reg_hq_sp64): Likewise.
9797 (movtf_cc_reg_sp64): Likewise.
9798 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9799 (movsf_cc_v9): Likewise.
9800 (movdf_cc_v9): Likewise.
9801 (movtf_cc_hq_v9): Likewise.
9802 (movtf_cc_v9): Likewise.
9803 (adddi3): Call gen_adddi3_sp32.
9804 (adddi3_insn_sp32): Rename to...
9805 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9806 and use CCCmode for the carry.
9807 (addx_extend_sp32): Use CCCmode for the carry.
9808 (addx_extend_sp64): Delete.
9809 (adddi3_extend_sp32): Use CCCmode for the carry.
9810 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9811 (subdi3): Call gen_subdi3_sp32.
9812 (subdi3_insn_sp32): Rename to...
9813 (subdi3_sp32): ...this and use CCmode for the carry.
9814 (subx_extend_sp32): Use CCCmode for the carry.
9815 (subx_extend_sp64): Delete.
9816 (subdi3_extend_sp32): Use CCmode for the carry.
9817 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9818 (negdi3): Call gen_negdi3_sp32.
9819 (negdi3_sp32): Use CCCmode for the carry.
9820 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9821 (cmp_nz_ashift_1): Use CCNZ mode.
9822 (cmp_nz_set_ashift_1): Likewise.
9823 (ctrapsi4): Use comparison_operator predicate.
9824 (ctrapdi4): Likewise.
9825 (trapsi_insn): Use icc_comparison_operator predicate.
9826 (trapdi_insn): Likewise.
9827 (edge8 patterns): Use CCNZmode.
9828 (edge16 patterns): Likewise.
9829 (edge32 patterns): Likewise.
9830
9831 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9832
9833 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9834 (CCNZ): ...this.
9835 (CC_BTST): Rename into...
9836 (CCC): ...this.
9837 * config/visium/predicates.md (real_add_operand): New.
9838 (visium_btst_operator): Rename into...
9839 (visium_equality_comparison_operator): ...this.
9840 (visium_noov_operator): Rename into...
9841 (visium_nz_comparison_operator): ...this.
9842 (visium_c_comparison_operator): New.
9843 (visium_branch_operator): Adjust and deal with all CC modes.
9844 * config/visium/visium.c (visium_adjust_cost): Adjust.
9845 (visium_split_double_add): Use the *_set_carry patterns.
9846 (visium_select_cc_mode): Add support for CCC mode and adjust.
9847 (output_cbranch): Adjust and use the carry-based operators for
9848 floating-point comparisons.
9849 * config/visium/visium.md (flags_subst_arith): Adjust.
9850 (addsi3_insn_set_carry): New instruction.
9851 (subsi3_insn_set_carry): Likewise.
9852 (negsi2_insn_set_carry): Likewise.
9853 (btst): Adjust.
9854 (cmp<mode>_sne): Likewise.
9855 (cbranch<mode>4): Use ordered_comparison_operator.
9856 (cbranch<mode>4_insn): Likewise.
9857 (cbranchsi4_btst_insn): Adjust.
9858
9859 2016-10-11 Tom de Vries <tom@codesourcery.com>
9860
9861 PR middle-end/77558
9862 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9863 special-casing.
9864
9865 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9866
9867 * tree.h (build_complex_type): Add second parameter with default.
9868 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9869 recursive call. Create a TYPE_DECL only if NAMED is true.
9870 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9871
9872 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9873
9874 New avr-passes.def to register AVR specific passes.
9875
9876 * config/avr/avr-passes.def: New file.
9877 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9878 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9879 (make_avr_pass_recompute_note): New proto.
9880 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9881 (avr_pass_recompute_notes): Use anonymous namespace.
9882 (avr_register_passes): Remove function...
9883 (avr_option_override): ...and its call.
9884
9885 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9886
9887 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9888 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9889 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9890 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9891 flags.
9892 * config/mips/mips.c (mips_option_override): Enable the branch
9893 likely depending on the tune flags and optimization level.
9894 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9895 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9896 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9897 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9898
9899 2016-10-11 Richard Biener <rguenther@suse.de>
9900
9901 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9902 (output_function): Properly stream the whole block tree.
9903 * lto-streamer-in.c (input_function): Likewise.
9904
9905 2016-10-11 Marek Polacek <polacek@redhat.com>
9906
9907 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9908
9909 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9910
9911 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9912 (evrp_dom_walker::before_dom_children): Infer and push new value
9913 ranges for x in y < x.
9914
9915 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9916
9917 PR target/77586
9918 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9919 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9920 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9921 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9922 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9923 (IA64_NO_LIBGCC_TFMODE): Likewise.
9924
9925 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9926
9927 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9928 copying.
9929
9930 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9931
9932 * config.gcc: Add aarch64-*-freebsd* support.
9933 * config.host: Likewise.
9934 * config/aarch64/aarch64-freebsd.h: New file.
9935 * config/aarch64/t-aarch64-freebsd: Ditto.
9936
9937 2016-10-10 Jeff Law <law@redhat.com>
9938
9939 PR tree-optimization/71947
9940 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9941 B with A within a single statement.
9942
9943 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9944
9945 PR tree-optimization/77824
9946 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9947 zero cost for copies.
9948 (find_candidates_dom_walker::before_dom_children): Replace
9949 MODIFY_EXPR with SSA_NAME.
9950 (replace_mult_candidate): Likewise.
9951 (replace_profitable_candidates): Likewise.
9952
9953 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9954
9955 * config/s390/s390.h: Wrap more macros args in brackets and fix
9956
9957 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9958
9959 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9960
9961 2016-10-10 Andreas Schwab <schwab@suse.de>
9962
9963 PR target/77738
9964 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9965 pseudo is not DImode.
9966
9967 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9968
9969 * common/config/arc/arc-common.c (arc_option_optimization_table):
9970 Remove compact casesi option.
9971 * config/arc/arc.c (arc_override_options): Use compact casesi
9972 option only for pre-ARCv2 cores.
9973 * doc/invoke.texi (mcompact-casesi): Update text.
9974
9975 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9976
9977 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9978 Add macro to say we can efficiently handle overlapping unaligned
9979 loads.
9980 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9981 poor code for processors older than p8.
9982
9983 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9984
9985 * gen-pass-instances.awk: Remove GNUism.
9986
9987 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9988
9989 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9990 NULL of (*ipcp_transformations)][node->uid].
9991
9992 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9993
9994 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9995 (MALLOC_ABI_ALIGNMENT): Define.
9996
9997 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9998
9999 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10000 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10001 VAR_OR_FUNCTION_DECL_P macros.
10002 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10003 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10004 chkp_find_bounds_1): Likewise.
10005 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10006 * hsa-gen.c (get_symbol_for_decl): Likewise.
10007 * cgraphunit.c (check_global_declaration, analyze_functions,
10008 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10009 Likewise.
10010 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10011 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10012 Likewise.
10013 * tree.c (set_decl_section_name, copy_node_stat,
10014 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10015 merge_dllimport_decl_attributes, handle_dll_attribute,
10016 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10017 verify_type): Likewise.
10018 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10019 find_explicit_erroneous_behavior): Likewise.
10020 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10021 * ipa.c (process_references): Likewise.
10022 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10023 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10024 notice_global_symbol, assemble_variable, mark_decl_referenced,
10025 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10026 make_decl_one_only, default_section_type_flags,
10027 categorize_decl_for_section, default_encode_section_info): Likewise.
10028 * trans-mem.c (requires_barrier): Likewise.
10029 * gimple-expr.c (mark_addressable): Likewise.
10030 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10031 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10032 expand_debug_expr): Likewise.
10033 * tree-dump.c (dequeue_and_dump): Likewise.
10034 * ubsan.c (instrument_bool_enum_load): Likewise.
10035 * tree-pretty-print.c (print_declaration): Likewise.
10036 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10037 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10038 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10039 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10040 pass_build_ssa::execute): Likewise.
10041 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10042 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10043 Likewise.
10044 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10045 Likewise.
10046 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10047 can_be_nonlocal, remap_decls, copy_debug_stmt,
10048 initialize_inlined_parameters, add_local_variables,
10049 reset_debug_binding, replace_locals_op): Likewise.
10050 * dse.c (can_escape): Likewise.
10051 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10052 Likewise.
10053 * tree-diagnostic.c (default_tree_printer): Likewise.
10054 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10055 unpack_ts_decl_with_vis_value_fields,
10056 lto_input_ts_decl_common_tree_pointers): Likewise.
10057 * builtins.c (builtin_save_expr, fold_builtin_expect,
10058 readonly_data_expr): Likewise.
10059 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10060 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10061 Likewise.
10062 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10063 * gimplify.c (force_constant_size, gimplify_bind_expr,
10064 gimplify_decl_expr, gimplify_var_or_parm_decl,
10065 gimplify_compound_lval, gimplify_init_constructor,
10066 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10067 gimplify_type_sizes): Likewise.
10068 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10069 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10070 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10071 remove_unused_locals): Likewise.
10072 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10073 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10074 * function.c (instantiate_expr, instantiate_decls_1,
10075 setjmp_vars_warning, add_local_decl): Likewise.
10076 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10077 Likewise.
10078 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10079 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10080 optimize_va_list_gpr_fpr_size): Likewise.
10081 * tree-nrv.c (pass_nrv::execute): Likewise.
10082 * tsan.c (instrument_expr): Likewise.
10083 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10084 * vtable-verify.c (verify_bb_vtables): Likewise.
10085 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10086 get_ref_base_and_extent): Likewise.
10087 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10088 Likewise.
10089 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10090 analyze_all_variable_accesses): Likewise.
10091 * tree-nested.c (get_nonlocal_debug_decl,
10092 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10093 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10094 get_local_debug_decl, convert_local_omp_clauses,
10095 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10096 Likewise.
10097 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10098 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10099 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10100 dbxout_symbol, dbxout_common_check): Likewise.
10101 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10102 string_constant): Likewise.
10103 * hsa.c (hsa_get_declaration_name): Likewise.
10104 * passes.c (rest_of_decl_compilation): Likewise.
10105 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10106 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10107 pack_ts_decl_with_vis_value_fields,
10108 write_ts_decl_common_tree_pointers): Likewise.
10109 * stor-layout.c (place_field): Likewise.
10110 * symtab.c (symtab_node::maybe_create_reference,
10111 symtab_node::verify_base, symtab_node::make_decl_local,
10112 symtab_node::copy_visibility_from,
10113 symtab_node::can_increase_alignment_p): Likewise.
10114 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10115 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10116 fortran_common, add_location_or_const_value_attribute,
10117 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10118 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10119 optimize_one_addr_into_implicit_ptr,
10120 optimize_location_into_implicit_ptr): Likewise.
10121 * gimple-low.c (record_vars_into): Likewise.
10122 * ipa-visibility.c (update_vtable_references): Likewise.
10123 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10124 Likewise.
10125 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10126 DFS::DFS_write_tree_body, write_symbol): Likewise.
10127 * langhooks.c (lhd_warn_unused_global_decl,
10128 lhd_set_decl_assembler_name): Likewise.
10129 * attribs.c (decl_attributes): Likewise.
10130 * except.c (output_ttype): Likewise.
10131 * varpool.c (varpool_node::get_create, ctor_for_folding,
10132 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10133 * fold-const.c (fold_unary_loc): Likewise.
10134 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10135 ipa_find_agg_cst_from_init): Likewise.
10136 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10137 expand_omp_target, lower_omp_regimplify_p,
10138 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10139 find_link_var_op): Likewise.
10140 * tree-chrec.c (chrec_contains_symbols): Likewise.
10141 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10142 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10143 execute_fixup_cfg): Likewise.
10144
10145 PR tree-optimization/77901
10146 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10147 if ranges[i].exp is SSA_NAME when looking for >= and only when
10148 ranges[i].exp is NULL or SSA_NAME when looking for the other
10149 comparison.
10150
10151 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10152
10153 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10154 (ipcp_param_lattices): Remove field alignment.
10155 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10156 (set_all_contains_variable): Remove call to
10157 ipcp_alignment_lattice::set_to_bottom.
10158 (initialize_node_lattices): Likewise.
10159 (propagate_alignment_accross_jump_function): Remove.
10160 (propagate_constants_accross_call): Remove call to
10161 propagate_alignment_accross_jump_function.
10162 (ipcp_store_alignment_results): Remove.
10163 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10164 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10165 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10166 pretty-printing of alignment jump function.
10167 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10168 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10169 alignments and remove computing ipa_alignment jump function.
10170 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10171 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10172 (ipa_read_jump_function): Remove reading of ipa_alignment.
10173 (write_ipcp_transformation_info): Remove streaming for alignment
10174 propagation summary.
10175 (read_ipcp_transformation_info): Remove reading of alignment
10176 propagation summary.
10177 (ipcp_update_alignments): Remove.
10178 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10179 type.
10180 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10181 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10182 * ipa-prop.h (ipa_alignment): Remove.
10183 (ipa_jump_func): Remove field alignment.
10184 (ipcp_transformation_summary): Remove field alignments.
10185 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10186 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10187 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10188
10189 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10190
10191 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10192
10193 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10194 change.
10195 (visium_expand_fp_cstore): Likewise.
10196
10197 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10198
10199 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10200 * diagnostic.c (warning_at_rich_loc_n): New function.
10201 (diagnostic_n_impl_richloc): Likewise.
10202 (diagnostic_n_impl): Move most of the function to
10203 diagnostic_n_impl_richloc and call it.
10204
10205 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10206
10207 * gen-pass-instances.awk: Rewritten.
10208 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10209 $(PASSES_EXTRA) after passes.def to the script.
10210 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10211 * config/i386/i386-passes.def: New file.
10212 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10213 make_pass_stv): Declare.
10214 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10215 false.
10216 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10217 or !TARGET_64BIT.
10218 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10219 (pass_stv::timode_p): New non-static data member.
10220 (ix86_option_override): Don't register passes here.
10221
10222 * doc/invoke.texi: Document accepting Else, fallthrough.
10223
10224 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10225 style changes.
10226
10227 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10228 FALLTHRU comment styles.
10229
10230 2016-10-07 Andrew Pinski <apinski@cavium.com>
10231
10232 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10233 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10234 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10235 Likewise.
10236 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10237 Likewise.
10238 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10239 Likewise.
10240 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10241 (AARCH64_ARCH): Likewise.
10242 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10243 Likewise.
10244 (AARCH64_CORE): Likewise.
10245 (AARCH64_ARCH): Likewise.
10246 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10247 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10248 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10249 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10250 (AARCH64_ARCH): Likewise.
10251 (AARCH64_CORE): Likewise.
10252 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10253 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10254 (AARCH64_CORE): Likewise.
10255 (AARCH64_ARCH): Likewise.
10256
10257 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10258
10259 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10260 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10261 floating point type infrastructre, and -mfloat128 that enables the
10262 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10263 if -mfloat128-type. Define __ibm128 to be long double by default.
10264 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10265 the IEEE 128-bit floating point type infrastructure should
10266 automatically be enabled.
10267 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10268 instead of -mfloat128 to enable KFmode.
10269 (rs6000_option_override_internal): Split the option -mfloat128
10270 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10271 systems, automatically set -mfloat128-type, but don't enable it on
10272 other operating systems. Move setting the long double size and
10273 IEEE quad support before the IEEE 128-bit floating point changes.
10274 (rs6000_init_builtins): Do not create a unique type for __ibm128
10275 if long double is IBM extended double, instead rely on __ibm128
10276 being defined as 'long double'. If -mfloat128-type and not
10277 -mfloat128, create the KFmode type with an undocumented __ieee128
10278 keyword.
10279 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10280 -mfloat128 for tests about the types, but keep tests for
10281 -mfloat128 to enable the keyword support.
10282 (rs6000_complex_function_value): Likewise.
10283 (rs6000_scalar_mode_supported_p): Likewise.
10284 (rs6000_floatn_mode): Likewise.
10285 (rs6000_c_mode_for_suffix): Likewise.
10286 (rs6000_opt_masks): Add -mfloat128-type.
10287 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10288 -mfloat128-type being split from -mfloat128. Add
10289 -mfloat128-hardware, which was missing.
10290 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10291 -mfloat128 and -mfloat128-type:
10292 (-mfloat128-type): Likewise.
10293 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10294 that 64-bit Linux systems with enable -mfloat128-type by default
10295 on VSX systems.
10296 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10297 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10298 -mfloat128-type instead of -mfloat128.
10299 (FLOAT128_2REG_P): Likewise.
10300 (MASK_FLOAT128_TYPE): Likewise.
10301 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10302 (RS6000_BTM_FLOAT128): Likewise.
10303 (TARGET_FLOAT128): Poison old identifiers.
10304 (OPTION_MASK_FLOAT128): Likewise.
10305 (MASK_FLOAT128): Likewise.
10306 * config/rs6000/rs6000.md (FP): Likewise.
10307 (FLOAT128): Likewise.
10308 (fix_trunc<mode>di2): Likewise.
10309 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10310 (floatdi<mode>2): Likewise.
10311 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10312 (neg<mode>2, FLOAT128 iterator): Likewise.
10313 (abs<mode>2, FLOAT128 iterator): Likewise.
10314 (ieee_128bit_negative_zero): Likewise.
10315 (ieee_128bit_vsx_neg<mode>2): Likewise.
10316 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10317 (ieee_128bit_vsx_abs<mode>2): Likewise.
10318 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10319 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10320 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10321 (extendiftf2): Likewise.
10322 (extendifkf2): Likewise.
10323 (extendtfkf2): Likewise.
10324 (trunciftf2): Likewise.
10325 (truncifkf2): Likewise.
10326 (trunckftf2): Likewise.
10327 (trunctfif2): Likewise.
10328 (extendkftf2): Likewise.
10329 (trunctfkf2): Likewise.
10330
10331 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10332
10333 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10334 before merging in bytes to pass down to real_from_target.
10335
10336 2016-10-07 Richard Biener <rguenther@suse.de>
10337
10338 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10339 required hack.
10340 (substitute_and_fold_dom_walker::before_dom_children):
10341 Substitute and fold before pass specific folding to avoid
10342 feeding that with SSA names that will be later released.
10343 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10344 introduced by folding and visited by evaluate_stmt called during
10345 ccp_fold_stmt.
10346 (likely_value): Likewise.
10347 (evaluate_stmt): Likewise.
10348 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10349 (simplify_div_or_mod_using_ranges): Likewise.
10350 (simplify_min_or_max_using_ranges): Likewise.
10351 (simplify_abs_using_ranges): Likewise.
10352 (simplify_conversion_using_ranges): Likewise.
10353 (simplify_float_conversion_using_ranges): Likewise.
10354 (simplify_stmt_using_ranges): Likewise.
10355
10356 2016-10-07 Marek Polacek <polacek@redhat.com>
10357
10358 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10359 FALLTHROUGH_LABEL_P here...
10360 (warn_implicit_fallthrough_r): ...not here.
10361
10362 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10363
10364 PR tree-optimization/77880
10365 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10366 necessary.
10367
10368 2016-10-07 Marek Polacek <polacek@redhat.com>
10369
10370 PR c++/77803
10371 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10372
10373 2016-10-07 Richard Biener <rguenther@suse.de>
10374
10375 * bitmap.h: Document constraints on bitmap modification while
10376 iterating over it.
10377
10378 2016-10-07 Richard Biener <rguenther@suse.de>
10379
10380 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10381 * bitmap.h (bmp_iter_set): When advancing to the next element
10382 check that we didn't remove the current one.
10383 (bmp_iter_and): Likewise.
10384 (bmp_iter_and_compl): Likewise.
10385 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10386 we currently iterate on but keep a one-level queue.
10387 * sched-deps.c (remove_from_deps): Do not clear current bit
10388 but keep a one-level queue.
10389
10390 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10391
10392 PR tree-optimization/77664
10393 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10394 for the other ranges.
10395 (optimize_range_tests_diff): Fix up formatting.
10396 (optimize_range_tests_var_bound): New function.
10397 (optimize_range_tests): Use it.
10398
10399 2016-10-07 Martin Liska <mliska@suse.cz>
10400
10401 * coverage.c (build_gcov_exit_decl): Fix priority what
10402 should be really 99.
10403
10404 2016-10-07 Richard Biener <rguenther@suse.de>
10405
10406 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10407 vars in gimple_bind_vars but not in BLOCK_VARS.
10408
10409 2016-10-07 Richard Biener <rguenther@suse.de>
10410
10411 PR tree-optimization/77879
10412 * tree-ssa-structalias.c (handle_const_call): Properly handle
10413 NRV return slots.
10414 (handle_pure_call): Likewise.
10415
10416 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10417
10418 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10419 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10420 possible overflow.
10421
10422 2016-10-06 Andrew Pinski <apinski@cavium.com>
10423
10424 * config/aarch64/aarch64-cores.def: Add a comment before each
10425 set of cores.
10426
10427 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10428
10429 PR tree-optimization/77862
10430 * tree-vrp.c (add_equivalence): Use get_value_range so that
10431 num_vr_values is checked before accessing vr_values.
10432
10433 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10434
10435 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10436 POINTER_TYPE_P.
10437
10438 2016-10-05 Jeff Law <law@redhat.com>
10439
10440 PR tree-optimization/71661
10441 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10442 removal of a forwarder exposes a new natural loop.
10443
10444 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10445
10446 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10447 Introduce ssesuffix variable.
10448 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10449 (*<code><mode>3): Ditto.
10450
10451 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10452
10453 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10454 noop move.
10455
10456 2016-10-06 Richard Biener <rguenther@suse.de>
10457
10458 PR tree-optimization/77855
10459 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10460 instead of removing the current item while iterating over the set
10461 which is not safe.
10462
10463 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10464 Eric Botcazou <ebotcazou@adacore.com>
10465
10466 PR target/77759
10467 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10468 (classify_registers): Don't set it
10469 (function_arg_slotno): Don't initialize and test it. Tidy up.
10470
10471 2016-10-06 Richard Biener <rguenther@suse.de>
10472
10473 PR tree-optimization/77839
10474 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10475 lattice transition.
10476
10477 2016-10-06 Martin Liska <mliska@suse.cz>
10478
10479 * gcc.c: Set -fprofile-update=atomic when profiling is
10480 enabled and -pthread is set. Warn when one combines
10481 -pthread and -fprofile-update=single for an app using
10482 profiling code.
10483
10484 2016-10-06 Martin Liska <mliska@suse.cz>
10485
10486 PR bootstrap/77788
10487 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10488 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10489 Initialize a pointer to NULL.
10490 (slsr_process_copy): Likewise.
10491 * input.c (location_get_source_line): Likewise.
10492 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10493
10494 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10495
10496 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10497 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10498 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10499 * config.gcc: Deleted pcommitintrin.h
10500 * config/i386/pcommitintrin.h: Deleted file.
10501 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10502 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10503 detection.
10504 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10505 __PCOMMIT__.
10506 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10507 (PTA_PCOMMIT): Deleted define.
10508 (ix86_option_override_internal): Deleted handle of option.
10509 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10510 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10511 __builtin_ia32_pcommit): Deleted.
10512 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10513 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10514 (pcommit): Deleted instruction.
10515 * config/i386/i386.opt: Mention -mpcommit deprecation.
10516 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10517
10518 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10519
10520 PR target/77874
10521 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10522 Remove wrong assert.
10523 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10524 Use <round_constraint> as operand 1 constraint.
10525
10526 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10527
10528 PR sanitizer/66343
10529 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10530 (ubsan_instrument_float_cast): And not here.
10531
10532 PR sanitizer/66343
10533 * ubsan.c (ubsan_ids): New GTY(()) array.
10534 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10535 instead of static local counters.
10536
10537 2016-10-05 Martin Sebor <msebor@redhat.com>
10538
10539 PR bootstrap/77819
10540 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10541 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10542 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10543 (default_printf_pointer_format): Define function.
10544 * targhooks.c (linux_printf_pointer_format): Define new function.
10545 * targhooks.h (linux_printf_pointer_format): Declare.
10546 (gnu_libc_printf_pointer_format): Remove declaration.
10547
10548 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10549
10550 * fold-const.c (native_encode_real): Fix logic for selecting offset
10551 to write to when BYTES_BIG_ENDIAN.
10552
10553 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10554
10555 * builtins.c (fold_builtin_strchr): Remove function.
10556 (fold_builtin_strrchr): Likewise.
10557 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10558 * gimple-fold.c (target_char_cst_p): New function.
10559 (gimple_fold_builtin_strchr) Add more foldings.
10560 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10561
10562 2016-10-05 Richard Biener <rguenther@suse.de>
10563
10564 PR middle-end/77863
10565 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10566 capture ids in c-exprs.
10567
10568 2016-10-05 Richard Biener <rguenther@suse.de>
10569
10570 PR middle-end/77826
10571 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10572 with types_match for GIMPLE code gen to handle type mismatched
10573 constants properly.
10574 (dt_operand::gen): Adjust.
10575 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10576 and constant A.
10577
10578 2016-10-05 Richard Biener <rguenther@suse.de>
10579
10580 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10581
10582 2016-10-05 Richard Biener <rguenther@suse.de>
10583
10584 PR middle-end/77842
10585 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10586
10587 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10588
10589 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10590 version check to protect only DW_TAG_imported_module generation.
10591
10592 2016-10-05 Richard Biener <rguenther@suse.de>
10593
10594 PR middle-end/55152
10595 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10596
10597 2016-10-04 Ian Lance Taylor <iant@golang.org>
10598
10599 * explow.c (allocate_dynamic_stack_space): Call
10600 do_pending_stack_adjust before handling flag_split_stack.
10601
10602 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10603
10604 * genattrtab.c (make_internal_attr): Supply dummy column number to
10605 file_location ctor.
10606 (main): Likewise.
10607 * genoutput.c (init_insn_for_nothing): Likewise.
10608 * gensupport.c (add_define_attr): Likewise.
10609 * read-md.c (message_at_1): Print column number.
10610 (fatal_with_file_and_line): Likewise.
10611 (rtx_reader::read_char): Track column numbers.
10612 (rtx_reader::unread_char): Likewise.
10613 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10614 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10615 (rtx_reader::handle_file): Initialize m_read_md_colno.
10616 (rtx_reader::get_current_location): Supply column number to
10617 file_location ctor.
10618 * read-md.h (struct file_location): Add field "colno".
10619 (file_location::file_location): Likewise.
10620 (rtx_reader::get_colno): New accessor.
10621 (rtx_reader::m_read_md_colno): New field.
10622 (rtx_reader::m_last_line_colno): New field.
10623
10624 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10625
10626 * doc/extend.texi (Java Exceptions): Remove.
10627 (java_interface): Remove.
10628
10629 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10630
10631 PR tree-optimization/77808
10632 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10633 and addr are different before copying points-to information.
10634
10635 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10636
10637 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10638 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10639 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10640 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10641
10642 2016-10-04 Richard Biener <rguenther@suse.de>
10643
10644 PR tree-optimization/77399
10645 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10646 verify the target can convert.
10647
10648 2016-10-04 Richard Biener <rguenther@suse.de>
10649
10650 PR middle-end/77833
10651 * explow.c (plus_constant): Verify the mode of the constant
10652 pool offset before calling plus_constant.
10653
10654 2016-10-04 Richard Biener <rguenther@suse.de>
10655
10656 PR middle-end/77407
10657 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10658 type support, mark with :C.
10659 (X / -X -> -1): Mark with :C.
10660
10661 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10662
10663 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10664 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10665 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10666 * doc/tm.texi: Regenerated.
10667 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10668 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10669 * config/darwin.h (JCR_SECTION_NAME): Remove.
10670 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10671 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10672 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10673 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10674 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10675 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10676
10677 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10678
10679 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10680 between "because" and "param" in dump message in call to fprintf.
10681
10682 2016-10-03 Jeff Law <law@redhat.com>
10683
10684 PR tree-optimization/71550
10685 PR tree-optimization/71403
10686 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10687 (profitable_jump_thread_path): Also return boolean indicating if
10688 the realized path will create an irreducible loop.
10689 Remove loop depth tests from 71403.
10690 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10691 from 71403. If threading will create an irreducible loop, then
10692 throw away loop iteration and related information.
10693
10694 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10695
10696 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10697 -Woverloaded-virtual checks for warning options.
10698 * configure: Regenerate.
10699
10700 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10701
10702 PR preprocessor/77699
10703 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10704 (get_next_line): Return false on error.
10705 (read_next_line): Removed, use get_next_line instead.
10706 (read_line_num): Don't copy the line.
10707 (location_get_source_line): Don't use static data.
10708 (selftest::test_reading_source_line): Add more test cases.
10709
10710 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10711
10712 Revert
10713 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10714
10715 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10716 (noce_process_if_block): Use it.
10717
10718 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10719
10720 * doc/invoke.texi: Update -Wint-in-bool-context.
10721
10722 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10723
10724 * dwarf2out.c (output_fde, output_call_frame_info,
10725 dwarf2out_do_cfi_startproc, set_indirect_string,
10726 gen_internal_sym, output_die, output_line_info): Use
10727 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10728 ASM_GENERATE_INTERNAL_LABEL output.
10729
10730 2016-10-01 Richard Biener <rguenther@suse.de>
10731
10732 PR middle-end/77798
10733 * genmatch.c (get_operand_type): Add operand position arg
10734 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10735 (expr::gen_transform): Adjust.
10736 (dt_simplify::gen_1): Likewise.
10737
10738 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10739
10740 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10741 comments. Simplify asserts, remove unnecessary conditions.
10742 Formatting fixes.
10743 (*<code><mode>3): Likewise.
10744
10745 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10746
10747 * doc/invoke.texi (-Wregister): Document.
10748
10749 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10750
10751 * configure.ac: Split CHECKING_P into CHECKING_P and
10752 ENABLE_EXTRA_CHECKING.
10753 * configure: Regenerated.
10754 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10755 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10756
10757 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10758
10759 PR other/31566
10760 * gcc.c (process_command): For @filename handling, output
10761 the correct name if the file does not exist.
10762
10763 2016-09-30 Marek Polacek <polacek@redhat.com>
10764
10765 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10766 * config/alpha/predicates.md: Likewise.
10767
10768 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10769
10770 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10771 (noce_process_if_block): Use it.
10772
10773 2016-09-30 Martin Liska <mliska@suse.cz>
10774
10775 * doc/invoke.texi: Document asan-use-after-return that
10776 it's disabled by default in runtime.
10777
10778 2016-09-30 Richard Biener <rguenther@suse.de>
10779
10780 * tree-vrp.c (intersect_ranges): If we failed to handle
10781 the intersection choose a constant singleton range if available.
10782
10783 2016-09-30 Richard Biener <rguenther@suse.de>
10784
10785 PR tree-optimization/77399
10786 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10787 float <-> int conversions.
10788
10789 2016-09-30 Alan Modra <amodra@gmail.com>
10790
10791 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10792
10793 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10794
10795 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10796 ext_level before calling CPUID with 0x80000008.
10797 Simplify xgetbv checks.
10798
10799 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10800
10801 * Makefile.in (OBJS): Add print-rtl-function.o.
10802 * print-rtl-function.c: New file.
10803 * print-rtl.h (print_rtx_function): New decl.
10804
10805 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10806
10807 PR target/77756
10808 * config/i386/cpuid.h (__get_cpuid_count): New.
10809 (__get_cpuid): Rename __level to __leaf.
10810
10811 2016-09-29 Marek Polacek <polacek@redhat.com>
10812
10813 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10814
10815 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10816
10817 PR target/77718
10818 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10819 result is only being compared with zero.
10820
10821 2016-09-29 Marek Polacek <polacek@redhat.com>
10822
10823 * dwarf2out.c (loc_descriptor): Add fall through comment.
10824 (add_const_value_attribute): Likewise.
10825
10826 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10827
10828 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10829 with "v6t2". Move "arch" attribute above "pool_range".
10830 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10831 with "v6t2".
10832 (*thumb2_movhi_vfp): Likewise.
10833 (*arm_movhi_fp16): Likewise.
10834 (*thumb2_movhi_fp16): Likewise.
10835 (*arm_movsi_vfp): Remove "arch" attribute.
10836 (*thumb2_movsi_vfp): Likewise.
10837
10838 2016-09-29 Martin Liska <mliska@suse.cz>
10839
10840 * doc/extend.texi: Remove limitation of Objective C for
10841 __attribute__((constructor)) and __attribute__((destructor)).
10842
10843 2016-09-29 Richard Biener <rguenther@suse.de>
10844
10845 PR tree-optimization/77768
10846 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10847 Handle stores to readonly memory when removing redundant stores.
10848
10849 2016-09-29 Richard Biener <rguenther@suse.de>
10850
10851 PR middle-end/77407
10852 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10853 X / -X -> -1 simplifications.
10854
10855 2016-09-29 Richard Biener <rguenther@suse.de>
10856
10857 PR middle-end/55152
10858 * match.pd: Add max(a,-a) -> abs(a) pattern.
10859 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10860 HONOR_SIGNED_ZEROS types.
10861
10862 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10863
10864 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10865 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10866
10867 2016-09-29 Richard Biener <rguenther@suse.de>
10868
10869 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10870 writing to vr_const_varying.
10871 (vrp_initialize): Call it.
10872 (vrp_visit_stmt): Likewise.
10873 (evrp_dom_walker::before_dom_children): Likewise.
10874
10875 2016-09-29 Richard Biener <rguenther@suse.de>
10876
10877 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10878 constructors with vector elements.
10879
10880 2016-09-29 Richard Biener <rguenther@suse.de>
10881
10882 PR tree-optimization/77768
10883 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10884 with stores to a place we know has a constant value.
10885
10886 2016-09-29 Alan Modra <amodra@gmail.com>
10887
10888 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10889 * doc/invoke.texi: Document it.
10890 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10891 (rs6000_passes_float): Comment.
10892 (rs6000_passes_long_double): New static var.
10893 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10894 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10895 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10896 to include fp values returned in vectors.
10897 Set rs6000_passes_long_double.
10898 (rs6000_function_arg_advance_1): Likewise for function args.
10899 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10900 and SPE. Emit long double tag value too.
10901 (rs6000_opt_vars): Add gnu-attr.
10902 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10903 * configure: Regenerate.
10904 * config.in: Regenerate.
10905
10906 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10907
10908 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10909 of 0 < x.
10910 (format_floating, format_string, format_directive,
10911 get_destination_size, pass_sprintf_length::handle_gimple_call):
10912 Likewise.
10913
10914 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10915
10916 * gimple-ssa-sprintf.c: Fix comment formatting.
10917 (format_integer): Use is_gimple_assign.
10918 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10919 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10920 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10921 (pass_sprintf_length::execute): Use is_gimple_call.
10922
10923 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10924
10925 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10926 strchr, also try the generic folding.
10927
10928 2016-09-28 Martin Sebor <msebor@redhat.com>
10929
10930 PR c/77762
10931 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10932 Fix typos.
10933
10934 2016-09-28 Martin Sebor <msebor@redhat.com>
10935
10936 PR middle-end/77683
10937 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10938 length modifier is not expected.
10939 (format_floating): Ignore l length modifier and fail gracefuly
10940 when it isn't one of the other expected ones.
10941
10942 2016-09-28 Martin Sebor <msebor@redhat.com>
10943
10944 PR bootstrap/77753
10945 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10946
10947 2016-09-27 Richard Biener <rguenther@suse.de>
10948
10949 * dwarf2out.c (cu_die_list): New global.
10950 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10951 main_comp_unit_die to cu_die_list if we created it.
10952 Move break_out_includes ...
10953 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10954 the cu_die_list.
10955
10956 2016-09-28 Richard Biener <rguenther@suse.de>
10957
10958 * dwarf2out.c (struct die_struct): Add removed flag.
10959 (lookup_type_die): If the DIE is marked as removed, clear
10960 TYPE_SYMTAB_DIE and return NULL.
10961 (lookup_decl_die): If the DIE is marked as removed, remove it
10962 from the hash and return NULL.
10963 (mark_removed): New helper.
10964 (prune_unused_types_prune): Call it for removed DIEs.
10965 (gen_subprogram_die): Move the premark_used_types call to after
10966 DIEs for the functions scopes are generated.
10967 (process_scope_var): Do not re-create pruned types or type decls.
10968 Make sure to also re-parent type decls.
10969 (dwarf2out_finish): Move unused type pruning and debug_types
10970 handling ...
10971 (dwarf2out_early_finish): ... here.
10972
10973 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10974
10975 * config/arc/arc-c.c: New file.
10976 * config/arc/arc-c.def: Likewise.
10977 * config/arc/t-arc: Likewise.
10978 * config.gcc: Include arc-c.o as c and cpp object.
10979 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10980 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10981 arc_cpu_cpp_builtins.
10982
10983 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10984
10985 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10986 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10987
10988 2016-09-28 Nathan Sidwell <nathan@acm.org>
10989
10990 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10991 printing.
10992
10993 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10994
10995 PR tree-optimization/61056
10996 * gimple-fold.c (gimple_fold_builtin_strchr):
10997 New function to optimize strchr (s, 0) to strlen.
10998 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10999
11000 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11001
11002 PR tree-optimization/77724
11003 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11004 Add tree_fits_shwi_p check.
11005
11006 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11007
11008 * auto-inc-dec.c (try_merge): Remove break after return.
11009 * cselib.c (autoinc_split): Likewise.
11010 * explow.c (promote_mode): Likewise.
11011 * fixed-value.c (fixed_arithmetic): Likewise.
11012 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11013 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11014 * trans-mem.c (get_attrs_for): Likewise.
11015 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11016 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11017 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11018 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11019 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11020 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11021 * config/cris/cris.c (cris_op_str): Likewise.
11022 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11023 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11024
11025 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11026
11027 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11028 IFN_GOACC_REDUCTION_CODES): New.
11029 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11030 ifn_goacc_reduction_kind): Use them.
11031 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11032 of internal functions, when applicable.
11033
11034 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11035
11036 * config/mips/constraints.md (d): Fix documentation.
11037 * doc/md.texi (Machine Constraints): Update accordingly.
11038
11039 2016-09-27 Richard Biener <rguenther@suse.de>
11040
11041 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11042 cur_line_info_table initialization ...
11043 (dwarf2out_assembly_start): ... here.
11044
11045 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11046
11047 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11048 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11049 (*thumb2_movhi_vfp): Likewise.
11050 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11051 template. Expand predicable attribute to mark VMOV.F16 as not
11052 predicable. Add "arch" attribute.
11053 (*thumb2_movhi_fp16): Likewise.
11054 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11055 (*thumb2_movsi_vfp): Add "arch" attribute.
11056
11057 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11058
11059 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11060 VAR_DECL string.
11061
11062 2016-09-27 Marek Polacek <polacek@redhat.com>
11063
11064 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11065 comment.
11066
11067 * config/c6x/c6x.h: Adjust fall through comment.
11068 * config/sh/sh.c (final_prescan_insn): Likewise.
11069 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11070 (visium_expand_fp_cstore): Likewise.
11071
11072 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11073
11074 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11075 expected by -Wimplicit-fallthrough.
11076 (thumb1_size_rtx_costs): Likewise.
11077 (thumb2_reorg): Likewise.
11078 (tls_mentioned_p): Add "Fall through" comment.
11079 (thumb2_reorg): Likewise.
11080 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11081 comment form expected by -Wimplicit-fallthrough.
11082
11083 2016-09-27 Martin Liska <mliska@suse.cz>
11084
11085 PR gcov-profile/46266
11086 * input.h (RESERVED_LOCATION_P): New macro.
11087 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11088 instread of comparison with UNKNOWN_LOCATION.
11089
11090 2016-09-27 Richard Biener <rguenther@suse.de>
11091
11092 PR tree-optimization/77745
11093 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11094 When removing redundant stores make sure to check compatibility
11095 of the TBAA state for downstream accesses.
11096 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11097 value-numbering virtual operands for store matches.
11098
11099 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11100
11101 PR target/51244
11102 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11103 movrt patterns. Match them before anything else in the SET case.
11104
11105 2016-09-27 Martin Liska <mliska@suse.cz>
11106
11107 PR gcov-profile/7970
11108 PR gcov-profile/16855
11109 PR gcov-profile/44779
11110 * coverage.c (build_gcov_exit_decl): New function.
11111 (coverage_obj_init): Call the function and generate __gcov_exit
11112 destructor.
11113 * doc/gcov.texi: Document when __gcov_exit function is called.
11114
11115 2016-09-27 Marek Polacek <polacek@redhat.com>
11116
11117 PR bootstrap/77751
11118 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11119 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11120 -Wno-error instead of -Wno-implicit-fallthrough.
11121
11122 2016-09-27 Martin Liska <mliska@suse.cz>
11123
11124 PR bootstrap/77749
11125 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11126
11127 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11128
11129 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11130 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11131 comments. Remove break after return.
11132 (ix86_fp_compare_code_to_integer, has_dispatch,
11133 ix86_simd_clone_usable): Remove break after return.
11134
11135 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11136
11137 PR rlt-optimization/77714
11138 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11139 REG_EQUAL note.
11140
11141 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11142
11143 PR ipa/77677
11144 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11145 extract_range_from_unary_expr to convert value_range.
11146 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11147 (extract_range_from_unary_expr): This.
11148 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11149
11150 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11151
11152 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11153
11154 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11155
11156 * config/i386/i386.c (ix86_print_operand)
11157 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11158 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11159 (epilogue_renumber): Likewise.
11160
11161 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11162
11163 PR middle-end/77719
11164 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11165 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11166
11167 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11168
11169 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11170 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11171 is_mm_seq_cst, is_mm_sync): Move to ...
11172 * memmodel.h: This. New file.
11173 * builtins.c: Include memmodel.h.
11174 * optabs.c: Likewise.
11175 * tsan.c: Likewise.
11176 * config/aarch64/aarch64.c: Likewise.
11177 * config/alpha/alpha.c: Likewise.
11178 * config/arm/arm.c: Likewise.
11179 * config/i386/i386.c: Likewise.
11180 * config/ia64/ia64.c: Likewise.
11181 * config/mips/mips.c: Likewise.
11182 * config/rs6000/rs6000.c: Likewise.
11183 * config/sparc/sparc.c: Likewise.
11184 * genconditions.c: Include memmodel.h in generated file.
11185 * genemit.c: Likewise.
11186 * genoutput.c: Likewise.
11187 * genpeep.c: Likewise.
11188 * genpreds.c: Likewise.
11189 * genrecog.c: Likewise.
11190
11191 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11192
11193 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11194 "c" instead when parsing characters. Move operand parsing into...
11195 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11196 and tightening the scope of various locals.
11197
11198 2016-09-26 Liu Hao <lh_mouse@126.com>
11199
11200 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11201
11202 2016-09-26 Marek Polacek <polacek@redhat.com>
11203
11204 * system.h: Use __has_attribute to check whether the fallthrough
11205 attribute is supported.
11206
11207 2016-09-26 Marek Polacek <polacek@redhat.com>
11208
11209 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11210 gimple_call_internal_p.
11211 * ipa-split.c (find_return_bb): Likewise.
11212 (execute_split_functions): Likewise.
11213 * omp-low.c (dump_oacc_loop_part): Likewise.
11214 (oacc_loop_xform_head_tail): Likewise.
11215 * predict.c (predict_loops): Likewise.
11216 * sanopt.c (pass_sanopt::execute): Likewise.
11217 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11218 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11219 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11220 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11221 (expand_ifn_va_arg): Likewise.
11222 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11223 (optimize_mask_stores): Likewise.
11224 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11225 (vect_transform_stmt): Likewise.
11226 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11227 * tsan.c (instrument_memory_accesses): Likewise.
11228
11229 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11230 Alexander Monakov <amonakov@ispras.ru>
11231
11232 * regrename.c (rename_chains): Check
11233 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11234 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11235 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11236
11237 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11238
11239 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11240 (s390_sched_score): Likewise.
11241
11242 2016-09-26 Martin Liska <mliska@suse.cz>
11243
11244 * doc/gcov.texi: Update program output of gcov tool.
11245
11246 2016-09-26 Martin Liska <mliska@suse.cz>
11247
11248 PR gcov-profile/23332
11249 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11250 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11251 * value-prof.c (dump_histogram_value): Do not handle
11252 HIST_TYPE_CONST_DELTA.
11253 (stream_in_histogram_value): Likewise.
11254 (gimple_find_values_to_profile): Likewise.
11255 * value-prof.h (enum hist_type): Likewise.
11256
11257 2016-09-26 Martin Liska <mliska@suse.cz>
11258
11259 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11260 from default sanitize recover values.
11261 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11262 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11263 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11264 consistent.
11265 * opts.c (finish_options): Do a generic loop over options
11266 that can be recovered.
11267 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11268 SANITIZE_RETURN.
11269 (common_handle_option): Likewise.
11270 * opts.h: Declare can_recover to sanitizer_opts_s.
11271
11272 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11273
11274 * target.def(elf_flags_numeric): Change documentation to present tense.
11275 * doc/tm.texi: Regenerate.
11276
11277 2016-09-26 Marek Polacek <polacek@redhat.com>
11278
11279 PR c/7652
11280 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11281 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11282 -Wno-switch-fallthrough.
11283 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11284 (expand_builtin): Likewise.
11285 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11286 * convert.c (convert_to_real_1): Likewise.
11287 (convert_to_integer_1): Likewise.
11288 * final.c (output_alternate_entry_point): Likewise.
11289 * genattrtab.c (make_canonical): Likewise.
11290 (write_test_expr): Likewise.
11291 * genpreds.c (validate_exp): Likewise.
11292 * gimple-ssa-strength-reduction.c
11293 (find_candidates_dom_walker::before_dom_children): Likewise.
11294 * godump.c (go_format_type): Likewise.
11295 * reload1.c (elimination_effects): Likewise.
11296 * resource.c (mark_referenced_resources): Likewise.
11297 (mark_set_resources): Likewise.
11298 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11299 * varasm.c (output_addressed_constants): Likewise.
11300
11301 2016-09-26 Marek Polacek <polacek@redhat.com>
11302
11303 PR c/7652
11304 * common.opt (Wimplicit-fallthrough): New option.
11305 * doc/extend.texi: Document statement attributes and the fallthrough
11306 attribute.
11307 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11308 * gimple.h (gimple_call_internal_p): New function.
11309 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11310 (struct label_entry): New struct.
11311 (find_label_entry): New function.
11312 (case_label_p): New function.
11313 (collect_fallthrough_labels): New function.
11314 (last_stmt_in_scope): New function.
11315 (should_warn_for_implicit_fallthrough): New function.
11316 (warn_implicit_fallthrough_r): New function.
11317 (maybe_warn_implicit_fallthrough): New function.
11318 (expand_FALLTHROUGH_r): New function.
11319 (expand_FALLTHROUGH): New function.
11320 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11321 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11322 (gimplify_label_expr): New function.
11323 (gimplify_case_label_expr): Set location.
11324 (gimplify_expr): Call gimplify_label_expr.
11325 * internal-fn.c (expand_FALLTHROUGH): New function.
11326 * internal-fn.def (FALLTHROUGH): New internal function.
11327 * langhooks.c (lang_GNU_OBJC): New function.
11328 * langhooks.h (lang_GNU_OBJC): Declare.
11329 * system.h (gcc_fallthrough): Define.
11330 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11331 * tree.h (FALLTHROUGH_LABEL_P): Define.
11332
11333 2016-09-26 Richard Biener <rguenther@suse.de>
11334
11335 * dwarf2out.c (stripattributes): Remove unused function.
11336 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11337 Push dwarf_split_debug_info handling into init_sections_and_labels.
11338 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11339 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11340 (debug_macinfo_section_name): New global.
11341 (output_macinfo): Use debug_macinfo_section_name.
11342 (init_sections_and_labels): Split out section and label generation
11343 from dwarf2out_init. Set debug_macinfo_section_name.
11344 (dwarf2out_init): Move text section label generation and emission
11345 to ...
11346 (dwarf2out_assembly_start): ... here.
11347 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11348 output starts.
11349
11350 2016-09-26 Richard Biener <rguenther@suse.de>
11351
11352 PR debug/77692
11353 * cgraphunit.c (analyze_functions): Before early removing
11354 global vars calls the late_global_decl debug handler mark
11355 the variable as readonly.
11356
11357 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11358
11359 PR target/51244
11360 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11361 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11362 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11363 declare new overloads.
11364 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11365 operand.
11366
11367 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11368
11369 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11370 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11371
11372 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11373
11374 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11375 * configure: Regenerate.
11376
11377 2016-09-24 Marek Polacek <polacek@redhat.com>
11378
11379 PR c/77490
11380 * doc/invoke.texi: Document -Wbool-operation.
11381
11382 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11383
11384 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11385 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11386 cmpmemsi pattern to do builtin expansion of memcmp ().
11387 (compute_current_alignment): Add helper function for
11388 expand_block_compare used to compute alignment as the compare proceeds.
11389 (select_block_compare_mode): Used by expand_block_compare to select
11390 the mode used for reading the next chunk of bytes in the compare.
11391 (do_load_for_compare): Used by expand_block_compare to emit the load
11392 insns for the compare.
11393 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11394 reference from expand_block_compare ().
11395 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11396 prototype for this function.
11397 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11398 target option for controlling how much code inline expansion of
11399 memcmp() will be allowed to generate.
11400
11401 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11402
11403 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11404 hook_bool_mode_false, hook_bool_mode_true,
11405 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11406 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11407 hook_bool_const_rtx_insn_const_rtx_insn_true,
11408 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11409 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11410 hook_bool_const_tree_hwi_hwi_const_tree_false,
11411 hook_bool_const_tree_hwi_hwi_const_tree_true,
11412 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11413 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11414 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11415 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11416 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11417 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11418 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11419 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11420 hook_bool_uintp_uintp_false,
11421 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11422 hook_rtx_tree_int_null, hook_uint_mode_0,
11423 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11424 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11425 hook_constcharptr_const_rtx_insn_null,
11426 hook_constcharptr_const_tree_const_tree_null,
11427 hook_constcharptr_int_const_tree_null,
11428 hook_constcharptr_int_const_tree_const_tree_null,
11429 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11430 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11431 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11432
11433 * vec.h (vNULL): Extend comment to say = vNULL initialization
11434 isn't needed for static vars.
11435
11436 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11437 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11438 = vNULL initialization of file scope vec.
11439 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11440 disabled_pass_uid_range_tab): Likewise.
11441 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11442 * tree-chkp-opt.c (check_infos): Likewise.
11443 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11444
11445 * vec.h (vnull::operator vec): Add constexpr keyword for
11446 C++11 and later.
11447
11448 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11449
11450 PR tree-optimization/77654
11451 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11452 to duplicate_ssa_name_ptr_info.
11453
11454 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11455
11456 PR preprocessor/77672
11457 * input.c (selftest::test_lexer_string_locations_simple): Update
11458 test to expect location information of the terminator character
11459 at the location of the final closing quote.
11460 (selftest::test_lexer_string_locations_hex): Likewise.
11461 (selftest::test_lexer_string_locations_oct): Likewise.
11462 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11463 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11464 (selftest::test_lexer_string_locations_ucn4): Likewise.
11465 (selftest::test_lexer_string_locations_ucn8): Likewise.
11466 (selftest::test_lexer_string_locations_u8): Likewise.
11467 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11468 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11469 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11470 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11471 (selftest::test_lexer_string_locations_macro): Likewise.
11472 (selftest::test_lexer_string_locations_long_line): Likewise.
11473
11474 2016-09-23 Richard Biener <rguenther@suse.de>
11475
11476 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11477 virtual definition to virtual use if the call devirtualizes
11478 to a const or pure function.
11479 (visit_use): Also visit calls we can devirtualize to a
11480 const or pure function.
11481
11482 2016-09-23 Richard Biener <rguenther@suse.de>
11483
11484 PR tree-optimization/77697
11485 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11486 signal error if we have sth ternary or unhandled.
11487
11488 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11489
11490 * config/arm/arm_neon.h (vabd_f16): New.
11491 (vabdq_f16): New.
11492 (vabs_f16): New.
11493 (vabsq_f16): New.
11494 (vadd_f16): New.
11495 (vaddq_f16): New.
11496 (vcage_f16): New.
11497 (vcageq_f16): New.
11498 (vcagt_f16): New.
11499 (vcagtq_f16): New.
11500 (vcale_f16): New.
11501 (vcaleq_f16): New.
11502 (vcalt_f16): New.
11503 (vcaltq_f16): New.
11504 (vceq_f16): New.
11505 (vceqq_f16): New.
11506 (vceqz_f16): New.
11507 (vceqzq_f16): New.
11508 (vcge_f16): New.
11509 (vcgeq_f16): New.
11510 (vcgez_f16): New.
11511 (vcgezq_f16): New.
11512 (vcgt_f16): New.
11513 (vcgtq_f16): New.
11514 (vcgtz_f16): New.
11515 (vcgtzq_f16): New.
11516 (vcle_f16): New.
11517 (vcleq_f16): New.
11518 (vclez_f16): New.
11519 (vclezq_f16): New.
11520 (vclt_f16): New.
11521 (vcltq_f16): New.
11522 (vcltz_f16): New.
11523 (vcltzq_f16): New.
11524 (vcvt_f16_s16): New.
11525 (vcvt_f16_u16): New.
11526 (vcvt_s16_f16): New.
11527 (vcvt_u16_f16): New.
11528 (vcvtq_f16_s16): New.
11529 (vcvtq_f16_u16): New.
11530 (vcvtq_s16_f16): New.
11531 (vcvtq_u16_f16): New.
11532 (vcvta_s16_f16): New.
11533 (vcvta_u16_f16): New.
11534 (vcvtaq_s16_f16): New.
11535 (vcvtaq_u16_f16): New.
11536 (vcvtm_s16_f16): New.
11537 (vcvtm_u16_f16): New.
11538 (vcvtmq_s16_f16): New.
11539 (vcvtmq_u16_f16): New.
11540 (vcvtn_s16_f16): New.
11541 (vcvtn_u16_f16): New.
11542 (vcvtnq_s16_f16): New.
11543 (vcvtnq_u16_f16): New.
11544 (vcvtp_s16_f16): New.
11545 (vcvtp_u16_f16): New.
11546 (vcvtpq_s16_f16): New.
11547 (vcvtpq_u16_f16): New.
11548 (vcvt_n_f16_s16): New.
11549 (vcvt_n_f16_u16): New.
11550 (vcvtq_n_f16_s16): New.
11551 (vcvtq_n_f16_u16): New.
11552 (vcvt_n_s16_f16): New.
11553 (vcvt_n_u16_f16): New.
11554 (vcvtq_n_s16_f16): New.
11555 (vcvtq_n_u16_f16): New.
11556 (vfma_f16): New.
11557 (vfmaq_f16): New.
11558 (vfms_f16): New.
11559 (vfmsq_f16): New.
11560 (vmax_f16): New.
11561 (vmaxq_f16): New.
11562 (vmaxnm_f16): New.
11563 (vmaxnmq_f16): New.
11564 (vmin_f16): New.
11565 (vminq_f16): New.
11566 (vminnm_f16): New.
11567 (vminnmq_f16): New.
11568 (vmul_f16): New.
11569 (vmul_lane_f16): New.
11570 (vmul_n_f16): New.
11571 (vmulq_f16): New.
11572 (vmulq_lane_f16): New.
11573 (vmulq_n_f16): New.
11574 (vneg_f16): New.
11575 (vnegq_f16): New.
11576 (vpadd_f16): New.
11577 (vpmax_f16): New.
11578 (vpmin_f16): New.
11579 (vrecpe_f16): New.
11580 (vrecpeq_f16): New.
11581 (vrnd_f16): New.
11582 (vrndq_f16): New.
11583 (vrnda_f16): New.
11584 (vrndaq_f16): New.
11585 (vrndm_f16): New.
11586 (vrndmq_f16): New.
11587 (vrndn_f16): New.
11588 (vrndnq_f16): New.
11589 (vrndp_f16): New.
11590 (vrndpq_f16): New.
11591 (vrndx_f16): New.
11592 (vrndxq_f16): New.
11593 (vrsqrte_f16): New.
11594 (vrsqrteq_f16): New.
11595 (vrecps_f16): New.
11596 (vrecpsq_f16): New.
11597 (vrsqrts_f16): New.
11598 (vrsqrtsq_f16): New.
11599 (vsub_f16): New.
11600 (vsubq_f16): New.
11601
11602 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11603
11604 * config.gcc (extra_headers): Add arm_fp16.h
11605 * config/arm/arm_fp16.h: New.
11606 * config/arm/arm_neon.h: Include "arm_fp16.h".
11607
11608 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11609
11610 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11611 variants).
11612 (vmulf): New (v8hf, v4hf variants).
11613 (vfma): New (v8hf, v4hf variants).
11614 (vfms): New (v8hf, v4hf variants).
11615 (vsub): New (v8hf, v4hf variants).
11616 (vcage): New (v8hf, v4hf variants).
11617 (vcagt): New (v8hf, v4hf variants).
11618 (vcale): New (v8hf, v4hf variants).
11619 (vcalt): New (v8hf, v4hf variants).
11620 (vceq): New (v8hf, v4hf variants).
11621 (vcgt): New (v8hf, v4hf variants).
11622 (vcge): New (v8hf, v4hf variants).
11623 (vcle): New (v8hf, v4hf variants).
11624 (vclt): New (v8hf, v4hf variants).
11625 (vceqz): New (v8hf, v4hf variants).
11626 (vcgez): New (v8hf, v4hf variants).
11627 (vcgtz): New (v8hf, v4hf variants).
11628 (vcltz): New (v8hf, v4hf variants).
11629 (vclez): New (v8hf, v4hf variants).
11630 (vabd): New (v8hf, v4hf variants).
11631 (vmaxf): New (v8hf, v4hf variants).
11632 (vmaxnm): New (v8hf, v4hf variants).
11633 (vminf): New (v8hf, v4hf variants).
11634 (vminnm): New (v8hf, v4hf variants).
11635 (vpmaxf): New (v4hf variant).
11636 (vpminf): New (v4hf variant).
11637 (vpadd): New (v4hf variant).
11638 (vrecps): New (v8hf, v4hf variants).
11639 (vrsqrts): New (v8hf, v4hf variants).
11640 (vabs): New (v8hf, v4hf variants).
11641 (vneg): New (v8hf, v4hf variants).
11642 (vrecpe): New (v8hf, v4hf variants).
11643 (vrnd): New (v8hf, v4hf variants).
11644 (vrnda): New (v8hf, v4hf variants).
11645 (vrndm): New (v8hf, v4hf variants).
11646 (vrndn): New (v8hf, v4hf variants).
11647 (vrndp): New (v8hf, v4hf variants).
11648 (vrndx): New (v8hf, v4hf variants).
11649 (vrsqrte): New (v8hf, v4hf variants).
11650 (vmul_lane): Add v4hf and v8hf variants.
11651 (vmul_n): Add v4hf and v8hf variants.
11652 (vext): New (v8hf, v4hf variants).
11653 (vcvts): New (v8hi, v4hi variants).
11654 (vcvts): New (v8hf, v4hf variants).
11655 (vcvtu): New (v8hi, v4hi variants).
11656 (vcvtu): New (v8hf, v4hf variants).
11657 (vcvts_n): New (v8hf, v4hf variants).
11658 (vcvtu_n): New (v8hi, v4hi variants).
11659 (vcvts_n): New (v8hi, v4hi variants).
11660 (vcvtu_n): New (v8hf, v4hf variants).
11661 (vbsl): New (v8hf, v4hf variants).
11662 (vcvtas): New (v8hf, v4hf variants).
11663 (vcvtau): New (v8hf, v4hf variants).
11664 (vcvtms): New (v8hf, v4hf variants).
11665 (vcvtmu): New (v8hf, v4hf variants).
11666 (vcvtns): New (v8hf, v4hf variants).
11667 (vcvtnu): New (v8hf, v4hf variants).
11668 (vcvtps): New (v8hf, v4hf variants).
11669 (vcvtpu): New (v8hf, v4hf variants).
11670
11671 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11672
11673 * config/arm/arm-builtins.c (hf_UP): New.
11674 (si_UP): New.
11675 (vfp_builtin_data): New. Update comment.
11676 (enum arm_builtins): Include "arm_vfp_builtins.def".
11677 (ARM_BUILTIN_VFP_PATTERN_START): New.
11678 (arm_init_vfp_builtins): New.
11679 (arm_init_builtins): Add arm_init_vfp_builtins.
11680 (arm_expand_vfp_builtin): New.
11681 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11682 long line.
11683 * config/arm/arm_vfp_builtins.def: New file.
11684 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11685 (arm-builtins.o): Likewise.
11686
11687 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11688
11689 PR ipa/77677
11690 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11691 from constant while creating value range.
11692
11693 2016-09-23 Renlin Li <renlin.li@arm.com>
11694
11695 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11696 (ira_init_once): Here.
11697
11698 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11699 Jakub Jelinek <jakub@redhat.com>
11700
11701 * hooks.h (hook_uint_uintp_false): Rename to...
11702 (hook_bool_uint_uintp_false): ... this.
11703 * hooks.c (hook_uint_uintp_false): Rename to...
11704 (hook_bool_uint_uintp_false): ... this.
11705 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11706 instead of hook_uint_uintp_false.
11707
11708 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11709
11710 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11711 (arm_init_builtins): Move body of a loop to the standalone
11712 function arm_init_neon_builtin.
11713 (arm_expand_neon_builtin_1): New. Update comment. Function body
11714 moved from arm_neon_builtin with some white-space fixes.
11715 (arm_expand_neon_builtin): Move code into the standalone function
11716 arm_expand_neon_builtin_1.
11717
11718 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11719
11720 * config/arm/iterators.md (VCVTHI): New.
11721 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11722 (NEON_VAGLTE): New.
11723 (VFM_LANE_AS): New.
11724 (VH_CVTTO): New.
11725 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11726 (V_HALF): Add V4HF. Fix white-space.
11727 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11728 (V_s_elem): Likewise.
11729 (V_sz_elem): Fix white-space.
11730 (V_elem_ch): Likewise.
11731 (VH_elem_ch): New.
11732 (scalar_mul_constraint): Add V8HF and V4HF.
11733 (Is_float_mode): Fix white-space.
11734 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11735 (q): Add HF. Fix white-space.
11736 (float_sup): New.
11737 (float_SUP): New.
11738 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11739 (neon_vfm_lane_as): New.
11740 * config/arm/neon.md (add<mode>3_fp16): New.
11741 (sub<mode>3_fp16): New.
11742 (mul<mode>3add<mode>_neon): New.
11743 (fma<VH:mode>4_intrinsic): New.
11744 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11745 (fmsub<VH:mode>4_intrinsic): New.
11746 (<absneg_str><mode>2): New.
11747 (neon_v<absneg_str><mode>): New.
11748 (neon_v<fp16_rnd_str><mode>): New.
11749 (neon_vrsqrte<mode>): New.
11750 (neon_vpaddv4hf): New.
11751 (neon_vadd<mode>): New.
11752 (neon_vsub<mode>): New.
11753 (neon_vmulf<mode>): New.
11754 (neon_vfma<VH:mode>): New.
11755 (neon_vfms<VH:mode>): New.
11756 (neon_vc<cmp_op><mode>): New.
11757 (neon_vc<cmp_op><mode>_fp16insn): New
11758 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11759 (neon_vca<cmp_op><mode>): New.
11760 (neon_vca<cmp_op><mode>_fp16insn): New.
11761 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11762 (neon_vc<cmp_op>z<mode>): New.
11763 (neon_vabd<mode>): New.
11764 (neon_v<maxmin>f<mode>): New.
11765 (neon_vp<maxmin>fv4hf: New.
11766 (neon_<fmaxmin_op><mode>): New.
11767 (neon_vrecps<mode>): New.
11768 (neon_vrsqrts<mode>): New.
11769 (neon_vrecpe<mode>): New (VH variant).
11770 (neon_vdup_lane<mode>_internal): New.
11771 (neon_vdup_lane<mode>): New.
11772 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11773 (neon_vcvt<sup><mode>): New (VH variant).
11774 (neon_vcvt<sup>_n<mode>): New (VH variant).
11775 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11776 (neon_vcvt<vcvth_op><sup><mode>): New.
11777 (neon_vmul_lane<mode>): New.
11778 (neon_vmul_n<mode>): New.
11779 * config/arm/unspecs.md (UNSPEC_VCALE): New
11780 (UNSPEC_VCALT): New.
11781 (UNSPEC_VFMA_LANE): New.
11782 (UNSPECS_VFMS_LANE): New.
11783
11784 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11785
11786 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11787 ("*extzv<mode><clobbercc_or_nocc>"):
11788 Correct a typo in a comment.
11789 Merged patterns.
11790 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11791 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11792 ("*insv<mode>_zEC12_appendbitsleft")
11793 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11794 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11795 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11796 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11797 Provide pattern with operands switched.
11798 ("*pre_z10_extv<mode>"):
11799 Use new subst patterns.
11800 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11801 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11802 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11803 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11804 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11805 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11806 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11807 New patterns.
11808 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11809 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11810 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11811 on zEC12.
11812 ("SINT"): New mode_iterator with SI, HI, QI.
11813 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11814 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11815 duplication.
11816
11817 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11818
11819 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11820 new interface of s390_contiguous_bitmask_p.
11821 ("contiguous_bitmask_nowrap_operand"): New predicate.
11822 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11823 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11824 of s390_contiguous_bitmask_p.
11825 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11826 ("NxxSw"): New constraint.
11827 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11828 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11829 interface.
11830 (s390_contiguous_bitmask_nowrap_p): Export.
11831 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11832 former s390_contiguous_bitmask_p.
11833 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11834 detect contiguous bit ranges with wraparound. Change signature to
11835 return START and END position instead of POS and LENGTH.
11836 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11837 ranges with wraparound.
11838 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11839 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11840 Adapt to new signature of s390_contiguous_bitmask_p.
11841
11842 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11843
11844 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11845 (create_intersect_range_checks): New.
11846 (vect_create_cond_for_alias_checks): Call above function.
11847
11848 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11849
11850 * config/arm/iterators.md (Code iterators): Fix some white-space
11851 in the comments.
11852 (GLTE): New.
11853 (ABSNEG): New
11854 (FCVT): Moved from vfp.md.
11855 (VCVT_HF_US_N): New.
11856 (VCVT_SI_US_N): New.
11857 (VCVT_HF_US): New.
11858 (VCVTH_US): New.
11859 (FP16_RND): New.
11860 (absneg_str): New.
11861 (FCVTI32typename): Moved from vfp.md.
11862 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11863 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11864 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11865 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11866 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11867 (vcvth_op): New.
11868 (fp16_rnd_str): New.
11869 (fp16_rnd_insn): New.
11870 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11871 (UNSPEC_VCVT_HF_U_N): New.
11872 (UNSPEC_VCVT_SI_S_N): New.
11873 (UNSPEC_VCVT_SI_U_N): New.
11874 (UNSPEC_VCVTH_S): New.
11875 (UNSPEC_VCVTH_U): New.
11876 (UNSPEC_VCVTA_S): New.
11877 (UNSPEC_VCVTA_U): New.
11878 (UNSPEC_VCVTM_S): New.
11879 (UNSPEC_VCVTM_U): New.
11880 (UNSPEC_VCVTN_S): New.
11881 (UNSPEC_VCVTN_U): New.
11882 (UNSPEC_VCVTP_S): New.
11883 (UNSPEC_VCVTP_U): New.
11884 (UNSPEC_VCVTP_S): New.
11885 (UNSPEC_VCVTP_U): New.
11886 (UNSPEC_VRND): New.
11887 (UNSPEC_VRNDA): New.
11888 (UNSPEC_VRNDI): New.
11889 (UNSPEC_VRNDM): New.
11890 (UNSPEC_VRNDN): New.
11891 (UNSPEC_VRNDP): New.
11892 (UNSPEC_VRNDX): New.
11893 * config/arm/vfp.md (<absneg_str>hf2): New.
11894 (neon_vabshf): New.
11895 (neon_v<fp16_rnd_str>hf): New.
11896 (neon_vrndihf): New.
11897 (addhf3): New.
11898 (subhf3): New.
11899 (divhf3): New.
11900 (mulhf3): New.
11901 (*mulsf3neghf_vfp): New.
11902 (*negmulhf3_vfp): New.
11903 (*mulsf3addhf_vfp): New.
11904 (*mulhf3subhf_vfp): New.
11905 (*mulhf3neghfaddhf_vfp): New.
11906 (*mulhf3neghfsubhf_vfp): New.
11907 (fmahf4): New.
11908 (neon_vfmahf): New.
11909 (fmsubhf4_fp16): New.
11910 (neon_vfmshf): New.
11911 (*fnmsubhf4): New.
11912 (*fnmaddhf4): New.
11913 (neon_vsqrthf): New.
11914 (neon_vrsqrtshf): New.
11915 (FCVT): Move to iterators.md.
11916 (FCVTI32typename): Likewise.
11917 (neon_vcvth<sup>hf): New.
11918 (neon_vcvth<sup>si): New.
11919 (neon_vcvth<sup>_nhf_unspec): New.
11920 (neon_vcvth<sup>_nhf): New.
11921 (neon_vcvth<sup>_nsi_unspec): New.
11922 (neon_vcvth<sup>_nsi): New.
11923 (neon_vcvt<vcvth_op>h<sup>si): New.
11924 (neon_<fmaxmin_op>hf): New.
11925
11926 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11927
11928 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11929 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11930 ("*insv<mode>_zEC12_appendbitsleft")
11931 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11932 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11933
11934 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11935
11936 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11937 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11938 construct values without normalization.
11939 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11940 static local lhs_ops to vNULL.
11941
11942 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11943 Jiong Wang <jiong.wang@arm.com>
11944
11945 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11946 available when FP16 instructions are available.
11947 (output_move_vfp): Add support for 16-bit data moves.
11948 (arm_validize_comparison): Fix some white-space. Support HFmode
11949 by conversion to SFmode.
11950 * config/arm/arm.md (truncdfhf2): Fix a comment.
11951 (extendhfdf2): Likewise.
11952 (cstorehf4): New.
11953 (movsicc): Fix some white-space.
11954 (movhfcc): New.
11955 (movsfcc): Fix some white-space.
11956 (*cmovhf): New.
11957 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11958 instructions are available.
11959 (*thumb2_movhi_vfp): Likewise.
11960 (*arm_movhi_fp16): New.
11961 (*thumb2_movhi_fp16): New.
11962 (*movhf_vfp_fp16): New.
11963 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11964 (*movhf_vfp): Likewise.
11965 (extendhfsf2): Enable when VFP FP16 instructions are available.
11966 (truncsfhf2): Enable when VFP FP16 instructions are available.
11967
11968 2016-09-23 Martin Liska <mliska@suse.cz>
11969
11970 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11971
11972 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11973
11974 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11975 V4HF modes.
11976 (arm_evpc_neon_vtrn): Likewise.
11977 (arm_evpc_neon_vrev): Likewise.
11978 (arm_evpc_neon_vext): Likewise.
11979 * config/arm/arm_neon.h (vbsl_f16): New.
11980 (vbslq_f16): New.
11981 (vdup_n_f16): New.
11982 (vdupq_n_f16): New.
11983 (vdup_lane_f16): New.
11984 (vdupq_lane_f16): New.
11985 (vext_f16): New.
11986 (vextq_f16): New.
11987 (vmov_n_f16): New.
11988 (vmovq_n_f16): New.
11989 (vrev64_f16): New.
11990 (vrev64q_f16): New.
11991 (vtrn_f16): New.
11992 (vtrnq_f16): New.
11993 (vuzp_f16): New.
11994 (vuzpq_f16): New.
11995 (vzip_f16): New.
11996 (vzipq_f16): New.
11997 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11998 (vdup_lane): New (v8hf, v4hf variants).
11999 (vext): New (v8hf, v4hf variants).
12000 (vbsl): New (v8hf, v4hf variants).
12001 * config/arm/iterators.md (VDQWH): New.
12002 (VH): New.
12003 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12004 (Scalar_mul_8_16): Fix white-space.
12005 (Is_d_reg): Add V4HF and V8HF.
12006 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12007 (neon_vdup_lane<mode>): New.
12008 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12009 (*neon_vtrn<mode>_insn): Likewise.
12010 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12011 (*neon_vzip<mode>_insn): Likewise
12012 (neon_vuzp<mode>_internal): Likewise.
12013 (*neon_vuzp<mode>_insn): Likewise
12014 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12015
12016 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12017 Matthew Wahab <matthew.wahab@arm.com>
12018
12019 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12020 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12021 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12022 available. Also fix some white-space.
12023 * config/arm/vfp.md (*arm_movhi_vfp): New.
12024 (*thumb2_movhi_vfp): New.
12025
12026 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12027
12028 * config/arm/arm-c.c (arm_cpu_builtins): Define
12029 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12030 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12031
12032 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12033
12034 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12035 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12036 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12037 arm_v8_2a_fp16_neon_hw.
12038 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12039 arm_v8_2a_neon.
12040
12041 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12042
12043 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12044 arm_fp16_alternative_ok and arm_fp16_none_ok.
12045
12046 2016-09-23 Martin Liska <mliska@suse.cz>
12047
12048 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12049
12050 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12051
12052 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12053 ("armv8.2-a"): New.
12054 ("armv8.2-a+fp16"): New.
12055 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12056 (FL2_FP16INST): New.
12057 (FL2_FOR_ARCH8_2A): New.
12058 * config/arm/arm-tables.opt: Regenerate.
12059 * config/arm/arm.c (arm_arch8_2): New.
12060 (arm_fp16_inst): New.
12061 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12062 for incompatible fp16-format settings.
12063 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12064 (TARGET_NEON_FP16INST): New.
12065 (arm_arch8_2): Declare.
12066 (arm_fp16_inst): Declare.
12067 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12068 march=armv8.2-a and march=armv8.2-a+fp16.
12069 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12070 and armv8.2-a+fp16.
12071 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12072 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12073
12074 2016-09-23 Martin Liska <mliska@suse.cz>
12075
12076 * doc/extend.texi: Remove fused-madd from i386 target options.
12077
12078 2016-09-23 Martin Liska <mliska@suse.cz>
12079
12080 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12081 Handle movbe.
12082
12083 2016-09-23 Martin Liska <mliska@suse.cz>
12084
12085 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12086 Handle crc32.
12087
12088 2016-09-23 Martin Liska <mliska@suse.cz>
12089
12090 PR target/71652
12091 * config/i386/i386.c (ix86_option_override_internal): Change
12092 signature and return false when there's an error related to
12093 arch string.
12094 (release_options_strings): New function.
12095 (ix86_valid_target_attribute_tree): Call the function.
12096
12097 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12098
12099 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12100 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12101 (gen_hsa_ctor_assignment): Likewise.
12102 * print-tree.c (print_node): Likewise.
12103 * tree-dump.c (dequeue_and_dump): Likewise.
12104 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12105 * expr.c (store_constructor): Likewise.
12106 * fold-const.c (operand_equal_p): Likewise.
12107 * tree-pretty-print.c (dump_generic_node): Likewise.
12108 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12109 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12110
12111 2016-09-23 Richard Biener <rguenther@suse.de>
12112
12113 * hooks.h (hook_uint_uintp_false): Declare.
12114
12115 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12116
12117 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12118 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12119
12120 2016-09-22 Martin Sebor <msebor@redhat.com>
12121
12122 PR target/77676
12123 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12124 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12125 (target_int_min): Correct computation.
12126 (format_integer): Use long long as the argument for the ll length
12127 modifier.
12128 (format_floating): Use target_int_max().
12129 (get_string_length): Same.
12130 (format_string): Avoid setting the bounded flag for strings
12131 of unknown length.
12132 (try_substitute_return_value): Avoid setting range info when
12133 the result isn't bounded.
12134 * varasm.c (assemble_name): Increase buffer size.
12135
12136 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12137 Terry Guo <terry.guo@arm.com>
12138
12139 * target.def (elf_flags_numeric): New target hook.
12140 * targhooks.h (default_asm_elf_flags_numeric): New.
12141 * varasm.c (default_asm_elf_flags_numeric): New.
12142 (default_elf_asm_named_section): Use new target hook.
12143 * config/arm/arm.opt (mpure-code): New.
12144 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12145 * config/arm/arm.c (arm_asm_init_sections): Add section
12146 attribute to default text section if -mpure-code.
12147 (arm_option_check_internal): Diagnose use of option with
12148 non supported targets and/or options.
12149 (arm_asm_elf_flags_numeric): New.
12150 (arm_function_section): New.
12151 (arm_elf_section_type_flags): New.
12152 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12153 for -mpure-code.
12154 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12155 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12156
12157 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12158
12159 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12160
12161 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12162
12163 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12164 * rtl.h: Adjust prototype.
12165
12166 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12167
12168 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12169 (prev_active_insn): Likewise.
12170 (active_insn_p): Likewise.
12171 * rtl.h: Adjust prototypes.
12172 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12173 * config/arc/arc.md: Likewise.
12174 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12175 (branch_needs_nop_p): Likewise.
12176 (use_skip_p): Likewise.
12177 * config/sh/sh.c (gen_block_redirect): Likewise.
12178 (split_branches): Likewise.
12179 * reorg.c (optimize_skip): Likewise.
12180 (fill_simple_delay_slots): Likewise.
12181 (fill_slots_from_thread): Likewise.
12182 (relax_delay_slots): Likewise.
12183 * resource.c (mark_target_live_regs): Likewise.
12184
12185 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12186
12187 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12188 type to rtx_insn *.
12189 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12190 (prev_nonnote_nondebug_insn): Likewise.
12191 * config/cris/cris-protos.h: Adjust prototype.
12192 * rtl.h: Likewise.
12193 * jump.c (rtx_renumbered_equal_p): Adjust.
12194
12195 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12196
12197 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12198 * rtl.h: Adjust prototype.
12199 * config/sh/sh.md: Adjust.
12200 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12201
12202 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12203
12204 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12205 (prev_nondebug_insn): Likewise.
12206 * loop-doloop.c (doloop_condition_get): Likewise.
12207 * rtl.h: Adjust prototype.
12208 * cfgloop.h: Likewise.
12209
12210 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12211
12212 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12213 (prev_nonnote_insn): Likewise.
12214 * jump.c (reversed_comparison_code_parts): Likewise.
12215 (reversed_comparison): Likewise.
12216 * rtl.h: Adjust prototypes.
12217 * config/arc/arc.md: Adjust.
12218 * cse.c (find_comparison_args): Likewise.
12219 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12220 (fix_reg_dead_note): Change argument type to rtx_insn *.
12221 (delete_prior_computation): Likewise.
12222 (delete_computation): Likewise.
12223 (fill_slots_from_thread): Adjust.
12224 (relax_delay_slots): Likewise.
12225 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12226 (simplify_relational_operation_1): Likewise.
12227 (simplify_ternary_operation): Likewise.
12228
12229 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12230
12231 * config/arc/arc-protos.h (arc_label_align): Change type of
12232 variables from rtx to rtx_insn *.
12233 * config/arc/arc.c (arc_label_align): Likewise.
12234 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12235 * config/bfin/bfin.c (workaround_speculation): Likewise.
12236 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12237 (find_last_same_clock): Likewise.
12238 (reorg_split_calls): Likewise.
12239 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12240 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12241 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12242 (same_cmp_following_p): Likewise.
12243 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12244 (same_cmp_following_p): Likwise.
12245 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12246 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12247 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12248 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12249 (rl78_alloc_physical_registers_cmp): Likewise.
12250 (rl78_alloc_physical_registers_umul): Likewise.
12251 (rl78_calculate_death_notes): Likewise.
12252 * config/s390/s390-protos.h (s390_label_align): Likewise.
12253 * config/s390/s390.c (s390_label_align): Likewise.
12254 * config/sh/sh.c (barrier_align): Likewise.
12255 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12256 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12257 (emit_cbcond_nop): Likewise.
12258
12259 2016-09-22 Martin Liska <mliska@suse.cz>
12260
12261 PR ipa/77653
12262 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12263 alias address matters, not necessarily address of original.
12264
12265 2016-09-22 Richard Biener <rguenther@suse.de>
12266
12267 PR middle-end/77697
12268 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12269 fold fails.
12270
12271 2016-09-22 Richard Biener <rguenther@suse.de>
12272
12273 PR middle-end/77677
12274 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12275 from constant folding results.
12276 (gimple_resimplify2): Likewise.
12277 (gimple_resimplify3): Likewise.
12278
12279 2016-09-22 Richard Biener <rguenther@suse.de>
12280
12281 PR middle-end/77678
12282 * expr.c (expand_expr_real_1): Guard array access against negative
12283 offset.
12284
12285 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12286
12287 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12288 of MPFR_RNDN.
12289 (format_floating): Likewise.
12290
12291 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12292
12293 PR fortran/77665
12294 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12295 for all IFN_GOMP_SIMD_* internal fns, not just for
12296 IFN_GOMP_SIMD_ORDERED_*.
12297
12298 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12299
12300 PR target/77670
12301 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12302 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12303 instructions when you want to invert the test.
12304 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12305 correct order for XXSEL.
12306 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12307 for using XSCMP{EQ,GT,GE}DP.
12308
12309 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12310
12311 * genconstants.c (main): Introduce noop_reader and convert call
12312 to read_md_files to a method call.
12313 * genenums.c (main): Likewise.
12314 * genmddeps.c (main): Likewise.
12315 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12316 rtx_reader_ptr->get_top_level_filename ().
12317 (write_tm_preds_h): Likewise.
12318 (write_insn_preds_c): Likewise.
12319 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12320 (rtx_handle_directive): Convert to...
12321 (gen_reader::handle_unknown_directive): ...this.
12322 (init_rtx_reader_args_cb): Convert return type from bool to
12323 rtx_reader *. Create a gen_reader instance, using it for the
12324 call to read_md_files. Return it if no errors occur.
12325 (init_rtx_reader_args): Convert return type from bool to
12326 rtx_reader *.
12327 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12328 (init_rtx_reader_args_cb): Likewise.
12329 * read-md.c (struct file_name_list): Move to class rtx_reader.
12330 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12331 (read_md_filename): Delete in favor of
12332 rtx_reader::m_read_md_filename.
12333 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12334 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12335 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12336 (first_dir_md_include): Delete in favor of
12337 rtx_reader::m_first_dir_md_include.
12338 (last_dir_md_include_ptr): Delete in favor of
12339 rtx_reader::m_last_dir_md_include_ptr.
12340 (max_include_len): Delete.
12341 (rtx_reader_ptr): New.
12342 (fatal_with_file_and_line): Use get_filename and get_lineno
12343 accessors of rtx_reader_ptr.
12344 (require_char_ws): Likewise.
12345 (rtx_reader::read_char): New method, based on ::read_char.
12346 (rtx_reader::unread_char): New method, based on ::unread_char.
12347 (read_escape): Use get_filename and get_lineno accessors of
12348 rtx_reader_ptr.
12349 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12350 (read_string): Use get_filename and get_lineno accessors of
12351 rtx_reader_ptr.
12352 (rtx_reader::rtx_reader): New ctor.
12353 (rtx_reader::~rtx_reader): New dtor.
12354 (handle_include): Convert from a function to...
12355 (rtx_reader::handle_include): ...this method, converting
12356 handle_directive from a callback to a virtual function.
12357 (handle_file): Likewise, converting to...
12358 (rtx_reader::handle_file): ...this method.
12359 (handle_toplevel_file): Likewise, converting to...
12360 (rtx_reader::handle_toplevel_file): ...this method.
12361 (rtx_reader::get_current_location): New method.
12362 (parse_include): Convert from a function to...
12363 (rtx_reader::add_include_path): ...this method, dropping redundant
12364 update to unused max_include_len.
12365 (read_md_files): Convert from a function to...
12366 (rtx_reader::read_md_files): ...this method, converting
12367 handle_directive from a callback to a virtual function.
12368 (noop_reader::handle_unknown_directive): New method.
12369 * read-md.h (directive_handler_t): Delete this typedef.
12370 (in_fname): Delete.
12371 (read_md_file): Delete.
12372 (read_md_lineno): Delete.
12373 (read_md_filename): Delete.
12374 (class rtx_reader): New class.
12375 (rtx_reader_ptr): New decl.
12376 (class noop_reader): New subclass of rtx_reader.
12377 (read_char): Reimplement in terms of rtx_reader::read_char.
12378 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12379 (read_md_files): Delete.
12380 * read-rtl.c (read_rtx_code): Update for deletion of globals
12381 read_md_filename and read_md_lineno.
12382
12383 2016-09-21 Jason Merrill <jason@redhat.com>
12384
12385 * input.h (from_macro_definition_at): New.
12386
12387 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12388
12389 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12390
12391 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12392
12393 PR tree-optimization/77550
12394 * tree-vect-stmts.c (create_array_ref): Change parameters.
12395 (get_group_alias_ptr_type): New function.
12396 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12397
12398 2016-09-21 Marek Polacek <polacek@redhat.com>
12399
12400 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12401 Add falls through comment.
12402
12403 2016-09-21 Richard Biener <rguenther@suse.de>
12404
12405 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12406 (replace_child): Likewise.
12407 (remove_child_TAG): Adjust.
12408 (move_marked_base_types): Likewise.
12409 (prune_unused_types_prune): Clear die_sib of removed children.
12410
12411 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12412
12413 PR target/77326
12414 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12415 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12416
12417 2016-09-21 Richard Biener <rguenther@suse.de>
12418
12419 PR tree-optimization/77648
12420 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12421 with complex RHS.
12422 (make_transitive_closure_constraints): Adjust comment.
12423 (make_any_offset_constraints): New function.
12424 (handle_rhs_call): Make sure to first expand a pointer to all
12425 subfields before transitively closing it.
12426 (handle_const_call): Likewise. Properly expand returned
12427 pointers as well.
12428 (handle_pure_call): Likewise.
12429
12430 2016-09-21 Richard Biener <rguenther@suse.de>
12431 Jakub Jelinek <jakub@redhat.com>
12432
12433 PR tree-optimization/77621
12434 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12435 group at non-vectorizable stmts.
12436
12437 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12438
12439 PR tree-optimization/72835
12440 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12441 (make_new_ssa_for_all_defs): Likewise.
12442 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12443
12444 2016-09-20 Martin Sebor <msebor@redhat.com>
12445
12446 PR middle-end/49905
12447 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12448 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12449 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12450 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12451 * config/sol2.c (solaris_printf_pointer_format): New function.
12452 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12453 options.
12454 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12455 * doc/tm.texi: Regenerate.
12456 * gimple-fold.h (get_range_strlen): New function.
12457 (get_maxval_strlen): Declare existing function.
12458 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12459 maximum and minimum.
12460 (get_range_strlen): Define overload.
12461 (get_maxval_strlen): Adjust.
12462 * gimple-ssa-sprintf.c: New file and pass.
12463 * passes.def (pass_sprintf_length): Add new pass.
12464 * targhooks.h (default_printf_pointer_format): Declare new function.
12465 (gnu_libc_printf_pointer_format): Same.
12466 (solaris_libc_printf_pointer_format): Same.
12467 * targhooks.c (default_printf_pointer_format): Define new function.
12468 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12469 * print-tree.c: Increase buffer size.
12470
12471 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12472
12473 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12474
12475 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12476
12477 * common.opt: New option -fipa-vrp.
12478 * ipa-cp.c (ipa_get_vr_lat): New.
12479 (ipcp_vr_lattice::print): Likewise.
12480 (print_all_lattices): Call ipcp_vr_lattice::print.
12481 (ipcp_vr_lattice::meet_with): New.
12482 (ipcp_vr_lattice::meet_with_1): Likewise.
12483 (ipcp_vr_lattice::top_p): Likewise.
12484 (ipcp_vr_lattice::bottom_p): Likewsie.
12485 (ipcp_vr_lattice::set_to_bottom): Likewise.
12486 (set_all_contains_variable): Call VR set_to_bottom.
12487 (initialize_node_lattices): Init VR lattices.
12488 (propagate_vr_accross_jump_function): New.
12489 (propagate_constants_accross_call): Call
12490 propagate_vr_accross_jump_function.
12491 (ipcp_store_vr_results): New.
12492 (ipcp_driver): Handle VR.
12493 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12494 (ipa_set_jf_unknown): Likewise.
12495 (ipa_compute_jump_functions_for_edge): Likewise.
12496 (ipa_node_params_t::duplicate): Likewise.
12497 (ipa_write_jump_function): Likewise.
12498 (ipa_read_jump_function): Likewise.
12499 (write_ipcp_transformation_info): Likewise.
12500 (read_ipcp_transformation_info): Likewise.
12501 (ipcp_update_vr): New.
12502 (ipcp_transform_function): Handle VR.
12503 * ipa-prop.h (struct ipa_vr): New.
12504 * cgraph.c: Include tree-vrp.h.
12505 * cgraphunit.c: Likewise.
12506 * ipa-utils.c: Likewise.
12507 * ipa.c: Likewise.
12508 * opts.c: Likewise.
12509 * toplev.c: Likewise.
12510 * ipa-devirt.c: Likewise.
12511 * ipa-inline-transform.c: Likewise.
12512 * ipa-inline.c: Likewise.
12513 * ipa-profile.c: Likewise.
12514
12515 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12516
12517 * doc/invoke.texi: Document -fdump-tree-evrp.
12518 * passes.def: Define new pass_early_vrp.
12519 * timevar.def: Define new TV_TREE_EARLY_VRP.
12520 * tree-pass.h (make_pass_early_vrp): New.
12521 * tree-ssa-propagate.c: Make replace_uses_in non static.
12522 * tree-ssa-propagate.h: Export replace_uses_in.
12523 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12524 (extract_range_from_assert): Factor out
12525 extract_range_for_var_from_comparison_expr.
12526 (vrp_initialize_lattice): New.
12527 (vrp_initialize): Factor out vrp_initialize_lattice.
12528 (vrp_valueize): Fix it to reject complex value ranges.
12529 (vrp_free_lattice): New.
12530 (evrp_dom_walker::before_dom_children): Likewise.
12531 (evrp_dom_walker::after_dom_children): Likewise.
12532 (evrp_dom_walker::push_value_range): Likewise.
12533 (evrp_dom_walker::pop_value_range): Likewise.
12534 (execute_early_vrp): Likewise.
12535 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12536 (make_pass_early_vrp): New.
12537
12538 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12539
12540 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12541 instead of exact_log2.
12542
12543 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12544
12545 PR target/77621
12546 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12547 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12548 (ix86_add_stmt_cost): Penalize DFmode vector operations
12549 for !TARGET_VECTORIZE_DOUBLE.
12550
12551 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12552
12553 * doc/invoke.texi (Warning Options): Simplify language.
12554 (Optimize Options): Complete sentence.
12555
12556 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12557
12558 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12559 early_finish hook.
12560
12561 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12562
12563 PR target/71395
12564 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12565 inits on power8 and above, use the VMRGEW instruction instead of a
12566 permute.
12567
12568 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12569 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12570 initialization.
12571
12572 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12573
12574 * config/aarch64/arm_neon.h
12575 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12576 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12577 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12578
12579 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12580
12581 * config/var/vax.h (ELIMINABLE_REGS): Define.
12582 (INITIAL_ELIMINATION_OFFSET): Define.
12583
12584 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12585
12586 PR middle-end/77624
12587 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12588 cast to void * if the cast is from some other pointer type.
12589
12590 2016-09-20 Richard Biener <rguenther@suse.de>
12591
12592 PR tree-optimization/77646
12593 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12594 a VDEF.
12595
12596 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12597
12598 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12599 attributes to all inlined functions and make them extern.
12600
12601 2016-09-20 Richard Biener <rguenther@suse.de>
12602
12603 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12604 hook.
12605 * debug.c (do_nothing_debug_hooks): Adjust.
12606 * dbxout.c (dbx_debug_hooks): Likewise.
12607 * sdbout.c (sdb_debug_hooks): Likewise.
12608 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12609 (dwarf2out_finish): Move producer, filename and
12610 path annotation ...
12611 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12612 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12613
12614 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12615
12616 PR c++/77434
12617 * doc/invoke.texi: Document -Wint-in-bool-context.
12618
12619 PR middle-end/77421
12620 * dwarf2out.c (output_loc_operands): Fix an assertion.
12621
12622 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12623
12624 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12625 (CR_DECIMAL_DIG): New macro.
12626
12627 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12628
12629 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12630 element.
12631
12632 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12633
12634 PR rtl-optimization/77416
12635 * lra-remat.c (operand_to_remat): Process hard coded insn
12636 registers.
12637
12638 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12639
12640 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12641 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12642
12643 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12644
12645 * target.def (lra_p): Wordsmithing.
12646 * doc/tm.texi: Regenerate.
12647
12648 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12649 Jan Hubicka <jh@suse.cz>
12650
12651 PR target/77587
12652 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12653 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12654 Call ultimate_alias_target just once, not up to 4 times.
12655
12656 2016-09-19 Richard Biener <rguenther@suse.de>
12657
12658 * dwarf2out.c (early_dwarf_finished): New global.
12659 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12660 is false.
12661 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12662 if called from LTO exit early.
12663 (dwarf2out_late_global_decl): When being during the early
12664 debug phase do not add locations but only const value attributes.
12665 Adjust the way we generate early DIEs for LTO.
12666
12667 2016-09-19 Richard Biener <rguenther@suse.de>
12668
12669 PR middle-end/77605
12670 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12671 proper niter to bound the loops.
12672
12673 2016-09-19 Richard Biener <rguenther@suse.de>
12674
12675 PR tree-optimization/77514
12676 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12677 search for folded stmt.
12678
12679 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12680
12681 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12682 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12683 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12684 fsm_find_thread_path, profitable_jump_thread_path,
12685 fsm_find_control_statement_thread_paths,
12686 find_jump_threads_backwards): Add speed_p parameter.
12687 (pass_data_early_thread_jumps): New pass.
12688 (make_pass_early_thread_jumps): New function.
12689
12690 2016-09-17 Andreas Schwab <schwab@suse.de>
12691
12692 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12693 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12694
12695 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12696
12697 * recog.c (rest_of_handle_split_after_reload): Delete.
12698 (pass_split_after_reload::gate): New method.
12699 (pass_split_after_reload::execute): Call split_all_insns directly.
12700
12701 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12702
12703 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12704 parameters for functions taking long long arguments.
12705
12706 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12707
12708 PR target/77613
12709 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12710 splat with truncate.
12711
12712 2016-09-16 Jason Merrill <jason@redhat.com>
12713
12714 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12715 New.
12716 * hwint.c (exact_log2): Use pow2p_hwi.
12717 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12718 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12719 * builtins.c (get_object_alignment_2, get_object_alignment)
12720 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12721 least_bit_hwi.
12722 * calls.c (compute_argument_addresses, store_one_arg): Use
12723 least_bit_hwi.
12724 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12725 * combine.c (force_to_mode): Use least_bit_hwi.
12726 (contains_muldiv, find_split_point, combine_simplify_rtx)
12727 (simplify_if_then_else, simplify_set, force_to_mode)
12728 (if_then_else_cond, simplify_and_const_int_1)
12729 (simplify_compare_const): Use pow2p_hwi.
12730 * cse.c (fold_rtx): Use pow2p_hwi.
12731 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12732 Use least_bit_hwi.
12733 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12734 (init_expmed_one_conv): Use pow2p_hwi.
12735 * expr.c (is_aligning_offset): Use pow2p_hwi.
12736 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12737 (fold_binary_loc): Use pow2p_hwi.
12738 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12739 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12740 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12741 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12742 Use least_bit_hwi.
12743 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12744 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12745 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12746 * omp-low.c (oacc_loop_fixed_partitions)
12747 (oacc_loop_auto_partitions): Use least_bit_hwi.
12748 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12749 * stor-layout.c (place_field): Use least_bit_hwi.
12750 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12751 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12752 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12753 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12754 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12755 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12756 (vect_grouped_store_supported, vect_grouped_load_supported)
12757 (vect_permute_load_chain, vect_shift_permute_load_chain)
12758 (vect_transform_grouped_load): Use pow2p_hwi.
12759 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12760 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12761 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12762 least_bit_hwi.
12763 * tsan.c (instrument_expr): Use least_bit_hwi.
12764 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12765
12766 2016-09-16 Andreas Schwab <schwab@suse.de>
12767
12768 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12769 OFFSET, not offset.
12770 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12771
12772 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12773
12774 PR target/77526
12775 * combine.c (rest_of_handle_combine): If any edges have been purged,
12776 free dominators if available.
12777
12778 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12779 Eric Botcazou <ebotcazou@adacore.com>
12780
12781 PR middle-end/77594
12782 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12783 through into expand_addsub_overflow after expand_neg_overflow.
12784
12785 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12786
12787 * diagnostic-show-locus.c
12788 (selftest::test_fixit_insert_containing_newline): New function.
12789 (selftest::test_fixit_replace_containing_newline): New function.
12790 (selftest::diagnostic_show_locus_c_tests): Call the above.
12791
12792 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12793
12794 PR tree-optimization/77503
12795 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12796 code for CONST_COND_REDUCTION at analysis stage and use it at
12797 transform stage.
12798 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12799 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12800 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12801 field.
12802
12803 2016-09-15 Richard Biener <rguenther@suse.de>
12804
12805 PR middle-end/77544
12806 * fold-const.c (split_tree): Do not split constant ~X.
12807
12808 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12809
12810 PR rtl-optimization/77425
12811 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12812 is NULL.
12813
12814 PR middle-end/77475
12815 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12816 use %qs instead of %s where desirable, use argument instead of arg in
12817 the diagnostic wording, add list of supported strategies and
12818 spellcheck hint.
12819 (ix86_option_override_internal): Emit target("m...") instead of
12820 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12821 -march/-mtune option diagnostic. Add list of supported arches/tunings
12822 and spellcheck hint. Remove prefix, suffix and sw variables, use
12823 main_args_p ? "..." : "..." in diagnostics to make translation
12824 possible.
12825
12826 2016-09-15 Richard Biener <rguenther@suse.de>
12827
12828 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12829 extra offset argument.
12830 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12831 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12832 to reflect new offset parameter.
12833 * doc/tm.texi: Regenerate.
12834 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12835 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12836 offset argument.
12837 (darwin_asm_output_dwarf_offset): Likewise.
12838 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12839 argument.
12840 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12841 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12842 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12843
12844 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12845
12846 PR fortran/72743
12847 * ipa-icf.c (set_alias_uids): New function.
12848 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12849 all the merged variable's referring aliases.
12850
12851 2016-09-15 Richard Biener <rguenther@suse.de>
12852
12853 PR tree-optimization/77514
12854 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12855 only forced_stmts sequence.
12856
12857 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12858
12859 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12860 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12861 FOR_EACH_SSA_NAME to iterate over SSA variables.
12862 (pass_expand::execute): Likewise.
12863 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12864 * tree-cfg.c (dump_function_to_file): Likewise.
12865 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12866 (update_ssa): Likewise.
12867 * tree-ssa-alias.c (dump_alias_info): Likewise.
12868 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12869 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12870 (create_outofssa_var_map): Likewise.
12871 (coalesce_ssa_name): Likewise.
12872 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12873 * tree-ssa-pre.c (compute_avail): Likewise.
12874 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12875 (scc_vn_restore_ssa_info): Likewise.
12876 (free_scc_vn): Likwise.
12877 (run_scc_vn): Likewise.
12878 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12879 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12880 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12881 * tree-ssa.c (verify_ssa): Likewise.
12882
12883 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12884
12885 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12886 and mips64r2 as default 32-bit and 64-bit architectures.
12887 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12888 as default 32-bit and 64-bit architectures.
12889
12890 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12891
12892 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12893 of succ edge.
12894
12895 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12896
12897 * target.def (lra_p): Change commentary (for the manual) for the
12898 new default.
12899 * doc/tm.texi: Regenerate.
12900
12901 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12902
12903 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12904 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12905 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12906 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12907
12908 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12909
12910 * targhooks.c (default_lra_p): Return true instead of false.
12911
12912 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12913
12914 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12915 hook_bool_void_false.
12916 * config/avr/avr.c: Ditto.
12917 * config/bfin/bfin.c: Ditto.
12918 * config/c6x/c6x.c: Ditto.
12919 * config/cr16/cr16.c: Ditto.
12920 * config/cris/cris.c: Ditto.
12921 * config/epiphany/epiphany.c: Ditto.
12922 * config/fr30/fr30.c: Ditto.
12923 * config/frv/frv.c: Ditto.
12924 * config/h8300/h8300.c: Ditto.
12925 * config/ia64/ia64.c: Ditto.
12926 * config/iq2000/iq2000.c: Ditto.
12927 * config/lm32/lm32.c: Ditto.
12928 * config/m32c/m32c.c: Ditto.
12929 * config/m32r/m32r.c: Ditto.
12930 * config/m68k/m68k.c: Ditto.
12931 * config/mcore/mcore.c: Ditto.
12932 * config/microblaze/microblaze.c: Ditto.
12933 * config/mmix/mmix.c: Ditto.
12934 * config/mn10300/mn10300.c: Ditto.
12935 * config/moxie/moxie.c: Ditto.
12936 * config/msp430/msp430.c: Ditto.
12937 * config/nios2/nios2.c: Ditto.
12938 * config/nvptx/nvptx.c: Ditto.
12939 * config/pa/pa.c: Ditto.
12940 * config/pdp11/pdp11.c: Ditto.
12941 * config/rl78/rl78.c: Ditto.
12942 * config/sparc/sparc.c: Ditto.
12943 * config/spu/spu.c: Ditto.
12944 * config/stormy16/stormy16.c: Ditto.
12945 * config/tilegx/tilegx.c: Ditto.
12946 * config/tilepro/tilepro.c: Ditto.
12947 * config/v850/v850.c: Ditto.
12948 * config/vax/vax.c: Ditto.
12949 * config/visium/visium.c: Ditto.
12950 * config/xtensa/xtensa.c: Ditto.
12951
12952 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12953
12954 PR sanitizer/68260
12955 * tsan.c: Include target.h.
12956 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12957 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12958 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12959 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12960 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12961
12962 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12963 Martin Liska <mliska@suse.cz>
12964
12965 PR middle-end/77574
12966 * predict.c (force_edge_cold): Add braces to a condition.
12967
12968 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12969
12970 PR rtl-optimization/77289
12971 * lra-constraints.c (get_final_hard_regno): Removed.
12972 (get_hard_regno): Add new parameter final_p.
12973 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12974 (operands_match_p): Adjust call to get_hard_regno.
12975 (uses_hard_regs_p): Likewise.
12976 (process_alt_operands): Likewise.
12977
12978 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12979
12980 PR target/70713
12981 * config/msp430/msp430.c (msp430_start_function): Emit an error
12982 if a function is both weak and specifies an interrupt number.
12983
12984 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12985
12986 PR tree-optimization/77454
12987 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12988 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12989 Formatting fix.
12990
12991 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12992
12993 * config/aarch64/aarch64-builtins.c
12994 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12995
12996 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12997
12998 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12999 SFmode and SCmode arguments by reference.
13000
13001 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13002
13003 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13004 Rename to...
13005 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13006 for renaming of add_fixit_insert to add_fixit_insert_before.
13007 (selftest::test_one_liner_fixit_insert_after): New function.
13008 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13009 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13010 (selftest::test_one_liner_many_fixits): Likewise.
13011 (selftest::test_diagnostic_show_locus_one_liner): Update for
13012 renaming, call new test function.
13013 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13014 renaming of add_fixit_insert to add_fixit_insert_before.
13015 (selftest::test_fixit_consolidation): Likewise.
13016 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13017 Likewise.
13018 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13019 (selftest::test_applying_fixits_insert_before): ...this.
13020 (selftest::test_applying_fixits_insert): Update for renaming of
13021 add_fixit_insert to add_fixit_insert_before.
13022 (selftest::test_applying_fixits_insert_after): New function.
13023 (selftest::test_applying_fixits_insert_after_at_line_end): New
13024 function.
13025 (selftest::test_applying_fixits_insert_after_failure): New function.
13026 (selftest::test_applying_fixits_multiple): Update for renaming of
13027 add_fixit_insert to add_fixit_insert_before.
13028 (selftest::change_line): Likewise.
13029 (selftest::test_applying_fixits_unreadable_file): Likewise.
13030 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13031 (selftest::test_applying_fixits_column_validation): Likewise.
13032 (selftest::test_applying_fixits_column_validation): Likewise.
13033 (selftest::edit_context_c_tests): Update for renamed test function;
13034 call new test functions.
13035
13036 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13037
13038 PR tree-optimization/77536
13039 PR rtl-optimization/68212
13040 * config/rs6000/rs6000.md (div->recip splitter): Remove
13041 optimize_insn_for_speed_p condition.
13042
13043 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13044
13045 * optabs.c (prepare_cmp_insn): Update documentation comment.
13046
13047 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13048 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13049
13050 PR middle-end/77475
13051 * opts.h (candidates_list_and_hint): Declare.
13052 * opts-common.c (candidates_list_and_hint): New function.
13053 (cmdline_handle_error): Use it.
13054
13055 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13056
13057 * edit-context.c (edited_line::get_len): New accessor.
13058 (edited_file::print_diff): Split out hunk-printing into...
13059 (edited_file::print_diff_hunk): New method.
13060 (edited_file::print_diff_line): New method.
13061
13062 2016-09-12 Andrew Pinski <apinski@cavium.com>
13063
13064 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13065 New tuning option.
13066 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13067 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13068 (aarch64_operands_ok_for_ldpstp): Return false if
13069 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13070 was SImode and the alignment is less than 8 byte.
13071 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13072
13073 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13074
13075 PR target/77570
13076 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13077
13078 2016-09-12 Marek Polacek <polacek@redhat.com>
13079
13080 * doc/extend.texi: Use lowercase "boolean".
13081 * doc/invoke.texi: Likewise.
13082 * doc/md.texi: Likewise.
13083 * target.def: Likewise.
13084 * doc/tm.texi: Regenerated.
13085
13086 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13087
13088 PR middle-end/77426
13089 * expmed.c (synth_mult): Delete duplicate mode check.
13090
13091 2016-09-10 Tom de Vries <tom@codesourcery.com>
13092
13093 PR C/71602
13094 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13095 va_list type only.
13096 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13097 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13098
13099 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13100
13101 PR rtl-optimization/77289
13102 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13103 register numbers. Remove support for subregs.
13104 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13105 (get_reg_class): Delete removed get_final_hard_regno() argument.
13106 (uses_hard_regs_p): Call get_final_hard_regno().
13107
13108 2016-09-09 Martin Sebor <msebor@redhat.com>
13109
13110 PR c/77520
13111 PR c/77521
13112 * pretty-print.c (pp_quoted_string): New function.
13113 (pp_format): Call it for %c and %s directives.
13114
13115 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13116
13117 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13118 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13119 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13120 * target.def (frame_pointer_required, can_eliminate): Likewise.
13121 * doc/tm.texi: Regenerated.
13122 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13123 ELIMINABLE_REGS.
13124 * df-scan.c (df_hard_reg_init): Likewise.
13125 * ira.c (ira_setup_eliminable_regset): Likewise.
13126 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13127 init_elim_table): Likewise.
13128 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13129 set_initial_elim_offsets, update_eliminables,
13130 init_elim_table): Likewise.
13131 * rtlanal.c (get_initial_register_offset): Likewise.
13132 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13133 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13134 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13135 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13136 * config/fr30/fr30.h: Fix comment.
13137 * config/frv/frv.c: Likewise.
13138 * config/frv/frv.h: Likewise.
13139 * config/ft32/ft32.h: Likewise.
13140 * config/visium/visium.h: Likewise.
13141 * config/pa/pa64-linux.h: Likewise.
13142 * config/v850/v850.h: Likewise.
13143 * config/cris/cris.c: Likewise.
13144 * config/ia64/ia64.h: Likewise.
13145 * config/moxie/moxie.h: Likewise.
13146 * config/m32r/m32r.h: Likewise.
13147
13148 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13149
13150 PR target/77267
13151 * config.in: Regenerate.
13152 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13153 New macro.
13154 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13155 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13156 static-libmpxwrappers case.
13157 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13158 MPX_LD_AS_NEEDED_GUARD_POP.
13159 * configure: Regenerate.
13160 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13161 defined if linker support "--push-state"/"--pop-state".
13162
13163 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13164
13165 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13166
13167 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13168
13169 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13170 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13171 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13172 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13173 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13174 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13175 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13176 Document.
13177 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13178 width macros from TS 18661-1.
13179 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13180
13181 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13182
13183 PR fortran/77516
13184 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13185 OMP_CLAUSE_SAFELEN_EXPR.
13186
13187 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13188
13189 * Makefile.in (OBJS): Add substring-locations.o.
13190 * langhooks-def.h (class substring_loc): New forward decl.
13191 (lhd_get_substring_location): New decl.
13192 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13193 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13194 * langhooks.c (lhd_get_substring_location): New function.
13195 * langhooks.h (class substring_loc): New forward decl.
13196 (struct lang_hooks): Add field get_substring_location.
13197 * substring-locations.c: New file, taking definition of
13198 format_warning_va and format_warning_at_substring from
13199 c-family/c-format.c, making them non-static.
13200 * substring-locations.h (class substring_loc): Move class here
13201 from c-family/c-common.h. Add and rewrite comments.
13202 (format_warning_va): New decl.
13203 (format_warning_at_substring): New decl.
13204 (get_source_location_for_substring): Add comment.
13205
13206 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13207
13208 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13209 to avoid -Wnarrowing warning.
13210 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13211 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13212
13213 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13214
13215 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13216 Avoid use of base_offset if offset already in range.
13217
13218 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13219
13220 * config/sh/sh-protos.h (struct sh_atomic_model,
13221 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13222 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13223 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13224 * config/sh/sh.h (struct sh_atomic_model,
13225 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13226 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13227 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13228 Guard with __cplusplus.
13229
13230 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13231
13232 PR target/69255
13233 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13234 unsupported or unknown ISA, use expand_call.
13235
13236 2016-09-06 Martin Liska <mliska@suse.cz>
13237
13238 PR gcov-profile/77378
13239 PR gcov-profile/77466
13240 * tree-profile.c (tree_profiling): Detect whether target can use
13241 -fprofile-update=atomic.
13242
13243 2016-09-06 Richard Biener <rguenther@suse.de>
13244
13245 PR tree-optimization/77479
13246 * tree-vrp.c (update_value_range): Extend overflow handling to
13247 VARYING.
13248
13249 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13250
13251 PR target/77476
13252 * config/i386/i386.md (isa): Add x64_avx512bw.
13253 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13254 (kmov_isa): New mode attr.
13255 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13256 (*zero_extend<mode>si2): Likewise.
13257 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13258
13259 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13260
13261 * doc/invoke.texi (SPU Options): nops -> NOPs.
13262 (x86 Options): Ditto.
13263
13264 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13265
13266 PR middle-end/77475
13267 * toplev.c (process_options): Temporarily set input_location
13268 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13269
13270 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13271
13272 PR rtl-optimization/77452
13273 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13274 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13275
13276 2016-09-05 Marek Polacek <polacek@redhat.com>
13277
13278 PR c/77423
13279 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13280
13281 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13282
13283 PR other/77421
13284 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13285 *insn_out == '*' test. Don't copy unnecessary to yet another
13286 memory buffer, and don't leak it.
13287
13288 PR rtl-optimization/77425
13289 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13290
13291 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13292
13293 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13294
13295 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13296
13297 * common.opt (fdiagnostics-generate-patch): New option.
13298 * diagnostic.c: Include "edit-context.h".
13299 (diagnostic_initialize): Initialize context->edit_context_ptr.
13300 (diagnostic_finish): Delete context->edit_context_ptr.
13301 (diagnostic_report_diagnostic): Add fix-it hints from the
13302 diagnostic to context->edit_context_ptr, if any.
13303 * diagnostic.h (class edit_context): Add forward decl.
13304 (struct diagnostic_context): Add field "edit_context_ptr".
13305 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13306 -fdiagnostics-generate-patch.
13307 (-fdiagnostics-generate-patch): New item.
13308 * toplev.c: Include "edit-context.h".
13309 (process_options): Set global_dc->edit_context_ptr to a new
13310 edit_context if the options need one.
13311 (toplev::main): Handle -fdiagnostics-generate-patch by using
13312 global_dc->edit_context_ptr.
13313
13314 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13315
13316 PR c/65467
13317 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13318 map and firstprivate clauses on target construct for _Atomic
13319 qualified decls.
13320 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13321 on target construct for _Atomic qualified decls.
13322 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13323 decls.
13324 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13325 _Atomic qualified arguments not mentioned in uniform clause.
13326
13327 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13328
13329 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13330 * diagnostic-color.c (color_dict): Add "diff-filename",
13331 "diff-hunk", "diff-delete", and "diff-insert".
13332 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13333 to reflect above changes.
13334 * doc/invoke.texi (-fdiagnostics-color): Update description of
13335 default GCC_COLORS, and of the supported capabilities.
13336 * edit-context.c: New file.
13337 * edit-context.h: New file.
13338 * input.c (struct fcache): Add field "missing_trailing_newline".
13339 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13340 true.
13341 (add_file_to_cache_tab): Likewise.
13342 (fcache::fcache): Likewise.
13343 (get_next_line): Update c->missing_trailing_newline.
13344 (location_missing_trailing_newline): New function.
13345 * input.h (location_missing_trailing_newline): New decl.
13346 * selftest-run-tests.c (selftest::run_tests): Call
13347 edit_context_c_tests.
13348 * selftest.h (edit_context_c_tests): New decl.
13349
13350 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13351 Richard Biener <rguenth@suse.de>
13352
13353 PR tree-optimization/77444
13354 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13355 as steptype, remove redundant initialization.
13356
13357 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR sanitizer/77396
13360 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13361 (sanopt_optimize_walker): Optimize away
13362 __asan_before_dynamic_init (...) followed by
13363 __asan_after_dynamic_init () without intervening memory loads/stores.
13364 * ipa-pure-const.c (special_builtin_state): Handle
13365 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13366 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13367
13368 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13369
13370 * cfg.c (free_original_copy_tables): Replace second assignment of
13371 bb_copy = NULL by bb_original = NULL.
13372
13373 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13374
13375 PR other/77421
13376 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13377 assignment added in r216794.
13378
13379 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13380
13381 * Makefile.in (OBJS): Add typed-splay-tree.o.
13382 * selftest-run-tests.c (selftest::run_tests): Call
13383 typed_splay_tree_c_tests.
13384 * selftest.h (typed_splay_tree_c_tests): New decl.
13385 * typed-splay-tree.c: New file.
13386 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13387 (typed_splay_tree::max): New method.
13388 (typed_splay_tree::min): New method.
13389 (typed_splay_tree::foreach): New method.
13390 (typed_splay_tree::closure): New struct.
13391 (typed_splay_tree::inner_foreach_fn): New function.
13392
13393 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13394
13395 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13396 -fipa-cp-bit to -fipa-bit-cp.
13397
13398 2016-09-01 Martin Sebor <msebor@redhat.com>
13399
13400 PR tree-optimization/71831
13401 * tree-object-size.h: Return bool instead of the size and add
13402 argument for the size.
13403 * tree-object-size.c (compute_object_offset): Update signature.
13404 (addr_object_size): Same.
13405 (compute_builtin_object_size): Return bool instead of the size
13406 and add argument for the size. Handle POINTER_PLUS_EXPR when
13407 optimization is disabled.
13408 (expr_object_size): Adjust.
13409 (plus_stmt_object_size): Adjust.
13410 (pass_object_sizes::execute): Adjust.
13411 * builtins.c (fold_builtin_object_size): Adjust.
13412 * doc/extend.texi (Object Size Checking): Update.
13413 * ubsan.c (instrument_object_size): Adjust.
13414
13415 2016-09-01 Martin Sebor <msebor@redhat.com>
13416
13417 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13418 it fits the output of the formatted function regardless of its
13419 arguments.
13420 * genmodes.c (parser::parse_expr): Same.
13421 * gimplify.c (gimplify_asm_expr): Same.
13422 * passes.c (pass_manager::register_one_dump_file): Same.
13423 * print-tree.c (print_node): Same.
13424
13425 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13426
13427 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13428
13429 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13430
13431 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13432
13433 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13434
13435 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13436 * config/rs6000/vector.md: Ditto.
13437 * config/rs6000/vsx.md: Ditto.
13438
13439 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13440
13441 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13442 first in all cases.
13443
13444 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13445
13446 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13447 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13448 *return_and_restore_gpregs_<mode>_r11,
13449 *return_and_restore_gpregs_<mode>_r12,
13450 *return_and_restore_gpregs_<mode>_r1,
13451 *return_and_restore_fpregs_<mode>_r11,
13452 *return_and_restore_fpregs_<mode>_r12,
13453 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13454 directly instead of via the "l" constraint. Renumber operands.
13455 Fix whitespace.
13456
13457 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13458
13459 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13460 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13461 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13462 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13463 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13464 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13465 *call_value_nonlocal_darwin64, reload_macho_picbase,
13466 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13467 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13468 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13469 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13470 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13471 *save_fpregs_<mode>_r1): Ditto.
13472 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13473 *return_and_restore_gpregs_spe): Ditto.
13474
13475 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13476
13477 * config/rs6000/rs6000.md
13478 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13479 the use of the link register.
13480 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13481
13482 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13483 Michael Meissner <meissner@linux.vnet.ibm.com>
13484
13485 PR target/72827
13486 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13487 reg+reg addressing for TImode.
13488 (rs6000_legitimate_address_p): Only allow register indirect
13489 addressing for TImode, even without TARGET_QUAD_MEMORY.
13490
13491 2016-09-01 Richard Biener <rguenther@suse.de>
13492
13493 PR middle-end/77436
13494 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13495 check whether the result fits the desired result type.
13496
13497 2016-09-01 Nathan Sidwell <nathan@acm.org>
13498
13499 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13500
13501 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13502
13503 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13504 New function.
13505 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13506
13507 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13508
13509 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13510 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13511 for comparisons of integer ZERO_EXTEND against zero.
13512
13513 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13514
13515 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13516 STV pass if -mstackrealign is enabled.
13517
13518 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13519
13520 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13521 AVX512IFMA.
13522
13523 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13524
13525 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13526 (layout_range::intersects_line_p): New method.
13527 (test_range_contains_point_for_single_point): Rename to...
13528 (test_layout_range_for_single_point): ...this, and add testing
13529 for layout_range::intersects_line_p.
13530 (test_range_contains_point_for_single_line): Rename to...
13531 (test_layout_range_for_single_line): ...this, and add testing
13532 for layout_range::intersects_line_p.
13533 (test_range_contains_point_for_multiple_lines): Rename to...
13534 (test_layout_range_for_multiple_lines): ...this, and add testing
13535 for layout_range::intersects_line_p.
13536 (layout::layout): Populate m_fixit_hints.
13537 (layout::get_expanded_location): Handle the case of a line-span
13538 for a fix-it hint.
13539 (layout::validate_fixit_hint_p): New method.
13540 (get_line_span_for_fixit_hint): New function.
13541 (layout::calculate_line_spans): Add spans for fixit-hints.
13542 (layout::should_print_annotation_line_p): New method.
13543 (layout::print_any_fixits): Drop param "richloc", instead using
13544 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13545 (diagnostic_show_locus): Avoid printing blank annotation lines.
13546 (selftest::test_diagnostic_context::test_diagnostic_context):
13547 Initialize show_column and start_span.
13548 (selftest::test_diagnostic_context::start_span_cb): New static
13549 function.
13550 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13551 (selftest::diagnostic_show_locus_c_tests): Update for function
13552 renamings. Call test_diagnostic_show_locus_fixit_lines.
13553
13554 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13555
13556 PR tree-optimization/73714
13557 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13558
13559 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13560
13561 * selftest.c: Move "namespace selftest {" to top of file,
13562 removing explicit "selftest::" qualifiers throughout.
13563
13564 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13565
13566 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13567 New types.
13568 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13569 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13570 Replace builtin with vector extension.
13571 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13572 New types.
13573 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13574 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13575 Replace builtin with vector extension.
13576 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13577 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13578 Replace builtin with vector extension.
13579 * config/i386/xmmintrin.h (__m128_u): New type.
13580 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13581 (_mm_load_ps, _mm_store_ps): Simplify.
13582
13583 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13584
13585 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13586
13587 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13588
13589 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13590 than 3 ranges per diagnostic by alternating between color 1 and
13591 color 2.
13592 (layout::layout): Replace use of rich_location::MAX_RANGES
13593 with richloc->get_num_locations ().
13594 (layout::calculate_line_spans): Replace use of
13595 rich_location::MAX_RANGES with m_layout_ranges.length ().
13596 (layout::print_annotation_line): Handle arbitrary numbers of
13597 ranges in caret-printing by defaulting to '^'.
13598 (selftest::test_one_liner_many_fixits): New function.
13599 (test_diagnostic_show_locus_one_liner): Call it.
13600 * diagnostic.c (diagnostic_initialize): Update for renaming
13601 of rich_location::MAX_RANGES to
13602 rich_location::STATICALLY_ALLOCATED_RANGES.
13603 * diagnostic.h (struct diagnostic_context): Likewise.
13604
13605 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13606
13607 * selftest.c (selftest::named_temp_file::named_temp_file): New
13608 ctor.
13609 (selftest::temp_source_file::~temp_source_file): Move to...
13610 (selftest::named_temp_file::~named_temp_file): ...here.
13611 (selftest::test_named_temp_file): New function.
13612 (selftest::selftest_c_tests): Call test_named_temp_file.
13613 * selftest.h (class named_temp_file): New class.
13614 (class temp_source_file): Convert to a subclass of named_temp_file.
13615
13616 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13617
13618 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13619 USEs of LR_REGNO in returns and sibcalls.
13620 (rs6000_output_mi_thunk): Similar.
13621 (rs6000_sibcall_aix): Similar.
13622 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13623 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13624 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13625 Remove the USE of LR_REGNO from the patterns as well. Delete an
13626 obsolete comment.
13627 (return_internal_<mode>): Delete.
13628
13629 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13630
13631 * config/aarch64/aarch64-simd.md
13632 (aarch64_ld2<mode>_dreg_le): New.
13633 (aarch64_ld2<mode>_dreg_be): New.
13634 (aarch64_ld2<mode>_dreg): Removed.
13635 (aarch64_ld3<mode>_dreg_le): New.
13636 (aarch64_ld3<mode>_dreg_be): New.
13637 (aarch64_ld3<mode>_dreg): Removed.
13638 (aarch64_ld4<mode>_dreg_le): New.
13639 (aarch64_ld4<mode>_dreg_be): New.
13640 (aarch64_ld4<mode>_dreg): Removed.
13641 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13642
13643 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13644
13645 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13646 redundant location param.
13647 (test_one_liner_fixit_remove): Likewise.
13648 (test_one_liner_fixit_replace): Likewise.
13649 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13650 * gcc-rich-location.c
13651 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13652 get_range_from_loc. Drop overload taking a const char *.
13653 * gcc-rich-location.h
13654 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13655 a const char *.
13656
13657 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13658
13659 * config/linux.c (linux_libc_has_function): Return true on musl.
13660
13661 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13662
13663 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13664
13665 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13666
13667 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13668 used for abnormal egdes.
13669
13670 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13671
13672 PR tree-optimization/72866
13673 * tree-vect-patterns.c (search_type_for_mask): Turn into
13674 a small wrapper, move all code to ...
13675 (search_type_for_mask_1): ... this new function. Add caching
13676 and adjust recursive calls.
13677
13678 PR debug/77363
13679 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13680 instead of lookup_type_die (type_main_variant (type)) even for array
13681 types.
13682
13683 PR middle-end/77377
13684 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13685 constant pool reference return x instead of c.
13686
13687 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13688
13689 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13690 include MQ.
13691
13692 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13693
13694 * input.c
13695 (selftest::test_make_location_nonpure_range_endpoints): Fix
13696 header comment.
13697
13698 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13699
13700 * diagnostic-show-locus.c
13701 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13702 function.
13703 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13704 * input.c (get_pure_location): Move to libcpp/line-map.c.
13705 * input.h (get_pure_location): Convert decl to an inline function
13706 calling implementation in libcpp.
13707
13708 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13709
13710 PR target/77403
13711 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13712 template for intel asm dialect.
13713 (vec_set_hi_<mode><mask_name>): Ditto.
13714
13715 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13716
13717 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13718 (selftest::fail_formatted): Likewise.
13719
13720 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13721
13722 * input.c (make_location): Call get_start and get_finish
13723 on the endpoints to avoid storing packed ranges or ad-hoc
13724 ranges in them.
13725 (selftest::test_make_location_nonpure_range_endpoints): New function.
13726 (selftest::input_c_tests): Call it.
13727 * input.h (get_start): New inline function.
13728
13729 2016-08-29 Tom de Vries <tom@codesourcery.com>
13730
13731 PR c/77398
13732 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13733 with assert.
13734
13735 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13736
13737 * Makefile.in (gcov-iov.h): Add dummy recipe.
13738
13739 2016-08-29 Nathan Sidwell <nathan@acm.org>
13740
13741 * config/nvptx/nvptx.c: #include tree-vrp.h.
13742
13743 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13744
13745 PR target/77324
13746 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13747 HIGH+LO construct during reload.
13748
13749 2016-08-28 Tom de Vries <tom@codesourcery.com>
13750
13751 PR lto/70955
13752 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13753 'sysv_abi va_list' attribute.
13754 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13755 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13756 attributes.
13757
13758 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13759
13760 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13761 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13762 (unshare_all_rtl_again): Likewise.
13763 * function.c (assign_stack_local_1): Likewise.
13764 (assign_stack_temp_for_type): Likewise.
13765
13766 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13767
13768 * cfgbuild.c (make_edges): Adjust.
13769 * cfgrtl.c (can_delete_label_p): Likewise.
13770 * dwarf2cfi.c (create_trace_edges): Likewise.
13771 * except.c (sjlj_emit_dispatch_table): Likewise.
13772 * function.h (struct expr_status): make x_forced_labels a vector.
13773 * jump.c (rebuild_jump_labels_1): Adjust.
13774 * reload1.c (set_initial_label_offsets): Likewise.
13775 * stmt.c (force_label_rtx): Likewise.
13776 (expand_label): Likewise.
13777
13778 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13779
13780 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13781
13782 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13783
13784 PR tree-optimization/71077
13785 PR tree-optimization/68542
13786 * fold-const.c (fold_relational_const): Fix folding of
13787 VECTOR_CST comparisons that have a scalar boolean result type.
13788 (selftest::test_vector_folding): New static function.
13789 (selftest::fold_const_c_tests): Call it.
13790
13791 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13792
13793 * doc/extend.texi (SPU Built-in Functions): Remove stale
13794 references to material formerly at IBM and Sony.
13795
13796 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13797
13798 PR target/77349
13799 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13800
13801 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13802
13803 * diagnostic-show-locus.c
13804 (selftest::test_fixit_consolidation): New function.
13805 (selftest::diagnostic_show_locus_c_tests): Call it.
13806 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13807 constructor based on source_range.
13808
13809 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13810
13811 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13812 "fixit-delete".
13813 (parse_gcc_colors): Update description of default GCC_COLORS.
13814 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13815 (colorizer::set_fixit_insert): New method.
13816 (colorizer::set_fixit_delete): New method.
13817 (colorizer::get_color_by_name): New method.
13818 (colorizer::STATE_FIXIT_INSERT): New constant.
13819 (colorizer::STATE_FIXIT_DELETE): New constant.
13820 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13821 fields in favor of new field "m_stop_color". Add fields
13822 "m_fixit_insert" and "m_fixit_delete".
13823 (colorizer::colorizer): Update for above changes. Replace
13824 colorize_start calls with calls to get_color_by_name.
13825 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13826 STATE_FIXIT_DELETE. Update for field renamings.
13827 (colorizer::finish_state): Simplify by using m_stop_color,
13828 rather than multiple identical "*_ce" fields.
13829 (colorizer::get_color_by_name): New method.
13830 (layout::print_any_fixits): Print insertions and replacements
13831 using the "fixit-insert" color, and deletions using the
13832 "fixit-delete" color.
13833 * doc/invoke.texi (-fdiagnostics-color): Update description of
13834 default GCC_COLORS, and of the supported capabilities.
13835
13836 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13837
13838 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13839 current_function_static_stack_size variable with the static
13840 stack frame size of the current function when
13841 flag_stack_usage_info is enabled.
13842
13843 2016-08-26 Nathan Sidwell <nathan@acm.org>
13844
13845 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13846 assignment inside if condition.
13847
13848 2016-08-26 Richard Biener <rguenther@suse.de>
13849
13850 PR tree-optimization/69047
13851 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13852 extracts similar to what FRE does.
13853 (non_rewritable_mem_ref_base): Likewise.
13854
13855 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13856
13857 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13858 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13859 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13860 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13861 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13862 Likewise.
13863 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13864 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13865 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13866 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13867 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13868
13869 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13870
13871 PR target/70473
13872 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13873 reservation duration to 15 cycles.
13874 (cortex_a8_vfp_macs): Likewise.
13875 (cortex_a8_vfp_macd): Likewise.
13876 (cortex_a8_vfp_divs): Likewise.
13877 (cortex_a8_vfp_divd): Likewise.
13878
13879 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13880
13881 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13882 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13883
13884 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13885 Martin Jambhor <mjambor@suse.cz>
13886
13887 * common.opt: New option -fipa-bit-cp.
13888 * doc/invoke.texi: Document -fipa-bit-cp.
13889 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13890 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13891 * tree-ssa-ccp.h: New header file.
13892 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13893 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13894 Replace all occurences of tree parameter by two new params: signop, int.
13895 (bit_value_unop_1): Change to bit_value_unop and export it.
13896 Replace all occurences of tree parameter by two new params: signop,
13897 int.
13898 (bit_value_binop): Change call from bit_value_binop_1 to
13899 bit_value_binop.
13900 (bit_value_assume_aligned): Likewise.
13901 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13902 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13903 to ccp_finalize.
13904 (ccp_finalize): Skip processing if val->mask == 0.
13905 * ipa-cp.c: Include tree-ssa-ccp.h
13906 (ipcp_bits_lattice): New class.
13907 (ipcp_param_lattice (bits_lattice): New member.
13908 (print_all_lattices): Call ipcp_bits_lattice::print.
13909 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13910 (initialize_node_lattices): Likewise.
13911 (propagate_bits_accross_jump_function): New function.
13912 (propagate_constants_accross_call): Call
13913 propagate_bits_accross_jump_function.
13914 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13915 (ipcp_store_bits_results): New function.
13916 (ipcp_driver): Call ipcp_store_bits_results.
13917 * ipa-prop.h (ipa_bits): New struct.
13918 (ipa_jump_func): Add new member bits of type ipa_bits.
13919 (ipa_param_descriptor): Change decl to decl_or_type.
13920 (ipa_get_param): Change decl to decl_or_type and assert on
13921 PARM_DECL.
13922 (ipa_get_type): New function.
13923 (ipcp_transformation_summary): New member bits.
13924 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13925 (ipa_populate_param_decls): Likewise.
13926 (ipa_dump_param): Likewise.
13927 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13928 function.
13929 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13930 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13931 propagation.
13932 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13933 (ipa_write_jump_function): Add streaming for ipa_bits.
13934 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13935 (write_ipcp_transformation_info): Add streaming for ipa_bits
13936 summary for ltrans.
13937 (read_ipcp_transfomration_info): Add support for reading streamed
13938 ipa_bits.
13939 (ipcp_update_bits): New function.
13940 (ipcp_transform_function): Call ipcp_update_bits.
13941
13942 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13943
13944 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13945 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13946
13947 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13948
13949 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13950
13951 2016-08-25 Richard Biener <rguenther@suse.de>
13952
13953 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13954 Only add locations in late dwarf.
13955 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13956 (dwarf2out_early_finish): But do it here.
13957
13958 2016-08-24 Michael Collison <michael.collison@linaro.org>
13959 Michael Collison <michael.collison@arm.com>
13960
13961 * config/arm/arm-modes.def: Add new condition code mode CC_V
13962 to represent the overflow bit.
13963 * config/arm/arm.c (maybe_get_arm_condition_code):
13964 Add support for CC_Vmode.
13965 (arm_gen_unlikely_cbranch): New function to generate common
13966 rtl conditional branches for overflow patterns.
13967 * config/arm/arm-protos.h: Add prototype for
13968 arm_gen_unlikely_cbranch.
13969 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13970 addsi3_compareV_upper): New patterns to support signed
13971 builtin overflow add operations.
13972 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13973 New patterns to support unsigned builtin add overflow operations.
13974 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13975 builtin overflow subtract operations,
13976 (usubv<mode>4): New patterns to support unsigned builtin subtract
13977 overflow operations.
13978 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13979 to support builtin overflow negate operations.
13980
13981 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13982
13983 Revert
13984 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13985
13986 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13987 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13988 needed.
13989
13990 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13991
13992 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13993 MULTILIB_OPTIONS should be used. Small wording fixes.
13994 * genmultilib: Memorize set of all option combinations in
13995 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13996 found in MULTILIB_OPTIONS by checking if option set is listed in
13997 combination_space. Output new and existing error message to stderr.
13998
13999 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14000
14001 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14002 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14003 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14004 (MULTILIB_REUSE): Remove reuse rules for option set including
14005 -mfpu=fp-armv8 and -mfpu=vfpv4
14006
14007 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14008
14009 * config/arm/t-rtems: Add vfp multilib.
14010
14011 2016-08-23 Ian Lance Taylor <iant@golang.org>
14012
14013 * config/s390/s390.c (s390_asm_file_start): Call
14014 default_file_start.
14015
14016 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14017
14018 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14019 initialization of all 0's to the 0 constant, instead of directly
14020 generating XOR. Add support for V4SImode vector initialization on
14021 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14022 initialization. Change variables used in V4SFmode vector
14023 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14024 any memory addresses are in index form. Add support for using
14025 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14026 with all of the same element.
14027 (regno_or_subregno): New helper function to return a register
14028 number for either REG or SUBREG.
14029 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14030 Use regno_or_subregno where possible.
14031 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14032 DImode value from two SImode values in order to generate V4SImode
14033 vector initialization on 64-bit systems with direct move.
14034 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14035 initialization.
14036 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14037 swappable.
14038 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14039 declaration.
14040 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14041 attributes to initialize V8HImode and V16QImode vectors with the
14042 same element.
14043 (VSX_SPLAT_COUNT): Likewise.
14044 (VSX_SPLAT_SUFFIX): Likewise.
14045 (UNSPEC_VSX_VEC_INIT): New unspec.
14046 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14047 Allow SFmode values to come from Altivec registers.
14048 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14049 on 64-bit systems with direct move.
14050 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14051 vector initializations, to allow V4SImode vector initializations
14052 on 64-bit systems with direct move.
14053 (vsx_splat_v4si): Likewise.
14054 (vsx_splat_v4si_di): Likewise.
14055 (vsx_splat_v4sf): Likewise.
14056 (vsx_splat_v4sf_internal): Likewise.
14057 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14058 register classes.
14059 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14060 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14061 initializing V8HImode and V16QImode vectors with the same
14062 element.
14063 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14064 optimization if -maltivec=be.
14065
14066 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14067
14068 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14069 attribute for alternatives 3 and 4.
14070
14071 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14072
14073 * selftest.c (selftest::assert_str_contains): New function.
14074 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14075 * selftest.h (selftest::assert_str_contains): New decl.
14076 (ASSERT_STR_CONTAINS): New macro.
14077
14078 2016-08-23 Richard Biener <rguenther@suse.de>
14079
14080 PR tree-optimization/77286
14081 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14082 the CFG here.
14083 (vect_transform_loop): Split exit edges of loop and scalar
14084 loop if required and at the appropriate time.
14085
14086 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14087
14088 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14089 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14090 needed.
14091 Correct a typo in a comment.
14092
14093 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14094
14095 * config/s390/s390.md ("*andc_split"): New splitter for and with
14096 complement.
14097
14098 2016-08-23 Richard Biener <rguenther@suse.de>
14099
14100 PR tree-optimization/27336
14101 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14102 by looking for a non-EH edge.
14103 (process_assert_insertions_for): Likewise.
14104
14105 2016-08-23 Richard Biener <rguenther@suse.de>
14106
14107 PR middle-end/77305
14108 * statistics.c (statistics_counter_event): Robustify against
14109 NULL current_pass.
14110
14111 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14112
14113 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14114 for targets amdfam10 and barcelona.
14115
14116 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14117
14118 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14119 (zero_extend<mode>di2): Ditto.
14120 (*zero_extend<mode>si2): Ditto.
14121 (*zero_extendqihi2): Ditto.
14122
14123 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14124
14125 PR middle-end/77269
14126 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14127 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14128
14129 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14130
14131 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14132 identical consecutive elements.
14133 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14134 the node's def stmt, avoid printing an unwanted trailing newline by
14135 replacing the call to print_gimple_stmt() with its inlined body and
14136 adjusting it to not set pp_needs_newline and to call pp_flush()
14137 instead of pp_newline_and_flush().
14138
14139 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14140
14141 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14142 (float32_type_node, float64_type_node, float32x_type_node)
14143 (float128x_type_node): New macros.
14144 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14145 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14146 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14147 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14148 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14149 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14150 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14151 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14152 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14153 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14154 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14155 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14156 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14157 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14158 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14159 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14160 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14161 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14162 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14163 and copysign.
14164 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14165 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14166 * doc/extend.texi (Other Builtins): Document these built-in
14167 functions.
14168 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14169 for nan and nans.
14170
14171 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14172
14173 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14174
14175 2016-08-22 Richard Biener <rguenther@suse.de>
14176
14177 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14178
14179 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14180
14181 PR target/77270
14182 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14183 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14184 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14185
14186 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14187
14188 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14189 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14190 (vrp_visit_switch_stmt): Likewise.
14191 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14192 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14193 (vrp_visit_stmt): Use extract_range_from_stmt.
14194 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14195
14196 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14197
14198 * Makefile.in: Add tree-vrp.h to GTFILES.
14199 * gengtype.c (open_base_files): Add tree-vrp.h.
14200 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14201 * builtins.c: Likewise.
14202 * fold-const.c: Likewise.
14203 * gimple-builder.c: Likewise.
14204 * gimple-laddress.c: Likewise.
14205 * hsa-gen.c: Likewise.
14206 * internal-fn.c: Likewise.
14207 * ssa.h: Likewise.
14208 * targhooks.c: Liewise,
14209 * tree-ssa-address.c: Likewise.
14210 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14211 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14212 * tree-vrp.h: New file.
14213
14214 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14215
14216 PR tree-optimization/61839
14217 * tree-vrp.c (two_valued_val_range_p): New.
14218 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14219 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14220 Also Convert VAR BINOP CST where VAR is two-valued to
14221 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14222
14223 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14224
14225 * diagnostic-show-locus.c
14226 (layout::annotation_line_showed_range_p): New method.
14227 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14228 Reimplement case fixit_hint::REPLACE to cover removals, and
14229 replacements where the range of the replacement isn't one
14230 of the ranges in the rich_location.
14231 (test_one_liner_fixit_replace): Likewise.
14232 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14233 function.
14234 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14235 New function.
14236 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14237 functions.
14238 * diagnostic.c (print_parseable_fixits): Remove case
14239 fixit_hint::REMOVE.
14240
14241 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14242
14243 PR target/77270
14244 * config/i386/i386.c (ix86_option_override_internal): Remove
14245 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14246 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14247 Do not try to enable TARGET_PRFCHW ISA flag here.
14248 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14249 Rewrite expander function body.
14250 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14251
14252 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14253
14254 PR c/32187
14255 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14256 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14257 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14258 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14259 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14260 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14261 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14262 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14263 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14264 tree_index values.
14265 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14266 macros.
14267 (struct floatn_type_info): New structure type.
14268 (floatn_nx_types): New variable declaration.
14269 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14270 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14271 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14272 * tree.c (floatn_nx_types): New variable.
14273 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14274 corresponding complex types.
14275 * target.def (floatn_mode): New hook.
14276 * targhooks.c: Include "real.h".
14277 (default_floatn_mode): New function.
14278 * targhooks.h (default_floatn_mode): New prototype.
14279 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14280 types.
14281 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14282 effective-target and dg-add-options keywords.
14283 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14284 Document new effective-target keywords.
14285 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14286 * doc/tm.texi: Regenerate.
14287 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14288 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14289 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14290 18661-3.
14291 * real.h (struct real_format): Add field ieee_bits.
14292 * real.c (ieee_single_format, mips_single_format)
14293 (motorola_single_format, spu_single_format, ieee_double_format)
14294 (mips_double_format, motorola_double_format)
14295 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14296 (ieee_extended_intel_128_format)
14297 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14298 (mips_extended_format, ieee_quad_format, mips_quad_format)
14299 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14300 (decimal_double_format, decimal_quad_format, ieee_half_format)
14301 (arm_half_format, real_internal_format: Initialize ieee_bits
14302 field.
14303 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14304 float128_type_node. Set float80_type_node to float64x_type_node
14305 if appropriate and long_double_type_node not appropriate.
14306 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14307 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14308 Initialize ieee_bits field.
14309 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14310 (rs6000_init_builtins): Set ieee128_float_type_node to
14311 float128_type_node.
14312 (rs6000_floatn_mode): New function.
14313
14314 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14315
14316 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14317 _rdseed64_step): Uglify argument names and/or local variable names
14318 in inline functions.
14319 * config/i386/rtmintrin.h (_xabort): Likewise.
14320 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14321 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14322 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14323 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14324 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14325 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14326 _mm_maskz_ternarylogic_epi32): Likewise.
14327 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14328 __lwpins32, __lwpins64): Likewise.
14329 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14330 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14331 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14332 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14333 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14334 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14335 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14336 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14337 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14338 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14339 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14340 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14341 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14342 _mm256_mask_i64gather_epi32): Likewise.
14343 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14344 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14345 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14346 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14347 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14348 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14349 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14350 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14351 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14352 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14353 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14354 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14355 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14356 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14357 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14358 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14359 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14360 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14361
14362 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14363 returning void.
14364 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14365 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14366 Likewise.
14367 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14368 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14369 function name.
14370 (_rdpkru_u32): Add space after function name.
14371
14372 * config/i386/t-i386 (i386-c.o): Don't depend on
14373 i386-builtin-types.inc.
14374 (i386.o): Depend on i386-builtin-types.inc.
14375
14376 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14377
14378 PR target/77281
14379 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14380 Use const_vec_duplicate to check for duplicated elements.
14381
14382 2016-08-19 Richard Biener <rguenther@suse.de>
14383
14384 PR tree-optimization/77290
14385 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14386 Fix flag_tree_parallelize_loops check.
14387
14388 2016-08-19 Richard Biener <rguenther@suse.de>
14389
14390 * match.pd (x | 0 -> x): Add.
14391
14392 2016-08-19 Richard Biener <rguenther@suse.de>
14393
14394 PR tree-optimization/77286
14395 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14396 Deal with virtual PHIs being out-of-order.
14397
14398 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14399
14400 * doc/invoke.texi (fverbose-asm): Note that source code lines
14401 are emitted, and provide an example.
14402 * final.c (asm_show_source): New function.
14403 (final_scan_insn): Call asm_show_source.
14404
14405 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14406
14407 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14408 param with diagnostic_kind.
14409 (class colorizer): Similarly replace field m_diagnostic with
14410 m_diagnostic_kind.
14411 (colorizer::colorizer): Replace diagnostic
14412 param with diagnostic_kind.
14413 (colorizer::begin_state): Update for above field change.
14414 (layout::layout): Replace diagnostic param with rich_location *
14415 and diagnostic_kind.
14416 (diagnostic_show_locus): Replace diagnostic param with richloc
14417 and diagnostic_kind.
14418 (class selftest::test_diagnostic_context): New class.
14419 (selftest::test_diagnostic_show_locus_unknown_location): New
14420 function.
14421 (selftest::test_one_liner_simple_caret): New function.
14422 (selftest::test_one_liner_caret_and_range): New function.
14423 (selftest::test_one_liner_multiple_carets_and_ranges): New
14424 function.
14425 (selftest::test_one_liner_fixit_remove): New function.
14426 (selftest::test_one_liner_fixit_replace): New function.
14427 (selftest::test_diagnostic_show_locus_one_liner): New function.
14428 (selftest::diagnostic_show_locus_c_tests): Call the new test
14429 functions.
14430 * diagnostic.c (diagnostic_initialize): Initialize
14431 colorize_source_p, show_ruler_p and parseable_fixits_p.
14432 (default_diagnostic_finalizer): Update for change to
14433 diagnostic_show_locus.
14434 (diagnostic_append_note): Likewise.
14435 * diagnostic.h (diagnostic_show_locus): Replace
14436 const diagnostic_info * param with location * and diagnostic_t.
14437
14438 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14439
14440 * input.c (saved_line_table): New global.
14441 (class selftest::temp_line_table): Rename to line_table_test and
14442 move declaration to selftest.h, and drop field m_old_line_table.
14443 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14444 (selftest::line_table_test::line_table_test): ...this. Add a
14445 default ctor. Store current value of line_table within
14446 saved_line_table.
14447 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14448 (selftest::line_table_test::~line_table_test): ...this, and
14449 restore line_table from the saved_line_table, rather than
14450 m_old_line_table.
14451 (selftest::test_accessing_ordinary_linemaps): Update for above
14452 renaming.
14453 (selftest::test_lexer): Likewise.
14454 (struct selftest::lexer_test): Likewise.
14455 (selftest::lexer_test::lexer_test): Likewise.
14456 (selftest::input_c_tests): Move the looping over test cases from
14457 here into...
14458 (selftest::for_each_line_table_case): New function.
14459 * input.h (saved_line_table): New decl.
14460 * selftest.h (struct selftest::line_table_case): New forward decl.
14461 (class selftest::line_table_test): New class, moved here from
14462 selftest::temp_line_table in input.c, and renamed.
14463 (selftest::for_each_line_table_case): New decl.
14464
14465 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14466
14467 PR target/72839
14468 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14469
14470 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14471
14472 PR middle-end/70895
14473 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14474 enclosing parallel construct for reduction variables on OpenACC loop
14475 directives.
14476
14477 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14478
14479 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14480 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14481 -gdwarf-3.
14482 (function_to_dwarf_procedure): Update comment.
14483
14484 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14485
14486 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14487 function.
14488 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14489 declaration.
14490 * selftest.c (selftest::temp_source_file::~temp_source_file):
14491 Evict m_filename from the diagnostic file cache.
14492
14493 2016-08-18 Richard Biener <rguenther@suse.de>
14494
14495 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14496 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14497 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14498 clone materialization.
14499 * passes.def (all_late_ipa_passes): Start with
14500 pass_materialize_all_clones.
14501 * cgraphunit.c (symbol_table::compile): Remove call to
14502 materialize_all_clones.
14503 * tree-into-ssa.c: Include statistics.h.
14504 (update_ssa): Count number of times we do incremental/rewrite
14505 SSA update.
14506
14507 2016-08-18 Richard Biener <rguenther@suse.de>
14508
14509 PR tree-optimization/77282
14510 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14511 When doing auto-parallelizing also prevent use of PHIs that
14512 carry dependences across loop backedges.
14513
14514 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14515 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14516
14517 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14518
14519 2016-08-18 Richard Biener <rguenther@suse.de>
14520
14521 * ssa-iterators.h (ssa_vuse_operand): New inline.
14522 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14523 (predicate_all_scalar_phis): Use remove_phi_node to remove
14524 phi nodes predicated. Delay removing virtual PHIs.
14525 (predicate_mem_writes): Update virtual operands.
14526 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14527 (tree_if_conversion): Do not rewrite virtual SSA form.
14528 * tree-phinodes.c (release_phi_node): Make static.
14529 * tree-phinodes.h (release_phi_node): Remove.
14530
14531 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14532
14533 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14534 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14535 twice to define those.
14536 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14537 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14538 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14539 * config/i386/i386-builtin.def: New file.
14540
14541 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14542
14543 * input.c (get_source_range_for_char): Rename to...
14544 (selftest::get_source_range_for_char): ...this, and move within
14545 the #if CHECKING_P guard.
14546 (get_num_source_ranges_for_substring): Rename to...
14547 (selftest::get_num_source_ranges_for_substring): ...this, move
14548 within the #if CHECKING_P guard, and make static.
14549 (selftest::assert_num_substring_ranges): Initialize
14550 actual_num_ranges.
14551
14552 2016-08-18 Alan Modra <amodra@gmail.com>
14553
14554 PR rtl-optimization/72771
14555 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14556 when find_reloads_toplev returns address_reloaded==-1.
14557 (alternative_allows_const_pool_ref): Update comment.
14558
14559 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14560
14561 PR tree-optimization/71752
14562 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14563 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14564
14565 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14566
14567 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14568 instead of testing ECF_NORETURN bit in gimple_call_flags.
14569 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14570 * predict.c (tree_bb_level_predictions): Likewise.
14571 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14572
14573 PR middle-end/77259
14574 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14575 turning a call into __builtin_unreachable-like noreturn call, adjust
14576 gimple_call_set_fntype.
14577 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14578 gimple_call_fntype has void return type.
14579
14580 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14581
14582 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14583 maybe_lookup_decl, to handle nested acc loop directives.
14584
14585 2016-08-17 Richard Biener <rguenther@suse.de>
14586
14587 PR tree-optimization/76490
14588 * tree-vrp.c (update_value_range): Preserve overflow infinities
14589 when intersecting with ranges from get_range_info.
14590 (operand_less_p): Handle overflow infinities correctly.
14591 (value_range_constant_singleton): Use vrp_operand_equal_p
14592 to handle overflow max/min correctly.
14593 (vrp_valueize): Likewise.
14594 (union_ranges): Likewise.
14595 (intersect_ranges): Likewise.
14596 (vrp_visit_phi_node): Improve iteration limitation to only
14597 apply when we'll possibly re-visit the PHI via a changed argument
14598 on the backedge.
14599
14600 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14601
14602 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14603 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14604 rather than those that should not be built.
14605
14606 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14607
14608 PR target/66488
14609 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14610
14611 2016-08-17 Richard Biener <rguenther@suse.de>
14612
14613 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14614 (verify_vssa): New function verifying virtual SSA form.
14615 (verify_ssa): Call it.
14616 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14617 Do not apply loop-closed SSA handling to virtuals.
14618 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14619 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14620 when rewriting their symbol.
14621 (prepare_def_site_for): Likewise.
14622 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14623 operands of moved stmts.
14624
14625 2016-08-17 Richard Biener <rguenther@suse.de>
14626
14627 PR tree-optimization/23855
14628 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14629 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14630 find guards to hoist. Do not update SSA form but rewrite virtuals
14631 into loop closed SSA.
14632 (find_loop_guard): Adjust to skip already hoisted guards. Do
14633 not mark virtuals for renaming or update SSA form.
14634
14635 2016-08-17 Martin Liska <mliska@suse.cz>
14636
14637 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14638 a LONG_LONG_TYPE_SIZE comparison.
14639 * gcov-io.h: Remove macro definitions.
14640 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14641 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14642 comparison.
14643
14644 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14645
14646 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14647 that builtins not mentioned in bdesc_* arrays come first, then
14648 the ones mentioned in bdesc_* arrays in the order they appear in
14649 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14650 IX86_BUILTIN__BDESC_*_LAST enumerator.
14651 (bdesc_mpx): Fix up a comment typo.
14652 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14653 __builtin_ia32_vpcomneu[bwdq] builtins.
14654 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14655 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14656 enum ix86_builtins ordering.
14657 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14658 for direct bdesc_* array member access instead of searching all the
14659 arrays until an fcode match is found.
14660
14661 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14662
14663 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14664 pattern as define_insn_and_split. Split insn before reload to
14665 ashl<mode>3_1.
14666 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14667 <shift_insn><mode>3_1.
14668 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14669 <rotate_insn><mode>3_1.
14670
14671 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14672
14673 PR c/72857
14674 * input.c (get_source_range_for_substring): Rename to...
14675 (get_source_location_for_substring): ...this, adding param
14676 "caret_idx", and converting output param from source_range * to
14677 location_t *.
14678 (get_source_range_for_char): New function.
14679 (get_num_source_ranges_for_substring): Update comment to reflect
14680 above renaming.
14681 (assert_char_at_range): Update to use get_source_range_for_char
14682 rather than get_source_range_for_substring.
14683 (test_lexer_string_locations_concatenation_2): Likewise.
14684 * substring-locations.h (get_source_range_for_substring): Rename
14685 to...
14686 (get_source_location_for_substring): ...this, and adding param
14687 "caret_idx", and converting output param from source_range * to
14688 location_t *.
14689
14690 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14691
14692 * input.c (class selftest::temp_source_file): Move to
14693 selftest.h.
14694 (selftest::temp_source_file::temp_source_file): Move to
14695 selftest.c.
14696 (selftest::temp_source_file::~temp_source_file): Likewise.
14697 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14698 here from input.c.
14699 (selftest::temp_source_file::~temp_source_file): Likewise.
14700 * selftest.h (class selftest::temp_source_file): Move here from
14701 input.c
14702
14703 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14704
14705 PR target/71910
14706 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14707 inlining, add cgraph edge for the added __builtin_unreachable call.
14708
14709 PR middle-end/67485
14710 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14711 only cast it to SHWI for the final comparison.
14712
14713 2016-08-16 Martin Liska <mliska@suse.cz>
14714
14715 PR gcov-profile/36412
14716 * doc/gcov.texi: Document --hash-filenames(-x).
14717 * gcov.c (print_usage): Add the option.
14718 (process_args): Process the option, sort options alphabetically.
14719 (md5sum_to_hex): New function.
14720 (make_gcov_file_name): Do the md5sum and append it to a
14721 filename.
14722
14723 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14724
14725 PR tree-optimization/69848
14726 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14727 and swtich operands to avoid additional NOT instruction.
14728 (vcond<v_cmp_mixed><mode>): Ditto.
14729 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14730
14731 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14732
14733 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14734
14735 2016-08-16 Richard Biener <rguenther@suse.de>
14736
14737 PR tree-optimization/76783
14738 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14739 BB visited flags at start.
14740
14741 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14742
14743 PR tree-optimization/72817
14744 PR tree-optimization/73450
14745 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14746 multiple_of_p for adjusted IV.base.
14747
14748 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14749
14750 PR target/72867
14751 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14752 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14753 for !flag_finite_math_only or flag_signed_zeros.
14754 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14755 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14756 depend on flag_finite_math_only.
14757 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14758 New insn pattern.
14759 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14760 (*ieee_smin<mode>3): Ditto.
14761 (*ieee_smax<mode>3): Ditto.
14762 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14763 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14764 flag_signed_zeros.
14765 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14766 depend on flag_finite_math_only.
14767 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14768 (*mmx_<code>v2sf3): Remove.
14769 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14770 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14771 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14772
14773 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14774
14775 PR rtl-optimization/73650
14776 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14777 it is not a simple move.
14778
14779 2016-08-15 Martin Liska <mliska@suse.cz>
14780
14781 PR driver/72765
14782 * gcc.c (do_spec_1): Call save_string with the right size.
14783 (save_string): Do an assert about string we copy.
14784
14785 2016-08-15 Richard Biener <rguenther@suse.de>
14786
14787 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14788 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14789 TV_MACH_DEP.
14790 (pass_data_stv): Likewise.
14791
14792 2016-08-15 Richard Biener <rguenther@suse.de>
14793
14794 PR tree-optimization/73434
14795 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14796 TBAA info on the base when forwarding a non-invariant address.
14797
14798 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14799
14800 * dwarf2out.c (struct checksum_attributes): Add
14801 at_string_length_bit_size and at_string_length_byte_size fields.
14802 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14803 and DW_AT_string_length_byte_size.
14804 (die_checksum_ordered): Handle at_string_length_bit_size and
14805 at_string_length_byte_size.
14806 (gen_array_type_die): For dwarf_version >= 5 emit
14807 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14808 (adjust_string_types): For dwarf_version >= 5 remove
14809 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14810 (resolve_addr): Likewise.
14811
14812 PR debug/71906
14813 * dwarf2out.c (string_types): New variable.
14814 (gen_array_type_die): Change early_dwarf handling of
14815 DW_AT_string_length, create DW_OP_call4 referencing the
14816 length var temporarily. Handle parameters that are pointers
14817 to string length.
14818 (adjust_string_types): New function.
14819 (gen_subprogram_die): Temporarily set string_types to local var,
14820 call adjust_string_types if needed.
14821 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14822 New functions.
14823 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14824
14825 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14826
14827 * doc/install.texi (*-*-solaris2*): Fix version number and document
14828 requirement on GNU make for building libjava with the Solaris linker.
14829
14830 2016-08-15 Martin Liska <mliska@suse.cz>
14831 Jakub Jelinek <jakub@redhat.com>
14832
14833 PR tree-optimization/72824
14834 * tree-loop-distribution.c (const_with_all_bytes_same)
14835 <case VECTOR_CST>: Fix a typo.
14836
14837 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14838
14839 PR target/76342
14840 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14841 Renamed from _mm512_undefined_si512.
14842 (_mm_undefined_si512): New definition.
14843
14844 2016-08-13 Richard Biener <rguenther@suse.de>
14845
14846 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14847 into PHIs and update the lattice for its def.
14848
14849 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14850
14851 PR c/71512
14852 * ubsan.c (instrument_si_overflow): Pass true instead of false
14853 to gsi_replace.
14854 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14855 of bbs. Return TODO_cleanup_cfg if any returned true.
14856
14857 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14858
14859 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14860 ISA 3.0 MTVSRDD instruction.
14861 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14862 vecperm.
14863
14864 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14865
14866 PR tree-optimization/71083
14867 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14868 bitfield access when possible.
14869
14870 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14871
14872 PR middle-end/71654
14873 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14874 sign-changing cast from a shorter unsigned type to a wider
14875 signed type.
14876
14877 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14878
14879 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14880 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14881 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14882
14883 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14884
14885 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14886 Correct costs for vec_construct.
14887
14888 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14889
14890 PR tree-optimization/69848
14891 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14892 type CONST_COND_REDUCTION.
14893 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14894 reudction type CONST_COND_REDUCTION.
14895
14896 2016-08-12 Richard Biener <rguenther@suse.de>
14897
14898 PR tree-optimization/57326
14899 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14900 returning an SSA name.
14901 (phi_translate_1): When fully_constant_expression returns a NAME
14902 make sure we have a leader for it.
14903
14904 2016-08-12 Martin Liska <mliska@suse.cz>
14905 Adam Fineman <afineman@afineman.com>
14906
14907 * gcov.c (process_file): Create .gcov file when .gcda
14908 file is missing.
14909
14910 2016-08-12 Marek Polacek <polacek@redhat.com>
14911
14912 PR c/7652
14913 * alias.c (find_base_value): Adjust fall through comment.
14914 * cfgexpand.c (expand_debug_expr): Likewise.
14915 * combine.c (find_split_point): Likewise.
14916 (expand_compound_operation): Likewise. Add FALLTHRU.
14917 (make_compound_operation): Adjust fall through comment.
14918 (canon_reg_for_combine): Add FALLTHRU.
14919 (force_to_mode): Adjust fall through comment.
14920 (simplify_shift_const_1): Likewise.
14921 (simplify_comparison): Likewise.
14922 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14923 FALLTHRU.
14924 * config/aarch64/predicates.md: Likewise.
14925 * config/i386/i386.c (function_arg_advance_32): Likewise.
14926 (ix86_gimplify_va_arg): Likewise.
14927 (print_reg): Likewise.
14928 (ix86_print_operand): Likewise.
14929 (ix86_build_const_vector): Likewise.
14930 (ix86_expand_branch): Likewise.
14931 (ix86_sched_init_global): Adjust fall through comment.
14932 (ix86_expand_args_builtin): Add FALLTHRU.
14933 (ix86_expand_builtin): Likewise.
14934 (ix86_expand_vector_init_one_var): Likewise.
14935 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14936 (rs6000_adjust_cost): Likewise.
14937 (insn_must_be_first_in_group): Likewise.
14938 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14939 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14940 * df-scan.c (df_uses_record): Likewise.
14941 * dojump.c (do_jump): Add FALLTHRU.
14942 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14943 comment.
14944 (resolve_args_picking_1): Adjust fall through comment.
14945 (loc_list_from_tree_1): Likewise.
14946 * expmed.c (make_tree): Likewise.
14947 * expr.c (expand_expr_real_2): Add FALLTHRU.
14948 (expand_expr_real_1): Likewise. Adjust fall through comment.
14949 * fold-const.c (const_binop): Adjust fall through comment.
14950 (fold_truth_not_expr): Likewise.
14951 (fold_cond_expr_with_comparison): Add FALLTHRU.
14952 (fold_binary_loc): Likewise.
14953 (contains_label_1): Adjust fall through comment.
14954 (multiple_of_p): Likewise.
14955 * gcov-tool.c (process_args): Add FALLTHRU.
14956 * genattrtab.c (check_attr_test): Likewise.
14957 (write_test_expr): Likewise.
14958 * genconfig.c (walk_insn_part): Likewise.
14959 * genpreds.c (validate_exp): Adjust fall through comment.
14960 (needs_variable): Likewise.
14961 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14962 (subst_dup): Likewise.
14963 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14964 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14965 (gimplify_scan_omp_clauses): Add FALLTHRU.
14966 (goa_stabilize_expr): Likewise.
14967 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14968 through comment.
14969 * hsa-gen.c (get_address_from_value): Likewise.
14970 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14971 * ira.c (ira_setup_alts): Add FALLTHRU.
14972 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14973 comment.
14974 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14975 * opts.c (common_handle_option): Likewise.
14976 * read-rtl.c (read_rtx_code): Likewise.
14977 * real.c (round_for_format): Likewise.
14978 * recog.c (asm_operand_ok): Likewise.
14979 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14980 * reload1.c (set_label_offsets): Likewise.
14981 (eliminate_regs_1): Likewise.
14982 (reload_reg_reaches_end_p): Likewise.
14983 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14984 (rtx_cost): Likewise.
14985 * sched-rgn.c (is_exception_free): Likewise.
14986 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14987 * stor-layout.c (int_mode_for_mode): Likewise.
14988 * toplev.c (print_to_asm_out_file): Likewise.
14989 (print_to_stderr): Likewise.
14990 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14991 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14992 (chrec_fold_multiply): Likewise.
14993 (evolution_function_is_invariant_rec_p): Likewise.
14994 (for_each_scev_op): Likewise.
14995 * tree-data-ref.c (siv_subscript_p): Likewise.
14996 (get_references_in_stmt): Likewise.
14997 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14998 (substitute_in_expr): Likewise.
14999 (type_cache_hasher::equal): Likewise.
15000 (walk_type_fields): Likewise.
15001 * var-tracking.c (adjust_mems): Add FALLTHRU.
15002 (set_dv_changed): Adjust fall through comment.
15003 * varasm.c (default_function_section): Add FALLTHRU.
15004
15005 2016-08-12 Marek Polacek <polacek@redhat.com>
15006
15007 PR c/7652
15008 * tree-complex.c (expand_complex_division): Add missing break.
15009
15010 2016-08-12 Richard Biener <rguenther@suse.de>
15011
15012 * passes.c (execute_todo): Do not push/pop TV_TODO.
15013 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15014 (execute_one_pass): Likewise.
15015 * common.opt (ftime-report-details): New switch.
15016 * doc/invoke.texi (ftime-report-details): Document.
15017 * timevar.h (timer::print_row): Adjust signature.
15018 (timer::all_zero): New static helper.
15019 (timer::child_map_t): New typedef.
15020 (timer::time_var_def): Add children field.
15021 * timevar.c (timer::named_items::print): Adjust.
15022 (timer::~timer): Free timevar recorded children.
15023 (timer::pop_internal): When -ftime-report-details record
15024 time spent in sub-timevars.
15025 (timer::print_row): Adjust.
15026 (timer::print): Print sub-timevar stats, use all_zero.
15027 * timevar.def (TV_TODO): Remove.
15028
15029 2016-08-12 Richard Biener <rguenther@suse.de>
15030
15031 PR tree-optimization/72851
15032 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15033 worklists to use bitmaps indexed in execution order.
15034 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15035 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15036 (cfg_blocks): Make a bitmap.
15037 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15038 New globals.
15039 (cfg_blocks_empty_p): Adjust.
15040 (cfg_blocks_add): Likewise.
15041 (cfg_blocks_get): Likewise.
15042 (add_ssa_edge): Likewise.
15043 (add_control_edge): Likewise.
15044 (simulate_stmt): Likewise.
15045 (process_ssa_edge_worklist): Likewise.
15046 (simulate_block): Likewise.
15047 (ssa_prop_init): Compute PRE order and stmt UIDs.
15048 (ssa_prop_fini): Adjust.
15049 (ssa_propagate): Adjust.
15050
15051 2016-08-12 Richard Biener <rguenther@suse.de>
15052
15053 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15054 the currently executable edges have fixed ranges. Always
15055 go through update_value_range.
15056
15057 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15058
15059 PR debug/63240
15060 * langhooks-def.h
15061 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15062 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15063 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15064 (LANG_HOOKS_DECLS): Add it.
15065 * langhooks.h (struct lang_hooks_for_decls): Add
15066 function_decl_defaulted. Const_tree-ify
15067 function_decl_explicit_p and function_decl_deleted_p.
15068 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15069 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15070 also at strict DWARF v5.
15071
15072 PR debug/55641
15073 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15074 TYPE_QUAL_CONST in reference-typed decls.
15075
15076 PR debug/49366
15077 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15078 in DW_OP_pieces, just enough to handle pointers to member
15079 functions.
15080 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15081 expression on DWARFv5 if a constant value doesn't work.
15082
15083 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15084
15085 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15086 * selftest.c (selftest::test_assertions): New function.
15087 (selftest::selftest_c_tests): New function.
15088 * selftest.h (selftest::selftest_c_tests): New declaration.
15089
15090 2016-08-11 Richard Biener <rguenther@suse.de>
15091 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15092
15093 PR rtl-optimization/72855
15094 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15095
15096 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15097
15098 PR target/72863
15099 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15100 (vsx_store_<mode>): Likewise.
15101
15102 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15103
15104 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15105 TImode CONST_WIDE_INT store.
15106 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15107
15108 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15109
15110 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15111 mode if unaligned SSE load and store are optimal.
15112
15113 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15114
15115 PR tree-optimization/71083
15116 * tree-predcom.c (ref_at_iteration): Correctly align the
15117 reference type.
15118
15119 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15120
15121 * config/s390/s390-builtin-types.def: Add INT128 types.
15122 * config/s390/s390-builtins.def: Add INT128 variants for the add
15123 sub low-level builtins dealing with TImode.
15124 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15125 via subreg when expanding a builtin.
15126 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15127 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15128 Fix comment.
15129 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15130 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15131 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15132 "vacc<bhfgq>_<mode>".
15133 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15134 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15135 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15136 "vscbi<bhfgq>_<mode>".
15137 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15138 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15139
15140 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15141
15142 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15143
15144 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15145
15146 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15147 unused declaration.
15148 (vcond<v_cmp_mixed><mode>): Ditto.
15149 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15150
15151 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15152
15153 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15154 variable explicitly, also assert on it before use.
15155
15156 2016-08-11 Richard Biener <rguenther@suse.de>
15157
15158 PR tree-optimization/72772
15159 * cfgloopmanip.c (create_preheader): Use split_edge if there
15160 is a single loop entry, avoiding degenerate PHIs.
15161
15162 2016-08-11 Richard Biener <rguenther@suse.de>
15163
15164 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15165 unconditional TODO_cleanup_cfg.
15166 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15167 cleanup only if we threaded a jump.
15168
15169 2016-08-11 Alan Modra <amodra@gmail.com>
15170
15171 PR target/71680
15172 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15173 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15174 slow. Emit two reloads for slow mem case, first loading in
15175 fast innermode, then converting to required mode.
15176
15177 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15178
15179 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15180 (vec_extract_sig): New macro.
15181 (vec_insert_exp): New macro.
15182 (vec_test_data_class): New macro.
15183 (scalar_extract_exp): New macro.
15184 (scalar_extract_sig): New macro.
15185 (scalar_insert_exp): New macro.
15186 (scalar_test_data_class): New macro.
15187 (scalar_test_neg): New macro.
15188 (scalar_cmp_exp_gt): New macro.
15189 (scalar_cmp_exp_lt): New macro.
15190 (scalar_cmp_exp_eq): New macro.
15191 (scalar_cmp_exp_unordered): New macro.
15192 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15193 to enforce constraint that operand is a 7-bit unsigned literal.
15194 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15195 for power9 built-ins.
15196 (BU_P9V_VSX_2): Likewise.
15197 (BU_P9V_64BIT_VSX_2): Likewise.
15198 (VSEEDP): Add scalar extract exponent support.
15199 (VSEESP): Add scalar extract signature support.
15200 (VSTDCNDP): Add scalar test negative support.
15201 (VSTDCNSP): Likewise.
15202 (VSIEDP): Add scalar insert exponent support.
15203 (VSCEDPGT): Add scalar compare exponent greater than support.
15204 (VSCEDPLT): Add scalar compare exponent less than support.
15205 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15206 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15207 (VSTDCDP): Add scalar test data class support.
15208 (VSTDCSP): Likewise.
15209 (VSEEDP): Add overload support for scalar extract exponent
15210 operation.
15211 (VSESDP): Add overload support for scalar extract signature
15212 operation.
15213 (VSTDCN): Add overload support for scalar test negative
15214 operation.
15215 (VSTDCNDP): Add overload support for scalar test negative
15216 operation.
15217 (VSTDCNSP): Add overload support for scalar test negative
15218 operation.
15219 (VSIEDP): Add overload support for scalar insert exponent
15220 operation.
15221 (VSTDC): Add overload support for scalar test data class
15222 operation.
15223 (VSTDCDP): Add overload support for scalar test data class
15224 operation.
15225 (VSTDCSP): Add overload support for scalar test data class
15226 opreation.
15227 (VSCEDPGT): Add overload support for scalar compare exponent
15228 greater than operation.
15229 (VSCEDPLT): Add overload support for scalar compare exponent
15230 less than operation.
15231 (VSCEDPEQ): Add overload support for scalar compare exponent
15232 test-for-equality operation.
15233 (VSCEDPUO): Add overload support for scalar compare exponent
15234 test-for-unordered operation.
15235 (VEEDP): Add vector extract exponent support.
15236 (VEESP): Likewise.
15237 (VESDP): Add vector extract significand support.
15238 (VESSP): Likewise.
15239 (VIEDP): Add vector insert exponent support.
15240 (VIESP): Likewise.
15241 (VTDCDP): Add vector test data class support.
15242 (VTDCSP): Likewise.
15243 (VES): Add overload support for vector extract significand operation.
15244 (VESDP): Likewise.
15245 (VESSP): Likewise
15246 (VEE): Add overload support for vector extract exponent operation.
15247 (VEEDP): Likewise.
15248 (VEESP): Likewise.
15249 (VTDC): Add overload support for vector test data class operation.
15250 (VTDCDP): Likewise.
15251 (VTDCSP): Likewise.
15252 (VIE): Add overload support for vector insert exponent operation.
15253 (VIEDP): Likewise.
15254 (VIESP): Likewise.
15255 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15256 overloaded binary floating point functions.
15257 (altivec_resolve_overloaded_builtin): Improve error messages to
15258 distinguish between functions not supported in the current
15259 compiler configuration and functions that were invoked with an
15260 invalid parameter combination, and include the built-in function
15261 name in both error messages.
15262 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15263 New prototype.
15264 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15265 function.
15266 (rs6000_expand_binop_builtin): Add check to enforce that argument
15267 2 of the test data class operations is a 7-bit unsigned literal.
15268 (rs6000_invalid_builtin): Add code to issue an error message if a
15269 built-in function that requires the power9_vector and -m32
15270 command-line options is compiled without these options.
15271 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15272 (UNSPEC_VSX_SXSIGDP): New value.
15273 (UNSPEC_VSX_SXSIGPDP): New value.
15274 (UNSPEC_VSX_SIEXPDP): New value.
15275 (UNSPEC_VSX_SCMPEXPDP): New value.
15276 (UNSPEC_VSX_STSTDC): New value.
15277 (UNSPEC_VSX_VXEXP): New value.
15278 (UNSPEC_VSX_VXSIG): New value.
15279 (UNSPEC_VSX_VIEXP): New value.
15280 (UNSPEC_VSX_VTSTDC): New value.
15281 (xsxexpdp): New insn for scalar extract exponent.
15282 (xsxsigdp): New insn for scalar extract significand.
15283 (xsiexpdp): New insn for scalar insert exponent.
15284 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15285 (*xscmpexpdp): New insn for scalar compare exponents.
15286 (xststdc<Fvsx): New expansion for both single- and
15287 double-precision scalar test data class operations.
15288 (xststdcneg<Fvsx>): New expansion for both single- and
15289 double-precision scalar test for negative value operations.
15290 (*xststdc<Fvsx>): New insn for scalar test data class
15291 operation.
15292 (xvxexp<VSs>): New insn for single- and double-precision
15293 vector extract exponent operation.
15294 (xvxsig<VSs>): New insn for single- and double-precision
15295 vector extract significand operation.
15296 (xviexp<VSs>): New insn for single- and double-precision
15297 vector insert exponent operation.
15298 (xvtstdc<VSs>): New insn for single- and double-precision
15299 vector test data class operation.
15300 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15301 built-in functions to represent the Power9 binary floating-point
15302 support instructions.
15303
15304 2016-08-10 bin cheng <bin.cheng@arm.com>
15305
15306 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15307
15308 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15309 Renlin Li <renlin.li@arm.com>
15310 Bin Cheng <bin.cheng@arm.com>
15311
15312 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15313 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15314 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15315 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15316 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15317 (vcond<v_cmp_result><mode>): Ditto.
15318 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15319 (vcondu<mode><mode>): Ditto.
15320 (vcond<v_cmp_mixed><mode>): New pattern.
15321 (vcondu<mode><v_cmp_mixed>): New pattern.
15322 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15323 of aarch64_vcond_internal.
15324
15325 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15326 Renlin Li <renlin.li@arm.com>
15327 Bin Cheng <bin.cheng@arm.com>
15328
15329 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15330 (vec_cmp<mode><v_cmp_result>): New pattern.
15331 (vec_cmpu<mode><mode>): New pattern.
15332 (vcond_mask_<mode><v_cmp_result>): New pattern.
15333
15334 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15335
15336 PR tree-optimization/71734
15337 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15338 REF_LOOP, invoke ref_indep_loop_p_1.
15339 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15340 to ref_indep_loop_p.
15341 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15342 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15343 is inside LOOP, do not cache dpendence value for loops with
15344 non-zero SAFELEN.
15345 (ref_indep_loop_p_2): Delete function.
15346 (can_sm_ref_p): Pass LOOP as additional argument to
15347 ref_indep_loop_p.
15348
15349 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15350
15351 PR target/72853
15352 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15353 being an offsettable address.
15354
15355 2016-08-10 Martin Liska <mliska@suse.cz>
15356
15357 PR gcov-profile/58306
15358 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15359 atomic variants of profile update functions.
15360
15361 2016-08-10 Martin Liska <mliska@suse.cz>
15362
15363 Cherry picked (and modified) from google-4_7 branch
15364 2012-12-26 Rong Xu <xur@google.com>
15365 * common.opt (fprofile-update): Add new flag.
15366 * coretypes.h: Define enum profile_update.
15367 * doc/invoke.texi: Document -fprofile-update.
15368 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15369 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15370 * tree-profile.c (gimple_init_edge_profiler): Generate
15371 also atomic profiler update.
15372 (gimple_gen_edge_profiler): Likewise.
15373
15374 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15375
15376 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15377 stack_usage_file to NULL after fclose calls.
15378
15379 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15380
15381 PR target/71873
15382 * reload.c (push_reload): Compute subreg_in_class for
15383 subregs of constants and plus expressions. Remove special
15384 handling of SYMBOL_REFs.
15385
15386 2016-08-10 Alan Modra <amodra@gmail.com>
15387
15388 PR target/71680
15389 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15390 SImode for TARGET_E500_DOUBLE when given SImode.
15391
15392 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15393
15394 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15395 unused variable __O.
15396
15397 2016-08-09 Martin Liska <mliska@suse.cz>
15398
15399 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15400 _gcov_reset to __gcov_reset.
15401 * doc/gcov-tool.texi: Fix typo.
15402
15403 2016-08-09 Martin Liska <mliska@suse.cz>
15404
15405 * value-prof.c (gimple_divmod_values_to_profile): Do not
15406 instrument MOD histogram if a value is not a SSA name.
15407
15408 2016-08-09 Martin Liska <mliska@suse.cz>
15409
15410 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15411 values.
15412
15413 2016-08-09 Renlin Li <renlin.li@arm.com>
15414
15415 PR middle-end/64971
15416 * calls.c (prepare_call_address): Convert funexp to Pmode when
15417 necessary.
15418 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15419 (sibcall_value): Likewise.
15420
15421 2016-08-09 Marek Polacek <polacek@redhat.com>
15422
15423 PR c/7652
15424 * cselib.c (cselib_expand_value_rtx_1): Add return.
15425 * gengtype.c (dbgprint_count_type_at): Likewise.
15426 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15427 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15428
15429 2016-08-09 Martin Jambor <mjambor@suse.cz>
15430
15431 PR ipa/71981
15432 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15433 if instance is a MEM_REF.
15434
15435 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15436
15437 PR target/72843
15438 * config/i386/i386.md (*movtf_internal): Use
15439 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15440 in the insn constraint.
15441 (*movxf_internal): Ditto.
15442 (*movdf_internal): Ditto.
15443 (*movsf_internal): Ditto.
15444
15445 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15446
15447 PR tree-optimization/72772
15448 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15449 for expanded base.
15450
15451 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15452
15453 PR tree-optimization/72772
15454 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15455 parameter STOP.
15456 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15457 parameter STOP and update calls. Move expand_simple_operations
15458 function call from here...
15459 (simplify_using_initial_conditions): ...to here. Delete parameter
15460 STOP.
15461 (tree_simplify_using_condition): Delete parameter STOP.
15462 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15463 simplify_using_initial_conditions.
15464
15465 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15466
15467 PR c/65345
15468 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15469 Use create_tmp_var_raw instead of create_tmp_var.
15470
15471 2016-08-09 Richard Biener <rguenther@suse.de>
15472
15473 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15474 Treat same SSA names related.
15475
15476 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15477
15478 PR tree-optimization/72824
15479 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15480 real_zerop is not negative.
15481
15482 2016-08-09 Richard Biener <rguenther@suse.de>
15483
15484 PR tree-optimization/71802
15485 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15486 all merge opportunities with the predecessor.
15487
15488 2016-08-09 Richard Biener <rguenther@suse.de>
15489
15490 PR ipa/68273
15491 * ipa-prop.c (ipa_modify_formal_parameters): Build
15492 parameter types with natural alignment also for the
15493 over-aligned case.
15494
15495 2016-08-08 Andi Kleen <ak@linux.intel.com>
15496
15497 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15498
15499 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15500
15501 PR c/64955
15502 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15503 do-nothing langhook.
15504 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15505 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15506 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15507 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15508
15509 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15510
15511 PR bootstrap/72844
15512 * input.c: Ensure that HAVE_ICONV is defined.
15513
15514 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15515
15516 PR middle-end/72781
15517 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15518 private vars for lastprivate and for linear iterator.
15519
15520 PR middle-end/68762
15521 * omp-simd-clone.c: Include varasm.h.
15522 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15523 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15524 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15525 update function name.
15526
15527 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15528
15529 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15530 (avr_diagnose_devicespecs_error): Remove.
15531 (avr_devicespecs_file): Remove composing absolute path for specfile
15532 and its verbose info. Remove conditions to check specs-file,
15533
15534 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15535
15536 PR rtl-optimization/72821
15537 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15538 just return false for them.
15539
15540 2016-08-08 Alan Modra <amodra@gmail.com>
15541
15542 PR target/72771
15543 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15544 toc refs created during reload. Update function comment.
15545
15546 2016-08-08 Alan Modra <amodra@gmail.com>
15547
15548 PR target/72802
15549 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15550 alternatives. Put loads first, then stores, and reg/reg moves
15551 within same class later. Delete attr length.
15552
15553 2016-08-08 Alan Modra <amodra@gmail.com>
15554
15555 PR target/72802
15556 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15557 (mem_operand_ds_form): New predicate.
15558 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15559 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15560 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15561 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15562 (extendsfdf2_fpr): Replace o constraint with wY.
15563
15564 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15565
15566 * tree-ssa-threadbackward.c: Include tree-inline.h
15567 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15568 size of copied block; for cold paths reduce duplication.
15569 (find_jump_threads_backwards): Remove redundant tests.
15570 (pass_thread_jumps::gate): Enable for -Os.
15571
15572 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15573
15574 PR c/72816
15575 * stor-layout.c (layout_decl): Fix up formatting.
15576 (relayout_decl): Allow DECL to be FIELD_DECL.
15577
15578 2016-08-07 Alan Modra <amodra@gmail.com>
15579
15580 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15581
15582 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15583
15584 * data-streamer-in.c (streamer_read_wide_int): New.
15585 (streamer_read_widest_int): Renamed function.
15586 * data-streamer-out.c (streamer_write_wide_int): New
15587 (streamer_write_widest_int): Renamed function.
15588 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15589 data-stream-in.c.
15590 (input_cfg): Call renamed function.
15591 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15592 data-stream-out.c.
15593 (output_cfg): Call renamed function.
15594 * data-streamer.h: Add declarations.
15595
15596 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15597
15598 * tree-ssa-ccp.c (extend_mask): New param sgn.
15599 Remove ORing with wi::mask.
15600 (get_default_value): Adjust call to extend_mask to pass sign.
15601 (evaluate_stmt): Likewise.
15602
15603 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15604
15605 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15606 INT64_MAX.
15607
15608 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15609
15610 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15611 transform if operand's type is pointer to function or method.
15612
15613 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15614
15615 PR tree-optimization/18046
15616 * tree-ssa-threadedge.c: Include cfganal.h.
15617 (simplify_control_statement_condition): If simplifying a
15618 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15619 with the dominating ASSERT_EXPR before handing it off to VRP.
15620 Mention that a CASE_LABEL_EXPR may be returned.
15621 (thread_around_empty_blocks): Adjust to handle
15622 simplify_control_statement_condition() returning a
15623 CASE_LABEL_EXPR.
15624 (thread_through_normal_block): Likewise.
15625 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15626 a switch statement by trying to determine which case label
15627 will be taken.
15628
15629 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15630
15631 PR rtl-optimization/69847
15632 * lra-constraints.c (process_invariant_for_inheritance): Save
15633 pattern instead of src.
15634 (remove_inheritance_pseudos): Use the pattern. Add assert.
15635
15636 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15637
15638 * input.c (string_concat::string_concat): New constructor.
15639 (string_concat_db::string_concat_db): New constructor.
15640 (string_concat_db::record_string_concatenation): New method.
15641 (string_concat_db::get_string_concatenation): New method.
15642 (string_concat_db::get_key_loc): New method.
15643 (class auto_cpp_string_vec): New class.
15644 (get_substring_ranges_for_loc): New function.
15645 (get_source_range_for_substring): New function.
15646 (get_num_source_ranges_for_substring): New function.
15647 (class selftest::lexer_test_options): New class.
15648 (struct selftest::lexer_test): New struct.
15649 (class selftest::ebcdic_execution_charset): New class.
15650 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15651 (selftest::lexer_test::lexer_test): New constructor.
15652 (selftest::lexer_test::~lexer_test): New destructor.
15653 (selftest::lexer_test::get_token): New method.
15654 (selftest::assert_char_at_range): New function.
15655 (ASSERT_CHAR_AT_RANGE): New macro.
15656 (selftest::assert_num_substring_ranges): New function.
15657 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15658 (selftest::assert_has_no_substring_ranges): New function.
15659 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15660 (selftest::test_lexer_string_locations_simple): New function.
15661 (selftest::test_lexer_string_locations_ebcdic): New function.
15662 (selftest::test_lexer_string_locations_hex): New function.
15663 (selftest::test_lexer_string_locations_oct): New function.
15664 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15665 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15666 (selftest::test_lexer_string_locations_ucn4): New function.
15667 (selftest::test_lexer_string_locations_ucn8): New function.
15668 (selftest::uint32_from_big_endian): New function.
15669 (selftest::test_lexer_string_locations_wide_string): New function.
15670 (selftest::uint16_from_big_endian): New function.
15671 (selftest::test_lexer_string_locations_string16): New function.
15672 (selftest::test_lexer_string_locations_string32): New function.
15673 (selftest::test_lexer_string_locations_u8): New function.
15674 (selftest::test_lexer_string_locations_utf8_source): New function.
15675 (selftest::test_lexer_string_locations_concatenation_1): New
15676 function.
15677 (selftest::test_lexer_string_locations_concatenation_2): New
15678 function.
15679 (selftest::test_lexer_string_locations_concatenation_3): New
15680 function.
15681 (selftest::test_lexer_string_locations_macro): New function.
15682 (selftest::test_lexer_string_locations_stringified_macro_argument):
15683 New function.
15684 (selftest::test_lexer_string_locations_non_string): New function.
15685 (selftest::test_lexer_string_locations_long_line): New function.
15686 (selftest::test_lexer_char_constants): New function.
15687 (selftest::input_c_tests): Call the new test functions once per
15688 case within the line_table test matrix.
15689 * input.h (struct string_concat): New struct.
15690 (struct location_hash): New struct.
15691 (class string_concat_db): New class.
15692 * substring-locations.h: New header.
15693
15694 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15695
15696 PR tree-optimization/72810
15697 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15698 the type of the case labels when truncating.
15699
15700 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15701
15702 PR Target/72819
15703 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15704 (aarch64_fp16_ptr_type_node): Likewise.
15705 * config/aarch64/aarch64-simd-builtins.c
15706 (aarch64_fp16_ptr_type_node): Define.
15707 (aarch64_init_fp16_types): New, refactored out of...
15708 (aarch64_init_builtins): ...here, update to call
15709 aarch64_init_fp16_types.
15710 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15711 HFmode.
15712 (aapcs_vfp_sub_candidate): Likewise.
15713
15714 2016-08-05 Martin Liska <mliska@suse.cz>
15715 Joshua Cranmer <Pidgeot18@gmail.com>
15716
15717 * gcov.c (line_t::has_block): New function.
15718 (enum loop_type): New enum.
15719 (handle_cycle): New function.
15720 (unblock): Likewise.
15721 (circuit): Likewise.
15722 (get_cycles_count): Likewise.
15723 (accumulate_line_counts): Use new loop detection algorithm.
15724
15725 2016-08-05 Martin Liska <mliska@suse.cz>
15726
15727 * gcov.c (output_intermediate_file): Rename
15728 function_info::line_next to next_file_fn.
15729 (process_file): Likewise.
15730 (read_graph_file): Likewise.
15731 (accumulate_line_counts): Likewise.
15732 (output_lines): Likewise.
15733
15734 2016-08-05 Richard Biener <rguenther@suse.de>
15735
15736 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15737 restriction on threading to a loop header.
15738
15739 2016-08-05 Richard Biener <rguenther@suse.de>
15740
15741 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15742 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15743 adjust loop info accordingly.
15744
15745 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15746
15747 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15748 before folding call to __builtin_constant_p with parameters to false.
15749
15750 2016-08-05 Alan Modra <amodra@gmail.com>
15751
15752 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15753 code accidentally committed 2016-05-02 providing class when given
15754 NO_REGS.
15755
15756 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15757
15758 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15759 the case label ranges that partially overlap with OP's value
15760 range.
15761
15762 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15763
15764 PR target/72805
15765 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15766 Cast builtin function result to __mmask16 instead of __mmask8.
15767 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15768 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15769 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15770
15771 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15772
15773 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15774 (ASSERT_TRUE_AT): New macro.
15775 (ASSERT_FALSE): Reimplement in terms of...
15776 (ASSERT_FALSE_AT): New macro.
15777 (ASSERT_STREQ_AT): Fix typo in comment.
15778
15779 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15780
15781 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15782 labels are exhaustive, designate the label with the widest
15783 range to be the default label.
15784
15785 2016-08-04 Andrew Pinski <apinski@cavium.com>
15786
15787 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15788 (thunderx_tunings): Use thunderx_vector_cost instead of
15789 generic_vector_cost.
15790
15791 2016-08-04 Martin Liska <mliska@suse.cz>
15792
15793 * gcov.c (main): Fix GNU coding style.
15794 (output_intermediate_file): Likewise.
15795 (process_file): Likewise.
15796 (generate_results): Likewise.
15797 (release_structures): Likewise.
15798 (create_file_names): Likewise.
15799 (find_source): Likewise.
15800 (read_graph_file): Likewise.
15801 (find_exception_blocks): Likewise.
15802 (canonicalize_name): Likewise.
15803 (make_gcov_file_name): Likewise.
15804 (mangle_name): Likewise.
15805 (accumulate_line_counts): Likewise.
15806 (output_branch_count): Likewise.
15807 (read_line): Likewise.
15808
15809 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15810
15811 PR rtl-optimization/71779
15812 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15813 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15814 or if it was truncated.
15815
15816 PR rtl-optimization/70903
15817 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15818
15819 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15820
15821 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15822 accessing SSA_NAME_PTR_INFO.
15823
15824 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15825
15826 PR 70677
15827 * common/config/avr/avr-common.c (avr_option_optimization_table)
15828 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15829
15830 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15831
15832 PR 55181
15833 * config/avr/avr.md: New pattern to work around do_store_flag
15834 generating shift instructions for bit extractions.
15835
15836 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15837
15838 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15839 BITMAP_ALLOC.
15840 (add_equivalence): Likewise.
15841 (get_value_range): Allocate value range with vrp_value_range_pool.
15842 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15843 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15844
15845 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15846
15847 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15848 the default for the rs6000 port.
15849
15850 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15851
15852 PR middle-end/71876
15853 * calls.c (special_function_p): Remove special handling of
15854 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15855 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15856 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15857
15858 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15859
15860 PR middle-end/72778
15861 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15862 Don't stop on regular insns.
15863
15864 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15865
15866 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15867 size to DImode boundary.
15868 (nvptx_propagate): Likewise.
15869
15870 2016-08-03 Alan Modra <amodra@gmail.com>
15871
15872 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15873 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15874 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15875 from -mefficient-unaligned-vector. Note that this affects fp too.
15876
15877 2016-08-03 Alan Modra <amodra@gmail.com>
15878
15879 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15880 cost more.
15881
15882 2016-08-03 Alan Modra <amodra@gmail.com>
15883
15884 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15885 to a reg. Localize vars.
15886
15887 2016-08-03 Alan Modra <amodra@gmail.com>
15888
15889 * config/rs6000/rs6000.opt: Remove negatives from help strings
15890 and comments.
15891
15892 2016-08-03 Alan Modra <amodra@gmail.com>
15893
15894 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15895 Delete duplicated code.
15896
15897 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15898
15899 PR middle-end/72778
15900 * lra-spills.c (regno_in_use_p): New.
15901 (lra_final_code_change): Use it.
15902
15903 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15904
15905 PR rtl-optimization/69847
15906 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15907 restore_regno.
15908 (lra_rtx_hash): New.
15909 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15910 of restore_regno.
15911 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15912 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15913 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15914 next insn is USE with the same reg as the current insn source.
15915 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15916 of restore_regno.
15917 (lra_constraints_init): Call initiate_invariants.
15918 (lra_constraints_finish): Call finish_invariants.
15919 (struct invariant, invariant_t, invariant_ptr_t): New.
15920 (const_invariant_ptr_t, invariants, invariants_pool): New.
15921 (invariant_table, invariant_hash, invariant_eq_p): New.
15922 (insert_invariant, initiate_invariants, finish_invariants): New.
15923 (clear_invariants, invalid_invariant_regs): New.
15924 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15925 instead of restore_regno.
15926 (invariant_p, process_invariant_for_inheritance): New.
15927 (inherit_in_ebb): Implement invariant inheritance.
15928 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15929 (remove_inheritance_pseudos): Implement undoing invariant
15930 inheritance.
15931 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15932 instead of restore_regno.
15933 * lra-assigns.c (regno_live_length): New.
15934 (reload_pseudo_compare_func): Use regno_live_length.
15935 (assign_by_spills): Use restore_rtx instead of restore_regno.
15936 (lra_assign): Ditto. Initiate regno_live_length.
15937
15938 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15939
15940 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15941 __builtin_aarch64_fmindf.
15942
15943 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15944
15945 PR tree-optimization/34114
15946 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15947 information for more control IVs.
15948
15949 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15950
15951 PR tree-optimization/34114
15952 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15953 PLUS_EXPR case. Handle SSA_NAME case.
15954
15955 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15956
15957 * config/aarch64/aarch64-simd-builtins.def
15958 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15959 (__builtin_aarch64_fmaxdf): Likewise.
15960 (__builtin_aarch64_smin_nandf): Likewise.
15961 (__builtin_aarch64_smax_nandf): Likewise.
15962 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15963 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15964 (<fmaxmin><mode>3): ...this.
15965 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15966 (vminnm_f64): Likewise.
15967 (vmin_f64): Likewise.
15968 (vmax_f64): Likewise.
15969 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15970 (FMAXMIN_UNS): ...this.
15971 (fmaxmin): Merged with
15972 (fmaxmin_op): ...this...
15973 (maxmin_uns_op): ...in to this.
15974
15975 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15976
15977 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15978 Add support for vec_extract on vector float, vector int, vector
15979 short, and vector char vector types.
15980 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15981 vector float, vector int, vector short, and vector char
15982 optimizations on 64-bit ISA 2.07 systems for both constant and
15983 variable element numbers.
15984 (rs6000_split_vec_extract_var): Likewise.
15985 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15986 Altivec registers on ISA 2.07 and above.
15987 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15988 which never was matched due to the split occuring before register
15989 allocation (and the code would not have worked on little endian
15990 systems if it did match). Allow extracts to go to the Altivec
15991 registers if ISA 2.07 (power8). Change from using "" around the
15992 C++ code to using {}'s.
15993 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15994 vec_extracts when the vector is in memory.
15995 (vsx_extract_v4sf_var): New insn to optimize vector float
15996 vec_extracts when the element number is variable on 64-bit ISA
15997 2.07 systems.
15998 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15999 for 64-bit ISA 2.07 as well as ISA 3.0.
16000 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16001 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16002 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16003 optimize vector int, vector short, and vector char vec_extracts
16004 when the vector is in memory.
16005 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16006 optimize vector int, vector short, and vector char vec_extracts
16007 when the element number is variable.
16008
16009 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16010
16011 PR target/71948
16012 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16013 does not overlap with other symbol flags.
16014
16015 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16016
16017 * config/aarch64/aarch64.h (aarch64_frame):
16018 Remove padding0 and hardfp_offset. Add locals_offset,
16019 initial_adjust, callee_adjust, callee_offset and final_adjust.
16020 * config/aarch64/aarch64.c (aarch64_layout_frame):
16021 Remove unused padding0 and hardfp_offset initializations.
16022 Choose frame layout and set frame variables accordingly.
16023 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16024 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16025 (aarch64_pop_regs): Likewise.
16026 (aarch64_expand_prologue): Remove all decision code, just emit
16027 prolog according to frame variables.
16028 (aarch64_expand_epilogue): Remove all decision code, just emit
16029 epilog according to frame variables.
16030 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16031
16032 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16033
16034 PR target/72748
16035 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16036 fix_debug_reg_uses after changing source register mode to
16037 V1TImode if source register is undefined.
16038
16039 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16040
16041 PR tree-optimization/71818
16042 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16043 with non invariant evolutions
16044
16045 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16046
16047 PR target/72767
16048 * config/avr/avr.md (length) [branch]: Correct insn length
16049 attribute for forward branches.
16050
16051 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16052
16053 * doc/extend.texi (AVR Built-in Functions): Document
16054 __builtin_avr_nops.
16055 * config/avr/builtins.def (NOPS): New.
16056 * config/avr/avr.c (avr_expand_nops): New static function.
16057 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16058
16059 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16060
16061 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16062 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16063 addresses.
16064
16065 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16066
16067 * config/aarch64/aarch64.c (vulcan_tunings): Update
16068 vulcan L1 cache_line_size.
16069
16070 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16071
16072 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16073 function that takes a vector memory address, a hard register, an
16074 element number and a temporary base register, and recreates an
16075 address that points to the appropriate element within the vector.
16076 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16077 (rs6000_split_vec_extract_var): Add support for the target of a
16078 vec_extract with variable element number being a scalar memory
16079 location.
16080 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16081 swappable.
16082 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16083 vsx_extract_<mode>_load insn with a new insn that optimizes
16084 storing either element to a memory location, using scratch
16085 registers to pick apart the vector and reconstruct the address.
16086 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16087 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16088 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16089 store instruction.
16090 (vsx_extract_<mode>_var): Add support for extracting a variable
16091 element number from memory.
16092
16093 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16094
16095 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16096 when testing for compares against constants of the form 0xabab.
16097
16098 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16099
16100 PR tree-optimization/57558
16101 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16102 function.
16103 (vect_loop_versioning): Support versioning with niter assumptions.
16104 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16105 (vect_get_loop_niters): New parameter. Reimplement to support
16106 assumptions in loop niter info.
16107 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16108 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16109 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16110 Support loop versioning for niters.
16111 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16112 (vect_free_loop_info_assumptions): New function.
16113 (vectorize_loops): Free loop niter info for loops with flag
16114 LOOP_F_ASSUMPTIONS set if vectorization failed.
16115 * tree-vectorizer.h (struct _loop_vec_info): New field
16116 num_iters_assumptions.
16117 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16118 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16119 (LOOP_REQUIRES_VERSIONING): New macro.
16120 (vect_free_loop_info_assumptions): New decl.
16121
16122 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16123
16124 * cfgloop.h (struct loop): New field constraints.
16125 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16126 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16127 functions.
16128 * cfgloop.c (alloc_loop): Initialize new field.
16129 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16130 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16131 Adjust niter analysis wrto loop constraints.
16132 * doc/loop.texi (@node Number of iterations): Add description for loop
16133 constraints.
16134
16135 2016-07-29 Marek Polacek <polacek@redhat.com>
16136
16137 PR c/7652
16138 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16139 (ix86_expand_round_builtin): Likewise.
16140
16141 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16142 Georg-Johann Lay <avr@gjlay.de>
16143
16144 PR rtl-optimization/71976
16145 * combine.c (get_last_value): Return 0 if the argument for which
16146 the function is called has a wider mode than the recorded value.
16147
16148 2016-07-29 Marek Polacek <polacek@redhat.com>
16149
16150 PR c/7652
16151 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16152 (altivec_expand_st_builtin): Likewise.
16153
16154 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16155
16156 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16157 introduced in r238381.
16158
16159 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16160
16161 PR middle-end/68217
16162 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16163 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16164
16165 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16166
16167 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16168 New declaration.
16169 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16170 Add support for vec_extract of vector double or vector long having
16171 a variable element number on 64-bit ISA 2.07 systems or newer.
16172 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16173 Likewise.
16174 (rs6000_split_vec_extract_var): New function to split a
16175 vec_extract built-in function with variable element number.
16176 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16177 swappable.
16178 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16179 (UNSPEC_VSX_EXTRACT): Likewise.
16180 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16181 direct move instructions to be generated on 64-bit ISA 2.07
16182 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16183 instruction.
16184 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16185 arguments for vec_extract variable element.
16186 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16187 vec_extract with variable element on V2DFmode and V2DImode
16188 vectors.
16189 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16190 -mupper-regs-df requirement, since it isn't needed.
16191 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16192 do direct moves on 64-bit systems, which allows optimization of
16193 vec_extract on 64-bit ISA 2.07 systems and newer.
16194
16195 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16196 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16197
16198 * config/aarch64/aarch64.md
16199 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16200 statement and type.
16201 (<optab>qihi2_aarch64): Likewise, and split into two.
16202 (extendqihi2_aarch64): New.
16203 (zero_extendqihi2_aarch64): New.
16204 * config/aarch64/iterators.md (ldrxt): Remove.
16205 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16206 uxtb/uxth.
16207
16208 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16209
16210 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16211
16212 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16213
16214 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16215 (aarch64_push_reg): New function to push 1 or 2 registers.
16216 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16217 (aarch64_expand_prologue): Use aarch64_push_regs.
16218 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16219
16220 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16221
16222 PR tree-optimization/71734
16223 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16224 attribute instead of REF_LOOP and use it.
16225 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16226 set it for Loops having non-zero safelen attribute.
16227 (ref_indep_loop_p): Pass zero as initial value for safelen.
16228
16229 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16230
16231 PR middle-end/72657
16232 PR target/72683
16233 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16234 call using chkp_gimple_call_builtin_p.
16235 (chkp_copy_bounds_for_assign): Likewise.
16236
16237 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16238
16239 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16240 * config/arm/arm-protos.h (struct tune_params): Likewise.
16241 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16242 (cortex_a9_sched_adjust_cost): Likewise.
16243 (fa726te_sched_adjust_cost): Likewise.
16244 (arm_adjust_cost): Likewise.
16245 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16246 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16247 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16248 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16249 * config/ia64/ia64.c: Likewise.
16250 * config/m68k/m68k.c: Likewise.
16251 * config/mep/mep.c (mep_adjust_cost): Likewise.
16252 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16253 * Likewise.
16254 * config/mips/mips.c (mips_adjust_cost): Likewise.
16255 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16256 * Likewise.
16257 * config/pa/pa.c (pa_adjust_cost): Likewise.
16258 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16259 (rs6000_debug_adjust_cost): Likewise.
16260 * config/sh/sh.c (sh_adjust_cost): Likewise.
16261 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16262 (hypersparc_adjust_cost): Likewise.
16263 (sparc_adjust_cost): Likewise.
16264 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16265 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16266 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16267 * Likewise.
16268 * config/visium/visium.c (visium_adjust_cost): Likewise.
16269 * doc/tm.texi: Regenerate.
16270 * haifa-sched.c (dep_cost_1): Adjust.
16271 * target.def: Merge adjust_cost and adjust_cost_2.
16272
16273 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16274
16275 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16276
16277 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16278
16279 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16280 (extract_mentioned_regs): Append to a vector instead of
16281 returning a rtx_expr_list.
16282 (st_expr_entry): Adjust.
16283 (free_st_expr_entry): Likewise.
16284 (store_ops_ok): Likewise.
16285 (store_killed_in_insn): Likewise.
16286 (find_moveable_store): Likewise.
16287
16288 2016-07-28 Martin Liska <mliska@suse.cz>
16289
16290 PR gcov-profile/68025
16291 * tree-profile.c (tree_profiling): Respect
16292 no_profile_instrument_function attribute.
16293 * doc/extend.texi: Document no_profile_instrument_function
16294 attribute.
16295
16296 2016-07-28 Martin Liska <mliska@suse.cz>
16297
16298 PR rtl-optimization/70944
16299 * combine.c (make_compound_operation):
16300 Do not allow make_compound_operation for vector mode
16301
16302 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16303
16304 PR middle-end/71994
16305 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16306 before calling get_ops.
16307
16308 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16309
16310 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16311 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16312 (BITS_PER_UNIT_LOG): Remove.
16313 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16314 * expr.c (expand_assignment): Likewise.
16315 * stor-layout.c (initialize_sizetypes): Likewise.
16316
16317 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16318
16319 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16320 signature of rs6000_expand_vector_extract so that the element
16321 number is a RTX instead of a constant integer.
16322 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16323 Likewise.
16324 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16325 (altivec_expand_vec_ext_builtin): Likewise.
16326 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16327 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16328 MFVSRLD instruction.
16329
16330 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16331
16332 * input.c (get_pure_location): Move here from tree.c.
16333 (make_location): Likewise. Add header comment.
16334 (selftest::test_accessing_ordinary_linemaps): Verify
16335 pure_location_p, make_location, get_location_from_adhoc_loc and
16336 get_range_from_loc.
16337 * input.h (get_pure_location): Move declaration here from tree.h.
16338 (get_finish): Likewise for inline function.
16339 (make_location): Likewise for declaration.
16340 * tree.c (get_pure_location): Move to input.c.
16341 (make_location): Likewise.
16342 * tree.h (get_pure_location): Move declaration to tree.h.
16343 (get_finish): Likewise for inline function.
16344 (make_location): Likewise for declaration.
16345
16346 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16347
16348 PR middle-end/71078
16349 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16350
16351 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16352
16353 * system.h (STATIC_ASSERT): Use static_assert if building
16354 with C++11 onwards.
16355
16356 2016-07-27 Richard Biener <rguenther@suse.de>
16357
16358 PR tree-optimization/72517
16359 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16360 Revert change to not compute read-read dependences.
16361
16362 2016-07-27 Richard Biener <rguenther@suse.de>
16363
16364 * predict.c (set_even_probabilities): Make nedges unsigned.
16365
16366 2016-07-27 Martin Liska <mliska@suse.cz>
16367
16368 * predict.c (set_even_probabilities): Handle unlikely edges.
16369 (combine_predictions_for_bb): Likewise.
16370
16371 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16372
16373 PR target/71869
16374 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16375 __float128 support when we don't have hardware support, so that
16376 the IEEE built-in functions like isgreater, first call __unordkf3
16377 to make sure neither operand is a NaN, and if both operands are
16378 ordered, do the normal comparison.
16379
16380 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16381
16382 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16383 name.
16384 (extract_code_and_val_from_cond_with_ops): Verify that name is
16385 either cond_op0 or cond_op1.
16386
16387 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16388
16389 PR tree-optimization/18046
16390 * genmodes.c (emit_mode_size_inline): Emit an assert that
16391 verifies that mode is a valid array index.
16392 (emit_mode_nuinits_inline): Likewise.
16393 (emit_mode_inner_inline): Likewise.
16394 (emit_mode_unit_size_inline): Likewise.
16395 (emit_mode_unit_precision_inline): Likewise.
16396 * tree-vrp.c: Include params.h.
16397 (find_switch_asserts): Register edge assertions for the default
16398 label which correspond to the anti-ranges of each case label.
16399 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16400 * doc/invoke.texi: Document it.
16401
16402 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16403
16404 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16405 and unnecessary call to gimple_bb.
16406
16407 2016-07-26 Richard Biener <rguenther@suse.de>
16408
16409 PR rtl-optimization/71984
16410 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16411 for VOIDmode.
16412
16413 2016-07-26 Richard Biener <rguenther@suse.de>
16414
16415 PR middle-end/72517
16416 * expmed.c (extract_bit_field_1): Constrain the vector mode
16417 with element size matching the extraction mode size when
16418 choosing a better vector mode to do the extraction from.
16419
16420 2016-07-26 Richard Biener <rguenther@suse.de>
16421 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16422
16423 PR middle-end/70920
16424 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16425 pattern.
16426
16427 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16428
16429 * tree-ssa-structalias.c (struct scc_info): Change types of
16430 members to auto_sbitmap and auto_vec.
16431 (scc_info::scc_info): New constructor.
16432 (scc_info::~scc_info): New destructor.
16433 (init_scc_info): Remove.
16434 (free_scc_info): Remove.
16435 (find_indirect_cycles): Adjust.
16436 (perform_var_substitution): Likewise.
16437 (free_var_substitution_info): Likewise.
16438
16439 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16440
16441 * tree-outof-ssa.c (struct elim_graph): Change type of members
16442 to auto_vec and auto_sbitmap.
16443 (elim_graph::elim_graph): New constructor.
16444 (delete_elim_graph): Remove.
16445 (expand_phi_nodes): Adjust.
16446
16447 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16448
16449 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16450 (new_elim_graph): Adjust.
16451 (clear_elim_graph): Likewise.
16452 (delete_elim_graph): Likewise.
16453 (elim_graph_size): Likewise.
16454 (elim_graph_add_node): Likewise.
16455 (elim_graph_add_edge): Likewise.
16456 (elim_graph_remove_succ_edge): Likewise.
16457 (eliminate_name): Likewise.
16458 (eliminate_build): Likewise.
16459 (elim_forward): Likewise.
16460 (elim_unvisited_predecessor): Likewise.
16461 (elim_backward): Likewise.
16462 (elim_create): Likewise.
16463 (eliminate_phi): Likewise.
16464 (expand_phi_nodes): Likewise.
16465
16466 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16467
16468 * bt-load.c (compute_out): Use auto_sbitmap class.
16469 (link_btr_uses): Likewise.
16470 * cfganal.c (mark_dfs_back_edges): Likewise.
16471 (post_order_compute): Likewise.
16472 (inverted_post_order_compute): Likewise.
16473 (pre_and_rev_post_order_compute_fn): Likewise.
16474 (single_pred_before_succ_order): Likewise.
16475 * cfgexpand.c (pass_expand::execute): Likewise.
16476 * cfgloop.c (verify_loop_structure): Likewise.
16477 * cfgloopmanip.c (fix_bb_placements): Likewise.
16478 (remove_path): Likewise.
16479 (update_dominators_in_loop): Likewise.
16480 * cfgrtl.c (break_superblocks): Likewise.
16481 * ddg.c (check_sccs): Likewise.
16482 (create_ddg_all_sccs): Likewise.
16483 * df-core.c (df_worklist_dataflow): Likewise.
16484 * dse.c (dse_step3): Likewise.
16485 * except.c (eh_region_outermost): Likewise.
16486 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16487 * gcse.c (prune_expressions): Likewise.
16488 (prune_insertions_deletions): Likewise.
16489 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16490 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16491 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16492 * lcm.c (compute_earliest): Likewise.
16493 (compute_farthest): Likewise.
16494 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16495 (unroll_loop_runtime_iterations): Likewise.
16496 (unroll_loop_stupid): Likewise.
16497 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16498 * lra-lives.c: Likewise.
16499 * lra.c (lra): Likewise.
16500 * modulo-sched.c (schedule_reg_moves): Likewise.
16501 (optimize_sc): Likewise.
16502 (get_sched_window): Likewise.
16503 (sms_schedule_by_order): Likewise.
16504 (check_nodes_order): Likewise.
16505 (order_nodes_of_sccs): Likewise.
16506 (order_nodes_in_scc): Likewise.
16507 * recog.c (split_all_insns): Likewise.
16508 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16509 * reload1.c (reload): Likewise.
16510 * sched-rgn.c (haifa_find_rgns): Likewise.
16511 (split_edges): Likewise.
16512 (compute_trg_info): Likewise.
16513 * sel-sched.c (init_seqno): Likewise.
16514 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16515 * tree-into-ssa.c (update_ssa): Likewise.
16516 * tree-ssa-live.c (live_worklist): Likewise.
16517 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16518 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16519 * Likewise.
16520 (try_peel_loop): Likewise.
16521 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16522 * Likewise.
16523 * tree-ssa-pre.c (compute_antic): Likewise.
16524 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16525 * tree-stdarg.c (reachable_at_most_once): Likewise.
16526 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16527 * var-tracking.c (vt_find_locations): Likewise.
16528
16529 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16530
16531 * sbitmap.h (auto_sbitmap): New class.
16532
16533 2016-07-26 Alan Modra <amodra@gmail.com>
16534
16535 PR target/72103
16536 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16537 sri->t_icode.
16538
16539 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16540
16541 * input.c (selftest::temp_source_file::temp_source_file): Fix
16542 missing "%s" in fprintf.
16543
16544 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16545
16546 PR middle-end/71732
16547 * cselib.c (cselib_process_insn): Invalidate argument slots for
16548 const/pure calls.
16549
16550 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16551
16552 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16553 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16554 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16555
16556 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16557
16558 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16559 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16560 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16561
16562 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16563
16564 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16565 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16566 New.
16567 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16568 (add<mode>3): Likewise.
16569 (sub<mode>3): Likewise.
16570 (mul<mode>3): Likewise.
16571 (div<mode>3): Likewise.
16572 (*div<mode>3): Likewise.
16573 (<fmaxmin><mode>3): Extend to HF.
16574 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16575 (fabd<mode>3): Likewise.
16576 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16577 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16578 (aarch64_fmulx<mode>): Likewise.
16579 (aarch64_fac<optab><mode>): Likewise.
16580 (aarch64_frecps<mode>): Likewise.
16581 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16582 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16583 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16584 (VSDQ_HSDI): Support HI.
16585 (fcvt_target, FCVT_TARGET): Likewise.
16586 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16587 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16588 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16589 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16590 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16591 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16592 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16593 vrsqrtsh_f16): New.
16594
16595 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16596
16597 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16598 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16599 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16600 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16601 mode.
16602 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16603 (aarch64_cm<optab><mode>): Likewise.
16604 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16605 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16606 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16607 (sqrt<mode>2): Likewise.
16608 (*sqrt<mode>2): Likewise.
16609 (abs<mode>2): Likewise.
16610 (<optab><mode>hf2): New pattern for HF mode.
16611 (<optab>hihf2): Likewise.
16612 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16613 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16614 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16615 Support HF mode.
16616 * config/aarch64/arm_fp16.h: New file.
16617 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16618 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16619 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16620 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16621 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16622 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16623 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16624 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16625 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16626 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16627 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16628 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16629 vsqrth_f16): New.
16630
16631 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16632
16633 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16634 reduc_smin_scal_): Use VDQIF_F16.
16635 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16636 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16637 Use VHSDF.
16638 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16639 * config/aarch64/iterators.md (VDQIF_F16): New.
16640 (vp): Support HF modes.
16641 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16642 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16643
16644 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16645
16646 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16647 "*aarch64_mulx_elt_from_dup<mode>".
16648 (*aarch64_mul3_elt<mode>): Update schedule type.
16649 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16650 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16651 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16652 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16653 (f, fp): Support HF modes.
16654 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16655 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16656 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16657 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16658 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16659 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16660
16661 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16662
16663 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16664 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16665 modes.
16666 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16667 vfmsq_f16): New.
16668
16669 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16670
16671 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16672 * config/aarch64/aarch64-simd.md
16673 (aarch64_rsqrts<mode>): Extend to HF modes.
16674 (fabd<mode>3): Likewise.
16675 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16676 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16677 (aarch64_<maxmin_uns>p<mode>): Likewise.
16678 (<su><maxmin><mode>3): Likewise.
16679 (<maxmin_uns><mode>3): Likewise.
16680 (<fmaxmin><mode>3): Likewise.
16681 (aarch64_faddp<mode>): Likewise.
16682 (aarch64_fmulx<mode>): Likewise.
16683 (aarch64_frecps<mode>): Likewise.
16684 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16685 (add<mode>3): Extend to HF modes.
16686 (sub<mode>3): Likewise.
16687 (mul<mode>3): Likewise.
16688 (div<mode>3): Likewise.
16689 (*div<mode>3): Likewise.
16690 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16691 HF, V4HF and V8HF.
16692 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16693 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16694 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16695 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16696 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16697 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16698 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16699 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16700 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16701 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16702 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16703 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16704 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16705 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16706
16707 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16708
16709 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16710 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16711 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16712 (neg<mode>2): Likewise.
16713 (abs<mode>2): Likewise.
16714 (<frint_pattern><mode>2): Likewise.
16715 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16716 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16717 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16718 (ftrunc<VDQF:mode>2): Likewise.
16719 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16720 (sqrt<mode>2): Likewise.
16721 (*sqrt<mode>2): Likewise.
16722 (aarch64_frecpe<mode>): Likewise.
16723 (aarch64_cm<optab><mode>): Likewise.
16724 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16725 HF, V4HF and V8HF.
16726 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16727 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16728 (stype): New.
16729 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16730 (vdupq_n_f16): Likewise.
16731 (vld1_dup_f16): Use vdup_n_f16.
16732 (vld1q_dup_f16): Use vdupq_n_f16.
16733 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16734 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16735 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16736 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16737 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16738 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16739 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16740 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16741 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16742 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16743 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16744 vsqrt_f16, vsqrtq_f16): New.
16745
16746 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16747
16748 * config/aarch64/aarch64-simd.md
16749 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16750 (aarch64_ext<mode>): Likewise.
16751 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16752 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16753 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16754 and V8HFmode.
16755 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16756 float16x8_t.
16757 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16758 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16759 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16760 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16761 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16762 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16763 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16764 New.
16765 (vmov_n_f16): Reimplement using vdup_n_f16.
16766 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16767
16768 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16769
16770 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16771 "frame_related_p". Generate CFA annotation when it's necessary.
16772 (aarch64_expand_prologue): Use aarch64_add_constant.
16773 (aarch64_expand_epilogue): Likewise.
16774 (aarch64_output_mi_thunk): Pass "false" when calling
16775 aarch64_add_constant.
16776
16777 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16778
16779 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16780 sequences.
16781
16782 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16783
16784 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16785 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16786 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16787 (aarch64_build_constant): Delete.
16788
16789 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16790
16791 Revert
16792 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16793
16794 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16795 flag_toplevel_reorder.
16796
16797 2016-07-25 Richard Biener <rguenther@suse.de>
16798
16799 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16800 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16801 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16802 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16803 (streamer_get_builtin_tree): Likewise.
16804 (streamer_write_builtin): Likewise.
16805 * lto-streamer.h (LTO_builtin_decl): Remove.
16806 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16807 (lto_input_scc): Remove LTO_builtin_decl handling.
16808 (lto_input_tree_1): Liekwise.
16809 * lto-streamer-out.c (lto_output_tree_1): Remove special
16810 handling of builtins.
16811 (DFS::DFS): Likewise.
16812 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16813 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16814 assert.
16815 (streamer_write_builtin): Remove.
16816
16817 2016-07-25 Martin Liska <mliska@suse.cz>
16818
16819 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16820 if flag_auto_profile is set to true.
16821
16822 2016-07-25 Martin Liska <mliska@suse.cz>
16823
16824 PR gcov-profile/71868
16825 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16826 have a function with multiple latches, count them all.
16827
16828 2016-07-25 Martin Liska <mliska@suse.cz>
16829
16830 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16831
16832 2016-07-25 Martin Liska <mliska@suse.cz>
16833
16834 PR tree-optimization/71987
16835 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16836 just for SSA_NAMEs. Fix GNU coding style.
16837
16838 2016-07-25 Martin Liska <mliska@suse.cz>
16839
16840 PR gcov-profile/64874
16841 * gcov-io.h: Update command about file format.
16842 * gcov-iov.c (main): Adapt the numbering scheme.
16843
16844 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16845
16846 PR middle-end/66726
16847 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16848 whose result is used in PHI.
16849 (final_range_test_p): Likewise.
16850 (maybe_optimize_range_tests): Likewise.
16851
16852 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16853
16854 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16855 Reformat two multi-line strings.
16856
16857 2016-07-22 Martin Sebor <msebor@redhat.com>
16858
16859 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16860
16861 2016-07-22 Martin Sebor <msebor@redhat.com>
16862
16863 PR c/71560
16864 * doc/extend.texi (Compound Literals): Correct and clarify.
16865 (Cast to Union): Same.
16866
16867 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16868
16869 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16870 comments to explain why certain error messages make mention of
16871 undocumented options.
16872 (rs6000_invalid_builtin): Change error messages to replace mention
16873 of undocumented options with mention of the -mcpu=power9 option
16874 that enables those undocumented options.
16875 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16876 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16877 definition of this macro to correct an existing error.
16878 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16879 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16880 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16881 descriptions of built-in functions so that they depend on
16882 -mcpu=power9 instead of on the corresponding undocumented flags.
16883 * doc/invoke.texi (Option Summary): Remove all mention of newly
16884 undocumented flags.
16885 (IBM RS/6000 and PowerPC Options): Likewise.
16886 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16887 mention of newly undocumented flags.
16888
16889 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16890
16891 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16892 when target_clones attribute is set.
16893
16894 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16895
16896 * common.opt (funsafe-loop-optimizations): Mark ignore.
16897 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16898 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16899 related code.
16900 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16901 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16902
16903 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16904
16905 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16906 Parameter.
16907 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16908 Parameter.
16909 (number_of_iterations_exit): Warn missed loop optimization for
16910 possible infinite loops.
16911
16912 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16913
16914 PR target/71216
16915 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16916 when to emit a ".machine" pseudo-op.
16917
16918 2016-07-22 Martin Liska <mliska@suse.cz>
16919
16920 PR gcov-profile/69028
16921 PR gcov-profile/62047
16922 * coverage.c (coverage_compute_lineno_checksum): Do not
16923 calculate checksum for fns w/o xloc.file.
16924 (coverage_compute_profile_id): Likewise.
16925
16926 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16927
16928 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16929 (avr_secondary_reload): ...and implementation.
16930 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16931 * config/avr/avr.md (reload_in<mode>): Remove insns.
16932 (adjust_len) [lpm]: Remove insn attribute value.
16933 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16934
16935 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16936
16937 PR middle-end/71876
16938 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16939 attribute.
16940 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16941 * calls.c (special_function_p): Remove the special handling of the
16942 "__builtin_" prefix.
16943
16944 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16945
16946 PR middle-end/71876
16947 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16948 if STMT may be an alloca call.
16949 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16950 builtin alloca call.
16951 * calls.h (gimple_maybe_alloca_call_p): New function.
16952 * tree-inline.c (inline_forbidden_p_stmt): Use
16953 gimple_maybe_alloca_call_p here.
16954
16955 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16956
16957 * spellcheck-tree.c (best_macro_match::best_macro_match):
16958 Explictly specify the template arguments when invoking the base
16959 class constructor, to help older C++ compilers.
16960
16961 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16962
16963 PR sanitizer/71953
16964 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16965 before builtin_decl_implicit.
16966
16967 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16968
16969 * optabs.c (emit_condiitonal_move): Short circuit for identical
16970 sources.
16971
16972 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16973
16974 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16975 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16976 (noce_conversion_profitable_p): New.
16977 (noce_try_store_flag_constants): Use it.
16978 (noce_try_addcc): Likewise.
16979 (noce_try_store_flag_mask): Likewise.
16980 (noce_try_cmove): Likewise.
16981 (noce_try_cmove_arith): Likewise.
16982 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16983 overwriting it.
16984 (noce_convert_multiple_sets): Move cost model to here, from...
16985 (bb_ok_for_noce_convert_multiple_sets) ...here.
16986 (noce_process_if_block): Update calls for above changes.
16987 (noce_find_if_block): Record new noce_if_info parameters.
16988
16989 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16990
16991 * target.def (max_noce_ifcvt_seq_cost): New.
16992 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16993 * doc/tm.texi: Regenerate.
16994 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16995 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16996 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16997 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16998 * doc/invoke.texi: Document new params.
16999
17000 2016-07-21 Richard Biener <rguenther@suse.de>
17001
17002 PR tree-optimization/71947
17003 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17004 ranges have useful limit_vr information.
17005
17006 2016-07-21 Richard Biener <rguenther@suse.de>
17007
17008 * function-tests.c (build_trivial_generic_function): Set
17009 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17010 * omp-low.c (create_omp_child_function): Likewise.
17011 (grid_expand_target_grid_body): Likewise.
17012 * cgraphunit.c (init_lowered_empty_function): Likewise.
17013 (cgraph_node::expand_thunk): Likewise.
17014 * tree-parloops.c (create_loop_fn): Likewise.
17015 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17016
17017 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17018
17019 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17020 in comment.
17021
17022 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17023
17024 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17025 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17026 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17027 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17028 values for insn attribute.
17029 * config/avr/avr.c (avr_out_insert_notbit): New function.
17030 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17031 ADJUST_LEN_INSV_NOTBIT_0/_7.
17032 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17033
17034 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17035
17036 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17037 (chrec_convert_1, chrec_convert): Ditto.
17038 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17039 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17040 * tree-vrp.c (adjust_range_with_scev): Ditto.
17041 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17042 (scev_var_range_cant_overflow): New function.
17043 (scev_probably_wraps_p): New parameter. Call above function.
17044 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17045
17046 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17047
17048 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17049 by removing computation of may_be_zero.
17050
17051 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17052
17053 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17054
17055 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17056
17057 Improving concepts performance and diagnostics.
17058 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17059 for constraint satisfaction and subsumption.
17060 * timevar.h (auto_timevar): New constructor that matches the push/pop
17061 pattern of usage in pt.c.
17062
17063 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17064
17065 * hwint.h (HOST_WIDE_INT_0): New define.
17066 (HOST_WIDE_INT_0U): Ditto.
17067 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17068 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17069 * simplify-rtx.c: Ditto.
17070 * tree-object-size.c: Ditto.
17071
17072 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17073
17074 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17075 check.
17076
17077 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17078
17079 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17080 * combine.c: Use HOST_WIDE_INT_M1U instead of
17081 ~(unsigned HOST_WIDE_INT) 0.
17082 * double-int.h: Ditto.
17083 * dse.c: Ditto.
17084 * dwarf2asm.c:Ditto.
17085 * expmed.c: Ditto.
17086 * genmodes.c: Ditto.
17087 * match.pd: Ditto.
17088 * read-rtl.c: Ditto.
17089 * tree-ssa-loop-ivopts.c: Ditto.
17090 * tree-ssa-loop-prefetch.c: Ditto.
17091 * tree-vect-generic.c: Ditto.
17092 * tree-vect-patterns.c: Ditto.
17093 * tree.c: Ditto.
17094
17095 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17096
17097 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17098 constant addresses outside [0,0xc0] into a register.
17099 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17100 cases where the base address register is unused after.
17101 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17102 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17103 (avr_out_store_psi_reg_disp_tiny): Same.
17104
17105 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17106
17107 Implement attribute progmem on reduced Tiny cores by adding
17108 flash offset 0x4000 to respective symbols.
17109
17110 PR target/71948
17111 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17112 documentation how it works on reduced Tiny cores.
17113 (AVR Named Address Spaces): No support for reduced Tiny.
17114 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17115 (avr_address_tiny_pm_p): New static function.
17116 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17117 if the address is in progmem.
17118 (avr_assemble_integer): Same.
17119 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17120 for symbol_ref in progmem.
17121 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17122 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17123 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17124
17125 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17126
17127 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17128 * configure: Regenerate.
17129 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17130 (USE_THIN_ARCHIVES): New variable.
17131 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17132 this archive as a thin archive.
17133
17134 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17135
17136 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17137 same location as last time, don't skip if we have fix-it hints.
17138 Clarify the skipping logic by converting it from one "if" clause
17139 to repeated "if" clauses.
17140 * spellcheck-tree.c: Include "cpplib.h".
17141 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17142 (best_macro_match::best_macro_match): New constructor.
17143 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17144 Move here from c/c-decl.c.
17145 (class best_macro_match): Move here from c/c-decl.c, converting
17146 from a typedef to a subclass, gaining a ctor.
17147
17148 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17149
17150 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17151 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17152 define...
17153 (avr_addr_space_diagnose_usage): ...and implementation.
17154 (avr_addr_space_supported_p): New function.
17155 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17156 report bad address space usage if that space is supported.
17157 (avr_insert_attributes): Same. No more complain about unsupported
17158 address spaces.
17159 * config/avr/avr-c.c (tm_p.h): Include it.
17160 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17161 macro if avr_addr_space_supported_p.
17162
17163 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17164
17165 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17166 flag_toplevel_reorder.
17167
17168 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17169
17170 * gcc-rich-location.c
17171 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17172 a const char *.
17173 * gcc-rich-location.h
17174 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17175
17176 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17177
17178 * target.def (addr_space): Add new diagnose_usage to hook vector.
17179 * targhooks.c (default_addr_space_diagnose_usage): Add default
17180 implementation and...
17181 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17182 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17183 is some address space, call targetm.addr_space.diagnose_usage.
17184 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17185 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17186 * doc/tm.texi: Regenerate.
17187
17188 2016-07-20 Martin Liska <mliska@suse.cz>
17189
17190 PR middle-end/71898
17191 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17192 Properly handly PHI stmts.
17193
17194 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17195
17196 PR tree-optimization/71503
17197 PR tree-optimization/71683
17198 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17199 and break.
17200
17201 2016-07-20 Martin Liska <mliska@suse.cz>
17202
17203 * doc/invoke.texi (-fipa-ra): Document when the option is
17204 disabled. Fix a typo.
17205
17206 2016-07-20 Martin Liska <mliska@suse.cz>
17207
17208 * Makefile.in: Include fibonacci_heap.c
17209 * fibonacci_heap.c: New file.
17210 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17211 (fibonacci_heap::union_with): Fix deletion of the second heap.
17212 * selftest-run-tests.c (selftest::run_tests): Incorporate
17213 fibonacci heap tests.
17214 * selftest.h: Declare fibonacci_heap_c_tests.
17215
17216 2016-07-20 Martin Liska <mliska@suse.cz>
17217
17218 * selftest-run-tests.c (selftest::run_tests): New function.
17219 * selftest.h (sreal_c_tests): Declare.
17220 * sreal.c (sreal_verify_basics): New function.
17221 (verify_aritmetics): Likewise.
17222 (sreal_verify_arithmetics): Likewise.
17223 (verify_shifting): Likewise.
17224 (sreal_verify_shifting): Likewise.
17225 (void sreal_c_tests): Likewise.
17226
17227 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17228
17229 PR rtl-optimization/71916
17230 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17231 bb which have a single succ fake edge.
17232
17233 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17234
17235 PR debug/71855
17236 * dwarf2out.c (gen_subprogram_die): Only call
17237 gen_unspecified_parameters_die while dumping early dwarf.
17238
17239 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17240
17241 PR middle-end/71874
17242 * gimple-fold.c (fold_builtin_memory_op): Use
17243 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17244
17245 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17246
17247 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17248 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17249 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17250 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17251 * combine.c: Ditto.
17252 * cse.c: Ditto.
17253 * dojump.c: Ditto.
17254 * double-int.c: Ditto.
17255 * dse.c: Ditto.
17256 * dwarf2out.c: Ditto.
17257 * expmed.c: Ditto.
17258 * expr.c: Ditto.
17259 * fold-const.c: Ditto.
17260 * function.c: Ditto.
17261 * fwprop.c: Ditto.
17262 * genmodes.c: Ditto.
17263 * hwint.c: Ditto.
17264 * hwint.h: Ditto.
17265 * ifcvt.c: Ditto.
17266 * loop-doloop.c: Ditto.
17267 * loop-invariant.c: Ditto.
17268 * loop-iv.c: Ditto.
17269 * match.pd: Ditto.
17270 * optabs.c: Ditto.
17271 * real.c: Ditto.
17272 * reload.c: Ditto.
17273 * rtlanal.c: Ditto.
17274 * simplify-rtx.c: Ditto.
17275 * stor-layout.c: Ditto.
17276 * toplev.c: Ditto.
17277 * tree-ssa-loop-ivopts.c: Ditto.
17278 * tree-vect-generic.c: Ditto.
17279 * tree-vect-patterns.c: Ditto.
17280 * tree.c: Ditto.
17281 * tree.h: Ditto.
17282 * ubsan.c: Ditto.
17283 * varasm.c: Ditto.
17284 * wide-int-print.cc: Ditto.
17285 * wide-int.cc: Ditto.
17286 * wide-int.h: Ditto.
17287
17288 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17289
17290 * selftest.c (selftest::assert_streq): Handle NULL values of
17291 val_actual and val_expected.
17292
17293 2016-07-19 Martin Jambor <mjambor@suse.cz>
17294
17295 PR fortran/71688
17296 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17297 rather than cgraph_create_node to get a call graph node.
17298
17299 2016-07-19 Richard Biener <rguenther@suse.de>
17300
17301 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17302 handle all tcc_constant bases and valueize SSA names.
17303 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17304 tcc_constant bases.
17305
17306 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17307
17308 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17309 the flags of the exit block and bb2, not just the entry block.
17310
17311 2016-07-19 Richard Biener <rguenther@suse.de>
17312
17313 PR tree-optimization/71901
17314 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17315 align member, group stuff with the bitfield.
17316 (vn_ref_op_align_unit): New inline.
17317 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17318 record element alignment and operand 3 unchanged.
17319 (ao_ref_init_from_vn_reference): Adjust.
17320 (valueize_refs_1): Likewise.
17321 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17322
17323 2016-07-19 Richard Biener <rguenther@suse.de>
17324
17325 PR tree-optimization/71908
17326 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17327 symbolic constants in a more reliable way.
17328
17329 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17330
17331 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17332 comment.
17333 (vect_update_inits_of_drs): Likewise.
17334 (vect_create_cond_for_alias_checks): Likewise.
17335 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17336
17337 2016-07-19 Richard Biener <rguenther@suse.de>
17338
17339 PR lto/71907
17340 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17341 with an abstract origin that is not an inlined function outer
17342 scope add a self-reference as abstract origin.
17343 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17344
17345 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17346
17347 PR target/71493
17348 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17349 unintentional System V.4 structure return breakage for structures
17350 with a single floating point element.
17351
17352 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17353
17354 PR tree-optimization/71734
17355 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17356 contains REF, use it to check safelen, assume that safelen value
17357 must be greater 1, fix style.
17358 (ref_indep_loop_p_2): Add REF_LOOP argument.
17359 (ref_indep_loop_p): Pass LOOP as additional argument to
17360 ref_indep_loop_p_2.
17361
17362 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17363
17364 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17365 allocation in the prologue.
17366 * explow.c (get_dynamic_stack_base): New function to return an address
17367 expression for the dynamic stack base.
17368 (get_dynamic_stack_size): New function to do the required dynamic stack
17369 space size calculations.
17370 (allocate_dynamic_stack_space): Use new functions.
17371 (align_dynamic_address): Move some code from
17372 allocate_dynamic_stack_space to new function.
17373 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17374
17375 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17376
17377 * config/s390/s390.c (s390_encode_section_info): Always set
17378 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17379 found.
17380
17381 2016-07-18 Richard Biener <rguenther@suse.de>
17382
17383 PR tree-optimization/71893
17384 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17385 for sizetype cast added by array_ref_element_size.
17386 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17387
17388 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17389
17390 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17391 register parameters. Remove code to initialize argument pointer
17392 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17393 using a pc-relative branch. Cleanup conditional code.
17394 * config/pa/pa.md (call_mcount): New expander.
17395 (call_mcount_nonpic): New insn.
17396 (call_mcount_pic): New insn and split.
17397 (call_mcount_pic_post_reload): New insn.
17398 (call_mcount_64bit): New insn and split.
17399 (call_mcount_64bit_post_reload): New insn.
17400
17401 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17402
17403 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17404 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17405 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17406 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17407 (*usum_widenqihi3, *udiff_widenqihi3)
17408 (*addhi3_zero_extend.const): New combiner insns.
17409 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17410 just 1 bit is affected.
17411 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17412 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17413
17414 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17415
17416 * omp-low.c (lower_omp_target): Mark data clauses with
17417 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17418 zero-length subarrays.
17419
17420 2016-07-15 Richard Biener <rguenther@suse.de>
17421
17422 PR tree-optimization/71881
17423 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17424 reverse DOM order to make debug temp generation happy.
17425
17426 2016-07-15 Richard Biener <rguenther@suse.de>
17427
17428 PR tree-optimization/71887
17429 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17430 verify it is not zero for division / modulo handling.
17431 (value_replacement): Adjust.
17432
17433 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17434 Julian Brown <julian@codesourcery.com>
17435
17436 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17437 * config/aarch64/aarch64-cost-tables.h
17438 (vulcan_extra_costs): New variable.
17439 * config/aarch64/aarch64.c
17440 (vulcan_addrcost_table): Likewise.
17441 (vulcan_regmove_cost): Likewise.
17442 (vulcan_vector_cost): Likewise.
17443 (vulcan_branch_cost): Likewise.
17444 (vulcan_tunings): Likewise.
17445
17446 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17447
17448 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17449 (output_in_order): Loop over undefined variables too. Output them
17450 via assemble_undefined_decl. Skip variables that correspond to hard
17451 registers or have value-exprs.
17452 * varpool.c (symbol_table::output_variables): Handle undefined
17453 variables together with defined ones.
17454
17455 2016-07-15 Richard Biener <rguenther@suse.de>
17456
17457 * tree-ssa-pre.c (get_representative_for): Make sure to return
17458 the value number of SSA names.
17459 (phi_translate_1): get_representative_for cannot return NULL.
17460 (do_pre_regular_insertion): Remove redundant call to
17461 fully_constant_expression.
17462 (do_pre_partial_partial_insertion): Likewise.
17463
17464 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17465
17466 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17467 (derive_simple_iv_with_niters): New function.
17468 (simple_iv): Rewrite using simple_iv_with_niters.
17469 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17470 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17471 function.
17472 (number_of_iterations_exit): Rewrite using above function.
17473 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17474 Decl.
17475
17476 2016-07-15 Richard Biener <rguenther@suse.de>
17477
17478 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17479 vec_construct cost.
17480
17481 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17482
17483 PR tree-optimization/71872
17484 * tree-data-ref.c (get_references_in_stmt): Ignore references
17485 with is_gimple_constant get_base_address.
17486
17487 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17488
17489 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17490 (TARGET_HAVE_LDACQD): New macro.
17491 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17492 than TARGET_HAVE_LDACQ.
17493 (arm_load_acquire_exclusivedi): Likewise.
17494 (arm_store_release_exclusivedi): Likewise.
17495
17496 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17497
17498 PR rtl-optimization/71878
17499 * lra-constraints.c (match_reload): Pass information about other
17500 output operands. Create new unique register value if matching input
17501 operand shares same register value as output operand being considered.
17502 (curr_insn_transform): Record output operands already processed.
17503
17504 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17505
17506 PR target/65951
17507 PR tree-optimization/70923
17508 * tree-vect-patterns.c: Include mult-synthesis.h.
17509 (target_supports_mult_synth_alg): New function.
17510 (synth_lshift_by_additions): Likewise.
17511 (apply_binop_and_append_stmt): Likewise.
17512 (vect_synth_mult_by_constant): Likewise.
17513 (target_has_vecop_for_code): Likewise.
17514 (vect_recog_mult_pattern): Use above functions to synthesize vector
17515 multiplication by integer constants.
17516
17517 2016-07-14 Alan Modra <amodra@gmail.com>
17518
17519 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17520 gpr alternatives. Correct '*' placement on Y,r alternative.
17521 Add '*' on operand 1 of r,r alternative.
17522
17523 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17524
17525 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17526 * expmed.h: ... Here.
17527
17528 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17529
17530 * gimple.h (stmt_can_terminate_bb_p): New function.
17531 * tree-cfg.c (need_fake_edge_p): Rename to ...
17532 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17533 throw external; handle const and pure calls.
17534 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17535
17536 2016-07-14 Richard Biener <rguenther@suse.de>
17537
17538 PR tree-optimization/71866
17539 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17540 (do_hoist_insertion): Avoid endless recursion when we
17541 didn't insert anything because we managed to simplify
17542 things down to a constant or SSA name.
17543 (fully_constant_expression): Re-write in terms of ...
17544 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17545 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17546 vn_nary_build_or_lookup_1.
17547 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17548 (vn_nary_build_or_lookup): ... this which now wraps it.
17549
17550 2016-07-14 Alan Modra <amodra@gmail.com>
17551
17552 PR target/71733
17553 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17554 with p9_vector override before power9-dform override.
17555
17556 2016-07-13 Andi Kleen <ak@linux.intel.com>
17557
17558 * value-prof.c (gimple_value_profile_transformations): Don't run
17559 when auto_profile is on.
17560
17561 2016-07-13 Andi Kleen <ak@linux.intel.com>
17562
17563 * auto-profile.c (update_inlined_ind_target,
17564 afdo_indirect_call): Print information to dump file.
17565
17566 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17567
17568 * genrecog.c (special_predicate_operand_p): New function.
17569 (predicate_name): Move function.
17570 (validate_pattern): Don't warn about missing mode for all
17571 define_special_predicate predicates.
17572
17573 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17574
17575 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17576 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17577 resolve alias checks which are known at compilation time.
17578 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17579 alias checks are resolved. Move dump info for too many runtime
17580 alias checks to here...
17581 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17582
17583 2016-07-13 Richard Biener <rguenther@suse.de>
17584
17585 PR tree-optimization/24574
17586 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17587 position and add shift, rotate, divison and modulo support
17588 for left zero.
17589 (value_replacement): Pass in argument position to absorbing_element_p.
17590
17591 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17592
17593 PR ipa/71633
17594 * ipa-inline-transform.c (inline_call): Support
17595 instrumented thunks.
17596
17597 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17598
17599 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17600 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17601 divide feature.
17602 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17603 Baseline. Make initial alternative TARGET_32BIT only.
17604 (udivsi3): Likewise.
17605 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17606 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17607 target.
17608
17609 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17610
17611 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17612 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17613 availability with TARGET_HAVE_MOVT.
17614 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17615 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17616 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17617 UINTVAL.
17618 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17619 extra instruction if MOVW is available. Use a cost variable
17620 incremented by COSTS_N_INSNS (1) when the condition match rather than
17621 returning an arithmetic expression based on COSTS_N_INSNS. Make
17622 constant with bottom half word zero cost 2 instruction if MOVW is
17623 available.
17624 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17625 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17626 target is ARMv8-M Baseline.
17627 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17628 (arm_movtas_ze): Likewise.
17629 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17630 alternative for constants satisfying j constraint.
17631 (thumb1_movsi_insn): Likewise.
17632 (movsi splitter for K alternative): Tighten condition to not trigger
17633 if movt is available and j constraint is satisfied.
17634 (Pe immediate splitter): Likewise.
17635 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17636 constant fitting in an halfword to use MOVW.
17637 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17638 effective target.
17639
17640 2016-07-13 Richard Biener <rguenther@suse.de>
17641
17642 PR middle-end/71104
17643 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17644 gimplifying the LHS. Make sure to gimplify a returning twice
17645 call LHS without using SSA names.
17646
17647 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17648
17649 * tree-data-ref.c (find_data_references_in_stmt): Remove
17650 unnecessary call to vec::release.
17651 (graphite_find_data_references_in_stmt): Likewise.
17652 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17653 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17654
17655 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17656
17657 * cfgexpand.c (expand_used_vars): Make the type of a local
17658 variable auto_vec.
17659 * genmatch.c (lower_for): Likewise.
17660 * haifa-sched.c (haifa_sched_init): Likewise.
17661 (add_to_speculative_block): Likewise.
17662 (create_check_block_twin): Likewise.
17663 * predict.c (handle_missing_profiles): Likewise.
17664 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17665 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17666 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17667 Likewise.
17668 (maybe_lower_iteration_bound): Likewise.
17669 * tree-ssa-sccvn.c (DFS): Likewise.
17670 * tree-stdarg.c (reachable_at_most_once): Likewise.
17671 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17672 (vectorizable_store): Likewise.
17673
17674 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17675
17676 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17677 (sccvn_dom_walker): make cond_stack an auto_vec.
17678
17679 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17680
17681 * ree.c (struct ext_state): Make type of members auto_vec.
17682 (find_and_remove_re): Adjust.
17683
17684 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17685
17686 * cfgexpand.c (struct stack_vars_data): Make type of fields
17687 auto_vec.
17688 (expand_used_vars): Adjust.
17689
17690 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17691
17692 * ipa.c (record_cdtor_fn): Adjust.
17693 (build_cdtor_fns): Likewise.
17694 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17695 variables.
17696
17697 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17698
17699 * genextract.c (struct accum_extract): Add constructor and make
17700 members auto_vec.
17701 (gen_insn): Adjust.
17702
17703 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17704
17705 * tree.c (struct free_lang_data_d): Add constructor and change
17706 types of members to ones that automatically manage resources.
17707 (fld_worklist_push): Adjust.
17708 (find_decls_types): Likewise.
17709 (find_decls_types_in_eh_region): Likewise.
17710 (free_lang_data_in_cgraph): Stop manually creating and
17711 destroying members of free_lang_data_d.
17712
17713 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17714
17715 PR rtl-optimization/68961
17716 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17717 peephole variant. Use sse_reg_operand predicates.
17718
17719 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17720
17721 * config/i386/predicates.md (x86_64_immediate_operand)
17722 <case CONST_INT>: Remove unneeded truncation to DImode.
17723 <case CONST>: Ditto.
17724 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17725
17726 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17727
17728 PR target/71805
17729 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17730 The xxperm and xxpermr instructions require that the 2nd input
17731 operand overlap with the output operand, and not the 1st.
17732 (altivec_vperm_v8hiv16qi): Likewise.
17733 (altivec_vperm_<mode>_uns_internal): Likewise.
17734 (altivec_vpermr_<mode>_internal): Likewise.
17735 (vperm_v8hiv4si): Likewise.
17736 (vperm_v16qiv8hi): Likewise.
17737
17738 2016-07-12 Nathan Sidwell <nathan@acm.org>
17739
17740 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17741 when -mno-pic-data-is-text-relative is in effect, by default.
17742 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17743 behavior and clarify.
17744
17745 2016-07-12 Martin Liska <mliska@suse.cz>
17746
17747 * params.def: Add avg-loop niter.
17748 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17749 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17750 * doc/invoke.texi: Document the new parameter.
17751
17752 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17753
17754 PR middle-end/71700
17755 * expr.c (store_constructor): Mask sign-extended bits when widening
17756 sub-word constructor element at the start of a word.
17757
17758 2016-07-12 Martin Liska <mliska@suse.cz>
17759
17760 * Makefile.in: Append rule for params-options.h.
17761 * params-options.h: New file.
17762
17763 2016-07-12 Martin Liska <mliska@suse.cz>
17764
17765 * ira-build.c (mark_loops_for_removal): Properly iterate
17766 loops.
17767
17768 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17769 Richard Biener <rguenther@suse.de>
17770
17771 PR tree-optimization/23286
17772 PR tree-optimization/70159
17773 * doc/invoke.texi: Document -fcode-hoisting.
17774 * common.opt (fcode-hoisting): New flag.
17775 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17776 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17777 (do_regular_insertion): Rename to ...
17778 (do_pre_regular_insertion): ... this and amend general comments
17779 on insertion strathegy.
17780 (do_partial_partial_insertion): Rename to ...
17781 (do_pre_partial_partial_insertion): ... this.
17782 (do_hoist_insertion): New function.
17783 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17784 and call do_hoist_insertion properly.
17785 (insert): Adjust.
17786 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17787 (pass_pre::execute): Register hoist_insert stats.
17788
17789 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17790
17791 PR middle-end/71716
17792 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17793 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17794 is different from mode's bitsize. Small cleanup.
17795
17796 2016-07-12 Richard Biener <rguenther@suse.de>
17797
17798 PR rtl-optimization/68961
17799 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17800 to simplify to a non-constant.
17801
17802 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17803
17804 PR middle-end/71758
17805 * omp-low.c (expand_omp_target): Gimplify device.
17806
17807 PR tree-optimization/71823
17808 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17809 to get vec_oprnds2 from op2.
17810
17811 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17812
17813 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17814 Hoist common subexpressions.
17815 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17816
17817 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17818
17819 PR target/71800
17820 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17821 prevent generation of 'stxsiwx' on pre Power8 hardware.
17822
17823 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17824
17825 * input.c: Include cpplib.h.
17826 (selftest::temp_source_file): New class.
17827 (selftest::temp_source_file::temp_source_file): New ctor.
17828 (selftest::temp_source_file::~temp_source_file): New dtor.
17829 (selftest::should_have_column_data_p): New function.
17830 (selftest::test_should_have_column_data_p): New function.
17831 (selftest::temp_line_table): New class.
17832 (selftest::temp_line_table::temp_line_table): New ctor.
17833 (selftest::temp_line_table::~temp_line_table): New dtor.
17834 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17835 it to create a temp_line_table.
17836 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17837 locations that are known to have column data.
17838 (selftest::line_table_case): New struct.
17839 (selftest::test_reading_source_line): Move tempfile handling
17840 to class temp_source_file.
17841 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17842 (selftest::assert_token_loc_eq): New function.
17843 (ASSERT_TOKEN_LOC_EQ): New macro.
17844 (selftest::test_lexer): New function.
17845 (selftest::boundary_locations): New array.
17846 (selftest::input_c_tests): Call test_should_have_column_data_p.
17847 Loop over a test matrix of interesting values of location and
17848 default_range_bits, calling test_lexer on each case in the matrix.
17849 Move call to test_accessing_ordinary_linemaps into the matrix.
17850 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17851 (ASSERT_EQ_AT): New macro.
17852
17853 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17854
17855 PR target/71801
17856 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17857 Don't convert TImode in debug insn.
17858
17859 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17860
17861 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17862 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17863 (tree_type_common::lang_flag_7): New.
17864 (tree_type_common::spare): Reduce size.
17865 * tree.h (TYPE_ALIGN_OK): Remove.
17866 (TYPE_LANG_FLAG_7): New.
17867 (get_inner_reference): Adjust header.
17868 * print-tree.c (print_node): Adjust.
17869 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17870 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17871 calls to get_inner_reference.
17872 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17873 handling of TYPE_ALIGN_OK.
17874 * builtins.c (get_object_alignment_2): Adjust call to
17875 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17876 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17877 TYPE_ALIGN_OK.
17878 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17879 * cfgexpand.c (expand_debug_expr): Likewise.
17880 * dbxout.c (dbxout_expand_expr): Likewise.
17881 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17882 loc_list_from_tree, fortran_common): Likewise.
17883 * fold-const.c (optimize_bit_field_compare,
17884 decode_field_reference, fold_unary_loc, fold_comparison,
17885 split_address_to_core_and_offset): Likewise.
17886 * gimple-laddress.c (execute): Likewise.
17887 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17888 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17889 * hsa-gen.c (gen_hsa_addr): Likewise.
17890 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17891 * tsan.c (instrument_expr): Likewise.
17892 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17893 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17894 * tree-affine.c (tree_to_aff_combination,
17895 get_inner_reference_aff): Adjust calls to get_inner_reference.
17896 * tree-data-ref.c (split_constant_offset_1,
17897 dr_analyze_innermost): Likewise.
17898 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17899 * tree-sra.c (ipa_sra_check_caller): Likewise.
17900 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17901 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17902 bswap_replace): Likewise.
17903 * tree-vect-data-refs.c (vect_check_gather,
17904 vect_analyze_data_refs): Likewise.
17905 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17906 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17907 TYPE_ALIGN_OK.
17908
17909 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17910
17911 * Makefile.in (selftest-valgrind): New phony target.
17912 * function-tests.c (selftest::build_cfg): Delete pass instances
17913 created by the test.
17914 (selftest::convert_to_ssa): Likewise.
17915 (selftest::test_expansion_to_rtl): Likewise.
17916 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17917 vectors.
17918 (selftest::test_diamond): Likewise.
17919
17920 2016-07-11 Richard Biener <rguenther@suse.de>
17921
17922 PR tree-optimization/71816
17923 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17924 than replacing all of its operands.
17925
17926 2016-07-11 Alan Modra <amodra@gmail.com>
17927
17928 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17929 (ctr<mode>): Add unspec.
17930 (ctr<mode>_internal*): Likewise.
17931
17932 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17933
17934 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17935 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17936
17937 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17938
17939 PR rtl-optimization/71621
17940 * lra-constraints.c (process_alt_operands): Check combination of
17941 reg class and mode.
17942
17943 2016-07-08 Jason Merrill <jason@redhat.com>
17944 Richard Biener <rguenther@suse.de>
17945
17946 P0145: Refining Expression Order for C++.
17947 * gimplify.c (initial_rhs_predicate_for): New.
17948 (gimplfy_modify_expr): Gimplify RHS before LHS.
17949
17950 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17951
17952 PR target/71297
17953 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17954 Allow standard error handling to take over when a wrong number
17955 of arguments is presented to __builtin_vec_ld () or
17956 __builtin_vec_st ().
17957
17958 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17959
17960 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17961 variants.
17962 (smin): Likewise.
17963 (fmax): New entry.
17964 (fmin): Likewise.
17965 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17966 __builtin_aarch64_fmaxv2sf.
17967 (vmaxnmq_f32): Likewise.
17968 (vmaxnmq_f64): Likewise.
17969 (vminnm_f32): Likewise.
17970 (vminnmq_f32): Likewise.
17971 (vminnmq_f64): Likewise.
17972
17973 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17974
17975 PR target/71806
17976 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17977 enable -mfloat128-hardware by default.
17978 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17979 that IEEE 128-bit hardware support needs.
17980 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17981 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17982 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17983 floating point requires.
17984 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17985 -mfloat128 and -mfloat128-hardware changes.
17986
17987 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17988
17989 PR tree-optimization/71667
17990 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17991
17992 2016-07-08 Martin Liska <mliska@suse.cz>
17993
17994 PR middle-end/71606
17995 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17996 folding produces SAVE_EXPRs, thus return false for the type.
17997
17998 2016-07-07 Martin Liska <mliska@suse.cz>
17999
18000 * file-find.c (remove_prefix): New function.
18001 * file-find.h (remove_prefix): Declare the function.
18002 * gcc-ar.c (main): Skip a folder of the wrapper if
18003 a wrapped binary would point to the same file.
18004
18005 2016-07-07 Jan Hubicka <jh@suse.cz>
18006
18007 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18008 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18009 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18010
18011 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18012
18013 PR ipa/71624
18014 * ipa-inline-analysis.c (compute_inline_parameters): Set
18015 local.can_change_signature to false for intrumentation
18016 thunk callees.
18017
18018 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18019
18020 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18021 with TARGET_HAVE_MOVT.
18022 (TARGET_HAVE_MOVT): Define.
18023 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18024 availability with TARGET_HAVE_MOVT.
18025 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18026 availability.
18027 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18028 TARGET_THUMB2.
18029 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18030 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18031 * config/arm/constraints.md (define_constraint "j"): Use
18032 TARGET_HAVE_MOVT to check MOVT availability.
18033
18034 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18035
18036 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18037
18038 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18039
18040 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18041 (armv8-m.main): Likewise.
18042 (armv8-m.main+dsp): Likewise.
18043 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18044 (FL_FOR_ARCH8M_MAIN): Likewise.
18045 * config/arm/arm-tables.opt: Regenerate.
18046 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18047 armv8-m.main+dsp to BE8_LINK_SPEC.
18048 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18049 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18050 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18051 Baseline and Mainline.
18052 (arm_option_override_internal): Also disable arm_restrict_it when
18053 !arm_arch_notm. Update comment for -munaligned-access to also cover
18054 ARMv8-M Baseline.
18055 (arm_file_start): Increase buffer size for printing architecture name.
18056 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18057 and armv8-m.main+dsp.
18058 (mno-unaligned-access): Clarify that this is disabled by default for
18059 ARMv8-M Baseline architectures as well.
18060
18061 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18062
18063 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18064 decide whether to prevent some libgcc routines being included for some
18065 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18066 link between this condition and the one in
18067 libgcc/config/arm/lib1func.S.
18068
18069 2016-07-07 Richard Biener <rguenther@suse.de>
18070
18071 * tree-ssa-pre.c: Include alias.h.
18072 (compute_avail): If we have multiple VN_REFERENCEs with the
18073 same hashtable entry adjust that to make it a valid replacement
18074 for all of them with respect to alignment and aliasing
18075 when doing insertion.
18076 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18077 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18078
18079 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18080
18081 PR target/70098
18082 PR target/71763
18083 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18084 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18085 constraint.
18086
18087 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18088
18089 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18090 (adjust_mems): Adjust.
18091 (adjust_insn): Likewise.
18092 (prepare_call_arguments): Likewise.
18093
18094 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18095
18096 * gcse.c (struct ls_expr): Make stores field a vector.
18097 (ldst_entry): Adjust.
18098 (free_ldst_entry): Likewise.
18099 (print_ldst_list): Likewise.
18100 (compute_ld_motion_mems): Likewise.
18101 (update_ld_motion_stores): Likewise.
18102
18103 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18104
18105 * gcse.c (struct ls_expr): Remove loads field.
18106 (ldst_entry): Adjust.
18107 (free_ldst_entry): Likewise.
18108 (print_ldst_list): Likewise.
18109 (compute_ld_motion_mems): Likewise.
18110
18111 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18112
18113 * store-motion.c (struct st_expr): Make antic_stores a vector.
18114 (st_expr_entry): Adjust.
18115 (free_st_expr_entry): Likewise.
18116 (print_store_motion_mems): Likewise.
18117 (find_moveable_store): Likewise.
18118 (compute_store_table): Likewise.
18119 (remove_reachable_equiv_notes): Likewise.
18120 (replace_store_insn): Likewise.
18121 (build_store_vectors): Likewise.
18122
18123 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18124
18125 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18126 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18127
18128 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18129
18130 PR tree-optimization/71518
18131 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18132 misalign also for outer loops with negative step.
18133
18134 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18135
18136 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18137 (cortex_a53_shift): Add mov_shift.
18138 (cortex_a53_shift_reg): Add new reservation for register shifts.
18139 (cortex_a53_alu): Remove bfm.
18140 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18141 (cortex_a53_alu_extr): Add new reservation for EXTR.
18142 (bypasses): Improve bypass modelling.
18143
18144 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18145
18146 PR target/50739
18147 * config/avr/avr.c (avr_asm_select_section): Strip off
18148 SECTION_DECLARED from flags when calling get_section.
18149
18150 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18151
18152 * tree-vectorizer.h (vect_memory_access_type): Add
18153 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18154 * tree-vect-stmts.c (compare_step_with_zero): New function.
18155 (perm_mask_for_reverse): Move further up file.
18156 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18157 step is negative.
18158 (get_negative_load_store_type): New function.
18159 (get_load_store_type): Call it. Add an ncopies argument.
18160 (vectorizable_mask_load_store): Update call accordingly and
18161 remove tests for negative steps.
18162 (vectorizable_store, vectorizable_load): Likewise. Handle new
18163 memory_access_types.
18164
18165 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18166
18167 * tree-vectorizer.h (vect_memory_access_type): New enum.
18168 (_stmt_vec_info): Add a memory_access_type field.
18169 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18170 (vect_model_store_cost): Take an access type instead of a boolean.
18171 (vect_model_load_cost): Likewise.
18172 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18173 vect_model_store_cost and vect_model_load_cost.
18174 * tree-vect-stmts.c (vec_load_store_type): New enum.
18175 (vect_model_store_cost): Take an access type instead of a
18176 store_lanes_p boolean. Simplify tests.
18177 (vect_model_load_cost): Likewise, but for load_lanes_p.
18178 (get_group_load_store_type, get_load_store_type): New functions.
18179 (vectorizable_store): Use get_load_store_type. Record the access
18180 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18181 (vectorizable_load): Likewise.
18182 (vectorizable_mask_load_store): Likewise. Replace is_store
18183 variable with vls_type.
18184
18185 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18186
18187 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18188 single_element_p parameter.
18189 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18190 Check the PR65518 case here rather than in vectorizable_load.
18191 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18192 * tree-vect-stmts.c (vectorizable_load): Likewise.
18193
18194 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18195
18196 * tree-vectorizer.h (gather_scatter_info): New structure.
18197 (vect_check_gather_scatter): Return a bool rather than a decl.
18198 Replace return-by-pointer arguments with a single
18199 gather_scatter_info *.
18200 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18201 (vect_analyze_data_refs): Update call accordingly.
18202 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18203 (vectorizable_mask_load_store): Likewise. Also record the
18204 offset dt and vectype in the gather_scatter_info.
18205 (vectorizable_store): Likewise.
18206 (vectorizable_load): Likewise.
18207
18208 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18209
18210 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18211 strided groups, use the cost of N scalar accesses instead
18212 of ncopies vector accesses.
18213 (vect_model_load_cost): Likewise.
18214
18215 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18216
18217 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18218 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18219 variable to indicate when once-per-group costs are being used.
18220 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18221
18222 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18223
18224 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18225 peeling-for-gaps condition.
18226
18227 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18228
18229 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18230 element to register if it doesn't match general_operand.
18231
18232 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18233 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18234
18235 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18236 prototype.
18237 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18238 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18239 (SIGNBIT): New mode iterator.
18240 (Fsignbit): New mode attribute.
18241 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18242 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18243 when direct moves are available.
18244 (signbit<mode>2_dm): New define_insn_and_split).
18245 (signbit<mode>2_dm2): New define_insn.
18246
18247 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18248
18249 PR rtl-optimization/71594
18250 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18251 into subregs of appropriate mode before trying to emit a conditional
18252 move.
18253
18254 2016-07-05 Jan Hubicka <jh@suse.cz>
18255
18256 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18257 (simple_iv): Use it.
18258
18259 2016-07-05 Jan Hubicka <jh@suse.cz>
18260
18261 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18262
18263 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18264
18265 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18266 "offmemok".
18267
18268 2016-07-05 Jan Hubicka <jh@suse.cz>
18269
18270 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18271 IV can overflow.
18272
18273 2016-07-05 Richard Biener <rguenther@suse.de>
18274
18275 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18276 Handle empty else block.
18277 (is_feasible_trace): Likewise.
18278 (split_paths): Likewise.
18279
18280 2016-07-05 Richard Biener <rguenther@suse.de>
18281
18282 * tree-loop-distribution.c (distribute_loop): Fix issue with
18283 the cost model loop.
18284
18285 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18286
18287 * config/arm/neon-testgen.ml: Delete.
18288 * config/arm/neon.ml: Delete.
18289
18290 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18291
18292 PR c++/71739
18293 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18294 directly using TREE_PURPOSE.
18295
18296 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18297
18298 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18299 * config/aarch64/aarch64_neon.h: Likewise.
18300 * config/aarch64/arm_neon.h: Likewise.
18301 * config/aarch64/atomics.md: Likewise.
18302 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18303 * doc/invoke.texi: Likewise.
18304
18305 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18306
18307 * config/s390/s390.md: Add "z13" cpu_facility.
18308 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18309 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18310 condition" type instructions.
18311
18312 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18313 Jeff Law <law@redhat.com>
18314
18315 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18316 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18317
18318 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18319
18320 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18321 permutation for TARGET_AVX512F.
18322 (ix86_expand_vec_one_operand_perm_avx512): New function.
18323 (expand_vec_perm_1): Invoke introduced function.
18324 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18325 it may be not valid after vectorization.
18326
18327 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18328
18329 PR target/63874
18330 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18331 typo in comment. Only force to memory if it is a weak
18332 external reference.
18333
18334 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18335 Jiong Wang <jiong.wang@arm.com>
18336
18337 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18338 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18339 (AARCH64_FL_F16): New.
18340 (AARCH64_FL_FOR_ARCH8_2): New.
18341 (AARCH64_ISA_8_2): New.
18342 (AARCH64_ISA_F16): New.
18343 (TARGET_FP_F16INST): New.
18344 (TARGET_SIMD_F16INST): New.
18345 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18346 ("fp"): Disabling "fp" also disables "fp16".
18347 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18348 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18349 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18350 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18351
18352 2016-07-04 Jan Beulich <jbeulich@suse.com>
18353
18354 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18355
18356 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18357
18358 PR target/71720
18359 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18360 the insns, use an insn form that does not adjust the offset on
18361 little endian systems.
18362
18363 2016-07-01 Jan Beulich <jbeulich@suse.com>
18364
18365 * varasm.c (get_variable_section): Validate initializer in
18366 named .bss-like sections.
18367
18368 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18369
18370 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18371 Exchange the order of the second and third operands in the vpermr
18372 instruction tmeplate.
18373
18374 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18375
18376 PR target/71698
18377 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18378 Disallow TDmode values.
18379
18380 2016-07-01 Alan Modra <amodra@gmail.com>
18381
18382 PR rtl-optimization/71709
18383 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18384 being set, not referenced.
18385
18386 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18387
18388 PR tree-optimization/70729
18389 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18390 of loop since it can be not valid after transformation.
18391
18392 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18393
18394 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18395 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18396
18397 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18398
18399 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18400 for NULL decl.
18401
18402 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18403
18404 PR target/71677
18405 * config/rs6000/constraints.md (wY constraint): New constraint to
18406 match the requirements for the LXSD and STXSD instructions.
18407 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18408 predicate to match the requirements for the LXSD and STXSD
18409 instructions.
18410 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18411 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18412 to make sure that the bottom 2 bits of offset are 0, the address
18413 form is offsettable, and no updating is done in the address mode.
18414 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18415 (movdi_internal32): Likewise
18416 (movdi_internal64): Likewise.
18417
18418 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18419
18420 PR tree-optimization/71707
18421 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18422 strinfo even for ADDR_EXPR ptr.
18423
18424 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18425
18426 * config/rs6000/altivec.md (darn_32): Change the condition to
18427 TARGET_P9_MISC instead of TARGET_MODULO.
18428 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18429 condition expression.
18430 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18431 condition expression.
18432 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18433 (DFP_TEST): New code iterator.
18434 (dfptstsfi_<code>_mode>): New define_expand.
18435 (*dfp_sgnfcnc_<mode>): New define_insn.
18436 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18437 definition next to BU_P9_MISC_1 definition and change the MASK
18438 value to RS6000_BTM_P9_MISC.
18439 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18440 (BU_P9_64BIT_MISC_0): Likewise.
18441 (BU_P9_DFP_MISC_0): New macro definition.
18442 (BU_P9_DFP_MISC_1): New macro definition.
18443 (BU_P9_DFP_MISC_2): New macro definition.
18444 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18445 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18446 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18447 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18448 (TSTSFI_LT_TD): Likewise.
18449 (TSTSFI_EQ_DD): Likewise.
18450 (TSTSFI_EQ_TD): Likewise.
18451 (TSTSFI_GT_DD): Likewise.
18452 (TSTSFI_GT_TD): Likewise.
18453 (TSTSFI_OV_DD): Likewise.
18454 (TSTSFI_OV_TD): Likewise.
18455 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18456 (TSTSFI_LT_DD): Likewise.
18457 (TSTSFI_LT_TD): Likewise.
18458 (TSTSFI_EQ): Likewise.
18459 (TSTSFI_EQ_DD): Likewise.
18460 (TSTSFI_EQ_TD): Likewise.
18461 (TSTSFI_GT): Likewise.
18462 (TSTSFI_GT_DD): Likewise.
18463 (TSTSFI_GT_TD): Likewise.
18464 (TSTSFI_OV): Likewise.
18465 (TSTSFI_OV_DD): Likewise.
18466 (TSTSFI_OV_TD): Likewise.
18467 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18468 overloaded test significance functions.
18469 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18470 OPTION_MASK_P9_MISC into the representation of this mask.
18471 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18472 of this mask.
18473 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18474 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18475 non-zero.
18476 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18477 argument is a 6-bit unsigned literal value if the icode argument
18478 represents a DFP test significance built-in call.
18479 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18480 flag used independently and in combination with the
18481 RS6000_BTM_64BIT flag.
18482 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18483 (rs6000_builtin_mask_names): Add entry for power9-misc
18484 command-line option.
18485 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18486 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18487 RS6000_BTM_P9_MISC macros.
18488 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18489 option and change the description of the -mpower9-vector option to
18490 enable only vector instructions, removing its erroneously claimed
18491 support for scalar instructions.
18492 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18493 the ISA 3.0 digital floating point test significance built-in
18494 functions.
18495
18496 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18497
18498 * config/aarch64/aarch64.c (cortexa35_tunings):
18499 Enable AES fusion. Use cortexa57_branch_cost.
18500 (cortexa53_tunings): Use cortexa57_branch_cost.
18501 (cortexa72_tunings): Use cortexa57_branch_cost.
18502 Use AUTOPREFETCHER_WEAK.
18503 (cortexa73_tunings): Use cortexa57_branch_cost.
18504
18505 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18506 James Greenhalgh <james.greenhalgh@arm.com>
18507
18508 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18509 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18510 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18511 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18512 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18513 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18514 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18515 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18516 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18517 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18518 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18519 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18520 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18521 New intrinsics.
18522
18523 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18524 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18525
18526 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18527 New define_insn.
18528 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18529
18530 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18531
18532 PR driver/71651
18533 * gcc.c (driver::build_option_suggestions): Pass "option" to
18534 add_misspelling_candidates.
18535 * opts-common.c (add_misspelling_candidates): Add "option" param;
18536 use it to avoid adding negated forms for options marked with
18537 RejectNegative.
18538 * opts.h (add_misspelling_candidates): Add "option" param.
18539
18540 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18541
18542 PR middle-end/71693
18543 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18544 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18545 first when permuting bitwise operation with rotate. Cast
18546 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18547
18548 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18549
18550 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18551 for misspelled param names.
18552 * params.c: Include spellcheck.h.
18553 (find_param_fuzzy): New function.
18554 * params.h (find_param_fuzzy): New prototype.
18555 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18556 * spellcheck.h (struct edit_distance_traits<const char *>):
18557 ...here.
18558
18559 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18560
18561 * config/rs6000/predicates.md (const_0_to_7_operand): New
18562 predicate, recognize 0..7.
18563 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18564 support for doing extracts from V16QImode, V8HImode, V4SImode
18565 under ISA 3.0.
18566 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18567 vector extract support.
18568 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18569 for ISA 3.0 vector extract.
18570 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18571 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18572 extracts of a constant element number from small integer vectors
18573 on 64-bit ISA 3.0 systems.
18574 (vsx_extract_<mode>_di): Likewise.
18575 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18576 say when we can do ISA 3.0 vector extracts.
18577 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18578 registers, using the stxsiwx instruction.
18579
18580 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18581
18582 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18583 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18584 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18585 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18586 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18587 * config/arm/arm.c (arm_qdf24xx_tune): New.
18588
18589 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18590
18591 * config/aarch64/aarch64.c (cortexa53_tunings):
18592 Increase loop alignment to 8. Set function alignment to 16.
18593 (cortexa35_tunings): Likewise.
18594 (cortexa57_tunings): Increase loop alignment to 8.
18595 (cortexa72_tunings): Likewise.
18596 (cortexa73_tunings): Likewise.
18597
18598 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18599
18600 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18601 for arm_fp16_ok and arm_fp16_hw.
18602 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18603 arm_fp16_alternative.
18604
18605 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18606
18607 PR tree-optimization/71655
18608 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18609 types when swapping operands.
18610
18611 2016-06-29 Martin Liska <mliska@suse.cz>
18612
18613 PR middle-end/71585
18614 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18615 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18616 of build_optimization_node.
18617
18618 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18619
18620 PR tree-optimization/70729
18621 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18622 independent in loops having positive safelen value.
18623 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18624 it may be not valid after vectorization.
18625
18626 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18627
18628 PR tree-optimization/71625
18629 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18630 is sorted by ascending list->offset. If PTR is non-NULL and there is
18631 previous strinfo, call get_stridx_plus_constant.
18632 (get_stridx): Pass exp as second argument to get_addr_stridx.
18633 (addr_stridxptr): Add missing list = list->next, so that there can be
18634 more than one entries in the list. Bump limit from 16 to 32. Ensure
18635 the list is sorted by ascending list->offset.
18636 (get_stridx_plus_constant): Adjust so that it can be also called with
18637 ADDR_EXPR instead of SSA_NAME as PTR.
18638 (handle_char_store): Pass NULL_TREE as second argument to
18639 get_addr_stridx.
18640
18641 2016-06-29 Richard Biener <rguenther@suse.de>
18642
18643 PR rtl-optimization/68961
18644 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18645
18646 2016-06-29 Richard Biener <rguenther@suse.de>
18647
18648 PR middle-end/71002
18649 * alias.c (component_uses_parent_alias_set_from): Handle
18650 type punning through union accesses by using the union alias set.
18651 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18652
18653 2016-07-29 Richard Biener <rguenther@suse.de>
18654
18655 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18656 precision not matching mode precision.
18657
18658 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18659
18660 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18661 pa_output_arg_descriptor.
18662 (call_val_symref_64bit_post_reload): Likewise.
18663 (call_val_powf_64bit_post_reload): Likewise.
18664 (sibcall_internal_symref_64bit): Likewise.
18665 (sibcall_value_internal_symref_64bit): Likewise.
18666
18667 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18668
18669 PR middle-end/71626
18670 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18671 a constant, force its SUBREG_REG into memory or register instead
18672 of whole op1.
18673
18674 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18675
18676 PR target/58655
18677 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18678 * doc/invoke.texi (AVR Options): Document it.
18679
18680 2016-06-28 Walter Lee <walt@tilera.com>
18681
18682 * config/tilegx/linux.h: Do not include arch/icache.h
18683 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18684 * config/tilepro/linux.h: Do not include arch/icache.h
18685 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18686
18687 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18688
18689 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18690 for big-endian BIT_FIELD_REF.
18691
18692 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18693
18694 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18695 ('size' attribute): Add '128'.
18696 Include power9.md.
18697 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18698 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18699 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18700 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18701 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18702 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18703 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18704 *trunc<mode>df2_odd): Set size attribute to '128'.
18705 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18706 * config/rs6000/power6.md (power6-fp): Include dfp type.
18707 * config/rs6000/power7.md (power7-fp): Likewise.
18708 * config/rs6000/power8.md (power8-fp): Likewise.
18709 * config/rs6000/power9.md: New file.
18710 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18711 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18712 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18713 htmsimple.
18714 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18715 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18716 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18717 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18718 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18719 dfp_dscri_<mode>): Change type attribute to dfp.
18720 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18721 attribute to vecsimple.
18722 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18723 and prefetch streams.
18724 (rs6000_option_override_internal): Remove temporary code setting
18725 tuning to power8. Don't set rs6000_sched_groups for power9.
18726 (last_scheduled_insn): Change to rtx_insn *.
18727 (divide_cnt, vec_load_pendulum): New variables.
18728 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18729 (rs6000_issue_rate): Set issue rate for Power9.
18730 (is_power9_pairable_vec_type): New.
18731 (power9_sched_reorder2): New.
18732 (rs6000_sched_reorder2): Call new function for Power9 specific
18733 reordering.
18734 (insn_must_be_first_in_group): Remove Power9.
18735 (insn_must_be_last_in_group): Likewise.
18736 (force_new_group): Likewise.
18737 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18738 Initialize divide_cnt/vec_load_pendulum.
18739 (_rs6000_sched_context, rs6000_init_sched_context,
18740 rs6000_set_sched_context): Handle context save/restore of new
18741 variables.
18742
18743 2016-06-28 Richard Biener <rguenther@suse.de>
18744
18745 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18746 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18747 COMPONENT_REF operand.
18748 (nonoverlapping_component_refs_p): Likewise.
18749 * stor-layout.c (start_bitfield_representative): Mark
18750 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18751
18752 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18753
18754 * Makefile.in: Don't cat ../stage_current if it does not exist.
18755
18756 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18757 last argument is a bit-field.
18758
18759 PR rtl-optimization/71673
18760 * internal-fn.c (expand_arith_overflow_result_store): Use
18761 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18762 expand_simple_binop.
18763
18764 PR middle-end/66867
18765 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18766 expand_ifn_atomic_compare_exchange): New functions.
18767 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18768 * tree.h (build_call_expr_internal_loc): Rename to ...
18769 (build_call_expr_internal_loc_array): ... this. Fix up type of
18770 last argument.
18771 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18772 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18773 ATOMIC_COMPARE_EXCHANGE result.
18774 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18775 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18776 fold_builtin_atomic_compare_exchange): New prototypes.
18777 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18778 fold_builtin_atomic_compare_exchange): New functions..
18779 * tree-ssa.c (execute_update_addresses_taken): If
18780 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18781 of call when finding addressable vars, and if such var becomes
18782 non-addressable, call fold_builtin_atomic_compare_exchange.
18783
18784 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18785
18786 PR target/71670
18787 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18788 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18789
18790 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18791
18792 * config/rs6000/rs6000.md ('type' attribute): Add
18793 veclogical,veccmpfx,vecexts,vecmove insn types.
18794 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18795 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18796 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18797 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18798 *nabs<mode>2_hw): Change type to vecmove.
18799 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18800 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18801 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18802 *ieee_128bit_vsx_abs<mode>2_internal,
18803 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18804 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18805 *ieee128_mtvsrd_32bit): Change type to veclogical.
18806 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18807 *movdi_internal32, *movdi_internal64): Update insn types.
18808 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18809 vsx_extract_<mode>): Change type to veclogical.
18810 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18811 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18812 *vsx_sign_extend_si_v2di): Change type to vecexts.
18813 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18814 type to veclogical.
18815 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18816 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18817 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18818 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18819 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18820 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18821 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18822 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18823 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18824 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18825 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18826 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18827 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18828 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18829 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18830 (ppc7450-vecsimple): Add veclogical, vecmove.
18831 (ppc7450-veccmp): Add veccmpfx.
18832 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18833 vecmove.
18834 (ppc8540_vector_compare): Add veccmpfx.
18835 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18836 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18837 (cell-vecsimple): Add veclogical, vecmove.
18838 (cell-veccmp): Add veccmpfx.
18839 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18840 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18841 veccmpfx.
18842 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18843 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18844 (power4-vecsimple): Add veclogical, vecmove.
18845 (power4-veccmp): Add veccmpfx.
18846 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18847 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18848 (power6-vecsimple): Add veclogical, vecmove.
18849 (power6-veccmp): Add veccmpfx.
18850 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18851 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18852 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18853 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18854 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18855 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18856 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18857 fpsimple.
18858 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18859
18860 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18861
18862 PR target/71656
18863 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18864 OPTION_MASK_P9_DFORM_VECTOR.
18865 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18866 disable -mpower9-dform-vector when using reload.
18867 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18868 New 'strict' argument. Update all callers. Add strict addressing
18869 support.
18870 (rs6000_legitimate_offset_address_p): Remove call to
18871 virtual_stack_registers_memory_p.
18872 (rs6000_legitimize_reload_address): Add quad address support.
18873 (rs6000_legitimate_address_p): Move call to quad_address_p above
18874 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18875 to account for new strict usage.
18876 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18877 for new strict usage.
18878 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18879
18880 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18881
18882 PR target/70902
18883 PR target/71453
18884 PR target/71555
18885 PR target/71596
18886 PR target/71657
18887 * config/i386/i386.c (ix86_spill_class): Disable condition to
18888 always return NO_REGS.
18889
18890 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18891
18892 * predict.c: Include gimple-pretty-print.h
18893 (predicted_by_loop_heuristics_p): Check also
18894 PRED_LOOP_EXIT_WITH_RECURSION
18895 (predict_loops): Find self recursive calls and use special purpose
18896 predictors for them; dump log about decisions.
18897 (pass_profile::execute): Dump info about #of iterations.
18898 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18899 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18900
18901 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18902
18903 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18904 output_asm_insn calls and shorten long lines. Output .CALL
18905 argument descriptor using pa_output_arg_descriptor. Add various
18906 inline $$dyncall and other optimizations.
18907 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18908
18909 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18910
18911 PR tree-optimization/71643
18912 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18913 EH preds.
18914
18915 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18916 leak a bitmap if dep_bb is NULL.
18917
18918 PR tree-optimization/71631
18919 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18920 to rewrite_expr_tree even if negate_result, move new_lhs var
18921 declaration and initialization earlier, for powi_result set afterwards
18922 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18923 if new_lhs != lhs, and don't shadow gsi var.
18924
18925 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18926
18927 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18928 Add in_loop parameter.
18929 (predict_loops): Add loop guard heuristics.
18930 * predict.def (PRED_LOOP_GUARD): New heuristics.
18931
18932 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18933
18934 * predict.c: Include ipa-utils.h
18935 (tree_bb_level_prediction): Predict recursive calls.
18936 (tree_estimate_probability_bb): Skip inexpensive calls for call
18937 predictor.
18938 * predict.def (PRED_RECURSIVE_CALL): New.
18939
18940 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18941
18942 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18943 (BU_FLOAT128_1): Likewise.
18944 (FABSQ): Likewise.
18945 (COPYSIGNQ): Likewise.
18946 (RS6000_BUILTIN_NANQ): Likewise.
18947 (RS6000_BUILTIN_NANSQ): Likewise.
18948 (RS6000_BUILTIN_INFQ): Likewise.
18949 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18950 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18951 (TARGET_FOLD_BUILTIN): New #define.
18952 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18953 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18954 (rs6000_fold_builtin): New target hook implementation, handling
18955 folding of 128-bit NaNs and infinities.
18956 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18957 entries are filled in to avoid problems during bootstrap
18958 self-test; define builtins for 128-bit NaNs and infinities.
18959 (rs6000_opt_mask): Add entry for float128.
18960 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18961 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18962 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18963 (const_str_type_node): New #define.
18964 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18965 to a define_expand that dispatches to either copysign<mode>3_soft
18966 or copysign<mode>3_hard.
18967 (copysign<mode>3_hard): Rename from copysign<mode>3.
18968 (copysign<mode>3_soft): New define_insn.
18969 * doc/extend.texi: Document new builtins.
18970
18971 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18972
18973 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18974 PRIu64 instead of lu.
18975
18976 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18977
18978 PR debug/71642
18979 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18980 copy the type name.
18981
18982 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18983
18984 PR tree-optimization/71647
18985 * omp-low.c (lower_rec_input_clauses): Convert
18986 omp_clause_aligned_alignment (c) to size_type_node for the
18987 last argument of __builtin_assume_aligned.
18988
18989 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18990
18991 * configure.ac (calling ___tls_get_addr via GOT): New
18992 assembler/linker check.
18993 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18994 assembler and linker supports calling ___tls_get_addr via GOT.
18995 Otherise, defined to 0.
18996 * config.in: Regenerated.
18997 * configure: Likewise.
18998 * config/i386/constraints.md (Yb): New constraint.
18999 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19000 (REG_CLASS_NAMES): Likewise.
19001 (REG_CLASS_CONTENTS): Likewise.
19002 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19003 the b constraint with the Yb constraint. Call ___tls_get_addr
19004 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19005 is 1.
19006 (*tls_local_dynamic_base_32_gnu): Likewise.
19007 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19008 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19009 (*tls_local_dynamic_base_64_<mode>): Likewise.
19010
19011 2016-06-24 Martin Liska <mliska@suse.cz>
19012
19013 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19014 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19015 few functions.
19016 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19017 argument to true if the expected number of iterations is
19018 loop-based.
19019
19020 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19021
19022 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19023 assemble for 32bit target.
19024 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19025 and $ld_ix86_gld_32_opt to link for 32bit target.
19026 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19027 * configure: Regenerate.
19028
19029 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19030
19031 * config/arm/arm.c (int_log2): Delete definition and prototype.
19032 (shift_op): Use exact_log2 instead of int_log2.
19033 (vfp3_const_double_for_fract_bits): Likewise.
19034
19035 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19036
19037 * internal-fn.c (expand_arith_set_overflow): New function.
19038 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19039 Use it.
19040 (expand_arith_overflow_result_store): Likewise. Handle precision
19041 smaller than mode precision.
19042 * tree-vrp.c (extract_range_basic): For imag part, handle
19043 properly signed 1-bit precision result.
19044 * doc/extend.texi (__builtin_add_overflow): Document that last
19045 argument can't be pointer to enumerated or boolean type.
19046 (__builtin_add_overflow_p): Document that last argument can't
19047 have enumerated or boolean type.
19048
19049 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19050 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19051
19052 * config/rs6000/predicates.md (splat_input_operand): Rework.
19053 Don't allow constants, since the insns that use this predicate
19054 don't support constants. Constants are handled by other insns
19055 that are created via combine. During and after register
19056 allocation, only allow indexed or indirect addresses, and not
19057 general addresses. Only allow modes supported by the hardware.
19058 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19059 comment. Move check for using VSPLTIS<x> to a common location,
19060 instead of doing it in two different places.
19061
19062 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19063
19064 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19065 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19066 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19067 signature_CENTAUR_ebx.
19068
19069 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19070
19071 PR target/66232
19072 PR target/67400
19073 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19074 (as_ix86_gas_32_opt): This.
19075 (ld_ix86_tls_ldm_opt): Renamed to ...
19076 (ld_ix86_gld_32_opt): This.
19077 (R_386_TLS_LDM reloc): Updated.
19078 (R_386_GOT32X reloc): New assembler/linker check.
19079 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19080 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19081 defined to 0.
19082 * config.in: Regenerated.
19083 * configure: Likewise.
19084 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19085 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19086 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19087 if ix86_force_load_from_GOT_p returns true.
19088 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19089 ix86_force_load_from_GOT_p returns true.
19090 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19091 the external function address via the GOT slot.
19092 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19093 HAVE_AS_IX86_GOT32X before returning false.
19094 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19095 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19096
19097 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19098
19099 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19100
19101 2016-06-23 Andi Kleen <ak@linux.intel.com>
19102
19103 * Makefile.in: Regenerate.
19104 * doc/install.texi: Document autoprofiledbootstrap.
19105
19106 2016-06-23 Andi Kleen <ak@linux.intel.com>
19107
19108 * config/i386/gcc-auto-profile: New file.
19109
19110 2016-06-23 Martin Liska <mliska@suse.cz>
19111
19112 PR middle-end/71619
19113 * predict.c (predict_loops): Revert the hunk that was removed
19114 in r237103.
19115
19116 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19117
19118 * config.gcc: Add support for arm*-*-phoenix* targets.
19119 * config/arm/t-phoenix: New.
19120 * config/phoenix.h: New.
19121
19122 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19123 H.J. Lu <hongjiu.lu@intel.com>
19124
19125 PR target/67400
19126 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19127 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19128 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19129 ix86_force_load_from_GOT_p returns true.
19130 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19131 ix86_force_load_from_GOT_p returns true.
19132 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19133 ix86_force_load_from_GOT_p returns true.
19134 (ix86_expand_move): Load the external function address via the
19135 GOT slot if ix86_force_load_from_GOT_p returns true.
19136 * config/i386/predicates.md (x86_64_immediate_operand): Return
19137 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19138 (x86_64_zext_immediate_operand): Ditto.
19139
19140 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19141
19142 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19143
19144 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19145
19146 PR c/70339
19147 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19148 * diagnostic.c (pedwarn_at_rich_loc): New function.
19149 * spellcheck.h (best_match::best_match): Add a
19150 "best_distance_so_far" optional parameter.
19151 (best_match::set_best_so_far): New method.
19152 (best_match::get_best_distance): New accessor.
19153 (best_match::get_best_candidate_length): New accessor.
19154
19155 2016-06-22 Nick Clifton <nickc@redhat.com>
19156
19157 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19158 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19159 modes are accepted as well.
19160 (ucompare_loc_descriptor): Likewise.
19161 (minmax_loc_descriptor): Likewise.
19162 (clz_loc_descriptor): Likewise.
19163 (popcount_loc_descriptor): Likewise.
19164 (bswap_loc_descriptor): Likewise.
19165 (rotate_loc_descriptor): Likewise.
19166 (mem_loc_descriptor): Likewise.
19167 (loc_descriptor): Likewise.
19168
19169 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19170
19171 * common.opt (fdiagnostics-parseable-fixits): New option.
19172 * diagnostic.c: Include "selftest.h".
19173 (print_escaped_string): New function.
19174 (print_parseable_fixits): New function.
19175 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19176 (selftest::assert_print_escaped_string): New function.
19177 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19178 (selftest::test_print_escaped_string): New function.
19179 (selftest::test_print_parseable_fixits_none): New function.
19180 (selftest::test_print_parseable_fixits_insert): New function.
19181 (selftest::test_print_parseable_fixits_remove): New function.
19182 (selftest::test_print_parseable_fixits_replace): New function.
19183 (selftest::diagnostic_c_tests): New function.
19184 * diagnostic.h (struct diagnostic_context): Add field
19185 "parseable_fixits_p".
19186 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19187 -fdiagnostics-parseable-fixits.
19188 (-fdiagnostics-parseable-fixits): New option.
19189 * opts.c (common_handle_option): Handle
19190 -fdiagnostics-parseable-fixits.
19191 * selftest-run-tests.c (selftest::run_tests): Call
19192 selftest::diagnostic_c_tests.
19193 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19194
19195 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19196
19197 PR tree-optimization/71488
19198 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19199 comparison of boolean vectors.
19200 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19201 of boolean vectors using bitwise operations.
19202
19203 2016-06-22 Andreas Schwab <schwab@suse.de>
19204
19205 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19206 Remove declaration.
19207
19208 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19209
19210 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19211
19212 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19213
19214 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19215 print FLAGS_REG.
19216
19217 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19218
19219 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19220 * config/arm/arm-cores.def (cortex-a73): New entry.
19221 (cortex-a73.cortex-a35): Likewise.
19222 (cortex-a73.cortex-a53): Likewise.
19223 * config/arm/arm-tables.opt: Regenerate.
19224 * config/arm/arm-tune.md: Likewise.
19225 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19226 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19227 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19228 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19229 * doc/invoke.texi (ARM Options): Document cortex-a73,
19230 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19231
19232 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19233
19234 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19235 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19236 (cortex-a73.cortex-a35): Likewise.
19237 (cortex-a73.cortex-a53): Likewise.
19238 * config/aarch64/aarch64-tune.md: Regenerate.
19239 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19240 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19241 -mcpu and -mtune.
19242
19243 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19244
19245 * configure.ac (gcc_cv_as_compress_debug): Remove
19246 --compress-debug-sections as extra as switch.
19247 Handle gas --compress-debug-sections=type.
19248 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19249 Handle gld --compress-debug-sections=type.
19250 * configure: Regenerate.
19251
19252 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19253
19254 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19255
19256 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19257
19258 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19259 (do_rewrite): likewise.
19260
19261 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19262
19263 * common/config/mep/mep-common.c: Remove.
19264 * config.gcc: Remove mep-* support.
19265 * config/mep/constraints.md: Remove.
19266 * config/mep/default.h: Remove.
19267 * config/mep/intrinsics.h: Remove.
19268 * config/mep/intrinsics.md: Remove.
19269 * config/mep/ivc2-template.h: Remove.
19270 * config/mep/mep-c5.cpu: Remove.
19271 * config/mep/mep-core.cpu: Remove.
19272 * config/mep/mep-default.cpu: Remove.
19273 * config/mep/mep-ext-cop.cpu: Remove.
19274 * config/mep/mep-intrin.h: Remove.
19275 * config/mep/mep-ivc2.cpu: Remove.
19276 * config/mep/mep-pragma.c: Remove.
19277 * config/mep/mep-protos.h: Remove.
19278 * config/mep/mep.c: Remove.
19279 * config/mep/mep.cpu: Remove.
19280 * config/mep/mep.h: Remove.
19281 * config/mep/mep.md: Remove.
19282 * config/mep/mep.opt: Remove.
19283 * config/mep/predicates.md: Remove.
19284 * config/mep/t-mep: Remove.
19285 * doc/install.texi: Remove mep-* documentation.
19286 * doc/md.texi: Likewise.
19287
19288 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19289
19290 * config.gcc: Remove support for avr-rtems.
19291 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19292 * config/avr/rtems.h: Remove.
19293 * config/avr/t-rtems: Remove.
19294
19295 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19296
19297 * config.gcc: Remove m32r-rtems support.
19298 * config/m32r/rtems.h: Remove.
19299
19300 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19301
19302 * config.gcc: Remove h8300-rtems support.
19303 * config/h8300/rtems.h: Remove.
19304 * config/h8300/t-rtems: Remove.
19305
19306 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19307
19308 * config.gcc: Remove support for knetbsd.
19309 * configure.ac: Likewise.
19310 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19311 * config/knetbsd-gnu.h: Remove.
19312 * configure: Regenerate.
19313
19314 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19315
19316 * config.gcc: Remove support for openbsd 2 and 3.
19317 * config/openbsd-oldgas.h: Remove.
19318
19319 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19320
19321 * config.gcc: Remove interix support.
19322 * config/i386/i386-interix.h: Remove.
19323 * config/i386/interix.opt: Remove.
19324 * config/i386/t-interix: Remove.
19325 * configure: Regenerate.
19326 * configure.ac: Remove interix support.
19327 * doc/install.texi: Remove interix documentation.
19328
19329 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19330
19331 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19332 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19333 not defined.
19334
19335 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19336
19337 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19338 they are both PLACEHOLDER_EXPRs.
19339
19340 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19341
19342 * stor-layout.c (layout_type): Move setting complex MODE to
19343 layout_type, instead of setting it ahead of time by the caller.
19344 * tree.c (build_complex_type): Likewise.
19345
19346 2016-06-21 Martin Liska <mliska@suse.cz>
19347
19348 * predict.c (force_edge_cold): Replace imposisble with
19349 impossible.
19350
19351 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19352
19353 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19354 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19355
19356 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19357
19358 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19359
19360 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19361 Ilya Enkovich <ilya.enkovich@intel.com>
19362
19363 PR target/71549
19364 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19365 New member function to convert V1TImode register to SUBREG
19366 TImode in debug insn.
19367 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19368 after changing register mode to V1TImode.
19369
19370 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19371
19372 * config/aarch64/aarch64-cores.def (vulcan): New core.
19373 * config/aarch64/aarch64-tune.md: Regenerate.
19374 * doc/invoke.texi: Document vulcan as an available option.
19375
19376 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19377
19378 * cse.c (canon_asm_operands): New function extracted from...
19379 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19380 either standalone or member of a PARALLEL.
19381
19382 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19383
19384 PR target/30417
19385 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19386 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19387 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19388
19389 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19390
19391 PR target/71103
19392 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19393 constant addresses if can_create_pseudo_p.
19394
19395 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19396
19397 PR tree-optimization/71588
19398 * tree-ssa-strlen.c (valid_builtin_call): New function.
19399 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19400 it.
19401
19402 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19403
19404 PR middle-end/71581
19405 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19406 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19407 for conversion of scalar user var to complex type and use the
19408 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19409 punt.
19410
19411 PR rtl-optimization/71591
19412 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19413 don't run any tests.
19414
19415 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19416
19417 PR target/71571
19418 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19419 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19420 space for PIC with non-v32 and the common non-PIC "jump".
19421
19422 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19423
19424 PR target/71559
19425 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19426 returned values and add UN*/LTGT/*ORDERED cases with values matching
19427 D operand modifier on vcmp for AVX.
19428
19429 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19430
19431 * config/aarch64/aarch64.opt
19432 (mpc-relative-literal-loads): Rename internal option name.
19433 * config/aarch64/aarch64.c
19434 (aarch64_nopcrelative_literal_loads): Rename to
19435 aarch64_pcrelative_literal_loads.
19436 (aarch64_expand_mov_immediate): Likewise.
19437 (aarch64_secondary_reload): Likewise.
19438 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19439 (aarch64_override_options_after_change_1): Rename and simplify logic.
19440 (aarch64_classify_symbol): Merge large model checks into switch,
19441 remove pc-relative load check.
19442
19443 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19444
19445 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19446 costs relative to the cost of a register move.
19447
19448 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19449
19450 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19451 (vcvt_n_f64_u64): Likewise.
19452 (vcvt_n_s64_f64): Likewise.
19453 (vcvt_n_u64_f64): Likewise.
19454 (vcvt_f64_s64): Likewise.
19455 (vrecpe_f64): Likewise.
19456 (vcvt_f64_u64): Likewise.
19457 (vrecps_f64): Likewise.
19458
19459 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19460
19461 * config/aarch64/aarch64.md
19462 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19463 iterators.
19464 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19465 attributes.
19466 * config/aarch64/aarch64-builtins.c
19467 (aarch64_types_binop_uss_qualifiers): Delete.
19468 (TYPES_BINOP_USS): Likewise.
19469 (aarch64_types_binop_sus_qualifiers): Likewise.
19470 (TYPES_BINOP_SUS): Likewise.
19471 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19472 (TYPES_FCVTIMM_SUS): Likewise.
19473 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19474 rather than BINOP.
19475 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19476 (fcvtzs): Use SHIFTIMM rather than BINOP.
19477 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19478
19479 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19480
19481 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19482 costs relative to the cost of a register move.
19483
19484 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19485
19486 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19487 Allow scalar/single vector modes to be tieable.
19488
19489 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19490
19491 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19492
19493 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19494
19495 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19496 "alignement".
19497 * tree.h (TYPE_ALIGN): Likewise.
19498
19499 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19500
19501 PR target/71103
19502 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19503
19504 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19505
19506 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19507 literal" build warnings.
19508 (avr_print_operand_address): Dito.
19509
19510 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19511
19512 PR target/71375
19513 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19514 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19515
19516 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19517
19518 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19519
19520 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19521
19522 PR bootstrap/71435
19523 * reload1.c (reload): Pass 0 to finish_spills when called because
19524 update_eliminables_and_spill returns true and remove did_spill.
19525 (finish_spills): Adjust comment and document GLOBAL parameter.
19526
19527 2016-06-17 DJ Delorie <dj@redhat.com>
19528
19529 PR target/71338
19530 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19531 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19532 (umulqihi3_virt): Likewise.
19533 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19534 (umulqihi3_real): Likewise.
19535
19536 2016-06-17 Martin Liska <mliska@suse.cz>
19537
19538 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19539
19540 2016-06-17 Martin Liska <mliska@suse.cz>
19541
19542 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19543
19544 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19545
19546 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19547 __FAST_MATH__.
19548 (vaddq_f32): Likewise.
19549 (vmul_f32): Likewise.
19550 (vmulq_f32): Likewise.
19551 (vsub_f32): Likewise.
19552 (vsubq_f32): Likewise.
19553
19554 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19555
19556 PR tree-optimization/71347
19557 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19558 cost for all uses in group.
19559
19560 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19561
19562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19563 insert gimple seq if it's not empty.
19564
19565 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19566
19567 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19568 member OFFSET.
19569 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19570 rather than OFFSET.
19571 (comp_dr_with_seg_len_pair): Ditto.
19572 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19573 struct dr_with_seg_len_pair against DR_OFFSET.
19574 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19575 DR_OFFSET directly.
19576
19577 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19578
19579 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19580
19581 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19582
19583 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19584 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19585 (pa_output_millicode_call): Likewise.
19586 (pa_output_call): Likewise.
19587 (pa_output_indirect_call): Likewise.
19588 (pa_asm_output_mi_thunk): Likewise.
19589
19590 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19591
19592 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19593
19594 2016-06-16 Martin Liska <mliska@suse.cz>
19595
19596 * predict.c (combine_predictions_for_insn): When we find a first
19597 match predictor, we should consider just predictors with
19598 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19599 DS theory predictor.
19600 (combine_predictions_for_bb): Likewise.
19601
19602 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19603
19604 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19605 with base of reference to struct.
19606
19607 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19608
19609 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19610
19611 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19612
19613 PR target/71151
19614 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19615 progmem_swtable_section.
19616 (progmem_swtable_section): Remove.
19617 (avr_asm_function_rodata_section): Remove.
19618 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19619 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19620
19621 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19622
19623 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19624 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19625 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19626 signature_CENTAUR_ebx.
19627 * config/i386/i386.c (ix86_option_override_internal): Add
19628 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19629 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19630 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19631
19632 2016-06-16 Martin Liska <mliska@suse.cz>
19633
19634 * predict.def: Add fortran loop preheader predictor.
19635 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19636 fold IFN_BUILTIN_EXPECT with a known constant argument.
19637
19638 2016-06-16 Martin Liska <mliska@suse.cz>
19639
19640 * predict.def: Add 'Fortran' to display text of all
19641 PRED_FORTRAN_* predictors.
19642
19643 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19644
19645 PR target/71242
19646 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19647 [IA64_BUILTIN_NANSQ]: Ditto.
19648 (ia64_fold_builtin): New function.
19649 (TARGET_FOLD_BUILTIN): New define.
19650 (ia64_init_builtins) Declare const_string_type node.
19651 Add __builtin_nanq and __builtin_nansq builtin functions.
19652 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19653
19654 2016-06-16 Nick Clifton <nickc@redhat.com>
19655
19656 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19657 MSP430_HWMULT_ prefix to enum values.
19658 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19659 * config/msp430/msp430.c: Update use of enum values.
19660 * config/msp430/msp430.md: Likewise.
19661 * config/msp430/msp430.opt: Likewise.
19662
19663 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19664
19665 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19666 of comparsions in the last iteration.
19667
19668 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19669 Joern Rennecke <joern.rennecke@embecosm.com>
19670
19671 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19672 addresses.
19673 (arc_needs_pcl_p): Add GOTOFFPC.
19674 (arc_legitimate_pic_addr_p): Likewise.
19675 (arc_output_pic_addr_const): Likewise.
19676 (arc_legitimize_pic_address): Generate a pc-relative address using
19677 GOTOFFPC.
19678 (arc_output_libcall): Use @pcl syntax.
19679 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19680 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19681 (*movsi_insn): Use @pcl syntax.
19682 (doloop_begin_i): Likewise.
19683
19684 2016-06-16 Martin Liska <mliska@suse.cz>
19685
19686 * predict.def: Define a new predictor.
19687
19688 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19689
19690 * config/arc/arc.opt (mtp-regno): Update text.
19691
19692 2016-06-16 Renlin Li <renlin.li@arm.com>
19693
19694 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19695
19696 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19697
19698 PR target/71554
19699 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19700 (setcc + and peephole2): Likewise.
19701
19702 PR rtl-optimization/71532
19703 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19704 memory slots.
19705
19706 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19707
19708 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19709 DImode constants with XXSPLTIB in vector registers.
19710 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19711 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19712 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19713 extraction of the element at the top of the register as a scalar
19714 value.
19715 (vsx_extract_<mode>_internal1): Likewise.
19716 (vsx_extract_<mode>_internal2): Likewise.
19717 * config/rs6000/constraints.md (wi constraint): Remove a comment
19718 about DImode not being allowed in Altivec registers.
19719 (wB constraint): New constraint for constants that can be
19720 generated in Altivec registers with VSPLTISW/VUPKHSW.
19721 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19722 comments.
19723 (xxspltib_constant_nosplit): Likewise.
19724 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19725 support for -mupper-regs-di to enable DImode to go into Altivec
19726 registers.
19727 (POWERPC_MASKS): Likewise.
19728 (power7 cpu): Likewise.
19729 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19730 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19731 for DImode being allowed in Altivec registers. Update wi/wj
19732 constraints. Set scalar_in_vmx_p flag.
19733 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19734 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19735 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19736 (rs6000_opt_masks): Add -mupper-regs-di.
19737 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19738 direct move to use wi and not wj.
19739 (lfiwzx): Likewise.
19740 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19741 alternative.
19742 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19743 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19744 any VSX register, instead of just Altivec registers, to allow
19745 either operand to be an Altivec register or both.
19746 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19747 (movdi_internal32): Add support for -mupper-regs-di. Add support
19748 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19749 the alternatives and attributes to be lined up to be easier to
19750 read.
19751 (movdi_internal64): Likewise.
19752 (64-bit DImode splitters): Change predicates to only split loading
19753 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19754 load constants in ISA 3.0 or ISA 2.07 respectively.
19755 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19756 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19757 mention -mcpu=power9 sets these options.
19758 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19759 wB constraint.
19760
19761 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19762
19763 PR target/67353
19764 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19765 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19766 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19767 by default to warn misspelled interrupt/ signal handler.
19768 * doc/invoke.texi (AVR Options): Document it. Update description
19769 for -nodevicelib option.
19770
19771 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19772
19773 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19774 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19775 (aarch64_<sur>shll2_n<mode>): Likewise.
19776
19777 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19778
19779 PR middle-end/71529
19780 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19781 DECL_CONTEXT for copied arguments.
19782
19783 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19784
19785 PR tree-optimization/71483
19786 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19787 for slp
19788
19789 2016-06-15 Martin Liska <mliska@suse.cz>
19790
19791 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19792 instead of predict_edge w/o a probability.
19793
19794 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19795
19796 PR tree-optimization/71439
19797 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19798 live PHIs.
19799
19800 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19801
19802 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19803 register subregs in SET_SRC.
19804
19805 2016-06-15 Richard Biener <rguenther@suse.de>
19806
19807 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19808 store restrictions.
19809
19810 2016-06-15 Richard Biener <rguenther@suse.de>
19811
19812 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19813 not consider dependences between accesses that belong to the
19814 same group.
19815 (vect_analyze_data_ref_dependences): Do not analyze read-read
19816 or self-dependences.
19817
19818 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19819
19820 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19821 spellcheck.h.
19822 (find_closest_identifier): Reimplement in terms of
19823 best_match<tree,tree>.
19824 * spellcheck-tree.h: New file.
19825 * spellcheck.c (struct edit_distance_traits<const char *>): New
19826 struct.
19827 (find_closest_string): Reimplement in terms of
19828 best_match<const char *, const char *>.
19829 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19830 overload to spellcheck-tree.h.
19831 (find_closest_identifier): Likewise.
19832 (struct edit_distance_traits<T>): New template.
19833 (class best_match): New class.
19834
19835 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19836
19837 * selftest-run-tests.c (selftest::run_tests): Call
19838 selftest::spellcheck_tree_c_tests.
19839 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19840 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19841 (selftest::test_find_closest_identifier): New function.
19842 (selftest::spellcheck_tree_c_tests): New function.
19843 * spellcheck.c (selftest::test_find_closest_string): Verify that
19844 the order of the vec does not affect the results for this case.
19845 (selftest::test_data): New array.
19846 (selftest::test_metric_conditions): New function.
19847 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19848 Call selftest::test_metric_conditions.
19849
19850 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19851
19852 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19853 (BU_P9_MISC_1): Likewise.
19854 (BU_P9_64BIT_MISC_0): Likewise.
19855 (BU_P9_MISC_0): Likewise.
19856
19857 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19858
19859 * gcc-rich-location.c
19860 (gcc_rich_location::add_fixit_misspelled_id): New method.
19861 * gcc-rich-location.h
19862 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19863
19864 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19865
19866 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19867 FreeBSD 11 and above.
19868
19869 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19870
19871 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19872
19873 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19874
19875 * expmed.h: Close parenthesis in "at your option" in copyright
19876 boilerplate.
19877 * lower-subreg.h: Likewise.
19878
19879 2016-06-14 Richard Biener <rguenther@suse.de>
19880
19881 PR middle-end/71526
19882 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19883 if available.
19884
19885 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19886
19887 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19888 New function.
19889 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19890 mask+shift version.
19891 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19892 New prototype.
19893 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19894 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19895
19896 2016-06-14 Richard Biener <rguenther@suse.de>
19897
19898 PR tree-optimization/71522
19899 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19900 copying into float copying.
19901
19902 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19903
19904 PR tree-optimization/71520
19905 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19906 (replace_block_by): Move user labels from bb1 to bb2.
19907
19908 2016-06-14 Richard Biener <rguenther@suse.de>
19909
19910 PR middle-end/71310
19911 PR bootstrap/71510
19912 * expr.h (get_bit_range): Declare.
19913 * expr.c (get_bit_range): Export.
19914 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19915 word_mode again to constrain the bitfield access.
19916
19917 2016-06-14 Richard Biener <rguenther@suse.de>
19918
19919 PR tree-optimization/71521
19920 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19921 division int_const_binop against zero divisor.
19922
19923 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19924
19925 * config/i386/i386.md (signbittf2): New expander.
19926 * config/i386/sse.md (ptesttf2): New insn pattern.
19927
19928 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19929
19930 PR bootstrap/71481
19931 * input.c (selftest::test_reading_source_line): Avoid reading from
19932 __FILE__ by creating a tempfile with known content and reading
19933 from that instead.
19934
19935 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19936
19937 * pretty-print.c (assert_pp_format_colored): Skip the test if
19938 GCC_COLORS is set.
19939 (test_pp_format): Remove comment about GCC_COLORS.
19940
19941 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19942
19943 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19944 * pretty-print.c (assert_pp_format_va): Add location param and use
19945 it with ASSERT_STREQ_AT.
19946 (assert_pp_format): Add location param and pass it to
19947 assert_pp_format_va.
19948 (assert_pp_format_colored): Likewise.
19949 (ASSERT_PP_FORMAT_1): New.
19950 (ASSERT_PP_FORMAT_2): New.
19951 (ASSERT_PP_FORMAT_3): New.
19952 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19953 explicitly, or implicitly via the above macros.
19954 * selftest.c (selftest::pass): Use a selftest::location rather
19955 than file and line.
19956 (selftest::fail): Likewise. Print the function name.
19957 (selftest::fail_formatted): Likewise.
19958 (selftest::assert_streq): Use a selftest::location rather than
19959 file and line.
19960 * selftest.h (selftest::location): New struct.
19961 (SELFTEST_LOCATION): New macro.
19962 (selftest::pass): Accept a const location & rather than file
19963 and line.
19964 (selftest::fail): Likewise.
19965 (selftest::fail_formatted): Likewise.
19966 (selftest::assert_streq): Likewise.
19967 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19968 (ASSERT_FALSE): Likewise.
19969 (ASSERT_EQ): Likewise.
19970 (ASSERT_NE): Likewise.
19971 (ASSERT_STREQ): Likewise.
19972 (ASSERT_PRED1): Likewise.
19973 (ASSERT_STREQ_AT): New macro.
19974
19975 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19976
19977 * selftest.c (selftest::fail_formatted): New function.
19978 (selftest::assert_streq): New function.
19979 * selftest.h (selftests::fail_formatted): New decl.
19980 (selftest::assert_streq): New decl.
19981 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19982
19983 2016-06-13 Jeff Law <law@redhat.com>
19984
19985 PR tree-optimization/71403
19986 * tree-ssa-threadbackward.c
19987 (convert_and_register_jump_thread_path): No longer accept reference
19988 to path. Do not pop items off the path anymore.
19989 (fsm_find_control_statement_thread_paths): Do not allow threading
19990 to a deeper loop nest. Pop the last item off the path here rather
19991 than in convert_and_register_jump_thread_path.
19992
19993 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19994 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19995
19996 [AArch64] Emit division using the Newton series
19997
19998 * config/aarch64/aarch64-protos.h
19999 (cpu_approx_modes): Add new member "division".
20000 (aarch64_emit_approx_div): Declare new function.
20001 * config/aarch64/aarch64.c
20002 (generic_approx_modes): New member "division".
20003 (exynosm1_approx_modes): Likewise.
20004 (xgene1_approx_modes): Likewise.
20005 (aarch64_emit_approx_div): Define new function.
20006 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20007 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20008 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20009 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20010
20011 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20012 Wilco Dijkstra <wilco.dijkstra@arm.com>
20013
20014 [AArch64] Emit square root using the Newton series
20015
20016 * config/aarch64/aarch64-protos.h
20017 (aarch64_emit_approx_rsqrt): Replace with new function
20018 "aarch64_emit_approx_sqrt".
20019 (cpu_approx_modes): New member "sqrt".
20020 * config/aarch64/aarch64.c
20021 (generic_approx_modes): New member "sqrt".
20022 (exynosm1_approx_modes): Likewise.
20023 (xgene1_approx_modes): Likewise.
20024 (aarch64_emit_approx_rsqrt): Replace with new function
20025 "aarch64_emit_approx_sqrt".
20026 (aarch64_override_options_after_change_1): Handle new option.
20027 * config/aarch64/aarch64-simd.md
20028 (rsqrt<mode>2): Use new function instead.
20029 (sqrt<mode>2): New expansion and insn definitions.
20030 * config/aarch64/aarch64.md: Likewise.
20031 * config/aarch64/aarch64.opt
20032 (mlow-precision-sqrt): Add new option description.
20033 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20034
20035 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20036
20037 [AArch64] Add more choices for the reciprocal square root approximation
20038
20039 Allow a target to prefer such operation depending on the operation mode.
20040
20041 * config/aarch64/aarch64-protos.h
20042 (AARCH64_APPROX_MODE): New macro.
20043 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20044 (cpu_approx_modes): New structure.
20045 (tune_params): New member "approx_modes".
20046 * config/aarch64/aarch64-tuning-flags.def
20047 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20048 * config/aarch64/aarch64.c
20049 (generic_approx_modes): New core "cpu_approx_modes" structure.
20050 (exynosm1_approx_modes): Likewise.
20051 (xgene1_approx_modes): Likewise.
20052 (generic_tunings): New member "approx_modes".
20053 (cortexa35_tunings): Likewise.
20054 (cortexa53_tunings): Likewise.
20055 (cortexa57_tunings): Likewise.
20056 (cortexa72_tunings): Likewise.
20057 (exynosm1_tunings): Likewise.
20058 (thunderx_tunings): Likewise.
20059 (xgene1_tunings): Likewise.
20060 (use_rsqrt_p): New argument for the mode and use new member from
20061 "tune_params".
20062 (aarch64_builtin_reciprocal): Devise mode from builtin.
20063 (aarch64_optab_supported_p): New argument for the mode.
20064 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20065
20066 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20067
20068 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20069 RS6000_BTM_MODULO flag into the set of flags that are considered
20070 to be part of the common configuration.
20071
20072 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20073
20074 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20075 difference unsigned.
20076 (vec_absdb): New macro for vector absolute difference unsigned
20077 byte.
20078 (vec_absdh): New macro for vector absolute difference unsigned
20079 half-word.
20080 (vec_absdw): New macro for vector absolute difference unsigned word.
20081 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20082 (vadu<mode>3): New insn.
20083 (*p9_vadu<mode>3): New insn.
20084 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20085 definition.
20086 (vaduh): New built-in definition.
20087 (vaduw): New built-in definition.
20088 (vadu): New overloaded built-in definition.
20089 (vadub): New overloaded built-in definition.
20090 (vaduh): New overloaded built-in definition.
20091 (vaduw): New overloaded built-in definition.
20092 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20093 overloaded vector absolute difference unsigned functions.
20094 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20095 the ISA 3.0 vector absolute difference unsigned built-in functions.
20096
20097 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20098
20099 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20100 update shared_lookup_references only once after changing operands.
20101
20102 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20103
20104 PR middle-end/71373
20105 * tree-nested.c (convert_nonlocal_omp_clauses)
20106 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20107
20108 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20109 * tree.def (CASE_LABEL_EXPR): Likewise.
20110
20111 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20112
20113 PR bootstrap/71481
20114 * input.c (test_builtins): Fix an assertion.
20115
20116 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20117
20118 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20119 (paritysi2): Ditto.
20120 (isinfxf2): Ditto.
20121 (isinf<mode>2): Ditto.
20122
20123 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20124
20125 * ggc-tests.c (test_finalization): Only test need_finalization_p
20126 for GCC_VERSION >= 4003.
20127
20128 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20129
20130 * config/s390/vecintrin.h: Fix file description in comment.
20131
20132 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20133
20134 * config/s390/s390-builtin-types.def: Change builtin type naming
20135 scheme to match builtin-types.def.
20136
20137 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20138
20139 * fold-const.c (optimize_minmax_comparison): Remove.
20140 (fold_comparison): Remove call to the above.
20141 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20142 New transformations.
20143
20144 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20145
20146 PR tree-optimization/71416
20147 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20148 multiple entries
20149
20150 2016-06-13 Martin Liska <mliska@suse.cz>
20151
20152 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20153 (combine_predictions_for_insn): Likewise.
20154 (prune_predictions_for_bb): Likewise.
20155 (combine_predictions_for_bb): Likewise.
20156
20157 2016-06-13 Richard Biener <rguenther@suse.de>
20158
20159 PR tree-optimization/71505
20160 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20161 assert match comment.
20162
20163 2016-06-13 Marek Polacek <polacek@redhat.com>
20164
20165 PR middle-end/71476
20166 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20167 gimplify_switch_expr.
20168 (warn_switch_unreachable_r): New function.
20169
20170 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20171
20172 PR target/71379
20173 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20174 one.
20175
20176 2016-06-13 Richard Biener <rguenther@suse.de>
20177
20178 PR middle-end/64516
20179 * fold-const.c (fold_unary_loc): Preserve alignment when
20180 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20181
20182 2016-06-13 Martin Liska <mliska@suse.cz>
20183
20184 PR sanitizer/71458
20185 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20186 w/ -fsanitize=bounds.
20187
20188 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20189
20190 * config/i386/i386.c (ix86_init_builtins): Calculate
20191 FLOAT128_FTYPE_CONST_STRING function type only once.
20192 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20193 built-in functions are available for x86-32 and x86-64 targets.
20194
20195 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20196
20197 PR target/71241
20198 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20199 New primitive type.
20200 (FLOAT128_FTYPE_CONST_STRING): New function type.
20201 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20202 [IX86_BUILTIN_NANSQ]: Ditto.
20203 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20204 (ix86_init_builtin_types): Declare const_string_type_node.
20205 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20206 builtin functions.
20207 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20208 * doc/extend.texi (x86 Built-in Functions): Document
20209 __builtin_nanq and __builtin_nansq.
20210
20211 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20212
20213 PR target/71061
20214 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20215 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20216 length for pop patterns.
20217 (arm_attr_length_push_multi): Update comments.
20218 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20219 attribute.
20220 (*pop_multiple_with_writeback_and_return): Likewise.
20221 (*pop_multiple_with_return): Likewise.
20222
20223 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20224
20225 PR middle-end/71310
20226 * fold-const.c (optimize_bit_field_compare): Don't try to use
20227 word_mode unconditionally for reading the bit field, look at
20228 DECL_BIT_FIELD_REPRESENTATIVE instead.
20229
20230 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20231
20232 PR middle-end/71478
20233 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20234 vector integer type.
20235
20236 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20237
20238 PR middle-end/71494
20239 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20240 without LABEL_DECL, set *handled_ops_p to false instead of true.
20241
20242 2016-06-10 Martin Sebor <msebor@redhat.com>
20243
20244 PR c/71392
20245 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20246 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20247 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20248 them.
20249 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20250 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20251 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20252 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20253 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20254 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20255 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20256 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20257
20258 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20259
20260 * config/arm/arm.h (pool_vector_label,
20261 return_used_this_function): Remove.
20262
20263 2016-06-10 Jeff Law <law@redhat.com>
20264
20265 PR tree-optimization/71335
20266 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20267 zero length paths here.
20268 (convert_and_register_jump_thread_path): Remove hacks related to
20269 duplicated blocks in the jump thread path.
20270 (fsm_find_control_statement_thread_paths): Avoid putting the same
20271 block on the thread path twice, but ensure the thread path is
20272 unchanged from the caller's point of view.
20273
20274 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20275
20276 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20277 * predict.def (PRED_LOOP_BRANCH): Remove.
20278
20279 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20280
20281 * Makefile.in (OBJS): Add ggc-tests.o.
20282 (GTFILES): Add ggc-tests.c.
20283 * ggc-tests.c: New file.
20284 * selftest-run-tests.c (selftest::run_tests): Call
20285 selftest::ggc_tests_c_tests.
20286 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20287
20288 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20289
20290 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20291
20292 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20293
20294 PR sanitizer/71480
20295 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20296 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20297
20298 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20299
20300 * profile.c: Include cfgloop.h.
20301 (branch_prob): Compute estimated number of iterations.
20302 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20303 recompute estimate number of iterations from profile.
20304
20305 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20306
20307 PR inline-asm/68843
20308 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20309 must be grouped on top of stack. Don't force early clobber
20310 on ordinary reg outputs.
20311
20312 2016-06-10 Richard Biener <rguenther@suse.de>
20313
20314 * targhooks.c (default_builtin_vectorization_cost): Adjust
20315 vec_construct cost.
20316
20317 2016-06-10 Richard Biener <rguenther@suse.de>
20318
20319 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20320 to fold the RHS to a constant if possible.
20321
20322 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20323
20324 PR middle-end/71373
20325 * tree-nested.c (convert_nonlocal_omp_clauses)
20326 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20327 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20328 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20329
20330 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20331 OMP_CLAUSE_TILE.
20332 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20333
20334 * omp-low.c (scan_sharing_clauses): Don't expect
20335 OMP_CLAUSE__CACHE_.
20336
20337 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20338
20339 PR tree-optimization/71407
20340 PR tree-optimization/71416
20341 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20342 BIT_FIELD_REF type.
20343
20344 2016-06-10 Richard Biener <rguenther@suse.de>
20345
20346 PR middle-end/71477
20347 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20348
20349 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20350
20351 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20352
20353 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20354 Jiong Wang <jiong.wang@arm.com>
20355
20356 PR rtl-optimization/70751
20357 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20358 spilled into memory.
20359
20360 2016-06-09 Jonathan Yong <10walls@gmail.com>
20361
20362 Revert:
20363 2015-09-21 Jonathan Yong <10walls@gmail.com>
20364
20365 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20366 sysroot/usr/lib/32api for additional win32 libraries,
20367 fixes failing Cygwin bootstrapping.
20368
20369 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20370
20371 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20372 Delete.
20373
20374 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20375
20376 PR bootstrap/71471
20377 * pretty-print.c (pp_indent): Specify that %p is printed in a
20378 host-dependent manner.
20379 (test_pp_format): Remove the test for %p.
20380
20381 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20382
20383 * config/mips/mips.c (mips_output_jump): Fix formatting.
20384
20385 2016-06-09 Richard Biener <rguenther@suse.de>
20386
20387 PR tree-optimization/71462
20388 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20389 removed blocks.
20390
20391 2016-06-09 Martin Liska <mliska@suse.cz>
20392
20393 * predict.c (dump_prediction): Add new argument.
20394 (enum predictor_reason): New enum.
20395 (struct predictor_hash): New struct.
20396 (predictor_hash::hash): New function.
20397 (predictor_hash::equal): Likewise.
20398 (not_removed_prediction_p): New function.
20399 (prune_predictions_for_bb): Likewise.
20400 (combine_predictions_for_bb): Prune predictions.
20401
20402 2016-06-09 Martin Liska <mliska@suse.cz>
20403
20404 * predict.c (filter_predictions): New function.
20405 (remove_predictions_associated_with_edge): Use the filter
20406 function.
20407 (equal_edge_p): New function.
20408
20409 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20410
20411 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20412 Correct usage of @samp vs @option, add @samp where appropriate.
20413 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20414 Add armv6s-m and document it, as it is no official ARM name.
20415
20416 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20417
20418 * ifcvt.c (struct noce_if_info): Add transform_name field.
20419 (noce_try_move): Set if_info->transform_name to the function name.
20420 (noce_try_ifelse_collapse): Likewise.
20421 (noce_try_store_flag): Likewise.
20422 (noce_try_inverse_constants): Likewise.
20423 (noce_try_store_flag_constants): Likewise.
20424 (noce_try_addcc): Likewise.
20425 (noce_try_store_flag_mask): Likewise.
20426 (noce_try_cmove): Likewise.
20427 (noce_try_cmove_arith): Likewise.
20428 (noce_try_minmax): Likewise.
20429 (noce_try_abs): Likewise.
20430 (noce_try_sign_mask): Likewise.
20431 (noce_try_bitop): Likewise.
20432 (noce_convert_multiple_sets): Likewise.
20433 (noce_process_if_block): Print if_info->transform_name to
20434 dump_file if transformation succeeded.
20435
20436 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20437
20438 * config/arm/cortex-a57.md (cortex_a57_alu):
20439 Handle csel type.
20440
20441 2016-06-08 Martin Sebor <msebor@redhat.com>
20442 Jakub Jelinek <jakub@redhat.com>
20443
20444 PR c++/70507
20445 PR c/68120
20446 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20447 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20448 * builtins.c: Include gimple-fold.h.
20449 (fold_builtin_arith_overflow): Handle
20450 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20451 (fold_builtin_3): Likewise.
20452 * doc/extend.texi (Integer Overflow Builtins): Document
20453 __builtin_{add,sub,mul}_overflow_p.
20454
20455 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20456
20457 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20458 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20459
20460 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20461
20462 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20463 Rewrite, looking one level down for records and arrays.
20464
20465 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20466
20467 * pretty-print.c: Include "selftest.h".
20468 (pp_format): Fix comment.
20469 (identifier_to_locale): Likewise.
20470 (selftest::test_basic_printing): New function.
20471 (selftest::assert_pp_format): New function.
20472 (selftest::test_pp_format): New function.
20473 (selftest::pretty_print_c_tests): New function.
20474 * selftest-run-tests.c (selftest::run_tests): Call
20475 selftest::pretty_print_c_tests.
20476 * selftest.h (pretty_print_c_tests): New declaration.
20477
20478 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20479
20480 * invoke.texi (max-loop-headers-insns): Document.
20481 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20482 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20483 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20484
20485 2016-06-08 Richard Biener <rguenther@suse.de>
20486
20487 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20488 on strided SLP loads and fall back to scalar loads in case
20489 we can't chunk them.
20490
20491 2016-06-08 Richard Biener <rguenther@suse.de>
20492
20493 PR tree-optimization/71452
20494 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20495 type used for the SSA rewrite has enough precision to cover
20496 the dynamic type of the location.
20497
20498 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20499 Richard Biener <rguenther@suse.de>
20500
20501 PR c++/71448
20502 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20503 the same as DECL_P (base0) for indirect_base0. Use equality_code
20504 in one further place.
20505
20506 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20507
20508 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20509 to one word if the field is known to overlap other words.
20510 (extract_bit_field_1): Likewise.
20511 (store_split_bit_field): Remove compensating code.
20512 (extract_split_bit_field): Likewise.
20513
20514 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20515
20516 PR debug/71432
20517 PR ada/71413
20518 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20519
20520 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20521
20522 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20523 VDQF.
20524 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20525 (arch64_addpv4sf): Delete.
20526 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20527 "gen_aarch64_addpv4sf".
20528 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20529 builtin.
20530 (vpadds_f32): Likewise.
20531 (vpaddq_f32): Likewise.
20532 (vpaddq_f64): Likewise.
20533
20534 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20535
20536 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20537 VALLF.
20538 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20539 to VALLF. Rename to "fabd<mode>3".
20540 "*fabd_scalar<mode>3): Delete.
20541 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20542 Use builtin.
20543 (vabdd_f64): Likewise.
20544 (vabd_f32): Likewise.
20545 (vabd_f64): Likewise.
20546 (vabdq_f32): Likewise.
20547 (vabdq_f64): Likewise.
20548
20549 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20550
20551 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20552 VALLF.
20553 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20554 "aarch64_rsqrts<mode>".
20555 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20556 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20557 builtin.
20558 (vrsqrtsd_f64): Likewise.
20559 (vrsqrts_f32): Likewise.
20560 (vrsqrts_f64): Likewise.
20561 (vrsqrtsq_f32): Likewise.
20562 (vrsqrtsq_f64): Likewise.
20563
20564 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20565
20566 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20567 VALLF.
20568 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20569 "aarch64_rsqrte<mode>".
20570 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20571 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20572 builtin.
20573 (vrsqrted_f64): Likewise.
20574 (vrsqrte_f32): Likewise.
20575 (vrsqrte_f64): Likewise.
20576 (vrsqrteq_f32): Likewise.
20577 (vrsqrteq_f64): Likewise.
20578
20579 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20580
20581 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20582 (ucvtf): Likewise.
20583 (fcvtzs): Likewise.
20584 (fcvtzu): Likewise.
20585 * config/aarch64/aarch64-simd.md
20586 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20587 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20588 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20589 Use builtin.
20590 (vcvt_n_f32_u32): Likewise.
20591 (vcvt_n_s32_f32): Likewise.
20592 (vcvt_n_u32_f32): Likewise.
20593 (vcvtq_n_f32_s32): Likewise.
20594 (vcvtq_n_f32_u32): Likewise.
20595 (vcvtq_n_f64_s64): Likewise.
20596 (vcvtq_n_f64_u64): Likewise.
20597 (vcvtq_n_s32_f32): Likewise.
20598 (vcvtq_n_s64_f64): Likewise.
20599 (vcvtq_n_u32_f32): Likewise.
20600 (vcvtq_n_u64_f64): Likewise.
20601 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20602 (VSDQ_SDI): Likewise.
20603 (fcvt_target): Support V4DI, V4SI and V2SI.
20604 (FCVT_TARGET): Likewise.
20605
20606 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20607
20608 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20609 (TYPES_BINOP_SUS): Likewise.
20610 (aarch64_simd_builtin_data): Update include file name.
20611 (aarch64_builtins): Likewise.
20612 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20613 for conversion between scalar float-point and fixed-point.
20614 (ucvtf): Likewise.
20615 (fcvtzs): Likewise.
20616 (fcvtzu): Likewise.
20617 * config/aarch64/aarch64.md
20618 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20619 pattern for conversion between scalar float to fixed-pointer.
20620 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20621 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20622 (UNSPEC_FCVTZU): Likewise.
20623 (UNSPEC_SCVTF): Likewise.
20624 (UNSPEC_UCVTF): Likewise.
20625 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20626 Use builtin.
20627 (vcvtd_n_f64_u64): Likewise.
20628 (vcvtd_n_s64_f64): Likewise.
20629 (vcvtd_n_u64_f64): Likewise.
20630 (vcvtd_n_f32_s32): Likewise.
20631 (vcvts_n_f32_u32): Likewise.
20632 (vcvtd_n_s32_f32): Likewise.
20633 (vcvts_n_u32_f32): Likewise.
20634 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20635 mapping.
20636 (FCVT_TARGET): Likewise.
20637 (FCVT_FIXED2F): New iterator.
20638 (FCVT_F2FIXED): Likewise.
20639 (fcvt_fixed_insn): New define_int_attr.
20640
20641 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20642
20643 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20644 some statements was removed.
20645
20646 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20647
20648 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20649 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20650 (vect_can_advance_ivs_p): likewise.
20651 (vect_update_ivs_after_vectorizer): likewise.
20652 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20653 (vect_analyze_scalar_cycles_1): likewise.
20654 (vect_analyze_loop_operations): likewise.
20655 (report_vect_op): likewise.
20656 (vect_is_slp_reduction): likewise.
20657 (vect_is_simple_reduction): likewise.
20658 (get_initial_def_for_induction): likewise.
20659 (vect_transform_loop): likewise.
20660 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20661 (vect_recog_sad_pattern): likewise.
20662 (vect_recog_widen_sum_pattern): likewise.
20663 (vect_recog_widening_pattern): likewise.
20664 (vect_recog_divmod_pattern): likewise.
20665 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20666 (vect_analyze_slp_instance): likewise.
20667 (vect_transform_slp_perm_load): likewise.
20668 (vect_schedule_slp_instance): likewise.
20669
20670 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20671
20672 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20673 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20674 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20675 (PRED_LOOP_BRANCH): Document predictor as broken.
20676 (PRED_LOOP_EXIT): Change hitrate 91->92.
20677 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20678 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20679 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20680 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20681 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20682 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20683 (PRED_CALL): Chane hitrate 71->67.
20684 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20685 (PRED_GOTO): Document as unused right now.
20686 (PRED_CONST_RETURN): Change hitrate 67->69
20687 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20688 (PRED_NULL_RETURN): Change hitrate 91->90.
20689 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20690 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20691 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20692
20693 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20694
20695 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20696 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20697 special case Altivec builtin.
20698 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20699 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20700 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20701 code for ALTIVEC_BUILTIN_VEC_MUL.
20702 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20703 for __builtin_vec_mul.
20704
20705 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20706
20707 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20708 -mno-htm.
20709
20710 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20711
20712 * spellcheck.c (selftest::test_find_closest_string): New function.
20713 (spellcheck_c_tests): Call the above.
20714
20715 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20716
20717 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20718
20719 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20720
20721 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20722 Yv=Yv,C alternatives.
20723
20724 2016-06-07 Richard Biener <rguenther@suse.de>
20725
20726 PR c/61564
20727 * common.opt (ffast-math): Make Optimization.
20728
20729 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20730 Prachi Godbole <prachi.godbole@imgtec.com>
20731
20732 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20733 `fabs' and `fneg' type attributes.
20734 (p5600_fpu_fabs): Add `fmove' to the comment.
20735
20736 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20737
20738 * gimple.c: Include builtins.h
20739 (gimple_inexpensive_call_p): New function.
20740 * gimple.h (gimple_inexpensive_call_p): Declare.
20741 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20742 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20743 fix formatting.
20744
20745 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20746
20747 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20748 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20749 warning_at_rich_loc, warning_n, pedwarn, permerror,
20750 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20751 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20752 Use the above.
20753
20754 2016-06-07 Richard Biener <rguenther@suse.de>
20755
20756 PR tree-optimization/71428
20757 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20758 BIT_FIELD_REF op vs. load.
20759
20760 2016-06-07 Richard Biener <rguenther@suse.de>
20761
20762 PR middle-end/71423
20763 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20764 for signed ops.
20765
20766 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20767
20768 * config/pa/pa.md (call): Generate indirect long calls to non-local
20769 functions on TARGET_64BIT.
20770 (call_value): Likewise.
20771
20772 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20773
20774 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20775 pattern and subsequent splitters.
20776 (call_val_reg_64bit_post_reload): Likewise.
20777
20778 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20779
20780 PR middle-end/71408
20781 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20782 propagate_op_to_single_use.
20783
20784 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20785
20786 PR middle-end/71281
20787 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20788
20789 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20790
20791 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20792 (enum x86_dirflag_state): New enum.
20793 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20794 (machine_function): Remove needs_cld.
20795 (ix86_current_function_needs_cld): Remove.
20796 * config/i386/i386.c (ix86_set_func_type): Set
20797 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20798 (ix86_expand_prologue): Do not emit CLD here.
20799 (ix86_dirflag_mode_needed): New function.
20800 (ix86_dirflag_mode_entry): Ditto.
20801 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20802 (ix86_mode_after): Ditto.
20803 (ix86_mode_entry): Ditto.
20804 (ix86_mode_exit): Ditto.
20805 (ix86_emit_mode_set): Ditto.
20806 * config/i386/i386.md (strmov_singleop): Set
20807 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20808 Do not set ix86_current_function_needs_cld.
20809 (rep_mov): Ditto.
20810 (strset_singleop): Ditto.
20811 (rep_stos): Ditto.
20812 (cmpstrnqi_nz_1): Ditto.
20813 (cmpstrnqi_1): Ditto.
20814 (strlenqi_1): Ditto.
20815
20816 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20817
20818 PR tree-optimization/71259
20819 * tree-vect-slp.c (vect_get_constant_vectors): For
20820 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20821 one for constant op, and use COND_EXPR for non-constant.
20822
20823 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20824
20825 * Makefile.in (OBJS): Add function-tests.o,
20826 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20827 selftest-run-tests.o.
20828 (OBJS-libcommon): Add selftest.o.
20829 (OBJS-libcommon-target): Add selftest.o.
20830 (all.internal): Add "selftest".
20831 (all.cross): Likewise.
20832 (selftest): New phony target.
20833 (s-selftest): New target.
20834 (selftest-gdb): New phony target.
20835 (COLLECT2_OBJS): Add selftest.o.
20836 * bitmap.c: Include "selftest.h".
20837 (selftest::test_gc_alloc): New function.
20838 (selftest::test_set_range): New function.
20839 (selftest::test_clear_bit_in_middle): New function.
20840 (selftest::test_copying): New function.
20841 (selftest::test_bitmap_single_bit_set_p): New function.
20842 (selftest::bitmap_c_tests): New function.
20843 * common.opt (fself-test): New.
20844 * diagnostic-show-locus.c: Include "selftest.h".
20845 (make_range): New function.
20846 (test_range_contains_point_for_single_point): New function.
20847 (test_range_contains_point_for_single_line): New function.
20848 (test_range_contains_point_for_multiple_lines): New function.
20849 (assert_eq): New function.
20850 (test_get_line_width_without_trailing_whitespace): New function.
20851 (selftest::diagnostic_show_locus_c_tests): New function.
20852 * et-forest.c: Include "selftest.h".
20853 (selftest::test_single_node): New function.
20854 (selftest::test_simple_tree): New function.
20855 (selftest::test_disconnected_nodes): New function.
20856 (selftest::et_forest_c_tests): New function.
20857 * fold-const.c: Include "selftest.h".
20858 (selftest::assert_binop_folds_to_const): New function.
20859 (selftest::assert_binop_folds_to_nonlvalue): New function.
20860 (selftest::test_arithmetic_folding): New function.
20861 (selftest::fold_const_c_tests): New function.
20862 * function-tests.c: New file.
20863 * gimple.c: Include "selftest.h".
20864 Include "gimple-pretty-print.h".
20865 (selftest::verify_gimple_pp): New function.
20866 (selftest::test_assign_single): New function.
20867 (selftest::test_assign_binop): New function.
20868 (selftest::test_nop_stmt): New function.
20869 (selftest::test_return_stmt): New function.
20870 (selftest::test_return_without_value): New function.
20871 (selftest::gimple_c_tests): New function.
20872 * hash-map-tests.c: New file.
20873 * hash-set-tests.c: New file.
20874 * input.c: Include "selftest.h".
20875 (selftest::assert_loceq): New function.
20876 (selftest::test_accessing_ordinary_linemaps): New function.
20877 (selftest::test_unknown_location): New function.
20878 (selftest::test_builtins): New function.
20879 (selftest::test_reading_source_line): New function.
20880 (selftest::input_c_tests): New function.
20881 * rtl-tests.c: New file.
20882 * selftest-run-tests.c: New file.
20883 * selftest.c: New file.
20884 * selftest.h: New file.
20885 * spellcheck.c: Include "selftest.h".
20886 (selftest::levenshtein_distance_unit_test_oneway): New function,
20887 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20888 (selftest::levenshtein_distance_unit_test): Likewise.
20889 (selftest::spellcheck_c_tests): Likewise.
20890 * toplev.c: Include selftest.h.
20891 (toplev::run_self_tests): New.
20892 (toplev::main): Handle -fself-test.
20893 * toplev.h (toplev::run_self_tests): New.
20894 * tree.c: Include "selftest.h".
20895 (selftest::test_integer_constants): New function.
20896 (selftest::test_identifiers): New function.
20897 (selftest::test_labels): New function.
20898 (selftest::tree_c_tests): New function.
20899 * tree-cfg.c: Include "selftest.h".
20900 (selftest::push_fndecl): New function.
20901 (selftest::test_linear_chain): New function.
20902 (selftest::test_diamond): New function.
20903 (selftest::test_fully_connected): New function.
20904 (selftest::tree_cfg_c_tests): New function.
20905 * vec.c: Include "selftest.h".
20906 (selftest::safe_push_range): New function.
20907 (selftest::test_quick_push): New function.
20908 (selftest::test_safe_push): New function.
20909 (selftest::test_truncate): New function.
20910 (selftest::test_safe_grow_cleared): New function.
20911 (selftest::test_pop): New function.
20912 (selftest::test_safe_insert): New function.
20913 (selftest::test_ordered_remove): New function.
20914 (selftest::test_unordered_remove): New function.
20915 (selftest::test_block_remove): New function.
20916 (selftest::reverse_cmp): New function.
20917 (selftest::test_qsort): New function.
20918 (selftest::vec_c_tests): New function.c.
20919 * wide-int.cc: Include selftest.h and wide-int-print.h.
20920 (selftest::from_int <wide_int>): New function.
20921 (selftest::from_int <offset_int>): New function.
20922 (selftest::from_int <widest_int>): New function.
20923 (selftest::assert_deceq): New function.
20924 (selftest::assert_hexeq): New function.
20925 (selftest::test_printing <VALUE_TYPE>): New function template.
20926 (selftest::test_ops <VALUE_TYPE>): New function template.
20927 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20928 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20929 template.
20930 (selftest::wide_int_cc_tests): New function.
20931
20932 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20933
20934 PR middle-end/37780
20935 * ifcvt.c (noce_try_ifelse_collapse): New function.
20936 Declare prototype.
20937 (noce_process_if_block): Call noce_try_ifelse_collapse.
20938 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20939 (simplify_ternary_operation): Use the above to simplify
20940 conditional CLZ/CTZ expressions.
20941
20942 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20943
20944 PR middle-end/37780
20945 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20946 define_insn_and_split.
20947
20948 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20949
20950 PR middle-end/37780
20951 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20952
20953 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20954
20955 PR c/24414
20956 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20957 Implicitly clobber memory for basic asm with non-empty assembler
20958 string. Use targetm.md_asm_adjust also here.
20959 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20960 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20961 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20962 non-empty assembler string.
20963 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20964 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20965 (decode_asm_operands): Handle basic asm in PARALLEL block.
20966 (extract_insn): Handle basic asm in PARALLEL block.
20967 * doc/extend.texi: Mention new behavior of basic asm.
20968 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20969 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20970 branch_needs_nop_p): Use asm_noperands.
20971
20972 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20973
20974 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20975 Include the M7 SPARC DFA scheduler.
20976 New attribute v3pipe.
20977 Annotate insns with v3pipe where appropriate.
20978 Define cpu_feature vis4.
20979 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20980 Add (V8QI "8") to vbits.
20981 Add insns {add,sub}v8qi3
20982 Add insns ss{add,sub}v8qi3
20983 Add insns us{add,sub}{v8qi,v4hi}3
20984 Add insns {min,max}{v8qi,v4hi,v2si}3
20985 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20986 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20987 * config/sparc/niagara4.md: Add a comment explaining the
20988 discrepancy between the documented latenty numbers and the
20989 implemented ones.
20990 * config/sparc/niagara7.md: New file.
20991 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20992 supports SPARC5 and VIS 4.0 instructions.
20993 * configure: Regenerate.
20994 * config.in: Likewise.
20995 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20996 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20997 TARGET_CPU_niagara7.
20998 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20999 (CPP_CPU_SPEC): Handle niagara7.
21000 (ASM_CPU_SPEC): Likewise.
21001 * config/sparc/sparc-opts.h (processor_type): Add
21002 PROCESSOR_NIAGARA7.
21003 (mvis4): New option.
21004 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21005 (AS_NIAGARA7_FLAG): Define.
21006 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21007 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21008 (CPP_CPU_SPEC): Handle niagara7.
21009 (ASM_CPU_SPEC): Likewise.
21010 * config/sparc/sparc.c (niagara7_costs): Define.
21011 (sparc_option_override): Handle niagara7 and adjust cache-related
21012 parameters with better values for niagara cpus. Also support VIS4.
21013 (sparc32_initialize_trampoline): Likewise.
21014 (sparc_use_sched_lookahead): Likewise.
21015 (sparc_issue_rate): Likewise.
21016 (sparc_register_move_cost): Likewise.
21017 (dump_target_flag_bits): Support VIS4.
21018 (sparc_vis_init_builtins): Likewise.
21019 (sparc_builtins): Likewise.
21020 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21021 VIS4 4.0.
21022 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21023 UltraSparc M7.
21024 * config/sparc/sparc.opt (sparc_processor_type): New value
21025 niagara7.
21026 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21027 VIS4 builtins.
21028 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21029 -mvis4.
21030 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21031 VIS4 builtins.
21032
21033 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21034
21035 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21036
21037 2016-06-06 Richard Biener <rguenther@suse.de>
21038
21039 PR tree-optimization/71398
21040 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21041 remove edges.
21042
21043 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21044
21045 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21046 ft32_expand_prolog, ft32_expand_epilogue):
21047 Handle pretend_args.
21048 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21049 * config/ft32/ft32.md: Add pretend_returner.
21050
21051 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21052
21053 PR target/71389
21054 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21055 Copy op1 RTX to avoid invalid sharing.
21056 (ix86_expand_vector_move_misalign): Ditto.
21057
21058 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21059
21060 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21061 ATTRIBUTE_UNUSED.
21062
21063 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21064
21065 * predict.c (predicted_by_loop_heuristics_p): New function.
21066 (predict_iv_comparison): Use it.
21067 (predict_loops): Walk from innermost loops; do not predict edges
21068 leaving multiple loops multiple times; implement
21069 PRED_LOOP_ITERATIONS_MAX heuristics.
21070 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21071
21072 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21073
21074 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21075 only edges out of BB are EH edges.
21076
21077 2016-06-04 Martin Sebor <msebor@redhat.com>
21078 Marcin Baczyński <marbacz@gmail.com>
21079
21080 PR c/48116
21081 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21082 a void expression in a void function.
21083
21084 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21085
21086 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21087 aux; dump reasons of decisions.
21088 (should_duplicate_loop_header_p): Likewise.
21089 (do_while_loop_p): Likewise.
21090 (ch_base::copy_headers): Dump asi num insns duplicated.
21091
21092 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21093
21094 PR tree-optimization/71405
21095 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21096 incompatible type, build a new clobber with the right type instead
21097 of building a VIEW_CONVERT_EXPR around it.
21098
21099 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21100
21101 PR tree-optimization/52171
21102 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21103 by_pieces_ninsns instead of move_by_pieces_ninsns.
21104
21105 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21106
21107 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21108 for reg+reg addressing mode.
21109
21110 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21111
21112 * rs6000-c.c (c/c-tree.h): Add #include.
21113 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21114 in C++ when found in the base position of vec_ld or vec_st.
21115
21116 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21117
21118 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21119 use of profile unless profile status is PROFILE_READ.
21120 * profile.c (compute_branch_probabilities): Set profile status
21121 only after reporting predictor hitrates.
21122
21123 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21124
21125 PR target/71276
21126 PR target/71277
21127 * common.opt (ffp-int-builtin-inexact): New option.
21128 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21129 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21130 (ceil@var{m}2): Document dependence on this option.
21131 * ipa-inline-transform.c (inline_call): Handle
21132 flag_fp_int_builtin_inexact.
21133 * ipa-inline.c (can_inline_edge_p): Likewise.
21134 * config/i386/i386.md (rintxf2): Do not test
21135 flag_unsafe_math_optimizations.
21136 (rint<mode>2_frndint): New define_insn.
21137 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21138 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21139 for 387 instead of extending and truncating.
21140 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21141 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21142 Change to frndint<mode>2_<rounding>.
21143 (frndintxf2_<rounding>_i387): Likewise. Change to
21144 frndint<mode>2_<rounding>_i387.
21145 (<rounding_insn>xf2): Likewise.
21146 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21147 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21148 x87. Test TARGET_ROUND || !flag_trapping_math ||
21149 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21150 SSE. Use ROUND_NO_EXC in constant operand of
21151 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21152 for 387 instead of extending and truncating.
21153
21154 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21155 Julia Koval <julia.koval@intel.com>
21156
21157 PR target/66960
21158 PR target/67630
21159 PR target/67634
21160 PR target/67841
21161 PR target/68037
21162 PR target/68618
21163 PR target/68661
21164 PR target/69575
21165 PR target/69596
21166 PR target/69734
21167 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21168 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21169 all registers, except for function return registers if there are
21170 no caller-saved registers.
21171 (ix86_set_func_type): New function.
21172 (ix86_set_current_function): Call ix86_set_func_type to set
21173 no_caller_saved_registers and func_type. Call reinit_regs if
21174 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21175 nor x87 instructions in interrupt handler nor function with
21176 no_caller_saved_registers attribute.
21177 (ix86_function_ok_for_sibcall): Return false if there are no
21178 caller-saved registers.
21179 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21180 handler.
21181 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21182 (ix86_function_arg): Return special arguments in interrupt handler.
21183 (ix86_promote_function_mode): Promote pointer to word_mode only
21184 for normal functions.
21185 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21186 interrupt handler.
21187 (ix86_epilogue_uses): New function.
21188 (ix86_hard_regno_scratch_ok): Likewise.
21189 (ix86_save_reg): Preserve all registers in interrupt handler
21190 after reload. Preserve all registers, except for function return
21191 registers, if there are no caller-saved registers after reload.
21192 (find_drap_reg): Always use callee-saved register if there are
21193 no caller-saved registers.
21194 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21195 for interrupt handler.
21196 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21197 Emit cld instruction if stringops are used in interrupt handler
21198 or interrupt handler isn't a leaf function.
21199 (ix86_expand_epilogue): Generate interrupt return for interrupt
21200 handler and pop the 'ERROR_CODE' off the stack before interrupt
21201 return in exception handler.
21202 (ix86_expand_call): Disallow calling interrupt handler directly.
21203 If there are no caller-saved registers, mark all registers that
21204 are clobbered by the call which returns as clobbered.
21205 (ix86_handle_no_caller_saved_registers_attribute): New function.
21206 (ix86_handle_interrupt_attribute): Likewise.
21207 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21208 attributes.
21209 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21210 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21211 accumulation in interrupt function if stack may be realigned to
21212 avoid DRAP.
21213 (EPILOGUE_USES): New.
21214 (function_type): New enum.
21215 (machine_function): Add func_type and no_caller_saved_registers.
21216 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21217 (interrupt_return): New pattern.
21218 * doc/extend.texi: Document x86 interrupt and
21219 no_caller_saved_registers attributes.
21220
21221 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21222
21223 PR tree-optimization/52171
21224 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21225 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21226 Look for constant strings. Move some code to emit_block_cmp_hints
21227 and use it.
21228 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21229 * defaults.h (COMPARE_MAX_PIECES): New macro.
21230 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21231 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21232 (clear_by_pieces_1): Don't declare. Move definition before use.
21233 (can_do_by_pieces): New static function.
21234 (can_move_by_pieces): Use it. Return bool.
21235 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21236 OP. All callers changed. Handle COMPARE_BY_PIECES.
21237 (class pieces_addr); New.
21238 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21239 pieces_addr::adjust, pieces_addr::increment_address,
21240 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21241 functions for it.
21242 (class op_by_pieces_d): New.
21243 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21244 functions for it.
21245 (class move_by_pieces_d, class compare_by_pieces_d,
21246 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21247 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21248 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21249 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21250 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21251 compare_by_pieces_d::finish_mode): New member functions.
21252 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21253 functions.
21254 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21255 (emit_block_cmp_hints): New function.
21256 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21257 use the newly defined classes.
21258 * expr.h (by_pieces_constfn): New typedef.
21259 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21260 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21261 (move_by_pieces_ninsns): Don't declare.
21262 (can_move_by_pieces): Change return value to bool.
21263 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21264 (compare_by_pieces_branch_ratio): New hook.
21265 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21266 (by_pieces_ninsns): Declare.
21267 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21268 COMPARE_BY_PIECES.
21269 (default_compare_by_pieces_branch_ratio): New function.
21270 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21271 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21272 * doc/tm.texi: Regenerate.
21273 * tree-ssa-strlen.c: Include "builtins.h".
21274 (handle_builtin_memcmp): New static function.
21275 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21276 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21277
21278 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21279
21280 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21281 relevant stmts which are simple and invariant.
21282 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21283 instead of simple and invariant
21284
21285 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21286
21287 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21288 (vectorizable_reduction): Check for new relevant state.
21289 (vectorizable_live_operation): vectorize live stmts using
21290 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21291 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21292 (vect_stmt_relevant_p): Check for stmts which are only used live.
21293 (process_use): Use of a stmt does not inherit it's live value.
21294 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21295 (vect_analyze_stmt): Check for new relevant state.
21296 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21297 outside the loop, but not inside it.
21298
21299 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21300
21301 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21302 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21303 (vect_get_vec_def_for_operand): Split out code.
21304
21305 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21306
21307 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21308
21309 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21310
21311 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21312
21313 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21314
21315 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21316
21317 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21318
21319 PR middle-end/71387
21320 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21321 to noreturn e->callee->decl that has void return type and void
21322 arguments, adjust gimple_call_fntype and remove lhs even if it had
21323 previously addressable type.
21324
21325 2016-06-02 Jeff Law <law@redhat.com>
21326
21327 PR tree-optimization/71328
21328 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21329 error when checking for a jump back onto the copied path.
21330
21331 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21332
21333 * config/microblaze/microblaze.c (get_branch_target): Add return
21334 NULL_RTX for the non-CALL_P case.
21335 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21336 (insert_wic): Remove unused local "j".
21337
21338 2016-06-02 Martin Liska <mliska@suse.cz>
21339
21340 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21341
21342 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21343 Julia Koval <julia.koval@intel.com>
21344
21345 * function.c (assign_parm_setup_stack): Force source into a
21346 register if needed.
21347 * target.def (function_incoming_arg): Update documentation to
21348 allow arbitrary address computation based on hard register.
21349 * doc/tm.texi: Regenerated.
21350
21351 2016-06-02 Martin Liska <mliska@suse.cz>
21352
21353 * predict.c (combine_predictions_for_bb): Fix first match in
21354 cases where a first predictor contains more than one occurence
21355 in list of predictors. Take the best value in such case.
21356
21357 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21358
21359 PR rtl-optimization/71295
21360 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21361 offset would go over the size of the inner mode reject it.
21362
21363 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21364
21365 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21366 x=x,x and v=v,m instead of x=x,m.
21367
21368 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21369 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21370 alternative to v=rm,C.
21371
21372 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21373 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21374 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21375 instead of vex for the last two above mentioned alternatives.
21376
21377 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21378
21379 PR target/70830
21380 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21381
21382 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21383
21384 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21385
21386 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21387
21388 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21389 from int to unsigned.
21390
21391 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21392
21393 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21394 alternatives, eliminating preferred register class. Add support
21395 for the MTVSRDD instruction in ISA 3.0.
21396 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21397 reg_or_indexed_operand.
21398 (vsx_splat_v4sf_internal): Likewise.
21399
21400 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21401
21402 PR target/71186
21403 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21404 for loading up all 0's or all 1's.
21405
21406 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21407
21408 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21409
21410 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21411
21412 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21413 extension.
21414 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21415 * gcc.c (set_source_date_epoch_envvar): New function, sets
21416 the SOURCE_DATE_EPOCH environment variable to the current time.
21417
21418 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21419
21420 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21421 the factor for live Phi nodes.
21422
21423 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21424
21425 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21426 * tree-parloops.c (parallelize_loops): likewise.
21427 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21428 tree_unswitch_outer_loop): likewise.
21429
21430 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21431
21432 PR middle-end/71371
21433 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21434 around creation of the temporary.
21435
21436 2016-06-01 Richard Biener <rguenther@suse.de>
21437
21438 PR tree-optimization/71366
21439 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21440 (unloop_loops): Move removing edges here ...
21441 (try_unroll_loop_completely): ... from here.
21442 (try_peel_loop): ... and here.
21443 (tree_unroll_loops_completely_1): Track parent loops via
21444 bitmap of header BBs.
21445 (tree_unroll_loops_completely): Adjust for that.
21446
21447 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21448
21449 * config/rs6000/altivec.h (vec_slv): New macro.
21450 (vec_srv): New macro.
21451 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21452 (UNSPEC_VSRV): New value.
21453 (vslv): New insn.
21454 (vsrv): New insn.
21455 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21456 (vsrv): New builtin definition.
21457 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21458 define argument types for new builtin.
21459 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21460 new builtin.
21461 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21462 functions.
21463
21464 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21465 Jocelyn Mayer <l_indien@magic.fr>
21466
21467 PR target/67310
21468 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21469 detect processor family for signature_CENTAUR_ebx.
21470 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21471 signature_CENTAUR_ebx.
21472 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21473 <default>: Pass x86-64 for has_longmode.
21474
21475 2016-06-01 Nathan Sidwell <nathan@acm.org>
21476
21477 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21478 undefined weak.
21479
21480 2016-06-01 Richard Biener <rguenther@suse.de>
21481
21482 PR tree-optimization/71261
21483 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21484 of stmts successfully put in the bool pattern. Remove
21485 single-use restriction.
21486 (adjust_bool_pattern_cast): Add cast at the use site via the
21487 pattern def sequence.
21488 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21489 of patterned defs. Use the pattern def seqence instead of
21490 multiple independent patterns.
21491 (sort_after_uid): New qsort compare function.
21492 (adjust_bool_stmts): New function to process stmts in the bool
21493 pattern in IL order.
21494 (vect_recog_bool_pattern): Adjust.
21495 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21496 (ifcvt_walk_pattern_tree): Likewise.
21497 (stmt_is_root_of_bool_pattern): Likewise.
21498 (ifcvt_repair_bool_pattern): Likewise.
21499 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21500
21501 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21502
21503 * loop-unroll.c (decide_unroll_constant_iterations,
21504 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21505 likely upper bounds.
21506 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21507
21508 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21509
21510 * tree-core.h (enum omp_clause_code): Remove
21511 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21512
21513 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21514
21515 * config/arm/sync.md (arm_store_exclusive<mode>):
21516 Use 'H' output modifier on operands[2] rather than creating a new
21517 entry in out-of-bounds memory of the operands array.
21518 (arm_store_release_exclusivedi): Likewise.
21519
21520 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21521
21522 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21523 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21524 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21525 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21526
21527 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21528
21529 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21530 into account live statements for mask producers.
21531
21532 2016-06-01 Richard Biener <rguenther@suse.de>
21533
21534 PR tree-optimization/71311
21535 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21536 restrict to non-INTEGER_CST @0.
21537
21538 2016-06-01 Richard Biener <rguenther@suse.de>
21539
21540 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21541 (relational patterns): Use :c to avoid pattern duplications.
21542
21543 2016-06-01 Richard Biener <rguenther@suse.de>
21544
21545 * genmatch.c (comparison_code_p): New predicate.
21546 (swap_tree_comparison): New function.
21547 (commutate): Add for_vec parameter to append new for entries.
21548 Support commutating relational operators by swapping it alongside
21549 operands.
21550 (lower_commutative): Adjust.
21551 (dt_simplify::gen): Do not pass artificial operators to gen
21552 functions.
21553 (decision_tree::gen): Do not add artificial operators as parameters.
21554 (parser::parse_expr): Verify operator commutativity when :c is
21555 applied. Allow :C to override this.
21556 * match.pd: Adjust patterns to use :C instead of :c where required.
21557
21558 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21559
21560 PR tree-optimization/71077
21561 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21562 the combining step, use boolean_false_node and boolean_true_node
21563 as the designated false/true return values.
21564
21565 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21566
21567 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21568 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21569 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21570 PRED_LOOP_EXIT.
21571
21572 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21573
21574 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21575 of flags impliying the register renaming.
21576 * toplev.c (process_options): Do not imply flag_rename_registers with
21577 loop peeling.
21578
21579 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21580
21581 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21582 default implementation.
21583
21584 2016-05-31 Nathan Sidwell <nathan@acm.org>
21585
21586 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21587
21588 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21589
21590 * config/sh/constraints.md (b): Remove constraint.
21591 * config/sh/predicates.md (arith_reg_operand): Remove
21592 TARGET_REGISTER_P.
21593 * config/sh/sh-modes.def (PDI): Remove.
21594 * config/sh/sh.c (sh_target_reg_class,
21595 sh_optimize_target_register_callee_saved): Remove functions.
21596 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21597 (sh_expand_epilogue): Update comment.
21598 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21599 sh_secondary_reload): Remove TARGET_REGS related code.
21600 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21601 TARGET_REGISTER_P): Remove macros.
21602 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21603 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21604 TR1_REG, TR2_REG): Remove constants.
21605 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21606
21607 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21608
21609 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21610 define_expand patterns.
21611 (adddi3_compact): Rename to adddi3.
21612 (subdi3_compact): Rename to subdi3.
21613 (*negdi2): Rename to negdi2.
21614 (*abs<mode>2): Rename to abs<mode>2.
21615
21616 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21617
21618 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21619 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21620 (atomic_sub_fetchsi): ... this new pattern.
21621 (mvtc): Add CC_REG clobber.
21622
21623 2016-05-31 Marek Polacek <polacek@redhat.com>
21624
21625 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21626
21627 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21628
21629 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21630 aarch64_fusion_enabled_p to check for fusion capabilities.
21631
21632 2016-05-31 Richard Biener <rguenther@suse.de>
21633
21634 PR tree-optimization/71352
21635 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21636 minus one and a negate.
21637
21638 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21639
21640 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21641 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21642 Delete prototype.
21643 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21644 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21645 Remove use of aarch64_simd_attr_length_move, set length attribute
21646 directly.
21647 (*aarch64_be_movoi): Likewise.
21648 (*aarch64_be_movci): Likewise.
21649 (*aarch64_be_movxi): Likewise.
21650
21651 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21652
21653 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21654 It no longer does that.
21655 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21656
21657 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21658
21659 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21660 attribute __unused__.
21661
21662 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21663
21664 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21665 * config/arm/arm.c (arm_arch_thumb1): Define.
21666 (arm_option_override): Initialize arm_arch_thumb1.
21667 * config/arm/arm.h (arm_arch_thumb1): Declare.
21668 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21669 support Thumb-1 ISA.
21670
21671 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21672
21673 PR target/71346
21674 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21675 `Yv' for scalar operand.
21676
21677 2016-05-31 Tom de Vries <tom@codesourcery.com>
21678
21679 PR tree-optimization/69068
21680 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21681 phis with more than two args.
21682
21683 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21684
21685 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21686 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21687 target.
21688
21689 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21690
21691 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21692 tune_64.
21693 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21694 support on SPARC.
21695 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21696 cpu_32, cpu_64, tune_32 and tune_64.
21697 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21698
21699 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21700
21701 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21702
21703 2016-05-30 Andi Kleen <ak@linux.intel.com>
21704
21705 * auto-profile.c (read_profile): Replace asserts with errors
21706 when file does not exist.
21707 * gcov-io.c (gcov_read_words): Dito.
21708
21709 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21710
21711 * tree-cfg.c (print_loop): Print likely upper bounds.
21712
21713 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21714
21715 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21716 * opts.c (default_options): Enable peel loops at -O3.
21717 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21718 (try_peel_loop): Do not re-peel already peeled loops;
21719 use likely upper bounds; fix profile updating.
21720 (pass_complete_unroll::execute): Initialize peeled_loops.
21721
21722 2016-05-30 Martin Liska <mliska@suse.cz>
21723
21724 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21725 computed costs by frequency of BB they belong to.
21726 (get_scaled_computation_cost_at): New function.
21727
21728 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21729 Marc Glisse <marc.glisse@inria.fr>
21730
21731 PR tree-optimization/71289
21732 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21733
21734 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21735
21736 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21737
21738 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21739
21740 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21741 for peeled copies; avoid underflow when updating estimates; correctly
21742 scale loop profile.
21743
21744 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21745
21746 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21747 r236875. Corrected oe3 to oe2 as obvious.
21748
21749 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21750
21751 PR middle-end/71269
21752 PR middle-end/71252
21753 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21754 that inserted stmt will not dominate stmts that defines its operand.
21755 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21756 (rewrite_expr_tree_parallel): Likewise.
21757
21758 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21759
21760 PR middle-end/71252
21761 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21762 all fields including stmt_to_insert are swapped.
21763
21764 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21765
21766 * predict.h (force_edge_cold): Declare.
21767 * predict.c (force_edge_cold): New function.
21768 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21769 updating.
21770 (canonicalize_loop_induction_variables): Fix formating.
21771
21772 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21773
21774 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21775 (visium_expand_copysign): Use gen_int_mode directly.
21776 (visium_compute_frame_size): Minor tweaks.
21777
21778 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21779
21780 * tree-vect-loop.c (vect_analyze_loop_2): Use
21781 likely_max_stmt_executions_int.
21782
21783 2016-05-30 Tom de Vries <tom@codesourcery.com>
21784
21785 PR tree-optimization/69067
21786 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21787
21788 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21789
21790 PR target/71245
21791 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21792 New peepholes to remove unneeded fild/fistp pairs.
21793 (define_peephole2 atomic_loaddi_fpu): Ditto.
21794
21795 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21796
21797 * predict.c (maybe_hot_frequency_p): Avoid division.
21798
21799 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21800
21801 * doc/install.texi: Use https for shop.fsf.org.
21802
21803 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21804
21805 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21806 likely_max_stmt_executions_int.
21807
21808 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21809
21810 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21811 likely_max_stmt_executions_int.
21812
21813 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21814
21815 * profile.c (compute_branch_probabilities): Do not report hitrates
21816 here.
21817 (branch_prob): Report hitrates here.
21818 * predict.c (gimple_predict_edge): Do not assert profile status;
21819 fix formatting issues.
21820
21821 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21822
21823 * predict.c (edge_predicted_by_p): New function.
21824 (predict_paths_for_bb): Do not put multiple predictions of the same type
21825 on one edge.
21826
21827 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21828
21829 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21830 commit.
21831
21832 2016-05-28 Alan Modra <amodra@gmail.com>
21833
21834 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21835
21836 2016-05-28 Alan Modra <amodra@gmail.com>
21837
21838 PR rtl-optimization/71275
21839 * ira.c (ira): Free dominance info.
21840
21841 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21842
21843 * doc/sourcebuild.texi: New address for upstream Go repository.
21844
21845 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21846
21847 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21848 (TARGET_ARM_V7M): Likewise.
21849
21850 2016-05-26 Jeff Law <law@redhat.com>
21851
21852 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21853 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21854 * passes.def: Add jump threading passes before DOM/VRP.
21855 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21856 argument to a basic block from an edge. Remove tests which are
21857 handled elsewhere.
21858 (pass_data_thread_jumps, class pass_thread_jumps): New.
21859 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21860 (make_pass_thread_jumps): Likewise.
21861 * tree-pass.h (make_pass_thread_jumps): Declare.
21862
21863 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21864
21865 * config/visium/visium-protos.h (split_double_move): Rename into...
21866 (visium_split_double_move): ...this.
21867 (visium_split_double_add): Declare.
21868 * config/visium/visium.c (split_double_move): Rename into...
21869 (visium_split_double_move): ...this.
21870 (visium_split_double_add): New function.
21871 (visium_expand_copysign): Renumber operands for consistency.
21872 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21873 (DFmode move splitter): Likewise.
21874 (*addi3_insn): Split by means of visium_split_double_add.
21875 (*adddi3_insn_flags): Delete.
21876 (*plus_plus_sltu<subst_arith>): New insn.
21877 (*subdi3_insn): Split by means of visium_split_double_add.
21878 (subdi3_insn_flags): Delete.
21879 (*minus_minus_sltu<subst_arith>): New insn.
21880 (*negdi2_insn): Split by means of visium_split_double_add.
21881 (*negdi2_insn_flags): Delete.
21882
21883 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21884
21885 * configure.ac: Treat a --with-headers option without argument
21886 the same as the default (i.e. consult sys-include directory).
21887 * configure: Regenerate.
21888
21889 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21890
21891 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21892 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21893 prototype.
21894 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21895 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21896
21897 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21898
21899 PR target/63596
21900 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21901 tree-stdarg analysis results.
21902 (aarch64_setup_incoming_varargs): Likewise.
21903
21904 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21905
21906 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21907 va_list_gpr_counter_field and va_list_fpr_counter_field.
21908
21909 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21910
21911 PR67609
21912 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21913 * config/aarch64/aarch64.c
21914 (aarch64_cannot_change_mode_class): Remove function.
21915 * config/aarch64/aarch64-protos.h
21916 (aarch64_cannot_change_mode_class): Remove.
21917
21918 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21919
21920 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21921 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21922 get_likely_max_loop_iterations_int): New.
21923 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21924 any_likely_upper_bound.
21925 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21926 Declare.
21927 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21928 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21929 upper bound.
21930 (unroll_loop_constant_iterations): Likewise.
21931 (unroll_loop_runtime_iterations): Likewise.
21932 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21933 * lto-streamer-out.c (output_cfg): Likewise.
21934 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21935 bounds.
21936 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21937 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21938 (likely_max_loop_iterations): New.
21939 (likely_max_loop_iterations_int): New.
21940 (likely_max_stmt_executions): New.
21941 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21942 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21943 likely_max_stmt_executions): Declare.
21944
21945 2016-05-27 Marek Polacek <polacek@redhat.com>
21946
21947 PR middle-end/71308
21948 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21949
21950 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21951
21952 * config/s390/s390.md (2x risbg splitters): Use
21953 reg_overlap_mentioned_p instead of rtx_equal_p.
21954
21955 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21956
21957 * combine.c (make_compound_operation): Take known zero bits into
21958 account when checking for possible zero_extend.
21959
21960 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21961
21962 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21963 Use const_int_operand for operand 2 predicate. Simplify expand code
21964 as a result.
21965
21966 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21967
21968 PR middle-end/71279
21969 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21970 into comparison.
21971
21972 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21973
21974 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21975 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21976 that returns CC_SESWPmode and CC_ZESWPmode.
21977 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21978 and CC_SESWPmode.
21979 (aarch64_rtx_costs): Likewise.
21980
21981 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21982
21983 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21984 for ISA 3.0 min/max support.
21985 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21986 conditional move support.
21987 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21988 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21989 available.
21990 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21991 conditional moves where the comparison type is different from move
21992 type.
21993 (fp_minmax): New code iterator for smin/smax.
21994 (minmax): New code attributes for min/max.
21995 (SMINMAX): Likewise.
21996 (smax<mode>3): Combine min, max insns into one insn using the
21997 fp_minmax code iterator. Add support for ISA 3.0 min/max
21998 instructions that don't need -ffast-math.
21999 (s<minmax><mode>3): Likewise.
22000 (smax<mode>3_vsx): Likewise.
22001 (smin<mode>3): Likewise.
22002 (s<minmax><mode>3_vsx): Likewise.
22003 (smin<mode>3_vsx): Likewise.
22004 (pre-VSX min/max splitters): Likewise.
22005 (s<minmax><mode>3_fpr): Likewise.
22006 (movsfcc): Rewrite floating point conditional moves to combine
22007 SFmode/DFmode into a single insn.
22008 (mov<mode>cc): Likewise.
22009 (movdfcc): Likewise.
22010 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22011 SFDF2 iterators to handle all combinations.
22012 (fseldfsf4): Likewise.
22013 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22014 (fseldfdf4): Likewise.
22015 (fselsfdf4): Likewise.
22016 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22017 comparison instructions that set a 0/-1 mask, and use it for
22018 floating point conditional move via XXSEL.
22019 (fpmask<mode>): Likewise.
22020 (xxsel<mode>): Likewise.
22021 * config/rs6000/predicates.md (min_max_operator): Delete, no
22022 longer used.
22023 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22024 instructions that generate a 0/-1 mask for use with XXSEL.
22025 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22026 say whether floating point min/max is available, either through
22027 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22028 (TARGET_MINMAX_DF): Likewise.
22029
22030 2016-05-27 Alan Modra <amodra@gmail.com>
22031
22032 PR rtl-optimization/71275
22033 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22034 for update_equiv_regs and combine_and_move_insns.
22035
22036 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22037
22038 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22039 if_then_else or cond RTXes to calculate attribute value.
22040 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22041 <attr "length_immediate>: Ditto.
22042 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22043 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22044 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22045 <attr "type">: Ditto.
22046 <attr "prefix_data16">: Ditto.
22047 <attr "prefix_extra">: Ditto.
22048 <attr "length_immediate">: Ditto.
22049 <attr "prefix">: Ditto.
22050 (vec_set<mode>_0) <attr "isa">: Ditto.
22051 <attr "prefix_extra">: Ditto.
22052 <attr "length_immediate">: Ditto.
22053 <attr "prefix">: Ditto.
22054 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22055 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22056 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22057 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22058 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22059 <attr "length_immediate">: Ditto.
22060 <attr "prefix">: Ditto.
22061 (sse2_movsd) <attr "length_immediate">: Ditto.
22062 <attr "prefix">: Ditto.
22063 (vec_concatv2df) <attr "isa">: Ditto.
22064 <attr "prefix">: Ditto.
22065 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22066 (*vec_extractv2di_1) <attr "isa">: Ditto.
22067 <attr "type">: Ditto.
22068 <attr "length_immediate">: Ditto.
22069 <attr "prefix_rex">: Ditto.
22070 <attr "prefix_extra">: Ditto.
22071 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22072 <attr "prefix_extra">: Ditto.
22073 <attr "length_immediate">: Ditto.
22074 (vec_concatv2di) <attr "isa">: Ditto.
22075 <attr "prefix_extra">: Ditto.
22076 <attr "length_immediate">: Ditto.
22077 <attr "prefix">: Ditto.
22078
22079 2016-05-26 Martin Liska <mliska@suse.cz>
22080
22081 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22082 function.
22083 (operator+): Likewise.
22084 (operator-): Likewise.
22085 (comp_cost::operator+=): Likewise.
22086 (comp_cost::operator-=): Likewise.
22087 (comp_cost::operator/=): Likewise.
22088 (comp_cost::operator*=): Likewise.
22089 (operator<): Likewise.
22090 (operator==): Likewise.
22091 (operator<=): Likewise.
22092 (new_cost): Remove.
22093 (infinite_cost_p): Likewise.
22094 (add_costs): Likewise.
22095 (sub_costs): Likewise.
22096 (compare_costs): Likewise.
22097 (set_group_iv_cost): Use the newly introduced functions.
22098 (get_address_cost): Likewise.
22099 (get_shiftadd_cost): Likewise.
22100 (force_expr_to_var_cost): Likewise.
22101 (split_address_cost): Likewise.
22102 (ptr_difference_cost): Likewise.
22103 (difference_cost): Likewise.
22104 (get_computation_cost_at): Likewise.
22105 (determine_group_iv_cost_generic): Likewise.
22106 (determine_group_iv_cost_address): Likewise.
22107 (determine_group_iv_cost_cond): Likewise.
22108 (autoinc_possible_for_pair): Likewise.
22109 (determine_group_iv_costs): Likewise.
22110 (cheaper_cost_pair): Likewise.
22111 (iv_ca_recount_cost): Likewise.
22112 (iv_ca_set_no_cp): Likewise.
22113 (iv_ca_set_cp): Likewise.
22114 (iv_ca_cost): Likewise.
22115 (iv_ca_new): Likewise.
22116 (iv_ca_dump): Likewise.
22117 (iv_ca_narrow): Likewise.
22118 (iv_ca_prune): Likewise.
22119 (iv_ca_replace): Likewise.
22120 (try_add_cand_for): Likewise.
22121 (try_improve_iv_set): Likewise.
22122 (find_optimal_iv_set): Likewise.
22123
22124 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22125
22126 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22127 that internal functions will clobber all caller-saved registers.
22128
22129 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22130
22131 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22132 Return a better case_values_threshold when optimizing.
22133
22134 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22135
22136 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22137 Add ? to integer variant.
22138 (aarch64_combinez_be): Likewise.
22139
22140 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22141
22142 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22143 instead of x constraint.
22144 (vcvtps2ph256<mask_name>): Likewise.
22145
22146 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22147 alternative. Formatting fix.
22148
22149 * config/i386/sse.md
22150 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22151 to ...
22152 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22153 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22154 maybe_evex prefix instead of vex.
22155 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22156 EXT_REX_SSE_REG_P (op0) case in the splitter.
22157
22158 2016-05-25 Jeff Law <law@redhat.com>
22159
22160 PR tree-optimization/71272
22161 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22162 Update comments. Add test for empty path.
22163
22164 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22165
22166 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22167 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22168 special case builtin.
22169 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22170 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22171 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22172 for __builtin_vec_cmpne.
22173
22174 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22175
22176 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22177 redundant test and bail out if the type of the new operand is not
22178 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22179
22180 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22181
22182 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22183 (x_ix86_target_flags_explicit): Remove.
22184 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22185 x_ix86_target_flags_explicit.
22186 (ix86_function_specific_restore): Ditto.
22187
22188 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22189 H.J. Lu <hongjiu.lu@intel.com>
22190
22191 PR target/70738
22192 * common/config/i386/i386-common.c
22193 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22194 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22195 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22196 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22197 (-mgeneral-regs-only): Add new option.
22198 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22199 x87 instructions if only general registers are allowed.
22200 (ix86_target_string): Add ix86_flags argument. Handle additional
22201 flags options through ix86_flags argument. Update all callers.
22202 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22203
22204 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22205
22206 PR rtl-optimization/66940
22207 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22208 decrementing desired_val will not overflow before performing these
22209 operations.
22210
22211 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22212
22213 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22214 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22215 * config/i386/i386.c (enum ix86_builtins): Add
22216 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22217 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22218 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22219 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22220 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22221 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22222 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22223 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22224 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22225 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22226 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22227 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22228 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22229 __builtin_ia32_cvtps2dq512_mask.
22230 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22231 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22232 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22233 * config/i386/sse.md
22234 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22235 Rename to ...
22236 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22237 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22238 to ...
22239 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22240 (avx512f_vec_pack_sfix_v8df): New define_expand.
22241 (avx512f_roundpd512): Rename to ...
22242 (avx512f_round<castmode>512): ... this. Change iterator.
22243 (avx512f_roundps512_sfix): New define_expand.
22244 (round<mode>2_sfix): Change iterator.
22245
22246 2016-05-25 Nick Clifton <nickc@redhat.com>
22247
22248 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22249 static interrupt handler is detected.
22250 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22251 default linker script.
22252 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22253 the low part of a symbolic pointer.
22254
22255 2016-05-25 Richard Biener <rguenther@suse.de>
22256
22257 PR tree-optimization/71261
22258 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22259 interesting stmt instead of immediate uses when looking
22260 for the use operand to replace.
22261
22262 2016-05-25 Martin Liska <mliska@suse.cz>
22263
22264 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22265
22266 2016-05-25 Richard Biener <rguenther@suse.de>
22267
22268 PR tree-optimization/71264
22269 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22270 vector type val.
22271
22272 2016-05-25 Martin Liska <mliska@suse.cz>
22273
22274 PR tree-optimization/71239
22275 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22276 if DECL_SIZE is NULL.
22277
22278 2016-05-25 Richard Biener <rguenther@suse.de>
22279
22280 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22281 * tree-if-conv.c (pass_data_if_conversion): Use it.
22282
22283 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22284
22285 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22286 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22287 * varpool.c (varpool_node::get_availability): Likewise.
22288
22289 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22290
22291 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22292 VNEGW/VNEGD instructions.
22293 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22294 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22295 support for ISA 3.0 VNEGW/VNEGD instructions.
22296
22297 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22298
22299 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22300 pointers inside OACC_DATA regions.
22301 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22302 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22303 (gimplify_adjust_omp_clauses): Fix typo in comment.
22304
22305 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22306
22307 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22308 parity built-in functions.
22309 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22310 zeros.
22311 (p9v_parity<mode>2): Likewise.
22312 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22313 parity.
22314 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22315 (parity<mode>2): ISA 3.0 expander for vector parity.
22316 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22317 power9 built-ins.
22318 (BU_P9_64BIT_MISC_0): Likewise.
22319 (BU_P9_MISC_0): Likewise.
22320 (BU_P9V_AV_1): Likewise.
22321 (BU_P9V_AV_2): Likewise.
22322 (BU_P9V_AV_3): Likewise.
22323 (BU_P9V_AV_P): Likewise.
22324 (BU_P9V_VSX_1): Likewise.
22325 (BU_P9V_OVERLOAD_1): Likewise.
22326 (BU_P9V_OVERLOAD_2): Likewise.
22327 (BU_P9V_OVERLOAD_3): Likewise.
22328 (VCTZB): Add vector count trailing zeros support.
22329 (VCTZH): Likewise.
22330 (VCTZW): Likewise.
22331 (VCTZD): Likewise.
22332 (VPRTYBD): Add vector parity support.
22333 (VPRTYBQ): Likewise.
22334 (VPRTYBW): Likewise.
22335 (VCTZ): Add overloaded vector count trailing zeros support.
22336 (VPRTYB): Add overloaded vector parity support.
22337 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22338 overloaded vector count trailing zeros and parity instructions.
22339 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22340 vector parity support.
22341 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22342 trailing zeros support.
22343 (vec_cntlz): Likewise.
22344 (vec_vctzb): Likewise.
22345 (vec_vctzd): Likewise.
22346 (vec_vctzh): Likewise.
22347 (vec_vctzw): Likewise.
22348 (vec_vprtyb): Add ISA 3.0 vector parity support.
22349 (vec_vprtybd): Likewise.
22350 (vec_vprtybw): Likewise.
22351 (vec_vprtybq): Likewise.
22352 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22353 the ISA 3.0 vector count trailing zeros and vector parity built-in
22354 functions.
22355
22356 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22357
22358 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22359 when there is stmt_to_insert.
22360
22361 2016-05-24 Martin Sebor <msebor@redhat.com>
22362
22363 PR c++/71147
22364 * tree.h (complete_or_array_type_p): New inline function.
22365
22366 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22367
22368 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22369 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22370 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22371
22372 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22373 Limit 1st alternative to noavx isa, split 2nd alternative into one
22374 noavx and one avx alternative, use *x and Bm in the former and
22375 x and m in the latter.
22376
22377 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22378 of sse4 for the first alternative, drop %v from the template
22379 and d operand modifier. Split second alternative into one sse4_noavx
22380 and one avx alternative, use *x instead of *v in the former and v
22381 instead of *v in the latter.
22382 (*sse4_1_extractps): Use noavx isa instead of * for the first
22383 alternative, drop %v from the template. Split second alternative into
22384 one noavx and one avx alternative, use *x instead of *v in the
22385 former and v instead of *v in the latter.
22386 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22387 with noavx and the last one with avx.
22388 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22389 split the second one into one noavx and one avx alternative,
22390 use *x and Bm in the former and x and m in the latter one.
22391 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22392 alternatives.
22393
22394 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22395 first two alternatives to noavx, use *x instead of *v in the second
22396 one, add avx alternative without *.
22397 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22398 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22399 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22400
22401 2016-05-24 Jeff Law <law@redhat.com>
22402
22403 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22404 New function, extracted from...
22405 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22406 Allow simple copies and constant initializations in the SSA chain.
22407
22408 2016-05-24 Marek Polacek <polacek@redhat.com>
22409
22410 PR c/71249
22411 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22412 scope.
22413
22414 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22415
22416 PR c++/71257
22417 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22418 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22419 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22420 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22421 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22422
22423 2016-05-24 Richard Biener <rguenther@suse.de>
22424
22425 PR tree-optimization/71240
22426 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22427 has integral type.
22428
22429 2016-05-24 Richard Biener <rguenther@suse.de>
22430
22431 PR tree-optimization/71230
22432 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22433
22434 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22435
22436 * tree-vectorizer.h (vectorizable_comparison): Delete.
22437 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22438 PURE_SLP_STMT check.
22439 * tree-vect-stmts.c (vectorizable_call): Likewise.
22440 (vectorizable_simd_clone_call): Likewise.
22441 (vectorizable_conversion): Likewise.
22442 (vectorizable_assignment): Likewise.
22443 (vectorizable_shift): Likewise.
22444 (vectorizable_operation): Likewise.
22445 (vectorizable_load): Likewise.
22446 (vectorizable_condition): Likewise.
22447 (vectorizable_store): Likewise. Assert that we don't have
22448 hybrid SLP.
22449 (vectorizable_comparison): Make static. Remove redundant
22450 PURE_SLP_STMT check.
22451 (vect_transform_stmt): Assert that we always have an slp_node
22452 if PURE_SLP_STMT.
22453
22454 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22455
22456 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22457 operands[2] against 1 with comparison against CONST1_RTX.
22458 (<shift>di3_neon): Likewise.
22459 * config/arm/predicates.md (const0_operand): Replace with comparison
22460 against CONST0_RTX.
22461
22462 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22463
22464 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22465 operands[2] against 1 with comparison against CONST1_RTX.
22466 (ashrdi3): Likewise.
22467 (lshrdi3): Likewise.
22468 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22469 UINTVAL.
22470 (ashrsi3): Likewise.
22471 (lshrsi3): Likewise.
22472 (rotrsi3): Likewise.
22473 (define_split above *compareqi_eq0): Likewise.
22474 (define_split above "prologue"): Likewise.
22475 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22476 * config/arm/predicates.md (shift_operator): Likewise.
22477 (shift_nomul_operator): Likewise.
22478 (sat_shift_operator): Likewise.
22479 (thumb1_cmp_operand): Likewise.
22480 (const_neon_scalar_shift_amount_operand): Replace manual range
22481 check with IN_RANGE.
22482 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22483 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22484
22485 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22486
22487 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22488 with HOST_WIDE_INT_1.
22489 (insv): Likewise.
22490 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22491 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22492 (arm_canonicalize_comparison): Likewise.
22493 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22494 HOST_WIDE_INT_1.
22495 (thumb1_size_rtx_costs): Likewise.
22496 (vfp_const_double_index): Replace cast of 1 to unsigned
22497 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22498 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22499 HOST_WIDE_INT_1.
22500 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22501 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22502 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22503 HOST_WIDE_INT with HOST_WIDE_INT_1.
22504
22505 2016-05-24 Marek Polacek <polacek@redhat.com>
22506
22507 * tree-cfg.h (should_remove_lhs_p): New predicate.
22508 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22509 * gimplify.c (gimplify_modify_expr): Likewise.
22510 * tree-cfg.c (verify_gimple_call): Likewise.
22511 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22512 * gimple-fold.c: Include "tree-cfg.h".
22513 (gimple_fold_call): Use should_remove_lhs_p.
22514
22515 2016-05-24 Richard Biener <rguenther@suse.de>
22516
22517 PR tree-optimization/71253
22518 * cfganal.h (control_dependences): Make robust against edge
22519 and BB removal.
22520 (control_dependences::control_dependences): Remove edge_list argument.
22521 (control_dependences::get_edge): Remove.
22522 (control_dependences::get_edge_src): Add.
22523 (control_dependences::get_edge_dest): Likewise.
22524 (control_dependences::m_el): Make a vector of edge src/dest index.
22525 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22526 (control_dependences::control_dependences): Likewise.
22527 (control_dependences::~control_dependence): Likewise.
22528 (control_dependences::get_edge): Remove.
22529 (control_dependences::get_edge_src): Add.
22530 (control_dependences::get_edge_dest): Likewise.
22531 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22532 get_edge_src.
22533 (perform_tree_ssa_dce): Adjust.
22534 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22535 get_edge_src.
22536 (pass_loop_distribution::execute): Adjust. Do loop destroying
22537 conditional on changed.
22538
22539 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22540
22541 PR target/69857
22542 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22543 return. Reindent transformation comment and mention the ARM state
22544 behavior.
22545
22546 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22547
22548 PR middle-end/71252
22549 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22550 after build_and_add_sum creates new use stmt.
22551
22552 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22553
22554 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22555 load_lanes/grouped_load classification comes first. Don't check
22556 whether the vectorization factor is a multiple of the group size
22557 for load_lanes.
22558
22559 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22560
22561 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22562 GROUP_GAP for single-element interleaving.
22563 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22564 variable.
22565
22566 2016-05-24 Richard Biener <rguenther@suse.de>
22567
22568 PR middle-end/70434
22569 PR c/69504
22570 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22571 bases which are accessed with non-invariant indices.
22572 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22573 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22574
22575 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22576
22577 PR middle-end/71170
22578 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22579 (add_to_ops_vec): Add stmt_to_insert.
22580 (add_repeat_to_ops_vec): Init stmt_to_insert.
22581 (insert_stmt_before_use): New.
22582 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22583 to ops vector.
22584 (get_ops): Init stmt_to_insert.
22585 (maybe_optimize_range_tests): Likewise.
22586 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22587 (rewrite_expr_tree_parallel): Likewise.
22588 (reassociate_bb): Likewise.
22589
22590 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22591
22592 PR target/71201
22593 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22594 ISA 3.0 xxperm fusion alternative.
22595 (altivec_vperm_v8hiv16qi): Likewise.
22596 (altivec_vperm_<mode>_uns_internal): Likewise.
22597 (vperm_v8hiv4si): Likewise.
22598 (vperm_v16qiv8hi): Likewise.
22599
22600 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22601 Kelvin Nilsen <kelvin@gcc.gnu.org>
22602
22603 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22604 vpermr/xxpermr on ISA 3.0.
22605 (altivec_expand_vec_perm_le): Likewise.
22606 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22607 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22608 ISA 3.0.
22609
22610 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22611
22612 * config/i386/i386.h (IS_STACK_MODE): Enable for
22613 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22614 SSE_FLOAT_MODE_P macros.
22615 * config/i386/i386.c (ix86_preferred_reload_class): Use
22616 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22617 Cleanup regclass processing for CONST_DOUBLE_P.
22618 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22619 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22620 with IS_STACK_MODE macro.
22621 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22622 with TARGET_SSE2.
22623 (*movdf_internal): Use IS_STACK_MODE macro.
22624 (*movsf_internal): Ditto.
22625
22626 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22627
22628 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22629 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22630
22631 2016-05-23 Jeff Law <law@redhat.com>
22632
22633 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22634 extracted from ...
22635 (fsm_find_control_statement_thread_paths): Call it.
22636
22637 2016-05-23 Martin Jambor <mjambor@suse.cz>
22638
22639 PR ipa/71234
22640 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22641 from_global_constant if t is not NULL.
22642
22643 2016-05-23 Marek Polacek <polacek@redhat.com>
22644
22645 PR c/49859
22646 * common.opt (Wswitch-unreachable): New option.
22647 * doc/invoke.texi: Document -Wswitch-unreachable.
22648 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22649 warning.
22650
22651 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22652
22653 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22654 TMR_INDEX is non-NULL.
22655
22656 2016-05-23 Richard Biener <rguenther@suse.de>
22657
22658 PR tree-optimization/71230
22659 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22660 (try_special_add_to_ops): ... here. Always test for single-use.
22661
22662 2016-05-23 Martin Jambor <mjambor@suse.cz>
22663
22664 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22665 default block if a PHI node in the original one would be resized.
22666
22667 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22668
22669 PR tree-optimization/58135
22670 * tree-vect-slp.c: When group size is not multiple
22671 of vector size, allow splitting of store group at
22672 vector boundary.
22673
22674 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22675
22676 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22677
22678 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22679
22680 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22681 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22682 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22683 of 64x2.
22684
22685 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22686 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22687 v constraint instead of x and vinserti32x4 insn.
22688
22689 * config/i386/sse.md (i128vldq): New mode iterator.
22690 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22691 avx512dq and avx512vl alternatives.
22692
22693 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22694 constraint, use maybe_evex prefix instead of vex.
22695 (vec_dupv4sf): Use v constraint instead of x for output
22696 operand except for noavx alternative, use Yv constraint
22697 instead of x for input. Use maybe_evex prefix instead of vex.
22698 (*vec_dupv4si): Likewise.
22699 (*vec_dupv2di): Likewise.
22700
22701 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22702
22703 PR middle-end/40921
22704 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22705 (linearize_expr_tree): Call try_special_add_to_ops.
22706 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22707
22708 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22709
22710 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22711 to computed stack_usage.
22712
22713 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22714
22715 PR target/71103
22716 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22717 operand is subreg (symbol_ref) then move the symbol ref to register.
22718
22719 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22720
22721 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22722
22723 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22724
22725 PR middle-end/71179
22726 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22727 VECTOR type.
22728
22729 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22730
22731 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22732 ranges by calling get_single_symbol and tidy up. Look more closely
22733 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22734
22735 2016-05-20 Jeff Law <law@redhat.com>
22736
22737 * bitmap.c (bitmap_find_bit): Remove useless test.
22738
22739 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22740
22741 * function.c (thread_prologue_and_epilogue_insns): Commit the
22742 insertion of the epilogue.
22743
22744 2016-05-20 Martin Jambor <mjambor@suse.cz>
22745
22746 PR tree-optimization/70884
22747 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22748 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22749 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22750 of constant pool data as a reason for scalarization.
22751
22752 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22753
22754 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22755 for naked functions.
22756 (thumb1_expand_prologue): Likewise.
22757
22758 2016-05-20 Nathan Sidwell <nathan@acm.org>
22759
22760 * config/nvptx/nptx.c (nvptx_option_override): Only set
22761 flag_toplevel_reorder, if not explicitly specified. Set
22762 flag_no_common, unless explicitly specified.
22763
22764 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22765
22766 * calls.c (can_implement_as_sibling_call_p): Mark param
22767 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22768
22769 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22770
22771 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22772 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22773 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22774 constants.
22775 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22776 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22777 and CASE_CONST_ANY.
22778
22779 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22780
22781 * config/nvptx/nvptx.md (sincossf3): New pattern.
22782
22783 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22784
22785 * calls.c (maybe_complain_about_tail_call): New function.
22786 (initialize_argument_information): Call
22787 maybe_complain_about_tail_call when clearing *may_tailcall.
22788 (can_implement_as_sibling_call_p): Call
22789 maybe_complain_about_tail_call when returning false.
22790 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22791 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22792 if tail-call optimization fails.
22793 * cfgexpand.c (expand_call_stmt): Initialize
22794 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22795 * gimple-pretty-print.c (dump_gimple_call): Dump
22796 gimple_call_must_tail_p.
22797 * gimple.c (gimple_build_call_from_tree): Call
22798 gimple_call_set_must_tail with the value of
22799 CALL_EXPR_MUST_TAIL_CALL.
22800 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22801 (gimple_call_set_must_tail): New function.
22802 (gimple_call_must_tail_p): New function.
22803 * print-tree.c (print_node): Update printing of TREE_STATIC
22804 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22805 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22806 trailing comment listing applicable flags.
22807 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22808
22809 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22810
22811 * calls.c (expand_call): Move "Rest of purposes for tail call
22812 optimizations to fail" to...
22813 (can_implement_as_sibling_call_p): ...this new function, and
22814 split into multiple "if" statements.
22815
22816 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22817
22818 * cfgloop.h (expected_loop_iterations_unbounded,
22819 expected_loop_iterations): Unconstify.
22820 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22821 profile with known upper bound; return 3 when profile is absent.
22822 (expected_loop_iterations): Update.
22823
22824 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22825
22826 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22827 and get_max_loop_iterations_int.
22828
22829 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22830
22831 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22832 realistic upper bounds here.
22833
22834 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22835
22836 PR c++/71210
22837 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22838 calls if the LHS is variable length or has addressable type.
22839 If targets[0]->decl is a noreturn call with void return type and
22840 zero arguments, adjust fntype and remove lhs in that case.
22841
22842 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22843
22844 PR tree-optimization/71079
22845 PR tree-optimization/71206
22846 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22847
22848 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22849
22850 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22851 (get_vec_alignment_for_array_decl): Likewise.
22852 (get_vec_alignment_for_record_decl): Likewise.
22853 (increase_alignment::execute): Move code to find alignment to
22854 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22855 (type_align_map): New hash_map.
22856
22857 2016-05-20 Richard Guenther <rguenther@suse.de>
22858
22859 PR tree-optimization/29756
22860 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22861 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22862 * fold-const.c (operand_equal_p): Likewise.
22863 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22864 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22865 * tree-inline.c (estimate_operator_cost): Likewise.
22866 * tree-pretty-print.c (dump_generic_node): Likewise.
22867 * tree-ssa-operands.c (get_expr_operands): Likewise.
22868 * cfgexpand.c (expand_debug_expr): Likewise.
22869 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22870 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22871 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22872 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22873 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22874 (execute_update_addresses_taken): Do it.
22875
22876 2016-05-20 Richard Biener <rguenther@suse.de>
22877
22878 PR tree-optimization/71185
22879 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22880 register operations.
22881
22882 2016-05-20 Richard Biener <rguenther@suse.de>
22883
22884 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22885 gimple_seq_add_seq_without_update.
22886 (release_bb_predicate): Assert we have no operands to free.
22887 (if_convertible_loop_p_1): Calculate post dominators later.
22888 Do not free BB predicates here.
22889 (combine_blocks): Do not recompute BB predicates.
22890 (version_loop_for_if_conversion): Save BB predicates around
22891 loop versioning.
22892
22893 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22894
22895 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22896 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22897 code. Ignore sibcalls on EDGE_IGNORE edges.
22898 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22899 on edges for sibcalls that run without prologue. The rest of the
22900 function is combined from...
22901 (fix_fake_fallthrough_edge): ... this, and ...
22902 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22903 function argument, make it a local variable.
22904
22905 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22906
22907 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22908 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22909 for 32-bit mode and SEH for 64-bit.
22910 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22911 TARGET_64BIT_DEFAULT.
22912
22913 2016-05-19 Ryan Burn <contact@rnburn.com>
22914
22915 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22916 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22917
22918 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22919
22920 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22921 force pending loads from memory.
22922
22923 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22924
22925 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22926 (UNSPEC_DARN_32): New unspec constant.
22927 (UNSPEC_DARN_RAW): New unspec constant.
22928 (darn_32): New instruction.
22929 (darn_raw): New instruction.
22930 (darn): New instruction.
22931 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22932 support and documentation for this macro.
22933 (BU_P9_MISC_1): New macro definition.
22934 (BU_P9_64BIT_MISC_0): New macro definition.
22935 (BU_P9_MISC_0): New macro definition.
22936 (darn_32): New builtin definition.
22937 (darn_raw): New builtin definition.
22938 (darn): New builtin definition.
22939 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22940 RS6000_BUILTIN_0 directives to surround each occurrence of
22941 #include "rs6000-builtin.def".
22942 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22943 RS6000_BTM_64BIT flags to the returned mask, depending on
22944 configuration.
22945 (def_builtin): Correct an error in the assignments made to the
22946 debugging variable attr_string.
22947 (rs6000_expand_builtin): Add support for no-operand built-in
22948 functions.
22949 (builtin_function_type): Remove fatal_error assertion that is no
22950 longer valid.
22951 (rs6000_common_init_builtins): Add support for no-operand built-in
22952 functions.
22953 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22954 definition.
22955 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22956 definition.
22957 (RS6000_BTM_64BIT): New macro definition.
22958 * doc/extend.texi: Document __builtin_darn (void),
22959 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22960 functions.
22961
22962 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22963
22964 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22965 max_loop_iterations_int.
22966
22967 2016-05-19 Marek Polacek <polacek@redhat.com>
22968
22969 PR tree-optimization/71031
22970 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22971 condition and adjust the code a bit.
22972
22973 2016-05-19 Martin Liska <mliska@suse.cz>
22974
22975 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22976 auto_vec instead of vec.
22977
22978 2016-05-19 Martin Liska <mliska@suse.cz>
22979
22980 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22981
22982 2016-05-19 Martin Liska <mliska@suse.cz>
22983
22984 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22985
22986 2016-05-19 Martin Liska <mliska@suse.cz>
22987
22988 * ipa-pure-const.c (set_function_state): Remove an existing
22989 funct_state.
22990 (remove_node_data): Do not free it as it's released
22991 in set_function_state.
22992
22993 2016-05-19 Martin Liska <mliska@suse.cz>
22994
22995 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22996 bitmap.
22997
22998 2016-05-19 Martin Liska <mliska@suse.cz>
22999
23000 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23001
23002 2016-05-19 Martin Liska <mliska@suse.cz>
23003
23004 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23005 an auto_vec instead of re-creating it.
23006
23007 2016-05-19 Martin Liska <mliska@suse.cz>
23008
23009 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23010 auto_vec instead of vec.
23011
23012 2016-05-19 Martin Liska <mliska@suse.cz>
23013
23014 * lto-section-in.c (lto_get_section_data): Call
23015 lto_check_version with additional argument.
23016 * lto-streamer.c (lto_check_version): Add new argument.
23017 * lto-streamer.h (lto_check_version): Likewise.
23018
23019 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23020
23021 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23022 Don't add cost of inner memory when handling sign-extended loads.
23023
23024 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23025
23026 PR rtl-optimization/71148
23027 * cse.c (cse_main): Free dominance info.
23028 (rest_of_handle_cse): Don't free dominance info.
23029 (rest_of_handle_cse2): Likewise.
23030 (rest_of_handle_cse_after_global_opts): Likewise.
23031
23032 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23033
23034 PR target/71056
23035 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23036 NULL_TREE early if NEON is not available. Remove now redundant check
23037 in ARM_CHECK_BUILTIN_MODE.
23038
23039 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23040
23041 PR sanitizer/64354
23042 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23043 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23044 * doc/cpp.texi: Document new macros.
23045
23046 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23047
23048 PR tree-optimization/69848
23049 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23050 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23051
23052 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23053
23054 * function.c (thread_prologue_and_epilogue_insn): Move the
23055 "goto epilogue_done" one block later.
23056
23057 2016-05-19 Richard Biener <rguenther@suse.de>
23058
23059 PR tree-optimization/70729
23060 * passes.def: Move LIM pass before PRE. Remove no longer
23061 required copyprop and move first DCE out of the loop pipeline.
23062
23063 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23064
23065 PR driver/69265
23066 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23067 (OBJS-libcommon-target): ...here.
23068 * opts-common.c: Include spellcheck.h.
23069 (cmdline_handle_error): Build a vec of valid options and use it
23070 to suggest provide hints for misspelled arguments.
23071
23072 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23073
23074 PR c++/71100
23075 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23076 lhs if it has TREE_ADDRESSABLE type.
23077
23078 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23079
23080 PR target/71145
23081 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23082 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23083
23084 2016-05-18 Martin Jambor <mjambor@suse.cz>
23085
23086 PR ipa/69708
23087 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23088 input for NOP_EXPR pass-through functions.
23089 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23090 aggregate global constant VAR_DECLs in constant jump functions.
23091
23092 2016-05-18 Martin Jambor <mjambor@suse.cz>
23093
23094 PR ipa/69708
23095 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23096 from TREE_READONLY parameters.
23097
23098 2016-05-18 Martin Jambor <mjambor@suse.cz>
23099
23100 PR ipa/69708
23101 * cgraph.h (cgraph_indirect_call_info): New field
23102 guaranteed_unmodified.
23103 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23104 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23105 appropriate.
23106 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23107 pass the parameter value to ipa_find_agg_cst_for_param.
23108 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23109 guaranteed_unmodified, store AA results there instead of bailing out
23110 if present.
23111 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23112 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23113 (find_constructor_constant_at_offset): New function.
23114 (ipa_find_agg_cst_from_init): Likewise.
23115 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23116 static initializers of contants, report back through a new paameter
23117 from_global_constant if that was the case.
23118 (try_make_edge_direct_simple_call): Also pass parameter value to
23119 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23120 appropriate.
23121 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23122 (ipa_read_indirect_edge_info): Likewise.
23123 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23124 (ipa_load_from_parm_agg): Likewise.
23125
23126 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23127
23128 PR rtl-optimization/71150
23129 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23130 check.
23131
23132 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23133
23134 PR target/70915
23135 * config/rs6000/constraints.md (wE constraint): New constraint
23136 for a vector constant that can be loaded with XXSPLTIB.
23137 (wM constraint): New constraint for a vector constant of a 1's.
23138 (wS constraint): New constraint for a vector constant that can be
23139 loaded with XXSPLTIB and a vector sign extend instruction.
23140 * config/rs6000/predicates.md (xxspltib_constant_split): New
23141 predicates for wE/wS constraints.
23142 (xxspltib_constant_nosplit): Likewise.
23143 (easy_vector_constant): Add support for constants that can be
23144 loaded via XXSPLTIB.
23145 (all_ones_constant): New predicate for vector constant with all
23146 1's set.
23147 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23148 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23149 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23150 instruction and possibly with a sign extension.
23151 (output_vec_const_move): Add support for XXSPLTIB. If we are
23152 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23153 instead of XXLXOR/XXLORC.
23154 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23155 operations.
23156 (rs6000_legitimize_reload_address): Likewise.
23157 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23158 constants.
23159 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23160 combine VSX_M and VSX_M2 into one iterator.
23161 (VSX_M2): Likewise.
23162 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23163 (VSINT_842): Likewise.
23164 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23165 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23166 XXSPLTIB instruction.
23167 (xxspltib_<mode>_nosplit): Likewise.
23168 (xxspltib_<mode>_split): New insn to load up constants with
23169 XXSPLTIB and a sign extend instruction.
23170 (vsx_mov<mode>): Replace single move that handled all vector types
23171 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23172 moves (when -mvsx-timode is in effect) into the main vector
23173 moves. Eliminate separate moves for <VSr> <VSa>, where the
23174 preferred register class (<VSr>) is listed first, and the
23175 secondary register class (<VSa>) is listed second with a '?' to
23176 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23177 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23178 that if the register was involved in a slow operation, the
23179 clear/set operation does not wait for the slow operation to
23180 finish. Adjust the length attributes for 32-bit mode. Use
23181 rs6000_output_move_128bit and drop the use of the string
23182 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23183 spacing so that the alternatives and attributes don't generate
23184 long lines, and put things in columns, so that it is easier to
23185 match up the operands and attributes with the insn alternatives.
23186 (vsx_mov<mode>_64bit): Likewise.
23187 (vsx_mov<mode>_32bit): Likewise.
23188 (vsx_movti_64bit): Fold movti into normal vector moves.
23189 (vsx_movti_32bit): Likewise.
23190 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23191 splat instructions.
23192 (vsx_splat_v4si_internal): Likewise.
23193 (vsx_splat_v4sf_internal): Likewise.
23194 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23195 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23196 extend vector elements.
23197 (vsx_sign_extend_hi_<mode>): Likewise.
23198 (vsx_sign_extend_si_v2di): Likewise.
23199 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23200 declaration.
23201 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23202 constraints. Add trailing period to wL documentation.
23203
23204 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23205
23206 PR middle-end/71020
23207 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23208 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23209 * tree-call-cdce.c: Include tree-dfa.h.
23210 (can_guard_call_p): New function, extracted from...
23211 (can_use_internal_fn): ...here.
23212 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23213 and return void.
23214 (shrink_wrap_one_built_in_call): Likewise.
23215 (use_internal_fn): Likewise.
23216 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23217 and return void. Call replace_abnormal_ssa_names.
23218 (pass_call_cdce::execute): Check can_guard_call_p during the
23219 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23220 will always change something.
23221
23222 2016-05-18 Martin Jambor <mjambor@suse.cz>
23223
23224 PR ipa/70646
23225 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23226 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23227
23228 2016-05-18 Martin Jambor <mjambor@suse.cz>
23229
23230 PR ipa/70646
23231 * ipa-inline.h (condition): New field size.
23232 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23233 for comaprison and store it into the new condition.
23234 (evaluate_conditions_for_known_args): Use condition size to check
23235 access sizes for all but CHANGED conditions.
23236 (unmodified_parm_1): New parameter size_p, store access size into it.
23237 (unmodified_parm): Likewise.
23238 (unmodified_parm_or_parm_agg_item): Likewise.
23239 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23240 (set_cond_stmt_execution_predicate): Extract access sizes and store
23241 them to conditions.
23242 (set_switch_stmt_execution_predicate): Likewise.
23243 (will_be_nonconstant_expr_predicate): Likewise.
23244 (will_be_nonconstant_predicate): Likewise.
23245 (inline_read_section): Stream condition size.
23246 (inline_write_summary): Likewise.
23247
23248 2016-05-18 Richard Biener <rguenther@suse.de>
23249
23250 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23251 condition cost to PHI cost instead of total_cost.
23252
23253 2016-05-18 Martin Liska <mliska@suse.cz>
23254
23255 PR fortran/70856
23256 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23257 merged variables.
23258
23259 2016-05-18 Richard Biener <rguenther@suse.de>
23260
23261 * lto-streamer.h (LTO_major_version): Bump to 6.
23262
23263 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23264
23265 * function.c (make_split_prologue_seq, make_prologue_seq,
23266 make_epilogue_seq): New functions, factored out from...
23267 (thread_prologue_and_epilogue_insns): Here.
23268
23269 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23270
23271 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23272 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23273 of before. Add a comment.
23274
23275 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23276
23277 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23278 expression pointer, not pointer to the pointer.
23279
23280 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23281
23282 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23283 (avx2_pbroadcast<mode>): Add another alternative with v instead
23284 of x constraints in it, using <pbroadcast_evex_isa> isa.
23285 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23286
23287 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23288 constraint x instead of v in second alternative, add avx512bw
23289 alternative.
23290
23291 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23292 constraint x instead of v in second alternative, add avx512bw
23293 alternative.
23294
23295 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23296 constraint x instead of v in second alternative, add avx512bw
23297 alternative.
23298
23299 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23300 avx512bw alternative.
23301
23302 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23303
23304 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23305 array to 128 chars.
23306 (define_insn "*andnottf3"): Ditto.
23307 (define_insn "*<code><mode>3"/any_logic): Ditto.
23308 (define_insn "*<code>tf3"/any_logic): Ditto.
23309 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23310 operand to block AVX-512VL insn variant emit when it is not enabled.
23311
23312 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23313
23314 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23315 constraint fot SF mode.
23316
23317 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23318 Kirill Yukhin <kirill.yukhin@intel.com>
23319
23320 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23321 modifiers.
23322 (define_insn "rsqrt14<mode>"): Ditto.
23323 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23324 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23325 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23326 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23327 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23328 Ditto.
23329 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23330 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23331 * config/i386/i386.c (ix86_print_operand): Expand check for size
23332 override codes for Intel syntax.
23333
23334 2016-05-18 Richard Biener <rguenther@suse.de>
23335
23336 PR tree-optimization/71168
23337 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23338 initialization earlier.
23339
23340 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23341
23342 * config/aarch64/aarch64-simd.md
23343 (aarch64_reduc_plus_internal<mode>): Rename to...
23344 (reduc_plus_scal): ...This, and remove previous implementation.
23345
23346 2016-05-18 Richard Biener <rguenther@suse.de>
23347
23348 * passes.def: Put late dse and cd_dce in canonical order.
23349
23350 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23351
23352 * ipa-inline-transform.c (preserve_function_body_p): Look for
23353 first non-thunk clone.
23354 (save_function_body): Save into first non-thunk.
23355 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23356 up call stmt id.
23357 (lto_output_node): Inline thunks don't need body in every
23358 partition.
23359 * lto-streamer-in.c: Do not fixup thunk clones.
23360 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23361 thunks.
23362 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23363 folding suceeds.
23364
23365 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23366
23367 PR middle-end/63586
23368 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23369 (reassociate_bb): Call transform_add_to_multiply.
23370
23371 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23372
23373 * config/aarch64/aarch64.c (all_extensions): Removed unused
23374 static variable.
23375
23376 2016-05-17 Nathan Sidwell <nathan@acm.org>
23377
23378 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23379 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23380
23381 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23382
23383 PR tree-optimization/54579
23384 PR middle-end/55299
23385 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23386
23387 2016-05-17 Marek Polacek <polacek@redhat.com>
23388
23389 PR ipa/71146
23390 * tree-inline.c (expand_call_inline): Call
23391 maybe_remove_unused_call_args.
23392
23393 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23394
23395 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23396 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23397 * doc/md.texi (fmin@var{m}3): Likewise.
23398
23399 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23400
23401 * match.pd (X & C): New transformation.
23402
23403 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23404
23405 * match.pd (~X & Y): New transformation.
23406
23407 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23408
23409 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23410 information for new SSA_NAME.
23411 (simplify_conversion_using_ranges): Get range through get_range_info
23412 instead of get_value_range.
23413
23414 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23415
23416 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23417 Remove inline assembly.
23418 (vmvn_s16): Likewise.
23419 (vmvn_s32): Likewise.
23420 (vmvn_u8): Likewise.
23421 (vmvn_u16): Likewise.
23422 (vmvn_u32): Likewise.
23423 (vmvnq_s8): Likewise.
23424 (vmvnq_s16): Likewise.
23425 (vmvnq_s32): Likewise.
23426 (vmvnq_u8): Likewise.
23427 (vmvnq_u16): Likewise.
23428 (vmvnq_u32): Likewise.
23429 (vmvn_p8): Likewise.
23430 (vmvnq_p16): Likewise.
23431
23432 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23433
23434 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23435 Use builtin.
23436 (vmul_n_s16): Likewise.
23437 (vmul_n_s32): Likewise.
23438 (vmul_n_u16): Likewise.
23439 (vmul_n_u32): Likewise.
23440 (vmulq_n_f32): Likewise.
23441 (vmulq_n_f64): Likewise.
23442 (vmulq_n_s16): Likewise.
23443 (vmulq_n_s32): Likewise.
23444 (vmulq_n_u16): Likewise.
23445 (vmulq_n_u32): Likewise.
23446
23447 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23448
23449 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23450 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23451
23452 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23453
23454 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23455 to *aarch64_fma4_elt_from_dup<mode>.
23456 (*aarch64_fnma4_elt_to_128df): Rename to
23457 *aarch64_fnma4_elt_from_dup<mode>.
23458 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23459 (vfms_n_f32): Likewise.
23460 (vfms_n_f64): Likewise.
23461 (vfmsq_n_f32): Likewise.
23462 (vfmsq_n_f64): Likewise.
23463
23464 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23465
23466 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23467
23468 2016-05-17 Richard Biener <rguenther@suse.de>
23469
23470 PR tree-optimization/71132
23471 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23472 Only add control dependences for blocks in the loop.
23473 (build_rdg): Adjust.
23474 (generate_code_for_partition): Return whether loop should
23475 be destroyed and delay that.
23476 (distribute_loop): Likewise.
23477 (pass_loop_distribution::execute): Record loops to be destroyed
23478 and perform delayed destroying of loops.
23479
23480 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23481
23482 PR target/70809
23483 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23484
23485 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23486
23487 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23488
23489 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23490
23491 PR target/71114
23492 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23493 insertion point for instructions generated by validize_mem.
23494
23495 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23496
23497 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23498 in brackets.
23499
23500 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23501
23502 * config/aarch64/aarch64.c
23503 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23504 rather than a macro.
23505
23506 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23507
23508 * doc/invoke.texi (AArch64 Options): Various updates.
23509
23510 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23511
23512 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23513 into instrumentation thunks.
23514 * cif-code.def (CIF_CHKP): New.
23515
23516 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23517
23518 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23519
23520 2016-05-16 Martin Jambor <mjambor@suse.cz>
23521
23522 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23523 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23524
23525 2016-05-16 Marek Polacek <polacek@redhat.com>
23526
23527 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23528 commentary.
23529
23530 2016-05-16 Martin Jambor <mjambor@suse.cz>
23531
23532 PR hsa/70857
23533 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23534 the outlined kernel function.
23535
23536 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23537
23538 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23539 (ISA_HAS_DLSA): Ditto.
23540
23541 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23542
23543 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23544
23545 2016-05-16 Nathan Sidwell <nathan@acm.org>
23546
23547 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23548 (nvptx_name_replacement): Restore. Add comment.
23549 (write_fn_proto, write_fn_proto_from_insn,
23550 nvptx_output_call_insn): Restore
23551 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23552
23553 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23554
23555 * config/aarch64/aarch64.md
23556 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23557 (add<mode>3_compareC_imm): Likewise.
23558 (<optab>si3_uxtw): Split into register and immediate variants.
23559 (andsi3_compare0_uxtw): Likewise.
23560 (and<mode>3_compare0): Likewise.
23561 (and<mode>3nr_compare0): Likewise.
23562 (stack_protect_test_<mode>): Don't use %x for memory operands.
23563
23564 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23565
23566 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23567
23568 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23569
23570 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23571 Split integer shifts into shift_reg and bfm.
23572 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23573 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23574 (ror<mode>3_insn): Likewise.
23575 (<optab>si3_insn_uxtw): Likewise.
23576 (<optab><mode>3_insn): Change to rotate_imm.
23577 (extr<mode>5_insn_alt): Likewise.
23578 (extrsi5_insn_uxtw): Likewise.
23579 (extrsi5_insn_uxtw_alt): Likewise.
23580
23581 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23582
23583 * doc/tm.texi: Regenerate.
23584 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23585 (TARGET_INVALID_RETURN_TYPE): Remove.
23586 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23587 TARGET_INVALID_RETURN_TYPE.
23588 * target.def (invalid_parameter_type): Remove.
23589 (invalid_return_type): Remove.
23590
23591 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23592
23593 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23594 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23595 calls from thunk.
23596 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23597 gimple body.
23598 (preserve_function_body_p): No need to preserve function body
23599 * cif-codes.def (CIF_THUNK): Remove.
23600 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23601
23602 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23603
23604 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23605
23606 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23607
23608 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23609 for thunks.
23610
23611 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23612
23613 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23614 (inline_small_functions): Do not look for function symbol when
23615 resetting caches.
23616
23617 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23618
23619 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23620 of inline thunks
23621
23622 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23623 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23624 Jiong Wang <jiong.wang@arm.com>
23625
23626 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23627 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23628 Define __ARM_FP16_ARGS when appropriate.
23629 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23630 declaration.
23631 (arm_invalid_return_type): Likewise.
23632 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23633 (TARGET_INVALID_RETURN_TYPE): Remove.
23634 (aapcs_vfp_sub_candidate): Allow HFmode.
23635 (aapcs_vfp_allocate): Add comment. Support HFmode.
23636 (aapcs_vfp_allocate_return_reg): Likewise.
23637 (struct aapcs_cp_arg_layout): Slightly reword comments for
23638 is_return_candidate and allocate_return_reg.
23639 (output_mov_vfp): Update assert.
23640 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23641 condition.
23642 (arm_invalid_parameter_type): Remove.
23643 (amr_invalid_return_type): Remove.
23644 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23645 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23646 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23647
23648 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23649
23650 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23651 * config/aarch64/arch64-protos.h
23652 (aarch64_legitimize_reload_address): Remove.
23653 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23654 Remove.
23655
23656 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23657
23658 * configure.ac: Add ACX_NONCANONICAL_HOST.
23659 * configure: Regenerate.
23660 * Makefile.in: Set host_noncanonical.
23661
23662 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23663
23664 PR target/71097
23665 * config/i386/i386.md (*movtf_internal): Before register allocation,
23666 do not allow FP constants for CM_MEDIUM memory model, allow only
23667 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23668 (*movxf_internal): Ditto.
23669 (*movdf_internal): Ditto.
23670 (*movsf_internal): Ditto.
23671
23672 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23673
23674 PR rtl-optimization/67483
23675 * combine.c (make_compound_operation): Don't call extract_left_shift
23676 with negative shift amounts.
23677
23678 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23679
23680 PR bootstrap/71071
23681 * fold-const.c (fold_checksum_tree): Allow modification
23682 of TYPE_ALIAS_SET during folding.
23683
23684 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23685 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23686 (ix86_split_to_parts): Likewise. Fix up formatting.
23687
23688 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23689
23690 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23691 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23692 printf format.
23693
23694 2016-05-13 Nathan Sidwell <nathan@acm.org>
23695
23696 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23697 (nvptx_name_replacement): Delete.
23698 (write_fn_proto, write_fn_proto_from_insn,
23699 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23700 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23701 * langhooks.c (add_builtin_funcction_common): Call
23702 targetm.mangle_decl_assembler_name.
23703
23704 * config/nvptx/nvptx.c (write_fn_proto): Handle
23705 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23706
23707 2016-05-13 Martin Liska <mliska@suse.cz>
23708
23709 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23710 and PRIu64 in printf format.
23711
23712 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23713
23714 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23715 comment.
23716
23717 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23718
23719 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23720 Change --param max-completely-peeled-times to
23721 --param max-completely-peel-times in dump file printing.
23722
23723 2016-05-13 Richard Biener <rguenther@suse.de>
23724
23725 PR tree-optimization/42587
23726 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23727 (find_bswap_or_nop_1): Likewise.
23728 (bswap_replace): Likewise.
23729
23730 2016-05-13 Martin Liska <mliska@suse.cz>
23731
23732 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23733 Initialize a variable with default value.
23734
23735 2016-05-13 Martin Liska <mliska@suse.cz>
23736
23737 * doc/invoke.texi: Enhance explanation of error recovery
23738 of sanitizers.
23739
23740 2016-05-13 Martin Liska <mliska@suse.cz>
23741
23742 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23743 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23744 (iv_inv_expr_ent *).
23745 (struct iv_inv_expr_ent): Comment struct fields.
23746 (sort_iv_inv_expr_ent): New function.
23747 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23748 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23749 a hash_map between iv_inv_expr_ent and number of usages.
23750 (niter_for_exit): Fix coding style.
23751 (tree_ssa_iv_optimize_init): Use renamed variable.
23752 (determine_base_object): Fix coding style.
23753 (alloc_iv): Likewise.
23754 (find_interesting_uses_outside): Likewise.
23755 (add_candidate_1): Likewise.
23756 (add_standard_iv_candidates): Likewise.
23757 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23758 (prepare_decl_rtl): Fix coding style.
23759 (get_address_cost): Likewise.
23760 (get_shiftadd_cost): Likewise.
23761 (force_expr_to_var_cost): Likewise.
23762 (compare_aff_trees): Likewise.
23763 (get_expr_id): Restructure the function.
23764 (get_loop_invariant_expr_id): Renamed to
23765 get_loop_invariant_expr.
23766 (get_computation_cost_at): Replace usage of inv_expr_id with
23767 inv_expr.
23768 (get_computation_cost): Likewise.
23769 (determine_group_iv_cost_generic): Likewise.
23770 (determine_group_iv_cost_address): Likewise.
23771 (iv_period): Fix coding style.
23772 (iv_elimination_compare_lt): Likewise.
23773 (may_eliminate_iv): Likewise.
23774 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23775 inv_expr.
23776 (determine_group_iv_costs): Dump invariant expressions.
23777 (iv_ca_recount_cost): Use the newly added hash_map.
23778 (iv_ca_set_remove_invariants): Fix coding style.
23779 (iv_ca_set_add_invariants): Fix coding style.
23780 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23781 invariants.
23782 (iv_ca_set_cp): Likewise.
23783 (iv_ca_new): Initialize the newly added hash_map and remove
23784 initialization of fields.
23785 (iv_ca_free): Delete the hash_map.
23786 (iv_ca_dump): Dump invariant expressions.
23787 (iv_ca_extend): Fix coding style.
23788 (try_add_cand_for): Likewise.
23789 (create_new_ivs): Dump information about # of avg iterations and
23790 # of used invariant expressions.
23791 (rewrite_use_compare): Fix coding style.
23792 (free_loop_data): Set default value for max_inv_expr_id.
23793
23794 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23795
23796 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23797 returned value cse_cfg_altered computation.
23798 (rest_of_handle_cse2): Likewise.
23799 (rest_of_handle_cse_after_global_opts): Likewise.
23800
23801 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23802
23803 PR target/53440
23804 * config/arm/arm.c (arm32_output_mi_thunk): New.
23805 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23806 to split Thumb1 vs TARGET_32BIT functionality.
23807 (arm_thumb1_mi_thunk): New.
23808
23809 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23810
23811 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23812 to true.
23813
23814 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23815
23816 PR target/71080
23817 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23818
23819 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23820
23821 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23822 (expand_builtin_trap): Emit a regular call.
23823 (set_builtin_user_assembler_name): Remove obsolete cases.
23824 * dse.c (scan_insn): Adjust.
23825 * except.c: Include calls.h.
23826 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23827 emit a regular call to setjmp.
23828 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23829 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23830 (emit_block_move_via_libcall): Delete.
23831 (block_move_fn): Delete.
23832 (init_block_move_fn): Likewise.
23833 (emit_block_move_libcall_fn): Likewise.
23834 (emit_block_op_via_libcall): New function.
23835 (set_storage_via_libcall): Tidy up and use memset builtin.
23836 (block_clear_fn): Delete.
23837 (init_block_clear_fn): Likewise.
23838 (clear_storage_libcall_fn): Likewise.
23839 (expand_assignment): Call emit_block_move_via_libcall.
23840 Do not include gt-expr.h.
23841 * expr.h (emit_block_op_via_libcall): Declare.
23842 (emit_block_copy_via_libcall): New inline function.
23843 (emit_block_move_via_libcall): Likewise.
23844 (emit_block_comp_via_libcall): Likewise.
23845 (block_clear_fn): Delete.
23846 (init_block_move_fn): Likewise.
23847 (init_block_clear_fn): Likewise.
23848 (emit_block_move_via_libcall): Likewise.
23849 (set_storage_via_libcall): Add default parameter value.
23850 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23851 (abort_libfunc): Delete.
23852 (memcpy_libfunc): Likewise.
23853 (memmove_libfunc): Likewise.
23854 (memcmp_libfunc): Likewise.
23855 (memset_libfunc): Likewise.
23856 (setbits_libfunc): Likewise.
23857 (setjmp_libfunc): Likewise.
23858 (longjmp_libfunc): Likewise.
23859 (profile_function_entry_libfunc): Likewise.
23860 (profile_function_exit_libfunc): Likewise.
23861 (gcov_flush_libfunc): Likewise.
23862 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23863 and DECL_VISIBILITY on the declaration.
23864 (init_optabs): Do not initialize obsolete libfuncs.
23865 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23866 * tree-core.h (ECF_RET1): Define.
23867 (ECF_TM_PURE): Adjust.
23868 (ECF_TM_BUILTIN): Likewise.
23869 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23870 (build_common_builtin_nodes): Initialize abort builtin.
23871 Add ECF_RET1 on memcpy, memmove and memset builtins.
23872 Pass final flags for alloca and alloca_with_align builtins.
23873 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23874 obsolete builtins.
23875 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23876 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23877 set_storage_via_libcall and call emit_block_copy_via_libcall.
23878
23879 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23880
23881 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23882 DImode before it is passed to ix86_output_call_operand.
23883 (*call_value_got_x32): Ditto for operand 1.
23884
23885 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23886
23887 PR rtl-optimization/70904
23888 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23889 reload for wide mode.
23890
23891 2016-05-12 Marek Polacek <polacek@redhat.com>
23892
23893 PR c/70756
23894 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23895 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23896 * langhooks.h (incomplete_type_error): Likewise.
23897 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23898 parameter, pass it down to incomplete_type_error.
23899 * tree.h (size_in_bytes): New inline overload.
23900 (size_in_bytes_loc): Renamed from size_in_bytes.
23901
23902 2016-05-12 Richard Biener <rguenther@suse.de>
23903
23904 PR tree-optimization/71059
23905 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23906 nary before looking up or entering the expression into the VN
23907 hashes.
23908 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23909 Make sure to re-use NARYs without result as inserted by
23910 phi-translation.
23911
23912 2016-05-12 Richard Biener <rguenther@suse.de>
23913
23914 PR tree-optimization/71062
23915 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23916 field.
23917 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23918 vars_contains_restrict if the var is a restrict tag.
23919 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23920 do not disambiguate pointers against it.
23921 (dump_points_to_solution): Re-structure and adjust for new
23922 vars_contains_restrict flag.
23923 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23924
23925 2016-05-12 Martin Liska <mliska@suse.cz>
23926
23927 * doc/invoke.texi: Explain connection between
23928 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23929
23930 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23931
23932 PR tree-optimization/71006
23933 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23934 consider COND_EXPR as a mask producer.
23935
23936 2016-05-12 Marek Polacek <polacek@redhat.com>
23937
23938 PR driver/71063
23939 * opts.c (common_handle_option): Detect missing argument for --help^.
23940
23941 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23942
23943 PR target/70830
23944 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23945 when popping the PC and within an interrupt handler routine.
23946 Add missing tab to output of "ldmfd".
23947 (output_return_instruction): Output LDMFD with SP update rather
23948 than POP when returning from interrupt handler.
23949
23950 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23951
23952 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23953 TARGET_64BIT && TARGET_AVX512DQ.
23954 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23955 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23956 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23957 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23958 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23959 (*vec_extractv4si_zext): Add avx512dq alternative.
23960 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23961 use v instead of x constraint in other alternatives where possible.
23962
23963 * config/i386/sse.md (sse2_loadld): Use v instead of x
23964 constraint in alternatives 0,1,4.
23965
23966 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23967 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23968 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23969
23970 PR target/71019
23971 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23972 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23973 is not emitted unless TARGET_AVX512BW.
23974 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23975 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23976 for the result operand.
23977
23978 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23979 constraint instead of x in avx alternatives. Use maybe_evex instead
23980 of vex prefix.
23981
23982 * config/i386/constraints.md (Yv): New constraint.
23983 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23984 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23985 * config/i386/i386.md (avx512fvecmode): New mode attr.
23986 (*pushtf): Use v constraint instead of x.
23987 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23988 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23989 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23990 (*absnegtf2_sse): Likewise.
23991 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23992 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23993 avx512f alternatives.
23994 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23995
23996 2016-05-12 Richard Biener <rguenther@suse.de>
23997
23998 PR tree-optimization/71060
23999 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24000 require exact match of DR_BASE_OBJECT but only matching address and
24001 type.
24002
24003 2016-05-12 Richard Biener <rguenther@suse.de>
24004
24005 PR tree-optimization/70986
24006 * cfganal.c: Include cfgloop.h.
24007 (dfs_find_deadend): Prefer to take edges exiting loops.
24008
24009 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24010
24011 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24012 compile and run time.
24013
24014 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24015
24016 PR c/43651
24017 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24018
24019 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24020
24021 * config/i386/i386.c (legitimize_pic_address): Use
24022 copy_to_suggested_reg instead of gen_movsi.
24023
24024 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24025
24026 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24027 the code into quad_address_p and call it to share code with
24028 vsx_quad_dform_memory_operand.
24029 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24030 d-form support.
24031 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24032 bit instead of being a separate word. Split -mpower9-dform into
24033 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24034 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24035 for the register class supporting 128-bit quad word memory offsets.
24036 (mode_supports_vsx_dform_quad): Helper function to return if the
24037 register class uses quad word memory offsets.
24038 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24039 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24040 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24041 instructions are enabled, set up the appropriate addr_masks for
24042 128-bit types.
24043 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24044 -mpower9-dform-scalar, instead of -mpower9-dform.
24045 (rs6000_option_override_internal): Split -mpower9-dform into two
24046 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24047 -mpower9-dform switch sets or clears both. If we are not using
24048 the LRA register allocator, do not enable -mpower9-dform-vector by
24049 default. If we are using LRA, enable -mpower9-dform-vector and
24050 -mvsx-timode if it is appropriate. Issue a warning if either
24051 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24052 enabling LRA.
24053 (quad_address_offset_p): New helper function to return if the
24054 offset is legal for quad word memory instructions.
24055 (quad_address_p): New function to determin if GPR or vector
24056 register quad word memory addresses are legal.
24057 (mem_operand_gpr): Validate quad word address offsets.
24058 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24059 d-form (register + offset) instructions.
24060 (offsettable_ok_by_alignment): Likewise.
24061 (rs6000_legitimate_offset_address_p): Likewise.
24062 (legitimate_lo_sum_address_p): Likewise.
24063 (rs6000_legitimize_address): Likewise.
24064 (rs6000_legitimize_reload_address): Add more debug statements for
24065 -mdebug=addr.
24066 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24067 d-form instructions.
24068 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24069 d-form instructions. Distinguish different cases in debug
24070 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24071 d-form instructions.
24072 (rs6000_preferred_reload_class): Likewise.
24073 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24074 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24075 of the ISA 2.06 indexed memory instructions.
24076 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24077 use them to save/restore the saved vector registers instead of
24078 using Altivec instructions.
24079 (rs6000_emit_epilogue): Likewise.
24080 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24081 (rs6000_opt_masks): Split -mpower9-dform into
24082 -mpower9-dform-scalar and -mpower9-dform-vector.
24083 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24084 was not selected.
24085 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24086 ISA 3.0 vector indexed memory instructions, and fold the code into
24087 the normal mov<mode> patterns.
24088 (p9_vecstore_<mode>): Likewise.
24089 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24090 instructions.
24091 (vsx_movti_64bit): Likewise.
24092 (vsx_movti_32bit): Likewise.
24093 * config/rs6000/constraints.md (wO constraint): New constraint for
24094 ISA 3.0 vector d-form support.
24095 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24096 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24097 include -mpower9-dform-vector until we switch over to LRA.
24098 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24099 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24100 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24101 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24102 for -mpower9-dform and -mlra.
24103 * doc/md.texi (wO constraint): Document wO constraint.
24104
24105 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24106
24107 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24108 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24109 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24110 Move handling of non-insn arguments inline into the sole user:
24111 (output_trans_func): ...here.
24112 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24113 in emitted function prototype.
24114 (output_internal_insn_latency_func): Ditto. Simplify.
24115 (output_internal_maximal_insn_latency_func): Ditto. Delete
24116 always-unused argument.
24117 (output_insn_latency_func): Ditto.
24118 (output_maximal_insn_latency_func): Ditto.
24119
24120 2016-05-11 Richard Biener <rguenther@suse.de>
24121
24122 PR tree-optimization/71055
24123 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24124 sth with precision not equal to access size verify we don't chop
24125 off bits.
24126
24127 2016-05-11 Richard Biener <rguenther@suse.de>
24128
24129 PR debug/71057
24130 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24131 (dwarf2out_finish): Move retry_incomplete_types call ...
24132 (dwarf2out_early_finish): ... here.
24133
24134 2016-05-11 Richard Biener <rguenther@suse.de>
24135
24136 PR middle-end/71002
24137 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24138 if the langhook insists on it.
24139 * fold-const.c (make_bit_field_ref): Add arg for the original
24140 reference and preserve its alias-set.
24141 (decode_field_reference): Take exp by reference and adjust it
24142 to the original memory reference.
24143 (optimize_bit_field_compare): Adjust callers.
24144 (fold_truth_andor_1): Likewise.
24145 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24146
24147 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24148
24149 PR middle-end/70807
24150 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24151 * cfgrtl.c (delete_insn_and_edges): Likewise.
24152 * config/i386/i386.c (convert_scalars_to_vector): Remove
24153 redundant code.
24154 * cse.c (cse_insn): Compute cse_cfg_altered.
24155 (delete_trivially_dead_insns): Likewise.
24156 (cse_cc_succs): Likewise.
24157 (rest_of_handle_cse): Free dominance info if required.
24158 (rest_of_handle_cse2): Likewise.
24159 (rest_of_handle_cse_after_global_opts): Likewise.
24160
24161 2016-05-11 Alan Modra <amodra@gmail.com>
24162
24163 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24164 abi_v4_pass_in_fpr): New functions.
24165 (rs6000_function_arg_boundary): Exclude complex IBM long double
24166 from 64-bit alignment when ABI_V4.
24167 (rs6000_function_arg, rs6000_function_arg_advance_1,
24168 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24169
24170 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24171
24172 PR rtl-optimization/71028
24173 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24174 jump with just a return in the fallthrough block if the branch
24175 block contains just a return as well.
24176
24177 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24178
24179 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24180 * match.pd ((X & Y) ^ Y): ... this.
24181 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24182 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24183
24184 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24185
24186 * read-md.c (require_char_ws): New function.
24187 (read_string): Simplify using require_char_ws.
24188 (handle_constants): Likewise.
24189 (handle_enum): Likewise.
24190 (handle_file): Likewise.
24191 * read-md.h (require_char_ws): New declaration.
24192 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24193 (read_mapping): Likewise.
24194 (read_rtx_code): Likewise.
24195 (read_nested_rtx): Likewise.
24196
24197 2016-05-10 James Norris <jnorris@codesourcery.com>
24198
24199 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24200 if offloading is enabled and -fopenacc or -fopenmp is specified.
24201 (CRTOFFLOADEND): Likewise.
24202 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24203 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24204
24205 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24206
24207 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24208 gotoff_operand code paths. Use copy_to_suggested_regs and
24209 expand_simple_binop where appropriate. Cleanup.
24210
24211 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24212
24213 PR target/70799
24214 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24215 integer constants.
24216 (dimode_scalar_chain::vector_const_cost): New.
24217 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24218 (dimode_scalar_chain::convert_op): Likewise.
24219 (dimode_scalar_chain::convert_insn): Likewise.
24220
24221 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24222
24223 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24224 unary operation, not a binary one.
24225
24226 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24227
24228 PR middle-end/70877
24229 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24230 calls with type casted fndecl.
24231
24232 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24233
24234 PR tree-optimization/70786
24235 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24236 * calls.c (initialize_argument_information): Bind bounds
24237 with corresponding args passed by reference.
24238
24239 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24240
24241 PR target/70927
24242 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24243 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24244 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24245 accordingly.
24246
24247 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24248
24249 PR target/70963
24250 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24251 code for a zero scale factor.
24252 (vsx_xvcvdpuxds_scale): Likewise.
24253
24254 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24255
24256 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24257 if show_ruler_p was set on the context.
24258 (layout::show_ruler): New method.
24259 * diagnostic.h (struct diagnostic_context): Add field
24260 "show_ruler_p".
24261
24262 2016-05-10 Richard Biener <rguenther@suse.de>
24263
24264 PR tree-optimization/71039
24265 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24266 (chk_uses): New function.
24267 (propagate_with_phi): Verify we can safely replicate the lhs of an
24268 aggregate assignment on all incoming edges.
24269
24270 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24271
24272 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24273 Forward declare.
24274 (rx_atomic_sequence): New class.
24275 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24276 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24277 non-inline.
24278 (rx_atomic_sequence::rx_atomic_sequence,
24279 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24280 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24281 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24282 CTRLREG_INTB): New constants.
24283 (FETCHOP): New code iterator.
24284 (fethcop_name, fetchop_name2): New iterator code attributes.
24285 (QIHI): New mode iterator.
24286 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24287 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24288 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24289
24290 2016-05-10 Martin Liska <mliska@suse.cz>
24291
24292 * tree-inline.c (remap_dependence_clique): Do not remap
24293 debugging statements.
24294
24295 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24296
24297 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24298 ("*fixuns_truncdfdi2_z13")
24299 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24300 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24301 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24302
24303 2016-05-10 Richard Biener <rguenther@suse.de>
24304
24305 PR tree-optimization/70497
24306 PR tree-optimization/28367
24307 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24308 split out from ...
24309 (visit_reference_op_load): ... here.
24310 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24311 with simplified BIT_FIELD_REFs.
24312 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24313 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24314 correctly.
24315
24316 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24317
24318 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24319 documentation comment. For BLOCK nodes, add a
24320 DW_AT_abstract_origin attribute that points to the DIE generated
24321 for the origin BLOCK.
24322 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24323 blocks from inlined functions.
24324
24325 2016-05-10 Alan Modra <amodra@gmail.com>
24326
24327 PR target/70947
24328 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24329 regrename modifying insns saving lr before __morestack call.
24330 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24331 insns restoring lr after __morestack call.
24332
24333 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24334
24335 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24336 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24337 expanders.
24338 * config/i386/sse.md (vec_interleave_high<mode>,
24339 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24340 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24341
24342 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24343
24344 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24345 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24346 parallel reassociation for power8 and forward.
24347
24348 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24349
24350 * config/i386/i386.md (absneg splitters with general regs): Use
24351 general_reg_operand predicate.
24352 (btsq peephole2): Use x86_64_immediate_operand to check if new
24353 value is suitable for immediate operand. Generate emitted insn
24354 using RTL expressions.
24355 (btcq peephole2): Ditto.
24356 (btrq peephole2): Ditto. Generate correct immediate operand
24357 for AND masking.
24358
24359 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24360
24361 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24362 bitpos.
24363
24364 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24365
24366 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24367 pointer dereference.
24368
24369 2016-05-09 Richard Biener <rguenther@suse.de>
24370
24371 PR tree-optimization/70985
24372 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24373 op0 isn't a gimple register.
24374
24375 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24376
24377 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24378 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24379 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24380 (i6400_fpu_mult): New cpu units.
24381 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24382 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24383 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24384 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24385 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24386 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24387 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24388 (i6400_msa_long_float4, i6400_msa_long_float5)
24389 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24390 (i6400_msa_fdiv_sf): New reservations.
24391 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24392 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24393 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24394 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24395 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24396 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24397 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24398 (msa_short_store4, msa_long_load, msa_short_store)
24399 (msa_long_logic, msa_long_float2, msa_long_float4)
24400 (msa_long_float5, msa_long_float8, msa_long_mult)
24401 (msa_long_fdiv, msa_long_div): New reservations.
24402
24403 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24404 Sameera Deshpande <sameera.deshpande@imgtec.com>
24405 Matthew Fortune <matthew.fortune@imgtec.com>
24406 Graham Stott <graham.stott@imgtec.com>
24407 Chao-ying Fu <chao-ying.fu@imgtec.com>
24408
24409 * config.gcc: Add MSA header file for mips*-*-* target.
24410 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24411 (Ubv8i, Urv8): New constraints.
24412 * config/mips/mips-ftypes.def: Add function types for MSA
24413 builtins.
24414 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24415 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24416 * config/mips/mips-msa.md: New file.
24417 * config/mips/mips-protos.h
24418 (mips_split_128bit_const_insns): New prototype.
24419 (mips_msa_idiv_insns): Likewise.
24420 (mips_split_128bit_move): Likewise.
24421 (mips_split_128bit_move_p): Likewise.
24422 (mips_split_msa_copy_d): Likewise.
24423 (mips_split_msa_insert_d): Likewise.
24424 (mips_split_msa_fill_d): Likewise.
24425 (mips_expand_msa_branch): Likewise.
24426 (mips_const_vector_same_val_p): Likewise.
24427 (mips_const_vector_same_bytes_p): Likewise.
24428 (mips_const_vector_same_int_p): Likewise.
24429 (mips_const_vector_shuffle_set_p): Likewise.
24430 (mips_const_vector_bitimm_set_p): Likewise.
24431 (mips_const_vector_bitimm_clr_p): Likewise.
24432 (mips_msa_vec_parallel_const_half): Likewise.
24433 (mips_msa_output_division): Likewise.
24434 (mips_ldst_scaled_shift): Likewise.
24435 (mips_expand_vec_cond_expr): Likewise.
24436 * config/mips/mips.c (enum mips_builtin_type): Add
24437 MIPS_BUILTIN_MSA_TEST_BRANCH.
24438 (mips_gen_const_int_vector_shuffle): New prototype.
24439 (mips_const_vector_bitimm_set_p): New function.
24440 (mips_const_vector_bitimm_clr_p): Likewise.
24441 (mips_const_vector_same_val_p): Likewise.
24442 (mips_const_vector_same_bytes_p): Likewise.
24443 (mips_const_vector_same_int_p): Likewise.
24444 (mips_const_vector_shuffle_set_p): Likewise.
24445 (mips_symbol_insns): Forbid loading symbols via immediate for
24446 MSA.
24447 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24448 stores.
24449 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24450 MSA.
24451 (mips_lx_address_p): Add support load indexed address for MSA.
24452 (mips_address_insns): Add calculation of instructions needed for
24453 stores and loads for MSA.
24454 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24455 CONST_VECTOR for MSA and let it fall through.
24456 (mips_ldst_scaled_shift): New function.
24457 (mips_subword_at_byte): Likewise.
24458 (mips_msa_idiv_insns): Likewise.
24459 (mips_legitimize_move): Validate MSA moves.
24460 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24461 calculation of costs for MSA division.
24462 (mips_split_move_p): Check if MSA moves need splitting.
24463 (mips_split_move): Split MSA moves if necessary.
24464 (mips_split_128bit_move_p): New function.
24465 (mips_split_128bit_move): Likewise.
24466 (mips_split_msa_copy_d): Likewise.
24467 (mips_split_msa_insert_d): Likewise.
24468 (mips_split_msa_fill_d): Likewise.
24469 (mips_output_move): Handle MSA moves.
24470 (mips_expand_msa_branch): New function.
24471 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24472 Reinstate 'y' modifier.
24473 (mips_file_start): Add MSA .gnu_attribute.
24474 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24475 FPRs.
24476 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24477 (mips_class_max_nregs): Add register size for MSA supported mode.
24478 (mips_cannot_change_mode_class): Allow conversion between MSA
24479 vector modes and TImode.
24480 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24481 instruction.
24482 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24483 (mips_preferred_simd_mode): Add preffered modes for MSA.
24484 (mips_vector_mode_supported_p): Add MSA supported modes.
24485 (mips_autovectorize_vector_sizes): New function.
24486 (mips_msa_output_division): Likewise.
24487 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24488 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24489 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24490 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24491 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24492 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24493 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24494 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24495 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24496 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24497 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24498 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24499 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24500 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24501 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24502 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24503 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24504 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24505 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24506 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24507 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24508 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24509 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24510 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24511 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24512 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24513 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24514 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24515 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24516 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24517 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24518 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24519 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24520 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24521 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24522 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24523 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24524 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24525 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24526 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24527 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24528 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24529 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24530 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24531 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24532 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24533 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24534 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24535 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24536 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24537 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24538 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24539 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24540 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24541 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24542 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24543 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24544 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24545 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24546 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24547 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24548 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24549 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24550 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24551 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24552 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24553 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24554 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24555 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24556 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24557 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24558 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24559 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24560 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24561 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24562 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24563 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24564 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24565 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24566 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24567 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24568 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24569 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24570 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24571 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24572 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24573 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24574 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24575 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24576 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24577 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24578 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24579 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24580 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24581 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24582 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24583 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24584 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24585 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24586 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24587 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24588 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24589 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24590 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24591 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24592 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24593 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24594 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24595 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24596 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24597 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24598 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24599 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24600 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24601 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24602 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24603 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24604 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24605 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24606 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24607 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24608 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24609 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24610 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24611 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24612 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24613 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24614 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24615 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24616 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24617 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24618 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24619 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24620 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24621 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24622 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24623 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24624 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24625 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24626 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24627 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24628 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24629 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24630 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24631 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24632 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24633 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24634 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24635 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24636 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24637 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24638 move_v builtins.
24639 (mips_get_builtin_decl_index): New array.
24640 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24641 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24642 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24643 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24644 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24645 array.
24646 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24647 hook.
24648 (mips_expand_builtin_insn): Prepare operands for
24649 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24650 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24651 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24652 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24653 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24654 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24655 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24656 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24657 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24658 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24659 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24660 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24661 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24662 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24663 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24664 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24665 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24666 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24667 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24668 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24669 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24670 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24671 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24672 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24673 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24674 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24675 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24676 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24677 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24678 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24679 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24680 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24681 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24682 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24683 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24684 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24685 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24686 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24687 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24688 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24689 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24690 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24691 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24692 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24693 These are set implicitly and an error is reported if overridden.
24694 (mips_expand_builtin_msa_test_branch): New function.
24695 (mips_expand_msa_shuffle): Likewise.
24696 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24697 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24698 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24699 (mips_expand_vec_unpack): Add support for MSA.
24700 (mips_expand_vector_init): Likewise.
24701 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24702 instead of const0_rtx.
24703 (mips_msa_vec_parallel_const_half): New function.
24704 (mips_gen_const_int_vector): Likewise.
24705 (mips_gen_const_int_vector_shuffle): Likewise.
24706 (mips_expand_msa_cmp): Likewise.
24707 (mips_expand_vec_cond_expr): Likewise.
24708 * config/mips/mips.h
24709 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24710 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24711 specified.
24712 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24713 (ISA_HAS_MSA): New macro.
24714 (UNITS_PER_MSA_REG): Likewise.
24715 (BITS_PER_MSA_REG): Likewise.
24716 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24717 (MSA_REG_FIRST): New macro.
24718 (MSA_REG_LAST): Likewise.
24719 (MSA_REG_NUM): Likewise.
24720 (MSA_REG_P): Likewise.
24721 (MSA_REG_RTX_P): Likewise.
24722 (MSA_SUPPORTED_MODE_P): Likewise.
24723 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24724 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24725 * config/mips/mips.md: Include mips-msa.md.
24726 (alu_type): Add simd_add.
24727 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24728 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24729 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24730 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24731 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24732 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24733 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24734 simd_move, simd_load, simd_store. Choose "multi" for moves
24735 for "qword_mode".
24736 (qword_mode): New attribute.
24737 (insn_count): Add instruction count for quad moves.
24738 Increase the count for MIPS SIMD division.
24739 (UNITMODE): Add UNITMODEs for vector types.
24740 (addsub): New code iterator.
24741 * config/mips/mips.opt (mmsa): New option.
24742 * config/mips/msa.h: New file.
24743 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24744 specified.
24745 * config/mips/mti-linux.h: Likewise.
24746 * config/mips/predicates.md
24747 (const_msa_branch_operand): New constraint.
24748 (const_uimm3_operand): Likewise.
24749 (const_uimm4_operand): Likewise.
24750 (const_uimm5_operand): Likewise.
24751 (const_uimm8_operand): Likewise.
24752 (const_imm5_operand): Likewise.
24753 (aq10b_operand): Likewise.
24754 (aq10h_operand): Likewise.
24755 (aq10w_operand): Likewise.
24756 (aq10d_operand): Likewise.
24757 (const_m1_operand): Likewise.
24758 (reg_or_m1_operand): Likewise.
24759 (const_exp_2_operand): Likewise.
24760 (const_exp_4_operand): Likewise.
24761 (const_exp_8_operand): Likewise.
24762 (const_exp_16_operand): Likewise.
24763 (const_vector_same_val_operand): Likewise.
24764 (const_vector_same_simm5_operand): Likewise.
24765 (const_vector_same_uimm5_operand): Likewise.
24766 (const_vector_same_uimm6_operand): Likewise.
24767 (const_vector_same_uimm8_operand): Likewise.
24768 (par_const_vector_shf_set_operand): Likewise.
24769 (reg_or_vector_same_val_operand): Likewise.
24770 (reg_or_vector_same_simm5_operand): Likewise.
24771 (reg_or_vector_same_uimm6_operand): Likewise.
24772 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24773 section.
24774 * doc/invoke.texi (-mmsa): Document new option.
24775
24776 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24777
24778 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24779 * configure: Regenerate.
24780 * config.in: Regenerate.
24781 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24782 on -fvtable-verify.
24783 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24784 (ENDFILE_VTV_SPEC): Define.
24785
24786 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24787
24788 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24789 registers in all interrupt handlers if necessary.
24790 (rl78_option_override): Add warning.
24791 (MUST_SAVE_MDUC_REGISTERS): New macro.
24792 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24793 * config/rl78/rl78.c (check_mduc_usage): New function.
24794 (mduc_regs): New structure to hold MDUC register data.
24795 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24796 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24797 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24798 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24799 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24800 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24801
24802 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24803
24804 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24805 (tree-ssa-loop-niter.h): Ditto.
24806 (idx_within_array_bound, ref_within_array_bound): New functions.
24807 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24808 Factor out check on writable base object to ...
24809 (base_object_writable): ... here.
24810
24811 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24812
24813 * config/arm/arm.md (probe_stack): Add modes to set source
24814 and destination.
24815
24816 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24817
24818 * regrename.c (base_reg_class_for_rename): New static function.
24819 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24820
24821 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24822
24823 * cgraph.c (thunk_adjust): Export.
24824 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24825 * cgraphunit.c (thunk_adjust): Export.
24826 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24827 thunks.
24828 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24829 inlinable.
24830 * tree-inline.c (expand_call_inline): Expand thunks inline.
24831
24832 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24833
24834 PR target/70998
24835 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24836 (*sse2_vd_cvtss2sd): Ditto.
24837 * config/i386/i386.md
24838 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24839 Generate *sse2_vd_cvtsd2ss pattern.
24840 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24841 Generate *sse2_vd_cvtss2sd pattern.
24842
24843 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24844
24845 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24846 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24847 users.
24848
24849 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24850
24851 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24852 * config/sh/sh.c: Define and declare variables on first use throughout
24853 the file.
24854 (current_function_interrupt): Change to bool type.
24855 (frame_insn): Rename to emit_frame_insn and update users.
24856 (push_regs): Use bool for 'interrupt_handler' argument.
24857 (save_schedule_s): Remove.
24858 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24859 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24860 targetm.asm_out.unaligned_op.di.
24861 (gen_far_branch): Remove redundant forward declaration.
24862 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24863 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24864 (sh_set_return_address, sh_function_ok_for_sibcall,
24865 scavenge_reg): Update comments.
24866 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24867 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24868 (sh_attr_renesas_p): Remove unnecessary parentheses.
24869 (branch_dest): Simplify.
24870 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24871 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24872 (CUMULATIVE_ARGS): Change macro to typedef.
24873 (current_function_interrupt): Change to bool type.
24874 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24875 Surround with __cplusplus ifdef.
24876 (sh_compare_op0, sh_compare_op1): Remove.
24877 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24878
24879 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24880
24881 * config/arm/arm.md (arch): Add neon.
24882 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24883 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24884 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24885 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24886 attributes for alt renumbering. Mark alt 3 as non-predicable.
24887 (thumb2_movdf_vfp): Likewise.
24888
24889 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24890
24891 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24892 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24893 (*andqi_1): Add preferred_for_speed attribute to disparage
24894 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24895 (*<code>qi_1): Ditto.
24896 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24897 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24898 (*ashlqi3_1): Ditto.
24899 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24900 Add preferred_for_size attribute to disparage alternative 0 and
24901 preferred_for_speed attribute to disparage alternative 1 for
24902 TARGET_PARTIAL_REG_STALL targets.
24903
24904 2016-05-07 Tom de Vries <tom@codesourcery.com>
24905
24906 PR tree-optimization/70956
24907 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24908 def.
24909
24910 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24911
24912 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24913 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24914 * config/sh/sh.md (branch_zero): Remove define_attr.
24915 (define_delay): Disable delay slot if branch distance is one insn.
24916
24917 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24918
24919 * config/i386/i386.md (LEAMODE): New mode attribute.
24920 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24921 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24922 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24923 operand 2 predicate.
24924 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24925 (*lea<mode>_general_3): Ditto.
24926 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24927
24928 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24929
24930 * genmddump.c (main): Convert argv from char ** to const char **.
24931
24932 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24933
24934 * coretypes.h (OVERRIDE): New macro.
24935 (FINAL): New macro.
24936
24937 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24938
24939 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24940 allow coalescing if the types are compatible.
24941
24942 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24943
24944 * pass_manager.h (pass_manager::register_pass_name): New method.
24945 (pass_manager::get_pass_by_name): New method.
24946 (pass_manager::create_pass_tab): New method.
24947 (pass_manager::m_name_to_pass_map): New field.
24948 * passes.c (name_to_pass_map): Delete global in favor of field
24949 "m_name_to_pass_map" of pass_manager.
24950 (register_pass_name): Rename from a function to...
24951 (pass_manager::register_pass_name): ...this method, updating
24952 for renaming of global "name_to_pass_map" to field
24953 "m_name_to_pass_map".
24954 (create_pass_tab): Rename from a function to...
24955 (pass_manager::create_pass_tab): ...this method, updating
24956 for renaming of global "name_to_pass_map" to field.
24957 (get_pass_by_name): Rename from a function to...
24958 (pass_manager::get_pass_by_name): ...this method.
24959 (enable_disable_pass): Convert use of get_pass_by_name to
24960 a method call, locating the pass_manager singleton.
24961
24962 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24963
24964 * genattr-common.c (main): Convert argv from char ** to const char **.
24965 * genattr.c (main): Likewise.
24966 * genattrtab.c (main): Likewise.
24967 * genautomata.c (initiate_automaton_gen): Likewise.
24968 (main): Likewise.
24969 * gencodes.c (main): Likewise.
24970 * genconditions.c (main): Likewise.
24971 * genconfig.c (main): Likewise.
24972 * genconstants.c (main): Likewise.
24973 * genemit.c (main): Likewise.
24974 * genenums.c (main): Likewise.
24975 * genextract.c (main): Likewise.
24976 * genflags.c (main): Likewise.
24977 * genmddeps.c (main): Likewise.
24978 * genopinit.c (main): Likewise.
24979 * genoutput.c (main): Likewise.
24980 * genpeep.c (main): Likewise.
24981 * genpreds.c (main): Likewise.
24982 * genrecog.c (main): Likewise.
24983 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24984 (init_rtx_reader_args): Likewise.
24985 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24986 (init_rtx_reader_args): Likewise.
24987 * gentarget-def.c (main): Likewise.
24988 * read-md.c (read_md_files): Likewise.
24989 * read-md.h (read_md_files): Likewise.
24990
24991 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24992
24993 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24994 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24995 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24996 Remove unused predicate.
24997 (register_and_not_fp_reg_operand): Ditto.
24998
24999 2016-05-06 Martin Liska <mliska@suse.cz>
25000
25001 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25002 instead of vec as the vector is local to the function.
25003
25004 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25005
25006 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25007 avx512bw alternative.
25008
25009 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25010 before the ashr<mode>3 pattern.
25011
25012 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25013 v instead of x in vex or maybe_vex alternatives, use
25014 maybe_evex instead of vex in prefix.
25015
25016 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25017 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25018 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25019 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25020 in prefix.
25021
25022 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25023 v instead of x in vex or maybe_vex alternatives, use
25024 maybe_evex instead of vex in prefix.
25025
25026 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25027 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25028 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25029 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25030 alternatives, use maybe_evex instead of vex in prefix.
25031
25032 * config/i386/sse.md (vec_interleave_lowv4sf,
25033 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25034 v instead of x in vex or maybe_vex alternatives, use
25035 maybe_evex instead of vex in prefix.
25036
25037 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25038 v instead of x in vex or maybe_vex alternatives, use
25039 maybe_evex instead of vex in prefix.
25040
25041 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25042 v constraint instead of x.
25043
25044 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25045
25046 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25047 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25048 equality first.
25049
25050 2016-05-06 Richard Biener <rguenther@suse.de>
25051
25052 PR tree-optimization/70948
25053 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25054 Properly clobber all fields of va_list for __builtin_va_start.
25055
25056 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25057
25058 PR debug/70935
25059 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25060 loop latch destination.
25061
25062 2016-05-06 Martin Liska <mliska@suse.cz>
25063
25064 * tree-ssa-uninit.c: Apply manual changes
25065 to the GNU coding style.
25066 (prune_uninit_phi_opnds): Rename from
25067 prune_uninit_phi_opnds_in_unrealizable_paths.
25068
25069 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25070
25071 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25072 mspace): Remove deprecated options.
25073 * doc/invoke.texi (SH options): Remove -mspace.
25074
25075 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25076
25077 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25078
25079 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25080
25081 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25082 corresponding combine split pattern.
25083
25084 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25085
25086 PR target/58219
25087 * config/sh/predicates.md (long_displacement_mem_operand): New.
25088 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25089 Add movi20, movi20s alternatives. Adjust length attribute for
25090 alternatives.
25091 (movsi_ie): Allow for any FPU. Adjust length attribute for
25092 alternatives.
25093 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25094 attribute for alternatives.
25095 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25096 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25097 length attribute for alternatives.
25098
25099 2016-05-06 Richard Biener <rguenther@suse.de>
25100
25101 PR tree-optimization/70960
25102 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25103
25104 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25105
25106 PR target/52933
25107 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25108 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25109
25110 2016-05-06 Marek Polacek <polacek@redhat.com>
25111
25112 PR sanitizer/70875
25113 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25114
25115 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25116
25117 PR target/54089
25118 * config/sh/sh.md (*rotcr): Add another variant.
25119
25120 2016-05-06 Richard Biener <rguenther@suse.de>
25121
25122 PR middle-end/70931
25123 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25124
25125 2016-05-06 Richard Biener <rguenther@suse.de>
25126
25127 PR middle-end/70941
25128 * fold-const.c (split_tree): Always convert to the original type
25129 before negating.
25130
25131 2016-05-06 Richard Biener <rguenther@suse.de>
25132
25133 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25134 (fwprop_addr): Likewise.
25135
25136 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25137
25138 PR target/70873
25139 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25140 New prototype.
25141 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25142 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25143 the splitter condition.
25144 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25145 the splitter condition.
25146 (FP float_extend load splitter): Ditto.
25147
25148 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25149
25150 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25151 to REGNO in all peephole2 patterns.
25152 (post-reload splitters): Change true_regnum to REGNO in
25153 post-reload splitters.
25154 (zero_extend splitters): Use general_reg_operand and
25155 nonimmediate_gr_operand predicates.
25156
25157 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25158
25159 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25160 v constraint instead of x.
25161
25162 2016-05-05 Alan Modra <amodra@gmail.com>
25163
25164 PR target/68662
25165 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25166 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25167 TARGET_NO_FP_IN_TOC for -mrelocatable.
25168 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25169 TARGET_RELOCATABLE test.
25170 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25171 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25172 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25173 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25174 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25175 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25176 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25177 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25178 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25179 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25180 Likewise.
25181 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25182 (rs6000_stack_info): Likewise.
25183 (rs6000_elf_asm_out_constructor): Likewise.
25184 (rs6000_elf_asm_out_destructor): Likewise.
25185 (rs6000_elf_declare_function_name): Likewise.
25186 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25187 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25188 Don't define.
25189
25190 2016-05-05 Alan Modra <amodra@gmail.com>
25191
25192 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25193
25194 2016-05-05 Alan Modra <amodra@gmail.com>
25195
25196 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25197 out-of-line gpr restore for one or two regs if that would add
25198 a save of lr.
25199
25200 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25201
25202 PR target/70873
25203 * config/i386/i386.md
25204 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25205 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25206 as operand 0 predicate.
25207 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25208 Ditto.
25209 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25210 Ditto. Emit the pattern using RTX.
25211
25212 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25213 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25214 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25215 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25216 Ditto.
25217 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25218 sse_reg_operand as operand 0 predicate.
25219
25220 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25221 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25222 instead of gen_rtx_REG.
25223 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25224 Ditto.
25225
25226 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25227
25228 * function.c (emit_use_return_register_into_block): Delete.
25229 (gen_return_pattern): Delete.
25230 (emit_return_into_block): Delete.
25231 (active_insn_between): Delete.
25232 (convert_jumps_to_returns): Delete.
25233 (emit_return_for_exit): Delete.
25234 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25235 simple_return for shrink-wrapped blocks.
25236 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25237 end of blocks that need one.
25238 (get_unconverted_simple_return): Delete.
25239 (convert_to_simple_return): Delete.
25240 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25241 (convert_to_simple_return): Ditto.
25242
25243 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25244
25245 * cfgcleanup.c (bb_is_just_return): New function.
25246 (try_optimize_cfg): Simplify jumps to return, branches to return,
25247 and branches around return.
25248
25249 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25250
25251 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25252 branch to a return.
25253
25254 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25255
25256 PR c++/70906
25257 PR c++/70933
25258 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25259 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25260 assert flags & OEP_HASH_CHECK, instead of asserting it
25261 never happens. Handle TARGET_EXPR.
25262 * fold-const.c (operand_equal_p): For hash verification,
25263 or in OEP_HASH_CHECK into flags.
25264
25265 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25266
25267 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25268 comment.
25269 (compute_samebase_partition_bases): Fix typo.
25270
25271 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25272
25273 * config/i386/sse.md (vec_interleave_highv8sf,
25274 vec_interleave_lowv8sf, vec_interleave_highv4df,
25275 vec_interleave_lowv4df): Remove constraints from expanders.
25276
25277 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25278
25279 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25280
25281 * tree-inline.c (expand_call_inline): Fix path dealing with
25282 making lhs of call statement undefined.
25283
25284 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25285
25286 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25287 Check availability on NODE, too.
25288 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25289 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25290 (varpool_node::call_for_symbol_and_aliase): Likewise.
25291 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25292 (propagate_pure_const): Propagate across interposable functions, too.
25293 (skip_function_for_local_pure_const): Do not skip interposable bodies
25294 with aliases.
25295 (pass_local_pure_const::execute): Update.
25296
25297 2016-05-04 Marek Polacek <polacek@redhat.com>
25298
25299 * doc/invoke.texi: Document -Wdangling-else.
25300
25301 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25302
25303 * config.gcc: Error out when conflicting multilib is detected. Do not
25304 loop over multilibs since no combination is legal.
25305
25306 2016-05-04 Alan Modra <amodra@gmail.com>
25307
25308 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25309 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25310 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25311 Align .toc.
25312
25313 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25314
25315 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25316 Clean up p5600 comments.
25317
25318 2016-05-04 Richard Biener <rguenther@suse.de>
25319
25320 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25321 constructor simplifications.
25322 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25323
25324 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25325
25326 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25327 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25328 result.set_rtx is null instead of aborting.
25329 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25330 Always enable.
25331 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25332 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25333 *mov<mode>_store_postinc): New patterns.
25334
25335 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25336
25337 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25338 as commutative. Check both conversions are NOP.
25339 ((A & B) OP (C & B)): Remove.
25340
25341 2016-05-04 Alan Modra <amodra@gmail.com>
25342
25343 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25344
25345 2016-05-04 Alan Modra <amodra@gmail.com>
25346
25347 PR target/70866
25348 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25349 when cr2,3,4 are all fixed regs.
25350
25351 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25352
25353 PR rtl-optimization/57193
25354 * opts.c (default_options_table): Revert OPT_frename_registers change.
25355 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25356
25357 2016-05-03 Martin Sebor <msebor@redhat.com>
25358
25359 PR c++/66561
25360 * builtins.c (fold_builtin_FILE): New function.
25361 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25362 (fold_builtin_0): Call them.
25363 * gimplify.c (gimplify_call_expr): Remove the handling of
25364 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25365
25366 PR c++/66561
25367 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25368 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25369 constants.
25370
25371 PR c++/66639
25372 * doc/extend.texi (Function Names as Strings): Update __func__,
25373 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25374 constants.
25375
25376 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25377 Richard Biener <rguenther@suse.de>
25378
25379 PR tree-optimization/70916
25380 * tree-if-conv.c: Include cfganal.h.
25381 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25382 and remove_fake_exit_edges around the optimization pass.
25383
25384 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25385
25386 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25387 (cgraph_edge::make_direct): Likewise.
25388 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25389 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25390 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25391 (CIF_THUNK): New code.
25392 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25393 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25394 (compute_inline_parameters): Set inline_failed for thunks.
25395 (inline_analyze_function): Cleanup.
25396 * ipa-inline.c (can_inline_edge_p): Do not deal with
25397 call_stmt_cannot_inline_p.
25398 (can_early_inline_edge_p): Likewise.
25399 (early_inliner): Initialize inline_failed.
25400 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25401
25402 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25403
25404 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25405 from nonimm_ssenomem_operand.
25406 (nonimm_ssenomem_operand): New predicate.
25407 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25408 as operand 0 predicate.
25409 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25410 Disable unsupported alternatives using "enabled" attribute.
25411 Use register_ssemem_operand as operand 0 predicate.
25412 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25413
25414 2016-05-03 Marek Polacek <polacek@redhat.com>
25415
25416 PR c/70859
25417 * input.c (expansion_point_location): New function.
25418 * input.h (expansion_point_location): Declare.
25419
25420 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25421
25422 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25423 occurence with frame_offset_ ones.
25424
25425 2016-05-03 Alan Modra <amodra@gmail.com>
25426
25427 PR rtl-optimization/70890
25428 * ira.c (combine_and_move_insns): When moving def_insn, remove
25429 equivs on use_insn.
25430
25431 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25432
25433 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25434 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25435 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25436 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25437
25438 2016-05-03 Alan Modra <amodra@gmail.com>
25439
25440 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25441 for SAVE_MULTIPLE/STORE_MULTIPLE.
25442
25443 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25444
25445 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25446 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25447
25448 2016-05-03 Richard Biener <rguenther@suse.de>
25449
25450 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25451 default true.
25452 (gimplify_arg): Likewise.
25453 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25454 re-writing the result to a decl if required.
25455 (internal_get_tmp_var): Add allow_ssa parameter
25456 and override into_ssa with it.
25457 (get_formal_tmp_var): Adjust.
25458 (get_initialized_tmp_var): Add allow_ssa parameter.
25459 (gimplify_arg): Add allow_ssa parameter and avoid generating
25460 SSA names for the result false.
25461 (gimplify_call_expr): If the call may return twice do not
25462 gimplify parameters into SSA.
25463 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25464 (gimplify_modify_expr): Adjust assert. For noreturn calls
25465 with a SSA name LHS adjust its def.
25466 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25467 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25468 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25469 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25470 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25471 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25472 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25473 (optimize_target_teams): Do not allow SSA names for clause operands.
25474 (gimplify_expr): Likewise for where we mark the result addressable.
25475 * passes.def (pass_init_datastructures): Remove.
25476 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25477 (rewrite_stmt): Likewise.
25478 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25479 (replace_locals_op): Replace SSA names.
25480 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25481 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25482 * cgraph.c (release_function_body): Free CFG annotations only
25483 when we have a CFG. Simplify.
25484 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25485 force_gimple_operand instead of get_initialized_tmp_var.
25486 * tree-pass.h (make_pass_init_datastructures): Remove.
25487 * tree-ssa.c (execute_init_datastructures): Remove.
25488 (pass_data_init_datastructures): Likewise.
25489 (class pass_init_datastructures): Likewise.
25490 (make_pass_init_datastructures): Likewise.
25491 * omp-low.c (create_omp_child_function): Init SSA data structures.
25492 (grid_expand_target_grid_body): Likewise.
25493 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25494 name before adding it to names_to_release.
25495 (remove_bb): Always release SSA defs.
25496 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25497 before dereferencing it.
25498 * cgraphunit.c (init_lowered_empty_function): Always
25499 int SSA data structures.
25500 * tree-ssanames.c (release_defs): Remove assert that we are in
25501 SSA form.
25502 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25503
25504 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25505 Uros Bizjak <ubizjak@gmail.com>
25506
25507 PR rtl-optimization/70467
25508 * config/i386/predicates.md (x86_64_hilo_int_operand,
25509 x86_64_hilo_general_operand): New predicates.
25510 * config/i386/constraints.md (Wd): New constraint.
25511 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25512 (general_hilo_operand): New mode attr.
25513 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25514 instead of <general_operand>.
25515 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25516 x86_64_hilo_general_operand instead of <general_operand>.
25517
25518 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25519
25520 PR tree-optimization/70916
25521 * tree-if-conv.c (constant_or_ssa_name): Removed.
25522 (fold_build_cond_expr): Use is_gimple_val instead of
25523 constant_or_ssa_name.
25524
25525 PR tree-optimization/70916
25526 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25527 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25528
25529 PR target/49244
25530 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25531 (optimize_atomic_bit_test_and): New function.
25532 (pass_fold_builtins::execute): Use it.
25533 * optabs.def (atomic_bit_test_and_set_optab,
25534 atomic_bit_test_and_complement_optab,
25535 atomic_bit_test_and_reset_optab): New optabs.
25536 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25537 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25538 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25539 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25540 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25541 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25542 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25543 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25544 atomic_bit_test_and_complement@var{mode},
25545 atomic_bit_test_and_reset@var{mode}): Document.
25546 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25547 atomic_bit_test_and_complement<mode>,
25548 atomic_bit_test_and_reset<mode>): New expanders.
25549 (atomic_bit_test_and_set<mode>_1,
25550 atomic_bit_test_and_complement<mode>_1,
25551 atomic_bit_test_and_reset<mode>_1): New insns.
25552
25553 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25554
25555 PR rtl-optimization/70687
25556 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25557 instead of unsigned HOST_WIDE_INT.
25558
25559 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25560
25561 PR rtl-optimization/44281
25562 * hard-reg-set.h (struct target_hard_regs): New field
25563 x_fixed_nonglobal_reg_set.
25564 (fixed_nonglobal_reg_set): New macro.
25565 * reginfo.c (init_reg_sets_1): Initialize it.
25566 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25567 of fixed_reg_set.
25568 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25569
25570 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25571
25572 PR tree-optimization/56541
25573 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25574 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25575 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25576 (any_complicated_phi): new static variable.
25577 (aggressive_if_conv): delete.
25578 (if_convertible_phi_p): support phis with more than two arguments.
25579 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25580 critical pred edges.
25581 (ifcvt_split_critical_edges): support phis with more than two
25582 arguments by checking new parameter. only split critical edges
25583 if needed.
25584 (tree_if_conversion): handle simd pragma marked loop using new
25585 local variable aggressive_if_conv. check any_complicated_phi.
25586
25587 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25588
25589 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25590 before using it.
25591
25592 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25593
25594 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25595 cbase.
25596
25597 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25598
25599 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25600 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25601 define_insn_and_split.
25602 (mulsi3_i): New define_insn_and_split.
25603 (mulsi3_call): Convert to define_insn.
25604 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25605 Remove constraints.
25606
25607 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25608
25609 * machmode.h (mode_complex): Add support to give the complex mode
25610 for a given mode.
25611 (GET_MODE_COMPLEX_MODE): Likewise.
25612 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25613 stored by build_complex_type and gfc_build_complex_type instead of
25614 trying to figure out the appropriate mode based on the size. Raise
25615 an assertion error, if the type was not set.
25616 * genmodes.c (struct mode_data): Add field for the complex type of
25617 the given type.
25618 (blank_mode): Likewise.
25619 (make_complex_modes): Remember the complex mode created in the
25620 base type.
25621 (emit_mode_complex): Write out the mode_complex array to map a
25622 type mode to the complex version.
25623 (emit_insn_modes_c): Likewise.
25624 * tree.c (build_complex_type): Set the complex type to use before
25625 calling layout_type.
25626 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25627 support for __float128 complex datatypes.
25628 (rs6000_hard_regno_mode_ok): Likewise.
25629 (rs6000_setup_reg_addr_masks): Likewise.
25630 (rs6000_complex_function_value): Likewise.
25631 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25632 __float128 and __ibm128 complex.
25633 (FLOAT128_IBM_P): Likewise.
25634 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25635 * doc/extend.texi (Additional Floating Types): Document that
25636 -mfloat128 must be used to enable __float128. Document complex
25637 __float128 and __ibm128 support.
25638
25639 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25640
25641 PR target/49244
25642 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25643 char/short arguments promoted to int because of promote_prototypes.
25644
25645 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25646
25647 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25648 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25649 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25650 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25651 alternatives using "enabled" attribute. Use register_ssemem_operand
25652 as operand 1 predicate.
25653 (*cmpi<unord>xf_i387): Split XFmode pattern from
25654 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25655 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25656 *absneg<mode>2_i387. Disable unsupported alternatives using
25657 "enabled" attribute.
25658 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25659
25660 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25661
25662 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25663 marker.
25664 (oacc_loop_process): Check mask for loop termination.
25665
25666 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25667
25668 * cif-code.def (CIF_THUNK): Add.
25669 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25670 accidental change.
25671
25672 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25673
25674 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25675 (dump_inline_summary): Dump it.
25676 (fp_expression_p): New predicate.
25677 (estimate_function_body_sizes): Use it.
25678 (inline_merge_summary): Merge fp_expressions.
25679 (inline_read_section): Read fp_expressions.
25680 (inline_write_summary): Write fp_expressions.
25681 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25682 codegen boundary if either caller or callee is !fp_expressions.
25683 * ipa-inline.h (inline_summary): Add fp_expressions.
25684 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25685 to fp_expressions be sure the fp generation flags are updated.
25686
25687 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25688
25689 PR rtl-optimization/70467
25690 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25691
25692 PR rtl-optimization/70467
25693 * ipa-pure-const.c (check_call): Handle internal calls even in
25694 ipa mode like in local mode.
25695
25696 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25697
25698 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25699
25700 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25701
25702 * match.pd (X u< X, X u> X): New transformations.
25703
25704 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25705
25706 * flag-types.h (enum warn_strict_overflow_code): Move ...
25707 * coretypes.h: ... here.
25708 * fold-const.h (fold_overflow_warning): Declare.
25709 * fold-const.c (fold_overflow_warning): Make non-static.
25710 (fold_comparison): Move the transformation of X +- C1 CMP C2
25711 into X CMP C2 -+ C1 ...
25712 * match.pd: ... here.
25713 * gimple-fold.c (fold_stmt_1): Protect with
25714 fold_defer_overflow_warnings.
25715
25716 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25717
25718 * omp-low.c (struct oacc_loop): Add 'inner' field.
25719 (new_oacc_loop_raw): Initialize it to zero.
25720 (oacc_loop_fixed_partitions): Initialize it.
25721 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25722 available partitioning.
25723
25724 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25725
25726 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25727 register_operand.
25728 (umulsidi3): Likewise.
25729 (indirect_jump): Fix jump instruction assembly patterns.
25730
25731 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25732
25733 PR target/70860
25734 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25735 (nvptx_function_value): Assert non-NULL cfun.
25736
25737 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25738
25739 PR rtl-optimization/70886
25740 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25741
25742 * cselib.h (rtx_equal_for_cselib_1): Declare.
25743 (rtx_equal_for_cselib_p: New inline function.
25744 * cselib.c (rtx_equal_for_cselib_p): Delete.
25745 (rtx_equal_for_cselib_1): Make public.
25746
25747 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25748
25749 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25750 (register_mixssei387nonimm_operand): Remove predicate.
25751 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25752 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25753 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25754 for TARGET_MIX_SSE_I387 alternatives.
25755 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25756 Disable unsupported alternatives using "enabled" attribute. Use
25757 nonimm_ssenomem_operand as operand 1 predicate. Also check
25758 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25759
25760 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25761
25762 * tree.c (cst_and_fits_in_hwi): Simplify.
25763
25764 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25765
25766 * tree.h (wi::to_wide): New function.
25767 * expr.c (expand_expr_real_1): Use wi::to_wide.
25768 * fold-const.c (int_const_binop_1): Likewise.
25769 (extract_muldiv_1): Likewise.
25770
25771 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25772
25773 * wide-int.h: Update offset_int and widest_int documentation.
25774 (WI_SIGNED_SHIFT_RESULT): New macro.
25775 (wi::binary_shift): Define signed_shift_result_type for
25776 shifts on offset_int- and widest_int-like types.
25777 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25778 * tree.h (int_bit_position): Use shift operators instead of wi::
25779 shifts.
25780 * alias.c (adjust_offset_for_component_ref): Likewise.
25781 * expr.c (get_inner_reference): Likewise.
25782 * fold-const.c (fold_comparison): Likewise.
25783 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25784 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25785 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25786 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25787 (stmt_kills_ref_p): Likewise.
25788 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25789 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25790 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25791 (ao_ref_init_from_vn_reference): Likewise.
25792
25793 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25794
25795 * wide-int.h: Update offset_int and widest_int documentation.
25796 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25797 (wi::binary_traits): Allow ordered comparisons between offset_int and
25798 offset_int, between widest_int and widest_int, and between either
25799 of these types and basic C types.
25800 (operator <, <=, >, >=): Define for the same combinations.
25801 * tree.h (tree_int_cst_lt): Use comparison operators instead
25802 of wi:: comparisons.
25803 (tree_int_cst_le): Likewise.
25804 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25805 (fold_nonarray_ctor_reference): Likewise.
25806 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25807 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25808 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25809 * tree-sra.c (completely_scalarize): Likewise.
25810 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25811 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25812 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25813 (check_for_binary_op_overflow): Likewise.
25814 (search_for_addr_array): Likewise.
25815 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25816
25817 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25818
25819 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25820 (arc_save_restore): Likewise.
25821 (arc_dwarf_register_span): Likewise.
25822 (arc_output_pic_addr_const): Initialize suffix variable.
25823
25824 2016-05-02 Martin Liska <mliska@suse.cz>
25825
25826 * symbol-summary.h (function_summary::function_summary):
25827 Remove checking assert for all cgraph nodes.
25828 (function_summary::get): Check summary_uid.
25829 (symtab_insertion): Check summary_uid.
25830
25831 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25832
25833 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25834 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25835 bmaskn instruction.
25836 (arc_dwarf_register_span): Remove enum keyword.
25837 (compact_memory_operand_p): New function.
25838 * config/arc/arc.h (reg_class): Add code density register classes.
25839 (REG_CLASS_NAMES): Likewise.
25840 (REG_CLASS_CONTENTS): Likewise.
25841 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25842 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25843 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25844 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25845 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25846 constraints.
25847 (h, Rcd, Rsd, Rzd): New register constraints.
25848 (T): Use compact_memory_operand_p function.
25849 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25850
25851 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25852
25853 * config/sh/sh.md (*negnegt, *movtt): Remove.
25854
25855 2016-05-02 Marek Polacek <polacek@redhat.com>
25856 Tom de Vries <tom@codesourcery.com>
25857
25858 PR tree-optimization/70700
25859 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25860 bigger than FIRST_REF_NODE.
25861
25862 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25863
25864 PR target/52898
25865 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25866 TARGET_CMPEQDI_T.
25867 (prepare_cbranch_operands): Don't use scratch register. Assume that
25868 function is used when pseudos can be created.
25869 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25870 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25871 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25872 define_expand. Allow it only when pseudos can be created.
25873 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25874
25875 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25876
25877 * config/i386/constraints.md (BC): Only allow -1 operands.
25878 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25879 Add "enabled" attribute. Update XI mode attribute calculation.
25880 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25881 (*movoi_internal_avx): Update XI mode attribute calculation.
25882 (*movti_internal): Ditto.
25883
25884 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25885
25886 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25887 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25888
25889 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25890
25891 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25892 statement on instruction code. Remove trailing spaces.
25893 (altivec_expand_stv_builtin): Likewise.
25894
25895 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25896
25897 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25898 (TARGET_FPU_DOUBLE): Simplify.
25899 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25900 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25901 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25902 with 'TARGET_FPU_DOUBLE'.
25903 * config/sh/sh.md: Likewise.
25904
25905 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25906
25907 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25908 SH_DIV_STR_FOR_SIZE): Remove.
25909 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25910 SH_DIV_STR_FOR_SIZE): Remove.
25911
25912 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25913
25914 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25915 logical_reg_operand): Delete.
25916 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25917 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25918 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25919 match_operand and match_test.
25920 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25921 variables on their first use. Return bool values.
25922 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25923 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25924 arith_reg_operand for input operand. Remove empty constraints.
25925 (xorsi3): Delete.
25926 (*xorsi3_compact): Rename to xorsi3.
25927 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25928 (*zero_extend<mode>si2_disp_mem): Update comment.
25929 (mov_nop): Delete.
25930
25931 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25932
25933 * config/sh/t-sh: Remove SH5 support.
25934 * config.gcc: Likewise.
25935 * configure: Likewise.
25936
25937 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25938
25939 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25940
25941 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25942
25943 * config/sh/sh.c (register_sh_passes, sh_option_override,
25944 sh_print_operand, prepare_move_operands,
25945 sh_can_follow_jump): Remove TARGET_SH1 checks.
25946 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25947 PROMOTE_MODE): Likewise.
25948 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25949 movdi): Likewise.
25950
25951 2016-04-30 Alan Modra <amodra@gmail.com>
25952
25953 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25954 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25955 Check for user regs later to avoid unnecessary looping over regs.
25956 Merge user reg check with non-saved reg check. Don't force
25957 inline VR restore when static chain used.
25958 (rs6000_frame_related): Omit eh_frame info for user regs when
25959 saving.
25960 (fixed_regs_p): Delete.
25961
25962 2016-04-30 Alan Modra <amodra@gmail.com>
25963
25964 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25965 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25966 Update all uses.
25967
25968 2016-04-30 Alan Modra <amodra@gmail.com>
25969
25970 PR target/69645
25971 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25972 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25973 Update all uses.
25974
25975 2016-04-30 Alan Modra <amodra@gmail.com>
25976
25977 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25978 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25979 flag_pic test for Darwin.
25980
25981 2016-04-30 Alan Modra <amodra@gmail.com>
25982
25983 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25984 throw_calls_crossed.
25985 (REG_FREQ_CALLS_CROSSED): Delete.
25986 (REG_N_THROWING_CALLS_CROSSED): Delete.
25987 * regstat.c (regstat_bb_compute_ri): Don't calculate
25988 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25989 (dump_reg_info): Don't print call cross frequency.
25990 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25991 and REG_N_THROWING_CALLS_CROSSED.
25992
25993 2016-04-30 Alan Modra <amodra@gmail.com>
25994
25995 * regs.h (struct reg_info_t): Delete live_length.
25996 (REG_LIVE_LENGTH): Delete macro.
25997 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25998 local_live, local_processed and local_live_last_luid params.
25999 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26000 Formatting fixes.
26001 (regstat_compute_ri): Adjust for above. Don't set
26002 REG_LIVE_LENGTH.
26003 (dump_reg_info): Don't print live length.
26004 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26005 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26006 Localize loop_depth var.
26007
26008 2016-04-30 Alan Modra <amodra@gmail.com>
26009
26010 * ira.c (enum valid_equiv): New.
26011 (validate_equiv_mem): Return enum.
26012 (update_equiv_mem): Create replacement in more cases.
26013 (add_store_equivs): Update validate_equiv_mem call.
26014
26015 2016-04-30 Alan Modra <amodra@gmail.com>
26016
26017 * ira.c (combine_and_move_insns): Rather than scanning insns,
26018 use DF infrastucture to find use and def insns.
26019
26020 2016-04-30 Alan Modra <amodra@gmail.com>
26021
26022 ira.c (combine_and_move_insns): Move invariant conditions..
26023 (ira.c): ..to here. Call combine_and_move_insns before
26024 add_store_equivs. Call grow_reg_equivs later. Allocate
26025 req_equiv later using max_reg_num() rather than global max_regno.
26026 (contains_replace_regs): Delete.
26027 (add_store_equivs): Remove contains_replace_regs test.
26028
26029 2016-04-30 Alan Modra <amodra@gmail.com>
26030
26031 * ira.c (struct equiv_mem_data): New.
26032 (equiv_mem, equiv_mem_modified): Delete static vars.
26033 (validate_equiv_mem_from_store): Use "data" param to communicate..
26034 (validate_equiv_mem): ..from here.
26035
26036 2016-04-30 Alan Modra <amodra@gmail.com>
26037
26038 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26039 split out from..
26040 (update_reg_equivs): ..here. Move allocation and freeing of
26041 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26042 end_alias_analysis to..
26043 (ira): ..here.
26044
26045 2016-04-30 Alan Modra <amodra@gmail.com>
26046
26047 * ira.c (pdx_subregs): Delete.
26048 (struct equivalence): Add pdx_subregs field.
26049 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26050 pdx_subregs access.
26051 (update_equiv_regs): Don't create or free pdx_subregs. Update
26052 pdx_subregs access.
26053
26054 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26055
26056 * config/rs6000/altivec.h: Change definitions of vec_xl and
26057 vec_xst.
26058 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26059 (LD_ELEMREV_V2DI): New.
26060 (LD_ELEMREV_V4SF): New.
26061 (LD_ELEMREV_V4SI): New.
26062 (LD_ELEMREV_V8HI): New.
26063 (LD_ELEMREV_V16QI): New.
26064 (ST_ELEMREV_V2DF): New.
26065 (ST_ELEMREV_V2DI): New.
26066 (ST_ELEMREV_V4SF): New.
26067 (ST_ELEMREV_V4SI): New.
26068 (ST_ELEMREV_V8HI): New.
26069 (ST_ELEMREV_V16QI): New.
26070 (XL): New.
26071 (XST): New.
26072 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26073 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26074 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26075 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26076 (altivec_expand_builtin): Add handling for
26077 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26078 (rs6000_invalid_builtin): Add error-checking for
26079 RS6000_BTM_P9_VECTOR.
26080 (altivec_init_builtins): Define builtins used to implement vec_xl
26081 and vec_xst.
26082 (rs6000_builtin_mask_names): Define power9-vector.
26083 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26084 (RS6000_BTM_P9_VECTOR): Define.
26085 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26086 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26087 (vsx_ld_elemrev_v2df): Likewise.
26088 (vsx_ld_elemrev_v4sf): Likewise.
26089 (vsx_ld_elemrev_v4si): Likewise.
26090 (vsx_ld_elemrev_v8hi): Likewise.
26091 (vsx_ld_elemrev_v16qi): Likewise.
26092 (vsx_st_elemrev_v2df): Likewise.
26093 (vsx_st_elemrev_v2di): Likewise.
26094 (vsx_st_elemrev_v4sf): Likewise.
26095 (vsx_st_elemrev_v4si): Likewise.
26096 (vsx_st_elemrev_v8hi): Likewise.
26097 (vsx_st_elemrev_v16qi): Likewise.
26098 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26099 grammar.
26100
26101 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26102
26103 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26104 out into ...
26105 (simplify_control_stmt_condition_1): ... here. Recurse into
26106 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26107
26108 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26109
26110 PR target/69810
26111 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26112 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26113 define_insn_and_split to define_insn.
26114 (zero_extendqi<mode>2_dot2): Same.
26115 (extendqi<mode>2_dot): Same.
26116 (extendqi<mode>2_dot2): Same.
26117
26118 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26119
26120 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26121 (probe_stack): New expander.
26122 (probe_stack_<mode>): New insn pattern.
26123
26124 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26125
26126 * config/i386/i386.md
26127 (operations with memory inputs setting flags peephole2):
26128 Remove uneeded REG_P checks. Cleanup pattern generation.
26129
26130 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26131
26132 * tree-vect-loop.c (vect_transform_loop): Fix
26133 nb_iterations_upper_bound computation for vectorized loop.
26134
26135 2016-04-29 Marek Polacek <polacek@redhat.com>
26136 Jakub Jelinek <jakub@redhat.com>
26137
26138 PR sanitizer/70342
26139 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26140 TARGET_EXPR_SLOT as a base.
26141
26142 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26143
26144 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26145 with 'rCm2' constraints to limit possible immediate size.
26146 (*load_zeroextendqisi_update): Likewise.
26147 (*load_signextendqisi_update): Likewise.
26148 (*loadhi_update): Likewise.
26149 (*load_zeroextendhisi_update): Likewise.
26150 (*load_signextendhisi_update): Likewise.
26151 (*loadsi_update): Likewise.
26152 (*loadsf_update): Likewise.
26153
26154 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26155
26156 * config/i386/predicates.md (constm1_operand): Fix comparison.
26157
26158 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26159
26160 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26161
26162 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26163
26164 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26165 remaining SH5 related settings.
26166 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26167 shmedia_prepare_call_address): Delete.
26168 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26169 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26170 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26171 UNSUPPORTED_SH2A): Remove m5 checks.
26172 (sh_divide_strategy_e): Remove SH5 division strategies.
26173 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26174 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26175
26176 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26177
26178 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26179
26180 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26181
26182 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26183 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26184 Change lder to ldr.
26185 * config/s390/vector.md ("mov<mode>"): Likewise.
26186
26187 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26188
26189 * config/s390/constraints.md ("U", "W"): Invoke
26190 s390_mem_constraint with "ZR" and "ZT".
26191 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26192 addresses when using LRA. Accept also short displacements for S
26193 and T constraints. Do not check for long displacement target for
26194 S and T constraints.
26195 (s390_mem_constraint): Remove handling of U and W constraints.
26196 * config/s390/s390.md (various patterns): Remove the short
26197 displacement constraints (Q and R) if a long displacement
26198 constraint is present. Add longdisp as required CPU capability.
26199 * config/s390/vector.md: Likewise.
26200 * config/s390/vx-builtins.md: Likewise.
26201
26202 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26203
26204 PR target/60040
26205 * reload1.c (reload): Call finish_spills before
26206 restarting reload loop. Skip select_reload_regs
26207 if update_eliminables_and_spill returns true.
26208
26209 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26210
26211 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26212 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26213 (umulhisi3_imm): Update predicates and constraint letters.
26214 (umulhisi3_reg): Declare instruction as commutative.
26215 * config/arc/constraints.md (J12, J16): New constraints.
26216 * config/arc/predicates.md (short_unsigned_const_operand): New
26217 predicate.
26218 (arc_short_operand): Likewise.
26219 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26220
26221 2016-04-29 Richard Biener <rguenther@suse.de>
26222
26223 PR tree-optimization/13962
26224 PR tree-optimization/65686
26225 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26226 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26227 using PTA to compare pointers.
26228 * match.pd: Add pattern for pointer equality compare simplification
26229 using ptrs_compare_unequal.
26230
26231 2016-04-29 Richard Biener <rguenther@suse.de>
26232
26233 * stor-layout.c (layout_type): Do not build a pointer-to-element
26234 type for arrays.
26235
26236 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26237
26238 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26239 Use SWI mode iterator. Use general_reg_operand predicate.
26240 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26241 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26242 predicates.
26243
26244 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26245
26246 PR middle-end/70843
26247 * fold-const.c (operand_equal_p): Don't verify hash value equality
26248 if arg0 == arg1.
26249 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26250 and OMP_CLAUSE.
26251
26252 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26253
26254 PR target/70858
26255 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26256 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26257 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26258 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26259 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26260
26261 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26262
26263 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26264 to info. Don't initialize separate fields to 0. Clean up
26265 formatting a bit.
26266
26267 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26268
26269 * config/i386/i386.md (peephole2s for operations with memory inputs):
26270 Use SWI mode iterator.
26271 (peephole2s for operations with memory outputs): Ditto.
26272 Do not check for stack checking probe.
26273
26274 (probe_stack): Remove expander.
26275
26276 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26277 Andrew Burgess <andrew.burgess@embecosm.com>
26278
26279 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26280 operands as 32-bits.
26281
26282 2016-04-28 Jason Merrill <jason@redhat.com>
26283
26284 * gdbinit.in: Skip line-map.h.
26285
26286 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26287 Andrew Burgess <andrew.burgess@embecosm.com>
26288
26289 * config/arc/arc.c (arc_conditional_register_usage): Take
26290 TARGET_RRQ_CLASS into account.
26291 (arc_print_operand): Support printing 'p' and 's' operands.
26292 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26293 as 0.
26294 (TARGET_RRQ_CLASS): Define.
26295 (IS_POWEROF2_OR_0_P): Define.
26296 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26297 alternatives.
26298 (*tst_movb): New define_insn.
26299 (*tst): Avoid recognition if it could prevent '*tst_movb'
26300 combination; replace c/CnL with c/Chs alternative.
26301 (*tst_bitfield_tst): New define_insn.
26302 (*tst_bitfield_asr): New define_insn.
26303 (*tst_bitfield): New define_insn.
26304 (andsi3_i): Add Rrq variant.
26305 (extzv): New define_expand.
26306 (insv): New define_expand.
26307 (*insv_i): New define_insn.
26308 (*movb): New define_insn.
26309 (*movb_signed): New define_insn.
26310 (*movb_high): New define_insn.
26311 (*movb_high_signed): New define_insn.
26312 (*movb_high_signed + 1): New define_split pattern.
26313 (*mrgb): New define_insn.
26314 (*mrgb + 1): New define_peephole2 pattern.
26315 (*mrgb + 2): New define_peephole2 pattern.
26316 * config/arc/arc.opt (mbitops): New option for nps400, uses
26317 TARGET_NPS_BITOPS_DEFAULT.
26318 * config/arc/constraints.md (q): Make register class conditional.
26319 (Rrq): New register constraint.
26320 (Chs): New constraint.
26321 (Clo): New constraint.
26322 (Chi): New constraint.
26323 (Cbf): New constraint.
26324 (Cbn): New constraint.
26325 (C18): New constraint.
26326 (Cbi): New constraint.
26327
26328 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26329
26330 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26331 dst->popcount.
26332 (bitmap_intersection_of_preds): Ditto.
26333 (bitmap_union_of_succs): Ditto.
26334 (bitmap_union_of_preds): Ditto.
26335 * sbitmap.c (do_popcount): Delete.
26336 (BITMAP_DEBUGGING): Delete.
26337 (sbitmap_verify_popcount): Delete.
26338 (sbitmap_alloc): Don't initialize the popcount field.
26339 (sbitmap_alloc_with_popcount): Delete.
26340 (sbitmap_resize): Don't resize the popcount array.
26341 (sbitmap_vector_alloc): Don't initialize the popcount field.
26342 (bitmap_copy): Don't copy the popcount array.
26343 (bitmap_clear): Don't clear the popcount array.
26344 (bitmap_clear): Delete the popcount array handling.
26345 (bitmap_ior_and_compl): Delete the popcount assert.
26346 (bitmap_not): Ditto.
26347 (bitmap_and_compl): Ditto.
26348 (bitmap_and): Delete the popcount array handling.
26349 (bitmap_xor): Ditto.
26350 (bitmap_ior): Ditto.
26351 (bitmap_or_and): Delete the popcount assert.
26352 (bitmap_and_or): Ditto.
26353 (popcount_table): Delete.
26354 (sbitmap_elt_popcount): Delete.
26355 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26356 (bitmap_set_bit): Delete the popcount assert.
26357 (bitmap_clear_bit): Ditto.
26358 (sbitmap_free): Don't free the popcount array.
26359 (sbitmap_alloc_with_popcount): Delete declaration.
26360 (sbitmap_popcount): Ditto.
26361
26362 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26363 Andrew Burgess <andrew.burgess@embecosm.com>
26364
26365 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26366 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26367 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26368 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26369 * config/arc/arc.opt (mcmem): New option.
26370 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26371 supply length for r/m alternative.
26372 (*extendqisi2_ac): Likewise.
26373 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26374 r/Uex alternative.
26375 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26376 (movhi_insn): Likewise.
26377 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26378 (*zero_extendqihi2_i): Add r/Ucm alternative.
26379 (*zero_extendqisi2_ac): Likewise.
26380 (*zero_extendhisi2_i): Likewise.
26381 * config/arc/constraints.md (Uex): New memory constraint.
26382 (Ucm): New define_constraint.
26383 * config/arc/predicates.md (long_immediate_loadstore_operand):
26384 Return 0 for MEM with cmem_address address.
26385 (cmem_address_0): New predicates.
26386 (cmem_address_1): Likewise.
26387 (cmem_address_2): Likewise.
26388 (cmem_address): Likewise.
26389
26390 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26391
26392 * config/rs6000/rs6000.c (machine_function): Rename
26393 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26394 (rs6000_stack_info): Adjust.
26395
26396 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26397 Andrew Burgess <andrew.burgess@embecosm.com>
26398
26399 * config/arc/constraints.md (Usd): Convert to define_constraint.
26400 (Us<): Likewise.
26401 (Us>): Likewise.
26402
26403 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26404
26405 PR target/70821
26406 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26407 Add new peephole2 where the first insn is *mov<mode>_or instead of
26408 *mov<mode>_internal.
26409
26410 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26411
26412 * tracer.c (bb_seen): Make static.
26413
26414 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26415
26416 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26417 support, setup defaults.
26418 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26419 * config/arc/arc.c (arc_init): Add NPS400 support.
26420 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26421 (TARGET_ARC700): NPS400 is also an ARC700.
26422 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26423
26424 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26425
26426 PR target/70668
26427 * config/nds32/nds32.md (casesi): Don't access the operands array
26428 out of bounds.
26429
26430 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26431
26432 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26433 (or $-1,reg peephole2): Ditto.
26434 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26435
26436 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26437
26438 * doc/extend.texi (Common Function Attributes) [optimize]:
26439 Discourage use of the optimize attribute.
26440
26441 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26442
26443 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26444 special case builtin.
26445 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26446 ALTIVEC_BUILTIN_VEC_ADDE.
26447 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26448 support for ALTIVEC_BUILTIN_VEC_ADDE.
26449 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26450 for __builtin_vec_adde.
26451
26452 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26453
26454 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26455 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26456
26457 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26458
26459 PR testsuite/70595
26460 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26461 attributes): Document cilkplus_runtime.
26462
26463 2016-04-28 Martin Jambor <mjambor@suse.cz>
26464
26465 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26466 this function. Call verify_expr on MEM_REFs and bases of other
26467 handled_components.
26468
26469 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26470
26471 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26472 for WORD_REGISTER_OPERATIONS to runtime check.
26473
26474 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26475
26476 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26477
26478 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26479
26480 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26481 big-endian compilation.
26482 * config/arc/arc.md (addf3): Likewise.
26483 (subdf3): Likewise.
26484 (muldf3): Likewise.
26485
26486 2016-04-28 Richard Biener <rguenther@suse.de>
26487
26488 PR tree-optimization/70840
26489 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26490 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26491 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26492 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26493
26494 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26495
26496 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26497 and explain why in a comment.
26498
26499 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26500
26501 * config/arc/arc.md (cpu_facility): Add fpx variant.
26502 (subdf3): Prohibit use reverse sub when assist operations option
26503 is enabled.
26504 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26505 instructions only when FPX is enabled.
26506 * testsuite/gcc.target/arc/trsub.c: New test.
26507
26508 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26509
26510 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26511 mult_operator when calculating "type" attribute.
26512 (*fop_<mode>_1_i387): Ditto.
26513 (*fop_xf_1_i387): Ditto.
26514 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26515 Use std::swap to swap operands. Use RTL expressions to generate
26516 converted pattern.
26517
26518 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26519 Joern Rennecke <joern.rennecke@embecosm.com>
26520
26521 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26522 declaration.
26523 (emit_pic_move): Remove.
26524 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26525 * config/arc/arc.c (emit_pic_move): Removed.
26526 (TARGET_HAVE_TLS): Define.
26527 (arc_conditional_register_usage): Test for arc_tp_regno.
26528 (arc_print_operand, arc_print_operand_address): Handle TLS
26529 unspecs.
26530 (arc_needs_pcl_p): New function.
26531 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26532 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26533 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26534 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26535 (arc_legitimize_tls_address): Likewise.
26536 (DTPOFF_ZERO_SYM): Define.
26537 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26538 (arc_output_pic_addr_const): Print TLS unspecs.
26539 (prepare_pic_move): New function, replaces emit_pic_move.
26540 (arc_legitimate_constant_p): Handle TLS unspecs.
26541 (arc_legitimate_address_p): Likewise.
26542 (arc_rewrite_small_data_p): Use assert for TLS constants.
26543 (prepare_move_operands): Use prepare_pic_move.
26544 (arc_legitimize_address): Legitimize tls addresses.
26545 (arc_epilogue_uses): Check for arc_tp_regno.
26546 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26547 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26548 Define.
26549 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26550 Likewise.
26551 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26552 %(arc_tls_extra_start_spec).
26553 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26554 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26555 (EH_USES): Define.
26556 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26557 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26558 (UNSPEC_TLS_OFF): Add.
26559 (R10_REG): Define.
26560 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26561 (get_thread_pointersi): New patterns.
26562 * config/arc/arc.opt (mtp-regno): New option.
26563 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26564 (move_dest_operand): Likewise.
26565 * configure: Regenerate.
26566 * configure.ac: Add arc*-*-* case to test for tls.
26567 * doc/invoke.texi (ARC options): Document mtp-regno.
26568
26569 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26570
26571 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26572 the new ARC HS SIMD instructions.
26573 (arc_preferred_simd_mode): New function.
26574 (arc_autovectorize_vector_sizes): Likewise.
26575 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26576 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26577 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26578 (arc_init_builtins): Add new SIMD builtin types.
26579 (arc_split_move): Handle 64 bit vector moves.
26580 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26581 (TARGET_PLUS_QMACW): Define.
26582 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26583 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26584 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26585 (VSUBADD4H): New builtins.
26586 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26587 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26588
26589 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26590 Matthias Klose <doko@debian.org>
26591
26592 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26593
26594 2016-04-28 Richard Biener <rguenther@suse.de>
26595
26596 PR middle-end/70777
26597 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26598 canonicalization.
26599
26600 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26601
26602 * common/config/sh/sh-common.c: Remove SH5 support.
26603 * config/sh/constraints.md: Likewise.
26604 * config/sh/config/sh/elf.h: Likewise.
26605 * config/sh/linux.h: Likewise.
26606 * config/sh/netbsd-elf.h: Likewise.
26607 * config/sh/predicates.md: Likewise.
26608 * config/sh/sh-c.c: Likewise.
26609 * config/sh/sh-protos.h: Likewise.
26610 * config/sh/sh.c: Likewise.
26611 * config/sh/sh.h: Likewise.
26612 * config/sh/sh.md: Likewise.
26613 * config/sh/sh.opt: Likewise.
26614 * config/sh/sync.md: Likewise.
26615 * config/sh/sh64.h: Delete.
26616 * config/sh/shmedia.h: Likewise.
26617 * config/sh/shmedia.md: Likewise.
26618 * config/sh/sshmedia.h: Likewise.
26619 * config/sh/t-netbsd-sh5-64: Likewise.
26620 * config/sh/t-sh64: Likewise.
26621 * config/sh/ushmedia.h: Likewise.
26622
26623 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26624
26625 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26626 general_reg_operand instead of register_operand predicate.
26627
26628 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26629
26630 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26631
26632 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26633
26634 * match.pd (A - B > A, A + B < A): New transformations.
26635
26636 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26637
26638 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26639 which defaults to true. Emit an outer pair of parentheses only if
26640 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26641 don't emit parentheses for the right-hand operand.
26642
26643 2016-04-27 Jeff Law <law@redhat.com>
26644
26645 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26646
26647 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26648
26649 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26650 (altivec_lvx_<mode>_internal): Document.
26651 (altivec_lvx_<mode>_2op): New define_insn.
26652 (altivec_lvx_<mode>_1op): Likewise.
26653 (altivec_lvx_<mode>_2op_si): Likewise.
26654 (altivec_lvx_<mode>_1op_si): Likewise.
26655 (altivec_stvx_<mode>): Remove.
26656 (altivec_stvx_<mode>_internal): Document.
26657 (altivec_stvx_<mode>_2op): New define_insn.
26658 (altivec_stvx_<mode>_1op): Likewise.
26659 (altivec_stvx_<mode>_2op_si): Likewise.
26660 (altivec_stvx_<mode>_1op_si): Likewise.
26661 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26662 Expand vec_ld and vec_st during parsing.
26663 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26664 changes.
26665 (altivec_expand_stvx_be): Likewise.
26666 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26667 address-masking behavior in RTL.
26668 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26669 address-masking behavior in RTL.
26670 (altivec_expand_builtin): Change builtin code arguments for calls
26671 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26672 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26673 presence of lvx/stvx patterns.
26674 (alignment_with_canonical_addr): New function.
26675 (alignment_mask): Likewise.
26676 (find_alignment_op): Likewise.
26677 (recombine_lvx_pattern): Likewise.
26678 (recombine_stvx_pattern): Likewise.
26679 (recombine_lvx_stvx_patterns): Likewise.
26680 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26681 stvx patterns from expand.
26682 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26683 expansions.
26684 (vector_altivec_store_<mode>): Likewise.
26685
26686 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26687
26688 * config/aarch64/aarch64.md
26689 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26690 remove the "fp" attributes.
26691 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26692 add the "simd" attributes.
26693 (*movdf_aarch64): Likewise.
26694 (*movtf_aarch64): Remove the "fp" attributes.
26695 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26696 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26697
26698 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26699
26700 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26701 rtx to rtx_code_label *.
26702 * rtl.h (maybe_set_first_label_num): Likewise.
26703
26704 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26705
26706 * df-core.c (df_add_problem): Make the problem param be const.
26707 (df_remove_problem): Make local "problem" be const.
26708 * df-problems.c (problem_RD): Make const.
26709 (problem_LR): Likewise.
26710 (problem_LIVE): Likewise.
26711 (problem_MIR): Likewise.
26712 (problem_CHAIN): Likewise.
26713 (problem_WORD_LR): Likewise.
26714 (problem_NOTE): Likewise.
26715 (problem_MD): Likewise.
26716 * df-scan.c (problem_SCAN): Likewise.
26717 * df.h (struct df_problem): Make field "dependent_problem" be
26718 const.
26719 (struct dataflow): Likewise for field "problem".
26720 (df_add_problem): Make param const.
26721
26722 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26723
26724 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26725 inter-unit moves to/from vector registers are enabled. Do not disable
26726 for TARGET_MMX.
26727
26728 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26729
26730 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26731 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26732 #define to...
26733 (enum df_problem_id): ...this new enum.
26734 (struct df_problem): Convert field "id" from "int" to
26735 enum df_problem_id.
26736
26737 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26738
26739 * rtl.def: Update comment for "things in the instruction chain" to
26740 reflect the removal of the leading "i" field for INSN_UID in
26741 r210360. Fix bogus apostrophe.
26742
26743 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26744
26745 * config/i386/i386.md
26746 (lea arith with mem operand + setcc peephole2): Set operator mode.
26747
26748 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26749
26750 PR target/70155
26751 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26752 (dimode_scalar_to_vector_candidate_p): This.
26753 (timode_scalar_to_vector_candidate_p): New function.
26754 (scalar_to_vector_candidate_p): Likewise.
26755 (timode_check_non_convertible_regs): Likewise.
26756 (timode_remove_non_convertible_regs): Likewise.
26757 (remove_non_convertible_regs): Likewise.
26758 (remove_non_convertible_regs): Renamed to ...
26759 (dimode_remove_non_convertible_regs): This.
26760 (scalar_chain::~scalar_chain): Make it virtual.
26761 (scalar_chain::compute_convert_gain): Make it pure virtual.
26762 (scalar_chain::mark_dual_mode_def): Likewise.
26763 (scalar_chain::convert_insn): Likewise.
26764 (scalar_chain::convert_registers): Likewise.
26765 (scalar_chain::add_to_queue): Make it protected.
26766 (scalar_chain::emit_conversion_insns): Likewise.
26767 (scalar_chain::replace_with_subreg): Likewise.
26768 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26769 (scalar_chain::convert_op): Likewise.
26770 (scalar_chain::convert_reg): Likewise.
26771 (scalar_chain::make_vector_copies): Likewise.
26772 (scalar_chain::convert_registers): New pure virtual function.
26773 (class dimode_scalar_chain): New class.
26774 (class timode_scalar_chain): Likewise.
26775 (scalar_chain::mark_dual_mode_def): Renamed to ...
26776 (dimode_scalar_chain::mark_dual_mode_def): This.
26777 (timode_scalar_chain::mark_dual_mode_def): New function.
26778 (timode_scalar_chain::convert_insn): Likewise.
26779 (dimode_scalar_chain::convert_registers): Likewise.
26780 (scalar_chain::compute_convert_gain): Renamed to ...
26781 (dimode_scalar_chain::compute_convert_gain): This.
26782 (scalar_chain::replace_with_subreg): Renamed to ...
26783 (dimode_scalar_chain::replace_with_subreg): This.
26784 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26785 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26786 (scalar_chain::make_vector_copies): Renamed to ...
26787 (dimode_scalar_chain::make_vector_copies): This.
26788 (scalar_chain::convert_reg): Renamed to ...
26789 (dimode_scalar_chain::convert_reg ): This.
26790 (scalar_chain::convert_op): Renamed to ...
26791 (dimode_scalar_chain::convert_op): This.
26792 (scalar_chain::convert_insn): Renamed to ...
26793 (dimode_scalar_chain::convert_insn): This.
26794 (scalar_chain::convert): Call convert_registers.
26795 (convert_scalars_to_vector): Change to scalar_chain pointer to
26796 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26797 in 32-bit mode. Delete scalar_chain pointer. Call
26798 free_dominance_info in 64-bit mode.
26799 (pass_stv::gate): Remove TARGET_64BIT check.
26800 (ix86_option_override): Put the 64-bit STV pass before the CSE
26801 pass.
26802
26803 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26804
26805 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26806 dw_loc_frame_offset field.
26807 * dwarf2out.c (new_loc_descr): Likewise.
26808 (resolve_args_picking_1): Turn the VISITED hash set into a
26809 FRAME_OFFSET hash map. Use it to associate a frame offset to
26810 visited nodes. Remove uses of the CHECKING_P macro.
26811 (resolve_args_picking): Update call to resolve_args_picking_1.
26812
26813 2016-04-27 Martin Liska <mliska@suse.cz>
26814
26815 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26816 (free_loop_data): Release vuses of groups.
26817
26818 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26819
26820 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26821 instead of redundant use_id and boolean have_use_for.
26822 (struct iv_use): Change sub_id into group_id. Remove field next.
26823 Move fields: related_cands, n_map_members, cost_map and selected
26824 to ...
26825 (struct iv_group): ... here. New structure.
26826 (struct iv_common_cand): Use structure declaration directly.
26827 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26828 (MAX_CONSIDERED_USES): Rename macro to ...
26829 (MAX_CONSIDERED_GROUPS): ... here.
26830 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26831 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26832 (dump_uses): Rename to ...
26833 (dump_groups): ... here. Update all uses.
26834 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26835 (find_induction_variables): Refactor format of dump information.
26836 (record_sub_use): Delete.
26837 (record_use): Update all uses.
26838 (record_group): New function.
26839 (record_group_use, find_interesting_uses_op): Call above functions.
26840 Update all uses.
26841 (find_interesting_uses_cond): Ditto.
26842 (group_compare_offset): New function.
26843 (split_all_small_groups): Rename to ...
26844 (split_small_address_groups_p): ... here. Update all uses.
26845 (split_address_groups): Update all uses.
26846 (find_interesting_uses): Refactor format of dump information.
26847 (add_candidate_1): Update all uses. Remove redundant check on iv,
26848 base and step.
26849 (add_candidate, record_common_cand): Remove redundant assert.
26850 (add_iv_candidate_for_biv): Update use.
26851 (add_iv_candidate_derived_from_uses): Update all uses.
26852 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26853 (alloc_use_cost_map): Ditto.
26854 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26855 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26856 (determine_use_iv_cost_generic): Ditto.
26857 (determine_group_iv_cost_generic): Ditto.
26858 (determine_use_iv_cost_address): Ditto.
26859 (determine_group_iv_cost_address): Ditto.
26860 (determine_use_iv_cost_condition): Ditto.
26861 (determine_group_iv_cost_cond): Ditto.
26862 (determine_use_iv_cost): Ditto.
26863 (determine_group_iv_cost): Ditto.
26864 (set_autoinc_for_original_candidates): Update all uses.
26865 (find_iv_candidates): Update all uses. Refactor dump information.
26866 (determine_use_iv_costs): Ditto.
26867 (determine_iv_costs): Ditto.
26868 (iv_ca_cand_for_use): Rename to ...
26869 (iv_ca_cand_for_group): ... here. Update all uses.
26870 (iv_ca_add_use, iv_ca_add_group): Ditto.
26871 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26872 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26873 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26874 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26875 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26876 (create_new_iv, adjust_iv_update_pos): Ditto.
26877 (rewrite_use_address): Delete.
26878 (rewrite_use_address_1): Rename to ...
26879 (rewrite_use_address): ... here.
26880 (rewrite_use_compare): Update all uses.
26881 (rewrite_use): Delete.
26882 (rewrite_uses): Rename to ...
26883 (rewrite_groups): ... here. Update all uses.
26884 (remove_unused_ivs, free_loop_data): Update all uses.
26885 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26886
26887 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26888
26889 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26890 for WORD_REGISTER_OPERATIONS to runtime check.
26891
26892 2016-04-27 Richard Biener <rguenther@suse.de>
26893
26894 PR ipa/70760
26895 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26896 aggregate_value_p to determine if a function result is
26897 returned by reference.
26898 (ipa_pta_execute): Functions having their address taken are
26899 not automatically nonlocal.
26900
26901 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26902
26903 PR sanitizer/70683
26904 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26905 * fold-const.c (operand_equal_p): If flag_checking and
26906 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26907 and if it returns non-zero, assert iterative_hash_expr on both
26908 args is the same.
26909
26910 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26911
26912 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26913
26914 2016-04-27 Nick Clifton <nickc@redhat.com>
26915
26916 PR middle-end/49889
26917 * varasm.c (merge_weak): Generate an error if an attempt is made
26918 to convert a non-weak static function into a weak, public function.
26919
26920 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26921
26922 * params.def (MAX_PARTITION_SIZE): New param.
26923 * doc/invoke.texi: Document lto-max-partition.
26924
26925 2016-04-27 Richard Biener <rguenther@suse.de>
26926
26927 PR ipa/70785
26928 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26929 function cummulating used_from_other_partition, externally_visible
26930 and force_output from aliases.
26931 (refered_from_nonlocal_var): Likewise.
26932 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26933 node flags properly.
26934
26935 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26936
26937 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26938 (-Wmemset-elt-size): New item.
26939
26940 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26941
26942 PR ada/70759
26943 * stor-layout.h (internal_reference_types): Delete.
26944 * stor-layout.c (reference_types_internal): Likewise.
26945 (internal_reference_types): Likewise.
26946 (layout_type) <REFERENCE_TYPE>: Adjust.
26947
26948 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26949
26950 PR sanitizer/70683
26951 * tree.h (inchash::add_expr): Add FLAGS argument.
26952 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26953 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26954 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26955 Formatting fix. Adjust recursive calls. For tcc_comparison,
26956 if swap_tree_comparison (code) is smaller than code, hash that
26957 and arguments in the other order. Hash CONVERT_EXPR the same
26958 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26959 of ADDR_EXPR of decl as the decl itself. Add or remove
26960 OEP_ADDRESS_OF from recursive flags as needed. For
26961 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26962 operands commutatively and only the third one normally.
26963 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26964
26965 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26966
26967 * config/rtems.h (LIB_SPEC): Add -latomic.
26968
26969 2016-04-27 Joel Sherrill <joel@rtems.org>
26970
26971 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26972 xilink.ld and flags not relevant to RTEMS.
26973
26974 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26975
26976 * toplev.c (backend_init_target): Avoid calling init_reload when using
26977 LRA.
26978
26979 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26980
26981 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26982 for loops rather than one for the whole function.
26983
26984 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26985
26986 * match.pd (X + CST CMP X): New transformation.
26987
26988 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26989
26990 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26991 * fold-const.c (fold_binary_loc): Remove 2 transformations
26992 superseded by match.pd.
26993 * match.pd (x+x -> x*2): Generalize to integers.
26994
26995 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26996
26997 * config/i386/i386.md (operation on memory peephole): Duplicate an
26998 existing peephole and adapt it to match lea rather than an operation
26999 that clobbers CC.
27000
27001 PR rtl-optimization/57193
27002 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27003 and above.
27004 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27005
27006 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27007
27008 * tree-if-conv.c (any_pred_load_store): New static variable.
27009 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27010 any_pred_load_store instead of and_mask_load_store.
27011 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27012 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27013 (combine_blocks, tree_if_conversion): Ditto.
27014
27015 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27016
27017 PR tree-optimization/70771
27018 PR tree-optimization/70775
27019 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27020 virtual PHI nodes. Delete parameter.
27021 (if_convertible_loop_p_1): Delete argument to above function.
27022 (predicate_all_scalar_phis): Delete code handling single-argument
27023 PHIs.
27024 (tree_if_conversion): Mark and update virtual SSA.
27025
27026 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27027
27028 PR target/61821
27029 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27030 (x86_elf_aligned_common): Rename to ...
27031 (x86_elf_aligned_decl_common): ... this.
27032 Add decl arg. Switch to .lbss for largecomm object. Use
27033 LARGECOMM_SECTION_ASM_OP.
27034 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27035 renaming.
27036 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27037 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27038 Pass new decl arg.
27039 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27040 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27041
27042 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27043
27044 PR target/59407
27045 * config/i386/i386.c (SECTION_LARGE): Define.
27046 (x86_64_elf_select_section): Set it for large data/bss sections.
27047 Only clear SECTION_WRITE for .lrodata.
27048 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27049 data/bss sections.
27050 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27051 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27052 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27053 SECTION_MACH_DEP.
27054 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27055 * doc/tm.texi: Regenerate.
27056
27057 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27058
27059 PR bootstrap/70704
27060 * configure.ac (--enable-checking): Document extra flag, for
27061 non-release builds default to --enable-checking=yes,extra.
27062 If misc checking and extra checking, define CHECKING_P to 2 instead
27063 of 1.
27064 * common.opt (fchecking=): Add.
27065 * doc/invoke.texi (-fchecking=): Document.
27066 * doc/install.texi: Document --enable-checking changes.
27067 * configure: Regenerated.
27068 * config.in: Regenerated.
27069
27070 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27071
27072 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27073 attribute instead of which_alternative.
27074 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27075 Use EXT_REX_SSE_REG_P where appropriate.
27076
27077 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27078
27079 * config/i386/predicates.md (const0_operand): Do not match
27080 const_wide_int code.
27081 (const1_operand): Ditto.
27082
27083 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27084
27085 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27086 for SSE constm1 operands and TARGET_AVX512VL.
27087 (*movti_internal): Ditto.
27088 (*mov<mode>_or): Use constm1_operand predicate.
27089 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27090 for SSE vector_all_ones operands and TARGET_AVX512VL.
27091 * config/i386/predicates.md (constm1_operand): New predicate.
27092 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27093 emission of constant -1 load.
27094
27095 2016-04-25 Jason Merrill <jason@redhat.com>
27096
27097 * gdbinit.in: Skip is-a.h.
27098
27099 * attribs.c (register_scoped_attributes): Fix logic.
27100 * attribs.h: Declare register_scoped_attributes.
27101
27102 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27103
27104 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27105 stxvd2x and stxvw4x built-in functions.
27106
27107 2016-04-25 DJ Delorie <dj@redhat.com>
27108
27109 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27110 (ashrhi3): Likewise.
27111 (lshrhi3): Likewise.
27112
27113 2016-04-25 Richard Biener <rguenther@suse.de>
27114
27115 PR tree-optimization/70780
27116 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27117 wasn't visited yet.
27118 (compute_antic): Mark blocks with abnormal preds as visited as
27119 they have a final empty antic-in solution already.
27120
27121 2016-04-25 Michael Collison <michael.collison@linaro.org>
27122
27123 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27124
27125 2016-04-25 Michael Collison <michael.collison@linaro.org>
27126
27127 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27128 mode is VQI to improve mixed mode vectorization.
27129 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27130 define_insn to match low half of signed vaddw.
27131 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27132 define_insn to match high half of signed vaddw.
27133 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27134 define_insn to match low half of unsigned vaddw.
27135 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27136 define_insn to match high half of unsigned vaddw.
27137 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27138 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27139 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27140 for new function.
27141 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27142 * config/arm/predicates.md (vect_par_constant_high): Support
27143 big endian and simplify by calling
27144 arm_simd_check_vect_par_cnst_half
27145 (vect_par_constant_low): Likewise.
27146
27147 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27148
27149 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27150 predicate for operand 2.
27151
27152 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27153 H.J. Lu <hongjiu.lu@intel.com>
27154
27155 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27156 machine_mode argument.
27157 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27158 constm1_rtx operands. For VOIDmode constants, get mode from
27159 pred_mode. Check mode size if the mode is supported by ABI.
27160 (standard_sse_constant_opcode): Do not use standard_constant_p.
27161 Strictly check ABI support for all-ones operands.
27162 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27163 immediates. Update calls to standard_sse_constant_p.
27164 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27165 (ix86_rtx_costs): Ditto.
27166 * config/i386/i386.md (*movxi_internal_avx512f): Use
27167 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27168 Use (v,BC) alternative instead of (v,C). Use register_operand
27169 checks instead of MEM_P.
27170 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27171 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27172 isa attribute. Use register_operand checks instead of MEM_P.
27173 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27174 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27175 alternative and corresponding sse2 isa attribute.
27176 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27177 to standard_sse_constant_p.
27178 (FP constant splitters): Ditto.
27179 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27180 (C): Ditto.
27181 * config/i386/predicates.md (constm1_operand): Remove.
27182 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27183 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27184 vector_all_ones_operand instead of constm1_operand.
27185
27186 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27187
27188 * print-rtl.c (print_rtx_insn_vec): New function.
27189 * print-rtl.h: New prototype.
27190 * store-motion.c (struct st_expr): Make avail_stores a vector.
27191 (st_expr_entry): Adjust.
27192 (free_st_expr_entry): Likewise.
27193 (print_store_motion_mems): Likewise.
27194 (find_moveable_store): Likewise.
27195 (compute_store_table): Likewise.
27196 (delete_store): Likewise.
27197 (build_store_vectors): Likewise.
27198
27199 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27200
27201 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27202
27203 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27204
27205 * vec.h (vec_safe_contains): New function.
27206 (vec::contains): Likewise.
27207 (vec::begin): Likewise.
27208 (vec::end): Likewise.
27209
27210 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27211
27212 PR sanitizer/70712
27213 * cfgexpand.c (expand_stack_vars): Fix typo.
27214
27215 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27216
27217 * system.h (list, map, set, vector): Include conditionally.
27218 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27219 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27220 * ipa-icf.c (INCLUDE_LIST): Define.
27221 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27222 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27223 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27224 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27225 * cp/logic.cc (INCLUDE_LIST): Define.
27226 * fortran/trans-common.c (INCLUDE_MAP): Define.
27227
27228 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27229
27230 * auto-profile.c: Remove <string.h> include.
27231 * ipa-icf-gimple.c: Remove <list> include.
27232 * diagnostic.c: Remove <new> include.
27233 * genmatch.c: Likewise.
27234 * pretty-print.c: Likewise.
27235 * toplev.c: Likewise
27236 * c/c-objc-common.c: Likewise.
27237 * cp/error.c: Likewise.
27238 * fortran/error.c: Likewise.
27239
27240 2016-04-22 Richard Biener <rguenther@suse.de>
27241
27242 * lto-streamer-in.c (input_ssa_names): Do not allocate
27243 GIMPLE_NOP for all SSA names.
27244 * lto-streamer-out.c (output_ssa_names): Do not output
27245 SSA names that should have been released.
27246
27247 2016-04-22 Richard Biener <rguenther@suse.de>
27248
27249 PR tree-optimization/70740
27250 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27251 VDEF.
27252
27253 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27254
27255 PR target/70750
27256 * config/i386/predicates.md (call_insn_operand): Replace
27257 sibcall_memory_operand with memory_operand.
27258
27259 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27260
27261 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27262 has_single_use() tests.
27263 (register_edge_assert_for_1): Likewise.
27264 (find_assert_locations_1): Check the liveness bitmap instead of
27265 checking has_single_use().
27266
27267 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27268
27269 PR target/70728
27270 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27271 Extract AVX-512BW constraint from AVX.
27272
27273 2016-04-21 Richard Biener <rguenther@suse.de>
27274
27275 PR tree-optimization/70725
27276 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27277 for phi_convertible_by_degenerating_args.
27278 (predicate_all_scalar_phis): Handle single-argument PHIs.
27279
27280 2016-04-21 Richard Biener <rguenther@suse.de>
27281
27282 PR middle-end/70747
27283 * fold-const.c (fold_comparison): Return properly typed
27284 constant boolean.
27285
27286 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27287
27288 PR tree-optimization/70715
27289 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27290 after expanding BASE using expand_simple_operations.
27291
27292 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27293
27294 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27295 New transformations.
27296
27297 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27298
27299 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27300
27301 2016-04-20 Jan Hubicka <jh@suse.cz>
27302
27303 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27304 ultiimate_alias_target.
27305 (update_callee_keys): Likewise.
27306 (lookup_recursive_calls): Likewise.
27307 (speculation_useful_p): Likewise.
27308
27309 2016-04-20 Jan Hubicka <jh@suse.cz>
27310
27311 PR ipa/70018
27312 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27313 (set_nothrow_flag_1): ... this; handle interposition correctly;
27314 recurse on aliases and thunks.
27315 (cgraph_node::set_nothrow_flag): New.
27316 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27317 functions compiled with non-call exceptions that binds to current
27318 def.
27319 (propagate_nothrow): Be safe WRT interposition.
27320 * cgraph.h (set_nothrow_flag): Update prototype.
27321
27322 2016-04-18 Jan Hubicka <jh@suse.cz>
27323
27324 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27325 max_loop_iterations_int.
27326 (tree_unswitch_outer_loop): Likewise.
27327
27328 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27329
27330 PR tree-optimization/69489
27331 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27332 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27333 Revise dump message.
27334 (if_convertible_bb_p): Remove check on edge count of basic block's
27335 predecessors.
27336
27337 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27338
27339 PR tree-optimization/56625
27340 PR tree-optimization/69489
27341 * tree-data-ref.h (DR_INNERMOST): New macro.
27342 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27343 hashing struct innermost_loop_behavior.
27344 (ref_DR_map): Remove.
27345 (innermost_DR_map): New map.
27346 (baseref_DR_map): Revise comment.
27347 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27348 to innermost_DR_map accroding to its innermost loop behavior.
27349 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27350 to its innermost loop behavior.
27351 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27352 Add initialization for innermost_DR_map. Record memory reference
27353 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27354 have innermost loop behavior.
27355 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27356 innermost_DR_map.
27357
27358 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27359
27360 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27361 *lea_general_1. Use explicit SWI12 mode interator.
27362 (*lea<mode>_general_2): Rename from *lea_general_2.
27363 Use explicit SWI12 mode interator.
27364 (*lea<mode>_general_3): Rename from *lea_general_3.
27365 Use explicit SWI12 mode interator.
27366 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27367 Use explicit SWI12 mode interator.
27368 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27369 Use explicit SWI48 mode interator.
27370
27371 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27372
27373 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27374 Short-cut unaligned load and store cases. Handle all integer
27375 vector modes.
27376 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27377 and store cases. Call ix86_avx256_split_vector_move_misalign
27378 directly without checking mode class.
27379
27380 2016-04-20 Andrew Pinski <apinski@cavium.com>
27381 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27382
27383 PR target/64971
27384 * config/aarch64/aarch64.md (sibcall): Force call
27385 address to be DImode for ILP32.
27386 (sibcall_value): Likewise.
27387
27388 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27389
27390 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27391
27392 2016-04-20 Richard Biener <rguenther@suse.de>
27393
27394 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27395 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27396 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27397 (maybe_push_res_to_seq): Adjust.
27398 * gimple-fold.c (maybe_build_generic_op): Likewise.
27399
27400 2016-04-20 Marek Polacek <polacek@redhat.com>
27401
27402 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27403 rather than true.
27404
27405 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27406
27407 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27408 use kmovw to support AVX512F target.
27409
27410 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27411
27412 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27413
27414 2016-04-20 Marek Polacek <polacek@redhat.com>
27415
27416 PR tree-optimization/70725
27417 * tree-if-conv.c (is_false_predicate): New function.
27418 (predicate_mem_writes): Use it.
27419
27420 2016-04-20 Richard Biener <rguenther@suse.de>
27421
27422 PR tree-optimization/70726
27423 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27424 shift amounts from a pattern stmt operand.
27425
27426 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27427
27428 PR target/70674
27429 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27430 stack_restore_from_fpr pattern when restoring r15.
27431 (s390_optimize_prologue): Strip away the memory barrier in the
27432 parallel when trying to get rid of restore insns.
27433 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27434 definition for loading the stack pointer from an FPR. Compared to
27435 the normal move insn this pattern includes a full memory barrier.
27436
27437 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27438
27439 PR middle-end/70680
27440 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27441 implicitly linear or lastprivate iterator on the outer context.
27442
27443 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27444
27445 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27446 alignment check.
27447 * config/i386/i386.md (ssememalign): Removed.
27448 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27449
27450 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27451
27452 PR target/69201
27453 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27454 const short * to __builtin_ia32_loaddquhi512_mask.
27455 (_mm512_maskz_loadu_epi16): Likewise.
27456 (_mm512_mask_storeu_epi16): Pass short * to
27457 __builtin_ia32_storedquhi512_mask.
27458 (_mm512_mask_loadu_epi8): Pass const char * to
27459 __builtin_ia32_loaddquqi512_mask.
27460 (_mm512_maskz_loadu_epi8): Likewise.
27461 (_mm512_mask_storeu_epi8): Pass char * to
27462 __builtin_ia32_storedquqi512_mask.
27463 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27464 const double * to __builtin_ia32_loadupd512_mask.
27465 (_mm512_mask_loadu_pd): Likewise.
27466 (_mm512_maskz_loadu_pd): Likewise.
27467 (_mm512_storeu_pd): Pass double * to
27468 __builtin_ia32_storeupd512_mask.
27469 (_mm512_mask_storeu_pd): Likewise.
27470 (_mm512_loadu_ps): Pass const float * to
27471 __builtin_ia32_loadups512_mask.
27472 (_mm512_mask_loadu_ps): Likewise.
27473 (_mm512_maskz_loadu_ps): Likewise.
27474 (_mm512_storeu_ps): Pass float * to
27475 __builtin_ia32_storeups512_mask.
27476 (_mm512_mask_storeu_ps): Likewise.
27477 (_mm512_mask_loadu_epi64): Pass const long long * to
27478 __builtin_ia32_loaddqudi512_mask.
27479 (_mm512_maskz_loadu_epi64): Likewise.
27480 (_mm512_mask_storeu_epi64): Pass long long *
27481 to __builtin_ia32_storedqudi512_mask.
27482 (_mm512_loadu_si512): Pass const int * to
27483 __builtin_ia32_loaddqusi512_mask.
27484 (_mm512_mask_loadu_epi32): Likewise.
27485 (_mm512_maskz_loadu_epi32): Likewise.
27486 (_mm512_storeu_si512): Pass int * to
27487 __builtin_ia32_storedqusi512_mask.
27488 (_mm512_mask_storeu_epi32): Likewise.
27489 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27490 char * to __builtin_ia32_storedquqi256_mask.
27491 (_mm_mask_storeu_epi8): Likewise.
27492 (_mm256_mask_loadu_epi16): Pass const short * to
27493 __builtin_ia32_loaddquhi256_mask.
27494 (_mm256_maskz_loadu_epi16): Likewise.
27495 (_mm_mask_loadu_epi16): Pass const short * to
27496 __builtin_ia32_loaddquhi128_mask.
27497 (_mm_maskz_loadu_epi16): Likewise.
27498 (_mm256_mask_loadu_epi8): Pass const char * to
27499 __builtin_ia32_loaddquqi256_mask.
27500 (_mm256_maskz_loadu_epi8): Likewise.
27501 (_mm_mask_loadu_epi8): Pass const char * to
27502 __builtin_ia32_loaddquqi128_mask.
27503 (_mm_maskz_loadu_epi8): Likewise.
27504 (_mm256_mask_storeu_epi16): Pass short * to.
27505 __builtin_ia32_storedquhi256_mask.
27506 (_mm_mask_storeu_epi16): Pass short * to.
27507 __builtin_ia32_storedquhi128_mask.
27508 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27509 const double * to __builtin_ia32_loadupd256_mask.
27510 (_mm256_maskz_loadu_pd): Likewise.
27511 (_mm_mask_loadu_pd): Pass onst double * to
27512 __builtin_ia32_loadupd128_mask.
27513 (_mm_maskz_loadu_pd): Likewise.
27514 (_mm256_mask_storeu_pd): Pass double * to
27515 __builtin_ia32_storeupd256_mask.
27516 (_mm_mask_storeu_pd): Pass double * to
27517 __builtin_ia32_storeupd128_mask.
27518 (_mm256_mask_loadu_ps): Pass const float * to
27519 __builtin_ia32_loadups256_mask.
27520 (_mm256_maskz_loadu_ps): Likewise.
27521 (_mm_mask_loadu_ps): Pass const float * to
27522 __builtin_ia32_loadups128_mask.
27523 (_mm_maskz_loadu_ps): Likewise.
27524 (_mm256_mask_storeu_ps): Pass float * to
27525 __builtin_ia32_storeups256_mask.
27526 (_mm_mask_storeu_ps): ass float * to
27527 __builtin_ia32_storeups128_mask.
27528 (_mm256_mask_loadu_epi64): Pass const long long * to
27529 __builtin_ia32_loaddqudi256_mask.
27530 (_mm256_maskz_loadu_epi64): Likewise.
27531 (_mm_mask_loadu_epi64): Pass const long long * to
27532 __builtin_ia32_loaddqudi128_mask.
27533 (_mm_maskz_loadu_epi64): Likewise.
27534 (_mm256_mask_storeu_epi64): Pass long long * to
27535 __builtin_ia32_storedqudi256_mask.
27536 (_mm_mask_storeu_epi64): Pass long long * to
27537 __builtin_ia32_storedqudi128_mask.
27538 (_mm256_mask_loadu_epi32): Pass const int * to
27539 __builtin_ia32_loaddqusi256_mask.
27540 (_mm256_maskz_loadu_epi32): Likewise.
27541 (_mm_mask_loadu_epi32): Pass const int * to
27542 __builtin_ia32_loaddqusi128_mask.
27543 (_mm_maskz_loadu_epi32): Likewise.
27544 (_mm256_mask_storeu_epi32): Pass int * to
27545 __builtin_ia32_storedqusi256_mask.
27546 (_mm_mask_storeu_epi32): Pass int * to
27547 __builtin_ia32_storedqusi128_mask.
27548 * config/i386/i386-builtin-types.def (PCSHORT): New.
27549 (PINT64): Likewise.
27550 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27551 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27552 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27553 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27554 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27555 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27556 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27557 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27558 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27559 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27560 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27561 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27562 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27563 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27564 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27565 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27566 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27567 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27568 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27569 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27570 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27571 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27572 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27573 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27574 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27575 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27576 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27577 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27578 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27579 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27580 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27581 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27582 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27583 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27584 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27585 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27586 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27587 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27588 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27589 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27590 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27591 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27592 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27593 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27594 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27595 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27596 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27597 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27598 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27599 use UNSPEC_STOREU.
27600 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27601 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27602 load nor store.
27603 (ix86_expand_vector_move_misalign): Likewise.
27604 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27605 to scalar function prototype for unaligned load/store builtins.
27606 (ix86_expand_special_args_builtin): Updated.
27607 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27608 (UNSPEC_STOREU): Likewise.
27609 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27610 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27611 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27612 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27613 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27614 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27615 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27616 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27617 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27618 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27619 (<avx512>_storedqu<mode>_mask): Likewise.
27620 (*sse4_2_pcmpestr_unaligned): Likewise.
27621 (*sse4_2_pcmpistr_unaligned): Likewise.
27622 (*mov<mode>_internal): Renamed to ...
27623 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27624 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27625 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27626 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27627
27628 2016-04-19 Richard Biener <rguenther@suse.de>
27629
27630 PR tree-optimization/70171
27631 * tree-ssa-phiprop.c: Include stor-layout.h.
27632 (phiprop_insert_phi): Handle the aggregate copy case.
27633 (propagate_with_phi): Likewise.
27634
27635 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27636
27637 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27638 instead of simplify_gen_subreg (... , 0).
27639 (ix86_delegitimize_address): Ditto.
27640 (ix86_split_divmod): Ditto.
27641 (ix86_split_copysign_const): Ditto.
27642 (ix86_split_copysign_var): Ditto.
27643 (ix86_expand_args_builtin): Ditto.
27644 (ix86_expand_round_builtin): Ditto.
27645 (ix86_expand_special_args_builtin): Ditto.
27646 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27647 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27648 (udivmodqi4): Ditto.
27649 (absneg splitters): Ditto.
27650 (*jcc_bt<mode>_1): Ditto.
27651
27652 2016-04-19 Richard Biener <rguenther@suse.de>
27653
27654 PR tree-optimization/70724
27655 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27656 restoring out from ...
27657 (free_scc_vn): ... here.
27658 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27659 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27660 tail merging.
27661 (pass_fre::execute): Restore SSA info.
27662
27663 2016-04-19 Richard Biener <rguenther@suse.de>
27664
27665 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27666 * gimple-walk.c (walk_gimple_op): Initialize it.
27667 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27668 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27669 remapping SSA names of defs.
27670 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27671 adjustment.
27672
27673 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27674
27675 PR middle-end/70689
27676 * lra-constraints.c (equiv_substition_p): New.
27677 (process_alt_operands): Use it.
27678 (swap_operands): Swap it.
27679 (curr_insn_transform): Update it.
27680
27681 2016-04-18 Michael Matz <matz@suse.de>
27682
27683 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27684 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27685 * tree-core.h (tree_type_common.align): Use bit-field.
27686 (tree_type_common.spare): New.
27687 (tree_decl_common.off_align): Make smaller.
27688 (tree_decl_common.align): Use bit-field.
27689
27690 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27691 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27692 (scan_sharing_clauses): Ditto.
27693 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27694 (omp_finish_file): Ditto.
27695 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27696 (layout_decl): Ditto.
27697 (relayout_decl): Ditto.
27698 (finalize_record_size): Use SET_TYPE_ALIGN.
27699 (finalize_type_size): Ditto.
27700 (finish_builtin_struct): Ditto.
27701 (layout_type): Ditto.
27702 (initialize_sizetypes): Ditto.
27703 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27704 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27705 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27706 (get_chain_field): Ditto.
27707 (get_trampoline_type): Ditto.
27708 (get_nl_goto_field): Ditto.
27709 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27710 SET_DECL_ALIGN.
27711 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27712 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27713 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27714 (build_qualified_type): Use SET_TYPE_ALIGN.
27715 (build_aligned_type, build_range_type_1): Ditto.
27716 (build_atomic_base): Ditto.
27717 (build_common_tree_nodes): Ditto.
27718 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27719 (expand_one_stack_var_at): Ditto.
27720 * coverage.c (build_var): Use SET_DECL_ALIGN.
27721 * except.c (init_eh): Ditto.
27722 * function.c (assign_parm_setup_block): Ditto.
27723 * symtab.c (increase_alignment_1): Ditto.
27724 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27725 * tree-vect-stmts.c (ensure_base_align): Ditto.
27726 * varasm.c (align_variable): Ditto.
27727 (assemble_variable): Ditto.
27728 (build_constant_desc): Ditto.
27729 (output_constant_def_contents): Ditto.
27730
27731 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27732 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27733 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27734 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27735 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27736
27737 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27738
27739 PR target/70708
27740 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27741 replace %vmovsd with "%vmovq".
27742 (vec_concatv2df): Likewise.
27743
27744 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27745
27746 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27747 (*vec_extractv2si_0): Ditto.
27748 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27749 (zero_extended_scalar_load_operand splitters): Ditto.
27750 (vec_extract splitters): Ditto.
27751 (*vec_extractv4si_0_zext): Ditto.
27752 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27753 and lowpart_subreg.
27754 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27755 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27756 (*sse4_1_extractps): Use lowpart_subreg.
27757 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27758
27759 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27760
27761 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27762 gld requirements.
27763 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27764 Mention Solaris 11 packaging changes.
27765 Update gas and gld requirements.
27766 Remove reference to pre-Solaris 10 bug.
27767 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27768 systems and bugs.
27769 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27770 with cc.
27771
27772 2016-04-17 Jan Hubicka <jh@suse.cz>
27773
27774 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27775 max_loop_iterations_int.
27776
27777 2016-04-18 Richard Biener <rguenther@suse.de>
27778
27779 PR tree-optimization/43434
27780 * tree-ssa-structalias.c (struct vls_data): New.
27781 (visit_loadstore): Handle all pointer-based accesses.
27782 (compute_dependence_clique): Compute a bitmap of restrict tags
27783 assigned bases and pass it to visit_loadstore.
27784
27785 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27786
27787 PR target/70711
27788 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27789 armv8.1-a and armv8.1-a+crc.
27790
27791 2016-04-18 Richard Biener <rguenther@suse.de>
27792
27793 PR tree-optimization/70701
27794 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27795 references after translating through a memcpy.
27796
27797 2016-04-18 Richard Biener <rguenther@suse.de>
27798
27799 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27800 (compute_antic): ... here. For partial antic use regular
27801 postorder and scrap iteration.
27802 (compute_partial_antic_aux): Remove unused return value.
27803 (init_pre): Do not allocate postorder.
27804 (fini_pre): Do not free postorder.
27805
27806 2016-04-18 Richard Biener <rguenther@suse.de>
27807
27808 PR middle-end/37870
27809 * expmed.c (extract_bit_field_1): Remove broken case
27810 using a wider MODE_INT mode.
27811
27812 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27813
27814 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27815 unless compiling with at least GCC-4.8.
27816
27817 2016-04-17 Jan Hubicka <jh@suse.cz>
27818
27819 PR bootstrap/70706
27820 * graphite.c (graphite_finalize): Update call to
27821 tree_estimate_probability.
27822 * predict.h (tree_estimate_probability): Update prototype.
27823
27824 2016-04-17 Jan Hubicka <jh@suse.cz>
27825
27826 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27827 (tree_estimate_probability): Likewise.
27828 (pass_profile::execute): Update.
27829 (report_predictor_hitrates): New function.
27830 * profile.c (compute_branch_probabilities): Use it.
27831 * predict.h (report_predictor_hitrates): Declare.
27832
27833 2016-04-17 Jan Hubicka <jh@suse.cz>
27834
27835 PR ipa/70018
27836 * cgraph.h (cgraph_node::set_const_flag,
27837 cgraph_node::set_pure_flag): Update prototype to return bool;
27838 update comment.
27839 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27840 of interposable symbol are interposable, too.
27841 (cgraph_set_const_flag_1): Rename to ...
27842 (set_const_flag_1): ... this one; change to self recursive function
27843 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27844 clearnig the flag in all variants and also virtual thunks of const
27845 functions are pure; track if any change was done.
27846 (cgraph_node::set_const_flag): Update.
27847 (struct set_pure_flag_info): New struct.
27848 (cgraph_set_pure_flag_1): Rename to ...
27849 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27850 rather than pointer encoded flags; track if any changes was done;
27851 handle correctly clearning flag and setting flag of aliases already
27852 declared const.
27853 (cgraph_node::set_pure_flag): Update.
27854 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27855
27856 2016-04-17 Tom de Vries <tom@codesourcery.com>
27857
27858 PR other/70433
27859 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27860 backslash in label.
27861
27862 2016-04-17 Tom de Vries <tom@codesourcery.com>
27863
27864 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27865 '{}<> ' as escape-for-record.
27866
27867 2016-04-17 Tom de Vries <tom@codesourcery.com>
27868
27869 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27870 structure.
27871
27872 2016-04-17 Tom de Vries <tom@codesourcery.com>
27873
27874 PR other/70185
27875 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27876 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27877 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27878 * passes.c (finish_optimization_passes): Only call
27879 finish_graph_dump_file if dfi->graph_dump_initialized.
27880 (execute_function_dump, pass_init_dump_file): Use
27881 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27882
27883 2016-04-17 Tom de Vries <tom@codesourcery.com>
27884
27885 PR tree-optimization/70256
27886 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27887 (debug_varmap): New function.
27888
27889 2016-04-17 Tom de Vries <tom@codesourcery.com>
27890
27891 PR other/70183
27892 * passes.c (pass_manager::register_pass): Propagate pflags.
27893
27894 2016-04-17 Tom de Vries <tom@codesourcery.com>
27895
27896 PR other/68875
27897 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27898 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27899 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27900 check if it's equal to p_start.
27901 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27902
27903 2016-04-15 Jan Hubicka <jh@suse.cz>
27904
27905 PR ipa/70018
27906 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27907 function does not bind to current def.
27908 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27909 handle conservatively calls to functions that does not need to bind
27910 to current def.
27911 (check_call): Update call of worse_state.
27912 (ignore_edge_for_nothrow): Update.
27913 (ignore_edge_for_pure_const): Likewise.
27914 (propagate_pure_const): Update calls to worse_state.
27915 (skip_function_for_local_pure_const): Reformat comments.
27916
27917 2016-04-15 Jan Hubicka <jh@suse.cz>
27918
27919 PR ipa/70018
27920 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27921 (cgraph_node::function_symbol): Likewise.
27922 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27923 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27924 (symtab_node::ultimate_alias_target): Add REF parameter.
27925 (symtab_node::binds_to_current_def_p): Declare.
27926 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27927 (cgraph_node::function_symbol): Likewise.
27928 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27929 (cgraph_node::get_availability): Likewise.
27930 (cgraph_edge::binds_to_current_def_p): New inline function.
27931 (varpool_node::get_availability): Add REF parameter.
27932 (varpool_node::ultimate_alias_target): Likewise.
27933 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27934 (symtab_node::binds_to_current_def_p): Likewise.
27935 * varpool.c (varpool_node::get_availability): Likewise.
27936
27937 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27938
27939 PR target/70662
27940 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27941 Fix mode size check.
27942
27943 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27944
27945 * BASE-VER: Set to 7.0.0.
27946
27947 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27948
27949 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27950
27951 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27952
27953 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27954 architecture revisions.
27955
27956 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27957
27958 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27959 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27960 * config/i386/i386.md (stack decrement to push peepholes): Guard
27961 with !x86_using_red_zone ().
27962
27963 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27964
27965 PR c++/70675
27966 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27967 to dump_generic_node.
27968 (NIY): Pass also flags to do_niy.
27969
27970 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27971
27972 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27973 (simd_clone_vector_of_formal_parm_types)
27974 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27975 (simd_clone_mangle, simd_clone_create)
27976 (simd_clone_adjust_return_type, create_tmp_simd_array)
27977 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27978 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27979 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27980 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27981 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27982 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27983 * omp-simd-clone.c: ... this new file.
27984 (simd_clone_vector_of_formal_parm_types): Make it static.
27985 * Makefile.in (OBJS): Add omp-simd-clone.o.
27986
27987 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27988
27989 PR target/70662
27990 * config/i386/sse.md: Use proper memory operand modifiers.
27991
27992
27993 2016-04-15 Richard Biener <rguenther@suse.de>
27994 Alan Modra <amodra@gmail.com>
27995
27996 PR tree-optimization/70130
27997 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27998 when alignment stays not the same and no not use the realign
27999 scheme then.
28000
28001 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28002
28003 PR target/70669
28004 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28005 direct move handlers for KFmode. Change TFmode handlers test from
28006 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28007
28008 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28009
28010 PR c++/70594
28011 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28012 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28013 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28014 * tree-ssa-live.c (remove_unused_scope_block_p): When
28015 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28016 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28017 block_ultimate_origin is FUNCTION_DECL.
28018 (remove_unused_locals): If current_function_decl is
28019 polymorphic_ctor_dtor_p, pass initial true to
28020 remove_unused_scope_block_p' is_ctor_dtor_block.
28021
28022 2016-04-14 Martin Sebor <msebor@redhat.com>
28023
28024 PR c++/69517
28025 PR c++/70019
28026 PR c++/70588
28027 * doc/extend.texi (Variable Length): Revert.
28028
28029 2016-04-14 Marek Polacek <polacek@redhat.com>
28030 Jan Hubicka <hubicka@ucw.cz>
28031
28032 PR c++/70029
28033 * tree.c (verify_type): Disable the canonical type of main variant
28034 check.
28035
28036 2016-04-14 Jason Merrill <jason@redhat.com>
28037
28038 * cfgexpand.c, expr.c: Revert previous change.
28039
28040 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28041
28042 PR middle-end/70643
28043 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28044 when building a mem ref for the incoming reduction variable.
28045
28046 2016-04-14 Richard Biener <rguenther@suse.de>
28047
28048 PR tree-optimization/70614
28049 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28050 loop if the evolution dropped to chrec_dont_know.
28051 (interpret_condition_phi): Likewise.
28052
28053 2016-04-14 Richard Biener <rguenther@suse.de>
28054
28055 PR tree-optimization/70623
28056 * tree-ssa-pre.c (changed_blocks): Make global ...
28057 (compute_antic): ... local here. Move and fix worklist
28058 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28059 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28060 worklist handling, dump when ANTIC_IN changed.
28061 (compute_partial_antic_aux): Remove worklist handling.
28062 (init_pre): Do not compute post dominators. Add a comment about
28063 the CFG order chosen.
28064 (fini_pre): Do not free post dominators.
28065
28066 2016-04-13 Martin Sebor <msebor@redhat.com>
28067
28068 PR c++/69517
28069 PR c++/70019
28070 PR c++/70588
28071 * doc/extend.texi (Variable Length): Document C++ specifics.
28072
28073 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28074
28075 PR c++/70641
28076 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28077 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28078 eh edges have been purged.
28079
28080 PR c++/70594
28081 * tree-sra.c (create_access_replacement,
28082 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28083 gets fancy name.
28084 * tree-pretty-print.c (dump_fancy_name): New function.
28085 (dump_decl_name, dump_generic_node): Use it.
28086
28087 2016-04-13 Jason Merrill <jason@redhat.com>
28088
28089 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28090 * expr.c (expand_expr_real_1): Likewise.
28091
28092 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28093
28094 * config/i386/i386.md (kunpckhi): Swap operands.
28095 (kunpcksi): Likewise.
28096 (kunpckdi): Likewise.
28097 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28098 (vec_pack_trunc_<mode>): Likewise.
28099
28100 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28101
28102 PR debug/70628
28103 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28104
28105 PR middle-end/70633
28106 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28107 gimplification turns some element into non-constant.
28108
28109 PR debug/70628
28110 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28111 * explow.c (convert_memory_address_addr_space_1): No longer static,
28112 add NO_EMIT argument and don't call convert_modes if true, pass
28113 it down recursively, remove break after return.
28114 (convert_memory_address_addr_space): Adjust caller.
28115 * simplify-rtx.c (simplify_unary_operation_1): Call
28116 convert_memory_address_addr_space_1 instead of convert_memory_address,
28117 if it returns NULL, don't simplify.
28118
28119 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28120
28121 PR target/70630
28122 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28123
28124 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28125
28126 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28127 Bump the upper SIMDLEN limits, so that if the return type or
28128 characteristic type if the return type is void can be passed in
28129 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28130 allowed.
28131
28132 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28133
28134 PR target/70640
28135 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28136 Do not use "=" constraint on an input constraint.
28137 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28138 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28139 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28140 generates (neg (abs ...)) instead of (abs ...).
28141
28142 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28143
28144 PR rtl-optimization/70596
28145 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28146 just invalidate LRA data and reset them. Adjust dump wording.
28147
28148 2016-04-12 Martin Liska <mliska@suse.cz>
28149
28150 Revert
28151 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28152
28153 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28154 estimates here.
28155 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28156 max_loop_iterations_int.
28157 (tree_unswitch_outer_loop): Likewise.
28158 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28159 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28160
28161 2016-04-12 Tom de Vries <tom@codesourcery.com>
28162
28163 PR tree-optimization/68756
28164 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28165 instead of new_name.
28166
28167 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28168
28169 PR tree-optimization/70602
28170 * tree-sra.c (generate_subtree_copies): Don't write anything into
28171 constant pool decls.
28172
28173 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28174 regardless whether there are depend clauses or not.
28175
28176 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28177
28178 PR target/70381
28179 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28180 target attribute and pragma from changing the -mfloat128
28181 and -mfloat128-hardware options.
28182
28183 * doc/extend.texi (Additional Floating Types): Document PowerPC
28184 __float128 restrictions.
28185
28186 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28187
28188 PR target/70133
28189 * config/aarch64/driver-aarch64.c
28190 (aarch64_get_extension_string_for_isa_flags): New.
28191 (arch_extension): Rename to...
28192 (aarch64_arch_extension): ...This.
28193 (ext_to_feat_string): Rename to...
28194 (aarch64_extensions): ...This.
28195 (aarch64_core_data): Keep track of architecture extension flags.
28196 (cpu_data): Rename to...
28197 (aarch64_cpu_data): ...This.
28198 (aarch64_arch_driver_info): Keep track of architecture extension
28199 flags.
28200 (get_arch_name_from_id): Rename to...
28201 (get_arch_from_id): ...This, change return type.
28202 (host_detect_local_cpu): Update and reformat for renames, handle
28203 extensions through common infrastructure.
28204
28205 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28206
28207 PR target/70133
28208 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28209 track of a canonical flag name.
28210 (all_extensions): Likewise.
28211 (arch_to_arch_name): Also track extension flags enabled by the arch.
28212 (all_architectures): Likewise.
28213 (aarch64_parse_extension): Move to here.
28214 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28215 rework.
28216 (aarch64_rewrite_selected_cpu): Update for above change.
28217 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28218 are handled, such that the single explicit value enabled by an
28219 extension is kept seperate from the implicit values it also enables.
28220 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28221 to here.
28222 (aarch64_parse_extension): New.
28223 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28224 here to config/aarch64/aarch64-protos.h.
28225 (aarch64_parse_extension): Move from here to
28226 common/config/aarch64/aarch64-common.c.
28227 (aarch64_option_print): Update.
28228 (aarch64_declare_function_name): Likewise.
28229 (aarch64_start_file): Likewise.
28230 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28231 the canonical flag for extensions.
28232 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28233 flags.
28234
28235 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28236
28237 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28238 AARCH64_FL_CRC.
28239
28240 2016-04-09 Tom de Vries <tom@codesourcery.com>
28241
28242 PR tree-optimization/68953
28243 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28244 first to last subscript.
28245
28246 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28247
28248 PR tree-optimization/70586
28249 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28250 for any calls.
28251
28252 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28253
28254 PR lto/70289
28255 PR ipa/70348
28256 PR tree-optimization/70373
28257 PR middle-end/70533
28258 PR middle-end/70534
28259 PR middle-end/70535
28260 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28261 clauses for acc parallel reductions as necessary. Error on those
28262 that are private.
28263 * omp-low.c (scan_sharing_clauses): Don't install variables which
28264 are used in acc parallel reductions.
28265 (lower_rec_input_clauses): Remove dead code.
28266 (lower_oacc_reductions): Add support for reference reductions.
28267 (lower_reduction_clauses): Remove dead code.
28268 (lower_omp_target): Don't remap variables appearing in acc parallel
28269 reductions.
28270 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28271
28272 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28273
28274 PR middle-end/70593
28275 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28276 with multiple SSA_NAME defs, force the outputs other than first
28277 to be live before calling live_track_process_def on each output.
28278
28279 PR rtl-optimization/70574
28280 * fwprop.c (forward_propagate_and_simplify): Don't add
28281 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28282 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28283 paradoxical subregs within *loc.
28284
28285 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28286
28287 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28288 -ftree-parallelize-loops={0,1}.
28289 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28290 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28291 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28292 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28293 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28294
28295 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28296
28297 PR sanitizer/70541
28298 * asan.c (instrument_derefs): If we get unknown location, extract it
28299 with EXPR_LOCATION.
28300 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28301
28302 2016-04-08 Tom de Vries <tom@codesourcery.com>
28303
28304 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28305 implicit firstprivate clause.
28306
28307 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28308
28309 PR target/70566
28310 * config/arm/thumb2.md (tst + branch-> lsls + branch
28311 peephole below *orsi_not_shiftsi_si): Require that condition
28312 register is dead after the peephole.
28313 (second peephole after the above): Likewise.
28314
28315 2016-04-08 Alan Modra <amodra@gmail.com>
28316
28317 PR target/70117
28318 * builtins.c (fold_builtin_classify): For IBM extended precision,
28319 look at just the high-order double to test for NaN.
28320 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28321 test just the high double for Inf but both doubles for subnormal
28322 limit.
28323
28324 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28325
28326 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28327 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28328 node->simdclone->mask_mode != VOIDmode masks.
28329 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28330 earlier, use it instead of node->simdclone.
28331 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28332 Set clonei->mask_mode.
28333
28334 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28335
28336 PR c/70436
28337 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28338 Pass it through to cp_parser_already_scoped_statement.
28339 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28340 it through to cp_parser_statement.
28341 (cp_parser_statement): Pass IF_P through to
28342 cp_parser_iteration_statement.
28343 (cp_parser_pragma): Adjust call to
28344 cp_parser_iteration_statement.
28345
28346 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28347
28348 PR c/70436
28349 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28350 resolve a future -Wparentheses warning.
28351 * omp-low.c (scan_sharing_clauses): Likewise.
28352 * tree-parloops.c (eliminate_local_variables): Likewise.
28353
28354 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28355
28356 PR rtl-optimization/70398
28357 * lra-constraints.c (process_address_1): Check zero scale and code
28358 for reloading with zero scale.
28359
28360 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28361
28362 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28363 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28364
28365 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28366
28367 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28368 Add support for AVX512F clones, include them by default for
28369 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28370 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28371 up to 128.
28372
28373 PR middle-end/70550
28374 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28375 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28376 firstprivate clauses.
28377 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28378 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28379 (lower_omp_target): Set TREE_NO_WARNING for
28380 non-addressable possibly uninitialized vars which are copied into
28381 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28382
28383 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28384
28385 * config/pa/predicates.md (integer_store_memory_operand): Accept
28386 REG+D operands with a large offset when reload_in_progress is true.
28387 (floating_point_store_memory_operand): Likewise.
28388
28389 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28390
28391 PR c++/70336
28392 * match.pd (nested int casts): Limit to GIMPLE.
28393
28394 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28395
28396 PR ipa/66223
28397 * ipa-devirt.c (maybe_record_node): Fix comment; use
28398 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28399
28400 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28401
28402 PR rtl-optimization/70542
28403 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28404 if there are any uses other than insn or debug insns.
28405
28406 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28407 Jakub Jelinek <jakub@redhat.com>
28408
28409 PR tree-optimization/70509
28410 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28411 Shift HOST_WIDE_INT_1U instead of 1.
28412
28413 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28414
28415 PR tree-optimization/70509
28416 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28417 of the vector base type for index.
28418
28419 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28420
28421 PR target/70510
28422 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28423
28424 2016-04-05 Richard Biener <rguenther@suse.de>
28425
28426 PR tree-optimization/70526
28427 * tree-sra.c (build_ref_for_offset): Use prev_base to
28428 extract the alias pointer type.
28429
28430 2016-04-05 Richard Biener <rguenther@suse.de>
28431
28432 * dse.c (struct store_info): Remove alias_set member.
28433 (struct read_info_type): Likewise.
28434 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28435 spill_deleted, clear_alias_set_lookup): Remove.
28436 (get_group_info): Remove dead base == NULL_RTX case.
28437 (dse_step0): Remove initialization of removed variables.
28438 (delete_dead_store_insn): Reomve alias set dumping.
28439 (free_read_records): Remove alias_set handling.
28440 (canon_address): Remove alias_set_out parameter.
28441 (record_store): Remove spill_alias_set, it's always zero.
28442 (check_mem_read_rtx): Likewise.
28443 (dse_step2): Rename from ...
28444 (dse_step2_nospill): ... this. Adjust.
28445 (scan_stores): Rename from ...
28446 (scan_stores_nospill): ... this.
28447 (scan_reads): Rename from ...
28448 (scan_reads_nospill): ... this.
28449 (scan_stores_spill, scan_reads_spill): Remove.
28450 (dse_step3_scan): Remove for_spills argument which is always false.
28451 (dse_step3): Likewise.
28452 (dse_step5): Rename from ...
28453 (dse_step5_nospill): ... this. Remove alias_set handling.
28454 (rest_of_handle_dse): Adjust.
28455
28456 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28457
28458 PR target/70525
28459 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28460 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28461 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28462 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28463
28464 2016-04-05 Richard Biener <rguenther@suse.de>
28465
28466 PR middle-end/70499
28467 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28468 non-register type temporaries into SSA.
28469
28470 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28471
28472 PR ipa/66223
28473 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28474 calls when sanitizing.
28475 (possible_polymorphic_call_target_p): Fix formatting.
28476
28477 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28478 Jakub Jelinek <jakub@redhat.com>
28479
28480 PR middle-end/70457
28481 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28482 to ensure a call statement is compatible with a built-in's
28483 prototype.
28484 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28485 Likewise.
28486
28487 2016-04-04 Richard Biener <rguenther@suse.de>
28488
28489 PR rtl-optimization/70484
28490 * rtl.h (canon_output_dependence): Declare.
28491 * alias.c (canon_output_dependence): New function.
28492 * dse.c (record_store): Use canon_output_dependence rather
28493 than canon_true_dependence.
28494
28495 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28496
28497 PR ipa/68881
28498 * cgraph.h (symtab_node::copy_visibility_from): New function.
28499 * symtab.c (symtab_node::copy_visibility_from): New function.
28500 * ipa-visibility.c (optimize_weakref): New function.
28501 (function_and_variable_visibility): Use it.
28502
28503 2016-04-04 Martin Liska <mliska@suse.cz>
28504
28505 PR hsa/70402
28506 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28507 value that is really in range handled by SBR instruction.
28508 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28509 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28510 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28511
28512 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28513
28514 PR target/70416
28515 PR target/67391
28516 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28517 set, but not for SP_REG operands.
28518
28519 2016-04-02 Martin Sebor <msebor@redhat.com>
28520
28521 PR c++/67376
28522 * fold-const.c (maybe_nonzero_address): New function.
28523 (fold_comparison): Call it. Fold equality and relational
28524 expressions involving null pointers.
28525 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28526
28527 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28528
28529 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28530 the "Y" constraint (scalar FP 0.0 immediate).
28531
28532 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28533 Add the "const_double" to the list of operand constraints.
28534
28535 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28536
28537 PR rtl-optimization/70467
28538 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28539 If low word of the last operand is 0, just emit addition/subtraction
28540 for the high word.
28541
28542 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28543
28544 PR target/70404
28545 * config/s390/s390.c (s390_expand_insv): Check for everything
28546 constant instead of just VOIDmode stuff.
28547
28548 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28549
28550 PR target/70496
28551 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28552
28553 2016-04-01 Nathan Sidwell <nathan@acm.org>
28554
28555 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28556
28557 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28558
28559 PR rtl-optimization/70461
28560 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28561 is necessary.
28562
28563 2016-03-31 Martin Liska <mliska@suse.cz>
28564
28565 PR hsa/70399
28566 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28567 a tree value or an immediate integer value to a buffer
28568 that is eventually copied to a BRIG section.
28569 (emit_immediate_operand): Call the function here.
28570 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28571 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28572 of class' fields that are removed.
28573 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28574 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28575 m_brig_repr_size fields.
28576
28577 2016-03-31 Martin Liska <mliska@suse.cz>
28578
28579 PR hsa/70391
28580 * hsa-gen.c (hsa_function_representation::update_dominance): New
28581 function.
28582 (convert_addr_to_flat_segment): Likewise.
28583 (gen_hsa_memory_set): New alignment argument.
28584 (gen_hsa_ctor_assignment): Likewise.
28585 (gen_hsa_insns_for_single_assignment): Provide alignment
28586 to gen_hsa_ctor_assignment.
28587 (gen_hsa_insns_for_direct_call): Add new argument.
28588 (expand_lhs_of_string_op): New function.
28589 (expand_string_operation_builtin): Likewise.
28590 (expand_memory_copy): New function.
28591 (expand_memory_set): New function.
28592 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28593 (convert_switch_statements): Change signature.
28594 (generate_hsa): Use a return value of the function.
28595 (pass_gen_hsail::execute): Do not call
28596 convert_switch_statements here.
28597 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28598 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28599 (hsa_function_representation::update_dominance): New function.
28600
28601 2016-03-31 Martin Liska <mliska@suse.cz>
28602
28603 PR hsa/70391
28604 * hsa-brig.c (emit_directive_variable): Emit alignment
28605 according to hsa_symbol::m_align.
28606 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28607 (dump_hsa_symbol): Dump alignment of HSA symbols.
28608 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28609 (gen_hsa_addr_with_align): New function.
28610 (hsa_bitmemref_alignment): Use newly added function.
28611 (gen_hsa_insns_for_load): Likewise.
28612 (gen_hsa_insns_for_store): Likewise.
28613 (gen_hsa_memory_copy): New argument added.
28614 (gen_hsa_insns_for_single_assignment): Respect
28615 alignment for assignments processed via gen_hsa_memory_copy.
28616 (gen_hsa_insns_for_direct_call): Likewise.
28617 (gen_hsa_insns_for_return): Likewise.
28618 (gen_function_def_parameters): Set default alignment.
28619 * hsa.c (hsa_object_alignment): New function.
28620 (hsa_byte_alignment): Pasted function.
28621 * hsa.h (hsa_symbol::m_align): New field.
28622
28623 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28624
28625 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28626 scratch field for goto case.
28627
28628 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28629
28630 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28631
28632 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28633
28634 PR target/70442
28635 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28636 (scalar_chain::convert_insn): Call convert_op for reg
28637 moves to handle undefined registers.
28638
28639 2016-03-31 Nathan Sidwell <nathan@acm.org>
28640
28641 PR c++/70393
28642 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28643 Assert we don't want to move backwards.
28644
28645 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28646
28647 PR target/70453
28648 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28649
28650 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28651
28652 PR rtl-optimization/70460
28653 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28654 with operand from REG_LABEL_OPERAND, instead substitute
28655 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28656 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28657
28658 2016-03-31 Martin Liska <mliska@suse.cz>
28659
28660 * passes.c (execute_one_pass): Do not call
28661 todo_after for a discarded function.
28662
28663 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28664
28665 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28666 (no_cost, infinite_cost): Initialize the new field.
28667 (get_computation_cost_at): Record setup cost.
28668 (determine_use_iv_cost_address): Skip cost computation for sub
28669 uses if we can estimate it without losing accuracy.
28670
28671 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28672
28673 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28674 estimates here.
28675 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28676 max_loop_iterations_int.
28677 (tree_unswitch_outer_loop): Likewise.
28678 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28679 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28680
28681 2016-03-30 Richard Biener <rguenther@suse.de>
28682
28683 PR middle-end/70450
28684 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28685
28686 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28687
28688 PR target/70421
28689 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28690 in gen_blendm expander.
28691
28692 2016-03-30 Nick Clifton <nickc@redhat.com>
28693
28694 PR target/62254
28695 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28696 case where we are already provided with an SImode SUBREG.
28697
28698 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28699
28700 PR target/70439
28701 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28702 conflict between DRAP register and __builtin_eh_return.
28703
28704 2016-03-30 Michael Matz <matz@suse.de>
28705 Richard Biener <rguenther@suse.de>
28706
28707 PR ipa/12392
28708 * ipa-polymorphic-call.c (struct type_change_info): Change
28709 speculative to an unsigned allowing to limit the work we do.
28710 (csftc_abort_walking_p): New inline function..
28711 (check_stmt_for_type_change): Limit the number of may-defs
28712 skipped for speculative devirtualization to
28713 max-speculative-devirt-maydefs.
28714 * params.def (max-speculative-devirt-maydefs): New param.
28715 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28716
28717 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28718
28719 PR target/63890
28720 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28721 and TARGET_MACHO.
28722
28723 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28724
28725 PR tree-optimization/59124
28726 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28727 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28728
28729 2016-03-29 Jeff Law <law@redhat.com>
28730
28731 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28732
28733 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28734
28735 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28736 to HOST_WIDE_INT.
28737
28738 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28739
28740 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28741 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28742 gcrt0.o if linking dynamically.
28743
28744 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28745
28746 PR ipa/70283
28747 * ipa-devirt.c (methods_equal_p): New function.
28748 (compare_virtual_tables): Use it.
28749 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28750 * cgraphclones.c (clone_function_name_1): Use
28751 symbol_table::symbol_suffix_separator.
28752 * coverage.c (build_var): Likewise.
28753 * symtab.c (symbol_table::symbol_suffix_separator): New.
28754
28755 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28756
28757 PR rtl-optimization/70429
28758 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28759 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28760 mode != result_mode.
28761
28762 PR c++/70353
28763 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28764
28765 PR tree-optimization/70405
28766 * ssa-iterators.h (num_imm_uses): Add missing braces.
28767
28768 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28769
28770 PR rtl-optimization/68695
28771 * ira-color.c (allocno_copy_cost_saving): New.
28772 (improve_allocation): Use it.
28773
28774 2016-03-29 Richard Henderson <rth@redhat.com>
28775
28776 PR middle-end/70355
28777 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28778
28779 2016-03-29 Richard Biener <rguenther@suse.de>
28780
28781 PR middle-end/70424
28782 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28783 use alignment returned by get_pointer_alignment_1 if it is
28784 bigger than BITS_PER_UNIT.
28785 * builtins.c (get_pointer_alignment_1): Do not return true
28786 for alignment extracted from SSA info.
28787
28788 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28789
28790 * config/ft32/ft32.opt (mnodiv): New.
28791 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28792 * doc/invoke.texi (FT32 Options -mnodiv): New.
28793
28794 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28795
28796 PR target/70406
28797 * config/i386/i386.md (define_split, andn): Fix modes.
28798
28799 2016-03-26 Richard Biener <rguenther@suse.de>
28800 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28801
28802 PR ipa/70366
28803 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28804 instead of
28805 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28806 as 2nd argument to cl_optimization_restore().
28807
28808 2016-03-25 Richard Henderson <rth@redhat.com>
28809
28810 PR target/70120
28811 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28812 * config/aarch64/aarch64-protos.h: Declare it.
28813 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28814
28815 2016-03-25 Alan Modra <amodra@gmail.com>
28816
28817 PR target/70052
28818 * config/rs6000/constraints.md (j): Simplify.
28819 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28820 decimal float 0.D.
28821 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28822 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28823 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28824 in all constraint alternatives.
28825 (movtd_64bit_nodm): Delete "j" constraint alternative.
28826
28827 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28828
28829 * tree-ssa-propagate.c: Enhance docs for
28830 SSA_PROP_NOT_INTERESTING.
28831
28832 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28833
28834 * doc/extend.texi: Fix typo in documentation to pure attribute.
28835
28836 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28837
28838 PR target/70319
28839 * config/pa/pa.md (bswapdi2): Use a scratch register.
28840
28841 2016-03-24 Richard Henderson <rth@redhat.com>
28842
28843 PR middle-end/69845
28844 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28845 overflow.
28846
28847 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28848
28849 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28850 using ix86_expand_binary_operator instead of gen_andsi3.
28851
28852 2016-03-24 Richard Biener <rguenther@suse.de>
28853
28854 PR tree-optimization/70396
28855 * tree-vect-stmts.c (vectorizable_comparison): Use
28856 get_vectype_for_scalar_type.
28857
28858 2016-03-24 Richard Biener <rguenther@suse.de>
28859
28860 PR middle-end/70370
28861 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28862 with register bases.
28863
28864 2016-03-24 Richard Biener <rguenther@suse.de>
28865
28866 PR tree-optimization/70372
28867 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28868 build_all_ones_cst to also handle vector types correctly.
28869
28870 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28871
28872 PR target/70381
28873 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28874 -mfloat128 here.
28875
28876 2016-03-23 Marek Polacek <polacek@redhat.com>
28877
28878 PR c++/69884
28879 * doc/invoke.texi: Document -Wignored-attributes.
28880
28881 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28882
28883 PR tree-optimization/69042
28884 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28885 parameter from 30 to 40.
28886
28887 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28888
28889 PR tree-optimization/69042
28890 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28891 for use with constant offset stripped in base.
28892
28893 2016-03-23 Richard Biener <rguenther@suse.de>
28894
28895 PR middle-end/70251
28896 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28897 mode compatibility check.
28898 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28899
28900 2016-03-23 Jeff Law <law@redhat.com>
28901
28902 PR tree-optimization/64058
28903 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28904 CONFLICT_COUNT.
28905 (struct ssa_conflicts): Move up earlier in the file.
28906 (conflicts_, var_map_): New static variables.
28907 (initialize_conflict_count): New function to initialize the
28908 CONFLICT_COUNT field for each conflict pair.
28909 (compare_pairs): Lazily initialize the conflict count and use it
28910 as the first tie-breaker.
28911 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28912 and wipe conflicts_ and map_ around the call to qsort. Remove
28913 special case for 2 coalesce pairs.
28914 * bitmap.c (bitmap_count_unique_bits): New function.
28915 (bitmap_count_bits_in_word): New function, extracted from
28916 bitmap_count_bits.
28917 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28918 * bitmap.h (bitmap_count_unique_bits): Declare it.
28919
28920 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28921
28922 PR target/69917
28923 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28924 transparent alias chain for decl assembler name.
28925 * config/sol2.c (solaris_assemble_visibility): Likewise.
28926
28927 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28928
28929 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28930 duration.
28931 (v10_fdivs): Likewise.
28932 (v10_fdivd): Likewise.
28933
28934 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28935
28936 PR driver/70132
28937 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28938 to not call fclose twice on file.
28939
28940 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28941
28942 PR tree-optimization/70354
28943 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28944 oprnd0 is wider than oprnd1 and there is a cast from the wider
28945 type to oprnd1, mask it with the mask of the narrower type.
28946
28947 PR target/70321
28948 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28949 Optimize TARGET_STV splitters, if high or low word of last argument
28950 is 0 or -1.
28951
28952 2016-03-22 Jeff Law <law@redhat.com>
28953
28954 PR target/70232
28955 tree-ssa-threadbackward.c
28956 (fsm_find_control_statement_thread_paths): Correctly distinguish
28957 between old style jump threads vs FSM jump threads.
28958
28959 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28960
28961 PR target/70302
28962 * config/i386/i386.c (scalar_chain::convert_op): Support
28963 uninitialized register usage case.
28964
28965 2016-03-22 Richard Biener <rguenther@suse.de>
28966
28967 PR middle-end/70251
28968 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28969 int...
28970 (capture::gen_transform): ... to change behavior when substituting
28971 a condition into cond or not-cond expr context.
28972 (dt_simplify::gen_1): Adjust.
28973 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28974 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28975 last change and instead change to
28976 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28977 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28978
28979 2016-03-22 Anthony Green <green@moxielogic.com>
28980
28981 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28982 issue for moxiebox targets.
28983 (CC1PLUS_SPEC): Ditto.
28984
28985 2016-03-22 Richard Biener <rguenther@suse.de>
28986
28987 PR middle-end/70333
28988 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28989 in the wide type.
28990
28991 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28992
28993 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28994
28995 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28996
28997 PR target/70325
28998 * config/i386/i386.c (def_builtin): Handle
28999 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29000 bits.
29001 (const struct builtin_description bdesc_special_args[]):
29002 Remove duplicate ISA bits.
29003
29004 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29005
29006 PR target/70329
29007 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29008 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29009 in a way that works also for AVX512BW.
29010
29011 PR target/70300
29012 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29013 instead of source if operands[1] is xmm16 and above and
29014 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29015 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29016
29017 PR c++/70295
29018 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29019 on assign if (*from_p) is a comparison, set it to
29020 TREE_NO_WARNING (*from_p).
29021
29022 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29023
29024 PR middle-end/70326
29025 * lra.c (restore_scratches): Ignore deleted insns.
29026
29027 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29028 Jakub Jelinek <jakub@redhat.com>
29029
29030 PR tree-optimization/70317
29031 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29032 to HONOR_NANS.
29033
29034 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29035
29036 PR target/70327
29037 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29038 of ix86_expand_move.
29039 (movoi): Ditto.
29040 (movti): Use general_operand for operand 1 predicate.
29041
29042 2016-03-21 Martin Liska <mliska@suse.cz>
29043
29044 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29045 insns.
29046 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29047
29048 2016-03-21 Martin Liska <mliska@suse.cz>
29049
29050 PR ipa/70306
29051 * ipa-icf.c (sem_function::parse): Skip static
29052 constructors and destructors.
29053
29054 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29055
29056 PR target/70296
29057 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29058 function-like macro, peek following token(s) if it is followed
29059 by CPP_OPEN_PAREN token with optional padding in between, and
29060 if not, don't treat it like a macro.
29061
29062 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29063 Alexander Monakov <amonakov@ispras.ru>
29064
29065 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29066 for the stabs debug format.
29067
29068 2016-03-21 Richard Biener <rguenther@suse.de>
29069
29070 PR tree-optimization/70310
29071 * tree-vect-generic.c (expand_vector_condition): Fold the built
29072 condition.
29073
29074 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29075
29076 PR target/70293
29077 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29078 Block third alternative for AVX-512VL target,
29079
29080 2016-03-21 Martin Liska <mliska@suse.cz>
29081
29082 PR hsa/70234
29083 * hsa-brig.c (emit_function_directives): Mark unemitted
29084 global variables for emission.
29085 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29086 (get_symbol_for_decl): Likewise.
29087 * hsa.h (struct hsa_symbol): New flag.
29088
29089 2016-03-21 Richard Biener <rguenther@suse.de>
29090
29091 PR tree-optimization/70288
29092 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29093 we do not estimate unsimplified all-constant conditionals or
29094 switches as optimized away.
29095
29096 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29097
29098 PR rtl-optimization/69102
29099 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29100 when we have a readonly dependency context.
29101
29102 2016-03-18 Jeff Law <law@redhat.com>
29103
29104 PR rtl-optimization/70263
29105 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29106 (update_equiv_regs): When trying to move a store to after the insn
29107 that sets the source of the store, make sure the store occurs after
29108 the insn that sets the source of the store. When successful note
29109 the REG_EQUIV note created in the dump file.
29110
29111 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29112 Bernd Schmidt <bschmidt@redhat.com>
29113
29114 * doc/extend.texi: Document more potential problems with basic asms.
29115
29116 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29117
29118 PR rtl-optimization/70278
29119 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29120 VOIDmode.
29121
29122 2016-03-18 Jason Merrill <jason@redhat.com>
29123
29124 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29125
29126 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29127
29128 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29129 values to 128b regs.
29130
29131 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29132
29133 PR tree-optimization/70252
29134 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29135 boolean vector has a proper number of elements.
29136 (supportable_narrowing_operation): Likewise.
29137
29138 2016-03-18 Tom de Vries <tom@codesourcery.com>
29139
29140 PR ipa/70269
29141 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29142
29143 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29144
29145 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29146 instead of replace_rtx for DEBUG_INSNs.
29147
29148 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29149
29150 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29151 load type reservations.
29152
29153 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29154
29155 PR target/70188
29156 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29157 define_constraint for "Q" and "T" constraints.
29158
29159 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29160
29161 Tweak the pipeline model for Exynos M1
29162
29163 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29164 model.
29165
29166 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29167
29168 PR c/70264
29169 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29170 where one or both locations aren't within a line_map.
29171
29172 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29173
29174 PR driver/70192
29175 * opts.c (finish_options): Don't set flag_pie to the default if
29176 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29177 if it is -1.
29178
29179 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29180
29181 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29182 true as ALL_REGS argument to replace_rtx.
29183
29184 2016-03-17 Richard Biener <rguenther@suse.de>
29185
29186 PR debug/70271
29187 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29188 last.
29189
29190 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29191
29192 PR target/70245
29193 * rtl.h (replace_rtx): Add ALL_REGS argument.
29194 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29195 equality and assert mode is the same, instead of just rtx pointer
29196 equality.
29197 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29198 true as ALL_REGS argument to replace_rtx.
29199
29200 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29201
29202 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29203 for boolean vector with vector mode only.
29204 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29205
29206 2016-03-17 Nick Clifton <nickc@redhat.com>
29207
29208 PR target/70162
29209 * config/rx/rx.c (rx_print_integer): Print negative constants in
29210 decimal.
29211
29212 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29213
29214 PR target/70261
29215 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29216
29217 2016-03-16 Richard Henderson <rth@redhat.com>
29218 Richard Biener <rguenth@suse.de>
29219
29220 PR middle-end/70240
29221 PR middle-end/68215
29222 PR tree-opt/68714
29223 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29224 first operand as is_gimple_condexpr.
29225
29226 PR middle-end/70240
29227 PR middle-end/68215
29228 Revert r231575
29229 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29230 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29231 Do not gimplify the result.
29232 (do_unop): Adjust call to tree_vec_extract.
29233 (do_binop): Likewise.
29234 (do_compare): Likewise.
29235 (do_plus_minus): Likewise.
29236 (do_negate): Likewise.
29237 (expand_vector_condition): Likewise.
29238 (do_cond): Likewise.
29239
29240 2016-03-16 Richard Henderson <rth@redhat.com>
29241
29242 PR target/70048
29243 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29244 (aarch64_classify_address): Use it.
29245 (aarch64_legitimize_address): Force all subexpressions of PLUS
29246 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29247
29248 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29249 Richard Biener <rguenth@suse.de>
29250
29251 PR target/70245
29252 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29253 return to even if only REGNO is equal, and assert
29254 mode is the same.
29255
29256 2016-03-11 Jeff Law <law@redhat.com>
29257
29258 PR rtl-optimization/70224
29259 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29260
29261 2016-03-16 Richard Henderson <rth@redhat.com>
29262
29263 PR middle-end/70199
29264 * function.h (struct function): Add has_forced_label_in_static.
29265 * gimplify.c (force_labels_r): Set it.
29266 * lto-streamer-in.c (input_struct_function_base): Read it.
29267 * lto-streamer-out.c (output_struct_function_base): Write it.
29268 * tree-inline.c (has_label_address_in_static_1): Remove.
29269 (copy_forbidden): Remove fndecl parameter; test
29270 has_forced_label_in_static.
29271 (inline_forbidden_p): Update call to copy_forbidden.
29272 (tree_versionable_function_p): Likewise.
29273 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29274 (chkp_versioning): Likewise.
29275 * tree-inline.h (copy_forbidden): Update decl.
29276
29277 2016-03-16 Marek Polacek <polacek@redhat.com>
29278
29279 PR c/70093
29280 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29281 function being thunked if the result type doesn't have fixed size.
29282 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29283 doesn't have fixed size.
29284
29285 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29286
29287 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29288 reporting malformed loop nest.
29289
29290 2016-03-16 Tom de Vries <tom@codesourcery.com>
29291
29292 PR lto/70187
29293 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29294 nodes.length () == 1 test to before first nodes[0] access.
29295
29296 2016-03-16 Tom de Vries <tom@codesourcery.com>
29297
29298 PR tree-optimization/68715
29299 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29300 single_pred_p test.
29301
29302 2016-03-16 Tom de Vries <tom@codesourcery.com>
29303
29304 PR tree-optimization/68809
29305 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29306 are the same.
29307
29308 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29309 Sandra Loosemore <sandra@codesourcery.com>
29310
29311 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29312 on leaf attribute. Mention ELF interposition problems.
29313
29314 2016-03-16 Alan Modra <amodra@gmail.com>
29315
29316 PR rtl-optimization/69195
29317 PR rtl-optimization/47992
29318 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29319 Add comments.
29320
29321 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29322
29323 PR bootstrap/69513
29324 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29325
29326 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29327
29328 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29329
29330 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29331
29332 PR rtl-optimization/70222
29333 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29334 optimization if mode is different from result_mode, queue up masking
29335 of the result in outer_op. Formatting fix.
29336
29337 PR middle-end/70239
29338 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29339 of safe_grow.
29340
29341 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29342
29343 PR rtl-optimization/69032
29344 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29345 looping backwards over basic block insns.
29346
29347 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29348
29349 PR target/66660
29350 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29351 to non-speculative when propagating trap bits.
29352
29353 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29354
29355 PR rtl-optimization/63384
29356 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29357 DEBUG_INSN_P insns.
29358
29359 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29360
29361 PR target/64411
29362 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29363 factored out from ...
29364 (sched_analyze_insn): ... here.
29365 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29366 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29367 get_implicit_reg_pending_clobbers in it.
29368 (setup_id_reg_sets): Use setup_id_implicit_regs.
29369 (deps_init_id): Ditto.
29370
29371 2016-03-15 Tom de Vries <tom@codesourcery.com>
29372
29373 PR ipa/70161
29374 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29375 dump_file_name.
29376 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29377 execute_function_dump.
29378 (execute_one_pass): Don't dump function if it will be dumped after ipa
29379 transform.
29380
29381 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29382
29383 * genrecog.c (match_pattern_2): If pred is NULL don't call
29384 safe_predicate_mode on it.
29385
29386 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29387
29388 PR middle-end/70219
29389 * lra-constraints.c (delete_move_and_clobber): Change assertion
29390 to also allow dregno == 0.
29391
29392 2016-03-14 Richard Henderson <rth@redhat.com>
29393
29394 PR tree-opt/68714
29395 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29396 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29397 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29398 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29399 on vectors.
29400
29401 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29402
29403 PR target/70083
29404 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29405 regs.
29406 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29407 VOIDmode.
29408 * lra-constraints.c (split_reg): For hard regs, try to find the
29409 biggest single-register mode used in the function.
29410
29411 2016-03-14 Richard Biener <rguenther@suse.de>
29412
29413 PR tree-optimization/56365
29414 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29415 constants to compare against.
29416
29417 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29418
29419 PR target/70098
29420 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29421 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29422 (define_split for the GPR case): Use int_reg_operand instead of
29423 gpc_reg_operand for the output.
29424
29425 2016-03-14 Tom de Vries <tom@codesourcery.com>
29426
29427 PR tree-optimization/70045
29428 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29429 create_empty_if_region_on_edge argument.
29430
29431 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29432
29433 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29434 (STACK_CHECK_PROTECT): Likewise.
29435 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29436 (STACK_CHECK_PROTECT): Likewise.
29437 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29438 (STACK_CHECK_PROTECT): Likewise.
29439 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29440 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29441 (STACK_CHECK_PROTECT): Likewise.
29442
29443 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29444
29445 PR rtl-optimization/69307
29446 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29447 registers in modes that span more than one register.
29448
29449 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29450
29451 PR target/69614
29452 * lra-constraints.c (delete_move_and_clobber): New.
29453 (remove_inheritance_pseudos): Use it.
29454
29455 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29456
29457 PR ada/70017
29458 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29459 the libcall is LCT_THROW.
29460 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29461 for the checking routine.
29462
29463 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29464
29465 PR target/70131
29466 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29467 optimization if we have direct move.
29468 (roundu32<mode>2_fprs): Likewise.
29469
29470 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29471
29472 PR target/70123
29473 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29474 be rematerialized.
29475 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29476 Arguments swapped. All callers changed. Take reg_renumber into
29477 account, and Calculate and compare register ranges for hard regs.
29478
29479 2016-03-11 Jeff Law <law@redhat.com>
29480
29481 PR tree-optimization/70190
29482 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29483 Handle cases where we can not extract the taken edge, even though we
29484 found a constant value.
29485
29486 PR tree-optimization/64058
29487 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29488 (num_coalesce_pairs): Move up earlier in file.
29489 (find_coalesce_pair): Initialize the INDEX field for each pair
29490 discovered.
29491 (compare_pairs): No longer sort on the elements in each pair.
29492 Instead break ties with the index of the coalesce pair.
29493
29494 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29495
29496 PR target/70002
29497 * config/aarch64/aarch64-protos.h
29498 (aarch64_save_restore_target_globals): New prototype.
29499 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29500 Call the above when popping pragma.
29501 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29502 New function.
29503 (aarch64_set_current_function): Rewrite using the above.
29504
29505 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29506
29507 PR tree-optimization/70177
29508 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29509 (extract_ops_from_tree): ... this. In the 2 argument
29510 overload remove _1 suffix.
29511 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29512 (extract_ops_from_tree): ... this.
29513 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29514 Adjust callers.
29515 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29516 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29517 extract_ops_from_tree instead of 2 operand one.
29518
29519 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29520
29521 PR tree-optimization/70013
29522 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29523 for constant-pool entries.
29524
29525 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29526
29527 PR rtl-optimization/70174
29528 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29529 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29530
29531 PR tree-optimization/70169
29532 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29533 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29534 for unknown codes.
29535
29536 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29537 Jakub Jelinek <jakub@redhat.com>
29538
29539 PR target/70160
29540 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29541 of uninitialized values.
29542
29543 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29544
29545 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29546 define_expand.
29547 ("*trunctddd2"): New pattern definition.
29548 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29549 TD->DD truncation.
29550
29551 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29552
29553 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29554 definitions for BFP and DFP rounding modes.
29555 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29556 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29557 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29558 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29559 numbers.
29560
29561 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29562
29563 * config/s390/constraints.md: Adjust comment.
29564 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29565 s390_decompose_addrstyle_without_index.
29566 * config/s390/predicates.md (shift_count_or_setmem_operand):
29567 Rename to setmem_operand.
29568 * config/s390/s390-protos.h
29569 (s390_decompose_shift_count): Rename to
29570 s390_decompose_addrstyle_without_index.
29571 * config/s390/s390.c (s390_decompose_shift_count)
29572 (s390_mem_constraint, print_shift_count_operand)
29573 (print_operand_address, print_operand): Rename
29574 s390_decompose_shift_count to
29575 s390_decompose_addrstyle_without_index and rename
29576 print_shift_count_operand to print_addrstyle_operand troughout the
29577 file.
29578 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29579 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29580 Rename shift_count_or_setmem_operand to setmem_operand.
29581 * config/s390/vx-builtins.md ("vec_insert<mode>")
29582 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29583 nonmemory_operand.
29584
29585 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29586
29587 PR target/70168
29588 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29589 Handle overlapping retval and newval.
29590
29591 2016-03-10 Nick Clifton <nickc@redhat.com>
29592
29593 PR target/7044
29594 * config/aarch64/aarch64.c
29595 (aarch64_override_options_after_change_1): When forcing
29596 flag_omit_frame_pointer to be true, use a special value that can
29597 be detected if this function is called again, thus preventing
29598 flag_omit_leaf_frame_pointer from being forced to be false.
29599
29600 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29601
29602 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29603 Set x_flag_omit_leaf_frame_pointer when handling
29604 -momit-leaf-frame-pointer.
29605
29606 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29607
29608 PR lto/69589
29609 * cgraph.c (cgraph_node::dump): Dump split_part and
29610 indirect_call_target.
29611 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29612 * ipa.c (has_addr_references_p): Cleanup.
29613 (is_indirect_call_target_p): New.
29614 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29615 called indirectly as local.
29616 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29617
29618 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29619
29620 PR ipa/69630
29621 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29622 on cxa_pure_virtual.
29623
29624 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29625
29626 PR lto/69589
29627 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29628
29629 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29630
29631 PR lto/69589
29632 * tree.c (need_assembler_name_p): Only record main variant type names.
29633
29634 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29635
29636 PR target/70113.
29637 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29638 Always define to 0 or 1.
29639 (TARGET_FIX_ERR_A53_843419): New macro.
29640 * config/aarch64/aarch64-elf-raw.h
29641 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29642 * config/aarch64/aarch64-linux.h: Likewise.
29643 * config/aarch64/aarch64.c
29644 (aarch64_override_options_after_change_1): Do not default
29645 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29646 843419 is on.
29647 (aarch64_attributes): Handle fix-cortex-a53-843419.
29648 (aarch64_can_inline_p): Likewise.
29649 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29650
29651 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29652 Jakub Jelinek <jakub@redhat.com>
29653
29654 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29655 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29656 DECL_COMMONS if flag_unconstrained_commons is set.
29657 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29658 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29659 (funconstrained-commons): Document.
29660
29661 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29662
29663 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29664 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29665
29666 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29667
29668 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29669 has a proper number of elements.
29670
29671 2016-03-10 Alan Modra <amodra@gmail.com>
29672
29673 PR rtl-optimization/69195
29674 PR rtl-optimization/47992
29675 * ira.c (recorded_label_ref): Delete.
29676 (update_equiv_regs): Return void.
29677 (indirect_jump_optimize): New function.
29678 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29679 before regstat_compute_ri. Don't rebuild_jump_labels here.
29680 Delete update_regstat.
29681
29682 2016-03-10 Richard Biener <rguenther@suse.de>
29683
29684 PR tree-optimization/70128
29685 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29686 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29687
29688 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29689
29690 PR tree-optimization/70152
29691 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29692 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29693
29694 PR target/70086
29695 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29696 instead of gen_sse2_loadlpd.
29697 * config/i386/sse.md (*vec_concatv2df): Rename to...
29698 (vec_concatv2df): ... this.
29699
29700 PR tree-optimization/70127
29701 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29702
29703 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29704
29705 PR c/68473
29706 PR c++/70105
29707 * diagnostic-show-locus.c (compatible_locations_p): New function.
29708 (layout::layout): Sanitize ranges using compatible_locations_p.
29709
29710 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29711
29712 PR c/68473
29713 PR c++/70105
29714 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29715 location_range param with three const expanded_locations * and a
29716 bool.
29717 (layout::layout): Replace call to
29718 rich_location::lazily_expand_location with get_expanded_location.
29719 Extract the range and perform location expansion here, passing
29720 the results to the layout_range ctor.
29721 * diagnostic.c (source_range::debug): Delete.
29722 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29723 of rich_location::get_expanded_location.
29724 * gcc-rich-location.c (get_range_for_expr): Delete.
29725 (gcc_rich_location::add_expr): Reimplement to avoid the
29726 rich_location::add_range overload that took a location_range,
29727 passing a location_t instead.
29728
29729 2016-03-09 Richard Biener <rguenther@suse.de>
29730 Jakub Jelinek <jakub@redhat.com>
29731
29732 PR tree-optimization/70138
29733 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29734 Also skip vect_double_reduction_def.
29735
29736 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29737
29738 PR target/70049
29739 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29740 if the operand is "m".
29741
29742 2016-03-09 Nathan Sidwell <nathan@acm.org>
29743
29744 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29745
29746 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29747
29748 * config/i386/i386.c (processor_target_table): Fix cost table
29749 intialization order for znver1.
29750
29751 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29752
29753 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29754 - becuase -> because.
29755 * ipa-reference.c (ignore_module_statics): Likewise.
29756 * cgraph.c (cgraph_node::get_body): Likewise.
29757 * ipa-inline.c (early_inliner): Likewise.
29758 * ipa-devirt.c (types_same_for_odr): Likewise.
29759 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29760 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29761
29762 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29763
29764 * tree-ssa-math-opts.c: Fix typo in comment.
29765
29766 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29767
29768 PR target/70110
29769 * config/i386/i386.c (scalar_chain::make_vector_copies,
29770 scalar_chain::convert_reg): Call end_sequence in between
29771 get_insns and emit_conversion_insns rather than after both
29772 calls.
29773
29774 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29775
29776 PR target/70064
29777 * config/i386/i386.h (machine_function): Add
29778 pc_thunk_call_expanded flag.
29779 (ix86_pc_thunk_call_expanded): New define.
29780 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29781 (*set_got): Rename insn pattern from set_got.
29782 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29783 * config/i386/i386.c (ix86_compute_frame_layout): Use
29784 ix86_pc_thunk_call_expanded to prevent red-zone.
29785
29786 2016-03-07 Martin Jambor <mjambor@suse.cz>
29787
29788 * hsa.h (hsa_get_ctor_statements): Declare.
29789 (hsa_get_dtor_statements): Likewise.
29790 (hsa_get_kernel_dispatch_type): Likewise.
29791 * hsa.c (hsa_get_ctor_statements): New function.
29792 (hsa_get_dtor_statements): Likewise.
29793 (hsa_get_kernel_dispatch_type): Likewise.
29794 * hsa-brig.c (hsa_cdtor_statements): Removed.
29795 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29796 hsa_get_dtor_statements.
29797 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29798 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29799
29800 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29801
29802 * config/arm/arm-cores.def (cortex-r8): New.
29803 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29804 * config/arm/arm-tune.md: Likewise.
29805 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29806
29807 2016-03-07 Martin Sebor <msebor@redhat.com>
29808
29809 PR rtl-optimization/19705
29810 * doc/invoke.texi (Options That Control Optimization): Clarify
29811 -fno-branch-count-reg.
29812
29813 2016-02-26 Richard Biener <rguenther@suse.de>
29814 Jeff Law <law@redhat.com>
29815
29816 PR tree-optimization/69740
29817 * cfghooks.c (remove_edge): Request loop fixups if we delete
29818 an edge that might turn an irreducible loop into a natural
29819 loop.
29820 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29821 Move after definition of loops_state_clear.
29822
29823 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29824
29825 PR rtl-optimization/69052
29826 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29827 to CONST_WIDE_INT.
29828
29829 2016-03-07 Tom de Vries <tom@codesourcery.com>
29830
29831 PR tree-optimization/70116
29832 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29833 is_tm_ending stmts and ubsan/asan internal functions.
29834 (find_duplicate): Use it. Don't test is_tm_ending here.
29835
29836 2016-03-07 Richard Biener <rguenther@suse.de>
29837
29838 PR tree-optimization/70115
29839 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29840 (propagate_constants_for_unrolling): Use replace_uses_by.
29841
29842 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29843
29844 PR middle-end/69916
29845 * omp-low.c (struct oacc_loop): Add ifns.
29846 (new_oacc_loop_raw): Initialize it.
29847 (finish_oacc_loop): Clear mask & flags if no ifns.
29848 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29849 (oacc_loop_xform_loop): Add ifns arg & adjust.
29850 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29851
29852 2016-03-07 Richard Henderson <rth@redhat.com>
29853
29854 PR rtl-opt/70061
29855 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29856 (insert_value_copy_on_edge): Likewise.
29857
29858 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29859
29860 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29861
29862 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29863
29864 PR target/62281
29865 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29866
29867 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29868
29869 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29870
29871 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29872
29873 Fix sseimul type attribute.
29874 * config/i386/znver1.md
29875 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29876 znver1_sseimul_avx256_load) : Fix the type attribute.
29877 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29878 pipe usage and latency.
29879
29880 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29881
29882 PR c++/70084
29883 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29884 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29885 to the right type.
29886
29887 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29888
29889 PR c/69973
29890 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29891
29892 PR rtl-optimization/69941
29893 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29894 the reg share its mode.
29895
29896 2016-03-04 Jeff Law <law@redhat.com>
29897
29898 PR tree-optimization/69196
29899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29900 If the both SSA_NAMEs are anonymous, then consider them unassociated
29901 and include the PHI in the statement count.
29902
29903 2016-03-05 Tom de Vries <tom@codesourcery.com>
29904
29905 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29906 construct in oacc routine. Check for oacc region in oacc routine.
29907
29908 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29909
29910 PR target/70062
29911 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29912 2016-02-22 changes, instead don't recurse if RECUR is already true.
29913 Don't change *dynamic_check if RECUR. Adjust recursive caller
29914 to pass true to the new argument.
29915 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29916
29917 PR target/70059
29918 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29919 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29920 fixes.
29921 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29922
29923 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29924
29925 PR rtl-optimization/57676
29926 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29927 with flag_checking.
29928
29929 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29930
29931 * tree-vect-patterns.c (search_type_for_mask): Handle
29932 comparison of booleans.
29933
29934 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29935
29936 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29937 Fix @xref usage.
29938
29939 PR debug/69947
29940 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29941 all other ops that have dw_val_class_die_ref operands,
29942 and DW_OP_GNU_entry_value.
29943
29944 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29945
29946 PR rtl-optimization/69904
29947 * config/arm/arm.c (arm_cannot_copy_insn_p):
29948 Return true for load-exclusive instructions.
29949
29950 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29951
29952 PR target/70021
29953 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29954 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29955 the pattern no matter if it is used just by non-pattern, pattern
29956 or mix thereof.
29957 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29958 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29959 oprnd1 def_stmt is in pattern, don't look through it.
29960
29961 2016-03-03 Marek Polacek <polacek@redhat.com>
29962
29963 PR middle-end/70050
29964 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29965
29966 2016-03-03 Martin Liska <mliska@suse.cz>
29967
29968 PR tree-optimization/70043
29969 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29970 previous statement if we see a debug statement.
29971
29972 2016-03-03 Richard Biener <rguenther@suse.de>
29973
29974 PR tree-optimization/55936
29975 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29976 parameter and guard unsafe equivalence use.
29977 (vrp_evaluate_conditional_warnv_with_ops): Always use
29978 safe equivalences but not via the quadratic compare_names
29979 helper.
29980
29981 2016-03-03 Michael Collison <michael.collison@linaro.org>
29982
29983 PR target/70014
29984 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29985 for operand 1 to s_register_operand. Change predicate for operand
29986 2 to arm_not_immediate_operand.
29987
29988 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29989
29990 * doc/tm.texi: Regenerated.
29991
29992 2016-03-02 Richard Henderson <rth@redhat.com>
29993
29994 PR rtl-opt/67145
29995 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29996 simplification when all args are positive non-fixed registers.
29997
29998 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29999
30000 * target.def (lra_p): Specify that new ports should use LRA.
30001
30002 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30003
30004 PR libgomp/69555
30005 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30006 gimplify_type_sizes the type they refer to.
30007 (omp_notice_variable): Handle reference vars to VLAs.
30008 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30009 reference to VLA decls in the second pass instead of first pass.
30010
30011 2016-03-02 Tom de Vries <tom@codesourcery.com>
30012
30013 PR tree-optimization/68659
30014 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30015 new_expr == NULL_TREE.
30016 (get_new_name): Handle ADDR_EXPR.
30017
30018 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30019
30020 PR rtl-optimization/69052
30021 * loop-invariant.c (canonicalize_address): New function.
30022 (inv_can_prop_to_addr_use): Check validity of address expression
30023 which is canonicalized by above function.
30024
30025 2016-03-02 Alan Modra <amodra@gmail.com>
30026
30027 PR ipa/69990
30028 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30029 larger alignment.
30030
30031 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30032
30033 PR target/70028
30034 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30035 (*movhi_internal): Put mask moves from and to memory separately
30036 from moves from/to GPRs.
30037
30038 2016-03-02 Richard Biener <rguenther@suse.de>
30039
30040 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30041 GENERIC expressions in GIMPLE.
30042
30043 2016-03-02 Richard Biener <rguenther@suse.de>
30044
30045 * config/i386/i386.c (type_natural_mode): Fix typo.
30046
30047 2016-03-02 Nick Clifton <nickc@redhat.com>
30048
30049 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30050
30051 2016-03-02 Richard Biener <rguenther@suse.de>
30052 Uros Bizjak <ubizjak@gmail.com>
30053
30054 PR target/67278
30055 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30056
30057 2016-03-02 Richard Biener <rguenther@suse.de>
30058
30059 PR middle-end/67278
30060 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30061
30062 2016-03-02 Marek Polacek <polacek@redhat.com>
30063
30064 PR c/67854
30065 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30066 "is promoted to" warning.
30067
30068 2016-03-01 DJ Delorie <dj@redhat.com>
30069
30070 * config.gcc: Deprecate mep-*.
30071
30072 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30073
30074 PR middle-end/70025
30075 * lra-constraints.c (regno_val_use_in): New.
30076 (match_reload): Use it instead of regno_use_in.
30077
30078 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30079
30080 PR rtl-optimization/70007
30081 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30082 references present in REG_EQUAL notes attached to non-SET patterns.
30083
30084 2016-03-01 Jeff Law <law@redhat.com>
30085
30086 PR tree-optimization/69196
30087 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30088 Appropriately clamp the number of statements to copy when the
30089 thread path does not traverse a loop backedge.
30090
30091 PR tree-optimization/69196
30092 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30093 Do count some PHIs in the thread path against the insn count. Decrease
30094 final statement count by one as the control statement in the last
30095 block will get removed. Remove special cased code for handling PHIs
30096 in the last block.
30097
30098 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30099
30100 PR target/70027
30101 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30102 asm dialect alternatives to explicit GOTPCREL calls.
30103
30104 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30105
30106 PR ada/70017
30107 * ira.c (do_reload): Issue warning for generic stack checking here...
30108 * reload1.c (reload): ...instead of here and streamline it.
30109
30110 2016-03-01 Nick Clifton <nickc@redhat.com>
30111
30112 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30113
30114 2016-03-01 Richard Biener <rguenther@suse.de>
30115
30116 PR tree-optimization/69983
30117 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30118 types and fall back to operand_equal_p.
30119
30120 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30121
30122 Revert
30123 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30124
30125 * config/s390/constraints.md ("jm8"): New constraint.
30126 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30127 predicate.
30128 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30129 into ...
30130 ("*setmem_long<setmem_and>"): New pattern.
30131 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30132 into ...
30133 ("*setmem_long_31z<setmem_and>"): New pattern.
30134 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30135 New substitution rules with the required attributes.
30136
30137
30138 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30139
30140 Revert
30141 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30142
30143 * gensupport.c (process_substs_on_one_elem): Split loop to
30144 complete mark_operands_used_in_match_dup on all expressions in the
30145 vector first.
30146 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30147 and remove function.
30148
30149 2016-03-01 Richard Biener <rguenther@suse.de>
30150
30151 PR middle-end/70022
30152 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30153 vector BIT_FIELD_REF extract.
30154
30155 2016-03-01 Richard Biener <rguenther@suse.de>
30156
30157 PR tree-optimization/69994
30158 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30159
30160 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30161
30162 PR tree-optimization/69956
30163 * tree-vect-stmts.c (supportable_widening_operation): Support
30164 multi-step conversion of boolean vectors.
30165 (supportable_narrowing_operation): Likewise.
30166
30167 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30168
30169 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30170 anymore.
30171
30172 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30173
30174 * config/s390/subst.md (DSI_VI): New mode iterator.
30175 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30176 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30177 the insn definition.
30178 ("*vec_set<mode>"): Change predicate and add alternative to
30179 support only either register or const_int operands as element
30180 selector.
30181 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30182 operands.
30183 ("vec_extract<mode>"): New expander.
30184 ("*vec_extract<mode>"): New insn definition supporting reg and
30185 const_int element selectors.
30186 ("*vec_extract<mode>_plus"): New insn definition supporting
30187 reg+const_int element selectors.
30188 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30189 following expander+insn definition.
30190 ("<vec_shifts_name><mode>3"): New expander.
30191 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30192
30193 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30194
30195 * config/s390/s390.md ("*tabort_1"): Change predicate to
30196 nonmemory_operand. Add a second alternative to cover
30197 register as well as const int operands.
30198 ("*tabort_1_plus"): New pattern definition.
30199
30200 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30201
30202 * config/s390/s390.md ("*ashrdi3_cc_31")
30203 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30204 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30205 Merge insn definitions into ...
30206 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30207 New pattern definition.
30208 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30209 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30210 ("*ashr<mode>3_and"): Merge insn definitions into ...
30211 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30212 New pattern definition.
30213 * config/s390/subst.md ("addr_style_op_cc_subst")
30214 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30215 substitutions patterns plus attributes.
30216 Add ashiftrt to SUBST iterator.
30217
30218 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30219
30220 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30221 op2 to nonmemory_operand.
30222 ("*<shift>di3_31", "*<shift>di3_31_and"):
30223 Merge into single pattern definition ...
30224 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30225 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30226 pattern definition ...
30227 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30228 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30229 iterator.
30230
30231 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30232
30233 * config/s390/predicates.md (const_int_6bitset_operand): New
30234 predicate.
30235 * config/s390/s390.md: Include subst.md.
30236 ("rotl<mode>3"): New expander.
30237 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30238 ...
30239 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30240 * config/s390/subst.md: New file.
30241
30242 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30243
30244 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30245 Remove RRR type. It doesn't really exist.
30246 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30247 attributes.
30248 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30249 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30250 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30251 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30252 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30253 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30254 `enabled' attribute.
30255
30256 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30257
30258 * gensupport.c (process_substs_on_one_elem): Split loop to
30259 complete mark_operands_used_in_match_dup on all expressions in the
30260 vector first.
30261 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30262 and remove function.
30263
30264 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30265
30266 PR target/69706
30267 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30268 (CEIL_NWORDS): ...this. Use CEIL macro.
30269 (compute_fp_layout): Adjust to above renaming.
30270 (function_arg_union_value): Likewise.
30271 (sparc_arg_partial_bytes): Likewise.
30272 (sparc_function_arg_advance): Likewise.
30273
30274 2016-02-29 Jeff Law <law@redhat.com>
30275
30276 PR tree-optimization/70005
30277 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30278 where an object with a boolean range is compared against a value
30279 outside [0..1].
30280
30281 PR tree-optimization/69999
30282 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30283 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30284 loop cleanups.
30285
30286 2016-02-29 Richard Biener <rguenther@suse.de>
30287
30288 PR tree-optimization/69994
30289 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30290 (get_unary_op): Look through nop conversions.
30291 (ops_equal_values_p): New function, look for equality diregarding
30292 nop conversions.
30293 (eliminate_plus_minus_pair): Use ops_equal_values_p
30294 (repropagate_negates): Do not use get_unary_op here.
30295
30296 2016-02-29 Martin Liska <mliska@suse.cz>
30297
30298 * system.h: Poison ENABLE_CHECKING macro.
30299
30300 2016-02-29 Martin Liska <mliska@suse.cz>
30301
30302 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30303 is presented in dump flags.
30304 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30305 (hsa_regalloc): Likewise.
30306
30307 2016-02-19 Richard Biener <rguenther@suse.de>
30308
30309 PR tree-optimization/69980
30310 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30311 permutation of those we need to keep.
30312
30313 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30314
30315 PR target/69706
30316 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30317 (NWORDS_UP): ...this
30318 (init_cumulative_args): Minor tweaks.
30319 (sparc_promote_function_mode): Likewise.
30320 (scan_record_type): Delete.
30321 (traverse_record_type): New function template.
30322 (classify_data_t): New structure type.
30323 (classify_registers): New inline function.
30324 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30325 exhausted. Instantiate traverse_record_type on classify_registers and
30326 deal with the case of a structure passed in slot #15 with no FP field
30327 in the first word.
30328 (assign_data_t): New structure type.
30329 (compute_int_layout): New static function.
30330 (compute_fp_layout): Likewise.
30331 (count_registers): New inline function.
30332 (assign_int_registers): New static function.
30333 (assign_fp_registers): Likewise.
30334 (assign_registers): New inline function.
30335 (function_arg_record_value_1): Delete.
30336 (function_arg_record_value_2): Likewise.
30337 (function_arg_record_value_3): Likewise.
30338 (function_arg_record_value): Adjust to above changes. Instantiate
30339 traverse_record_type on count_registers to first count the number of
30340 registers to be used and then on assign_registers to assign them.
30341 (function_arg_union_value): Adjust to above renaming.
30342 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30343 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30344 case of a structure passed in slot #15
30345 (sparc_function_arg_advance): Likewise.
30346 (function_arg_padding): Minor tweak.
30347
30348 2016-02-29 Richard Biener <rguenther@suse.de>
30349
30350 PR tree-optimization/69720
30351 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30352 the adjustment_def path for possibly vectorized defs.
30353 (vect_create_epilog_for_reduction): Handle vectorized initial
30354 defs properly.
30355
30356 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30357
30358 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30359
30360 2016-02-27 Jeff Law <law@redhat.com>
30361
30362 Revert
30363 2016-02-26 Richard Biener <rguenther@suse.de>
30364 Jeff Law <law@redhat.com>
30365
30366 PR tree-optimization/69740
30367 * cfghooks.c (remove_edge): Request loop fixups if we delete
30368 an edge that might turn an irreducible loop into a natural
30369 loop.
30370
30371 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30372
30373 PR rtl-optimization/69896
30374 * tree-vect-generic.c (get_compute_type): Avoid single element
30375 vector types.
30376
30377 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30378
30379 Rename the AArch64 tuning option and related functions to enable the
30380 Newton series for the reciprocal square root to reflect its
30381 approximative characteristic.
30382
30383 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30384 function to "aarch64_emit_approx_rsqrt".
30385 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30386 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30387 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30388 (xgene1_tunings): Likewise.
30389 (use_rsqrt_p): Likewise.
30390 (aarch64_emit_swrsqrt): Use new function name.
30391 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30392 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30393 text explaining this option.
30394 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30395
30396 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30397
30398 PR target/69969
30399 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30400 complain about -mallow-movmisalign without -mvsx if
30401 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30402
30403 2016-02-26 Joel Sherrill <joel@rtems.org>
30404
30405 * config.gcc: Add x86_64-*-rtems*.
30406 * config/i386/rtems-64.h: New file.
30407
30408 2016-02-26 Joel Sherrill <joel@rtems.org>
30409
30410 * config.gcc: Add aarch64-*-rtems*.
30411 * config/aarch64/rtems.h: New file.
30412
30413 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30414
30415 PR target/69946
30416 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30417 shift amount using %h. Add comment.
30418
30419 2016-02-26 Richard Biener <rguenther@suse.de>
30420 Jeff Law <law@redhat.com>
30421
30422 PR tree-optimization/69740
30423 * cfghooks.c (remove_edge): Request loop fixups if we delete
30424 an edge that might turn an irreducible loop into a natural
30425 loop.
30426
30427 2016-02-26 Martin Jambor <mjambor@suse.cz>
30428
30429 PR middle-end/69920
30430 * tree-sra.c (sra_modify_assign): Do not remove loads of
30431 uninitialized aggregates to SSA_NAMEs.
30432
30433 2016-02-26 Richard Henderson <rth@redhat.com>
30434
30435 PR target/69709
30436 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30437 pseudo in case the target rtx matches the source of the left
30438 shift.
30439
30440 2016-02-26 Martin Jambor <mjambor@suse.cz>
30441
30442 PR hsa/69568
30443 * hsa.h (hsa_type_packed_p): Declare.
30444 * hsa.c (hsa_type_packed_p): New function.
30445 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30446 loads.
30447 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30448 * hsa-brig.c (emit_basic_insn): Likewise.
30449
30450 2016-02-26 Martin Jambor <mjambor@suse.cz>
30451
30452 pr hsa/69674
30453 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30454 pointers.
30455 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30456
30457 2016-02-26 Martin Jambor <mjambor@suse.cz>
30458
30459 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30460 hsa_op_with_type operands.
30461 (hsa_unsigned_type_for_type): Declare.
30462 * hsa.c (hsa_unsigned_type_for_type): New function.
30463 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30464 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30465 the finalizer. Do not emit extra move.
30466
30467 2016-02-26 Martin Jambor <mjambor@suse.cz>
30468
30469 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30470 atomic operations in private segment.
30471
30472 2016-02-26 Martin Jambor <mjambor@suse.cz>
30473
30474 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30475 statements to wi->info. Also disallow omp simd constructs.
30476 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30477 for not gridifying. Dump special string for omp_for.
30478
30479 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30480
30481 PR target/69245
30482 * config/aarch64/aarch64.c (aarch64_set_current_function):
30483 Save/restore target globals when switching to
30484 target_option_default_node.
30485
30486 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30487
30488 PR target/69613
30489 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30490 Return 0 if !SHIFT_COUNT_TRUNCATED.
30491
30492 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30493 Eric Botcazou <ebotcazou@adacore.com>
30494
30495 PR rtl-optimization/69891
30496 * dse.c (scan_insn): If we can't figure out memset arguments
30497 or they are non-constant, call clear_rhs_from_active_local_stores.
30498
30499 2016-02-26 Martin Liska <mliska@suse.cz>
30500
30501 * doc/extend.texi: Mention clog10, clog10f an clog10l
30502 in Builtins section.
30503
30504 2016-02-26 Martin Liska <mliska@suse.cz>
30505
30506 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30507 CHECKING_P.
30508 (resolve_args_picking_1): Likewise.
30509 * dwarf2out.h (struct GTY): Likewise.
30510
30511 2016-02-26 Martin Liska <mliska@suse.cz>
30512
30513 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30514 with flag_checking.
30515 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30516
30517 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30518 Martin Liska <mliska@suse.cz>
30519
30520 * doc/install.texi: Mention --enable-valgrind-annotations.
30521
30522 2016-02-26 Richard Biener <rguenther@suse.de>
30523
30524 PR tree-optimization/69551
30525 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30526 looking through aliases adjust DECL_PT_UID to refer to the
30527 ultimate alias target.
30528
30529 2016-02-25 Martin Liska <mliska@suse.cz>
30530
30531 PR middle-end/69919
30532 * alloc-pool.c (after_memory_report): New variable.
30533 * alloc-pool.h (base_pool_allocator ::release): Do not use
30534 the infrastructure if after_memory_report.
30535 * toplev.c (toplev::main): Mark after memory report.
30536
30537 2016-02-25 Richard Biener <rguenther@suse.de>
30538
30539 PR tree-optimization/48795
30540 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30541
30542 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30543
30544 PR driver/68463
30545 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30546 offloading is enabled and -fopenacc or -fopenmp is specified.
30547 (CRTOFFLOADEND): Likewise.
30548 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30549 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30550 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30551 (offload_objects_file_name): New static var.
30552 (tool_cleanup): Remove offload_objects_file_name file.
30553 (find_offloadbeginend): Replace with ...
30554 (find_crtoffloadtable): ... this.
30555 (run_gcc): Remove offload_argc and offload_argv.
30556 Get offload_objects_file_name from -foffload-objects=... option.
30557 Read names of object files with offload from this file, pass them to
30558 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30559 don't pass offloadbegin and offloadend to the linker. Don't pass
30560 offload non-LTO files to the linker, because now they're not claimed.
30561
30562 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30563
30564 PR ipa/69630
30565 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30566 on builtin_unreachable.
30567
30568 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30569
30570 PR rtl-optimization/69896
30571 * regcprop.c: Include cfgrtl.h.
30572 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30573 than remembered mode, either delete it (if noop_move_p), or
30574 treat like copy_p but not noop_p instruction.
30575
30576 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30577
30578 PR debug/69705
30579 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30580 - allow NULL decl for Fortran DW_TAG_common_block variables.
30581
30582 2016-02-24 Jason Merrill <jason@redhat.com>
30583
30584 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30585
30586 2016-02-24 Richard Biener <rguenther@suse.de>
30587 Jakub Jelinek <jakub@redhat.com>
30588
30589 PR middle-end/69760
30590 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30591 conditionally executed ops to well-defined overflow behavior.
30592
30593 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30594
30595 PR middle-end/69915
30596 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30597 elements.
30598
30599 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30600
30601 PR rtl-optimization/69886
30602 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30603 argument. Use it when checking validity of set instructions.
30604 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30605 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30606 callsite.
30607 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30608 * store-motion.c (find_moveable_store): Update
30609 can_assign_to_reg_without_clobbers_p callsite.
30610
30611 2016-02-24 Richard Biener <rguenther@suse.de>
30612
30613 PR middle-end/68963
30614 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30615 bogus check.
30616 (record_nonwrapping_iv): Do not fall back to the low/high bound
30617 for non-constant IV bases if the stmt is not always executed.
30618
30619 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30620
30621 * config/arm/arm-cores.def (cortex-a32): New entry.
30622 * config/arm/arm-tables.opt: Regenerate.
30623 * config/arm/arm-tune.md: Regenerate.
30624 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30625 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30626 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30627 for -mcpu and -mtune.
30628
30629 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30630
30631 PR target/69875
30632 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30633 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30634 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30635 (atomic_loaddi_1): Delete.
30636 (atomic_loaddi): Rewrite expander using the above changes.
30637
30638 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30639
30640 PR c/69918
30641 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30642 2 to 3.
30643
30644 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30645 Richard Biener <rguenth@suse.de>
30646
30647 PR middle-end/69909
30648 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30649 set_mem_attributes if tem is SSA_NAME which got expanded
30650 as a MEM.
30651
30652 2016-02-24 Richard Biener <rguenther@suse.de>
30653
30654 PR tree-optimization/69907
30655 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30656 end of permutations for BB vectorization.
30657
30658 2016-02-24 Christian Bruel <christian.bruel@st.com>
30659
30660 * config/arm/arm-c.c (arm_option_override): Initialize
30661 target_option_current_node.
30662 * config/arm/arm.c (arm_pragma_target_parse): Replace
30663 build_target_option_node call by target_option_current_node.
30664 Set target_option_current_node.
30665 Fix comments.
30666
30667 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30668
30669 PR target/69810
30670 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30671 define_insn_and_split to define_insn.
30672 (zero_extendqi<mode>2_dot2): Same.
30673 (extendqi<mode>2_dot): Same.
30674 (extendqi<mode>2_dot2): Same.
30675
30676 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30677
30678 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30679 and add bypass for AES{D,E} and AESMC pairs.
30680 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30681 and AESMC pairs.
30682
30683 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30684
30685 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30686 series for reciprocal square root in Exynos M1.
30687
30688 2016-02-23 Martin Sebor <msebor@redhat.com>
30689
30690 PR c/69759
30691 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30692 __builtin_alloca_with_align.
30693
30694 2016-02-23 Richard Henderson <rth@redhat.com>
30695
30696 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30697 (ix86_register_pragmas): Remove __seg_tls.
30698 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30699 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30700 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30701 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30702 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30703 * doc/extend.texi (__seg_tls): Remove item.
30704
30705 2016-02-23 Richard Biener <rguenther@suse.de>
30706
30707 * alloc-pool.h (struct allocation_object): Make id member
30708 conditional on CHECKING_P again.
30709 (get_instance): Adjust.
30710 (base_pool_allocator): Likewise.
30711
30712 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30713
30714 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30715 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30716 zero.
30717 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30718 flag_openacc.
30719 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30720
30721 2016-02-23 Richard Biener <rguenther@suse.de>
30722
30723 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30724 * bitmap.h (struct bitmap_usage): Likewise.
30725 (bitmap_move): Declare.
30726 * bitmap.c (register_overhead): Take size_t argument.
30727 (bitmap_move): New function.
30728 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30729 to properly account overhead.
30730 * tree.c (free_node): Use tree_size.
30731
30732 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30733
30734 PR c++/69902
30735 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30736 when inverting comparison.
30737
30738 PR c/69900
30739 * common.opt (Wunreachable-code): Add Warning flag.
30740
30741 2016-02-23 Mark Wielaard <mjw@redhat.com>
30742 Jakub Jelinek <jakub@redhat.com>
30743
30744 PR c/69911
30745 * cgraphunit.c (check_global_declaration): Check main_input_filename
30746 and DECL_SOURCE_FILE are not NULL.
30747
30748 2016-02-23 Martin Jambor <mjambor@suse.cz>
30749
30750 PR tree-optimization/69666
30751 * tree-sra.c (sra_modify_assign): Do not attempt to create
30752 default_def replacements for unscalarizable regions.
30753
30754 2016-02-20 Mark Wielaard <mjw@redhat.com>
30755
30756 PR c/28901
30757 * cgraphunit.c (check_global_declaration): Check level of
30758 warn_unused_const_variable and main_input_filename.
30759 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30760 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30761 (-Wunused-const-variable): Explain levels 1 and 2.
30762
30763 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30764
30765 PR target/69888
30766 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30767 identical arguments. Formatting and spelling fixes.
30768
30769 PR target/69885
30770 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30771 be specified.
30772
30773 PR target/69894
30774 PR target/69895
30775 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30776 and m68k-devices.def.
30777 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30778 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30779
30780 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30781
30782 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30783 and HImode registers.
30784
30785 2016-02-22 Richard Biener <rguenther@suse.de>
30786
30787 PR tree-optimization/69882
30788 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30789 preserve permutations present because of gaps.
30790 (vect_supported_load_permutation_p): Always continue checking
30791 permutations after vect_attempt_slp_rearrange_stmts.
30792
30793 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30794
30795 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30796 min_profitable_estimate, rather than min_profitable_iters.
30797
30798 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30799
30800 PR target/69885
30801 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30802 SImode for last match_operand.
30803
30804 2016-02-22 Martin Liska <mliska@suse.cz>
30805
30806 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30807 return bitsize - 1 as the return value.
30808
30809 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30810
30811 PR target/69806
30812 PR target/54089
30813 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30814 Handle negative shift counts.
30815 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30816 force_reg on the shift constant.
30817 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30818 (lshrsi3_d): Handle negative shift counts.
30819
30820 2016-02-22 Richard Biener <rguenther@suse.de>
30821 Tom de Vries <tom@codesourcery.com>
30822
30823 * graph.c: Include dumpfile.h.
30824 (print_graph_cfg): Split into three overloads.
30825 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30826
30827 2016-02-22 Tom de Vries <tom@codesourcery.com>
30828
30829 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30830 dump-fn.
30831
30832 2016-02-22 Richard Biener <rguenther@suse.de>
30833
30834 PR ipa/37448
30835 * ipa-inline-transform.c (inline_call): When not updating
30836 overall summaries adjust self size by the growth estimate.
30837 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30838 hash-set, do not update overall summaries here. Renamed from ...
30839 (inline_to_all_callers): ... this which is now wrapping the
30840 above and performing delayed overall summary update.
30841 (early_inline_small_functions): Delay updating of the overall
30842 summary.
30843
30844 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30845
30846 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30847 variable.
30848
30849 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30850
30851 PR driver/69805
30852 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30853 :%* in %:gt() argument.
30854 (greater_than_spec_func): Adjust for expecting only numbers,
30855 if there are more than two numbers, compare the last two.
30856
30857 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30858
30859 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30860 -Wnarrowing with -std.
30861
30862 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30863
30864 PR c++/69851
30865 * expr.c (store_field): Don't use bit-field path if exp is
30866 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30867 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30868 and the assignment can be performed by bitwise copy. Formatting
30869 fix.
30870
30871 PR middle-end/69838
30872 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30873 call copy_reg_eh_region_note_forward on before and/or after sequences
30874 and remove note from insn if it no longer can throw.
30875
30876 PR target/69820
30877 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30878 if TARGET_AVX512BW.
30879
30880 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30881
30882 * config/s390/vector.md: Add missing commutative operand markers
30883 to the patterns which qualify for one.
30884 * config/s390/vx-builtins.md: Likewise.
30885
30886 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30887
30888 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30889 types to mode iterators.
30890 (vec_double): ... and mode attribute.
30891 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30892
30893 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30894
30895 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30896 Change the predicate of op2 from nonimmediate to general and let
30897 reload fix it if necessary.
30898
30899 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30900
30901 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30902
30903 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30904
30905 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30906 mode.
30907
30908 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30909
30910 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30911 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30912 * config/s390/s390.md ("movstr<P:mode>"): Call
30913 s390_expand_vec_movstr.
30914
30915 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30916
30917 * config/s390/s390.md: Add missing output modifier for operand 1
30918 to print it as address properly.
30919
30920 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30921
30922 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30923 * config/s390/2964.md: New file.
30924 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30925 of insn grouping attributes depending on the CPU level.
30926 (s390_get_unit_mask): New function.
30927 (s390_sched_score): Remove the OOO from the scheduling macros.
30928 Add loop to calculate a score for the instruction mix.
30929 (s390_sched_reorder): Likewise plus improve debug output.
30930 (s390_sched_variable_issue): Rename macros as above. Calculate
30931 the unit distances after actually scheduling an insn. Improve
30932 debug output.
30933 (s390_sched_init): Clear last_scheduled_unit_distance array.
30934 * config/s390/s390.md: Include 2964.md.
30935
30936 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30937
30938 PR target/69671
30939 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30940 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30941 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30942 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30943 *avx512f_<code>v8div16qi2_mask_1): New insns.
30944
30945 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30946
30947 PR target/68404
30948 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30949 2016-02-09 change.
30950
30951 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30952 earlyclobber from target. Use wF constraint for fused memory
30953 address.
30954 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30955
30956 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30957 Martin Liska <mliska@suse.cz>
30958
30959 PR sanitizer/69863
30960 * cfgexpand.c (asan_sanitize_stack_p): New function.
30961 (partition_stack_vars): Use the function.
30962 (expand_stack_vars): Likewise.
30963 (defer_stack_allocation): Likewise.
30964 (expand_used_vars): Likewise.
30965
30966 2016-02-18 Richard Biener <rguenther@suse.de>
30967
30968 PR middle-end/69553
30969 * fold-const.c (operand_equal_p): Properly compare offsets for
30970 IMAGPART_EXPR and ARRAY_REF.
30971
30972 2016-02-18 Nick Clifton <nickc@redhat.com>
30973
30974 PR target/62254
30975 PR target/69610
30976 * config/arm/arm.c (arm_option_override_internal): Disable
30977 interworking if the target does not support thumb instructions.
30978 (arm_reload_in_hi): Handle the case where a register to register
30979 move needs reloading because there is no simple pattern to handle
30980 it.
30981 (arm_reload_out_hi): Likewise.
30982
30983 2016-02-18 Richard Biener <rguenther@suse.de>
30984
30985 PR middle-end/69854
30986 * match.pd: Don't use fold_binary or fold_unary for folding
30987 constants.
30988
30989 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30990
30991 PR c++/69850
30992 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30993 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30994 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30995 warn on gimple_no_warning_p statements.
30996
30997 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30998
30999 * doc/extend.texi (C++ Attributes): Correct description of
31000 warn_unused type attribute.
31001
31002 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31003
31004 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31005 correct instruction.
31006
31007 2016-02-17 Richard Biener <rguenther@suse.de>
31008
31009 PR rtl-optimization/69609
31010 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31011 (find_traces_1_round): When ending a trace update cached priority
31012 of successors.
31013 (bb_to_key): Use cached priority when available.
31014 (copy_bb): Initialize cached priority.
31015 (reorder_basic_blocks_software_trace_cache): Likewise.
31016
31017 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31018
31019 PR target/69161
31020 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31021 New predicate.
31022 (aarch64_comparison_operator): Break overly long line into two.
31023 (aarch64_comparison_operation): Likewise.
31024 * config/aarch64/aarch64.md (cstorecc4): Use
31025 aarch64_comparison_operator_mode instead of
31026 aarch64_comparison_operator.
31027 (cstore<mode>4): Likewise.
31028 (aarch64_cstore<mode>): Likewise.
31029 (*cstoresi_insn_uxtw): Likewise.
31030 (cstore<mode>_neg): Likewise.
31031 (*cstoresi_neg_uxtw): Likewise.
31032
31033 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31034
31035 PR target/69161
31036 * config/arm/predicates.md (arm_comparison_operator_mode):
31037 New predicate.
31038 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31039 instead of arm_comparison_operator.
31040 (*mov_negscc): Likewise.
31041 (*mov_notscc): Likewise.
31042 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31043 (*thumb2_mov_negscc): Likewise.
31044 (*thumb2_mov_negscc_strict_it): Likewise.
31045 (*thumb2_mov_notscc): Likewise.
31046 (*thumb2_mov_notscc_strict_it): Likewise.
31047
31048 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31049
31050 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31051 Add missing return.
31052
31053 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31054
31055 * config/visium/visium.c (machine_libfunc_index): New enum.
31056 (machine_libfuncs): New structure.
31057 (visium_libfuncs): New static variable.
31058 (TARGET_INIT_LIBFUNCS): Define to...
31059 (visium_init_libfuncs): ...this. New function.
31060 (expand_block_move_4): Use the appropriate libfunc.
31061 (expand_block_move_2): Likewise.
31062 (expand_block_move_1): Likewise.
31063 (expand_block_set_4): Likewise.
31064 (expand_block_set_2): Likewise.
31065 (expand_block_set_1): Likewise.
31066 (visium_trampoline_init): Likewise.
31067
31068 2016-02-17 Nick Clifton <nickc@redhat.com>
31069
31070 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31071 TI's devices.csv file as of March 2016.
31072
31073 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31074
31075 PR Target/48344
31076 * opts-global.c (handle_common_deferred_options): Introduce and
31077 initialize two global variables to remember command-line options
31078 specifying a stack-limiting register.
31079 * opts.h: Add extern declarations of the two new global variables.
31080 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31081 variable based on the values of the two new global variables.
31082
31083 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31084
31085 PR c/69835
31086 * common.opt (Wnonnull-compare): New warning.
31087 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31088 of arguments against NULL.
31089 (-Wnonnull-compare): Document.
31090 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31091 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31092 * passes.def (pass_warn_nonnull_compare): Add.
31093 * gimple-ssa-nonnull-compare.c: New file.
31094
31095 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31096
31097 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31098 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31099
31100 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31101
31102 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31103 reciprocal sqrt for -mlow-precision-recip-sqrt.
31104
31105 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31106 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31107
31108 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31109 always use lane loads to construct non-constant vectors.
31110
31111 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31112
31113 * config/aarch64/aarch64.md
31114 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31115 constraints for operand 3.
31116 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31117
31118 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31119 Richard Biener <rguenther@suse.de>
31120
31121 PR tree-optimization/69820
31122 * tree-vect-patterns.c (type_conversion_p): Return false if
31123 *orig_type is unsigned single precision or boolean.
31124 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31125 Formatting fix.
31126
31127 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31128
31129 PR rtl-optimization/69764
31130 PR rtl-optimization/69771
31131 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31132 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31133
31134 2016-02-16 Richard Biener <rguenther@suse.de>
31135
31136 PR tree-optimization/69776
31137 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31138 sets from caller.
31139 (indirect_refs_may_alias_p): Likewise.
31140 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31141 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31142 according to tbaa_p.
31143 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31144 (optimize_stmt): For redundant store discovery do not allow tbaa.
31145
31146 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31147
31148 PR tree-optimization/69714
31149 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31150 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31151
31152 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31153
31154 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31155 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31156 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31157 * config/arc/arc.c (arc_init): Check FPU options.
31158 (get_arc_condition_code): Handle new CC_FPU* modes.
31159 (arc_select_cc_mode): Likewise.
31160 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31161 register pair only. Allow access for ARCv2 accumulator.
31162 (gen_compare_reg): Whenever we have FPU support use FPU compare
31163 instructions.
31164 (arc_reorg): Don't generate brcc insns when FPU compare
31165 instructions are involved.
31166 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31167 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31168 floating point emulation.
31169 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31170 (REVERSE_CONDITION): Add new CC_FPU* modes.
31171 (TARGET_FP_SP_BASE): Define.
31172 (TARGET_FP_DP_BASE): Likewise.
31173 (TARGET_FP_SP_FUSED): Likewise.
31174 (TARGET_FP_DP_FUSED): Likewise.
31175 (TARGET_FP_SP_CONV): Likewise.
31176 (TARGET_FP_DP_CONV): Likewise.
31177 (TARGET_FP_SP_SQRT): Likewise.
31178 (TARGET_FP_DP_SQRT): Likewise.
31179 (TARGET_FP_DP_AX): Likewise.
31180 * config/arc/arc.md (ARCV2_ACC): New constant.
31181 (type): New fpu type attribute.
31182 (SDF): Conditional iterator.
31183 (cstore<mode>, cbranch<mode>): Change expand condition.
31184 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31185 handles FPU/FPX cases as well.
31186 * config/arc/arc.opt (mfpu): New option.
31187 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31188 Renamed.
31189 (adddf3, muldf3, subdf3): Removed.
31190 * config/arc/predicates.md (proper_comparison_operator): Recognize
31191 CC_FPU* modes.
31192 * config/arc/fpu.md: New file.
31193 * doc/invoke.texi (ARC Options): Document mfpu option.
31194
31195 2016-02-16 Richard Biener <rguenther@suse.de>
31196
31197 PR rtl-optimization/69291
31198 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31199 noce_operand_ok check.
31200
31201 2016-02-16 Tom de Vries <tom@codesourcery.com>
31202
31203 PR lto/67709
31204 * omp-low.c (simd_clone_create): Remove call to
31205 symtab->call_cgraph_insertion_hooks.
31206
31207 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31208
31209 PR tree-optimization/69802
31210 * tree-ssa-reassoc.c (update_range_test): If op is
31211 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31212 op == 1 test of precision 1 integral op, otherwise handle
31213 that case as op itself. Fix up formatting.
31214 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31215 up formatting.
31216
31217 2016-02-16 Richard Biener <rguenther@suse.de>
31218
31219 PR tree-optimization/69586
31220 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31221 types for conversion sources.
31222
31223 2016-02-16 Richard Biener <rguenther@suse.de>
31224
31225 PR middle-end/69801
31226 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31227 mask OEP_ADDRESS_OF.
31228
31229 2016-02-16 Alan Modra <amodra@gmail.com>
31230
31231 PR target/68973
31232 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31233 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31234 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31235 (p8_mtvsrwz): New.
31236 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31237 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31238 (p8_fmrgow_<mode>): Likewise.
31239 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31240 changes.
31241 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31242 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31243 to use movdi_internal64. Remove op0_di.
31244 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31245
31246 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31247
31248 Add support for the FCCMP insn types
31249
31250 * config/aarch64/aarch64.md (fccmp): Change insn type.
31251 (fccmpe): Likewise.
31252 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31253 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31254 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31255 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31256 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31257 * config/arm/types.md (fccmps): Add new insn type.
31258 (fccmpd): Likewise.
31259
31260 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31261
31262 * alias.c (get_alias_set): Fix a typo in comment.
31263
31264 2016-02-15 Richard Biener <rguenther@suse.de>
31265
31266 PR tree-optimization/69595
31267 * match.pd: Complete range test simplification to true.
31268
31269 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31270
31271 PR rtl-optimization/69648
31272 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31273 pic_offset_table_rtx.
31274
31275 PR rtl-optimization/69752
31276 * ira.c (update_equiv_regs): When looking for more than a single SET,
31277 also take other side effects into account.
31278
31279 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31280
31281 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31282 for z900+ CPUs in 31-bit mode.
31283
31284 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31285
31286 * common/config/s390/s390-common.c (s390_supports_split_stack):
31287 New function.
31288 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31289 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31290 * config/s390/s390.c (struct machine_function): New field
31291 split_stack_varargs_pointer.
31292 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31293 in s390_emit_prologue.
31294 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31295 vararg pointer.
31296 (morestack_ref): New global.
31297 (SPLIT_STACK_AVAILABLE): New macro.
31298 (s390_expand_split_stack_prologue): New function.
31299 (s390_live_on_entry): New function.
31300 (s390_va_start): Use split-stack vararg pointer if appropriate.
31301 (s390_asm_file_end): Emit the split-stack note sections.
31302 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31303 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31304 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31305 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31306 (split_stack_prologue): New expand.
31307 (split_stack_space_check): New expand.
31308 (split_stack_data): New insn.
31309 (split_stack_call): New expand.
31310 (split_stack_call_*): New insn.
31311 (split_stack_cond_call): New expand.
31312 (split_stack_cond_call_*): New insn.
31313
31314 2016-02-15 Richard Biener <rguenther@suse.de>
31315
31316 PR tree-optimization/69783
31317 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31318 Add trivially correct cases.
31319
31320 2016-02-15 Tom de Vries <tom@codesourcery.com>
31321
31322 PR lto/69655
31323 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31324 do_force_output.
31325 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31326
31327 2016-02-15 Richard Biener <rguenther@suse.de>
31328
31329 PR tree-optimization/69776
31330 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31331 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31332 indicate whether we can use TBAA to disambiguate against stores.
31333 Use alias-set zero if not.
31334 (visit_reference_op_store): Do not use TBAA when looking up
31335 redundant stores.
31336 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31337 (eliminate_dom_walker::before_dom_children): But not when looking
31338 up redundant stores.
31339
31340 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31341
31342 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31343
31344 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31345
31346 * config/i386/znver1.md
31347 (znver1_pop, znver1_pop_mem,
31348 znver1_load_imov_double_store,
31349 znver1_load_imov_direct_store,
31350 znver1_load_imov_direct_load,
31351 znver1_load_imov_double_load): Add new.
31352 (znver1_insn, znver1_insn_load): Add icmov type.
31353 (znver1_sseavx_fma,
31354 znver1_sseavx_fma_load,
31355 znver1_avx256_fma,
31356 znver1_avx256_fma_load): Fix pipe usage.
31357
31358 2016-02-14 Alan Modra <amodra@gmail.com>
31359
31360 PR target/68973
31361 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31362 with an invalid hard reg, reload just the reg not the entire
31363 pre/post-inc/dec address expression.
31364
31365 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31366
31367 PR target/67260
31368 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31369 fixed R1_REG scratch reg.
31370 (sibcall_value_pcrel_fdpic): Likewise.
31371
31372 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31373
31374 PR target/67636
31375 PR target/64345
31376 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31377
31378 2016-02-12 Walter Lee <walt@tilera.com>
31379
31380 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31381 * config/tilegx/t-tilegx: Likewise.
31382
31383 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31384
31385 PR other/69554
31386 * diagnostic-show-locus.c (struct line_span): New struct.
31387 (layout::get_first_line): Delete.
31388 (layout::get_last_line): Delete.
31389 (layout::get_num_line_spans): New member function.
31390 (layout::get_line_span): Likewise.
31391 (layout::print_heading_for_line_span_index_p): Likewise.
31392 (layout::get_expanded_location): Likewise.
31393 (layout::calculate_line_spans): Likewise.
31394 (layout::m_first_line): Delete.
31395 (layout::m_last_line): Delete.
31396 (layout::m_line_spans): New field.
31397 (layout::layout): Update comment. Replace m_first_line and
31398 m_last_line with m_line_spans, replacing their initialization
31399 with a call to calculate_line_spans.
31400 (diagnostic_show_locus): When printing source lines and
31401 annotations, rather than looping over a single span
31402 of lines, instead loop over each line_span within
31403 the layout, with an inner loop over the lines within them.
31404 Call the context's start_span callback when changing line spans.
31405 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31406 (diagnostic_build_prefix): Break out the building of the location
31407 part of the string into...
31408 (diagnostic_get_location_text): ...this new function, rewriting
31409 it from nested ternary expressions to a sequence of "if"
31410 statements.
31411 (default_diagnostic_start_span_fn): New function.
31412 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31413 (diagnostic_context::start_span): New field.
31414 (default_diagnostic_start_span_fn): New prototype.
31415
31416 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31417
31418 PR driver/69779
31419 * gcc.c (driver::finalize): Fix cleanup of "specs".
31420
31421 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31422
31423 PR driver/69265
31424 PR driver/69453
31425 * gcc.c (driver::driver): Initialize m_option_suggestions.
31426 (driver::~driver): Clean up m_option_suggestions.
31427 (suggest_option): Convert to...
31428 (driver::suggest_option): ...this, and split out into
31429 driver::build_option_suggestions and find_closest_string.
31430 (driver::build_option_suggestions): New function, from
31431 first half of suggest_option. Special-case
31432 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31433 the sanitizer_opts array. For options of enum types, add the
31434 various enum values to the candidate strings.
31435 (driver::handle_unrecognized_options): Remove "const".
31436 * gcc.h (driver::handle_unrecognized_options): Likewise.
31437 (driver::build_option_suggestions): New decl.
31438 (driver::suggest_option): New decl.
31439 (driver::m_option_suggestions): New field.
31440 * opts-common.c (add_misspelling_candidates): New function.
31441 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31442 and make non-static.
31443 * opts.h (sanitizer_opts): New array decl.
31444 (add_misspelling_candidates): New function decl.
31445 * spellcheck.c (find_closest_string): New function.
31446 * spellcheck.h (find_closest_string): New function decl.
31447
31448 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31449
31450 PR rtl-optimization/69764
31451 PR rtl-optimization/69771
31452 * optabs.c (expand_binop_directly): For shift_optab_p, force
31453 convert_modes with VOIDmode if xop1 has VOIDmode.
31454
31455 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31456
31457 PR target/69729
31458 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31459 to correctly determine instrumentation thunks.
31460
31461 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31462
31463 PR ipa/69241
31464 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31465 type by reference, force lhs on the call.
31466
31467 PR ipa/68672
31468 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31469 Compute retval and retbnd early in all cases if split_part_return_p
31470 and return_bb is not EXIT. Remove all clobber stmts and reset
31471 all debug stmts that refer to SSA_NAMEs defined in split part,
31472 except if it is retval, in that case replace the old retval with the
31473 lhs of the call to the split part.
31474
31475 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31476
31477 revert:
31478 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31479
31480 PR middle-end/66726
31481 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31482 whose result is used in PHI.
31483 (maybe_optimize_range_tests): Likewise.
31484 (final_range_test_p): Likweise.
31485
31486 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31487
31488 PR middle-end/66726
31489 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31490 whose result is used in PHI.
31491 (maybe_optimize_range_tests): Likewise.
31492 (final_range_test_p): Likweise.
31493
31494 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31495
31496 * cgraph.c: Spelling fixes - behaviour -> behavior and
31497 neighbour -> neighbor.
31498 * target.def: Likewise.
31499 * sel-sched.c: Likewise.
31500 * config/mips/mips.c: Likewise.
31501 * config/arc/arc.md: Likewise.
31502 * config/arm/cortex-a57.md: Likewise.
31503 * config/arm/arm.c: Likewise.
31504 * config/arm/neon.md: Likewise.
31505 * config/arm/arm-c.c: Likewise.
31506 * config/vms/vms-c.c: Likewise.
31507 * config/s390/s390.c: Likewise.
31508 * config/i386/znver1.md: Likewise.
31509 * config/i386/i386.c: Likewise.
31510 * config/ia64/hpux-unix2003.h: Likewise.
31511 * config/msp430/msp430.md: Likewise.
31512 * config/rx/rx.c: Likewise.
31513 * config/rx/rx.md: Likewise.
31514 * config/aarch64/aarch64-simd.md: Likewise.
31515 * config/aarch64/aarch64.c: Likewise.
31516 * config/nvptx/nvptx.c: Likewise.
31517 * config/bfin/bfin.c: Likewise.
31518 * config/cris/cris.opt: Likewise.
31519 * config/rs6000/rs6000.c: Likewise.
31520 * target.h: Likewise.
31521 * spellcheck.c: Likewise.
31522 * ira-build.c: Likewise.
31523 * tree-inline.c: Likewise.
31524 * builtins.c: Likewise.
31525 * lra-constraints.c: Likewise.
31526 * explow.c: Likewise.
31527 * hwint.h: Likewise.
31528 * targhooks.c: Likewise.
31529 * tree-vect-data-refs.c: Likewise.
31530 * expr.c: Likewise.
31531 * doc/tm.texi: Likewise.
31532 * doc/extend.texi: Likewise.
31533 * doc/install.texi: Likewise.
31534 * doc/md.texi: Likewise.
31535 * tree-ssa-tail-merge.c: Likewise.
31536 * sched-int.h: Likewise.
31537 * match.pd: Likewise.
31538 * sched-ebb.c: Likewise.
31539 * target.def (omit_struct_return_reg): Likewise.
31540 * gimple-ssa-isolate-paths.c: Likewise.
31541 (find_implicit_erroneous_behaviour): Renamed to...
31542 (find_implicit_erroneous_behavior): ... this.
31543 (find_explicit_erroneous_behaviour): Renamed to...
31544 (find_explicit_erroneous_behavior): ... this.
31545 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31546
31547 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31548
31549 PR rtl-optimization/64682
31550 PR rtl-optimization/69567
31551 PR rtl-optimization/69737
31552 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31553 in I2 as well, just lose it.
31554
31555 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31556
31557 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31558 New variable.
31559 (aarch64_last_printed_tune_string): Likewise.
31560 (aarch64_declare_function_name): Only output .arch assembler
31561 directive if it will be different from the previously output
31562 directive. Same for .tune comment but only if -dA is set.
31563 (aarch64_start_file): New function.
31564 (TARGET_ASM_FILE_START): Define.
31565
31566 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31567
31568 PR plugins/69758
31569 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31570
31571 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31572
31573 PR target/65313
31574 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31575 -Wmaybe-uninitialized warning.
31576
31577 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31578
31579 PR target/69713
31580 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31581
31582 2016-02-11 Richard Biener <rguenther@suse.de>
31583
31584 PR rtl-optimization/69291
31585 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31586 subexpressions affected by changing the result.
31587
31588 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31589
31590 PR target/69148
31591 * lra-constraints.c (curr_insn_transform): Find in/out operands
31592 for secondary memory moves. Update dups.
31593
31594 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31595
31596 PR tree-optimization/69652
31597 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31598 to nested loop, did source re-formatting, skip debug statements,
31599 add check on statement with volatile operand, remove dead scalar
31600 statements.
31601
31602 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31603 Patrick Palka <ppalka@gcc.gnu.org>
31604
31605 PR ipa/69241
31606 PR c++/69649
31607 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31608 calls if the return type is TREE_ADDRESSABLE.
31609 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31610 * ipa-split.c (split_function): Fix doubled "we" in comment.
31611 Use void return type for the split part even if
31612 !split_point->split_part_set_retval.
31613
31614 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31615
31616 PR tree-optimization/68021
31617 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31618 when computing the value of biv cand by itself.
31619
31620 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31621
31622 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31623 (cortexa57_tunings): Likewise.
31624 (cortexa72_tunings): Likewise.
31625 (arch_macro_fusion_pair_p): Add support for AES fusion.
31626 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31627 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31628 Allow virtual registers before reload so early scheduling works.
31629 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31630 correct latency and pipeline.
31631 (cortex_a57_crypto_complex): Likewise.
31632 (cortex_a57_crypto_xor): Likewise.
31633 (define_bypass): Add AES bypass.
31634
31635 2016-02-10 Richard Biener <rguenther@suse.de>
31636
31637 PR tree-optimization/69726
31638 * passes.def: Add DCE pass before late uninit.
31639 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31640 really fixup if-conversions job.
31641
31642 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31643
31644 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31645 (arm_cortex_a57_tune): Likewise.
31646 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31647 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31648
31649 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31650
31651 * timevar.def (TV_PHASE_DBGINFO): Delete.
31652 (TV_PHASE_CHECK_DBGINFO): Likewise.
31653 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31654
31655 2016-02-10 Richard Biener <rguenther@suse.de>
31656
31657 PR tree-optimization/69719
31658 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31659 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31660
31661 2016-02-09 Andrew Pinski <apinski@cavium.com>
31662
31663 PR tree-opt/69282
31664 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31665 get_vcond_mask_icode returns false.
31666
31667 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31668
31669 PR target/68404
31670 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31671 an ADDIS that adds a pointer to a large constant that sets the
31672 upper16 bits with a load operation.
31673
31674 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31675
31676 PR target/68532
31677 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31678 order.
31679 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31680 endian.
31681 (vzipq_s16): Likewise.
31682 (vzipq_s32): Likewise.
31683 (vzipq_f32): Likewise.
31684 (vzipq_u8): Likewise.
31685 (vzipq_u16): Likewise.
31686 (vzipq_u32): Likewise.
31687 (vzipq_p8): Likewise.
31688 (vzipq_p16): Likewise.
31689
31690 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31691
31692 PR target/68532
31693 * config/arm/arm.c (neon_endian_lane_map): New function.
31694 (neon_vector_pair_endian_lane_map): New function.
31695 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31696 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31697 endian.
31698 (vuzpq_s16): Likewise.
31699 (vuzpq_s32): Likewise.
31700 (vuzpq_f32): Likewise.
31701 (vuzpq_u8): Likewise.
31702 (vuzpq_u16): Likewise.
31703 (vuzpq_u32): Likewise.
31704 (vuzpq_p8): Likewise.
31705 (vuzpq_p16): Likewise.
31706
31707 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31708
31709 PR target/69634
31710 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31711 debug insns.
31712
31713 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31714
31715 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31716 truncate const_int operand 1 to QImode.
31717
31718 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31719
31720 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31721 corresponding to an abnormal edge.
31722
31723 2016-02-09 Tom de Vries <tom@codesourcery.com>
31724
31725 PR tree-optimization/69599
31726 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31727 function.
31728 (find_func_aliases_for_builtin_call, find_func_clobbers)
31729 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31730 partition.
31731
31732 2016-02-09 Richard Biener <rguenther@suse.de>
31733
31734 PR tree-optimization/69715
31735 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31736 LHS on calls as non-rewritable.
31737
31738 2016-02-09 Tom de Vries <tom@codesourcery.com>
31739
31740 PR lto/69707
31741 * lto-wrapper.c (append_diag_options): New function.
31742 (compile_offload_image): Call append_diag_options.
31743
31744 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31745
31746 PR other/69722
31747 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31748 Minor copy-edit to fix verb tenses.
31749
31750 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31751
31752 PR tree-optimization/69209
31753 * ipa-split.c (split_function): If split part is not
31754 returning retval, retval has gimple type but is not
31755 gimple value, force it into a SSA_NAME first.
31756
31757 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31758
31759 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31760 outdated section.
31761
31762 2016-02-08 Jason Merrill <jason@redhat.com>
31763
31764 PR c++/69631
31765 * convert.c (convert_to_integer_1): Check dofold on truncation
31766 distribution.
31767 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31768 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31769 Rename from *_nofold.
31770 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31771 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31772
31773 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31774
31775 PR target/60410
31776 * tree.c (build_common_tree_nodes): Remove short_double argument.
31777 All callers changed.
31778 * tree.h (build_common_tree_nodes): Adjust declaration.
31779 * doc/invoke.texi (-fshort-double): Remove documentation.
31780 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31781 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31782 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31783 (append_linker_options): Don't handle OPT_fshort_double.
31784
31785 PR rtl-optimization/68730
31786 * lra-remat.c (insn_to_cand_activation): New static variable.
31787 (lra_remat): Allocate and free it.
31788 (create_cand): New arg activation. Initialize a field in
31789 insn_to_cand_activation if it is nonnull.
31790 (create_cands): Pass the activation insn to create_cand when making
31791 a candidate involving an output reload. Reorganize code a little.
31792 (do_remat): Keep track of active status of candidates in a separate
31793 bitmap.
31794
31795 2016-02-08 Richard Biener <rguenther@suse.de>
31796
31797 PR tree-optimization/69719
31798 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31799 Properly use absolute of the difference of the two offsets to
31800 compare or adjust the segment length.
31801
31802 2016-02-08 Richard Biener <rguenther@suse.de>
31803 Jeff Law <law@redhat.com>
31804
31805 PR target/68273
31806 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31807 types for anonymous SSA names.
31808
31809 2016-02-08 Richard Biener <rguenther@suse.de>
31810
31811 PR rtl-optimization/69274
31812 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31813
31814 2016-02-08 Jeff Law <law@redhat.com>
31815
31816 PR tree-optimization/65917
31817 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31818 equivalences from if (x == y) style conditionals.
31819 (loop_depth_of_name): Remove.
31820 (record_equality): Remove loop depth check.
31821 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31822 (const_and_copies::record_const_or_copy_raw): New member function.
31823 * tree-ssa-scopedtables.c
31824 (const_and_copies::record_const_or_copy_raw): New, factored out of
31825 (const_and_copies::record_const_or_copy): Call new member function.
31826
31827 2016-02-05 Jeff Law <law@redhat.com>
31828
31829 PR tree-optimization/68541
31830 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31831 (count_stmts_in_block): New function.
31832 (poor_ifcvt_candidate_code): Likewise.
31833 (is_feasible_trace): Add some heuristics to determine when path
31834 splitting is profitable.
31835 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31836 is a diamond with a single exit.
31837
31838 2016-02-05 Martin Sebor <msebor@redhat.com>
31839
31840 PR c++/69662
31841 * doc/invoke.texi: Update -Wplacement-new to take an optional
31842 argument.
31843
31844 2016-02-06 Richard Henderson <rth@redhat.com>
31845
31846 PR c/69643
31847 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31848 out of non-standard address spaces.
31849
31850 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31851
31852 PR rtl-optimization/69691
31853 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31854
31855 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31856
31857 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31858 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31859 (*ieee128_mfvsrd_64bit): Likewise.
31860 (*ieee128_mfvsrd_32bit): Likewise.
31861
31862 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31863
31864 PR target/69369
31865 Revert r232560:
31866 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31867
31868 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31869 instrumented_version.
31870
31871 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31872
31873 * doc/invoke.texi (Optimize Options): In table of --param options
31874 rename second occurrence of tracer-min-branch-ratio to
31875 tracer-min-branch-probability, rename
31876 tracer-min-branch-ratio-feedback to
31877 tracer-min-branch-probability-feedback and clarify description,
31878 rename sched-spec-state-edge-prob-cutoff to
31879 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31880 to selsched-insns-to-rename, rename lto-minpartition to
31881 lto-min-partition, delete reorder-blocks-duplicate and
31882 reorder-blocks-duplicate-feedback.
31883
31884 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31885
31886 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31887 superfluous loops.
31888
31889 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31890
31891 * doc/extend.texi: S/390: Correct some typos.
31892
31893 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31894
31895 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31896
31897 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31898
31899 PR target/69625
31900 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31901 (s390_register_info_gprtofpr): Use new macros above.
31902 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31903 its name.
31904 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31905 its name. Adjust restore and save gpr ranges.
31906 (s390_register_info_set_ranges): New function.
31907 (s390_register_info): Use new macros above. Call
31908 s390_register_info_set_ranges.
31909 (s390_optimize_register_info): Likewise.
31910 (s390_hard_regno_rename_ok): Use new macros.
31911 (s390_hard_regno_scratch_ok): Likewise.
31912 (s390_emit_epilogue): Likewise.
31913 (s390_can_use_return_insn): Likewise.
31914 (s390_optimize_prologue): Likewise.
31915 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31916
31917 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31918
31919 PR bootstrap/69677
31920 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31921 alignment fixes.
31922 (ix86_option_override_internal): Disable TARGET_STV even for
31923 -m{incoming,preferred}-stack-boundary=3.
31924
31925 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31926
31927 * config.gcc: Mark deprecated rtems targets as obsolete.
31928
31929 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31930
31931 PR rtl-optimization/64682
31932 PR rtl-optimization/69567
31933 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31934 before I2 only if the register is both used and set in I2.
31935
31936 2016-02-04 DJ Delorie <dj@redhat.com>
31937
31938 * config/msp430/msp430.c (msp430_start_function): Add function type.
31939
31940 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31941
31942 PR fortran/69368
31943 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31944
31945 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31946
31947 PR rtl-optimization/69577
31948 Revert:
31949 2015-10-29 Richard Henderson <rth@redhat.com>
31950
31951 PR target/68124
31952 PR rtl-opt/67609
31953 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31954 sse check to the exact conditions of PR 67609.
31955
31956 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31957
31958 PR target/69667
31959 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31960 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31961 not allowed into the traditional Altivec registers.
31962 (movtd_64bit_nodm): Likewise.
31963 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31964
31965 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31966
31967 * config/aarch64/cortex-a57-fma-steering.c
31968 (aarch64_register_fma_steering): Remove "static" from arguments
31969 to register_pass.
31970
31971 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31972
31973 PR target/69619
31974 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31975 twice when complex.
31976
31977 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31978
31979 * doc/invoke.texi: Delete -mno-fma4.
31980
31981 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31982
31983 PR rtl-optimization/69577
31984 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31985 (find_subregs_of_mode): Update accordingly. Iterate over partial
31986 definitions.
31987
31988 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31989
31990 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31991 * config/arm/arm.c (neon_reinterpret): Remove.
31992 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31993 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31994 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31995 vreinterpretti): Remove.
31996 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31997 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31998 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31999 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32000 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32001 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32002 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32003 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32004 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32005 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32006 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32007 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32008 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32009 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32010 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32011 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32012 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32013 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32014 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32015 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32016 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32017 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32018 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32019 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32020 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32021 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32022 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32023 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32024 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32025 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32026 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32027 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32028 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32029 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32030 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32031 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32032 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32033 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32034 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32035 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32036 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32037 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32038 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32039 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32040 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32041 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32042 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32043 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32044 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32045 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32046 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32047 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32048 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32049 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32050 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32051 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32052 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32053 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32054 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32055 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32056 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32057 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32058 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32059 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32060 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32061 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32062 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32063 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32064 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32065 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32066 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32067 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32068 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32069 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32070 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32071 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32072 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32073 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32074 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32075 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32076 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32077 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32078 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32079 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32080 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32081 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32082 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32083 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32084 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32085 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32086 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32087 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32088 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32089 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32090 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32091 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32092 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32093 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32094 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32095 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32096 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32097 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32098 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32099
32100 2016-02-04 Martin Liska <mliska@suse.cz>
32101
32102 PR sanitizer/69276
32103 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32104 that are gimple_store_p.
32105 (maybe_instrument_call): Likewise.
32106
32107 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32108
32109 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32110 register scaling out of memory reference and comment why.
32111
32112 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32113
32114 PR target/65932
32115 PR target/67714
32116 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32117 folding the source of a SET.
32118
32119 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32120
32121 PR target/65932
32122 PR target/67714
32123 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32124 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32125
32126 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32127
32128 PR target/65932
32129 PR target/67714
32130 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32131 HImode.
32132
32133 2016-02-04 Christian Bruel <christian.bruel@st.com>
32134
32135 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32136 * config/arm/arm.c (arm_set_current_function): Likewise.
32137
32138 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32139 Ilya Enkovich <enkovich.gnu@gmail.com>
32140 H.J. Lu <hongjiu.lu@intel.com>
32141
32142 PR target/69454
32143 * config/i386/i386.c (convert_scalars_to_vector): Remove
32144 stack alignment fixes.
32145 (ix86_option_override_internal): Disable TARGET_STV if stack
32146 might not be aligned enough.
32147 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32148
32149 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32150
32151 * config/i386/x86-tune.def: Disable default prefetching
32152 for -march=znver1.
32153
32154 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32155 Vladimir Makarov <vmakarov@redhat.com>
32156
32157 PR target/69461
32158 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32159 in validating fused toc addresses.
32160
32161 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32162
32163 PR c/69627
32164 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32165 range->m_caret fields if range->m_show_caret_p is false.
32166
32167 PR target/69644
32168 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32169 Force oldval into register if it does not satisfy reg_or_short_operand
32170 predicate. Fix up formatting.
32171
32172 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32173 Alexandre Oliva <aoliva@redhat.com>
32174
32175 PR target/69461
32176 * lra-constraints.c (simplify_operand_subreg): Check additionally
32177 address validity after potential reloading.
32178 (process_address_1): Check insns validity. In case of failure do
32179 nothing.
32180
32181 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32182
32183 PR target/69118
32184 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32185 Fix target.
32186
32187 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32188
32189 * wide-int.cc (canonize_uhwi): New function.
32190 (wi::divmod_internal): Use it.
32191
32192 2016-02-02 James Norris <jnorris@codesourcery.com>
32193
32194 * gimplify.c (omp_notice_variable): Add usage check.
32195
32196 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32197
32198 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32199 like LE, GE, LT, GT when emitting relational operator.
32200
32201 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32202
32203 * ira-costs.c (find_costs_and_classes): Add extra argument.
32204 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32205 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32206 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32207 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32208 Add best_class parameter, and return it if not ALL_REGS.
32209 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32210 Add parameter.
32211 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32212 Update target hook.
32213
32214 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32215
32216 * config/aarch64/aarch64.c
32217 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32218 (aarch64_ira_change_pseudo_allocno_class): New function.
32219
32220 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32221
32222 PR target/67032
32223 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32224
32225 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32226
32227 * config/avr/avr.c (avr_option_override): Set
32228 PARAM_ALLOW_STORE_DATA_RACES to 1.
32229
32230 2016-02-02 Richard Biener <rguenther@suse.de>
32231
32232 PR tree-optimization/69595
32233 * match.pd: Add range test simplifications to true/false.
32234
32235 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32236
32237 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32238 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32239 instead.
32240
32241 2016-02-02 Richard Biener <rguenther@suse.de>
32242
32243 PR tree-optimization/69606
32244 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32245 info on the result before moving a stmt.
32246
32247 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32248
32249 PR middle-end/68542
32250 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32251 branch with vector comparison.
32252 * config/i386/sse.md (VI48_AVX): New mode iterator.
32253 (define_expand "cbranch<mode>4): Add support for conditional branch
32254 with vector comparison.
32255 * tree-vect-loop.c (optimize_mask_stores): New function.
32256 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32257 has_mask_store field of vect_info.
32258 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32259 vectorized loops having masked stores after vec_info destroy.
32260 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32261 correspondent macros.
32262 (optimize_mask_stores): Add prototype.
32263
32264 2016-02-02 Alan Modra <amodra@gmail.com>
32265
32266 PR target/69548
32267 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32268 allow subregs.
32269
32270 2016-02-02 Alan Modra <amodra@gmail.com>
32271
32272 PR target/68662
32273 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32274 whenever toc_label_name used.
32275 (rs6000_file_start): Don't set up toc section here,
32276 (rs6000_output_function_epilogue): do so here instead,
32277 (rs6000_xcoff_file_start): and here.
32278 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32279 (load_toc_aix_di): Likewise.
32280
32281 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32282
32283 PR rtl-optimization/69592
32284 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32285 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32286 (num_sign_bit_copies_binary_arith_p): New inline function.
32287 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32288
32289 2016-02-01 Jeff Law <law@redhat.com>
32290
32291 PR tree-optimization/69580
32292 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32293 * tree-ssa-threadbackward.c
32294 (fsm_find_control_statement_thread_paths): Do not try to walk
32295 through large PHI nodes.
32296
32297 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32298
32299 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32300 when count is incremented above limit, don't analyze further
32301 insns afterwards.
32302
32303 * omp-low.c (oacc_parse_default_dims): Avoid
32304 -Wsign-compare warning, make sure value fits into int
32305 rather than just unsigned int.
32306
32307 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32308
32309 PR tree-optimization/67921
32310 * fold-const.c (split_tree): New parameters. Convert pointer
32311 type variable part to proper type before negating.
32312 (fold_binary_loc): Pass new arguments to split_tree.
32313
32314 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32315
32316 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32317 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32318 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32319 * doc/tm.texti: Rebuilt.
32320 * doc/invoke.texi (fopenacc-dim): Document.
32321 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32322 (append_compiler_options): Likewise.
32323 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32324 (oacc_parse_default_dims): New.
32325 (oacc_validate_dims): Add USED arg. Select non-unity default when
32326 possible.
32327 (oacc_loop_fixed_partitions): Return mask of used partitions.
32328 (oacc_loop_auto_partitions): Emit dump info.
32329 (oacc_loop_partition): Return mask of used partitions.
32330 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32331 loop partitioning and validation calls.
32332
32333 2016-02-01 Richard Biener <rguenther@suse.de>
32334
32335 PR middle-end/69556
32336 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32337
32338 2016-02-01 Richard Biener <rguenther@suse.de>
32339
32340 PR tree-optimization/69574
32341 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32342 of asserting return chrec_dont_know.
32343
32344 2016-02-01 Martin Liska <mliska@suse.cz>
32345
32346 * mem-stats-traits.h: Add copyright header.
32347 * mem-stats.h: Likewise.
32348
32349 2016-02-01 Richard Biener <rguenther@suse.de>
32350
32351 PR tree-optimization/69579
32352 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32353 Do not propagate through abnormal PHI results.
32354
32355 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32356
32357 * postreload.c (reload_cse_simplify): Remove dead code.
32358
32359 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32360
32361 PR rtl-optimization/69570
32362 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32363 if there is more than one set, not if there is a single set.
32364
32365 2016-02-01 Richard Henderson <rth@redhat.com>
32366
32367 PR rtl-opt/69535
32368 * combine.c (make_compound_operation): When looking through a
32369 subreg, make sure to re-extend to the width of the outer mode.
32370
32371 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32372
32373 PR tree-optimization/69546
32374 * wide-int.cc (wi::divmod_internal): For unsigned division
32375 where both operands fit into uhwi, if o1 is 1 and o0 has
32376 msb set, if divident_prec is larger than bits per hwi,
32377 clear another quotient word and return 2 instead of 1.
32378 Similarly for remainder with msb in HWI set, if dividend_prec
32379 is larger than bits per hwi.
32380
32381 2016-01-29 Martin Jambor <mjambor@suse.cz>
32382
32383 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32384 Use short lowercase names.
32385 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32386 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32387 acq_rel one. Protect warning agains segfaults if
32388 get_memory_order_name returns NULL.
32389 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32390 with release semantics. Do not warn if get_memory_order already did.
32391 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32392 semantics. Fix check for relaxed or acquire semantics. Do not warn
32393 if get_memory_order already did.
32394
32395 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32396
32397 * doc/install.texi: Document that isl-0.16 is supported.
32398
32399 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32400
32401 PR target/69299
32402 * config/i386/constraints.md (Bm): Describe as special memory
32403 constraint.
32404 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32405 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32406 * genpreds.c (struct constraint_data): Add is_special_memory.
32407 (have_special_memory_constraints, special_memory_start): New
32408 static vars.
32409 (special_memory_end): Ditto.
32410 (add_constraint): Add new arg is_special_memory. Add code to
32411 process its true value. Update have_special_memory_constraints.
32412 (process_define_constraint): Pass the new arg.
32413 (process_define_register_constraint): Ditto.
32414 (choose_enum_order): Process special memory.
32415 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32416 function insn_extra_special_memory_constraint.
32417 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32418 * gensupport.c (process_rtx): Process
32419 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32420 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32421 * ira-lives.c (single_reg_class): Use
32422 insn_extra_special_memory_constraint.
32423 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32424 * lra-constraints.c (process_alt_operands): Ditto.
32425 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32426 * recog.c (asm_operand_ok, preprocess_constraints): Process
32427 CT_SPECIAL_MEMORY.
32428 * reload.c (find_reloads): Ditto.
32429 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32430 * stmt.c (parse_input_constraint): Use
32431 insn_extra_special_memory_constraint.
32432
32433 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32434
32435 PR target/69530
32436 * lra-splill.c (lra_final_code_change): Revert r229087 by
32437 removing all sub-registers.
32438
32439 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32440
32441 PR target/65604
32442 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32443
32444 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32445
32446 PR target/69551
32447 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32448 SSE1, copy target into the temporary reg first before recursing
32449 on it.
32450
32451 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32452
32453 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32454 with vm.
32455
32456 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32457
32458 * ginclude/stdarg.h: Test __cplusplus instead of
32459 __GXX_EXPERIMENTAL_CXX0X__.
32460
32461 2016-01-29 Richard Biener <rguenther@suse.de>
32462
32463 PR tree-optimization/69547
32464 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32465 Do not mark clobbers necessary.
32466 (mark_all_reaching_defs_necessary_1): Likewise.
32467
32468 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32469
32470 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32471 declaration name with %qs and print it in both error messages.
32472 Also fix indentation.
32473
32474 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32475
32476 PR other/69006
32477 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32478 trailing blank line from error message.
32479
32480 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32481
32482 PR c++/69462
32483 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32484 for C++-11.
32485
32486 2016-01-29 Richard Biener <rguenther@suse.de>
32487
32488 PR middle-end/69537
32489 * match.pd: Allow all integral types when simplifying a
32490 widening or sign-changing conversion.
32491
32492 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32493
32494 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32495 back to setting codegen_error to fail codegen.
32496
32497 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32498
32499 PR target/69459
32500 * config/i386/constraints.md (C): Only accept constant zero operand.
32501 (BC): New constraint.
32502 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32503 instead of C constraint.
32504 * doc/md.texi (Machine Constraints): Update description
32505 of C constraint.
32506
32507 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32508
32509 PR target/68400
32510 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32511
32512 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32513
32514 PR middle-end/69542
32515 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32516 non-debug insns.
32517
32518 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32519
32520 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32521 branches if using guessed profile.
32522
32523 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32524
32525 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32526
32527 2016-01-28 Richard Henderson <rth@redhat.com>
32528
32529 PR target/69305
32530 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32531 * config/aarch64/aarch64-protos.h: Update.
32532 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32533 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32534 (aarch64_get_condition_code_1): Handle CC_Cmode.
32535 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32536 (*add<mode>3_compareC_cconly_imm): New.
32537 (*add<mode>3_compareC_cconly): New.
32538 (*add<mode>3_compareC_imm): New.
32539 (add<mode>3_compareC): New.
32540 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32541 to be first. Use aarch64_carry_operation.
32542 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32543 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32544 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32545 (subti3): Use subdi3_compare1.
32546 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32547 (sub<mode>3_compare1): New.
32548 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32549 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32550 (*subsi3_carryin_uxtw): Likewise.
32551 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32552 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32553 * config/aarch64/iterators.md (DWI): New.
32554 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32555 (aarch64_borrow_operation): New.
32556
32557 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32558
32559 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32560 message when isl does not return a valid schedule.
32561
32562 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32563
32564 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32565 Remove comments from class declarations: they are already in the code
32566 close by the defs.
32567
32568 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32569
32570 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32571 codegen_error_p.
32572 (ternary_op_to_tree): Same.
32573 (unary_op_to_tree): Same.
32574 (nary_op_to_tree): Same.
32575 (gcc_expression_from_isl_expr_op): Same.
32576 (gcc_expression_from_isl_expression): Same.
32577 (graphite_create_new_loop): Same.
32578 (graphite_create_new_loop_guard): Same.
32579 (build_iv_mapping): Same.
32580 (graphite_create_new_guard): Same.
32581 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32582 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32583
32584 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32585
32586 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32587 instead of setting codegen_error to fail codegen.
32588
32589 2016-01-28 Jason Merrill <jason@redhat.com>
32590
32591 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32592
32593 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32594
32595 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32596 Remove CONST_INT_P check in CCMP cost calculation.
32597
32598 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32599
32600 * config/aarch64/aarch64.c (generic_vector_cost):
32601 Set vec_permute_cost.
32602 (cortexa57_vector_cost): Likewise.
32603 (exynosm1_vector_cost): Likewise.
32604 (xgene1_vector_cost): Likewise.
32605 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32606 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32607 Add vec_permute_cost entry.
32608
32609 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32610
32611 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32612 immediate as %1.
32613 (add<mode>3_compare0): Likewise.
32614 (addsi3_compare0_uxtw): Likewise.
32615 (add<mode>3nr_compare0): Likewise.
32616 (compare_neg<mode>): Likewise.
32617 (<optab><mode>3): Likewise.
32618
32619 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32620
32621 * tree-vect-stmts.c (vectorizable_comparison): Add
32622 NULL check for vectype.
32623
32624 2016-01-28 Richard Biener <rguenther@suse.de>
32625
32626 PR tree-optimization/69466
32627 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32628 Account for PHIs we couldn't duplicate.
32629
32630 2016-01-28 Martin Liska <mliska@suse.cz>
32631
32632 PR pch/68758
32633 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32634 instead of ENABLE_VALGRIND_CHECKING.
32635
32636 2016-01-27 Richard Henderson <rth@redhat.com>
32637
32638 PR rtl-opt/69447
32639 * lra-remat.c (subreg_regs): New.
32640 (dump_candidates_and_remat_bb_data): Dump it.
32641 (operand_to_remat): Reject if operand in subreg_regs.
32642 (set_bb_regs): Collect subreg_regs.
32643 (lra_remat): Init and free subreg_regs. Compute
32644 calculate_local_reg_remat_bb_data before create_cands.
32645
32646 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32647
32648 PR target/68986
32649 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32650 change stack_alignment_needed for __tls_get_addr call.
32651
32652 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32653
32654 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32655
32656 2016-01-27 Jeff Law <law@redhat.com>
32657
32658 PR tree-optimization/68398
32659 PR tree-optimization/69196
32660 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32661 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32662 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32663 Only count PHIs in the last block in the path. The others will
32664 const/copy propagate away. Add heuristic to allow more irreducible
32665 subloops to be created when it is likely profitable to do so.
32666
32667 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32668 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32669 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32670
32671 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32672
32673 PR lto/69254
32674 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32675 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32676 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32677 * tree-streamer-in.c: Include asan.h.
32678 (streamer_get_builtin_tree): For builtins in sanitizer
32679 range call initialize_sanitizer_builtins and retry.
32680
32681 2016-01-27 Ian Lance Taylor <iant@google.com>
32682
32683 * common.opt (fkeep-gc-roots-live): New undocumented option.
32684 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32685 -fkeep-gc-roots-live, skip pointers.
32686 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32687 NULL.
32688
32689 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32690
32691 PR target/69512
32692 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32693 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32694
32695 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32696
32697 PR target/68380
32698 * configure.ac: NetBSD provides SSP in its C library.
32699 * configure: Updated.
32700
32701 2016-01-27 Richard Biener <rguenther@suse.de>
32702
32703 PR tree-optimization/69166
32704 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32705 reduction code for commutativity / associativity.
32706
32707 2016-01-27 Martin Jambor <mjambor@suse.cz>
32708
32709 PR tree-optimization/69355
32710 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32711 total_scalarization fails.
32712
32713 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32714
32715 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32716 power9.
32717
32718 2016-01-27 Christian Bruel <christian.bruel@st.com>
32719
32720 PR target/69245
32721 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32722 Move arm_reset_previous_fndecl and set_target_option_current_node in
32723 the conditional part. Call save_restore_target_globals.
32724 * config/arm/arm.c (arm_set_current_function):
32725 Refactor to better support #pragma target and attribute mix.
32726 Call save_restore_target_globals.
32727 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32728
32729 2016-01-27 Martin Liska <mliska@suse.cz>
32730
32731 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32732 reference for an HSA kernel and its host function.
32733
32734 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32735
32736 PR tree-optimization/69399
32737 * wide-int.h (wi::lrshift): For larger precisions, only
32738 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32739
32740 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32741
32742 * config/arc/predicates.md (proper_comparison_operator): Reject
32743 constant-constant comparison.
32744
32745 2016-01-26 Tom de Vries <tom@codesourcery.com>
32746
32747 PR tree-optimization/69110
32748 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32749 DR_NUM_DIMENSIONS == 0.
32750
32751 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32752 Sebastian Pop <s.pop@samsung.com>
32753
32754 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32755 isl_ast_op_cond and isl_ast_op_select.
32756 (gcc_expression_from_isl_expr_op): Same.
32757
32758 2016-01-26 Jason Merrill <jason@redhat.com>
32759
32760 PR c++/68782
32761 * tree.c (recompute_constructor_flags): Split out from
32762 build_constructor.
32763 (verify_constructor_flags): New.
32764 * tree.h: Declare them.
32765
32766 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32767
32768 PR rtl-optimization/69217
32769 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32770 are no TYPE_FIELDS set for the record type.
32771
32772 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32773
32774 PR target/68662
32775 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32776 toc_label_name unconditionally.
32777 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32778 SYMBOL_REF string. Use toc_label_name instead of constructing
32779 LCTOC1.
32780 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32781 constructing LCTOC1.
32782
32783 2016-01-26 Martin Sebor <msebor@redhat.com>
32784
32785 PR other/69477
32786 * doc/extend.texi (Common Type Attributes): Move text that talks about
32787 attribute packed from attribute aligned to the section discussing
32788 the former attribute for clarity.
32789
32790 2016-01-26 Richard Henderson <rth@redhat.com>
32791
32792 PR middle-end/60908
32793 * trans-mem.c (tm_region_init): Mark entry block as visited.
32794
32795 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32796
32797 PR other/69006
32798 * diagnostic-show-locus.c (layout::print_source_line): Replace
32799 call to pp_newline with call to layout::print_newline.
32800 (layout::print_annotation_line): Likewise.
32801 (layout::move_to_column): Likewise.
32802 (layout::print_any_fixits): After printing any fixits, print a
32803 trailing newline, if necessary.
32804 (layout::print_newline): New method, resetting any colorization
32805 before a newline.
32806 (diagnostic_show_locus): Move the pp_newline to before the
32807 early bailout. Remove dummy block enclosing the layout instance.
32808 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32809 of pp_newline_and_flush with pp_flush.
32810 (diagnostic_append_note): Delete use of pp_newline.
32811 (diagnostic_append_note_at_rich_loc): Delete.
32812 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32813 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32814 when newline characters are added to the buffer.
32815
32816 2016-01-26 Michael Matz <matz@suse.de>
32817
32818 * configure.ac (ac_cv_std_swap_in_utility): New test.
32819 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32820 * configure: Regenerate.
32821 * config.in: Regenerate.
32822
32823 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32824
32825 * config/arc/arc.md (cstoresi4): Force operand into register.
32826 (arcset<code>): Fix predicate.
32827 (arcsetltu): Likewise.
32828 (arcsetgeu): Likewise.
32829 (arcsethi): Likewise.
32830 (arcsetls): Likewise.
32831
32832 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32833
32834 PR tree-optimization/69483
32835 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32836 if base has error_mark_node type.
32837
32838 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32839
32840 PR target/68620
32841 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32842 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32843 New helper macros.
32844 (vget_lane_f16): Handle big-endian.
32845 (vgetq_lane_f16): Likewise.
32846 (vset_lane_f16): Likewise.
32847 (vsetq_lane_f16): Likewise.
32848 * config/arm/iterators.md (VQXMOV): Add V8HF.
32849 (VDQ): Add V4HF and V8HF.
32850 (V_reg): Handle V4HF and V8HF.
32851 (Is_float_mode): Likewise.
32852 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32853 neon_vdup_nv8hf): New patterns.
32854 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32855 Use VD_LANE iterator.
32856 (neon_vld1_dup<mode>): Use VQ2 iterator.
32857
32858 2016-01-26 Nathan Sidwell <nathan@acm.org>
32859
32860 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32861 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32862 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32863 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32864 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32865 (oacc_validate_dims): Add LEVEL arg, don't return level.
32866 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32867 oacc_validate_dims.
32868 (execute_oacc_device_lower): Adjust, add more dump output.
32869 * tree-ssa-loop.c (gate_oacc_kernels): Use
32870 oacc_fn_attrib_kernels_p.
32871 * tree-parloops.c (create_parallel_loop): Adjust
32872 set_oacc_fn_attrib call.
32873
32874 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32875
32876 PR lto/69254
32877 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32878 (append_compiler_options): Handle -fcilkplus.
32879 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32880
32881 2016-01-26 Nick Clifton <nickc@redhat.com>
32882
32883 PR target/66655
32884 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32885 been marked as DECL_ONE_ONLY but we do not the means to make it
32886 so, then do not allow it to bind locally.
32887
32888 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32889
32890 PR lto/69254
32891 * opts.h (parse_sanitizer_options): New prototype.
32892 * opts.c (sanitizer_opts): New array.
32893 (parse_sanitizer_options): New function.
32894 (common_handle_option): Use parse_sanitizer_options.
32895
32896 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32897
32898 PR target/68986
32899 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32900 alignment adjustment to ...
32901 (ix86_update_stack_boundary): Here. Don't over-align stack for
32902 __tls_get_addr.
32903 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32904 if __tls_get_addr is called.
32905
32906 2016-01-26 Christian Bruel <christian.bruel@st.com>
32907
32908 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32909
32910 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32911
32912 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32913
32914 2016-01-26 Richard Biener <rguenther@suse.de>
32915
32916 PR middle-end/69467
32917 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32918
32919 2016-01-26 Richard Biener <rguenther@suse.de>
32920
32921 PR tree-optimization/69452
32922 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32923 (move_computations_dom_walker::before_dom_children): Rename
32924 to ...
32925 (move_computations_worker): This.
32926 (move_computations): Perform an RPO rather than a DOM walk.
32927
32928 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32929
32930 PR target/69442
32931 * combine.c (combine_instructions): For REG_EQUAL note with
32932 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32933 to the underlying register.
32934 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32935 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32936
32937 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32938
32939 PR target/67896
32940 * config/aarch64/aarch64-builtins.c
32941 (aarch64_init_simd_builtin_types): Do not set structural
32942 equality to __Poly{8,16,64,128}_t types.
32943
32944 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32945
32946 PR tree-optimization/69400
32947 * wide-int.cc (wi_pack): Take the precision as argument and
32948 perform canonicalization here rather than in the callers.
32949 Use the main loop to handle all full-width HWIs. Add a
32950 zero HWI if in_len isn't a full result.
32951 (wi::divmod_internal): Update accordingly.
32952 (wi::mul_internal): Likewise. Simplify.
32953
32954 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32955 Sebastian Pop <s.pop@samsung.com>
32956
32957 * graphite-poly.c (apply_poly_transforms): Simplify.
32958 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32959 (print_isl_map): Same.
32960 (print_isl_union_map): Same.
32961 (print_isl_schedule): New.
32962 (debug_isl_schedule): New.
32963 * graphite-dependences.c (scop_get_reads): Do not call
32964 isl_union_map_add_map that is undocumented isl functionality.
32965 (scop_get_must_writes): Same.
32966 (scop_get_may_writes): Same.
32967 (scop_get_original_schedule): Remove.
32968 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32969 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32970 (compute_deps): Remove.
32971 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32972 (debug_schedule_ast): New.
32973 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32974 set_separate_option.
32975 (graphite_regenerate_ast_isl): Add dump.
32976 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32977 from scop->transformed_schedule.
32978 (graphite_regenerate_ast_isl): Add more dump.
32979 * graphite-optimize-isl.c (optimize_isl): Set
32980 scop->transformed_schedule. Check whether schedules are equal.
32981 (apply_poly_transforms): Move here.
32982 * graphite-poly.c (apply_poly_transforms): ... from here.
32983 (free_poly_bb): Static.
32984 (free_scop): Static.
32985 (pbb_number_of_iterations_at_time): Remove.
32986 (print_isl_ast): New.
32987 (debug_isl_ast): New.
32988 (debug_scop_pbb): New.
32989 * graphite-scop-detection.c (print_edge): Move.
32990 (print_sese): Move.
32991 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32992 (build_scop_scattering): Remove.
32993 (create_pw_aff_from_tree): Assert instead of bailing out.
32994 (add_condition_to_pbb): Remove unused code, do not fail.
32995 (add_conditions_to_domain): Same.
32996 (add_conditions_to_constraints): Remove.
32997 (build_scop_context): New.
32998 (add_iter_domain_dimension): New.
32999 (build_iteration_domains): Initialize pbb->iterators.
33000 Call add_conditions_to_domain.
33001 (nested_in): New.
33002 (loop_at): New.
33003 (index_outermost_in_loop): New.
33004 (index_pbb_in_loop): New.
33005 (outermost_pbb_in): New.
33006 (add_in_sequence): New.
33007 (add_outer_projection): New.
33008 (outer_projection_mupa): New.
33009 (add_loop_schedule): New.
33010 (build_schedule_pbb): New.
33011 (build_schedule_loop): New.
33012 (embed_in_surrounding_loops): New.
33013 (build_schedule_loop_nest): New.
33014 (build_original_schedule): New.
33015 (build_poly_scop): Call build_original_schedule.
33016 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33017 (free_poly_dr): Remove.
33018 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33019 (free_poly_bb): Remove.
33020 (debug_loop_vec): Remove.
33021 (print_isl_ast): Declare.
33022 (debug_isl_ast): Declare.
33023 (scop_do_interchange): Remove.
33024 (scop_do_strip_mine): Remove.
33025 (scop_do_block): Remove.
33026 (flatten_all_loops): Remove.
33027 (optimize_isl): Remove.
33028 (pbb_number_of_iterations_at_time): Remove.
33029 (debug_scop_pbb): Declare.
33030 (print_schedule_ast): Declare.
33031 (debug_schedule_ast): Declare.
33032 (struct scop): Remove schedule. Add original_schedule,
33033 transformed_schedule.
33034 (free_gimple_poly_bb): Remove.
33035 (print_generated_program): Remove.
33036 (debug_generated_program): Remove.
33037 (unify_scattering_dimensions): Remove.
33038 * sese.c (print_edge): ... here.
33039 (print_sese): ... here.
33040 (debug_edge): ... here.
33041 (debug_sese): ... here.
33042 * sese.h (print_edge): Declare.
33043 (print_sese): Declare.
33044 (dump_edge): Declare.
33045 (dump_sese): Declare.
33046
33047 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33048 Sebastian Pop <s.pop@samsung.com>
33049
33050 * Makefile.in: Set ISLVER in site.exp.
33051
33052 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33053
33054 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33055 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33056 through DECL_VALUE_EXPR for expansion.
33057
33058 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33059
33060 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33061 the frame info after reload completed.
33062
33063 2016-01-25 Jeff Law <law@redhat.com>
33064
33065 PR tree-optimization/69196
33066 PR tree-optimization/68398
33067 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33068 tree-ssa-threadupdate.c.
33069 (determine_bb_domination_status): Prototype
33070 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33071 (determine_bb_domination_status): No longer static.
33072 (valid_jump_thread_path): Remove code to detect characteristics
33073 of the jump thread path not associated with correctness.
33074 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33075 Correct test for thread path length. Count PHIs for real operands as
33076 statements that need to be copied. Do not count ASSERT_EXPRs.
33077 Look at all the blocks in the thread path. Compute and selectively
33078 filter thread paths based on threading through the latch, threading
33079 a multiway branch or crossing a multiway branch.
33080
33081 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33082
33083 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33084 decl with __attribute__ ((unused)) annotation.
33085
33086 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33087
33088 PR target/69421
33089 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33090 of operands is compatible with a statement vectype.
33091
33092 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33093
33094 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33095 improve wording for mixed storage order support.
33096
33097 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33098
33099 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33100 (vcvt_u64_f64): Likewise.
33101 (vcvta_s64_f64): Likewise.
33102 (vcvta_u64_f64): Likewise.
33103 (vcvtm_s64_f64): Likewise.
33104 (vcvtm_u64_f64): Likewise.
33105 (vcvtn_s64_f64): Likewise.
33106 (vcvtn_u64_f64): Likewise.
33107 (vcvtp_s64_f64): Likewise.
33108 (vcvtp_u64_f64): Likewise.
33109
33110 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33111
33112 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33113 (arc_init): Check validity mll64 option.
33114 (arc_save_restore): Use double load/store instruction.
33115 (arc_expand_movmem): Likewise.
33116 (arc_split_move): Don't split if we have double load/store
33117 instructions. Returns a boolean.
33118 (arc_process_double_reg_moves): Change function to return boolean
33119 instead of a sequence of instructions.
33120 (arc_dwarf_register_span): New function.
33121 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33122 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33123 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33124 (*movdf_insn): Likewise.
33125 * config/arc/arc.opt (mll64): New option.
33126 * config/arc/predicates.md (even_register_operand): New predicate.
33127 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33128
33129 2016-01-25 Richard Biener <rguenther@suse.de>
33130
33131 PR lto/69393
33132 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33133 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33134 DECL_NAMELESS.
33135 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33136
33137 2016-01-25 Richard Biener <rguenther@suse.de>
33138
33139 PR tree-optimization/69376
33140 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33141 flag.
33142 (VN_INFO_ANTI_RANGE_P): New inline.
33143 (VN_INFO_RANGE_TYPE): Likewise.
33144 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33145 SSA_NAME_ANTI_RANGE_P.
33146 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33147 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33148 Properly query VN_INFO_RANGE_TYPE.
33149
33150 2016-01-25 Nick Clifton <nickc@redhat.com>
33151
33152 PR target/66655
33153 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33154
33155 2016-01-23 Tom de Vries <tom@codesourcery.com>
33156
33157 PR tree-optimization/69426
33158 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33159 removed clobber.
33160
33161 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33162
33163 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33164 "the the" with "the" in the comments.
33165 * ipa-devirt.c (build_type_inheritance_graph,
33166 update_type_inheritance_graph): Likewise.
33167 * tree.c (build_function_type_list_1): Likewise.
33168 * cfgloopmanip.c (scale_loop_profile): Likewise.
33169 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33170 * gimple-ssa-split-paths.c
33171 (find_block_to_duplicate_for_splitting_paths): Likewise.
33172 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33173 * expr.c (convert_move): Likewise.
33174 * var-tracking.c (vt_stack_adjustments): Likewise.
33175 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33176 * tree-vrp.c (test_for_singularity): Likewise.
33177
33178 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33179 directly instead of building a temporary tree.
33180
33181 PR bootstrap/69434
33182 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33183 remove <algorithm> include.
33184
33185 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33186
33187 PR target/69432
33188 * config/i386/i386.c: Include dojump.h.
33189 (expand_small_movmem_or_setmem,
33190 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33191 fixes.
33192 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33193 if dynamic_check != -1.
33194
33195 2016-01-21 Jeff Law <law@redhat.com>
33196
33197 PR middle-end/69347
33198 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33199 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33200 into dominated_by_p.
33201 (cprop_into_successor_phis): Avoid unnecessary tests.
33202
33203 2016-01-22 Richard Henderson <rth@redhat.com>
33204
33205 PR target/69416
33206 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33207 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33208
33209 2016-01-22 Michael Matz <matz@suse.de>
33210
33211 * system.h (string, algorithm): Include only conditionally.
33212 (new): Include always under C++.
33213 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33214 * final.c (toplevel): Ditto.
33215 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33216 * genconditions.c (write_header): Make gencondmd.c define
33217 INCLUDE_STRING.
33218 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33219
33220 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33221 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33222
33223 2016-01-22 Christian Bruel <christian.bruel@st.com>
33224
33225 PR target/68674
33226 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33227
33228 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33229
33230 PR target/69403
33231 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33232 define_insn_and_split. Ensure operands[1] and operands[0] do not
33233 get assigned the same register.
33234
33235 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33236
33237 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33238
33239 2016-01-22 Christian Bruel <christian.bruel@st.com>
33240
33241 * config/arm/arm-c.c (arm_pragma_target_parse):
33242 Remove warn_builtin_macro_redefined overwrite.
33243
33244 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33245
33246 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33247 flag_non_call_exceptions compatibility.
33248
33249 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33250
33251 PR debug/66668
33252 * dwarf2out.c (add_child_die_after): New function.
33253 (dwarf_qual_info_t): New type.
33254 (dwarf_qual_info): New variable.
33255 (qualified_die_p): New function.
33256 (modified_type_die): For -fdebug-types-section, ensure
33257 canonical order of qualifiers. Put qualified DIEs adjacent
33258 to the corresponding non-qualified type DIE and search there
33259 for existing qualified DIEs.
33260
33261 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33262
33263 * doc/extend.texi (scalar_storage_order type attribute): Document
33264 restriction on type punning and aliasing, and remove future tense.
33265
33266 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33267
33268 PR target/69252
33269 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33270 first stage.
33271
33272 2016-01-21 Jeff Law <law@redhat.com>
33273
33274 PR middle-end/69347
33275 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33276 useless call to record_temporary_equivalences.
33277 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33278 allocate 10 slots in the bb_path vector and let it grow as needed.
33279 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33280 vector.
33281
33282 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33283
33284 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33285 Detangle.
33286 * configure: Regenerate.
33287
33288 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33289
33290 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33291 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33292
33293 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33294
33295 PR middle-end/66178
33296 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33297 drop EXPAND_INITIALIZER.
33298 * rtl.h (contains_symbolic_reference_p): Declare.
33299 * rtlanal.c (contains_symbolic_reference_p): New function.
33300 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33301 a subtraction into a NOT if symbolic constants are involved.
33302
33303 2016-01-21 Anton Blanchard <anton@samba.org>
33304 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33305
33306 PR target/63354
33307 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33308 #define.
33309 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33310 function.
33311
33312 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33313
33314 * config/microblaze/microblaze.c
33315 (get_branch_target): New.
33316 (insert_wic_for_ilb_runout): New.
33317 (insert_wic): New.
33318 (microblaze_machine_dependent_reorg): New.
33319 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33320 * config/microblaze/microblaze.md
33321 (UNSPEC_IPREFETCH): Define.
33322 (iprefetch): New pattern
33323 * config/microblaze/microblaze.opt
33324 (mxl-prefetch): New flag.
33325
33326 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33327
33328 * config/microblaze/microblaze.h
33329 (FIXED_REGISTERS): Update in macro.
33330 (CALL_USED_REGISTERS): Update in macro.
33331
33332 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33333
33334 PR rtl-optimization/68920
33335 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33336 moves.
33337
33338 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33339
33340 PR rtl-optimization/68990
33341 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33342 pseudo instead of inheritance ones.
33343
33344 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33345 Nick Clifton <nickc@redhat.com>
33346
33347 PR target/69129
33348 PR target/69012
33349 * config/mips/mips.c (mips_compute_frame_info): Initialise
33350 args_size and hard_frame_pointer_offset fields of the frame
33351 structure before calling mips_global_pointer.
33352
33353 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33354
33355 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33356 label reference.
33357 * configure: Regenerate.
33358
33359 2016-01-21 Richard Biener <rguenther@suse.de>
33360
33361 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33362
33363 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33364
33365 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33366 to actually emit the .size directive.
33367
33368 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33369 Jakub Jelinek <jakub@redhat.com>
33370
33371 PR target/69187
33372 PR target/65624
33373 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33374 args array size by one to avoid buffer overflow.
33375
33376 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33377
33378 * config/s390/s390.md (pool_section_start): Use switch_to_section
33379 to select proper read-only data section instead of hardcoding
33380 .rodata.
33381 (pool_section_end): Use switch_to_section to match the above.
33382
33383 2016-01-21 Richard Biener <rguenther@suse.de>
33384
33385 PR tree-optimization/69378
33386 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33387 (set_ssa_val_to): Use it for dominance checks taking into
33388 account not executable edges.
33389
33390 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33391
33392 PR c++/69355
33393 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33394 for bitsize instead of GET_MODE_PRECISION (mode).
33395
33396 2016-01-20 Martin Sebor <msebor@redhat.com>
33397
33398 PR c/52291
33399 * extend.texi (__sync Builtins): Clarify the semantics of
33400 __sync_fetch_and_OP built-ins on pointers.
33401 (__atomic Builtins): Same.
33402
33403 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33404 Sebastian Pop <s.pop@samsung.com>
33405
33406 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33407 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33408 (is_valid_rename): Same.
33409 (translate_isl_ast_to_gimple::get_rename): Same.
33410 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33411 (translate_isl_ast_to_gimple::rename_uses): Same.
33412 (get_new_name): Check for close_phi nodes.
33413 (copy_loop_phi_args): Use phi_node_kind.
33414 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33415 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33416
33417 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33418 Sebastian Pop <s.pop@samsung.com>
33419
33420 Revert commit r229783.
33421 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33422 Remove use of parameter_rename_map.
33423 (copy_def): Remove.
33424 (copy_internal_parameters): Remove.
33425 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33426 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33427 (free_sese_info): Do not free parameter_rename_map.
33428 (set_rename): Do not use parameter_rename_map.
33429 (rename_uses): Update call to set_rename.
33430 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33431 * sese.h (parameter_rename_map_t): Remove.
33432 (struct sese_info_t): Remove field parameter_rename_map.
33433
33434 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33435 Sebastian Pop <s.pop@samsung.com>
33436
33437 * graphite-isl-ast-to-gimple.c: Fix comment.
33438 * graphite-scop-detection.c (defined_in_loop_p): New.
33439 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33440 names defined in loop.
33441
33442 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33443 Sebastian Pop <s.pop@samsung.com>
33444
33445 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33446 Discard unstructured if-then-else regions.
33447
33448 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33449 Sebastian Pop <s.pop@samsung.com>
33450
33451 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33452 (cleanup_loop_iter_dom): Remove.
33453 (build_loop_iteration_domains): Remove.
33454 (build_scop_context): Remove.
33455 (build_scop_iteration_domain): Remove.
33456 (add_loop_constraints): New.
33457 (build_iteration_domains): New.
33458 (build_poly_scop): Call build_iteration_domains.
33459
33460 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33461 Sebastian Pop <s.pop@samsung.com>
33462
33463 * graphite-scop-detection.c
33464 (scop_detection::harmful_loop_in_region): Free dom and loops.
33465 (scop_detection::loop_body_is_valid_scop): Free bbs.
33466
33467 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33468 Sebastian Pop <s.pop@samsung.com>
33469
33470 * graphite-scop-detection.c (record_loop_in_sese): New.
33471 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33472 (build_scops): Remove call to build_sese_loop_nests.
33473 * sese.c (sese_record_loop): Remove.
33474 (build_sese_loop_nests): Remove.
33475 (new_sese_info): Remove region->loops.
33476 (free_sese_info): Same.
33477 * sese.h (sese_contains_loop): Same.
33478 (build_sese_loop_nests): Remove.
33479 (sese_contains_loop): Remove.
33480
33481 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33482 Sebastian Pop <s.pop@samsung.com>
33483
33484 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33485 loop_is_valid_in_scop.
33486 (scop_detection::harmful_stmt_in_region): Renamed
33487 harmful_loop_in_region.
33488 Call loop_is_valid_in_scop.
33489
33490 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33491 Sebastian Pop <s.pop@samsung.com>
33492
33493 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33494 isl_ast_node_mark.
33495
33496 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33497 Sebastian Pop <s.pop@samsung.com>
33498
33499 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33500 * graphite.h (struct poly_bb): Remove field is_reduction.
33501 (PBB_IS_REDUCTION): Remove.
33502
33503 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33504 Sebastian Pop <s.pop@samsung.com>
33505
33506 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33507 (add_pdr_constraints): Same.
33508 (scop_get_reads): Same.
33509 (scop_get_must_writes): Same.
33510 (scop_get_may_writes): Same.
33511 (scop_get_original_schedule): Same.
33512 (extend_schedule): Same.
33513 (apply_schedule_on_deps): Same.
33514 (carries_deps): Same.
33515 (compute_deps): Same.
33516 (scop_get_dependences): Same.
33517 * graphite-isl-ast-to-gimple.c
33518 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33519 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33520 (get_schedule_for_band_list): Same.
33521 (get_schedule_map): Same.
33522 (apply_schedule_map_to_scop): Same.
33523 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33524 (build_loop_iteration_domains): Same.
33525 (add_condition_to_pbb): Same.
33526 (add_param_constraints): Same.
33527 (pdr_add_memory_accesses): Same.
33528 (pdr_add_data_dimensions): Same.
33529
33530 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33531
33532 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33533 requirements.
33534
33535 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33536
33537 * common.opt (feliminate-dwarf2-dups): Replace references to
33538 "DWARF 2" with just "DWARF".
33539 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33540 * doc/extend.texi: Likewise.
33541 * doc/cpp.texi: Likewise.
33542 * doc/invoke.texi: Likewise.
33543 (Option Summary): Add -gdwarf to list of Debugging Options.
33544 (Debugging Options): Document -gdwarf.
33545 * doc/contrib.texi: Spell "DWARF" like that.
33546
33547 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33548
33549 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33550 warning. Fix up formatting.
33551
33552 PR middle-end/67653
33553 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33554 attempt to mark memory input operand addressable and
33555 call prepare_gimple_addressable in that case. Don't adjust
33556 input_location for diagnostics, use error_at instead.
33557
33558 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33559
33560 * config/rs6000/ppc-auxv.h: New file.
33561 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33562 (cpu_is): Likewise.
33563 (cpu_supports): Likewise.
33564 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33565 (cpu_is_info): New variable.
33566 (cpu_supports_info): Likewise.
33567 (tcb_verification_symbol): Likewise.
33568 (cpu_builtin_p): Likewise.
33569 (cpu_expand_builtin): New function.
33570 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33571 (rs6000_init_builtins): Likewise.
33572 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33573 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33574 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33575 * configure: Regenerate.
33576 * config.in: Likewise.
33577 * doc/extend.texi (PowerPC Built-in Functions): Document
33578 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33579
33580 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33581
33582 PR target/68609
33583 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33584 domain check.
33585 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33586 for V4SFmode.
33587
33588 2016-01-20 Richard Henderson <rth@redhat.com>
33589
33590 PR bootstrap/69343
33591 PR bootstrap/69339
33592 PR tree-opt/68964
33593 Revert:
33594 * tree.c (tm_define_builtin): New.
33595 (find_tm_vector_type): New.
33596 (build_tm_vector_builtins): New.
33597 (build_common_builtin_nodes): Call it.
33598
33599 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33600
33601 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33602 (arm_fp_ok): Likewise.
33603 (arm_fp): Likewise.
33604 (arm_crypto): Likewise.
33605
33606 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33607 Richard Biener <rguenther@suse.de>
33608
33609 PR tree-optimization/69328
33610 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33611 vectors have same number of elements.
33612 (vectorizable_condition): Fix masked version recognition.
33613
33614 2016-01-20 Richard Biener <rguenther@suse.de>
33615
33616 PR tree-optimization/69345
33617 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33618 (VN_INFO_PTR_INFO): Likewise.
33619 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33620 info when it is equal between non-dominating SSA names.
33621 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33622 Make sure to look at original SSA infos.
33623
33624 2016-01-20 Jeff Law <law@redhat.com>
33625
33626 PR target/25114
33627 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33628 extracted from ...
33629 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33630 (pc_or_label_operand): New predicate.
33631 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33632 tests for small integers that are 2^n - 1.
33633
33634 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33635
33636 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33637
33638 2016-01-19 Jeff Law <law@redhat.com>
33639
33640 PR middle-end/69347
33641 * tree-ssa-threadbackwards.c
33642 (fsm_find_control_statement_thread_paths): Do not try to lookup
33643 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33644
33645 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33646
33647 * doc/lto.texi: Remove text that says only Gold has linker plugin
33648 support.
33649
33650 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33651
33652 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33653 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33654 the DIE accordingly.
33655 (modified_type_die): Add REVERSE parameter and pass it recursively,
33656 as well as to base_type_die. Adjust presence check accordingly.
33657 (base_type_for_mode): Adjust call to modified_type_die.
33658 (add_type_attribute): Add REVERSE parameter and pass it to
33659 modified_type_die.
33660 (generic_parameter_die): Adjust call to add_type_attribute.
33661 (add_scalar_info): Likewise.
33662 (add_subscript_info): Likewise.
33663 (gen_array_type_die): Likewise.
33664 (gen_descr_array_type_die): Likewise.
33665 (gen_entry_point_die): Likewise.
33666 (gen_enumeration_type_die): Likewise.
33667 (gen_formal_parameter_die): Likewise.
33668 (gen_subprogram_die): Likewise.
33669 (gen_variable_die ): Likewise.
33670 (gen_const_die): Likewise.
33671 (gen_field_die): Likewise.
33672 (gen_pointer_type_die): Likewise.
33673 (gen_reference_type_die): Likewise.
33674 (gen_ptr_to_mbr_type_die): Likewise.
33675 (gen_inheritance_die): Likewise.
33676 (gen_subroutine_type_die): Likewise.
33677 (gen_typedef_die): Likewise.
33678 (force_type_die): Adjust call to modified_type_die.
33679
33680 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33681
33682 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33683 flow throughout the file. Fix broken link to Objective-C 2.0
33684 documentation.
33685 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33686 errors.
33687
33688 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33689
33690 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33691
33692 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33693
33694 PR ipa/66223
33695 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33696 (maybe_record_node): Record cxa_pure_virtual as the only possible
33697 target if there are not ohter candidates.
33698 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33699
33700 2016-01-19 Richard Biener <rguenther@suse.de>
33701
33702 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33703 (get_memory_order): Likewise.
33704
33705 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33706
33707 * tree-vect-stmts.c (vectorizable_store): Check
33708 rhs vectype.
33709
33710 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33711
33712 PR jit/68446
33713 * gcc.c (driver::decode_argv): Add call to
33714 init_opts_obstack before init_options_struct.
33715 * opts.c (init_opts_obstack): Remove idempotency.
33716 (init_options_struct): Replace call to init_opts_obstack
33717 with a gcc_assert to verify that it has already been called.
33718 * toplev.c (toplev::main): Add call to init_opts_obstack before
33719 calls to init_options_struct.
33720 (toplev::finalize): Move cleanup of opts_obstack next to
33721 cleanup of save_decoded_options, clearing the latter, and
33722 save_decoded_options_count.
33723
33724 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33725
33726 PR target/69135
33727 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33728 attribute to unconditional. Remove %? from output template.
33729
33730 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33731 Jiong Wang <jiong.wang@arm.com>
33732
33733 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33734 generated from different expand order.
33735
33736 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33737
33738 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33739 Add support for CCMP costing.
33740
33741 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33742
33743 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33744 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33745 (fccmpe<mode>): Likewise.
33746 (fcmp): Rename to fcmp and globalize pattern.
33747 (fcmpe): Likewise.
33748 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33749 (aarch64_gen_ccmp_next): Add FP support.
33750
33751 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33752
33753 * target.def (gen_ccmp_first): Update documentation.
33754 (gen_ccmp_next): Likewise.
33755 * doc/tm.texi (gen_ccmp_first): Update documentation.
33756 (gen_ccmp_next): Likewise.
33757 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33758 expand_ccmp_expr_1. Improve comments.
33759 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33760 (ccmp_ior<mode>): Remove pattern.
33761 (cmp<mode>): Remove expand.
33762 (cmp): Globalize pattern.
33763 (cstorecc4): Use cc_register.
33764 (mov<mode>cc): Remove ccmp_cc_register check.
33765 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33766 Simplify after removal of CC_DNE/* modes.
33767 (aarch64_ccmp_mode_to_code): Remove.
33768 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33769 In 'k' case use integer as condition.
33770 (aarch64_nzcv_codes): Remove inverted cases.
33771 (aarch64_code_to_ccmode): Remove.
33772 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33773 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33774 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33775 pattern. Return the comparison with CC register. Invert conditions
33776 when bitcode is OR.
33777 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33778 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33779
33780 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33781
33782 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33783 instrumented_version.
33784
33785 2016-01-19 Richard Biener <rguenther@suse.de>
33786
33787 PR tree-optimization/69336
33788 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33789 handled components with get_ref_base_and_extent.
33790 (equal_mem_array_ref_p): Adjust.
33791
33792 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33793
33794 PR debug/65779
33795 * shrink-wrap.c: Include valtrack.h.
33796 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33797 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33798 in between insn and where it will be moved to. Call
33799 dead_debug_insert_temp.
33800 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33801 first and dead_debug_local_finish at the end.
33802 For uses and defs bitmap, handle all regs in between REGNO and
33803 END_REGNO, not just the first one.
33804
33805 2016-01-19 Richard Biener <rguenther@suse.de>
33806
33807 PR tree-optimization/69352
33808 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33809 (equal_mem_array_ref_p): Constrain size and max size properly.
33810 Compare the reverse flag.
33811
33812 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33813
33814 * ira.c (ira): Update regstat data if we deleted insns.
33815
33816 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33817
33818 PR rtl-optimization/68955
33819 PR rtl-optimization/64557
33820 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33821 here. Fix up formatting.
33822 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33823
33824 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33825
33826 PR lto/69133
33827 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33828 assume that the node has body.
33829 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33830 check.
33831
33832 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33833
33834 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33835 thunks.
33836
33837 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33838
33839 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33840 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33841
33842 2016-01-19 Martin Jambor <mjambor@suse.cz>
33843 Martin Liska <mliska@suse.cz>
33844 Michael Matz <matz@suse.de>
33845
33846 * Makefile.in (OBJS): Add new source files.
33847 (GTFILES): Add hsa.c.
33848 * common.opt (disable_hsa): New variable.
33849 (-Whsa): New warning.
33850 * config.in (ENABLE_HSA): New.
33851 * configure.ac: Treat hsa differently from other accelerators.
33852 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33853 $enable_offloading.
33854 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33855 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33856 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33857 --with-hsa-kmt-lib.
33858 * doc/invoke.texi (-Whsa): Document.
33859 (hsa-gen-debug-stores): Likewise.
33860 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33861 to invoke offload compiler for hsa acclerator.
33862 * opts.c (common_handle_option): Determine whether HSA offloading
33863 should be performed.
33864 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33865 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33866 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33867 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33868 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33869 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33870 GF_OMP_FOR_KIND_GRID_LOOP.
33871 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33872 (pp_gimple_stmt_1): Likewise.
33873 * gimple-walk.c (walk_gimple_stmt): Likewise.
33874 * gimple.c (gimple_build_omp_grid_body): New function.
33875 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33876 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33877 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33878 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33879 GF_OMP_TEAMS_GRID_PHONY.
33880 (gimple_statement_omp_single_layout): Updated comments.
33881 (gimple_build_omp_grid_body): New function.
33882 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33883 (gimple_omp_for_grid_phony): New function.
33884 (gimple_omp_for_set_grid_phony): Likewise.
33885 (gimple_omp_parallel_grid_phony): Likewise.
33886 (gimple_omp_parallel_set_grid_phony): Likewise.
33887 (gimple_omp_teams_grid_phony): Likewise.
33888 (gimple_omp_teams_set_grid_phony): Likewise.
33889 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33890 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33891 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33892 (BUILT_IN_GOMP_TARGET): Updated type.
33893 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33894 (adjust_for_condition): New function.
33895 (get_omp_for_step_from_incr): Likewise.
33896 (extract_omp_for_data): Moved parts to adjust_for_condition and
33897 get_omp_for_step_from_incr.
33898 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33899 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33900 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33901 (scan_omp_parallel): Do not create child functions for phony
33902 constructs.
33903 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33904 (scan_omp_1_op): Checking assert we are not remapping to
33905 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33906 (parallel_needs_hsa_kernel_p): New function.
33907 (expand_parallel_call): Register apprpriate parallel child
33908 functions as HSA kernels.
33909 (grid_launch_attributes_trees): New type.
33910 (grid_attr_trees): New variable.
33911 (grid_create_kernel_launch_attr_types): New function.
33912 (grid_insert_store_range_dim): Likewise.
33913 (grid_get_kernel_launch_attributes): Likewise.
33914 (get_target_argument_identifier_1): Likewise.
33915 (get_target_argument_identifier): Likewise.
33916 (get_target_argument_value): Likewise.
33917 (push_target_argument_according_to_value): Likewise.
33918 (get_target_arguments): Likewise.
33919 (expand_omp_target): Call get_target_arguments instead of looking
33920 up for teams and thread limit.
33921 (grid_expand_omp_for_loop): New function.
33922 (grid_arg_decl_map): New type.
33923 (grid_remap_kernel_arg_accesses): New function.
33924 (grid_expand_target_kernel_body): New function.
33925 (expand_omp): Call it.
33926 (lower_omp_for): Do not emit phony constructs.
33927 (lower_omp_taskreg): Do not emit phony constructs but create for them
33928 a temporary variable receiver_decl.
33929 (lower_omp_taskreg): Do not emit phony constructs.
33930 (lower_omp_teams): Likewise.
33931 (lower_omp_grid_body): New function.
33932 (lower_omp_1): Call it.
33933 (grid_reg_assignment_to_local_var_p): New function.
33934 (grid_seq_only_contains_local_assignments): Likewise.
33935 (grid_find_single_omp_among_assignments_1): Likewise.
33936 (grid_find_single_omp_among_assignments): Likewise.
33937 (grid_find_ungridifiable_statement): Likewise.
33938 (grid_target_follows_gridifiable_pattern): Likewise.
33939 (grid_remap_prebody_decls): Likewise.
33940 (grid_copy_leading_local_assignments): Likewise.
33941 (grid_process_kernel_body_copy): Likewise.
33942 (grid_attempt_target_gridification): Likewise.
33943 (grid_gridify_all_targets_stmt): Likewise.
33944 (grid_gridify_all_targets): Likewise.
33945 (execute_lower_omp): Call grid_gridify_all_targets.
33946 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33947 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33948 (tree_omp_clause): Added union field dimension.
33949 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33950 * tree.c (omp_clause_num_ops): Added number of arguments of
33951 OMP_CLAUSE__GRIDDIM_.
33952 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33953 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33954 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33955 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33956 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33957 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33958 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33959 * tree-pass.h (make_pass_gen_hsail): Declare.
33960 (make_pass_ipa_hsa): Likewise.
33961 * ipa-hsa.c: New file.
33962 * lto-section-in.c (lto_section_name): Add hsa section name.
33963 * lto-streamer.h (lto_section_type): Add hsa section.
33964 * timevar.def (TV_IPA_HSA): New.
33965 * hsa-brig-format.h: New file.
33966 * hsa-brig.c: New file.
33967 * hsa-dump.c: Likewise.
33968 * hsa-gen.c: Likewise.
33969 * hsa.c: Likewise.
33970 * hsa.h: Likewise.
33971 * toplev.c (compile_file): Call hsa_output_brig.
33972 * hsa-regalloc.c: New file.
33973
33974 2016-01-18 Jeff Law <law@redhat.com>
33975
33976 PR tree-optimization/69320
33977 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33978 ranged object, do nothing if the RHS constant is not [0..1].
33979 (optimize_stmt): Comparing a boolean ranged object against a
33980 constant outside [0..1] results in a compile-time constant.
33981
33982 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33983 test.
33984
33985 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33986
33987 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33988 (Option Summary): Update to reflect new section and moved options.
33989 (C++ Dialect Options): Move -fstats to new section.
33990 (Debugging Options): Move all dump, statistics, and other GCC
33991 developer options to new section. Rewrite section introduction
33992 and re-order remaining options to put the more basic ones first.
33993 (Optimization Options): Move -fira-verbose and -flto-report* to
33994 new section.
33995 (Developer Options): New section incorporating moved options.
33996 * doc/cppopts.texi (-dM): Update cross-reference.
33997
33998 2016-01-18 Richard Henderson <rth@redhat.com>
33999
34000 PR target/69176
34001 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34002 operands to pseudo only if CSE is expected. Split long immediate
34003 operands only after reload, and for the stack pointer.
34004 (*add<GPI>3_pluslong): Remove.
34005 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34006 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34007 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34008 (*add<GPI>3 peepholes): New.
34009 (*add<GPI>3 splitters): New.
34010 * config/aarch64/constraints.md (Upl): New.
34011 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34012
34013 2016-01-18 Richard Biener <rguenther@suse.de>
34014
34015 PR tree-optimization/69297
34016 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34017 stmt at most once.
34018 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34019
34020 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34021
34022 PR middle-end/68542
34023 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34024 of mixind vector and scalar types.
34025 (fold_relational_const): Add handling of vector
34026 comparison with boolean result.
34027 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34028 comparison of vector operands with boolean result for EQ/NE only.
34029 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34030 (verify_gimple_cond): Likewise.
34031 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34032 valid type of VAL.
34033
34034 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34035
34036 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34037 !TARGET_OCTEON.
34038
34039 2016-01-18 Richard Biener <rguenther@suse.de>
34040
34041 PR middle-end/69308
34042 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34043
34044 2016-01-18 Tom de Vries <tom@codesourcery.com>
34045
34046 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34047
34048 2016-01-18 Tom de Vries <tom@codesourcery.com>
34049
34050 * omp-low.c (set_oacc_fn_attrib): Make extern.
34051 * omp-low.h (set_oacc_fn_attrib): Declare.
34052 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34053 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34054 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34055 Add and handle function parameter oacc_kernels_p.
34056 (find_reduc_addr, get_omp_data_i_param): New function.
34057 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34058 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34059 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34060 Calculate dominance info. Skip loops that are not in a kernels region
34061 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34062 (pass_parallelize_loops::execute): Call parallelize_loops with
34063 oacc_kernels_p argument.
34064 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34065 New member function.
34066 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34067 * passes.def: Add argument to pass_parallelize_loops instantation.
34068
34069 2016-01-18 Tom de Vries <tom@codesourcery.com>
34070
34071 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34072 pass_parallelize_loops to be run outside the loop pipeline.
34073
34074 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34075
34076 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34077 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34078
34079 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34080
34081 PR target/63679
34082 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34083 using get_ref_base_and_extent.
34084 (equal_mem_array_ref_p): New.
34085 (hashable_expr_equal_p): Add call to previous.
34086
34087 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34088
34089 PR target/63679
34090 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34091 (sra_initialize): Allocate disqualified_constants.
34092 (sra_deinitialize): Free disqualified_constants.
34093 (disqualify_candidate): Update disqualified_constants when appropriate.
34094 (create_access): Scan for constant-pool entries as we go along.
34095 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34096 (maybe_add_sra_candidate): Allow constant-pool entries.
34097 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34098 (initialize_constant_pool_replacements): New.
34099 (sra_modify_assign): Avoid mangling assignments created by previous,
34100 and don't generate writes into constant pool.
34101 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34102
34103 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34104
34105 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34106 andnot instruction.
34107 (scalar_chain::convert_op): Likewise.
34108 * config/i386/i386.md (*andndi3_doubleword): New.
34109
34110 2016-01-18 Richard Biener <rguenther@suse.de>
34111
34112 PR tree-optimization/69170
34113 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34114 building a vector from scalar results of a pattern stmt.
34115
34116 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34117
34118 * haifa-sched.c (autopref_multipass_init): Work around
34119 -Wmaybe-uninitialized warning.
34120
34121 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34122
34123 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34124 against the constant 0.
34125
34126 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34127
34128 PR tree-optimization/68799
34129 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34130 look up phi candidates in the statement-candidate map.
34131 (phi_add_costs): Likewise.
34132 (record_phi_increments): Likewise.
34133 (phi_incr_cost): Likewise.
34134 (ncd_with_phi): Likewise.
34135 (all_phi_incrs_profitable): Likewise.
34136
34137 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34138
34139 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34140 -Wmaybe-uninitialized warning.
34141
34142 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34143
34144 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34145 (Option Summary): Update to reflect new section and moved options.
34146 (C++ Dialect Options): Move -fvtable-verify and related options.
34147 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34148 and profiling-related options.
34149 (Optimization Options): Move profile generation options and
34150 -fstack-protector and related options.
34151 (Instrumentation Options): New section incorporating moved options.
34152 (Code Generation Options): Move -finstrument-functions and
34153 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34154
34155 2016-01-16 Tom de Vries <tom@codesourcery.com>
34156
34157 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34158
34159 2016-01-16 Tom de Vries <tom@codesourcery.com>
34160
34161 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34162
34163 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34164
34165 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34166 that checks whether the table is already empty. Rename the
34167 original implementation to...
34168 (hash_table::empty_slot): ...this new private function.
34169
34170 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34171
34172 PR diagnostic/68899
34173 * diagnostic-show-locus.c (layout::print_source_line): Move x
34174 offset of line until after call to
34175 get_line_width_without_trailing_whitespace.
34176
34177 2016-01-15 Jeff Law <law@redhat.com>
34178
34179 PR tree-optimization/69270
34180 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34181 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34182 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34183 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34184 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34185 ssa_name_has_boolean_range and constant_boolean_node.
34186
34187 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34188
34189 PR rtl-optimization/69030
34190 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34191 returning bool.
34192 (spill_pseudos): Delete debug insn for dead pseudo.
34193 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34194
34195 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34196
34197 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34198 New.
34199 (TYPES_UNOPUS): Likewise.
34200 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34201 builtin type, from UNOP to UNOPUS.
34202 (lbtruncuv4sf): Likewise.
34203 (lbtruncuv2df): Likewise.
34204 (lrounduv2sf): Likewise.
34205 (lrounduv4sf): Likewise.
34206 (lrounduv2df): Likewise.
34207 (lroundusf): Likewise.
34208 (lroundusf): Likewise.
34209 (lceiluv2sf): Likewise.
34210 (lceiluv4sf): Likewise.
34211 (lceiluv2df): Likewise.
34212 (lceilusf): Likewise.
34213 (lceiludf): Likewise.
34214 (lflooruv2sf): Likewise.
34215 (lflooruv4sf): Likewise.
34216 (lflooruv2df): Likewise.
34217 (lfloorusf): Likewise.
34218 (lfloorudf): Likewise.
34219 (lfrintnuv2sf): Likewise.
34220 (lfrintnuv4sf): Likewise.
34221 (lfrintnuv2df): Likewise.
34222 (lfrintnusf): Likewise.
34223 (lfrintnudf): Likewise.
34224 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34225 conversion.
34226 (vcvtq_u32_f32): Likewise.
34227 (vcvtq_u64_f64): Likewise.
34228 (vcvta_u32_f32): Likewise.
34229 (vcvtaq_u32_f32): Likewise.
34230 (vcvtaq_u64_f64): Likewise.
34231 (vcvtm_u32_f32): Likewise.
34232 (vcvtmq_u32_f32): Likewise.
34233 (vcvtmq_u64_f64): Likewise.
34234 (vcvtn_u32_f32): Likwise.
34235 (vcvtnq_u32_f32): Likewise.
34236 (vcvtnq_u64_f64): Likewise.
34237 (vcvtp_u32_f32): Likewise.
34238 (vcvtpq_u32_f32): Likewise.
34239 (vcvtpq_u64_f64): Likewise.
34240 (vcvtmd_u64_f64): Likewise.
34241 (vcvtms_u32_f32): Likewise.
34242 (vcvtad_u64_f64): Likewise.
34243 (vcvtas_u32_f32): Likewise.
34244 (vcvtnd_u64_f64): Likewise.
34245 (vcvtns_u32_f32): Likewise.
34246 (vcvtpd_u64_f64): Likewise.
34247 (vcvtps_u32_f32): Likewise.
34248
34249 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34250
34251 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34252 CSEL of zero_extended registers.
34253
34254 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34255
34256 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34257 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34258
34259 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34260
34261 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34262 false when argument string is not found in the attributes table
34263 at all.
34264
34265 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34266
34267 PR target/68609
34268 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34269 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34270 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34271 precision estimate.
34272
34273 2016-01-15 Richard Biener <rguenther@suse.de>
34274
34275 PR tree-optimization/66856
34276 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34277 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34278 (vect_create_new_slp_node): Increment stmt reference count.
34279 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34280 an SLP tree before swapping operands.
34281 (vect_build_slp_tree): Likewise.
34282 (destroy_bb_vec_info): Free stmt info after SLP instances.
34283 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34284 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34285 (STMT_VINFO_NUM_SLP_USES): New macro.
34286
34287 2016-01-15 Richard Biener <rguenther@suse.de>
34288
34289 PR debug/69137
34290 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34291 (add_linkage_name): ... here.
34292 (gen_typedef_die): Use add_linkage_name_raw instead of
34293 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34294 if necessary.
34295
34296 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34297
34298 * gimplify.c (oacc_default_clause): Decode reference and pointer
34299 types for both kernels and parallel regions.
34300
34301 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34302
34303 PR middle-end/69246
34304 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34305
34306 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34307
34308 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34309 (convert_scalars_to_vector): Likewise.
34310
34311 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34312
34313 * doc/extend.texi (Type Traits): Fix grammar.
34314
34315 2016-01-15 Martin Jambor <mjambor@suse.cz>
34316
34317 * tree-inline.c (remap_decl): Use existing dclarations if
34318 remapping a type and prevent_decl_creation_for_types.
34319 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34320 decls first. Do real remapping with
34321 prevent_decl_creation_for_types set.
34322 * tree-inline.h (copy_body_data): New field
34323 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34324 padding.
34325
34326 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34327
34328 * config/s390/s390.opt (mmvcle): More verbose help text.
34329
34330 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34331
34332 * config/s390/s390.opt: Add period to -mzvector option text.
34333
34334 2016-01-15 Richard Biener <rguenther@suse.de>
34335
34336 PR tree-optimization/68961
34337 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34338 of invariants in stores again.
34339
34340 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34341
34342 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34343
34344 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34345
34346 * config/i386/i386.c (ix86_expand_branch): Don't split
34347 DI mode xor instruction to SI mode.
34348
34349 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34350
34351 PR ipa/68148
34352 * ipa-icf.c (sem_function::merge): Virtual functions may become
34353 reachable even if they address is not taken and there are no
34354 idrect calls.
34355
34356 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34357
34358 * lto-streamer-out.c (subtract_estimated_size): New function.
34359 (get_symbol_initial_value): Use it.
34360
34361 2016-01-15 Christian Bruel <christian.bruel@st.com>
34362
34363 PR target/65837
34364 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34365 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34366 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34367 use add_builtin_function_ext_scope instead of add_builtin_function.
34368 (neon_set_p, neon_crypto_set_p): Remove.
34369 (arm_init_builtins): Always call arm_init_neon_builtins and
34370 arm_init_crypto_builtins.
34371 (arm_expand_builtin): Check that builtins are allowed for the arch.
34372 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34373 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34374 arm_init_neon_builtins call.
34375
34376 2016-01-15 Richard Biener <rguenther@suse.de>
34377
34378 PR tree-optimization/69117
34379 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34380 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34381 of the leader conservatively.
34382 (free_scc_vn): Restore original SSA name infos.
34383
34384 2016-01-14 Jeff Law <law@redhat.com>
34385
34386 PR tree-optimization/69270
34387 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34388 single bit of precision, verify it's also unsigned.
34389 (record_edge_info): Use constant_boolean_node rather than fold_convert
34390 to convert boolean_true/boolean_false to the right type.
34391
34392 2016-01-14 Richard Henderson <rth@redhat.com>
34393
34394 PR rtl-opt/69014
34395 * loop-doloop.c (record_reg_sets): New.
34396 (doloop_optimize): Reject the transform if the sequence
34397 clobbers registers live at the end of the loop block.
34398 (doloop_optimize_loops): Enable df_live if needed.
34399
34400 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34401
34402 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34403 * config/rs6000/rs6000.c: Likewise.
34404 * config/rs6000/rs6000.h: Likewise.
34405 * config/rs6000/rs6000.md: Likewise.
34406 * doc/extend.texi: Likewsie.
34407
34408 2016-01-14 Jeff Law <law@redhat.com>
34409
34410 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34411 typo.
34412
34413 2016-01-14 Richard Henderson <rth@redhat.com>
34414
34415 PR c/69272
34416 PR tree-opt/68964
34417 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34418 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34419 instead of builtin_decl_declared_p to test for declaration.
34420
34421 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34422
34423 * doc/loop.texi (Loop Analysis and Representation): Document
34424 loop_depth function.
34425
34426 2016-01-14 Tom de Vries <tom@codesourcery.com>
34427
34428 PR tree-optimization/68773
34429 * omp-low.c (expand_omp_target): Don't set force_output.
34430 * varpool.c (varpool_node::get_create): Same.
34431 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34432 offload_funcs with force_output.
34433
34434 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34435
34436 PR debug/69244
34437 * lra-eliminations.c (move_plus_up): Don't change anything if either
34438 the outer or inner subreg mode is not MODE_INT.
34439 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34440 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34441
34442 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34443
34444 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34445 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34446 reduc_uplus_@var{m}): Remove.
34447 * expr.c (expand_expr_real_2): Remove expansion path for
34448 reduc_[us](min|max|plus) optabs.
34449 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34450 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34451 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34452 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34453 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34454 reduc_[us](min|max|plus) optabs.
34455
34456 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34457
34458 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34459 (reduc_plus_scal_v2sf): New.
34460 (reduc_smax_v2sf): Rename to...
34461 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34462 (reduc_smin_v2sf): Rename to...
34463 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34464
34465 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34466
34467 * alias.c (compare_base_symbol_refs): New function.
34468 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34469 it.
34470
34471 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34472
34473 PR middle-end/68146
34474 PR tree-optimization/69155
34475 * tree-complex.c: Include cfganal.h.
34476 (phis_to_revisit): New variable.
34477 (extract_component): Add phiarg_p argument. Assert that returned
34478 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34479 (update_phi_components): Partly rewrite to use loop over real/imag
34480 components instead of code duplication. If extract_component returns
34481 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34482 create_tmp_reg into the PHI node instead, and mention the phi triplet
34483 in phis_to_revisit.
34484 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34485 in phis_to_revisit at the end.
34486
34487 2016-01-14 Richard Biener <rguenther@suse.de>
34488
34489 PR tree-optimization/68060
34490 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34491 outer loop reduction is only used in the inner loop before
34492 detecting a double reduction.
34493
34494 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34495
34496 PR target/68269
34497 * combine.c (expand_field_assignment): Punt if compute_mode is
34498 unsupported scalar mode.
34499
34500 2016-01-14 Richard Biener <rguenther@suse.de>
34501
34502 PR tree-optimization/66856
34503 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34504 SLP node only if it built successfully.
34505 (vect_analyze_slp_instance): Adjust.
34506
34507 2016-01-14 Jeff Law <law@redhat.com>
34508
34509 PR tree-optimization/69270
34510 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34511 (record_edge_info): Use it. Convert boolean_{true,false}_node
34512 to the type of op0.
34513
34514 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34515
34516 PR ipa/66487
34517 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34518 use block_ultimate_origin
34519 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34520
34521 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34522
34523 * doc/invoke.texi (Submodel Options): Rename section to
34524 "Machine-Dependent Options" to better reflect its content.
34525 Rewrite introductory text to remove archaic CPU names.
34526 Update references.
34527
34528 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34529
34530 * doc/invoke.texi (Code Gen Options): Move section up in file,
34531 before target-specific options. Update menu and option summary
34532 to reflect the new section ordering.
34533
34534 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34535
34536 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34537 (C++ Dialect Options): Add cross-reference to -std option.
34538 * doc/standards.texi (C++ Language): Document C++14 support.
34539
34540 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34541
34542 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34543 for pack/unpack functions for __ibm128.
34544 (PACK_IF): Likewise.
34545 (UNPACK_IF): Likewise.
34546
34547 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34548 support for __ibm128 pack/unpack functions.
34549 (rs6000_invalid_builtin): Likewise.
34550 (rs6000_init_builtins): Likewise.
34551 (rs6000_opt_masks): Likewise.
34552
34553 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34554 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34555 functions
34556 (RS6000_BTM_COMMON): Likewise.
34557
34558 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34559 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34560 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34561 128-bit floating point. Add support for the double values to be
34562 in Altivec registers for TF/IF packing and unpacking, but restrict
34563 TD packing sub-fields to be FPR registers. Don't allow overlapped
34564 register support for packing. Allow pack inputs to be memory
34565 locations. Don't build generator functions for unpack<mode>_dm
34566 and unpack<mode>_nodm.
34567 (unpack<mode>_dm): Likewise.
34568 (unpack<mode>_nodm): Likewise.
34569 (pack<mode>): Likewise.
34570
34571 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34572 built-in functions to pack/unpack explicit __ibm128 values.
34573 (__builtin_unpack_ibm128): Likewise.
34574
34575 * doc/extend.texi (PowerPC Built-in Functions): Document
34576 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34577
34578 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34579
34580 PR c/66208
34581 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34582 Add new arg loc and pass it down as context.
34583 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34584 to the location to use for the warning.
34585 (check_function_arguments): New arg loc. All callers changed. Pass
34586 it to check_function_nonnull.
34587 * c-common.h (check_function_arguments): Adjust declaration.
34588
34589 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34590
34591 PR tree-optimization/69156
34592 * gimple.c (validate_type): Removed.
34593 (gimple_builtin_call_types_compatible_p): Use
34594 useless_type_conversion_p instead of validate_type.
34595 * value-prof.c (gimple_stringop_fixed_value): Fold
34596 icall_size to correct type.
34597
34598 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34599
34600 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34601 effects.
34602
34603 2016-01-13 Richard Henderson <rth@redhat.com>
34604
34605 PR tree-opt/68964
34606 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34607 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34608 (ix86_builtin_tm_store): Remove.
34609 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34610 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34611 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34612 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34613 * doc/tm.texi: Rebuild.
34614
34615 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34616 (BUILT_IN_TM_MEMCPY_RTWN): New.
34617 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34618 fallback from vector to integer helpers.
34619 (build_tm_load): Handle vector types directly, instead of
34620 via target hook.
34621 (build_tm_store): Likewise.
34622 (expand_assign_tm): Prepare for register types not handled by
34623 the above. Copy them to memory and use memcpy.
34624 * tree.c (tm_define_builtin): New.
34625 (find_tm_vector_type): New.
34626 (build_tm_vector_builtins): New.
34627 (build_common_builtin_nodes): Call it.
34628
34629 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34630
34631 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34632 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34633
34634 2016-01-13 Tom de Vries <tom@codesourcery.com>
34635
34636 PR tree-optimization/69169
34637 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34638 handled_struct_type param.
34639 (create_variable_info_for, intra_create_variable_infos): Call
34640 create_variable_info_for_1 with extra arg.
34641
34642 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34643
34644 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34645 and "armv8.1-a+crc" entries.
34646
34647 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34648
34649 PR target/69228
34650 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34651 Change first operand predicate from register_or_constm1_operand
34652 to register_operand.
34653 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34654 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34655 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34656 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34657 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34658 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34659 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34660 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34661 comparison with constm1_rtx from vec_prefetch_gen part.
34662
34663 2016-01-13 Richard Biener <rguenther@suse.de>
34664
34665 PR tree-optimization/69013
34666 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34667 Exchange assert for a test.
34668
34669 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34670
34671 PR target/69247
34672 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34673
34674 2016-01-13 Richard Biener <rguenther@suse.de>
34675
34676 PR tree-optimization/69242
34677 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34678 assert with a check.
34679
34680 2016-01-13 Richard Biener <rguenther@suse.de>
34681
34682 PR tree-optimization/69186
34683 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34684 Properly guard vect_update_misalignment_for_peel call.
34685
34686 2016-01-12 Jeff Law <law@redhat.com>
34687
34688 PR tree-optimization/pr67755
34689 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34690 "need_profile_correction".
34691 (thread_block_1): Initialize new field to false by default. If we
34692 have multiple thread paths through a common joiner to different
34693 final targets, then set new field to true.
34694 (compute_path_counts): Only do count adjustment when it's really
34695 needed.
34696
34697 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34698
34699 * doc/invoke.texi (Spec Files): Move section down in file, past
34700 all command-line option descriptions.
34701
34702 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34703
34704 PR middle-end/54809
34705 * doc/gty.texi: Remove documentation of mark_hook.
34706 * gengtype.c (struct write_types_data): Remove code to support
34707 mark_hook attribute.
34708 (walk_type): Likewise.
34709 (write_func_for_structure): Likewise.
34710
34711 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34712
34713 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34714 Directory Options, and -specs= to Overall Options.
34715 (Overall Options): Adjust similarly. Reorder to group related
34716 options together. Make -specs= cross-reference the spec file details.
34717 (Directory Options): Adjust similarly.
34718
34719 2016-01-12 Jeff Law <law@redhat.com>
34720
34721 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34722
34723 2016-01-12 Olivier Hainque <hainque@adacore.com>
34724
34725 * gcc.c (spec_undefvar_allowed): New global.
34726 (process_command): Set to true when running for --version or --help,
34727 alone or together.
34728 (getenv_spec_function): When the variable is not defined, use the
34729 variable name as the variable value if we're allowed not to issue
34730 a fatal error.
34731
34732 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34733
34734 PR tree-optimization/68911
34735 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34736 information computed for expression "init + nit * step".
34737
34738 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34739
34740 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34741 about name of GCC executable. Remove deleted node from menu.
34742 (Directory Options) <-B>: Remove cross-reference to deleted node.
34743 (Target Options): Delete section.
34744
34745 2016-01-12 Christian Bruel <christian.bruel@st.com>
34746
34747 PR target/69180
34748 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34749 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34750
34751 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34752
34753 PR target/69198
34754 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34755 aligned_mem is properly set for AVX512-VL floating point masked
34756 stores.
34757
34758 PR target/69175
34759 * ifcvt.c (cond_exec_process_if_block): When removing the last
34760 insn from then_bb, remove also any possible barriers that follow it.
34761
34762 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34763
34764 PR target/68456
34765 PR target/69226
34766 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34767 (PTRDIFF_TYPE): Likewise.
34768 (WCHAR_TYPE): Likewise.
34769 (WCHAR_TYPE_SIZE): Likewise.
34770 (STDINT_LONG32): Likewise.
34771
34772 2016-01-12 Richard Biener <rguenther@suse.de>
34773
34774 PR tree-optimization/69053
34775 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34776 convert initial value for cond reductions.
34777
34778 2016-01-12 Richard Biener <rguenther@suse.de>
34779
34780 PR tree-optimization/69007
34781 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34782 widen_sum after dot_prod and sad.
34783
34784 2016-01-12 Richard Biener <rguenther@suse.de>
34785
34786 PR tree-optimization/69168
34787 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34788 pattern stmt SLP type.
34789 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34790 end up unused so cope with that case.
34791
34792 2016-01-12 Richard Biener <rguenther@suse.de>
34793
34794 PR tree-optimization/69157
34795 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34796 stmts def type only during analyze phase.
34797 (vectorizable_call): Likewise.
34798 (vectorizable_simd_clone_call): Likewise.
34799 (vectorizable_conversion): Likewise.
34800 (vectorizable_assignment): Likewise.
34801 (vectorizable_shift): Likewise.
34802 (vectorizable_operation): Likewise.
34803 (vectorizable_store): Likewise.
34804 (vectorizable_load): Likewise.
34805
34806 2016-01-12 Richard Biener <rguenther@suse.de>
34807
34808 PR tree-optimization/69174
34809 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34810 space.
34811 (vectorizable_load): Properly compute the number of loads needed
34812 for permuted strided SLP loads and do not spuriously assign
34813 to SLP_TREE_VEC_STMTS.
34814
34815 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34816
34817 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34818 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34819 (MD_EXEC_PREFIX): Remove.
34820 (MD_STARTFILE_PREFIX) Removee.
34821 (FILE_NAME_ABSOLUTE_P): Remove.
34822 (CPP_SPEC): Do not read macros from sys/version.h.
34823 (LINK_COMMAND_SPEC): Remove.
34824 (LOCAL_INCLUDE_DIR): Remove.
34825 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34826 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34827 (POST_LINK_SPEC): Define to invoke stubify after linker
34828 (LIBSTDCXX): Remove define
34829 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34830 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34831 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34832 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34833 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34834 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34835 (i386_djgpp_asm_named_section): Add propotype of new procedure
34836
34837 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34838 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34839 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34840 in config/i386/djgpp.h).
34841 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34842 STANDARD_STARTFILE_PREFIX_1.
34843 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34844 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34845 installation errors.
34846 (MAX_OFILE_ALIGNMENT): Define to 128.
34847 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34848
34849 * config/i386/djgpp.c: New file. Add implementation of
34850 i386_djgpp_asm_named_section.
34851
34852 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34853
34854 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34855 Add rule for building djgpp.o.
34856
34857 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34858
34859 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34860 (rtx_is_swappable_p): Reductions are swappable.
34861 (insn_is_swappable_p): V2DF reductions are swappable.
34862
34863 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34864
34865 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34866 reloads for other unsupported memory operands.
34867
34868 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34869 Jim Wilson <jim.wilson@linaro.org>
34870
34871 PR target/69194
34872 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34873 copy_to_mode_reg instead of force_reg.
34874
34875 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34876
34877 PR target/69225
34878 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34879 TARGET_80387 is true.
34880
34881 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34882
34883 PR target/69071
34884 * lra-eliminations.c (move_plus_up): Only move plus up
34885 if subreg of the constant can be simplified into constant
34886 and use the simplified subreg of the constant instead of
34887 the original constant.
34888
34889 * fold-const.c (fold_convertible_p): Don't return true
34890 for conversion of VECTOR_TYPE to same sized integral type.
34891 (fold_convert_loc): Fix up formatting. Fold conversion of
34892 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34893 instead of NOP_EXPR.
34894
34895 PR tree-optimization/69214
34896 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34897 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34898 Formatting fix.
34899
34900 PR tree-optimization/69207
34901 * tree-vect-slp.c (vect_get_constant_vectors): For
34902 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34903 fold_convertible_p to vector_type's element type, and always
34904 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34905
34906 2016-01-11 Richard Biener <rguenther@suse.de>
34907
34908 PR tree-optimization/69173
34909 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34910 fixup the cycle if all stmts are in a pattern.
34911
34912 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34913
34914 PR middle-end/68999
34915 * alias.c (base_alias_check): Move check for addresses with
34916 alignment ANDs before the call for compare_base_decls.
34917 (memrefs_conflict_p): Return -1 for different decls
34918 that went through alignment adjustments.
34919
34920 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34921
34922 PR rtl-optimization/68796
34923 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34924 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34925 and QImode comparisons against zero with CC_NZmode.
34926 * config/aarch64/iterators.md (short_mask): New mode_attr.
34927
34928 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34929
34930 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34931 (<avx512>_store<mode>_mask): Likewise.
34932
34933 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34934 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34935
34936 PR rtl-optimization/68841
34937 * ifcvt.c (struct noce_if_info): Add orig_x field.
34938 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34939 Don't record conflicts on to_rename if it's present.
34940 Allow memory destinations in sets.
34941 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34942 blocks, passing orig_x to the checks.
34943 (noce_process_if_block): Set if_info->orig_x appropriately.
34944
34945 2016-01-11 Tom de Vries <tom@codesourcery.com>
34946
34947 PR tree-optimization/69069
34948 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34949
34950 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34951
34952 PR rtl-optimization/68920
34953 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34954 of conditional moves for RTL if-conversion to 1 for
34955 TARGET_ONE_IF_CONV_INSN.
34956 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34957 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34958 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34959 parameter to restirct number of conditional moves for
34960 RTL if-conversion.
34961 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34962 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34963 conditionl moves.
34964
34965 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34966
34967 PR bootstrap/69123
34968 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34969 onepart vars. Fix typo in comment. Fix reversed condition in
34970 unshare test.
34971 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34972
34973 PR bootstrap/69123
34974 * var-tracking.c (dump_onepart_variable_differences): New.
34975 (dataflow_set_different): If a detailed dump is requested,
34976 delay early returns and dump differences between onepart
34977 variables present before and after, and added variables.
34978
34979 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34980
34981 PR target/69010
34982 * expr.c (expand_expr_real_1): For boolean vector constants
34983 with a scalar mode use const_scalar_mask_from_tree.
34984 (const_scalar_mask_from_tree): New.
34985 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34986 assigned to a mask type to handle constants.
34987
34988 2016-01-11 Martin Jambor <mjambor@suse.cz>
34989
34990 PR ipa/69044
34991 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34992 useless parameters if we cannot change function signature.
34993
34994 2016-01-11 Martin Jambor <mjambor@suse.cz>
34995
34996 PR ipa/66616
34997 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34998 flag.
34999
35000 2016-01-11 Tom de Vries <tom@codesourcery.com>
35001
35002 PR tree-optimization/69109
35003 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35004 latch with phi.
35005
35006 2016-01-11 Tom de Vries <tom@codesourcery.com>
35007
35008 PR tree-optimization/69108
35009 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35010 res is not used in a phi.
35011
35012 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35013
35014 PR 67425
35015 * common.opt (frandom-seed): Fix parameter name.
35016 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35017
35018 2016-01-11 Tom de Vries <tom@codesourcery.com>
35019
35020 PR tree-optimization/69058
35021 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35022 not supported.
35023
35024 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35025
35026 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35027 (mcode-density): Likewise.
35028
35029 2016-01-10 Tom de Vries <tom@codesourcery.com>
35030
35031 PR tree-optimization/69062
35032 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35033 (parallelize_loops): Don't paralelize loop that has phi with address
35034 arg.
35035
35036 2016-01-10 Tom de Vries <tom@codesourcery.com>
35037
35038 PR tree-optimization/69039
35039 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35040 phi for reduction.
35041
35042 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35043
35044 PR middle-end/68743
35045 * match.pd: Require target has function_c99_misc before doing
35046 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35047
35048 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35049
35050 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35051 use GMPINC.
35052 * configure: Regenerate.
35053
35054 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35055
35056 PR middle-end/50865
35057 PR tree-optimization/69097
35058 * fold-const.h (expr_not_equal_to): New prototype.
35059 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35060 (expr_not_equal_to): New function.
35061 * match.pd (X % -Y is the same as X % Y): Don't optimize
35062 unless X is known not to be equal to minimum or Y is known
35063 not to be equal to -1.
35064 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35065 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35066 (simplify_stmt_using_ranges): Adjust caller.
35067 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35068 substitute_and_fold.
35069
35070 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35071
35072 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35073 w/o DECL_NAME.
35074
35075 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35076
35077 PR tree-optimization/69167
35078 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35079 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35080 ops[0] comparison.
35081 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35082
35083 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35084 Richard Biener <rguenther@suse.de>
35085
35086 PR tree-optimization/68707
35087 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35088 instances that can be handled via vect_load_lanes.
35089
35090 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35091
35092 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35093 if we can't determine address equivalence.
35094 * alias.c (compare_base_decl): Update for changed return value of
35095 symtab_node::equal_address_to.
35096
35097 2016-01-08 Jason Merrill <jason@redhat.com>
35098
35099 PR c++/68983
35100 PR c++/67557
35101 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35102 * expr.c (store_field): Not here.
35103 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35104 call with TREE_ADDRESSABLE type.
35105 * tree-cfg.c (verify_gimple_call): Adjust.
35106
35107 2016-01-08 Olivier Hainque <hainque@adacore.com>
35108
35109 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35110 libc_internal.
35111
35112 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35113
35114 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35115 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35116 (reduc_smin_v2sf): Rename to...
35117 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35118 (reduc_splus_v2sf): Rename to...
35119 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35120
35121 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35122
35123 PR tree-optimization/69162
35124 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35125 valist argument in another argument.
35126 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35127 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35128 to determine the va_list type, build a MEM_REF instead of
35129 build_fold_indirect_ref.
35130
35131 PR tree-optimization/69172
35132 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35133 gimple_build.
35134
35135 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35136
35137 PR tree-optimization/67781
35138 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35139 and cmpnop in two steps: first the ones not accessed in original
35140 gimple expression in a endian independent way and then the ones not
35141 accessed in the final result in an endian-specific way.
35142
35143 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35144
35145 PR tree-optimization/69083
35146 * tree-vect-slp.c (vect_get_constant_vectors): For
35147 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35148 element type. If op is fold_convertible_p to vector_type's element
35149 type, use NOP_EXPR instead of VCE.
35150
35151 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35152
35153 PR rtl-optimization/67778
35154 PR rtl-optimization/68634
35155 PR rtl-optimization/68909
35156 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35157 block from the stack until done with it. Remove a superfluous
35158 bitmap set. Remove a superfluous bitmap test.
35159
35160 2016-01-07 Martin Sebor <msebor@redhat.com>
35161
35162 PR c/68966
35163 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35164 constraint on the type of arguments.
35165
35166 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35167
35168 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35169 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35170 unaligned_access on the gcc_options set.
35171 * config/arm/arm.c (arm_option_override_internal): Use
35172 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35173
35174 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35175
35176 PR target/69140
35177 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35178 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35179
35180 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35181
35182 Revert
35183 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35184
35185 PR target/69140
35186 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35187 depending on frame_pointer_needed before remaining integer and SSE
35188 registers are saved.
35189
35190 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35191
35192 PR 1078
35193 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35194
35195 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35196
35197 PR target/69171
35198 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35199 Use the "xBm" constraint.
35200 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35201 Likewise.
35202 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35203 (sse_cvtsi2ssq<round_name>): Likewise.
35204 (sse_cvtss2si<round_name>): Likewise.
35205 (sse_cvtss2siq<round_name>): Likewise.
35206 (sse2_cvtsi2sdq<round_name>): Likewise.
35207 (sse2_cvtsd2si<round_name>): Likewise.
35208 (sse2_cvtsd2siq<round_name>): Likewise.
35209 * config/i386/subst.md (round_nimm_scalar_predicate): New
35210 predicate.
35211
35212 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35213
35214 PR middle-end/67639
35215 * varasm.c (make_decl_rtl): Mark invalid register vars as
35216 DECL_EXTERNAL.
35217
35218 PR rtl-optimization/66206
35219 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35220 All callers changed.
35221
35222 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35223
35224 PR tree-optimization/69141
35225 * tree-ssa-pre.c: Include langhooks.h.
35226 (eliminate_dom_walker::before_dom_children): Use
35227 lang_hooks.decl_printable_name instead of
35228 cgraph_node::get ()->name ().
35229
35230 PR middle-end/68960
35231 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35232 it and DECL_ALIGN too.
35233
35234 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35235
35236 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35237
35238 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35239
35240 PR target/69140
35241 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35242 depending on frame_pointer_needed before remaining integer and SSE
35243 registers are saved.
35244
35245 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35246
35247 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35248 mode iterator with VSX_M2.
35249 (*p9_vecstore_<mode>): Likewise.
35250 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35251 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35252 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35253 (define_split for VSX_LE128 stores): Likewise.
35254 (define_peephole2 for TImode LE swaps): Likewise.
35255 (define_split for VSX_LE128 post-reload stores): Likewise.
35256
35257 2016-01-06 Marek Polacek <polacek@redhat.com>
35258
35259 PR sanitizer/69099
35260 * convert.c (convert_to_integer_1): Adjust call to
35261 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35262 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35263 EXPR instead of ARG.
35264 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35265
35266 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35267
35268 PR 1078
35269 * doc/extend.texi (RL78 Variable Attributes): New section.
35270
35271 2016-01-05 Marek Polacek <polacek@redhat.com>
35272
35273 PR c/69104
35274 * builtins.c (get_memmodel): Use expansion point location rather than
35275 the input location. Call warning_at rather than warning.
35276 (expand_builtin_atomic_compare_exchange): Likewise.
35277 (expand_builtin_atomic_load): Likewise.
35278 (expand_builtin_atomic_store): Likewise.
35279 (expand_builtin_atomic_clear): Likewise.
35280
35281 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35282
35283 PR target/68991
35284 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35285 Replace nonimmediate_operand with vector_operand.
35286 * config/i386/predicates.md (vector_operand): New predicate.
35287 (general_vector_operand): Replace nonimmediate_operand with
35288 vector_operand.
35289 * config/i386/sse.md: Replace nonimmediate_operand with
35290 vector_operand and m constraint with Bm constraint on SSE
35291 patterns with 16-byte memory operand.
35292 * config/i386/subst.md (round_nimm_predicate): Replace
35293 nonimmediate_operand with vector_operand.
35294 (round_saeonly_nimm_predicate): Likewise.
35295 (round_saeonly_nimm_scalar_predicate): New.
35296
35297 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35298
35299 PR target/68991
35300 * config/i386/constraints.md (Bm): New constraint.
35301 * config/i386/predicates.md (vector_memory_operand): New
35302 predicate.
35303 * config/i386/sse.md: Replace xm with xBm in plusminus and
35304 any_logic patterns.
35305
35306 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35307
35308 PR 1078
35309 * doc/extend.texi (V850 Function Attributes): New section.
35310 (V850 Variable Attributes): New section.
35311
35312 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35313
35314 PR 1078
35315 * doc/extend.texi (MicroBlaze Function Attributes): Document
35316 interrupt_handler and fast_interrupt attributes.
35317
35318 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35319
35320 PR other/60465
35321 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35322 for local symbolic operands.
35323 * config/ia64/predicates.md (local_symbolic_operand64): New
35324 predicate.
35325
35326 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35327
35328 PR rtl-optimization/68651
35329 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35330 x << 1.
35331
35332 2016-01-05 Nathan Sidwell <nathan@acm.org>
35333
35334 * alias.c (compare_base_decls): Use symtab_node::get.
35335
35336 2016-01-05 Nick Clifton <nickc@redhat.com>
35337
35338 PR target/68770
35339 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35340 secondary_reload_info structure.
35341
35342 PR target/66655
35343 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35344 decls if weak support is available.
35345
35346 2016-01-04 Martin Sebor <msebor@redhat.com>
35347
35348 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35349
35350 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35351
35352 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35353 OPTION_MASK_P9_DFORM.
35354
35355 * config/rs6000/constraints.md (wo constraint): New constraint for
35356 ISA 3.0 (power9).
35357
35358 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35359 for wo constraint.
35360 (rs6000_init_hard_regno_mode_ok): Likewise.
35361
35362 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35363 wo constraint.
35364
35365 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35366 expanders not to have constraints. Add support for ISA 3.0 xxperm
35367 instruction. Add support for fusing xxlor with xxperm.
35368 (altivec_vperm_<mode>_internal): Likewise.
35369 (altivec_vperm_v8hiv16qi): Likewise.
35370 (altivec_vperm_<mode>v16q): Likewise.
35371 (altivec_vperm_<mode>_uns): Likewise.
35372 (vperm_v8hiv4si): Likewise.
35373 (vperm_v16qiv8hi): Likewise.
35374
35375 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35376
35377 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35378
35379 Update copyright years.
35380
35381 * gcc.c (process_command): Update copyright notice dates.
35382 * gcov-dump.c (print_version): Ditto.
35383 * gcov.c (print_version): Ditto.
35384 * gcov-tool.c (print_version): Ditto.
35385 * gengtype.c (create_file): Ditto.
35386 * doc/cpp.texi: Bump @copying's copyright year.
35387 * doc/cppinternals.texi: Ditto.
35388 * doc/gcc.texi: Ditto.
35389 * doc/gccint.texi: Ditto.
35390 * doc/gcov.texi: Ditto.
35391 * doc/install.texi: Ditto.
35392 * doc/invoke.texi: Ditto.
35393
35394 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35395
35396 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35397 modes larger than TImode as TImode if NEON is not enabled.
35398
35399 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35400
35401 PR target/69100
35402 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35403 mode for %f0-%f31 only if TARGET_FPU.
35404
35405 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35406
35407 PR target/69072
35408 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35409 to compute the PACKED_P predicate.
35410 (function_arg_record_value): Minor tweaks.
35411
35412 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35413
35414 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35415 option for arm*-*-* targets.
35416
35417 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35418
35419 * doc/extend.texi (Common Function Attributes): Move docs for
35420 MSP430-specific attributes to....
35421 (MSP430 Function Attributes): ...here. Delete the redundant
35422 entries and copy-edit the remaining text.
35423 (MSP430 Variable Attributes): Use uniform format for index
35424 entries and add a cross-reference to the corresponding function
35425 attribute docs.
35426
35427 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35428
35429 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35430 -finite-math typo.
35431 (x86 Options): Likewise.
35432
35433 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35434
35435 PR 1078
35436
35437 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35438 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35439 to corresponding attribute.
35440
35441 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35442
35443 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35444 to correct alphabetization of table. Copy-edit and correct
35445 markup.
35446 <stack_protect>: Likewise.
35447 <target_clones>: Likewise.
35448 <simd>: Likewise.
35449 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35450 Correct punctuation.
35451 (Code Gen Options) <-fno-plt>: Copy-edit.
35452
35453 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35454
35455 PR target/68917
35456 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35457 SI values. Explicitly convert SI to DI and vice-versa.
35458
35459 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35460
35461 PR tree-optimization/69070
35462 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35463 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35464
35465 PR sanitizer/69055
35466 * ubsan.c (ubsan_instrument_float_cast): Call
35467 initialize_sanitizer_builtins.
35468
35469 PR target/69015
35470 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35471 \f
35472 Copyright (C) 2016 Free Software Foundation, Inc.
35473
35474 Copying and distribution of this file, with or without modification,
35475 are permitted in any medium without royalty provided the copyright
35476 notice and this notice are preserved.