[arm] Remove FEATURES field from FPU descriptions
[gcc.git] / gcc / ChangeLog
1 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
2
3 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
4 * arm.h (arm_fpu_feature_set): Delete typedef.
5 (FPU_FL_NONE): Delete.
6 (FPU_FL_NEON): Delete.
7 (FPU_FL_FP16): Delete.
8 (FPU_FL_CRYPTO): Delete.
9 (FPU_FL_DBL): Delete.
10 (FPU_FL_D32): Delete.
11 (FPU_FL_VFPv2): Delete.
12 (FPU_FL_VFPv3): Delete.
13 (FPU_FL_VFPv4): Delete.
14 (FPU_FL_VFPv5): Delete.
15 (FPU_FL_AMRv8): Delete.
16 (FPU_VFPv2): Delete.
17 (FPU_VFPv3): Delete.
18 (FPU_VFPv4): Delete.
19 (FPU_VFPv5): Delete.
20 (FPU_ARMv8): Delete.
21 (FPU_DBL): Delete.
22 (FPU_D32): Delete.
23 (FPU_NEON): Delete.
24 (FPU_CRYPTO): Delete.
25 (FPU_FP16): Delete.
26 (arm_fpu_desc): Delete features field.
27 * arm.c (all_fpus): Don't initialize feature field.
28
29 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
30
31 * arm.c (arm_can_inline_p): Use ISA features for determining
32 inlinability.
33
34 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
35
36 * arm-protos.h (arm_configure_build_target): Change second argument
37 to cl_target_options.
38 * arm.c (arm_configure_build_target): Likewise.
39 (arm_option_restore): Update accordingly.
40 (arm_option_override): Create the target_option_default_node before
41 calling arm_configure_build_target. Use it in call of latter.
42 Resynchronize after all other overrides have been calculated.
43 (arm_valid_target_attribute_tree): Use the target options for
44 reconfiguration. Resynchronize after performing override checks.
45 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
46 to reconfigure the build target.
47
48 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
49
50 * arm.h (TARGET_VFPD32): Use arm_active_target.
51 (TARGET_VFP3): Likewise.
52 (TARGET_VFP5): Likewise.
53 (TARGET_VFP_SINGLE): Likewise.
54 (TARGET_VFP_DOUBLE): Likewise.
55 (TARGET_NEON_FP16): Likewise.
56 (TARGET_FP16): Likewise.
57 (TARGET_FMA): Likewise.
58 (TARGET_FPU_ARMV8): Likewise.
59 (TARGET_CRYPTO): Likewise.
60 (TARGET_NEON): Likewise.
61 (TARGET_FPU_FEATURES): Delete.
62 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
63 Neon using arm_active_target.
64
65 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
66
67 * arm.h (TARGET_FPU_NAME): Delete.
68 * arm.c (arm_identify_fpu_from_isa): New function.
69 (arm_declare_function_name): Use it to get the name for the FPU.
70
71 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
72
73 * arm-protos.h: Include sbitmap.h
74 (arm_configure_build_target): Make public.
75 * arm.c (arm_configure_build_target): Now not static.
76 (arm_valid_target_attribute_rec): Move internal option check to...
77 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
78 active target.
79 (arm_override_options_after_change): Call arm_configure_build_target.
80 (isa_all_fpubits): Renamed from isa_fpubits.
81 (arm_option_restore): New function.
82 (TARGET_OPTION_RESTORE): Register it.
83 (arm_configure_build_target): Initialize the FPU capability bits in
84 the isa.
85 (arm_option_override): Move the code that forces the setting of the
86 FPU option before the call to arm_configure_build_target.
87 * arm.opt (march): Mark as Save.
88 (mcpu, mtune): Likewise.
89 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
90 after pragmas change the target options.
91
92 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
93
94 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
95 fP_dbl, fp_d32 and fp_crypto.
96 (ISA_ALL_FPU): Add all the new bits.
97 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
98 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
99 * arm-fpus.def: Add ISA features to all FPUs.
100 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
101 * arm.c (all_fpus): Initialize it.
102 * arm-tables.opt: Regenerated.
103
104 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
105
106 * arm.h (FPU_FL_VFPv2) New feature bit.
107 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
108 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
109 macros.
110 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
111 (TARGET_FPU_REV): Delete.
112 (TARGET_VFP3): Use feature bits.
113 (TARGET_VFP5): Likewise.
114 (TARGET_FMA): Likewise.
115 (TARGET_FPU_ARMV8): Likewise.
116 (struct arm_fpu_desc): Delete rev field.
117 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
118 * arm.c (all_fpus): Delete rev field.
119
120 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
121
122 * arm.h (vfp_reg_type): Delete.
123 (TARGET_FPU_REGS): Delete.
124 (arm_fpu_desc): Delete regs field.
125 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
126 values.
127 (FPU_FL_DBL, FPU_FL_D32): Define.
128 (TARGET_VFPD32): Use feature test.
129 (TARGET_VFP_SINGLE): Likewise.
130 (TARGET_VFP_DOUBLE): Likewise.
131 * arm-fpus.def: Update all entries for new feature bits.
132 * arm.c (all_fpus): Update initializer macro.
133 (arm_can_inline_p): Remove test on fpu regs.
134
135 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
136
137 * arm.h (arm_fp_model): Delete.
138
139 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
140
141 * arm-cores.def: Remove FLAGS field from all core definitions.
142 * arm-arches.def: Likewise.
143 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
144 ARM_CORES macro.
145 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
146 * arm-protos.h (FL_*): Delete.
147 (arm_feature_set): Delete.
148 (ARM_FSET_*): Delete.
149 * arm.c (struct processors): Delete flags field.
150 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
151 (all architectures): Likewise.
152
153 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
154
155 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
156 Initialize it.
157 (arm_arch_core_flag): Delete flags field.
158 (arm_arch_core_flags): Don't initialize flags field.
159 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
160 (arm_target_thumb_only): Use new isa bits arrays.
161
162 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
163
164 * arm-protos.h (insn_flags): Delete declaration.
165 (arm_arch7ve): Declare.
166 * arm.c (insn_flags): Delete.
167 (arm_arch7ve): New variable.
168 (arm_selected_cpu): Delete.
169 (arm_option_check_internal): Use new ISA bitmap.
170 (arm_option_override_internal): Likewise.
171 (arm_configure_build_target): Declare arm_selected_cpu locally.
172 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
173 Rearrange variable intialization by general function.
174 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
175
176 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
177
178 * arm-builtins.c: Include sbitmap.h.
179 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
180 available features in the current target.
181 (struct builtin_description): Change type of feature field.
182 (IWMMXT_BUILTIN): Use the isa_features types.
183 (IWMMXT2_BUILTIN): Likewise.
184 (IWMMXT_BUILTIN2): Likewise.
185 (IWMMXT2_BUILTIN2): Likewise.
186 (CRC32_BUILTIN): Likewise.
187 (CRYPTO_BUILTIN): Likewise.
188 (iwmmx_builtin): Likewise.
189 (iwmmx2_builtin): Likewise.
190 (arm_iwmmxt_builtin): Check for specific feature bits.
191
192 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
193
194 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
195 (ISA_ALL_QUIRKS): New macro.
196 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
197 * arm.c (isa_quirkbits): New feature-list bitmap.
198 (arm_configure_build_target): Ignore quirk bits when comparing an
199 architecture feature list with a CPU feature list.
200 (arm_option_override): Initialize_isa_quirkbits. If the user has
201 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
202 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
203
204 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
205
206 * arm.c (arm_option_override): Use arm_active_target as source of
207 information for arm_base_arch and arm_arch_name.
208 * (arm_file_start): Use arm_active_target for core name.
209
210 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
211
212 * arm.c (arm_selected_tune): Delete static variable.
213 (arm_selected_arch): Likewise.
214 (arm_configure_build_target): Declare local versions of arm_selected
215 target and arm_selected_arch. Initialize more fields in target
216 data structure.
217 (arm_option_override): Use arm_active_target instead of
218 arm_selected_tune and arm_selected_arch.
219 (asm_file_start): Use arm_active_target.
220
221 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
222
223 * arm-protos.h (arm_build_target): New structure.
224 (arm_active_target): Declare it.
225 * arm.c (arm_active_target): New variable.
226 (bitmap_popcount): New function.
227 (feature_count): Delete.
228 (arm_initialize_isa): New function.
229 isa_fpubits): New variable.
230 (arm_configure_build_target): New function.
231 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
232 Use arm_configure_build_target.
233
234 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
235
236 * arm-isa.h: New file.
237 * arm-protos.h: Include it.
238 * arm-arches.def: Add new ISA field to all entries. Drop bogus
239 armv8.1-a+crc architecture.
240 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
241 * arm-opts.h (enum processor_type): Adjust for new field.
242 * arm.c (struct processors): New field 'isa_bits'.
243 (all_cores, all_architectures): Initialize new field.
244 * arm-tables.opt: Regenerated.
245 * arm-tune.md: Regenerated.
246
247 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
248
249 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
250 tuning properties from architectural FLAGS field.
251 * arm-cores.def (ARM_CORE): Likewise.
252 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
253 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
254 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
255 (FL_TUNE): Remove deleted elements.
256 (tune_flags): Convert type to unsigned int.
257 * arm.c (struct processors): Add new field tune_flags.
258 (all_cores, all_arches): Initialize it.
259 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
260 for deciding when we should have slow multiply operations.
261
262 2016-12-14 Martin Sebor <msebor@redhat.com>
263
264 PR middle-end/78519
265 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
266 (format_directive): Diagnose null pointer arguments.
267 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
268 pointers. Correct location of null format string in diagnostics.
269
270 2016-12-14 David Malcolm <dmalcolm@redhat.com>
271
272 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
273 (s-selftest): Add dependency on the selftests data directory.
274 * common.opt (fself-test): Rename to...
275 (fself-test=): ...this, documenting the meaning of the argument.
276 * selftest-run-tests.c (along): Likewise.
277 * selftest-run-tests.c: Include "options.h".
278 (selftest::run_tests): Initialize selftest::path_to_selftest_files
279 from flag_self_test.
280 * selftest.c (selftest::path_to_selftest_files): New global.
281 (selftest::locate_file): New function.
282 (selftest::test_locate_file): New function.
283 (selftest_c_tests): Likewise.
284 (selftest::selftest_c_tests): Call test_locate_file.
285 * selftest.h (selftest::locate_file): New decl.
286 (selftest::path_to_selftest_files): New decl.
287
288 2016-12-14 Andrew Pinski <apinski@cavium.com>
289
290 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
291 of the cores.
292 (thunderx): Update to include LSE by default.
293 (thunderxt88p1): New core.
294 (thunderxt88): New core.
295 (thunderxt81): New core.
296 (thunderxt83): New core.
297 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
298 Add variant field.
299 (ALL_VARIANTS): New define.
300 (AARCH64_CORE): Support VARIANT operand.
301 (cpu_data): Likewise.
302 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
303 Combine the arch and single core case and support variant searching.
304 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
305 Add VARIANT operand.
306 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
307 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
308 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
309 * config/aarch64/aarch64-tune.md: Regenerate.
310 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
311 thunderxt88p1, thunderxt81, thunderxt83 as available options.
312
313 2016-12-14 Martin Jambor <mjambor@suse.cz>
314
315 * omp-offload.c: Fix coding style.
316 * omp-expand.c: Likewise.
317 * omp-general.c: Likewise.
318 * omp-grid.c: Likewise.
319 * omp-low.c: Fix coding style of parts touched by the
320 previous splitting patch.
321
322 2016-12-14 Martin Jambor <mjambor@suse.cz>
323
324 * omp-general.h: New file.
325 * omp-general.c: New file.
326 * omp-expand.h: Likewise.
327 * omp-expand.c: Likewise.
328 * omp-offload.h: Likewise.
329 * omp-offload.c: Likewise.
330 * omp-grid.c: Likewise.
331 * omp-grid.c: Likewise.
332 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
333 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
334 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
335 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
336 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
337 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
338 (omp_find_combined_for): Declare.
339 (find_omp_clause): Renamed to omp_find_clause and moved to
340 omp-general.h.
341 (free_omp_regions): Renamed to omp_free_regions and moved to
342 omp-expand.h.
343 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
344 to omp-general.h.
345 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
346 omp-general.h.
347 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
348 moved to omp-general.h.
349 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
350 omp-general.h.
351 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
352 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
353 omp-general.c.
354 (omp_expand_local): Moved to omp-expand.h.
355 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
356 omp-expand.h.
357 (omp_finish_file): Moved to omp-offload.h.
358 (default_goacc_validate_dims): Renamed to
359 oacc_default_goacc_validate_dims and moved to omp-offload.h.
360 (offload_funcs, offload_vars): Moved to omp-offload.h.
361 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
362 (omp_region): Moved to omp-expand.c.
363 (omp_for_data_loop): Moved to omp-general.h.
364 (omp_for_data): Likewise.
365 (oacc_loop): Moved to omp-offload.c.
366 (oacc_loop_flags): Moved to omp-general.h.
367 (offload_funcs, offload_vars): Moved to omp-offload.c.
368 (root_omp_region): Moved to omp-expand.c.
369 (omp_any_child_fn_dumped): Likewise.
370 (find_omp_clause): Renamed to omp_find_clause and moved to
371 omp-general.c.
372 (is_combined_parallel): Moved to omp-expand.c.
373 (is_reference): Renamed to omp_is_reference and and moved to
374 omp-general.c.
375 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
376 to omp-general.c.
377 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
378 and moved to omp-general.c.
379 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
380 omp-general.c.
381 (workshare_safe_to_combine_p): Moved to omp-expand.c.
382 (omp_adjust_chunk_size): Likewise.
383 (get_ws_args_for): Likewise.
384 (get_base_type): Removed.
385 (dump_omp_region): Moved to omp-expand.c.
386 (debug_omp_region): Likewise.
387 (debug_all_omp_regions): Likewise.
388 (new_omp_region): Likewise.
389 (free_omp_region_1): Likewise.
390 (free_omp_regions): Renamed to omp_free_regions and moved to
391 omp-expand.c.
392 (find_combined_for): Renamed to omp_find_combined_for, made global.
393 (build_omp_barrier): Renamed to omp_build_barrier and moved to
394 omp-general.c.
395 (omp_max_vf): Moved to omp-general.c.
396 (omp_max_simt_vf): Likewise.
397 (gimple_build_cond_empty): Moved to omp-expand.c.
398 (parallel_needs_hsa_kernel_p): Likewise.
399 (expand_omp_build_assign): Moved declaration to omp-expand.c.
400 (expand_parallel_call): Moved to omp-expand.c.
401 (expand_cilk_for_call): Likewise.
402 (expand_task_call): Likewise.
403 (vec2chain): Likewise.
404 (remove_exit_barrier): Likewise.
405 (remove_exit_barriers): Likewise.
406 (optimize_omp_library_calls): Likewise.
407 (expand_omp_regimplify_p): Likewise.
408 (expand_omp_build_assign): Likewise.
409 (expand_omp_taskreg): Likewise.
410 (oacc_collapse): Likewise.
411 (expand_oacc_collapse_init): Likewise.
412 (expand_oacc_collapse_vars): Likewise.
413 (expand_omp_for_init_counts): Likewise.
414 (expand_omp_for_init_vars): Likewise.
415 (extract_omp_for_update_vars): Likewise.
416 (expand_omp_ordered_source): Likewise.
417 (expand_omp_ordered_sink): Likewise.
418 (expand_omp_ordered_source_sink): Likewise.
419 (expand_omp_for_ordered_loops): Likewise.
420 (expand_omp_for_generic): Likewise.
421 (expand_omp_for_static_nochunk): Likewise.
422 (find_phi_with_arg_on_edge): Likewise.
423 (expand_omp_for_static_chunk): Likewise.
424 (expand_cilk_for): Likewise.
425 (expand_omp_simd): Likewise.
426 (expand_omp_taskloop_for_outer): Likewise.
427 (expand_omp_taskloop_for_inner): Likewise.
428 (expand_oacc_for): Likewise.
429 (expand_omp_for): Likewise.
430 (expand_omp_sections): Likewise.
431 (expand_omp_single): Likewise.
432 (expand_omp_synch): Likewise.
433 (expand_omp_atomic_load): Likewise.
434 (expand_omp_atomic_store): Likewise.
435 (expand_omp_atomic_fetch_op): Likewise.
436 (expand_omp_atomic_pipeline): Likewise.
437 (expand_omp_atomic_mutex): Likewise.
438 (expand_omp_atomic): Likewise.
439 (oacc_launch_pack): and moved to omp-general.c, made public.
440 (OACC_FN_ATTRIB): Likewise.
441 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
442 to omp-general.c.
443 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
444 omp-general.c.
445 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
446 moved to omp-general.c.
447 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
448 omp-general.c.
449 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
450 (oacc_fn_attrib_level): Moved to omp-offload.c.
451 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
452 omp-general.c.
453 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
454 omp-general.c.
455 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
456 (grid_launch_attributes_trees): Likewise.
457 (grid_attr_trees): Likewise.
458 (grid_create_kernel_launch_attr_types): Likewise.
459 (grid_insert_store_range_dim): Likewise.
460 (grid_get_kernel_launch_attributes): Likewise.
461 (get_target_argument_identifier_1): Likewise.
462 (get_target_argument_identifier): Likewise.
463 (get_target_argument_value): Likewise.
464 (push_target_argument_according_to_value): Likewise.
465 (get_target_arguments): Likewise.
466 (expand_omp_target): Likewise.
467 (grid_expand_omp_for_loop): Moved to omp-grid.c.
468 (grid_arg_decl_map): Likewise.
469 (grid_remap_kernel_arg_accesses): Likewise.
470 (grid_expand_target_grid_body): Likewise.
471 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
472 (build_omp_regions_1): Moved to omp-expand.c.
473 (build_omp_regions_root): Likewise.
474 (omp_expand_local): Likewise.
475 (build_omp_regions): Likewise.
476 (execute_expand_omp): Likewise.
477 (pass_data_expand_omp): Likewise.
478 (pass_expand_omp): Likewise.
479 (make_pass_expand_omp): Likewise.
480 (pass_data_expand_omp_ssa): Likewise.
481 (pass_expand_omp_ssa): Likewise.
482 (make_pass_expand_omp_ssa): Likewise.
483 (grid_lastprivate_predicate): Renamed to
484 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
485 (grid_prop): Moved to omp-grid.c.
486 (GRID_MISSED_MSG_PREFIX): Likewise.
487 (grid_safe_assignment_p): Likewise.
488 (grid_seq_only_contains_local_assignments): Likewise.
489 (grid_find_single_omp_among_assignments_1): Likewise.
490 (grid_find_single_omp_among_assignments): Likewise.
491 (grid_find_ungridifiable_statement): Likewise.
492 (grid_parallel_clauses_gridifiable): Likewise.
493 (grid_inner_loop_gridifiable_p): Likewise.
494 (grid_dist_follows_simple_pattern): Likewise.
495 (grid_gfor_follows_tiling_pattern): Likewise.
496 (grid_call_permissible_in_distribute_p): Likewise.
497 (grid_handle_call_in_distribute): Likewise.
498 (grid_dist_follows_tiling_pattern): Likewise.
499 (grid_target_follows_gridifiable_pattern): Likewise.
500 (grid_remap_prebody_decls): Likewise.
501 (grid_var_segment): Likewise.
502 (grid_mark_variable_segment): Likewise.
503 (grid_copy_leading_local_assignments): Likewise.
504 (grid_process_grid_body): Likewise.
505 (grid_eliminate_combined_simd_part): Likewise.
506 (grid_mark_tiling_loops): Likewise.
507 (grid_mark_tiling_parallels_and_loops): Likewise.
508 (grid_process_kernel_body_copy): Likewise.
509 (grid_attempt_target_gridification): Likewise.
510 (grid_gridify_all_targets_stmt): Likewise.
511 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
512 and moved to omp-grid.c, made public.
513 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
514 omp-expand.c.
515 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
516 (omp_finish_file): Likewise.
517 (oacc_thread_numbers): Likewise.
518 (oacc_xform_loop): Likewise.
519 (oacc_default_dims, oacc_min_dims): Likewise.
520 (oacc_parse_default_dims): Likewise.
521 (oacc_validate_dims): Likewise.
522 (new_oacc_loop_raw): Likewise.
523 (new_oacc_loop_outer): Likewise.
524 (new_oacc_loop): Likewise.
525 (new_oacc_loop_routine): Likewise.
526 (finish_oacc_loop): Likewise.
527 (free_oacc_loop): Likewise.
528 (dump_oacc_loop_part): Likewise.
529 (dump_oacc_loop): Likewise.
530 (debug_oacc_loop): Likewise.
531 (oacc_loop_discover_walk): Likewise.
532 (oacc_loop_sibling_nreverse): Likewise.
533 (oacc_loop_discovery): Likewise.
534 (oacc_loop_xform_head_tail): Likewise.
535 (oacc_loop_xform_loop): Likewise.
536 (oacc_loop_process): Likewise.
537 (oacc_loop_fixed_partitions): Likewise.
538 (oacc_loop_auto_partitions): Likewise.
539 (oacc_loop_partition): Likewise.
540 (default_goacc_fork_join): Likewise.
541 (default_goacc_reduction): Likewise.
542 (execute_oacc_device_lower): Likewise.
543 (default_goacc_validate_dims): Likewise.
544 (default_goacc_dim_limit): Likewise.
545 (pass_data_oacc_device_lower): Likewise.
546 (pass_oacc_device_lower): Likewise.
547 (make_pass_oacc_device_lower): Likewise.
548 (execute_omp_device_lower): Likewise.
549 (pass_data_omp_device_lower): Likewise.
550 (pass_omp_device_lower): Likewise.
551 (make_pass_omp_device_lower): Likewise.
552 (pass_data_omp_target_link): Likewise.
553 (pass_omp_target_link): Likewise.
554 (find_link_var_op): Likewise.
555 (pass_omp_target_link::execute): Likewise.
556 (make_pass_omp_target_link): Likewise.
557 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
558 and omp-grid.o.
559 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
560 omp-low.h.
561 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
562 (fold_internal_goacc_dim): Adjusted calls to
563 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
564 * gimplify.c: Include omp-low.h.
565 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
566 its new name.
567 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
568 name.
569 (gimplify_omp_for): Likewise.
570 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
571 * toplev.c: Include omp-offload.h instead of omp-low.h.
572 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
573 include omp-expand.h.
574 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
575 new name.
576 (make_edges): Adjust the call to free_omp_regions to use its new name.
577 * tree-parloops.c: Include omp-general.h.
578 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
579 its new name.
580 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
581 its new name.
582 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
583 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
584 its new name.
585 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
586 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
587 get_oacc_fn_dim_size to use their new names.
588 * varpool.c: Include omp-offload.h instead of omp-low.h.
589 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
590 ifiles.
591 * config/nvptx/nvptx.c: Include omp-general.c.
592 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
593 its new name.
594 (nvptx_reorg): Likewise.
595 (nvptx_record_offload_symbol): Likewise.
596
597 2016-12-14 Martin Sebor <msebor@redhat.com>
598
599 PR middle-end/78786
600 * gimple-ssa-sprintf.c (target_dir_max): New macro.
601 (get_mpfr_format_length): New function.
602 (format_integer): Use HOST_WIDE_INT instead of int.
603 (format_floating_max): Same.
604 (format_floating): Call get_mpfr_format_length.
605 (format_directive): Use target_dir_max.
606
607 2016-12-14 Jakub Jelinek <jakub@redhat.com>
608
609 PR target/78791
610 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
611 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
612 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
613 SLOT_TEMP.
614
615 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
616
617 PR target/59874
618 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
619 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
620 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
621 (*clzhi2): Ditto.
622
623 2016-12-14 Jakub Jelinek <jakub@redhat.com>
624
625 PR debug/77844
626 * valtrack.c: Include rtl-iter.h.
627 (struct rtx_subst_pair): Add insn field.
628 (propagate_for_debug_subst): If pair->to contains at least 2
629 regs, create a DEBUG_INSN with a debug temp before pair->insn
630 and replace from with the debug temp instead of pair->to.
631 (propagate_for_debug): Initialize p.insn.
632 * combine.c (insn_uid_check): New inline function.
633 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
634 (find_single_use, combine_instructions,
635 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
636 INSN_P.
637
638 2016-12-14 Martin Sebor <msebor@redhat.com>
639
640 PR c/17308
641 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
642 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
643 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
644 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
645 (ATTR_NOTHROW_NONNULL_1_5): Same.
646 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
647 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
648 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
649 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
650 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
651 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
652 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
653 * builtins.c (validate_arg): Add argument. Treat null pointers
654 passed to nonnull arguments as invalid.
655 (validate_arglist): Same.
656 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
657 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
658 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
659 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
660 (initialize_argument_information): Diagnose null pointers passed to
661 arguments declared nonnull.
662 * calls.h (get_nonnull_args): Declared.
663
664 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
665
666 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
667 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
668 instructions.
669 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
670 type constraint registers.
671 (VSr3): Likewise.
672 (FL_CONV): New mode iterator for binary floating types that have a
673 direct conversion from 64-bit integer to floating point.
674 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
675 VEXTU{B,H,W}{L,R}X extract instructions.
676 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
677 extract byte position into the GPR if we are using the
678 VEXTU{B,H,W}{L,R}X extract instructions.
679 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
680 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
681 we can use reg+offset address instructions.
682 (vsx_extract_<mode>_var): Support extracts to GPRs.
683 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
684 insn to combine vector extracts with zero_extend.
685 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
686 extracting a small integer vector element and converting it to a
687 floating point type.
688 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
689 (UNSPEC_XXEXTRACTUW): New unspec.
690 (UNSPEC_XXINSERTW): Likewise.
691 (vextract4b): Add support for the vec_vextract4b built-in
692 function.
693 (vextract4b_internal): Likewise.
694 (vinsert4b): Add support for the vec_insert4b built-in function.
695 Include both a version that inserts element 1 from a V4SI object
696 and one that inserts a DI object.
697 (vinsert4b_internal): Likewise.
698 (vinsert4b_di): Likewise.
699 (vinsert4b_di_internal): Likewise.
700 * config/rs6000/predicates.md (const_0_to_11_operand): New
701 predicate, match 0..11.
702 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
703 type to ternary, not binary.
704 (BU_P9V_64BIT_VSX_3): Likewise.
705 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
706 vec_extract4b non-overloaded built-in functions.
707 (P9V_BUILTIN_VINSERT4B): Likewise.
708 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
709 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
710 3.0 built-in functions.
711 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
712 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
713 vec_insert4b and vec_extract4 built-in functions.
714 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
715 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
716 overloaded support for vec_vinsert4b and vec_extract4b.
717 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
718 the vec_insert4b and vec_extract4b byte number being a constant in
719 the range 0..11.
720 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
721 and vec_extract4b built-in functions.
722 * doc/extend.doc (PowerPC VSX built-in functions): Document
723 vec_insert4b and vec_extract4b.
724
725 2016-12-14 Martin Liska <mliska@suse.cz>
726
727 * gimple-pretty-print.c (dump_probability): New function.
728 (dump_edge_probability): Use the function.
729 (dump_gimple_label): Likewise.
730 (dump_gimple_bb_header): Likewise.
731
732 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
733 Jakub Jelinek <jakub@redhat.com>
734
735 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
736 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
737
738 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
739
740 * lra-constraints.c (process_address_1): Do not attempt to decompose
741 addresses for MEMs that satisfy fixed-form constraints.
742
743 2016-12-14 Richard Biener <rguenther@suse.de>
744
745 PR tree-optimization/78788
746 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
747 (set_and_canonicalize_value_range): Do not drop the above to
748 VARYING.
749
750 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
751
752 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
753 Adjust unaligned load cost.
754
755 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
756
757 PR target/78794
758 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
759 Calculate additional gain for andnot for targets without BMI.
760
761 2016-12-13 Carl Love <cel@us.ibm.com>
762
763 * config/rs6000/rs6000-c.c: Add built-in support for
764 vector float vec_pack (vector double, vector double)
765 vector double vec_sld (vector double, vector double)
766 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
767 4-bit unsigned literal.
768 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
769 * doc/extend.texi: Update the built-in documentation file for the
770 new powerpc vec_pack and vec_sld built-ins.
771
772 2016-12-13 Martin Liska <mliska@suse.cz>
773
774 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
775 (sanopt_optimize): Add new argument.
776 (sanitize_asan_mark_unpoison): New function.
777 (maybe_contains_asan_check): Likewise.
778 (sanitize_asan_mark_poison): Likewise.
779 (pass_sanopt::execute): Call the new functions.
780
781 2016-12-13 Martin Liska <mliska@suse.cz>
782
783 PR tree-optimization/78428
784 * expr.c (store_constructor_field): Add new arguments to the function.
785 (store_constructor): Set up bitregion_end and add gcc_unreachable to
786 fields that have either non-constant size or (and) offset.
787
788 2016-12-13 Marek Polacek <polacek@redhat.com>
789
790 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
791 parameters' type from int to HOST_WIDE_INT.
792 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
793 int to HOST_WIDE_INT.
794 (build_classic_dist_vector_1): Likewise.
795 (add_multivariate_self_dist): Likewise.
796
797 2016-12-13 Michael Matz <matz@suse.de>
798
799 PR tree-optimization/78725
800 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
801 at correct use point.
802
803 2016-12-13 Martin Liska <mliska@suse.cz>
804
805 * asan.c (asan_expand_mark_ifn): Use renamed
806 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
807 * sanitizer.def: Likewise.
808
809 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
810
811 * doc/extend.texi (Half-Precision): Update to document current
812 compiler behaviour.
813
814 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
815
816 * doc/extend.texi (Floating Types): Document availability of
817 _Float16 on ARM/AArch64.
818
819 2016-12-13 Richard Biener <rguenther@suse.de>
820
821 PR tree-optimization/78699
822 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
823 group size.
824
825 2016-12-13 Richard Biener <rguenther@suse.de>
826
827 PR middle-end/78742
828 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
829 * tree-object-size.c (compute_builtin_object_size): Use
830 tree_fits_shwi_p.
831 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
832
833 2016-12-13 Martin Liska <mliska@suse.cz>
834
835 * asan.c (asan_mark_poison_p): Remove.
836 (asan_mark_p): New function.
837 (transform_statements): Use the function.
838 (asan_expand_mark_ifn): Do not use masked enum.
839 * asan.h (enum asan_mark_flags): Declare it via a macro.
840 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
841 argument of ASAN_MARK.
842 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
843 (asan_poison_variable): Likewise.
844
845 2016-12-13 Jakub Jelinek <jakub@redhat.com>
846
847 PR ipa/77905
848 * ipa-pure-const.c (cdtor_p): Return true for
849 DECL_STATIC_{CON,DE}STRUCTOR even when it is
850 DECL_LOOPING_CONST_OR_PURE_P.
851
852 2016-12-12 Jakub Jelinek <jakub@redhat.com>
853
854 PR tree-optimization/78777
855 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
856 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
857
858 PR other/78766
859 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
860 Formatting fix.
861
862 2016-12-12 Martin Sebor <msebor@redhat.com>
863
864 PR middle-end/78622
865 PR middle-end78606
866 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
867 rather than res.bounded.
868 (get_width_and_precision): Set precision to -1 when negative.
869 (adjust_range_for_overflow): New function.
870 (format_integer): Correct the handling of the space, plus, and pound
871 flags, and the special case of zero precision.
872 Always set res.bounded to true unless either precision or width
873 is specified and unknown.
874 Call adjust_range_for_overflow.
875 Avoid use zero as the shortest value when precision is specified
876 but unknown.
877 (format_directive): Remove vestigial quoting. Always inform of
878 argument value or range when it's available.
879 (add_bytes): Correct the computation of boundrange used to
880 decide whether a warning is of a "maybe" or "defnitely" kind.
881
882 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
883
884 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
885
886 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
887
888 PR target/78738
889 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
890 flag_unsafe_math_optimizations.
891 (X87_ENABLE_FLOAT): Ditto.
892
893 2016-12-12 Marek Polacek <polacek@redhat.com>
894
895 PR middle-end/78716
896 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
897 Case 1; check POINTER_TYPE_P instead.
898
899 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
900
901 PR rtl-optimization/78669
902 * ira.c (combine_and_move_insns): When deleting an insn, clear the
903 replace flag for all used regs in that insn.
904
905 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
906
907 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
908 arm_arch_core_flags to ...
909 * common/config/arm/arm-common.c: There.
910
911 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
912
913 * config/sparc/constraints.md (T): Use special memory constraint.
914 (U): Minor tweak.
915 (W): Add TARGET_ARCH64 test.
916 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
917 (*movdf_insn_sp32): Likewise.
918 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
919 conjunction with offsettable memory references.
920
921 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
922
923 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
924 to avoid shared structure error.
925
926 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
927
928 PR target/78695
929 * config/rs6000/rs6000.c (find_alignment_op): Discard from
930 consideration any artificial definition.
931
932 2016-12-11 Iain Sandoe <iain@codesourcery.com>
933
934 * configure.ac (CROSS directory tests): Remove the assumption that
935 Darwin hosts contain suitable target sysroots in "/".
936 * configure: Regenerate.
937
938 2016-12-11 Iain Sandoe <iain@codesourcery.com>
939
940 PR rtl-optimization/71496
941 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
942 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
943 reload_macho_picbase_di): Likewise.
944
945 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
946
947 * config/pa/pa.c (pa_callee_copies): New function.
948 * config/pa/pa.opt (mcaller-copies): New option.
949 * doc/invoke.texi (mcaller-copies): Document option.
950
951 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
952
953 PR target/70799
954 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
955 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
956 Add FIXME comment.
957 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
958 constant shifts larger or equal than 32.
959
960 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
961
962 * config/i386/x86-64.h: Append --32 to the assembler options when
963 -m16 is used on non-glibc systems as well.
964
965 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
966
967 PR target/70118
968 * config/i386/mmintrin.h (__m64_u): New type
969 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
970 Make the allowed unaligned memory access explicit.
971
972 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
973
974 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
975 Generally use cpu generic.
976
977 2016-12-10 Jakub Jelinek <jakub@redhat.com>
978 Marc Glisse <marc.glisse@inria.fr>
979
980 PR tree-optimization/78720
981 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
982 is negative, sign extend to @1's type and than AND with C.
983
984 2016-12-10 Jakub Jelinek <jakub@redhat.com>
985
986 PR fortran/78758
987 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
988 non-zero low bound or non-standard element sizes.
989
990 PR sanitizer/78708
991 * lto-streamer-in.c (input_function): In addition to debug stmts
992 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
993 bit is not enabled.
994
995 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
996
997 * config/rs6000/rs6000-passes.def: New file.
998 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
999 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1000 registration of machine-specific passes.
1001 (pass_analyze_swaps::clone): New function.
1002 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1003
1004 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1005
1006 PR ipa/78721
1007 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1008 drop_tree_overflow after fold_convert.
1009
1010 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1011
1012 PR target/72742
1013 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1014 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1015 condition.
1016
1017 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1018
1019 PR target/78683
1020 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1021 GET_MODE_BITSIZE. Return 2.
1022 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1023 TARGET_POPCNTD the same as TARGET_CTZ.
1024 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1025 (ffs<mode>2): Reimplement.
1026
1027 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1028
1029 PR rtl-optimization/78255
1030 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1031 NO_FUNCTION_CSE is true.
1032
1033 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1034
1035 PR ipa/78027
1036 * ipa-icf.c (sem_function::parse): Don't process functions with
1037 oacc decl attributes, as they may be OpenACC routines.
1038
1039 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1040
1041 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1042 pointer.
1043
1044 2016-12-09 Nathan Sidwell <nathan@acm.org>
1045
1046 PR C++/78550
1047 * convert.c (convert_to_integer_1): Maybe fold conversions to
1048 integral types with fewer bits than its mode.
1049
1050 2016-12-09 Martin Liska <mliska@suse.cz>
1051
1052 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1053 chars in strings.
1054
1055 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1056
1057 PR tree-optimization/78726
1058 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1059 argument. For lhs uses in debug stmts, don't replace lhs with
1060 new_lhs, but with a debug temp set to new_lhs opcode op.
1061 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1062 OP down to make_new_ssa_for_def.
1063 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1064 stmts_to_fix is empty, if *def has not changed yet. Pass
1065 OPCODE to make_new_ssa_for_all_defs.
1066
1067 2016-12-08 Martin Sebor <msebor@redhat.com>
1068
1069 PR c/78284
1070 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1071 identifier tree nodes.
1072 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1073 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1074 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1075 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1076 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1077 * builtins.c (expand_builtin_alloca): Call
1078 maybe_warn_alloc_args_overflow.
1079 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1080 Add attribute alloc_size.
1081 (alloca): Add attribute alloc_size and returns_nonnull.
1082 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1083 * calls.c (alloc_max_size, operand_signed_p): New functions.
1084 (maybe_warn_alloc_args_overflow): Define.
1085 (initialize_argument_information): Diagnose overflow in functions
1086 declared with attaribute alloc_size.
1087 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1088 -Walloc-size-larger-than.
1089
1090 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1091
1092 PR rtl-optimization/78671
1093 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1094 allocno class.
1095
1096 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1097
1098 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1099 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1100
1101 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1102
1103 PR target/78733
1104 * config/aarch64/aarch64.c (aarch64_classify_address):
1105 Set load_store_pair_p for TImode and TFmode.
1106
1107 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1108
1109 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1110 regno_reg_rtx resizing logic to...
1111 (emit_status::ensure_regno_capacity): ...this new method,
1112 and ensure that the buffers are large enough.
1113 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1114 rather than ggc_vec_alloc.
1115 * function.h (emit_status::ensure_regno_capacity): New method.
1116
1117 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1118
1119 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1120 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1121 * doc/invoke.texi (-fsanitize=kernel-address):
1122 Don't say that it enables -fsanitize-address-use-after-scope.
1123
1124 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1125
1126 PR middle-end/78684
1127 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1128 sign bit for index step of data reference.
1129
1130 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1131
1132 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1133 Handle SYMBOL_SMALL_TLSGD for ILP32.
1134 * config/aarch64/aarch64.md : tlsgd_small modified into
1135 tlsgd_small_<mode> to support SImode and DImode.
1136 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1137 DImode.
1138
1139 2016-12-08 Andrew Pinski <apinski@cavium.com>
1140
1141 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1142 Access the lower part of RTX appropriately.
1143
1144 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1145
1146 * genpreds.c (write_tm_constrs_h): Update for renaming of
1147 rtx_reader_ptr to md_reader_ptr.
1148 (write_tm_preds_h): Likewise.
1149 (write_insn_preds_c): Likewise.
1150 * read-md.c (rtx_reader_ptr): Rename to...
1151 (md_reader_ptr): ...this, and convert from an
1152 rtx_reader * to a md_reader *.
1153 (rtx_reader::set_md_ptr_loc): Rename to...
1154 (md_reader::set_md_ptr_loc): ...this.
1155 (rtx_reader::get_md_ptr_loc): Rename to...
1156 (md_reader::get_md_ptr_loc): ...this.
1157 (rtx_reader::copy_md_ptr_loc): Rename to...
1158 (md_reader::copy_md_ptr_loc): ...this.
1159 (rtx_reader::fprint_md_ptr_loc): Rename to...
1160 (md_reader::fprint_md_ptr_loc): ...this.
1161 (rtx_reader::print_md_ptr_loc): Rename to...
1162 (md_reader::print_md_ptr_loc): ...this.
1163 (rtx_reader::join_c_conditions): Rename to...
1164 (md_reader::join_c_conditions): ...this.
1165 (rtx_reader::fprint_c_condition): ...this.
1166 (rtx_reader::print_c_condition): Rename to...
1167 (md_reader::print_c_condition): ...this.
1168 (fatal_with_file_and_line): Update for renaming of
1169 rtx_reader_ptr to md_reader_ptr.
1170 (rtx_reader::require_char): Rename to...
1171 (md_reader::require_char): ...this.
1172 (rtx_reader::require_char_ws): Rename to...
1173 (md_reader::require_char_ws): ...this.
1174 (rtx_reader::require_word_ws): Rename to...
1175 (md_reader::require_word_ws): ...this.
1176 (rtx_reader::read_char): Rename to...
1177 (md_reader::read_char): ...this.
1178 (rtx_reader::unread_char): Rename to...
1179 (md_reader::unread_char): ...this.
1180 (rtx_reader::peek_char): Rename to...
1181 (md_reader::peek_char): ...this.
1182 (rtx_reader::read_name): Rename to...
1183 (md_reader::read_name): ...this.
1184 (rtx_reader::read_escape): Rename to...
1185 (md_reader::read_escape): ...this.
1186 (rtx_reader::read_quoted_string): Rename to...
1187 (md_reader::read_quoted_string): ...this.
1188 (rtx_reader::read_braced_string): Rename to...
1189 (md_reader::read_braced_string): ...this.
1190 (rtx_reader::read_string): Rename to...
1191 (md_reader::read_string): ...this.
1192 (rtx_reader::read_skip_construct): Rename to...
1193 (md_reader::read_skip_construct): ...this.
1194 (rtx_reader::handle_constants): Rename to...
1195 (md_reader::handle_constants): ...this.
1196 (rtx_reader::traverse_md_constants): Rename to...
1197 (md_reader::traverse_md_constants): ...this.
1198 (rtx_reader::handle_enum): Rename to...
1199 (md_reader::handle_enum): ...this.
1200 (rtx_reader::lookup_enum_type): Rename to...
1201 (md_reader::lookup_enum_type): ...this.
1202 (rtx_reader::traverse_enum_types): Rename to...
1203 (md_reader::traverse_enum_types): ...this.
1204 (rtx_reader::rtx_reader): Rename to...
1205 (md_reader::md_reader): ...this, and update for renaming of
1206 rtx_reader_ptr to md_reader_ptr.
1207 (rtx_reader::~rtx_reader): Rename to...
1208 (md_reader::~md_reader): ...this, and update for renaming of
1209 rtx_reader_ptr to md_reader_ptr.
1210 (rtx_reader::handle_include): Rename to...
1211 (md_reader::handle_include): ...this.
1212 (rtx_reader::handle_file): Rename to...
1213 (md_reader::handle_file): ...this.
1214 (rtx_reader::handle_toplevel_file): Rename to...
1215 (md_reader::handle_toplevel_file): ...this.
1216 (rtx_reader::get_current_location): Rename to...
1217 (md_reader::get_current_location): ...this.
1218 (rtx_reader::add_include_path): Rename to...
1219 (md_reader::add_include_path): ...this.
1220 (rtx_reader::read_md_files): Rename to...
1221 (md_reader::read_md_files): ...this.
1222 * read-md.h (class rtx_reader): Split into...
1223 (class md_reader): ...new class.
1224 (rtx_reader_ptr): Rename to...
1225 (md_reader_ptr): ...this, and convert to a md_reader *.
1226 (class noop_reader): Update base class to be md_reader.
1227 (class rtx_reader): Reintroduce as a subclass of md_reader.
1228 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1229 (read_char): Update for renaming of rtx_reader_ptr to
1230 md_reader_ptr.
1231 (unread_char): Likewise.
1232 * read-rtl.c (rtx_reader_ptr): New global.
1233 (rtx_reader::apply_iterator_to_string): Rename to...
1234 (md_reader::apply_iterator_to_string): ...this.
1235 (rtx_reader::copy_rtx_for_iterators): Rename to...
1236 (md_reader::copy_rtx_for_iterators): ...this.
1237 (rtx_reader::read_conditions): Rename to...
1238 (md_reader::read_conditions): ...this.
1239 (rtx_reader::record_potential_iterator_use): Rename to...
1240 (md_reader::record_potential_iterator_use): ...this.
1241 (rtx_reader::read_mapping): Rename to...
1242 (md_reader::read_mapping): ...this.
1243 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1244 read_rtx_code.
1245 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1246 than directly accessing m_string_obstack.
1247 (rtx_reader::rtx_reader): New ctor.
1248 (rtx_reader::~rtx_reader): New dtor.
1249
1250 2016-12-07 Martin Sebor <msebor@redhat.com>
1251
1252 PR middle-end/77784
1253 PR middle-end/78149
1254 PR middle-end/78138
1255
1256 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1257 functions.
1258 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1259 (check_memop_sizes): Same.
1260 (expand_builtin_memcpy): Call check memop_sizes.
1261 (expand_builtin_mempcpy): Same.
1262 (expand_builtin_memset): Same,
1263 (expand_builtin_bzero): Same.
1264 (expand_builtin_memory_chk): Call check_sizes.
1265 (expand_builtin_strcpy): Same.
1266 (expand_builtin_strncpy): Same.
1267 (maybe_emit_sprintf_chk_warning): Same.
1268 (expand_builtin): Handle strcat and strncat.
1269 (fini_object_sizes): Reset pointers.
1270 (compute_object_size): New function.
1271 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1272 Avoid issuing warnings also issued during built-in expansion.
1273 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1274
1275 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1276
1277 PR target/72717
1278 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1279 V2DImode elements are SUBREG's convert the result into DImode
1280 rather than failing in emit_move_insn.
1281
1282 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1283
1284 * builtins.c (fold_builtin_strstr): Removed.
1285 (fold_builtin_2): Don't call fold_builtin_strstr.
1286 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1287 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1288 (gimple_fold_builtin_strstr): New function.
1289 (gimple_fold_builtin): Call it.
1290 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1291
1292 PR c++/78692
1293 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1294 var to lhs of new_stmt right before noreturn handling rather than to
1295 lhs of e->call_stmt early.
1296
1297 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1298
1299 * read-md.c (rtx_reader::require_char): New method.
1300 (require_char_ws): Convert from function to...
1301 (rtx_reader::require_char_ws): ...method.
1302 (rtx_reader::require_word_ws): New method.
1303 * read-md.h (rtx_reader::require_char): New method decl.
1304 (require_char_ws): Remove global decl in favor of...
1305 (rtx_reader::require_char_ws): ...new method decl.
1306 (rtx_reader::require_word_ws): New method decl.
1307 (rtx_reader::peek_char): New method decl.
1308
1309 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1310
1311 PR rtl-optimization/78617
1312 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1313 registers, also setting hard registers mapped to pseudo registers.
1314
1315 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1316
1317 * cfgexpand.c (pass_expand::execute): Move stack initializations
1318 to rtl_data::init_stack_alignment and call it.
1319 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1320 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1321
1322 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1323
1324 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1325 (ira): Move initialization of crtl->is_leaf earlier.
1326
1327 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1328
1329 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1330 (movtf_aarch64): Likewise.
1331 * config/aarch64/aarch64.c (aarch64_classify_address):
1332 Use correct intersection of offsets.
1333 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1334 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1335 Use 7-bit signed scaled mode for modes > 16 bytes.
1336
1337 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1338
1339 PR rtl-optimization/78561
1340 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1341 constant_pool_empty_p in place of get_pool_size_upper_bound.
1342 (rs6000_stack_info): Likewise.
1343 (rs6000_emit_prologue): Likewise.
1344 (rs6000_elf_declare_function_name): Likewise.
1345 (rs6000_set_up_by_prologue): Likewise.
1346 (rs6000_can_eliminate): Likewise.
1347 * output.h (get_pool_size_upper_bound): Delete.
1348 (constant_pool_empty_p): New.
1349 * varasm.c (get_pool_size_upper_bound): Delete
1350 (constant_pool_empty_p): New.
1351
1352 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1353
1354 PR tree-optimization/78691
1355 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1356 Require integral type for the outer expression.
1357
1358 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1359
1360 * config/aarch64/aarch64.c
1361 (aarch64_builtin_support_vector_misalignment): New.
1362 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1363
1364 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1365
1366 PR bootstrap/78705
1367 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1368 Conditionalize the string comparison on Pmode == DImode.
1369
1370 2016-12-06 Tom de Vries <tom@codesourcery.com>
1371
1372 PR tree-optimization/67955
1373 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1374 (stmt_kills_ref_p): Use it.
1375
1376 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1377
1378 PR middle-end/78700
1379 * calls.c (expand_call): Move back call to prepare_call_address.
1380
1381 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1382
1383 PR target/78658
1384 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1385 ?* constraints for the ISA 3.0 patterns, so the register allocator
1386 is more likely to allocate QImode/HImode to vector registers for
1387 conversion to floating point unless a reload is needed.
1388 (zero_extendhi<mode>2): Likewise.
1389 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1390 first alternative which is converting QImode/HImode to floating
1391 point and the QImode/HImode value is in a vector register, and
1392 does not allocate the second pseudo register. Remove zero
1393 extending into traditional floating point registers, since the
1394 instruction used only works on traditional altivec registers.
1395 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1396
1397 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1398
1399 * config/i386/i386.c: Include print-rtl.h.
1400 (selftest::ix86_test_dumping_memory_blockage): New function.
1401 (selftest::ix86_run_selftests): Call it.
1402 * print-rtl-function.c (print_rtx_function): Create an
1403 rtx_reuse_manager and use it.
1404 * print-rtl.c: Include "rtl-iter.h".
1405 (rtx_writer::rtx_writer): Add reuse_manager param.
1406 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1407 (uses_rtx_reuse_p): New function.
1408 (rtx_reuse_manager::preprocess): New function.
1409 (rtx_reuse_manager::has_reuse_id): New function.
1410 (rtx_reuse_manager::seen_def_p): New function.
1411 (rtx_reuse_manager::set_seen_def): New function.
1412 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1413 prefix the first time in_rtx is seen, and print reuse_rtx
1414 subsequently.
1415 (print_inline_rtx): Supply NULL for new reuse_manager param.
1416 (debug_rtx): Likewise.
1417 (print_rtl): Likewise.
1418 (print_rtl_single): Likewise.
1419 (rtx_writer::print_rtl_single_with_indent): Likewise.
1420 * print-rtl.h: Include bitmap.h when building for host.
1421 (rtx_writer::rtx_writer): Add reuse_manager param.
1422 (rtx_writer::m_rtx_reuse_manager): New field.
1423 (class rtx_reuse_manager): New class.
1424 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1425 param and use it when constructing rtx_writer.
1426 (selftest::test_dumping_rtx_reuse): New function.
1427 (selftest::rtl_tests_c_tests): Call it.
1428 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1429 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1430 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1431 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1432
1433 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1434
1435 PR target/77761
1436 * lra-lives.c (process_bb_lives): Update biggest mode for
1437 implicitly used hard reg.
1438
1439 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1440
1441 * config/i386/predicates.md (general_gr_operand): New predicate.
1442 * config/i386/i386.md (TImode and DImode push_operand splitter):
1443 Use general_gr_operand. Macroize using DWI mode macro.
1444 (TImode and DImode nonimmediate_operand splitter): Use
1445 nonimmediate_gr_operand and general_gr_operand. Macroize using
1446 DWI mode macro.
1447 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1448 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1449 and general_gr_operand.
1450 (XFmode nonimmediate_operand splitter): Ditto.
1451 (DFmode nonimmediate_operand splitter): Ditto.
1452 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1453
1454 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1455
1456 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1457 alphabetical order with respect to other ARMv8 processors.
1458 * config/arm/arm-tables.opt: Regenerate.
1459 * config/arm/arm-tune.md: Likewise.
1460
1461 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1462
1463 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1464 ranges of literal integer arguments.
1465
1466 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1467
1468 PR middle-end/78548
1469 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1470 destroy_predicate_vecs.
1471 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1472
1473 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1474
1475 PR middle-end/78566
1476 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1477 argument type to a pred_chain.
1478 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1479 worklist.
1480 (flatten_out_predicate_chains): Remove.
1481 (uninit_uses_cannot_happen): Rename from
1482 uninit_ops_invalidate_phi_use.
1483 Change logic so that we are checking that the PHI use will
1484 invalidate _ALL_ possibly uninitialized operands.
1485 (is_use_properly_guarded): Rename call to
1486 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1487
1488 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1489
1490 * gcc/config/aarch64/arm_neon.h
1491 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1492 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1493 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1494 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1495 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1496 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1497 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1498 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1499 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1500 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1501 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1502 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1503 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1504 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1505
1506 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR c++/71537
1509 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1510 plus offset is non-zero. For maybe_nonzero_address decl base0,
1511 require indirect_base0.
1512
1513 PR c++/71537
1514 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1515 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1516 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1517 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1518 and arguments have no side-effects, return 0.
1519 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1520
1521 PR c++/71537
1522 * fold-const-call.c (fold_const_call): Handle
1523 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1524
1525 PR tree-optimization/78675
1526 * tree-vect-loop.c (vectorizable_live_operation): For
1527 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1528 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1529
1530 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1531
1532 PR middle-end/78642
1533 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1534 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1535 (copy_insn_1) <CLOBBER>: Likewise.
1536
1537 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1538
1539 PR target/78688
1540 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1541 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1542 comparing signed to unsigned values.
1543 (FUNCTION_ARG_REGNO_P): Likewise.
1544
1545 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1546 Stefan Freudenberger <stefan@reservoir.com>
1547
1548 PR tree-optimization/78646
1549 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1550 addition used for the memory base expression should have the type
1551 of the candidate.
1552
1553 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1554
1555 PR target/71721
1556 * config.gcc (*-*-uclinux*): Enable posix threads.
1557
1558 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1559
1560 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1561 * config/i386/avx512dqintrin.h: Ditto.
1562 * config/i386/avx512fintrin.h: Ditto.
1563 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1564 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1565 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1566 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1567 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1568 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1569 function types.
1570 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1571 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1572 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1573 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1574 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1575 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1576 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1577 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1578 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1579
1580 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1581
1582 * combine.c: Revert r243162.
1583
1584 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1585
1586 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1587 X tests a single bit.
1588
1589 2016-12-05 Nathan Sidwell <nathan@acm.org>
1590
1591 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1592 (diagnostic_action_after_output): ... here.
1593 (diagnostic_report_diagnostic): Call it for non-notes.
1594 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1595 (diagnostic_check_max_errors): Declare.
1596
1597 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1598
1599 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1600 (ENDFILE_SPEC): Likewise.
1601
1602 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1603
1604 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1605 * config/arc/arc.c (arc_unspec_offset): New function.
1606 (arc_finalize_pic): Change.
1607 (arc_emit_call_tls_get_addr): Likewise.
1608 (arc_legitimize_tls_address): Likewise.
1609 (arc_legitimize_pic_address): Likewise.
1610 (insn_is_tls_gd_dispatch): Remove.
1611 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1612 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1613 (tls_gd_dispatch): Likewise.
1614
1615 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1616
1617 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1618 location.
1619
1620 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1621
1622 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1623 (sparc_split_reg_mem_legitimate): ...this.
1624 (sparc_split_reg_mem): Declare.
1625 (sparc_split_mem_reg): Likewise.
1626 (sparc_split_regreg_legitimate): Rename to...
1627 (sparc_split_reg_reg_legitimate): ...this.
1628 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1629 (sparc_split_reg_mem_legitimate): ...this.
1630 (sparc_split_reg_mem): New function.
1631 (sparc_split_mem_reg): Likewise.
1632 (sparc_split_regreg_legitimate): Rename to...
1633 (sparc_split_reg_reg_legitimate): ...this.
1634 (sparc_split_reg_reg): New function.
1635 * config/sparc/sparc.md (lra): Remove "none" value.
1636 (enabled): Adjust to above change.
1637 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1638 (DImode splitters): Adjust to above renamings and use new functions.
1639 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1640 (DFmode splitters): Adjust to above renamings and use new functions.
1641 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1642 constraint in conjunction with e.
1643 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1644 alternative and reorder others.
1645 (VM64:mode splitters): Adjust to above renamings and use new functions.
1646
1647 2016-12-04 Martin Sebor <msebor@redhat.com>
1648
1649 PR c/78668
1650 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1651 identifier tree nodes.
1652 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1653 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1654 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1655 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1656 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1657 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1658 Add attribute alloc_size.
1659 (alloca): Add attribute alloc_size and returns_nonnull.
1660
1661 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1662
1663 PR target/70322
1664 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1665 (dimode_scalar_chain::compute_convert_gain): Ditto.
1666 (dimode_scalar_chain::convert_insn): Ditto.
1667
1668 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1669
1670 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1671 cases to build a lowpart SUBREG.
1672
1673 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1674 David S. Miller <davem@davemloft.net>
1675
1676 * config/sparc/constraints.md (U): Adjust comment.
1677 * config/sparc/sparc.md (lra): New attribute.
1678 (enabled): For base instructions, if the lra attribute is set,
1679 return 1 if it is in keeping with TARGET_LRA.
1680 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1681 constraint and duplicate them with U replaced by r.
1682 (*movdf_insn_sp32): Likewise.
1683 (*mov<VM64:mode>_insn_sp32): Likewise.
1684 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1685
1686 2016-12-02 Jeff Law <law@redhat.com>
1687
1688 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1689 variable main_variant.
1690
1691 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1692
1693 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1694 default on PowerPC linux systems.
1695
1696 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1697
1698 PR rtl-optimization/78638
1699 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1700 GET_MODE (op). Fix this.
1701
1702 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1703
1704 PR bootstrap/78616
1705 * selftest.c (selftest::assert_strndup_eq): Rename to...
1706 (selftest::assert_xstrndup_eq): ...this, and remove call to
1707 strndup.
1708 (selftest::test_strndup): Rename to...
1709 (selftest::test_xstrndup): ...this, updating for above renaming.
1710 (selftest::test_libiberty): Update for renaming.
1711
1712 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1713
1714 PR target/78639
1715 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1716 subversion id 242679 that causes the wrong store instruction to be
1717 generated if a DImode is in an Altivec register using REG+REG
1718 addressing.
1719
1720 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1721
1722 PR target/70322
1723 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1724 and corresponding post-reload splitter.
1725
1726 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1727
1728 * config/aarch64/aarch64.h (machine_function): Add
1729 reg_is_wrapped_separately field.
1730 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1731 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1732 rtx_insn *.
1733 (aarch64_save_callee_saves): Don't save registers that are wrapped
1734 separately.
1735 (aarch64_restore_callee_saves): Don't restore registers that are
1736 wrapped separately.
1737 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1738 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1739 (aarch64_get_separate_components): New function.
1740 (aarch64_get_next_set_bit): Likewise.
1741 (aarch64_components_for_bb): Likewise.
1742 (aarch64_disqualify_components): Likewise.
1743 (aarch64_emit_prologue_components): Likewise.
1744 (aarch64_emit_epilogue_components): Likewise.
1745 (aarch64_set_handled_components): Likewise.
1746 (aarch64_process_components): Likewise.
1747 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1748 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1749 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1750 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1751 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1752 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1753
1754 2016-12-02 Martin Jambor <mjambor@suse.cz>
1755
1756 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1757 pass_build_ssa_passes.
1758
1759 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1760
1761 * config/alpha/alpha.md (exception_receiver): Copy
1762 alpha_gp_ave_rtx return value.
1763
1764 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1765
1766 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1767 for several include directories that may be relative to sysroot.
1768 * config/i386/x-mingw32 (gplus_includedir): Define.
1769 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1770 (native_system_includedir): Likewise.
1771 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1772 override if TARGET_SYSTEM_ROOT is defined.
1773 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1774
1775 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1776
1777 PR target/70322
1778 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1779 (dimode_scalar_chain::compute_convert_gain): Likewise.
1780 (dimode_scalar_chain::convert_insn): Likewise.
1781 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1782 define_insn_and_split.
1783 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1784
1785 PR target/78614
1786 * rtl.c (copy_rtx): Don't clear used flag here.
1787 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1788 is shareable.
1789 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1790 'E' in format, copy all vectors.
1791 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
1792 * valtrack.c (cleanup_auto_inc_dec): Likewise.
1793 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
1794
1795 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1796 Thomas Preud'homme <thomas.preudhomme@arm.com>
1797
1798 * config/arm/arm-builtins.c (arm_builtins): Define
1799 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
1800 (bdesc_2arg): Add line for cmse_nonsecure_caller.
1801 (arm_init_builtins): Handle cmse_nonsecure_caller.
1802 (arm_expand_builtin): Likewise.
1803 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
1804
1805 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1806 Thomas Preud'homme <thomas.preudhomme@arm.com>
1807
1808 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
1809 (cmse_nonsecure_call_clear_caller_saved): New.
1810 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
1811 (arm_function_ok_for_sibcall): Disable sibcalls for
1812 cmse_nonsecure_call.
1813 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
1814 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
1815 (call_value): Likewise.
1816 (nonsecure_call_internal): New.
1817 (nonsecure_call_value_internal): New.
1818 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
1819 (*nonsecure_call_value_reg_thumb1_v5): New.
1820 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
1821 (*nonsecure_call_value_reg_thumb2): New.
1822 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
1823
1824 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1825 Thomas Preud'homme <thomas.preudhomme@arm.com>
1826
1827 * config/arm/arm.c (gimplify.h): New include.
1828 (arm_handle_cmse_nonsecure_call): New.
1829 (arm_attribute_table): Added cmse_nonsecure_call.
1830 (arm_comp_type_attributes): Deny compatibility of function types
1831 with without the cmse_nonsecure_call attribute.
1832 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1833
1834 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1835 Thomas Preud'homme <thomas.preudhomme@arm.com>
1836
1837 * config/arm/arm.c (output_return_instruction): Clear
1838 registers.
1839 (thumb2_expand_return): Likewise.
1840 (thumb1_expand_epilogue): Likewise.
1841 (thumb_exit): Likewise.
1842 (arm_expand_epilogue): Likewise.
1843 (cmse_nonsecure_entry_clear_before_return): New.
1844 (comp_not_to_clear_mask_str_un): New.
1845 (compute_not_to_clear_mask): New.
1846 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
1847 * config/arm/thumb2.md (*thumb2_return): Disable for
1848 cmse_nonsecure_entry functions.
1849 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
1850 cmse_nonsecure_entry functions.
1851
1852 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1853 Thomas Preud'homme <thomas.preudhomme@arm.com>
1854
1855 * config/arm/arm.c (use_return_insn): Change to return with bxns
1856 when cmse_nonsecure_entry.
1857 (output_return_instruction): Likewise.
1858 (arm_output_function_prologue): Likewise.
1859 (thumb_pop): Likewise.
1860 (thumb_exit): Likewise.
1861 (thumb2_expand_return): Assert that entry functions always have simple
1862 returns.
1863 (arm_expand_epilogue): Handle entry functions.
1864 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
1865 (arm_asm_declare_function_name): New.
1866 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
1867 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
1868 use arm_asm_declare_function_name.
1869
1870 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1871 Thomas Preud'homme <thomas.preudhomme@arm.com>
1872
1873 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
1874 (arm_attribute_table): Added cmse_nonsecure_entry
1875 (arm_compute_func_type): Handle cmse_nonsecure_entry.
1876 (cmse_func_args_or_return_in_stack): New.
1877 (arm_handle_cmse_nonsecure_entry): New.
1878 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
1879 (IS_CMSE_ENTRY): Likewise.
1880 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
1881
1882 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
1883 Thomas Preud'homme <thomas.preudhomme@arm.com>
1884
1885 * config.gcc (extra_headers): Added arm_cmse.h.
1886 * config/arm/arm-arches.def (ARM_ARCH):
1887 (armv8-m): Add FL2_CMSE.
1888 (armv8-m.main): Likewise.
1889 (armv8-m.main+dsp): Likewise.
1890 * config/arm/arm-c.c
1891 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
1892 * config/arm/arm-flags.h: Define FL2_CMSE.
1893 * config/arm.c (arm_arch_cmse): New.
1894 (arm_option_override): New error for unsupported cmse target.
1895 * config/arm/arm.h (arm_arch_cmse): New.
1896 * config/arm/arm.opt (mcmse): New.
1897 * config/arm/arm_cmse.h: New file.
1898 * doc/invoke.texi (ARM Options): Add -mcmse.
1899 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
1900 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
1901
1902 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1903
1904 * config/avr/avr.c: Fix coding rule glitches.
1905
1906 2016-12-02 Martin Jambor <mjambor@suse.cz>
1907
1908 * hsa.c (hsa_callable_function_p): Return false for artificial
1909 functions.
1910
1911 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1912
1913 PR rtl-optimization/78561
1914 * varasm.c (recompute_pool_offsets): New.
1915 (output_constant_pool): Call it.
1916
1917 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
1918
1919 PR rtl-optimization/78561
1920 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
1921 get_pool_size to get_pool_size_upper_bound.
1922 (rs6000_stack_info): Likewise.
1923 (rs6000_emit_prologue): Likewise.
1924 (rs6000_elf_declare_function_name): Likewise.
1925 (rs6000_set_up_by_prologue): Likewise.
1926 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
1927 * output.h (get_pool_size): Rename to...
1928 (get_pool_size_upper_bound): ...This.
1929 * varasm.c (get_pool_size): Rename to...
1930 (get_pool_size_upper_bound): ...This.
1931
1932 2016-12-02 Bin Cheng <bin.cheng@arm.com>
1933
1934 * match.pd: Add new pattern:
1935 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
1936
1937 2016-12-02 Nathan Sidwell <nathan@acm.org>
1938
1939 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
1940 braces.
1941
1942 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
1943
1944 PR middle-end/78328
1945 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
1946 VR_ANTI_RANGE.
1947
1948 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1949
1950 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1951 problem.
1952
1953 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1954
1955 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1956 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1957 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1958 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1959 avr_mcu_types.flash_size to compute default value.
1960 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1961 mcu->flash_size to compute value for spec.
1962
1963 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1964
1965 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1966 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1967 about linker description to avoid progmem altogether.
1968 [absdata]: Point to -mabsdata option.
1969
1970 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1971
1972 PR rtl-optimization/78547
1973 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1974 DECL_INCOMING_RTL is not shared.
1975 * config/i386/i386.c (convert_scalars_to_vectors): If any
1976 insns have been converted, adjust all parameter's DEC_RTL and
1977 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1978 TImode.
1979
1980 PR rtl-optimization/78575
1981 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1982 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1983 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1984 affect further iterations.
1985
1986 2016-12-02 Martin Liska <mliska@suse.cz>
1987
1988 PR ipa/78555
1989 * sreal.c (sreal::to_int): Make absolute value before shifting.
1990 (sreal::operator/): Likewise.
1991 (sreal_verify_negative_division): New test.
1992 (void sreal_c_tests): Call the new test.
1993 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1994 SREAL_SIGN macros.
1995 (sreal::normalize_down): Likewise.
1996
1997 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1998
1999 * combine.c (combine_simplify_rtx): Suppress replacement of
2000 "(and (reg) (const_int bit))" with "if_then_else".
2001
2002 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2003
2004 PR target/77822
2005 * config/s390/s390.md ("extzv")
2006 ("*extzv<mode><clobbercc_or_nocc>")
2007 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2008 ("*<risbg_n>_ior_and_sr_ze")
2009 ("*extract1bitdi<clobbercc_or_nocc>")
2010 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2011 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2012 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2013 to validate the arguments of zero_extract and sign_extract.
2014
2015 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2016
2017 PR target/77822
2018 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2019
2020 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2021
2022 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2023 function.
2024 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2025 macro.
2026
2027 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2028
2029 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2030 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2031 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2032 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2033 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2034 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2035 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2036 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2037 ("vec_unpacku_lo_v4si"): New pattern definitions.
2038 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2039 vector.md.
2040
2041 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2042
2043 * config/s390/s390-protos.h (s390_reverse_condition): New
2044 prototype.
2045 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2046 of CC mode values.
2047 (s390_reverse_condition): New function.
2048 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2049 target macros.
2050
2051 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2052
2053 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2054 (CCVHUANY): Remove modes.
2055 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2056 documentation.
2057 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2058 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2059 modes.
2060 (s390_branch_condition_mask): Adjust to use the new cc consumer
2061 modes. The new modes allow for proper reversal in the middle-end.
2062 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2063 consumer modes for a comparison.
2064 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2065 throughout the file.
2066 * config/s390/vx-builtins.md: Likewise.
2067
2068 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2069
2070 * asan.c (asan_global_struct): Refactor.
2071 (create_odr_indicator): New function.
2072 (asan_needs_odr_indicator_p): Likewise.
2073 (is_odr_indicator): Likewise.
2074 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2075 constructor.
2076 (asan_protect_global): Do not protect odr indicators.
2077
2078 2016-12-01 Jeff Law <law@redhat.com>
2079
2080 * tree-ssa-threadedge.c
2081 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2082 propagation of operands if there are no operands.
2083
2084 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2085
2086 PR tree-optimization/78586
2087 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2088 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2089 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2090 type is INTEGER_TYPE or POINTER_TYPE.
2091
2092 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2093
2094 PR target/78577
2095 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2096 (vextuhrx): Likewise.
2097 (vextuwlx): Likewise.
2098 (vextuwrx): Likewise.
2099
2100 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2101
2102 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2103 early_dwarf_finished.
2104
2105 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2106 David S. Miller <davem@davemloft.net>
2107
2108 * config/sparc/sparc.opt (mlra): New target option.
2109 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2110 (sparc_lra_p): ...this. New function.
2111 (D_MODES, DF_MODES): Add missing cast.
2112 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2113 provide these insns when flag_pic.
2114 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2115 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2116 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2117 embmedany_textulo, embmedany_textlo): Likewise.
2118 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2119
2120 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2121
2122 PR debug/66419
2123 PR c++/78235
2124 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2125
2126 2016-12-01 Richard Biener <rguenther@suse.de>
2127 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2128
2129 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2130 memset if len-oldlen != 0.
2131 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2132
2133 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2134
2135 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2136
2137 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2138
2139 * config/avr/avr.c: Fix coding rule glitches.
2140
2141 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2142
2143 PR tree-optimization/78598
2144 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2145 overflows.
2146
2147 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2148
2149 PR rtl-optimization/78596
2150 * combine.c (simplify_comparison): Cast to unsigned to avoid
2151 left shifting of negative value.
2152
2153 2016-12-01 Matthias Klose <doko@ubuntu.com>
2154
2155 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2156
2157 2016-12-01 Richard Biener <rguenther@suse.de>
2158
2159 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2160 treat arrays with same type as objects that cannot overlap.
2161
2162 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2163
2164 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2165 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2166 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2167
2168 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2169
2170 PR debug/78587
2171 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2172 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2173 in unsigned HOST_WIDE_INT type.
2174 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2175
2176 PR target/78614
2177 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2178 set_used_flags (pat) before any simplifications. Clear used flag on
2179 PARALLEL copy. Don't guard add_reg_note call. Call
2180 copy_rtx_if_shared on pat before storing it into
2181 REG_FRAME_RELATED_EXPR.
2182
2183 2016-12-01 Alan Modra <amodra@gmail.com>
2184
2185 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2186 look inside UNSPEC_VSX_XXSPLTW vec.
2187
2188 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2189
2190 PR rtl-optimization/78607
2191 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2192
2193 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2194
2195 PR target/78602
2196 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2197 element is not a constant or in a register, force it to a
2198 register.
2199
2200 PR target/78560
2201 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2202 that will be set to a vector element to be in a register.
2203 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2204 the wrong multiplier to convert the element number to a byte
2205 offset.
2206
2207 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2208
2209 PR tree-optimization/77856
2210 * lra-constraints.c (inherit_in_ebb): Check original regno for
2211 invalid invariant regs too. Set only clobbered hard regs for the
2212 invalid invariant regs.
2213
2214 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2215
2216 Commit files forgotten in r242966.
2217
2218 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2219 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2220 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2221 prefix check to find wrap-around value, instead use MCU flash size.
2222 For 8k flash devices, update link_pmem_wrap spec string to
2223 add --pmem-wrap-around=8k.
2224 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2225 here...
2226 (LINK_SPEC): ...to here.
2227
2228 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2229
2230 PR c/78498
2231 * selftest.c (selftest::assert_strndup_eq): New function.
2232 (selftest::test_strndup): New function.
2233 (selftest::test_libiberty): New function.
2234 (selftest::selftest_c_tests): Call test_libiberty.
2235
2236 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2237
2238 PR rtl-optimization/78610
2239 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2240 instructions.
2241
2242 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2243
2244 PR tree-optimization/78574
2245 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2246 header PHI that doesn't define biv.
2247
2248 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2249
2250 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2251 reset_used_flags.
2252
2253 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2254 sharing the SUBREG rtx between move and following insn.
2255
2256 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2257 for REG_EQUIV argument.
2258
2259 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2260
2261 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2262
2263 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2264
2265 PR ipa/78555
2266 * real.c (real_hash): Add cast to avoid left
2267 shifting of negative values.
2268
2269 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2270
2271 PR target/78362
2272 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2273 from a subreg in operands[1] and don't call REGNO on a non-reg
2274 expression when deciding to force operands[2] into a reg.
2275
2276 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2277 Andrew Burgess <andrew.burgess@embecosm.com>
2278
2279 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2280 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2281 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2282 * config/arc/arc700.md: Add define_bypass for store/load.
2283
2284 2016-11-30 Martin Liska <mliska@suse.cz>
2285
2286 * cgraph.c (symbol_table::initialize): Initialize
2287 ipa_clones_dump_file.
2288 (cgraph_node::remove): Report to ipa_clones_dump_file.
2289 * cgraph.h: Add new argument (suffix) to cloning methods.
2290 * cgraphclones.c (dump_callgraph_transformation): New function.
2291 (cgraph_node::create_clone): New argument.
2292 (cgraph_node::create_virtual_clone): Likewise.
2293 (cgraph_node::create_version_clone): Likewise.
2294 * dumpfile.c: Add .ipa-clones dump file.
2295 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2296 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2297 to dump_callgraph_transformation.
2298
2299 2016-11-30 Martin Liska <mliska@suse.cz>
2300
2301 PR sanitizer/78541
2302 * asan.c (asan_expand_mark_ifn): Properly
2303 select a VAR_DECL from FRAME.* component reference.
2304
2305 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2306
2307 PR rtl-optimization/78583
2308 * simplify-rtx.c (simplify_truncation): Add check missing from the
2309 previous commit.
2310
2311 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2312
2313 PR rtl-optimization/78590
2314 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2315 if the subreg_reg is a scalar integer mode.
2316
2317 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2318
2319 PR tree-optimization/78586
2320 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2321 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2322 Don't build_int_cst min/max twice. Formatting fix.
2323
2324 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2325
2326 PR rtl-optimization/78588
2327 * combine.c (if_then_else_cond): Also guard against BLKmode.
2328 * rtlanal.c (num_sign_bit_copies1): Add assert.
2329
2330 2016-11-29 Jeff Law <law@redhat.com>
2331
2332 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2333 variables.
2334
2335 * lra-constraints.c (check_and_process_move): Constrain the
2336 range of DCLASS and SCLASS to avoid false positive out of bounds
2337 array index warning.
2338
2339 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2340
2341 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2342
2343 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2344
2345 PR preprocessor/78569
2346 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2347 line directives were present.
2348
2349 2016-11-30 Matthias Klose <doko@ubuntu.com>
2350
2351 * doc/install.texi: Document configure options --enable-objc-gc
2352 and --with-target-bdw-gc.
2353
2354 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2355
2356 PR target/78594
2357 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2358 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2359 residing in traditional altivec registers can be stored
2360 correctly.
2361
2362 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2363
2364 PR target/78603
2365 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2366 overhead loop start between a call and its CALL_ARG_LOCATION
2367 note.
2368
2369 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2370
2371 * config/bfin/linux.h (CPP_SPEC): Define.
2372
2373 2016-11-29 Martin Sebor <msebor@redhat.com>
2374
2375 PR tree-optimization/78512
2376 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2377 * config/rs6000/linux.h: Same.
2378 * config/rs6000/linux64.h: Same.
2379 * config/sol2.h: Same.
2380 * config/sol2.c (solaris_printf_pointer_format): Remove.
2381 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2382 * doc/tm.texi: Regenerate.
2383 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2384 (pass_sprintf_length::compute_format_length): Return bool.
2385 (pass_sprintf_length::handle_gimple_call): Adjust.
2386 * target.def (printf_pointer_format): Remove.
2387 * targhooks.c (default_printf_pointer_format): Remove.
2388 (linux_printf_pointer_format): Same.
2389 * targhooks.h (default_printf_pointer_format): Remove.
2390 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2391
2392 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2393
2394 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2395 (mshift): Ditto.
2396 (SWI1248_AVX512BWDQ): Ditto.
2397 (SWI1248_AVX512BW): Ditto.
2398 (k<any_logic:code><mode>): Ditto.
2399 (kandn<mode>): Ditto.
2400 (kxnor<mode>): Ditto.
2401 (knot<mode>): Ditto.
2402 (*k<any_lshift:code><mode>): Ditto.
2403 (kortestzhi, kortestchi): Ditto.
2404 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2405
2406 2016-11-29 Andrew Pinski <apinski@cavium.com>
2407
2408 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2409 for the EQ_EXPR.
2410
2411 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2412
2413 PR target/71331
2414 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2415 to stack before call mcount.
2416 (tilegx_can_use_return_insn_p): Clean up code.
2417
2418 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2419
2420 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2421
2422 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2423
2424 PR c++/72774
2425 PR c++/72786
2426 PR c++/77922
2427 PR c++/78313
2428 * spellcheck.c (selftest::test_find_closest_string): Verify that
2429 we don't offer the goal string as a suggestion.
2430 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2431 offer the goal string as a suggestion.
2432
2433
2434 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2435
2436 * config/arc/arc.c (arc_override_options): Avoid selection of
2437 compact casesi for ARCv2.
2438
2439 2016-11-29 Richard Biener <rguenther@suse.de>
2440
2441 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2442 PHIs after a regular stmt.
2443 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2444 start a new BB.
2445
2446 2016-11-29 Martin Liska <mliska@suse.cz>
2447
2448 PR gcov-profile/78582
2449 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2450 to prevent PHI argument clash.
2451
2452 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2453
2454 * config/arc/arc.opt (marclinux): Fix typo.
2455 (marclinux_prof): Likewise.
2456
2457 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2458
2459 * target.def (stack_protect_runtime_enabled_p): New.
2460 * function.c (expand_function_end): Guard stack_protect_epilogue with
2461 targetm.stack_protect_runtime_enabled_p.
2462 * cfgexpand.c (pass_expand::execute): Likewise.
2463 * calls.c (expand_call): Likewise.
2464 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2465 * doc/tm.texi: Regenerate.
2466
2467 2016-11-29 Richard Biener <rguenther@suse.de>
2468
2469 PR middle-end/78546
2470 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2471
2472 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2473
2474 * doc/contrib.texi: Add a few missing gfortran contributors.
2475
2476 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2477
2478 * combine.c (change_zero_ext): Also handle extends from a subreg
2479 to a mode bigger than that of the operand of the subreg.
2480
2481 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2482
2483 PR target/77687
2484 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2485 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2486 SPE ABIs.
2487 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2488
2489 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2490
2491 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2492 head_components and tail_components.
2493 (spread_components): New algorithm.
2494 (emit_common_tails_for_components): Clear head_components and
2495 tail_components.
2496 (insert_prologue_epilogue_for_components): Write extra output to the
2497 dump file for sibcalls and abnormal exits.
2498
2499 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2500
2501 PR rtl-optimization/78342
2502 * combine.c: Include "cfghooks.h".
2503 (try_combine): If we create an unconditional trap, break the basic
2504 block in two just after it, and remove the edge between; also, set
2505 the *new_direct_jump_p flag so that cleanup_cfg is run.
2506
2507 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2508
2509 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2510 and sign_extract.
2511
2512 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2513
2514 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2515 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2516 output template string.
2517 (*anddi_1): Use multi-line output template string.
2518 (*andqi_1): Ditto.
2519
2520 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR middle-end/78540
2523 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2524 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2525 note has been removed.
2526 * postreload.c (reload_combine_recognize_pattern): If
2527 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2528
2529 2016-11-28 Martin Sebor <msebor@redhat.com>
2530
2531 PR middle-end/78520
2532 * gimple-ssa-sprintf.c (target_max_value): Remove.
2533 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2534 (get_width_and_precision): New function.
2535 (format_integer, format_floating, get_string_length, format_string):
2536 Correct handling of width and precision with unknown value.
2537 (format_directive): Add warning.
2538 (pass_sprintf_length::compute_format_length): Allow for precision
2539 to consist of a sole period with no asterisk or digits after it.
2540
2541 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2542
2543 PR rtl-optimization/78546
2544 * simplify-rtx.c (neg_const_int): When negating most negative
2545 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2546 simplify_const_unary_operation to produce CONST_DOUBLE or
2547 CONST_WIDE_INT.
2548 (simplify_plus_minus): Handle the case where neg_const_int
2549 doesn't return a CONST_INT.
2550
2551 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2552
2553 PR target/78556
2554 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2555 left shifting of negative values.
2556
2557 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2558
2559 PR fortran/78298
2560 * tree-nested.c (convert_local_reference_stmt): After adding
2561 shared (FRAME.NN) clause to omp parallel, task or target,
2562 add it also to all outer omp parallel, task or target constructs.
2563
2564 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2565
2566 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2567 (UNSPEC_KMOV): Remove.
2568 (kmovw): Expand to plain HImode move.
2569 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2570 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2571 Remove corresponding clobber-removing splitter.
2572 (*anddi_1): Remove mask register alternatives.
2573 (*andsi_1): Ditto.
2574 (*andhi_1): Ditto.
2575 (*andqi_1): Ditto.
2576 (*<any_or:code><mode>_1): Ditto.
2577 (*<any_or:code>qi_1): Ditto.
2578 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2579 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2580 Remove corresponding splitter to operation with general registers.
2581 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2582 (*andn<SWI12:mode>): New pattern.
2583 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2584 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2585 with general registers.
2586 (knot<mode>): New insn pattern.
2587 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2588 (one_cmplqi2_1): Ditto.
2589 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2590 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2591 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2592 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2593 to generate kmaskop shift.
2594 (vec_unpacks_hi_<mode>): Ditto.
2595 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2596 Use CODE_FOR_kandhi.
2597 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2598 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2599 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2600
2601 2016-11-28 Richard Biener <rguenther@suse.de>
2602
2603 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2604 to SSA names via extract_range_from_ssa_name if allowed.
2605
2606 2016-11-28 Richard Biener <rguenther@suse.de>
2607
2608 PR tree-optimization/78542
2609 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2610 if allowed.
2611
2612 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2613
2614 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2615 isolates a single bit, even if the condition involves subregs.
2616
2617 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2618
2619 * config/aarch64/aarch64-simd-builtins.def
2620 (BSL_P): Added di and v2di mode.
2621 * config/aarch64/arm_neon.h
2622 (vsriq_n_p64, vsri_n_p64): Added poly type.
2623 (vextq_p64, vext_p64): Likewise.
2624 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2625
2626 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2627
2628 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2629 (TYPES_GETREGP): Likewise.
2630 (TYPES_SHIFTINSERTP): Likewise.
2631 (TYPES_COMBINEP): Likewise.
2632 (TYPES_STORE1P): Likewise.
2633 * config/aarch64/aarch64-simd-builtins.def
2634 (combine): Added poly generator.
2635 (get_dregoi): Likewise.
2636 (get_dregci): Likewise.
2637 (get_dregxi): Likewise.
2638 (ssli_n): Likewise.
2639 (ld1): Likewise.
2640 (st1): Likewise.
2641 * config/aarch64/arm_neon.h
2642 (poly64x1x2_t, poly64x1x3_t): New.
2643 (poly64x1x4_t, poly64x2x2_t): Likewise.
2644 (poly64x2x3_t, poly64x2x4_t): Likewise.
2645 (poly64x1_t): Likewise.
2646 (vcreate_p64, vcombine_p64): Likewise.
2647 (vdup_n_p64, vdupq_n_p64): Likewise.
2648 (vld2_p64, vld2q_p64): Likewise.
2649 (vld3_p64, vld3q_p64): Likewise.
2650 (vld4_p64, vld4q_p64): Likewise.
2651 (vld2_dup_p64, vld3_dup_p64): Likewise.
2652 (vld4_dup_p64, vsli_n_p64): Likewise.
2653 (vsliq_n_p64, vst1_p64): Likewise.
2654 (vst1q_p64, vst2_p64): Likewise.
2655 (vst3_p64, vst4_p64): Likewise.
2656 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2657 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2658 (vget_lane_p64, vgetq_lane_p64): Likewise.
2659 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2660 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2661 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2662 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2663 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2664 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2665 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2666 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2667 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2668 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2669 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2670 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2671 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2672 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2673 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2674 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2675 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2676 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2677 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2678 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2679 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2680 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2681 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2682 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2683 (vset_lane_p64, vsetq_lane_p64): Likewise.
2684 (vget_low_p64, vget_high_p64): Likewise.
2685 (vcombine_p64, vst2_lane_p64): Likewise.
2686 (vst3_lane_p64, vst4_lane_p64): Likewise.
2687 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2688 (vst4q_lane_p64, vget_lane_p64): Likewise.
2689 (vget_laneq_p64, vset_lane_p64): Likewise.
2690 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2691 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2692 (vdupq_n_p64, vdup_lane_p64): Likewise.
2693 (vdup_laneq_p64, vld1_p64): Likewise.
2694 (vld1q_p64, vld1_dup_p64): Likewise.
2695 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2696 (vmov_n_p64, vmovq_n_p64): Likewise.
2697 (vst3q_p64, vst4q_p64): Likewise.
2698 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2699 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2700 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2701 (vdupq_laneq_p64): Likewise.
2702
2703 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2704
2705 * config/arm/arm_neon.h (vget_lane_p64): New.
2706
2707 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2708
2709 PR target/71767
2710 * configure.ac (with_ld64): Use portable method to extract the
2711 major part of the version number.
2712 * configure: Regenerated.
2713
2714 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2715
2716 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2717 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2718 intmax_t couldn't be determined.
2719 (format_integer): Make {,u}intmax_type_node no longer static,
2720 initialize them only when needed. For z and t use
2721 signed_or_unsigned_type_for instead of assuming size_t and
2722 ptrdiff_t have the same precision.
2723
2724 PR lto/78211
2725 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2726 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2727 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2728 vector instead of traversing m_classes hash table. Release
2729 m_classes_vec.
2730 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2731 Formatting fixes.
2732 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2733 add it also to m_classes_vec vector.
2734 (sem_item_optimizer::remove_symtab_node,
2735 sem_item_optimizer::build_hash_based_classes,
2736 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2737 (sem_item_optimizer::subdivide_classes_by_equality,
2738 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2739 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2740 instead of traversing m_classes hash table. Formatting fixes.
2741 (sem_item_optimizer::traverse_congruence_split,
2742 sem_item_optimizer::do_congruence_step_for_index,
2743 sem_item_optimizer::do_congruence_step): Formatting fixes.
2744 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2745 vector instead of traversing m_classes hash table.
2746 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2747 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2748 instead of traversing m_classes hash table.
2749
2750 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2751
2752 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2753 X is not unused after.
2754
2755 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2756
2757 PR rtl-optimization/78120
2758 * rtlanal.c (insn_rtx_cost): Revert previous change.
2759
2760 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2761
2762 PR 41076
2763 * config/avr/avr.md (SPLIT34): New mode iterator.
2764 (bitop): New code iterator.
2765 (*iorhi3.ashift8-*). New insn-and-split patterns.
2766 (*movhi): Post-reload split reg = 0.
2767 [!MOVW]: Post-reload split reg = reg.
2768 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2769 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2770 (iorhi3, iorpsi3, iorsi3): Same.
2771 (xorhi3, xorpsi3, xorsi3): Same.
2772 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2773 costs to *iorhi3.ashift8-* patterns.
2774
2775 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2776 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2777
2778 PR target/67710
2779 * config.in: Regenerate
2780 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2781 for the assembler.
2782 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2783 * config/darwin.opt(asm_macosx_version_min): New.
2784 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2785 * configure: Regenerate
2786 * configure.ac: Check for mmacosx-version-min handling.
2787
2788 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2789
2790 PR target/57438
2791 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2792 where the function might otherwise appear empty for picbase thunks.
2793 (ix86_output_function_epilogue): If we find a zero-sized function
2794 assume that reaching it is UB and trap. If we find a trailing label
2795 append a nop.
2796 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2797 find a zero-sized function assume that reaching it is UB and trap.
2798 If we find a trailing label, append a nop.
2799
2800 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2801
2802 PR target/71767
2803 * config/darwin-sections.def (picbase_thunk_section): New.
2804 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2805 section. (darwin_rodata_section, darwin_objc2_section,
2806 machopic_select_section, darwin_asm_declare_constant_name,
2807 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2808 coalesced with newer linkers.
2809 (darwin_override_options): Decide on usage of coalesed sections
2810 on the basis of the target linker version.
2811 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2812 * config/darwin.opt (mtarget-linker): New.
2813 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2814 a coalesced section, instead use a thunks section.
2815
2816 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2817
2818 PR target/71767
2819 * configure.ac (with-ld64): New var, set for Darwin, set on
2820 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2821 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
2822 * config/darwin10.h(DEF_LD64): Update for this target version.
2823 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
2824 (DEF_LD64): Update for this target version.
2825 * configure: Regenerated.
2826 * config.in: Regenerated.
2827
2828 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2829
2830 PR target/71767
2831 * config/darwin.c (imachopic_indirection_name): Make data
2832 section indirections linker-visible.
2833 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2834 constant labels linker-visible.
2835
2836 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2837
2838 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
2839 (free_lang_data): Remove assignment to ptrdiff_type_node.
2840
2841 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2842
2843 PR rtl-optimization/78526
2844 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
2845 beyond val's precision.
2846
2847 PR rtl-optimization/78527
2848 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
2849 out of bounds shift count.
2850
2851 2016-11-25 Martin Liska <mliska@suse.cz>
2852
2853 PR web/71666
2854 * doc/invoke.texi (-fprofile-use): Fix reference to a section
2855 where -fprofile-generate is documented.
2856
2857 2016-11-25 Martin Liska <mliska@suse.cz>
2858
2859 PR gcov-profile/78086
2860 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
2861 not supported by a target. Set priority to 100 if possible.
2862 (build_gcov_exit_decl): Likewise.
2863
2864 2016-11-25 Richard Biener <rguenther@suse.de>
2865
2866 PR ipa/78515
2867 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
2868 unary, binary and single RHSs.
2869 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
2870
2871 2016-11-25 Bin Cheng <bin.cheng@arm.com>
2872
2873 PR middle-end/78507
2874 PR middle-end/78510
2875 PR middle-end/78517
2876 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
2877 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
2878 and set it to result code if transformation is valid. Use code EQ
2879 directly in last simplification case.
2880
2881 2016-11-25 Richard Biener <rguenther@suse.de>
2882
2883 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
2884 before valueizing return stmts.
2885
2886 2016-11-24 Richard Biener <rguenther@suse.de>
2887
2888 PR tree-optimization/78343
2889 * passes.def: Add CD-DCE pass after loop splitting.
2890 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
2891 SCEV init/finalize ...
2892 (perform_tree_ssa_dce): ... here. Deal with being
2893 executed inside the loop pipeline in aggressive mode.
2894
2895 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2896
2897 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2898
2899 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2900
2901 PR tree-optimization/77673
2902 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2903 (init_symbolic_number): Initialize src field from src parameter.
2904 (perform_symbolic_merge): Select most dominated statement as the
2905 source statement. Set src field of resulting n structure from the
2906 input src with the lowest address.
2907 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2908 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2909 of load from src field rather than insertion statement. Cancel
2910 optimization if statement analyzed is not dominated by the insertion
2911 statement.
2912 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2913 dominance information.
2914
2915 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
2916
2917 PR ada/67205
2918 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
2919
2920 2016-11-25 Martin Jambor <mjambor@suse.cz>
2921
2922 PR tree-optimization/70965
2923 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
2924
2925 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
2926
2927 PR target/78509
2928 * config/i386/i386.c (i386_excess_precision): Do not return
2929 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2930 EXCESS_PRECISION_TYPE_STANDARD.
2931 * target.def (excess_precision): Document that targets should
2932 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
2933 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
2934 Fix typo in first sentence.
2935 * doc/tm.texi: Regenerate.
2936
2937 2016-11-25 Richard Biener <rguenther@suse.de>
2938
2939 PR tree-optimization/78396
2940 * tree-vectorizer.c (vectorize_loops): When the if-converted
2941 body contains masked loads or stores do not attempt to
2942 basic-block-vectorize it.
2943
2944 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2945 Alan Hayward <alan.hayward@arm.com>
2946 David Sherwood <david.sherwood@arm.com>
2947
2948 * function.h (spill_slot_alignment): Declare.
2949 * function.c (spill_slot_alignment): New function.
2950 * lra-spills.c (slot): Add align and size fields.
2951 (assign_mem_slot): Use them in the call to assign_stack_local.
2952 (add_pseudo_to_slot): Update the fields.
2953 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2954
2955 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2956 Alan Hayward <alan.hayward@arm.com>
2957 David Sherwood <david.sherwood@arm.com>
2958
2959 * stor-layout.c (layout_type): Allow the caller to set the mode of
2960 a float type. Only choose one here if the mode is still VOIDmode.
2961 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2962 floats before calling layout_type.
2963 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2964
2965 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2966
2967 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2968 local variables if all references are known to be direct.
2969
2970 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2971 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2972
2973 PR middle-end/78501
2974 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2975 non null and it's precision matches precision of lhs's type.
2976
2977 2016-11-24 Martin Sebor <msebor@redhat.com>
2978
2979 PR tree-optimization/78476
2980 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2981 Add a member.
2982 (handle_gimple_call): Adjust signature.
2983 (try_substitute_return_value): Remove calls to bounded functions
2984 with zero buffer size whose result is known.
2985 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2986
2987 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2988
2989 * varasm.c (assemble_start_function): Wrap align_log definition in
2990 ASM_OUTPUT_MAX_SKIP_ALIGN.
2991
2992 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2993
2994 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2995 explicit mode macros.
2996 (wide OR insn to QImode splitter): Ditto.
2997
2998 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2999
3000 PR rtl-optimization/77541
3001 * lra-constraints.c (struct input_reload): Add field match_p.
3002 (get_reload_reg): Check modes of input reloads to generate unique
3003 value reload pseudo.
3004 (match_reload): Add input reload pseudo for the current insn.
3005
3006 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3007
3008 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3009 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3010 architecture levels.
3011 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3012 the aarch64_fp16_type_node, not all HFmode types.
3013 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3014 (aarch64_scalar_mode_supported_p): Likewise.
3015 (aarch64_excess_precision): New.
3016 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3017 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3018 (TARGET_C_EXCESS_PRECISION): Likewise.
3019
3020 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3021
3022 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3023 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3024
3025 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3026
3027 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3028 (<optab>dihf2): Likewise.
3029 (aarch64_fp16_<optab><mode>hf2): New.
3030
3031 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3032
3033 PR target/67822
3034 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3035
3036 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3037
3038 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3039 Enable REE at -O2 and higher.
3040 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3041 in 32-bit mode.
3042
3043 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3044
3045 PR target/48863
3046 PR inline-asm/70184
3047 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3048 (new_temp_expr_table): Initialise reg_vars_cnt.
3049 (free_temp_expr_table): Release reg_vars_cnt.
3050 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3051 field of TAB.
3052 (find_replaceable_in_bb): Use the above to record register variable
3053 write occurrences and cancel replacement across them.
3054
3055 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3056
3057 PR rtl-optimization/78437
3058 * ree.c (get_uses): New function.
3059 (combine_reaching_defs): When a copy is needed, return false if any
3060 reaching use of the source register reads it in a mode larger than
3061 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3062
3063 2016-11-24 Martin Liska <mliska@suse.cz>
3064
3065 * gimple-pretty-print.c (dump_edge_probability): New function.
3066 (dump_gimple_switch): Dump label edge probabilities.
3067 (dump_gimple_cond): Likewise.
3068 (dump_gimple_label): Dump
3069 (dump_gimple_bb_header): Dump basic block frequency.
3070 (pp_cfg_jump): Replace e->dest argument with e.
3071 (dump_implicit_edges): Likewise.
3072 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3073 Use gimple_bb (at) instead of at->bb.
3074
3075 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3076
3077 * common.opt (flimit-function-alignment): New.
3078 * doc/invoke.texi (-flimit-function-alignment): Document.
3079 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3080 * final.c (shorten_branches): Set it.
3081 * varasm.c (assemble_start_function): Limit alignment if
3082 requested.
3083
3084 2016-11-24 Richard Biener <rguenther@suse.de>
3085
3086 PR tree-optimization/71595
3087 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3088 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3089 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3090 called functions. Only fix irred flags if the caller didn't
3091 request state.
3092 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3093 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3094 to remove_path.
3095
3096 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3097
3098 PR rtl-optimization/78120
3099 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3100 cases, and additionally test against max_seq_cost for speed
3101 optimization.
3102 (noce_process_if_block): Compute an estimate for the original cost when
3103 optimizing for speed, using the minimum of then and else block costs.
3104
3105 PR rtl-optimization/78120
3106 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3107
3108 PR rtl-optimization/78120
3109 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3110
3111 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3112
3113 * match.pd: Refine type conversion in result expr for below pattern:
3114 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3115
3116 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3117
3118 PR middle-end/78429
3119 * tree.h (wi::fits_to_boolean_p): New predicate.
3120 (wi::fits_to_tree_p): Use it for boolean types.
3121 * tree.c (int_fits_type_p): Likewise.
3122
3123 2016-11-24 Martin Liska <mliska@suse.cz>
3124
3125 * print-tree.c (struct bucket): Remove.
3126 (print_node): Add new argument which drives whether a tree node
3127 is printed briefly or not.
3128 (debug_tree): Replace a custom hash table with hash_set<T>.
3129 * print-tree.h (print_node): Add the argument.
3130
3131 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3132
3133 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3134
3135 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3136
3137 PR target/78458
3138 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3139 if it is at least NREGS wide.
3140
3141 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3142
3143 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3144 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3145 TFmode, IFmode and KFmode.
3146
3147 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3148
3149 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3150 pattern.
3151
3152 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3153
3154 * combine.c (change_zero_ext): Only change the mode of a hard register
3155 destination if can_change_dest_mode holds for that.
3156
3157 2016-11-23 Jeff Law <law@redhat.com>
3158
3159 * varasm.c (assemble_name): Increase buffer size for name.
3160
3161 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3162
3163 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3164
3165 * doc/extend.texi: Constify first argument to __builtin_object_size.
3166
3167 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3168
3169 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3170 to be used. Add brackets around macro argument.
3171
3172 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3173
3174 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3175
3176 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3177
3178 PR sanitizer/69278
3179 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3180 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3181
3182 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3183
3184 PR middle-end/69183
3185 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3186 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3187 on worksharing constructs, treat it like clauses on simd construct.
3188 Formatting fix.
3189 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3190 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3191 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3192 of true as last argument to build_outer_var_ref.
3193
3194 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3195
3196 * config/i386/i386.md (*movqi_internal): Calculate mode
3197 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3198 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3199 (*k<logic><mode>): Calculate mode attribute depending on
3200 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3201 (*andqi_1): Calculate mode attribute of alternative 3 depending
3202 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3203 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3204 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3205 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3206 iterator. Calculate mode attribute of alternative 1 depending
3207 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3208 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3209 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3210
3211 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3212
3213 PR middle-end/78153
3214 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3215 * tree-vrp.c (extract_range_basic): Handle case for
3216 CFN_BUILT_IN_STRLEN.
3217
3218 2016-11-23 Jeff Law <law@redhat.com>
3219
3220 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3221
3222 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3223 in boolean context warning.
3224
3225 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3226
3227 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3228
3229 PR target/63250
3230 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3231 (arm_fp16_type_node): ...This, make visibile.
3232 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3233 arm_fp16_type_node.
3234 (arm_init_simd_builtin_types): Likewise.
3235 (arm_init_fp16_builtins): Likewise.
3236 * config/arm/arm.c (arm_excess_precision): New.
3237 (arm_floatn_mode): Likewise.
3238 (TARGET_C_EXCESS_PRECISION): Likewise.
3239 (TARGET_FLOATN_MODE): Likewise.
3240 (arm_promoted_type): Only promote arm_fp16_type_node.
3241 * config/arm/arm.h (arm_fp16_type_node): Declare.
3242
3243 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3244
3245 * config/arm/arm.c (arm_convert_to_type): Delete.
3246 (TARGET_CONVERT_TO_TYPE): Delete.
3247 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3248 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3249 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3250 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3251 are in fast math mode, and have no single step hardware instruction.
3252 (extendhfdf2): Only expand through SFmode if we don't have a
3253 single-step hardware instruction.
3254 * config/arm/vfp.md (*truncdfhf2): New.
3255 (extendhfdf2): Likewise.
3256
3257 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3258
3259 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3260 provides HFmode.
3261
3262 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3263
3264 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3265 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3266 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3267 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3268 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3269 * doc/tm.texi: Regenerate.
3270 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3271
3272 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3273
3274 * toplev.c (init_excess_precision): Delete most logic.
3275 * tree.c (excess_precision_type): Rewrite to use
3276 TARGET_EXCESS_PRECISION.
3277 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3278 more generic fashion.
3279 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3280 __STDC_WANT_IEC_60559_TYPES_EXT__.
3281
3282 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3283
3284 * common.opt (fpermitted-flt-eval-methods): New.
3285 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3286 * flag_types.h (permitted_flt_eval_methods): New.
3287
3288 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3289
3290 * config/m68k/m68k.c (m68k_excess_precision): New.
3291 (TARGET_C_EXCESS_PRECISION): Define.
3292
3293 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3294
3295 * config/s390/s390.c (s390_excess_precision): New.
3296 (TARGET_C_EXCESS_PRECISION): Define.
3297
3298 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3299
3300 * config/i386/i386.c (ix86_excess_precision): New.
3301 (TARGET_C_EXCESS_PRECISION): Define.
3302
3303 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3304
3305 * target.def (excess_precision): New hook.
3306 * target.h (flt_eval_method): New.
3307 (excess_precision_type): Likewise.
3308 * targhooks.c (default_excess_precision): New.
3309 * targhooks.h (default_excess_precision): New.
3310 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3311 * doc/tm.texi: Regenerate.
3312
3313 2016-11-23 Martin Sebor <msebor@redhat.com>
3314
3315 PR middle-end/78461
3316 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3317 set the minimum number of bytes for an unknown string to zero.
3318
3319 2016-11-23 Martin Jambor <mjambor@suse.cz>
3320 Martin Liska <mliska@suse.cz>
3321
3322 * hsa-builtins.def: New file.
3323 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3324 * builtins.def: Include hsa-builtins.def.
3325 (DEF_HSA_BUILTIN): New macro.
3326 * dumpfile.h (OPTGROUP_OPENMP): Define.
3327 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3328 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3329 GF_OMP_FOR_GRID_GROUP_ITER.
3330 (gimple_omp_for_grid_phony): Added checking assert.
3331 (gimple_omp_for_set_grid_phony): Likewise.
3332 (gimple_omp_for_grid_intra_group): New function.
3333 (gimple_omp_for_set_grid_intra_group): Likewise.
3334 (gimple_omp_for_grid_group_iter): Likewise.
3335 (gimple_omp_for_set_grid_group_iter): Likewise.
3336 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3337 previosuly only distribute loop was permitted.
3338 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3339 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3340 dimensions.
3341 (grid_expand_omp_for_loop): Likewise and also support standalone
3342 distribute constructs. New parameter INTRA_GROUP, updated both users.
3343 (grid_expand_target_grid_body): Support standalone distribute
3344 constructs.
3345 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3346 (pass_data_expand_omp_ssa): Likewise.
3347 (pass_data_omp_device_lower): Likewsie.
3348 (pass_data_lower_omp): Likewise.
3349 (pass_data_diagnose_omp_blocks): Likewise.
3350 (pass_data_oacc_device_lower): Likewise.
3351 (pass_data_omp_target_link): Likewise.
3352 (grid_lastprivate_predicate): New function.
3353 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3354 gridified loops.
3355 (lower_omp_for): Support standalone distribute constructs.
3356 (grid_prop): New type.
3357 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3358 parameter GRID.
3359 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3360 it to callee.
3361 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3362 optimization info messages.
3363 (grid_find_single_omp_among_assignments): Likewise.
3364 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3365 (grid_parallel_clauses_gridifiable): New function.
3366 (grid_inner_loop_gridifiable_p): Likewise.
3367 (grid_dist_follows_simple_pattern): Likewise.
3368 (grid_gfor_follows_tiling_pattern): Likewise.
3369 (grid_call_permissible_in_distribute_p): Likewise.
3370 (grid_handle_call_in_distribute): Likewise.
3371 (grid_dist_follows_tiling_pattern): Likewise.
3372 (grid_target_follows_gridifiable_pattern): Support standalone
3373 distribute constructs.
3374 (grid_var_segment): New enum.
3375 (grid_mark_variable_segment): New function.
3376 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3377 if a new argument says so.
3378 (grid_process_grid_body): New function.
3379 (grid_eliminate_combined_simd_part): Likewise.
3380 (grid_mark_tiling_loops): Likewise.
3381 (grid_mark_tiling_parallels_and_loops): Likewise.
3382 (grid_process_kernel_body_copy): Support standalone distribute
3383 constructs.
3384 (grid_attempt_target_gridification): New grid variable holding overall
3385 gridification state. Support standalone distribute constructs and
3386 collapse clauses.
3387 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3388 * hsa.h (hsa_bb): Add method method append_phi.
3389 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3390 occurences in all files too.
3391 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3392 (is_a_helper <hsa_insn_br *>::test): New function.
3393 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3394 branch instructions.
3395 (hsa_insn_signal): Make a direct descendant of
3396 hsa_insn_basic. Add memorder constructor parameter and
3397 m_memory_order and m_signalop member variables.
3398 (hsa_insn_queue): Changed constructor parameters to common form.
3399 Added m_segment and m_memory_order member variables.
3400 (hsa_summary_t): Add private member function
3401 process_gpu_implementation_attributes.
3402 (hsa_function_summary): Rename m_binded_function to
3403 m_bound_function.
3404 (hsa_insn_basic_p): Remove typedef.
3405 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3406 (hsa_op_reg_p): Remove typedef.
3407 (hsa_function_representation): Change hsa_op_reg_p into plain
3408 pointers.
3409 (hsa_insn_phi): Removed new and delete operators.
3410 (hsa_insn_br): Likewise.
3411 (hsa_insn_cbr): Likewise.
3412 (hsa_insn_sbr): Likewise.
3413 (hsa_insn_cmp): Likewise.
3414 (hsa_insn_mem): Likewise.
3415 (hsa_insn_atomic): Likewise.
3416 (hsa_insn_signal): Likewise.
3417 (hsa_insn_seg): Likewise.
3418 (hsa_insn_call): Likewise.
3419 (hsa_insn_arg_block): Likewise.
3420 (hsa_insn_comment): Likewise.
3421 (hsa_insn_srctype): Likewise.
3422 (hsa_insn_packed): Likewise.
3423 (hsa_insn_cvt): Likewise.
3424 (hsa_insn_alloca): Likewise.
3425 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3426 (process_gpu_implementation_attributes): New function.
3427 (link_functions): Move some functionality into it. Adjust after
3428 renaming m_binded_functions to m_bound_functions.
3429 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3430 to the list of instructions with no output registers.
3431 (get_in_type): Return this if it is a register of
3432 matching size.
3433 (hsa_get_declaration_name): Moved to...
3434 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3435 temporary string on an obstack instead from ggc.
3436 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3437 down to two overloads.
3438 (hsa_allocp_operand_address): Removed.
3439 (hsa_allocp_operand_immed): Likewise.
3440 (hsa_allocp_operand_reg): Likewise.
3441 (hsa_allocp_operand_code_list): Likewise.
3442 (hsa_allocp_operand_operand_list): Likewise.
3443 (hsa_allocp_inst_basic): Likewise.
3444 (hsa_allocp_inst_phi): Likewise.
3445 (hsa_allocp_inst_mem): Likewise.
3446 (hsa_allocp_inst_atomic): Likewise.
3447 (hsa_allocp_inst_signal): Likewise.
3448 (hsa_allocp_inst_seg): Likewise.
3449 (hsa_allocp_inst_cmp): Likewise.
3450 (hsa_allocp_inst_br): Likewise.
3451 (hsa_allocp_inst_sbr): Likewise.
3452 (hsa_allocp_inst_call): Likewise.
3453 (hsa_allocp_inst_arg_block): Likewise.
3454 (hsa_allocp_inst_comment): Likewise.
3455 (hsa_allocp_inst_queue): Likewise.
3456 (hsa_allocp_inst_srctype): Likewise.
3457 (hsa_allocp_inst_packed): Likewise.
3458 (hsa_allocp_inst_cvt): Likewise.
3459 (hsa_allocp_inst_alloca): Likewise.
3460 (hsa_allocp_bb): Likewise.
3461 (hsa_obstack): New.
3462 (hsa_init_data_for_cfun): Initialize obstack.
3463 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3464 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3465 (hsa_op_reg::operator new): Likewise.
3466 (hsa_op_address::operator new): Likewise.
3467 (hsa_op_code_list::operator new): Likewise.
3468 (hsa_op_operand_list::operator new): Likewise.
3469 (hsa_insn_basic::operator new): Likewise.
3470 (hsa_insn_phi::operator new): Likewise.
3471 (hsa_insn_br::operator new): Likewise.
3472 (hsa_insn_sbr::operator new): Likewise.
3473 (hsa_insn_cmp::operator new): Likewise.
3474 (hsa_insn_mem::operator new): Likewise.
3475 (hsa_insn_atomic::operator new): Likewise.
3476 (hsa_insn_signal::operator new): Likewise.
3477 (hsa_insn_seg::operator new): Likewise.
3478 (hsa_insn_call::operator new): Likewise.
3479 (hsa_insn_arg_block::operator new): Likewise.
3480 (hsa_insn_comment::operator new): Likewise.
3481 (hsa_insn_srctype::operator new): Likewise.
3482 (hsa_insn_packed::operator new): Likewise.
3483 (hsa_insn_cvt::operator new): Likewise.
3484 (hsa_insn_alloca::operator new): Likewise.
3485 (hsa_init_new_bb): Likewise.
3486 (hsa_bb::append_phi): New function.
3487 (gen_hsa_phi_from_gimple_phi): Use it.
3488 (get_symbol_for_decl): Fix dinstinguishing between
3489 global and local functions. Put local variables into a segment
3490 according to their attribute or static flag, if there is one.
3491 (hsa_insn_br::hsa_insn_br): New.
3492 (hsa_insn_br::operator new): Likewise.
3493 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3494 (query_hsa_grid_nodim): New function.
3495 (multiply_grid_dim_characteristics): Likewise.
3496 (gen_get_num_threads): Likewise.
3497 (gen_get_num_teams): Reimplemented.
3498 (gen_get_team_num): Likewise.
3499 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3500 helper functions.
3501 (get_memory_order_name): Removed.
3502 (get_memory_order): Likewise.
3503 (hsa_memorder_from_tree): New function.
3504 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3505 gen_hsa_atomic_for_builtin, can also create signals.
3506 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3507 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3508 (hsa_insn_atomic): Fix function comment.
3509 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3510 ancestor constructor and initialization of new member variables.
3511 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3512 member variables.
3513 (hsa_get_host_function): Handle functions with no bound CPU
3514 implementation. Fix binded to bound.
3515 (get_brig_function_name): Likewise.
3516 (HSA_SORRY_ATV): Remove semicolon after macro.
3517 (HSA_SORRY_AT): Likewise.
3518 (omp_simple_builtin::generate): Add missing semicolons.
3519 (hsa_insn_phi::operator new): Removed.
3520 (hsa_insn_br::operator new): Likewise.
3521 (hsa_insn_cbr::operator new): Likewise.
3522 (hsa_insn_sbr::operator new): Likewise.
3523 (hsa_insn_cmp::operator new): Likewise.
3524 (hsa_insn_mem::operator new): Likewise.
3525 (hsa_insn_atomic::operator new): Likewise.
3526 (hsa_insn_signal::operator new): Likewise.
3527 (hsa_insn_seg::operator new): Likewise.
3528 (hsa_insn_call::operator new): Likewise.
3529 (hsa_insn_arg_block::operator new): Likewise.
3530 (hsa_insn_comment::operator new): Likewise.
3531 (hsa_insn_srctype::operator new): Likewise.
3532 (hsa_insn_packed::operator new): Likewise.
3533 (hsa_insn_cvt::operator new): Likewise.
3534 (hsa_insn_alloca::operator new): Likewise.
3535 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3536 readonly segment.
3537 (gen_hsa_addr): Also process CONST_DECLs.
3538 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3539 copies.
3540 (gen_hsa_unary_operation): Make sure the function does
3541 not use bittype source type for firstbit and lastbit operations.
3542 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3543 source type.
3544 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3545 instruction.
3546 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3547 Emit the width stored in the class.
3548 (emit_generic_branch_insn): New function.
3549 (emit_insn): Call emit_generic_branch_insn.
3550 (emit_signal_insn): Remove obsolete comment. Update
3551 member variable name, pick a type according to profile.
3552 (emit_alloca_insn): Remove obsolete comment.
3553 (emit_atomic_insn): Likewise.
3554 (emit_queue_insn): Get segment and memory order from the IR object.
3555 (hsa_brig_section): Make allocate_new_chunk, chunks
3556 and cur_chunk provate, add a default NULL parameter to add method.
3557 (hsa_brig_section::add): Added a new parameter, store pointer to
3558 output data there if it is non-NULL.
3559 (emit_function_directives): Use this new parameter instead of
3560 calculating the pointer itself, fix function comment.
3561 (hsa_brig_emit_function): Add forgotten endian conversion.
3562 (hsa_output_kernels): Remove unnecessary building of
3563 kernel_dependencies_vector_type.
3564 (emit_immediate_operand): Declare.
3565 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3566 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3567 (verify_function_arguments): Properly detect variadic
3568 arguments.
3569 * hsa-dump.c (hsa_width_specifier_name): New function.
3570 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3571 member variable name. Special dumping for queue objects.
3572 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3573 m_binded_functions to m_bound_functions. Copy externally visible flag
3574 to the node.
3575 (ipa_hsa_write_summary): Likewise.
3576 (ipa_hsa_read_section): Likewise.
3577
3578 2016-11-23 Richard Biener <rguenther@suse.de>
3579
3580 PR tree-optimization/78396
3581 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3582 vectorize try vectorizing an if-converted body using BB vectorization.
3583
3584 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3585 Alan Hayward <alan.hayward@arm.com>
3586 David Sherwood <david.sherwood@arm.com>
3587
3588 * rtlanal.c (subreg_get_info): Use more local variables.
3589 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3590 occupies at least one register. Assume that full hard registers
3591 have consistent endianness. Share previously-duplicated if block.
3592 Rework the main handling so that it operates on independently-
3593 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3594 to check lowpart offsets, without trying to find an equivalent
3595 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3596 as a final register-endianness correction.
3597
3598 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3599
3600 PR target/77881
3601 PR bootstrap/78390
3602 PR target/78438
3603 PR bootstrap/78477
3604 * combine.c (make_compound_operation_int): Do not convert a subreg of
3605 a non-constant logical shift right to a zero_extract. Handle the case
3606 where some zero bits have been shifted into the range covered by that
3607 subreg.
3608
3609 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3610 Alan Hayward <alan.hayward@arm.com>
3611 David Sherwood <david.sherwood@arm.com>
3612
3613 * rtl.h (subreg_size_offset_from_lsb): Declare.
3614 (subreg_offset_from_lsb): New function.
3615 (subreg_size_lowpart_offset): Declare.
3616 (subreg_lowpart_offset): Turn into an inline function.
3617 (subreg_size_highpart_offset): Declare.
3618 (subreg_highpart_offset): Turn into an inline function.
3619 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3620 (subreg_size_highpart_offset): Likewise
3621 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3622
3623 2016-11-23 Richard Biener <rguenther@suse.de>
3624
3625 PR tree-optimization/78482
3626 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3627 (remove_forwarder_block_with_phi): When merging with a loop
3628 header creates a new latch reset number of iteration information
3629 of the loop.
3630
3631 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3632
3633 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3634 (*ashrsi3_extend0): ...this. Accept constant integers.
3635 (*ashrsi3_extend2): Rename to...
3636 (*ashrsi3_extend1): ...this.
3637 (*ashrsi3_extend2): New pattern.
3638 (*lshrsi3_extend1): Accept constant integers.
3639 (*lshrsi3_extend2): Fix condition on operand 2.
3640
3641 2016-11-23 Martin Liska <mliska@suse.cz>
3642
3643 * config/i386/i386.c: Initialize function pointer to NULL.
3644
3645 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3646
3647 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3648 for A == C1 ? A : C2 to below.
3649 * match.pd: Move from above to here:
3650 (cond (eq (convert1? x) c1) (convert2? x) c2)
3651 -> (cond (eq x c1) c1 c2).
3652
3653 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3654
3655 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3656 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3657 * match.pd: Move and extend simplification from above to here:
3658 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3659 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3660 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3661
3662 2016-11-23 Martin Liska <mliska@suse.cz>
3663 Martin Jambor <mjambor@suse.cz>
3664
3665 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3666
3667 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3668
3669 PR target/78213
3670 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3671
3672 2016-11-23 Richard Biener <rguenther@suse.de>
3673
3674 PR middle-end/71762
3675 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3676 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3677
3678 2016-11-23 Richard Biener <rguenther@suse.de>
3679
3680 PR lto/78472
3681 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3682 fields.
3683
3684 2016-11-23 Richard Biener <rguenther@suse.de>
3685 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3686
3687 PR tree-optimization/78154
3688 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3689 returns it's argument and the argument is nonnull.
3690 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3691 ATT_RETNONNULL_NOTHROW_LEAF.
3692 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3693 ATTR_RETNONNULL_NOTHROW_LEAF.
3694 (BUILT_IN_STPCPY): Likewise.
3695 (BUILT_IN_STPNCPY): Likewise.
3696 (BUILT_IN_MEMPCPY_CHK): Likewise.
3697 (BUILT_IN_STPCPY_CHK): Likewise.
3698 (BUILT_IN_STPNCPY_CHK): Likewise.
3699 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3700 (BUILT_IN_STRNCAT): Likewise.
3701 (BUILT_IN_STRNCPY): Likewise.
3702 (BUILT_IN_MEMSET_CHK): Likewise.
3703 (BUILT_IN_STRCAT_CHK): Likewise.
3704 (BUILT_IN_STRCPY_CHK): Likewise.
3705 (BUILT_IN_STRNCAT_CHK): Likewise.
3706 (BUILT_IN_STRNCPY_CHK): Likewise.
3707
3708 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3709
3710 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3711 * fold-const.h (tree_expr_nonzero_p) : Declare.
3712 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3713
3714 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3715
3716 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3717 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3718 "defined" in macros.
3719 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3720 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3721 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3722
3723 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3724
3725 PR target/60300
3726 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3727 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3728 of RCALLs in prologue to 3.
3729
3730 2016-11-22 Michael Collison <michael.collison@arm.com>
3731
3732 * config/aarch64/aarch64-protos.h
3733 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3734 (aarch64_and_bitmask_imm): New prototypes
3735 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3736 New overloaded function to create bit mask covering the
3737 lowest to highest bits set.
3738 (aarch64_and_split_imm2): New overloaded functions to create bit
3739 mask of zeros between first and last bit set.
3740 (aarch64_and_bitmask_imm): New function to determine if a integer
3741 is a valid two instruction "and" operation.
3742 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3743 allowing wider range of constants with "and" operations.
3744 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3745 "and" operator from matching restricted constant range used for
3746 ior and xor operators.
3747 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3748 for constants in "and" operantions.
3749 (UsP constraint): New DImode constraint for constants
3750 in "and" operations.
3751 * config/aarch64/iterators.md (lconst2): New mode iterator.
3752 (LOGICAL2): New code iterator.
3753 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3754 predicate.
3755 (aarch64_logical_and_operand): New predicate allowing extended
3756 constants for "and" operations.
3757
3758 2016-11-22 Walter Lee <walt@tilera.com>
3759
3760 * config/tilegx/tilegx.md (trap): New pattern.
3761 * config/tilepro/tilepro.md (trap): Likewise.
3762
3763 2016-11-22 Walter Lee <walt@tilera.com>
3764
3765 * config/tilegx/tilegx.md (*zero_extract): Use
3766 define_insn_and_split instead of define_insn; Handle pos + size >
3767 64.
3768 (*sign_extract): Likewise.
3769
3770 2016-11-22 Marek Polacek <polacek@redhat.com>
3771
3772 PR tree-optimization/78455
3773 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3774
3775 2016-11-22 Ian Lance Taylor <iant@golang.org>
3776
3777 PR go/78431
3778 PR go/78432
3779 * godump.c (go_format_type): Always pass alignment as 1 when
3780 calling go_append_padding at end of struct/union.
3781
3782 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR target/78451
3785 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3786 _mm512_setzero_hi): Removed.
3787 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3788 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3789 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3790 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
3791 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
3792 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
3793 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
3794 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
3795 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
3796 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
3797 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
3798 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
3799 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
3800 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
3801 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
3802 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
3803 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
3804 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
3805 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
3806 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
3807 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
3808 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
3809 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
3810 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
3811 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
3812 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
3813 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
3814 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
3815 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
3816 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
3817 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
3818 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
3819 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
3820 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
3821 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
3822 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
3823 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3824 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3825 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3826 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
3827 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
3828 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
3829 _mm512_setzero_qi or _mm512_setzero_hi.
3830 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
3831 _mm512_maskz_dbsad_epu8): Formatting fixes.
3832 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
3833 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
3834 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
3835 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
3836 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
3837 _mm512_setzero_qi or _mm512_setzero_hi.
3838
3839 2016-11-22 Nathan Sidwell <nathan@acm.org>
3840
3841 * gcc-ar.c (main): Fix indentation.
3842 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
3843 * ggc-page.c (move_ptes_to_front): Fix formatting.
3844 * hsa-dump.c (dump_has_cfun): Fix indentation.
3845 * sel-sched-ir.h: Remove trailing blank lines.
3846
3847 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3848 Alexander Monakov <amonakov@ispras.ru>
3849
3850 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
3851 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
3852 (omp_clause_code_name): Add _simt_ name.
3853 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
3854 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
3855 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
3856 (scan_omp_simd): New function.
3857 (scan_omp_1_stmt): Use it in target regions if needed.
3858 (omp_max_vf): Don't max with omp_max_simt_vf.
3859 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
3860 OMP_CLAUSE__SIMT_ is present.
3861 (lower_rec_input_clauses): Compute maybe_simt from presence of
3862 OMP_CLAUSE__SIMT_.
3863 (lower_lastprivate_clauses): Likewise.
3864 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
3865 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
3866 * internal-fn.def (GOMP_USE_SIMT): New internal function.
3867 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
3868
3869 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
3870
3871 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
3872 (expand_GOMP_SIMT_VF): New.
3873 (expand_GOMP_SIMT_LAST_LANE): New.
3874 (expand_GOMP_SIMT_ORDERED_PRED): New.
3875 (expand_GOMP_SIMT_VOTE_ANY): New.
3876 (expand_GOMP_SIMT_XCHG_BFLY): New.
3877 (expand_GOMP_SIMT_XCHG_IDX): New.
3878 * internal-fn.def (GOMP_SIMT_LANE): New.
3879 (GOMP_SIMT_VF): New.
3880 (GOMP_SIMT_LAST_LANE): New.
3881 (GOMP_SIMT_ORDERED_PRED): New.
3882 (GOMP_SIMT_VOTE_ANY): New.
3883 (GOMP_SIMT_XCHG_BFLY): New.
3884 (GOMP_SIMT_XCHG_IDX): New.
3885 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
3886 (create_omp_child_function): ...here. Set "omp target entrypoint"
3887 or "omp declare target" attribute based on is_gimple_omp_offloaded.
3888 (omp_max_simt_vf): New. Use it...
3889 (omp_max_vf): ...here.
3890 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
3891 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
3892 (lower_omp_ordered): Likewise, for "ordered" lowering.
3893 (expand_omp_simd): Add SIMT transforms.
3894 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
3895 (execute_omp_device_lower): New.
3896 (pass_data_omp_device_lower): New.
3897 (pass_omp_device_lower): New pass.
3898 (make_pass_omp_device_lower): New.
3899 * passes.def (pass_omp_device_lower): Position new pass.
3900 * tree-pass.h (PROP_gimple_lomp_dev): Define.
3901 (make_pass_omp_device_lower): Declare.
3902
3903 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3904
3905 PR target/78451
3906 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
3907 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
3908 _mm_setzero_di.
3909 (_mm_maskz_load_epi64): Likewise.
3910 (_mm_setzero_hi): Removed.
3911 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
3912 _mm_setzero_di.
3913 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
3914 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
3915 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
3916 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
3917 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
3918 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
3919 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
3920 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
3921 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3922 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
3923 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
3924 Likewise.
3925 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
3926 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
3927 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
3928 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
3929 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
3930 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
3931 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
3932 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
3933 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
3934 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
3935 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
3936 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3937 instead of _mm_setzero_hi.
3938 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
3939 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
3940 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
3941 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
3942 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
3943 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
3944 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
3945 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
3946 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
3947 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
3948 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
3949 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3950 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3951 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3952 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3953 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3954 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3955 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3956 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3957 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3958 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3959 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3960 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3961 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3962 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3963 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3964 _mm_setzero_di.
3965 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3966 instead of _mm_setzero_hi.
3967 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3968 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3969 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3970 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3971 _mm_setzero_si128 instead of _mm_setzero_di.
3972 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3973 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3974 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3975 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3976 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3977 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3978 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3979 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3980 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3981 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3982 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3983 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3984 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3985 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3986 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3987 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3988 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3989 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3990 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3991 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3992 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3993 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3994 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3995 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3996 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3997 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3998 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3999 _mm512_maskz_insertf32x8): Formatting fixes.
4000 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4001 _mm_setzero_si128 instead of _mm_setzero_di.
4002 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4003 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4004 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4005 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4006 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4007 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4008 _mm_setzero_si128 instead of _mm_setzero_di.
4009 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4010 Likewise in macros.
4011 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4012 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4013 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4014 _mm_setzero_si128 instead of _mm_setzero_hi.
4015 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4016 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4017 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4018 instead of _mm_setzero_di.
4019 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4020 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4021 _mm_setzero_hi.
4022 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4023 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4024 _mm_setzero_hi.
4025 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4026 _mm_setzero_di.
4027 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4028 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4029 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4030
4031 2016-11-22 Carl Love <cel@us.ibm.com>
4032
4033 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4034 equal and vector compare not equal. The vector compares take two
4035 arguments of type vector bool char, vector bool short, vector bool int,
4036 vector bool long long with the same return type.
4037 * doc/extend.texi: Update built-in documentation file for the new
4038 powerpc built-ins.
4039
4040 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4041
4042 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4043 of -j argument.
4044
4045 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4046
4047 * config.gcc: Allow new rmprofile value for configure option
4048 --with-multilib-list.
4049 * config/arm/t-rmprofile: New file.
4050 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4051 for ARM.
4052
4053 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4054
4055 PR target/78439
4056 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4057 register operand in alternatives 4,5,6.
4058
4059 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4060
4061 PR target/77904
4062 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4063 in save register mask if it is needed.
4064
4065 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4066
4067 PR tree-optimization/78436
4068 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4069 (shift_bytes_in_array, shift_bytes_in_array_right,
4070 merged_store_group::apply_stores): Formatting fixes.
4071 (clear_bit_region): Likewise. Use memset.
4072 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4073 instead of EXPR and inerted instead of inserted. Use memset instead
4074 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4075 if shift_amnt is 0.
4076
4077 PR middle-end/78416
4078 * expmed.c (expand_divmod): Use wide_int for computation of
4079 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4080 Use size <= HOST_BITS_PER_WIDE_INT instead of
4081 HOST_BITS_PER_WIDE_INT >= size.
4082
4083 PR tree-optimization/78445
4084 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4085 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4086 is 1. Formatting fix.
4087
4088 2016-11-22 Martin Liska <mliska@suse.cz>
4089
4090 PR ipa/78309
4091 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4092 (sem_function::get_hash): Use the new field.
4093 (sem_function::parse): Remove an argument from ctor.
4094 (sem_variable::parse): Likewise.
4095 (sem_variable::get_hash): Use the new field.
4096 (sem_item_optimizer::read_section): Use new ctor and set hash.
4097 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4098 sem_variable::sem_variable, sem_function::sem_function.
4099
4100 2016-11-21 Jeff Law <law@redhat.com>
4101
4102 PR target/68538
4103 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4104 can_create_pseudo_p is true.
4105
4106 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4107
4108 PR target/68803
4109 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4110 *rotldi3_insert_7): New define_insns.
4111
4112 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4113
4114 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4115 so that DImode can be allocated to FP/vector registers in more
4116 cases, and we can avoid direct move operations. If the register
4117 needs reloading, prefer GPRs over FP/vector registers. In the
4118 case of FPR vs. Altivec registers, prefer FPR registers unless we
4119 have the ISA 3.0 reg+offset scalar instructions.
4120 (movdi_internal64): Likewise.
4121
4122 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4123
4124 PR middle-end/67335
4125 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4126 for tmp simd array if DECL_NAME (parm) is NULL.
4127
4128 2016-11-20 Jeff Law <law@redhat.com>
4129
4130 PR target/25128
4131 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4132 predicate.
4133 * config/m68k/m68k.md (relational tests against 65535/65536): New
4134 peephole2.
4135
4136 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4137
4138 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4139
4140 2016-11-21 Martin Sebor <msebor@redhat.com>
4141
4142 * doc/invoke.texi (-fprintf-return-value): Document that option
4143 is enabled by default.
4144
4145 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4146
4147 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4148 for-loop declaration of loop variable.
4149 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4150 * config/avr/avr.c (avr_popcount_each_byte)
4151 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4152 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4153 (avr_expand_epilogue, avr_function_arg_advance)
4154 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4155 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4156 (avr_adjust_reg_alloc_order, output_reload_in_const)
4157 (avr_conditional_register_usage, avr_find_unused_d_reg)
4158 (avr_map_decompose, avr_fold_builtin): Same.
4159
4160 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4161
4162 * config/avr/avr.c (avr_popcount): Remove static function.
4163 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4164
4165 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4166
4167 * arm.opt (mapcs-float): Delete option.
4168 * arm.c (arm_option_override): Remove hunk relating to
4169 TARGET_APCS_FLOAT.
4170 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4171
4172 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4173
4174 * tree-tailcall.c (process_assignment): Simplify the check for
4175 a valid copy, allowing the source to be a local variable as
4176 well as an SSA name.
4177 (find_tail_calls): Allow copies between local variables to follow
4178 the call. Allow the result to be stored in any local variable,
4179 even if it's an aggregate.
4180 (eliminate_tail_call): Check whether the result is an SSA name
4181 before updating its SSA_NAME_DEF_STMT.
4182
4183 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4184
4185 PR preprocessor/78324
4186 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4187 -ftrack-macro-expansion has a value other than 2.
4188
4189 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4190
4191 PR rtl-optimization/78400
4192 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4193 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4194 and df_update_exit_block_uses.
4195
4196 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4197
4198 PR c++/71973
4199 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4200 new default-enabled warning..
4201 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4202 (BT_PTR_CONST_STRING): Updated.
4203 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4204 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4205 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4206 (strftime): Update builtin function.
4207 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4208 * tree.h (const_tm_ptr_type_node): New type node.
4209 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4210 const_tm_ptr_type_node.
4211
4212 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4213
4214 PR tree-optimization/78413
4215 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4216 inner and outer loop latches have single predecessors.
4217
4218 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4219
4220 PR target/78093
4221 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4222 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4223
4224 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4225
4226 * rtl.h: Adjust prototype.
4227 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4228 (dead_or_set_regno_p): Likewise.
4229
4230 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4231
4232 * rtl.h: Adjust prototype.
4233 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4234
4235 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4236
4237 * function.c (contains): Change argument type to rtx_insn *.
4238 (prologue_contains): Likewise.
4239 (epilogue_contains): Likewise.
4240 (prologue_epilogue_contains): Likewise.
4241 * function.h: Adjust prototype.
4242
4243 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4244
4245 * optabs.c (emit_libcall_block): Change argument type to
4246 rtx_insn *.
4247 * optabs.h: Adjust prototype.
4248
4249 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4250
4251 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4252 (fixup_reorder_chain): Adjust.
4253 * cfgrtl.h: Adjust prototype.
4254
4255 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4256
4257 * rtl.h: Adjust prototype.
4258 * rtlanal.c (replace_label_in_insn): Change argument type to
4259 rtx_insn *.
4260
4261 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4262
4263 * config/v850/v850.c (expand_prologue): Adjust.
4264 (expand_epilogue): Likewise.
4265 * expr.c (init_expr_target): Likewise.
4266 * genrecog.c (print_subroutine): Always make the argument type
4267 rtx_insn *.
4268 * recog.h: Adjust prototype.
4269
4270 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4271
4272 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4273 up variables to make some rtx_insn *.
4274 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4275 * config/arc/arc.c: Likewise.
4276 * config/arm/arm.c: Likewise.
4277 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4278 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4279 Likewise.
4280 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4281
4282 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4283
4284 * config/arm/arm.c (legitimize_pic_address): Change to use
4285 rtx_insn * as the type of variables.
4286 (arm_pic_static_addr): Likewise.
4287 (arm_emit_movpair): Likewise.
4288 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4289 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4290 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4291 * config/frv/frv.md: Likewise.
4292 * config/i386/i386-protos.h: Likewise.
4293 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4294 (ix86_split_fp_branch): Likewise.
4295 (predict_jump): Likewise.
4296 * config/ia64/ia64.c: Likewise.
4297 * config/mcore/mcore.c: Likewise.
4298 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4299 * config/s390/s390.c: Likewise.
4300 * config/s390/s390.md: Likewise.
4301 * config/spu/spu.md: Likewise.
4302 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4303 * lower-subreg.c (resolve_simple_move): Likewise.
4304
4305 2016-11-20 Jeff Law <law@redhat.com>
4306
4307 PR target/48551
4308 * reload.h (struct target_reload): Make x_double_reg_address_ok
4309 be per-mode rather.
4310 * reload.c (find_reloads_address): Check if double_reg_address_ok
4311 is true for the mode of the memory reference.
4312 * reload1.c (init_reload): Initialize double_reg_address_ok for
4313 each mode.
4314
4315 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4316
4317 PR middle-end/61409
4318 * tree-ssa-uninit.c: Define new global max_phi_args.
4319 (compute_uninit_opnds_pos): Use max_phi_args.
4320 (prune_uninit_phi_opnds): Same.
4321 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4322 missing NUM_PREDS in function comment.
4323 (can_one_predicate_be_invalidated_p): New.
4324 (can_chain_union_be_invalidated_p): New.
4325 (flatten_out_predicate_chains): New.
4326 (uninit_ops_invalidate_phi_use): New.
4327 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4328
4329 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4330
4331 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4332 * match.pd (A /[ex] B CMP C): New simplifications.
4333
4334 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4335
4336 * match.pd (0 / X, X / X, X % X): New simplifications.
4337
4338 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4339
4340 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4341 when checking if callee's isa flags are subset of caller's isa flags.
4342 Fix comment wording.
4343
4344 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4345 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4346 instead and using = 0 instead of &= 0.
4347
4348 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4349 ix86_add_new_builtins): Formatting fixes.
4350 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4351 (ix86_get_builtin): Likewise.
4352
4353 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4354 don't initialize it, don't use it for the case where it isn't
4355 provable %{z} nor using the same argument, instead move merge
4356 argument into a new pseudo and use that as target. Formatting fixes.
4357
4358 2016-11-19 Jeff Law <law@redhat.com>
4359
4360 PR target/25111
4361 * config/m68k/m68k.md (bsetdreg): New pattern.
4362 (bchgdreg, bclrdreg): Likewise.
4363
4364 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4365
4366 PR target/78426
4367 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4368 instead of force_reg.
4369 (sh_expand_setmem): Likewise.
4370
4371 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4372
4373 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4374
4375 2016-11-18 Walter Lee <walt@tilera.com>
4376
4377 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4378 end-of-bundle marker for consecutive barriers.
4379
4380 2016-11-18 Walter Lee <walt@tilera.com>
4381
4382 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4383
4384 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4385
4386 PR middle-end/78419
4387 * multiple_target.c (get_attr_len): Start with argnum and increment
4388 argnum on every arg. Use strchr in a loop instead of counting commas
4389 manually.
4390 (get_attr_str): Increment argnum for every comma in the string.
4391 (separate_attrs): Use for instead of while loop, simplify.
4392 (expand_target_clones): Rename defenition argument to definition.
4393 Free attrs and attr_str even when diagnosing errors. Temporarily
4394 change input_location around targetm.target_option.valid_attribute_p
4395 calls. Don't emit warning or errors if that function fails.
4396
4397 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4398
4399 PR debug/78191
4400 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4401 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4402 abbrev_opt_base_type_end only by increasing die_abbrev, before
4403 any other dies.
4404 (optimize_abbrev_table): Don't change abbrev numbers of
4405 base types and CU or optimize implicit consts in them if
4406 calc_base_type_die_sizes has been called during build_abbrev_table.
4407 (calc_base_type_die_sizes): If abbrev_opt_start, set
4408 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4409
4410 2016-11-18 Jeff Law <law@redhat.com>
4411
4412 PR target/25112
4413 * config/m68k/m68k.c (moveq feeding equality comparison): New
4414 peepholes.
4415 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4416 (equality_comparison_operator): Likewise.
4417
4418 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4419
4420 * rtlanal.c (load_extend_op): Move to...
4421 * rtl.h: ...here and make inline.
4422
4423 2016-11-18 Terry Guo <terry.guo@arm.com>
4424 Thomas Preud'homme <thomas.preudhomme@arm.com>
4425
4426 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4427 * config/arm/arm-opts.h: Include arm-flags.h.
4428 (struct arm_arch_core_flag): Define.
4429 (arm_arch_core_flags): Define.
4430 * config/arm/arm-protos.h: Include arm-flags.h
4431 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4432 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4433 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4434 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4435 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4436 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4437 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4438 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4439 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4440 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4441 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4442 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4443 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4444 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4445 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4446 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4447 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4448 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4449 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4450 ARM_FSET_CPU_SUBSET): Move to ...
4451 * config/arm/arm-flags.h: This new file.
4452 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4453 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4454 (TARGET_MODE_SPECS): Define.
4455 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4456
4457 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4458
4459 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4460 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4461 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4462 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4463 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4464 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4465 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4466 missing and make value unsigned.
4467 (arm_feature_set): Use unsigned entries instead of unsigned long.
4468
4469 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4470
4471 Re-apply after PR bootstrap/77359 is fixed:
4472 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4473
4474 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4475 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4476 size needed.
4477
4478 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4479
4480 PR bootstrap/77359
4481 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4482 variables in functions calling alloca. Also update the ASCII
4483 drawings.
4484 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4485 (STACK_DYNAMIC_OFFSET): Likewise.
4486 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4487 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4488 macros to aix.h.
4489
4490 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4491 Alan Hayward <alan.hayward@arm.com>
4492 David Sherwood <david.sherwood@arm.com>
4493
4494 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4495 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4496 (add_const_value_attribute): Likewise.
4497 * explow.c (plus_constant): Likewise.
4498 * expmed.c (expand_mult, make_tree): Likewise.
4499 * expr.c (convert_modes): Likewise.
4500 * loop-doloop.c (doloop_optimize): Likewise.
4501 * postreload.c (reload_cse_simplify_set): Likewise.
4502 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4503 (simplify_binary_operation_1, simplify_const_binary_operation):
4504 Likewise.
4505 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4506 * wide-int.h: Update documentation to recommend rtx_mode_t
4507 instead of std::make_pair.
4508
4509 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4510 Alan Hayward <alan.hayward@arm.com>
4511 David Sherwood <david.sherwood@arm.com>
4512
4513 * tree.h (SET_DECL_MODE): New macro.
4514 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4515 (expand_gimple_basic_block): Likewise.
4516 * function.c (split_complex_args): Likeise.
4517 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4518 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4519 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4520 (finish_bitfield_representative): Likewise.
4521 * tree.c (make_node_stat): Likewise.
4522 * tree-inline.c (remap_ssa_name): Likewise.
4523 (tree_function_versioning): Likewise.
4524 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4525 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4526 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4527 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4528 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4529 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4530 * varasm.c (make_debug_expr_from_rtl): Likewise.
4531
4532 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4533
4534 PR rtl-optimization/71785
4535 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4536 (duplicate_computed_gotos): New function.
4537 (pass_duplicate_computed_gotos::execute): Rewrite.
4538
4539 2016-11-17 Jeff Law <law@redhat.com>
4540
4541 PR target/47192
4542 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4543 barrier prior to deallocating the stack.
4544
4545 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4546
4547 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4548 to make better use of cmem loads in the case where a single bit is
4549 being accessed.
4550 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4551
4552 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4553
4554 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4555 F_AVX5124FMAPS.
4556 (isa_names_table): Handle new features.
4557
4558 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4559 Andrew Senkevich <andrew.senkevich@intel.com>
4560
4561 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4562 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4563 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4564 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4565 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4566 * config/i386/avx5124fmapsintrin.h: New file.
4567 * config/i386/avx5124vnniwintrin.h: Ditto.
4568 * config/i386/constraints.md (h): New constraint.
4569 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4570 * config/i386/driver-i386.c (host_detect_local_cpu):
4571 Detect avx5124fmaps, avx5124vnniw.
4572 * config/i386/i386-builtin-types.def: Add types
4573 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4574 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4575 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4576 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4577 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4578 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4579 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4580 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4581 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4582 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4583 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4584 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4585 __builtin_ia32_vp4dpwssds_mask): New.
4586 * config/i386/i386-c.c (ix86_target_macros_internal):
4587 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4588 * config/i386/i386-modes.def: Fixed comment typos, added new
4589 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4590 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4591 -mavx5124vnniw.
4592 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4593 (ix86_option_override_internal): Handle new options.
4594 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4595 avx5124vnniw.
4596 (ix86_expand_builtin): Handle new builtins.
4597 (ix86_additional_allocno_class_p): New.
4598 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4599 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4600 (reg_class): Add MOD4_SSE_REGS.
4601 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4602 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4603 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4604 avx5124vnniwintrin.h.
4605 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4606 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4607 (define_mode_iterator IMOD4): New.
4608 (define_mode_attr imod4_narrow): Ditto.
4609 (define_insn "mov<mode>"): Ditto.
4610 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4611 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4612 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4613 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4614 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4615 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4616 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4617 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4618 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4619 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4620 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4621 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4622 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4623 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4624 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4625 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4626 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4627 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4628 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4629 * genmodes.c (mode_size_inline): Extend return type.
4630 * machmode.h (mode_size, mode_base_align): Extend type.
4631
4632 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4633
4634 PR target/78101
4635 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4636 the appropriate checks for SFmode/DFmode load/stores in GPR
4637 registers.
4638 (fusion_addis_mem_combo_store): Likewise.
4639 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4640 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4641 d-form instructions for traditional Altivec registers.
4642 (emit_fusion_p9_load): Likewise.
4643 (emit_fusion_p9_store): Likewise.
4644 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4645 early clobber from scratch register. Do not match if the register
4646 being stored is the scratch register.
4647 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4648 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4649 instructions for traditional Altivec registers.
4650 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4651 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4652 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4653
4654 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4655
4656 PR target/77933
4657 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4658 being live in the function and lr needing to be saved. Distinguish
4659 between already saved pushable registers and registers to push.
4660 Check for LR being an available pushable register.
4661
4662 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4663
4664 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4665 string input is a string constant.
4666 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4667 via cmpstrnsi even if neither string is constant.
4668
4669 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4670
4671 PR middle-end/78201
4672 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4673 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4674 instead, return false if it is NULL, or doesn't fit into uhwi, or
4675 is larger or equal to targetm.max_anchor_offset.
4676
4677 2016-11-17 Pip Cet <pipcet@gmail.com>
4678 Eric Botcazou <ebotcazou@adacore.com>
4679
4680 PR rtl-optimization/78355
4681 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4682 needs to deal with unaligned accesses.
4683 * doc/tm.texi: Regenerate.
4684 * lra-constraints.c (simplify_operand_subreg): Only invoke
4685 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4686
4687 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4688
4689 * input.c (selftest::test_lexer_string_locations_long_line): New
4690 function.
4691 (selftest::test_lexer_string_locations_raw_string_multiline): New
4692 function.
4693 (selftest::input_c_tests): Call the new functions, via
4694 for_each_line_table_case.
4695
4696 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4697
4698 * config/aarch64/aarch64.md (mov<mode>): Call
4699 aarch64_split_dimode_const_store on DImode constant stores.
4700 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4701 New prototype.
4702 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4703 function.
4704
4705 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4706 Richard Biener <rguenther@suse.de>
4707
4708 PR tree-optimization/77848
4709 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4710 the user specified -ftree-loop-if-convert.
4711
4712 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4713
4714 PR target/77308
4715 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4716 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4717 *thumb2_strd_base_neg): Recognize insn regardless of
4718 current_tune->prefer_ldrd_strd.
4719 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4720 whenever possible.
4721
4722 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4723
4724 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4725 instruction type.
4726
4727 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4728
4729 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4730 for arcem.
4731 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4732 * config/arc/arc-cpus.def (quarkse_em): Add.
4733 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4734 * config/arc/arc-opts.h (FPX_QK): Define.
4735 * config/arc/arc-tables.opt: Regenerate.
4736 * config/arc/arc.c (gen_compare_reg): Change.
4737 (arc_register_move_cost): Avoid Dy,Dx moves.
4738 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4739 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4740 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4741 New expands.
4742 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4743 (fix_truncsfsi2_fpu): Rename.
4744 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4745 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4746 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4747 * config/arc/t-multilib: Regenerate.
4748
4749 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4750
4751 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4752 appropriate.
4753 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4754 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4755 (avr_rtx_costs_1, extra_constraint_Q): Same.
4756 (avr_address_cost): Use SUBREG_P if possible.
4757
4758 2016-11-17 Richard Biener <rguenther@suse.de>
4759
4760 PR middle-end/78383
4761 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4762 non-local goto into CFG.
4763
4764 2016-11-17 Richard Biener <rguenther@suse.de>
4765
4766 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4767 backward compatibility.
4768 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4769 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4770 flag_tree_loop_if_convert_stores.
4771 (pass_if_conversion::execute): Likewise.
4772
4773 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4774
4775 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4776 const_double code before calling aarch64_float_const_zero_rtx_p.
4777
4778 2016-11-17 Richard Biener <rguenther@suse.de>
4779
4780 PR tree-optimization/78306
4781 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4782 inhibit inlining if function calls cilk_spawn.
4783 (can_inline_edge_p): Likewise.
4784
4785 2016-11-17 Richard Biener <rguenther@suse.de>
4786
4787 PR middle-end/78305
4788 * fold-const.c (negate_expr_p): Fix multiplication case.
4789
4790 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
4791
4792 PR target/78357
4793 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
4794 condition.
4795 (TARGET_INIT_LIBFUNCS): Delete definition and...
4796 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
4797 comments.
4798
4799 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
4800
4801 * config/netbsd-stdint.h: New.
4802 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
4803 (x86_64-*-netbsd*): Likewise.
4804
4805 2016-11-16 Andrew PInski <apinski@cavium.com>
4806
4807 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
4808 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
4809 flag_aarch64_verbose_cost instead of checking for details dump.
4810 (aarch64_rtx_costs_wrapper): Likewise.
4811
4812 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4813
4814 PR rtl-optimization/78378
4815 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
4816 inner only if pos is 0. Fix up formatting.
4817
4818 2016-11-17 Alan Modra <amodra@gmail.com>
4819
4820 PR rtl-optimization/78325
4821 PR rtl-optimization/70890
4822 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
4823 for dead regno.
4824
4825 2016-11-16 Jason Merrill <jason@redhat.com>
4826
4827 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
4828
4829 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4830 Richard Biener <rguenther@suse.de>
4831
4832 PR tree-optimization/77848
4833 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
4834 an outer loop, only save basic block aux information for the inner
4835 loop.
4836 (versionable_outer_loop_p): New function.
4837 (tree_if_conversion): Version the outer loop instead of the inner
4838 one if the pattern will be recognized for outer-loop
4839 vectorization.
4840
4841 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4842
4843 * gcc/bb-reorder.c: Remove 'toplev.h' include.
4844 (pass_partition_blocks::gate): No longer check
4845 user_defined_section_attribute, instead check the function decl
4846 for a section attribute.
4847 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
4848 set user_defined_section_attribute.
4849 * gcc/final.c (rest_of_handle_final): Likewise.
4850 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
4851 * gcc/toplev.h: Remove declaration of
4852 user_defined_section_attribute.
4853
4854 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4855
4856 * config/mips/mips.md (casesi_internal_mips16_<mode>):
4857 Explicitly switch between JR and JRC for the table jump. Adjust
4858 instruction count.
4859
4860 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4861
4862 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
4863 `insn_count' to 11 rather than 16.
4864
4865 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4866
4867 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
4868 `ltu' rather than `leu' operation in the RTL pattern
4869
4870 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4871
4872 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
4873 missing <d> instruction prefixes throughout. Correct
4874 formatting.
4875
4876 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4877
4878 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
4879 rather than R_MIPS_JALR relocation in microMIPS code. Do not
4880 cancel short delay slots in PIC call relaxation.
4881
4882 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4883
4884 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
4885 general register with general register or ARM constant into SP
4886 register.
4887
4888 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4889
4890 PR fortran/78299
4891 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
4892 that loop->header == body_bb if broken_loop.
4893
4894 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
4895
4896 * tree-ssa-math-opts.c (bswap_replace): Remove test
4897 of SLOW_UNALIGNED_ACCESS.
4898
4899 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
4900
4901 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
4902 is selected. Pass -mgomp to offload compiler in OpenMP case.
4903 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
4904 declaration from nvptx.c.
4905 (nvptx_gen_shuffle): Declare.
4906 (nvptx_output_set_softstack): Declare.
4907 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
4908 (need_softstack_decl): New variable.
4909 (need_unisimt_decl): New variable.
4910 (diagnose_openacc_conflict): New. Use it...
4911 (nvptx_option_override): ...here. Handle TARGET_GOMP.
4912 (nvptx_encode_section_info): Handle "shared" attribute.
4913 (write_as_kernel): Restrict to OpenACC target regions.
4914 (init_softstack_frame): New.
4915 (nvptx_init_unisimt_predicate): New.
4916 (write_omp_entry): New. Use it...
4917 (nvptx_declare_function_name): ...here to emit OpenMP target region
4918 entrypoints. Handle TARGET_SOFT_STACK. Call
4919 nvptx_init_unisimt_predicate.
4920 (nvptx_output_set_softstack): New.
4921 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
4922 (nvptx_gen_shuffle): Export.
4923 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
4924 predicate.
4925 (nvptx_print_operand): Fix handling of instruction predicates.
4926 (nvptx_get_unisimt_master): New helper function.
4927 (nvptx_get_unisimt_predicate): Ditto.
4928 (nvptx_call_insn_is_syscall_p): Ditto.
4929 (nvptx_unisimt_handle_set): Ditto.
4930 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
4931 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
4932 (nvptx_handle_shared_attribute): New. Use it...
4933 (nvptx_attribute_table): ... here (new entry).
4934 (nvptx_record_offload_symbol): Handle NULL attributes.
4935 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
4936 (nvptx_simt_vf): New.
4937 (TARGET_SIMT_VF): Define.
4938 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
4939 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
4940 -muniform-simt option is active.
4941 (STACK_SIZE_MODE): Define.
4942 (FIXED_REGISTERS): Adjust.
4943 (SOFTSTACK_SLOT_REGNUM): New.
4944 (SOFTSTACK_PREV_REGNUM): New.
4945 (REGISTER_NAMES): Adjust.
4946 (struct machine_function): New fields.
4947 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
4948 (UNSPEC_VOTE_BALLOT): Ditto.
4949 (UNSPEC_LANEID): Ditto.
4950 (UNSPECV_NOUNROLL): Ditto.
4951 (atomic): New attribute.
4952 (predicable): New attribute. Generate predicated forms via
4953 define_cond_exec.
4954 (br_true): Mark as not predicable.
4955 (br_false): Ditto.
4956 (br_true_uni): Ditto.
4957 (br_false_uni): Ditto.
4958 (return): Ditto.
4959 (trap_if_true): Ditto.
4960 (trap_if_false): Ditto.
4961 (nvptx_fork): Ditto.
4962 (nvptx_forked): Ditto.
4963 (nvptx_joining): Ditto.
4964 (nvptx_join): Ditto.
4965 (nvptx_barsync): Ditto.
4966 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4967 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4968 (allocate_stack_<mode>): Remove unused pattern.
4969 (set_softstack_insn): New pattern.
4970 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4971 (nvptx_vote_ballot): New pattern.
4972 (omp_simt_lane): Ditto.
4973 (omp_simt_last_lane): Ditto.
4974 (omp_simt_ordered): Ditto.
4975 (omp_simt_vote_any): Ditto.
4976 (omp_simt_xchg_bfly): Ditto.
4977 (omp_simt_xchg_idx): Ditto.
4978 (nvptx_nounroll): Ditto.
4979 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4980 (atomic_exchange<mode>): Ditto.
4981 (atomic_fetch_add<mode>): Ditto.
4982 (atomic_fetch_addsf): Ditto.
4983 (atomic_fetch_<logic><mode>): Ditto.
4984 * config/nvptx/nvptx.opt (msoft-stack): New option.
4985 (muniform-simt): Ditto.
4986 (mgomp): Ditto.
4987 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4988 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4989 * doc/invoke.texi (msoft-stack): Document.
4990 (muniform-simt): Document
4991 (mgomp): Document.
4992 * doc/tm.texi: Regenerate.
4993 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4994 * target.def: Define it.
4995 * target-insns.def (omp_simt_lane): New.
4996 (omp_simt_last_lane): New.
4997 (omp_simt_ordered): New.
4998 (omp_simt_vote_any): New.
4999 (omp_simt_xchg_bfly): New.
5000 (omp_simt_xchg_idx): New.
5001
5002 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5003
5004 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5005 prototype.
5006 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5007 (ASM_OUTPUT_CASE_END): Likewise.
5008 * config/mips/mips.c (mips_set_text_contents_type): New function.
5009 (mips16_emit_constants): Record the pool's initial label number
5010 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5011 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5012 for `consttable' insns.
5013 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5014 for `consttable_end' insns.
5015 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5016 (consttable): Add operand.
5017 (consttable_end): New insn.
5018
5019 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5020
5021 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5022 * tree-if-conv.c (tree_if_conversion): Make public.
5023 * * tree-if-conv.h: New file.
5024 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5025 dynamic alias checks for epilogues.
5026 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5027 * tree-vect-loop.c: include tree-if-conv.h.
5028 (new_loop_vec_info): Add zeroing orig_loop_info field.
5029 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5030 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5031 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5032 using passed argument.
5033 (vect_transform_loop): Check if created epilogue should be returned
5034 for further vectorization with less vf. If-convert epilogue if
5035 required. Print vectorization success for epilogue.
5036 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5037 if it is required, pass loop_vinfo produced during vectorization of
5038 loop body to vect_analyze_loop.
5039 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5040 orig_loop_info.
5041 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5042 (LOOP_VINFO_EPILOGUE_P): New.
5043 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5044 (vect_do_peeling): Change prototype to return epilogue.
5045 (vect_analyze_loop): Add argument of loop_vec_info type.
5046 (vect_transform_loop): Return created loop.
5047
5048 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5049
5050 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5051 component as used also if LR_REGNO is a live input to the bb.
5052 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5053 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5054 (df_get_exit_block_use_set): Ditto.
5055 * df.h (df_scan_flags): New enum.
5056 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5057 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5058 df_update_entry_block_defs and df_update_exit_block_uses
5059 at the start; clear the flag and call those functions at the end.
5060
5061 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5062 Alan Hayward <alan.hayward@arm.com>
5063 David Sherwood <david.sherwood@arm.com>
5064
5065 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5066 nb_iterations to the number of latch iterations rather than the
5067 number of loop iterations.
5068
5069 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5070 Alan Hayward <alan.hayward@arm.com>
5071 David Sherwood <david.sherwood@arm.com>
5072
5073 * combine.c (maybe_swap_commutative_operands): New function.
5074 (combine_simplify_rtx): Use it.
5075 (change_zero_ext): Likewise.
5076 (make_compound_operation_int): New function, split out of...
5077 (make_compound_operation): ...here. Use
5078 maybe_swap_commutative_operands for both.
5079
5080 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5081
5082 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5083 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5084 * arm/arm-tables.opt: Regenerated.
5085 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5086 neon-vfpv3.
5087 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5088 and 'neon' are aliases for specific implementations.
5089
5090 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5091 Alan Hayward <alan.hayward@arm.com>
5092 David Sherwood <david.sherwood@arm.com>
5093
5094 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5095 and use it in the final call to gen_rtx_fmt_ee.
5096 (expand_vec_cond_expr): Update accordingly.
5097 (expand_vec_cmp_expr): Likewise.
5098
5099 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5100 Alan Hayward <alan.hayward@arm.com>
5101 David Sherwood <david.sherwood@arm.com>
5102
5103 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5104
5105 2016-11-16 Richard Biener <rguenther@suse.de>
5106
5107 PR middle-end/78333
5108 * gimplify.c (gimplify_function_tree): Do not instrument
5109 GNU extern inline functions.
5110
5111 2016-11-16 Martin Liska <mliska@suse.cz>
5112
5113 PR sanitizer/78270
5114 * gimplify.c (gimplify_switch_expr): Always save previous
5115 gimplify_ctxp->live_switch_vars.
5116
5117 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5120 zero_extract operations to allow a movb to occur.
5121 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5122 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5123 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5124 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5125 little endian arc.
5126
5127 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5128 Alan Hayward <alan.hayward@arm.com>
5129 David Sherwood <david.sherwood@arm.com>
5130
5131 * expr.c (emit_group_load_1): Tighten check for whether an
5132 access involves only one operand of a CONCAT. Use extract_bit_field
5133 for constants if the bit range does span the whole operand.
5134
5135 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5136 Alan Hayward <alan.hayward@arm.com>
5137 David Sherwood <david.sherwood@arm.com>
5138
5139 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5140
5141 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5142 Alan Hayward <alan.hayward@arm.com>
5143 David Sherwood <david.sherwood@arm.com>
5144
5145 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5146 all three iteration counts with an any_* test. Use a single update
5147 for each count. Fix the calculation of nb_iterations_estimate.
5148
5149 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5150
5151 * config/pdp11/pdp11.c: Include dbxout.h.
5152
5153 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5154
5155 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5156
5157 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5158
5159 PR target/78364
5160 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5161 proper ranges for an SBFX instruction.
5162 (extzv_t2): Likewise for UBFX.
5163
5164 2016-11-16 Richard Biener <rguenther@suse.de>
5165
5166 PR tree-optimization/78348
5167 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5168 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5169 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5170 revealed no dependency, PKIND_MEMMOVE otherwise.
5171
5172 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5173
5174 PR sanitizer/77823
5175 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5176 it points to non-NULL tree, use it instead of ubsan_create_data.
5177 (instrument_si_overflow): Handle vector signed integer overflow
5178 checking.
5179 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5180 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5181 vector IFN_UBSAN_CHECK_*.
5182 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5183 pass it through to ubsan_build_overflow_builtin.
5184 (expand_neg_overflow, expand_mul_overflow): Likewise.
5185 (expand_vector_ubsan_overflow): New function.
5186 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5187 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5188 (expand_arith_overflow): Adjust expand_*_overflow callers.
5189
5190 2016-11-16 Matthias Klose <doko@ubuntu.com>
5191
5192 * doc/install.texi: Remove references to java/libjava.
5193
5194 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5195
5196 * tree-ssa-coalesce.c (register_default_def): Remove
5197 register_ssa_partition.
5198 (create_outofssa_var_map): Likewise.
5199 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5200 * tree-ssa-live.h (register_ssa_partition): Likewise.
5201
5202 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5203
5204 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5205 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5206 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5207 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5208 rtx when all sub-rtx are also permanent.
5209 (attr_eq): Simplify.
5210 (attr_copy_rtx): Remove.
5211 (make_canonical, get_attr_value): Use attr_equal_p.
5212 (copy_boolean): Rehash NOT.
5213 (simplify_test_exp_in_temp,
5214 optimize_attrs): Remove call to attr_copy_rtx.
5215 (attr_alt_intersection, attr_alt_union,
5216 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5217 (make_automaton_attrs): Use attr_eq.
5218
5219 2016-11-15 Matthias Klose <doko@ubuntu.com>
5220
5221 * doc/install.texi: Remove references to java/libjava.
5222 * doc/sourcebuild.texi: Likewise.
5223 * doc/invoke.texi: Likewise.
5224 * doc/standards.texi: Likewise.
5225
5226 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5227 Alan Hayward <alan.hayward@arm.com>
5228 David Sherwood <david.sherwood@arm.com>
5229
5230 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5231 of VOIDmode.
5232 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5233 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5234 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5235 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5236 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5237 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5238 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5239
5240 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5241 Alan Hayward <alan.hayward@arm.com>
5242 David Sherwood <david.sherwood@arm.com>
5243
5244 * dce.c (check_argument_store): Pass the size instead of
5245 the memory reference.
5246 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5247
5248 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5249 Alan Hayward <alan.hayward@arm.com>
5250 David Sherwood <david.sherwood@arm.com>
5251
5252 * alias.c (canon_rtx): Use simplify_gen_binary.
5253
5254 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5255 Alan Hayward <alan.hayward@arm.com>
5256 David Sherwood <david.sherwood@arm.com>
5257
5258 * rtl.h (load_extend_op): Declare.
5259 * rtlanal.c (load_extend_op): New function.
5260 (nonzero_bits1): Use it.
5261 (num_sign_bit_copies1): Likewise.
5262 * cse.c (cse_insn): Likewise.
5263 * fold-const.c (fold_single_bit_test): Likewise.
5264 (fold_unary_loc): Likewise.
5265 * fwprop.c (free_load_extend): Likewise.
5266 * postreload.c (reload_cse_simplify_set): Likewise.
5267 (reload_cse_simplify_operands): Likewise.
5268 * combine.c (try_combine): Likewise.
5269 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5270 subreg_lowpart_p checks.
5271
5272 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5273 Alan Hayward <alan.hayward@arm.com>
5274 David Sherwood <david.sherwood@arm.com>
5275
5276 * combine.c (simplify_shift_const_1): Use the number of bits
5277 in the inner mode to determine the range of the shift.
5278 When handling shifts of vectors, skip any rules that apply
5279 only to scalars.
5280
5281 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5282 Alan Hayward <alan.hayward@arm.com>
5283 David Sherwood <david.sherwood@arm.com>
5284
5285 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5286 handling VOIDmode.
5287
5288 2016-11-15 Matthias Klose <doko@ubuntu.com>
5289
5290 * doc/install.texi: Remove references to gcj/libjava.
5291 * doc/invoke.texi: Likewise.
5292
5293 2016-11-15 Jeff Law <law@redhat.com>
5294
5295 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5296 parameter. Callers changed.
5297 (check-subpath_and_update_thread_path): Extracted from
5298 fsm_find_control_statement_thread_paths.
5299 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5300 (handle_phi, handle_assignment): Allow any constant node, not
5301 just INTEGER_CST.
5302
5303 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5304
5305 * config/arc/arc-arch.h: New file.
5306 * config/arc/arc-arches.def: Likewise.
5307 * config/arc/arc-cpus.def: Likewise.
5308 * config/arc/arc-options.def: Likewise.
5309 * config/arc/t-multilib: Likewise.
5310 * config/arc/genmultilib.awk: Likewise.
5311 * config/arc/genoptions.awk: Likewise.
5312 * config/arc/arc-tables.opt: Likewise.
5313 * config/arc/driver-arc.c: Likewise.
5314 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5315 * common/config/arc/arc-common.c (arc_handle_option): Trace
5316 toggled options.
5317 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5318 options; check for supported cpu against arc-cpus.def file.
5319 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5320 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5321 * config/arc/arc-c.def: Add emacs local variables.
5322 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5323 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5324 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5325 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5326 (DEFAULT_arc_fpu_build): Define.
5327 (DEFAULT_arc_mpy_option): Define.
5328 * config/arc/arc-protos.h (arc_init): Delete.
5329 * config/arc/arc.c (arc_cpu_name): New variable.
5330 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5331 (arc_arc700, arc_arc600, arc_arc601): New variable.
5332 (arc_init): Add static; remove selection of default tune value,
5333 cleanup obsolete error messages.
5334 (arc_override_options): Make use of .def files for selecting the
5335 right cpu and option configurations.
5336 * config/arc/arc.h (stdbool.h): Include.
5337 (TARGET_CPU_DEFAULT): Define.
5338 (CPP_SPEC): Remove mcpu=NPS400 handling.
5339 (arc_cpu_to_as): Declare.
5340 (EXTRA_SPEC_FUNCTIONS): Define.
5341 (OPTION_DEFAULT_SPECS): Likewise.
5342 (ASM_DEFAULT): Remove.
5343 (ASM_SPEC): Use arc_cpu_to_as.
5344 (DRIVER_SELF_SPECS): Remove deprecated options.
5345 (arc_base_cpu): Declare.
5346 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5347 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5348 variable.
5349 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5350 * config/arc/arc.md (attr_cpu): Remove.
5351 * config/arc/arc.opt (mno-mpy): Deprecate.
5352 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5353 (mcpu=ARCHS): Remove.
5354 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5355 Deprecate.
5356 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5357 (arc_fpu): Use new defines.
5358 (mpy-option): Change to use numeric or string like inputs.
5359 * config/arc/t-arc (driver-arc.o): New target.
5360 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5361 * config/arc/t-arc-newlib: Delete.
5362 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5363 * doc/invoke.texi (ARC): Update arc options.
5364
5365 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5366
5367 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5368 insn at the beginning of the constant pool.
5369 (mips_insert_insn_pseudos): New function.
5370 (mips_machine_reorg2): Call it.
5371 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5372 UNSPEC_INSN_PSEUDO enum values.
5373 (insn_pseudo, consttable): New insns.
5374
5375 2016-11-15 Michael Matz <matz@suse.de>
5376
5377 PR missed-optimization/77881
5378 * combine.c (simplify_comparison): Remove useless subregs
5379 also inside the loop, not just after it.
5380 (make_compound_operation): Recognize some subregs as being
5381 masking as well.
5382
5383 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5384 Alan Hayward <alan.hayward@arm.com>
5385 David Sherwood <david.sherwood@arm.com>
5386
5387 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5388 GET_MODE_SIZE typo.
5389
5390 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5391
5392 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5393 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5394
5395 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5396 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5397 vinsert{b,h} on ISA 3.0.
5398
5399 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5400
5401 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5402 and cmpnop in two steps: first the ones not accessed in original gimple
5403 expression in a endian independent way and then the ones not accessed
5404 in the final result in an endian-specific way.
5405 (bswap_replace): Stop doing big endian adjustment.
5406
5407 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5408
5409 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5410 (*ashl<mode>3_doubleword): Ditto.
5411
5412 2016-11-14 Martin Liska <mliska@suse.cz>
5413
5414 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5415
5416 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5417 Richard Biener <rguenther@suse.de>
5418
5419 * doc/invoke.texi (fgimple): Document.
5420 * dumpfile.h (TDF_GIMPLE): Add.
5421 * dumpfile.c (dump_options): Add gimple.
5422 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5423 for TDF_GIMPLE.
5424 (dump_gimple_label): Likewise.
5425 (dump_gimple_phi): Likewise.
5426 (dump_gimple_bb_header): Likewise.
5427 (dump_phi_nodes): Likewise.
5428 (pp_cfg_jump): Likewise. Pass in dump flags.
5429 (dump_implicit_edges): Adjust.
5430 * passes.c (pass_init_dump_file): Do not dump function header
5431 for TDF_GIMPLE.
5432 * tree-cfg.c (dump_function_to_file): Dump function return type
5433 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5434 GIMPLE stmts.
5435 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5436 (dump_generic_node): Likewise.
5437 * function.h (struct function): Add pass_startwith member.
5438 * passes.c (execute_one_pass): Implement startwith.
5439 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5440 and assign proper version for parsed ssa names.
5441 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5442 * internal-fn.c (expand_PHI): New function.
5443 * internal-fn.h (expand_PHI): Declared here.
5444 * internal-fn.def: New defination for PHI.
5445 * tree-cfg.c (lower_phi_internal_fn): New function.
5446 (build_gimple_cfg): Call it.
5447 (verify_gimple_call): Condition for passing label as arg in internal
5448 function PHI.
5449 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5450 present PHIs with arguments.
5451
5452 2016-11-14 Martin Liska <mliska@suse.cz>
5453
5454 PR bootstrap/78069
5455 * common.opt: Add prefer-atomic as a new enum value for
5456 -fprofile-update.
5457 * coretypes.h: Likewise.
5458 * doc/invoke.texi: Document the new option value.
5459 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5460 * tree-profile.c (tree_profiling): Select default value
5461 of -fprofile-update when 'prefer-atomic' is selected.
5462
5463 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5464
5465 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5466 (cortex_a57_alu_shift): ...here.
5467
5468 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5469
5470 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5471 Use bfx attribute.
5472 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5473 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5474 (<optab>si3_insn_uxtw): Likewise.
5475 (<optab><mode>3_insn): Likewise.
5476 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5477 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5478 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5479 (<optab><mode>): Likewise.
5480 (insv<mode>): Likewise.
5481 (andim_ashift<mode>_bfiz): Likewise.
5482 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5483 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5484 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5485 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5486 (exynos_m1_alu_p): Likewise.
5487 * config/arm/types.md: Add bfx.
5488 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5489
5490 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5491
5492 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5493 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5494
5495 2016-11-14 Richard Biener <rguenther@suse.de>
5496
5497 PR tree-optimization/78312
5498 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5499 flow-sensitive info.
5500
5501 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5502
5503 PR target/78093
5504 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5505 * config/avr/avr.opt (-mabsdata): New option.
5506 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5507 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5508 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5509 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5510 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5511 spec depending on AVR_ISA_LDS.
5512 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5513
5514 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5515
5516 * match.pd: Don't try to compare addresses of variables with
5517 DECL_VALUE_EXPR.
5518
5519 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5520
5521 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5522 (propagate_vr_accross_jump_function): Handle unary expressions.
5523 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5524 (load_from_param_1): New.
5525 (load_from_unmodified_param): Factor common part into load_from_param_1.
5526 (load_from_param): New.
5527 (compute_complex_assign_jump_func): Handle unary expressions.
5528 (update_jump_functions_after_inlining): Likewise.
5529 (ipa_write_jump_function): Likewise.
5530 (ipa_read_jump_function): Likewise.
5531
5532 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5533
5534 PR c/35503
5535 * doc/invoke.texi: Document Wrestrict.
5536 * pretty-print.c (pp_format): Add case for "Z" specifier.
5537 (test_pp_format): Test "Z" specifier.
5538
5539 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5540
5541 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5542 original function needs a static chain.
5543
5544 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5545
5546 PR target/78336
5547 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5548 ASM_OUTPUT_DEF.
5549
5550 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5551
5552 PR target/77957
5553 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5554 return early if !optional_tbtab.
5555
5556 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5557
5558 PR rtl-optimization/59461
5559 * doc/rtl.texi (paradoxical subregs): Add missing word.
5560 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5561 in modes with precision larger than that of last_set_mode.
5562 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5563 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5564 REGs to paradoxical SUBREGs.
5565 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5566 larger than a word before invoking LOAD_EXTEND_OP on it.
5567
5568 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5569
5570 PR target/78243
5571 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5572 element order for little endian ordering.
5573
5574 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5575 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5576 number.
5577
5578 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5579
5580 PR target/78310
5581 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5582 when calculating operand 2.
5583 (rotate to rotatex zext splitter): Ditto.
5584
5585 2016-11-11 Jeff Law <law@redhat.com>
5586
5587 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5588 function.
5589 (stmt_uses_name_in_undefined_way): New function, extracted from
5590 find_implicit_erroneous_behavior and extended for div/mod case.
5591 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5592 find_explicit_erroneous_behavior and extended for div/mod case.
5593 (find_implicit_erroneous_behavior): Use new helper function.
5594 (find_explicit_erroneous_behavior): Use new helper function.
5595
5596 2016-11-11 Richard Biener <rguenther@suse.de>
5597
5598 PR tree-optimization/71575
5599 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5600 bogus assert.
5601
5602 2016-11-11 Richard Biener <rguenther@suse.de>
5603
5604 PR middle-end/78295
5605 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5606 about uninitialized destination arg of BIT_INSERT_EXPR.
5607
5608 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5609
5610 PR c/37998
5611 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5612 terminology. Expand to remove ambiguity.
5613
5614 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5615
5616 PR rtl-optimization/78232
5617 * combine.c (try_combine): Add a big comment about why reusing i2dest
5618 is undesirable.
5619 (change_zero_ext): Do not call simplify_gen_binary, do the
5620 simplifications manually.
5621
5622 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5623
5624 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5625 enable HImode and QImode to go in vector registers by default if
5626 the -mvsx-small-integer option is enabled.
5627 (rs6000_secondary_reload_simple_move): Likewise.
5628 (rs6000_preferred_reload_class): Don't force integer constants to
5629 be loaded into vector registers that we can easily make into
5630 memory (or being created in the GPRs and moved over with direct move).
5631 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5632 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5633 vector extraction on ISA 3.0 when the scalar integer can be
5634 allocated in vector registers. Generate the VEC_SELECT directy,
5635 and don't use UNSPEC's to avoid having the scalar type in a vector
5636 register. Make the expander target registers, and let the
5637 combiner fold in results storing to memory, if the machine
5638 supports stores.
5639 (vsx_extract_<mode>_di): Likewise.
5640 (vsx_extract_<mode>_p9): Likewise.
5641 (vsx_extract_<mode>_di_p9): Likewise.
5642 (vsx_extract_<mode>_store_p9): Likewise.
5643 (vsx_extract_si): Likewise.
5644 (vsx_extract_<mode>_p8): Likewise.
5645 (p9_lxsi<wd>zx): Delete, no longer used.
5646 (p9_stxsi<wd>x): Likewise.
5647 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5648 integers in vector registers for ISA 3.0.
5649 (QHI): Update comment.
5650 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5651 vector extract instructions in sign/zero extend.
5652 (zero_extendhi<mode>): Likewise.
5653 (extendqi<mode>): Likewise.
5654 (extendhi<mode>2): Likewise.
5655 (HImode splitter for load/sign extend in vector register): Likewise.
5656 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5657 optimizing floating point conversions to/from small data types and
5658 rewrite it to support QImode/HImode being allowed in vector
5659 registers on ISA 3.0.
5660 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5661 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5662 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5663 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5664 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5665 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5666 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5667 VSPLITISW on ISA 2.07.
5668 (movhi_internal): Combine movhi_internal and movqi_internal into
5669 one mov<mode>_internal with an iterator. Add support for QImode
5670 and HImode being allowed in vector registers. Make large number
5671 of attributes and constraints easier to read.
5672 (movqi_internal): Likewise.
5673 (mov<mode>_internal): Likewise.
5674 (movdi_internal64): Fix constraint to allow loading -16..15 with
5675 VSPLITISW on ISA 2.07.
5676 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5677 well as DImode.
5678
5679 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5680
5681 PR rtl-optimization/78241
5682 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5683 but emit initial peel copy if niter expr is not reliable.
5684
5685 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5686
5687 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5688 (maybe_record_trace_start): If the CFI is different on the new and
5689 old paths, print out both to the dump file before ICEing.
5690
5691 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5692
5693 * target.def (additional_allocno_class_p): New.
5694 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5695 * hooks.c (hook_bool_reg_class_t_false): New.
5696 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5697 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5698 * doc/tm.texi: Update.
5699
5700 2016-11-10 Jason Merrill <jason@redhat.com>
5701
5702 * gengtype.c (new_structure): Append to structures list.
5703 (find_structure): Likewise.
5704
5705 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5706
5707 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5708 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5709 check.
5710
5711 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5712
5713 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5714 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5715 TRUNC_DIV_EXPR.
5716 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5717 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5718 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5719 teams distribute parallel for simd even to distribute and teams
5720 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5721 OMP_CLAUSE_DEPEND_SINK case.
5722 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5723 (omp_no_lastprivate): Removed.
5724 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5725 (gimplify_omp_for): Likewise.
5726 (computable_teams_clause): Fail for automatic vars from current
5727 function not yet seen in bind expr.
5728 * langhooks.c (lhd_omp_scalar_p): New function.
5729 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5730 * varpool.c (varpool_node::get_create): Set node->offloading
5731 even for DECL_EXTERNAL decls.
5732 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5733 (LANG_HOOKS_OMP_SCALAR_P): Define.
5734 (LANG_HOOKS_DECLS): Use it.
5735
5736 2016-11-10 Martin Liska <mliska@suse.cz>
5737
5738 PR sanitizer/78270
5739 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5740 only when SWITCH_BODY is a BIND_EXPR.
5741
5742 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5743
5744 PR debug/78112
5745 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5746 on the context only when it has no DIE yet.
5747
5748 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5749
5750 * arm.h (target_cpus): Delete.
5751 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5752 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5753 (all_architectures): Likewise.
5754 (arm_option_override): Adjust use of CPU enums.
5755 (arm_sched_reorder): Likewise.
5756 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5757 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5758 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5759 TARGET_CPU_.
5760 * arm-tables.opt: Regenerated.
5761
5762 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5763
5764 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5765 (falkor): New core.
5766 * config/aarch64/aarch64-tune.md: Regenerated.
5767 * config/arm/arm-cores.def (falkor): New core.
5768 * config/arm/arm-tables.opt: Regenerated.
5769 * config/arm/arm-tune.md: Regenerated.
5770 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5771 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5772 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5773 (ARM Options/-mtune): Likewise.
5774
5775 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5776
5777 Revert
5778 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5779
5780 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5781 (propagate_vr_accross_jump_function): Likewise.
5782 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5783 (load_from_param_1): New.
5784 (load_from_unmodified_param): Factor common part into load_from_param_1.
5785 (load_from_param): New.
5786 (compute_complex_assign_jump_func): Handle unary expressions.
5787 (ipa_write_jump_function): Likewise.
5788 (ipa_read_jump_function): Likewise.
5789
5790 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5791
5792 * simplify-rtx.c (simplify_binary_operation_1): Simplify
5793 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
5794 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
5795 is a const_int.
5796
5797 2016-11-09 David Malcolm <dmalcolm@redhat.com>
5798
5799 * print-rtl-function.c: Include varasm.h.
5800 (print_any_param_name): New function.
5801 (print_param): New function.
5802 (print_rtx_function): Call print_param for each argument.
5803 * print-rtl.c (rtx_writer::finish_directive): New function.
5804 * print-rtl.h (rtx_writer::finish_directive): New decl.
5805
5806 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
5807
5808 PR target/78262
5809 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
5810 operand 0 as earlyclobber.
5811 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
5812
5813 2016-11-09 Martin Liska <mliska@suse.cz>
5814
5815 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
5816
5817 2016-11-09 Jakub Jelinek <jakub@redhat.com>
5818
5819 PR target/77718
5820 * builtins.c (expand_builtin_memcmp): Formatting fix.
5821
5822 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
5823 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
5824 or of them, renumber other enumerators.
5825 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
5826 * doc/invoke.texi: Document -fsanitize=shift-base and
5827 -fsanitize-shift-exponent, document -fsanitize=shift as
5828 having those 2 suboptions.
5829
5830 2016-11-09 Richard Biener <rguenther@suse.de>
5831
5832 * fold-const.c (tree_swap_operands_p): Remove unused arg.
5833 * fold-const.c (tree_swap_operands_p): Likewise.
5834 (fold_binary_loc): Adjust.
5835 (fold_ternary_loc): Likewise.
5836 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
5837 * gimple-fold.c (fold_stmt_1): Likewise.
5838 * gimple-match-head.c (gimple_resimplify2): Likewise.
5839 (gimple_resimplify3): Likewise.
5840 (gimple_simplify): Likewise.
5841 * tree-ssa-dom.c (record_equality): Likewise.
5842 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
5843 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
5844 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
5845
5846 2016-11-09 Richard Biener <rguenther@suse.de>
5847
5848 * tree-ssa-dom.c (canonicalize_comparison): Remove.
5849 (optimize_stmt): Remove redundant pre-propagation canonicalization
5850 of comparison operand order.
5851
5852 2016-11-09 Martin Liska <mliska@suse.cz>
5853
5854 * fold-const-call.c (fold_const_call): Fix the folding.
5855
5856 2016-11-09 Richard Biener <rguenther@suse.de>
5857
5858 * common.opt (flag_evaluation_order): Remove.
5859 * expr.c (expand_operands): Remove code guarded by
5860 flag_evaluation_order.
5861 * fold-const.c (reorder_operands_p): Remove, it always returns
5862 true.
5863 (negate_expr_p): Remove calls to reorder_operands_p.
5864 (fold_negate_expr): Likewise.
5865 (tree_swap_operands_p): Likewise.
5866 (fold_binary_loc): Likewise.
5867
5868 2016-11-09 Andreas Schwab <schwab@suse.de>
5869
5870 PR target/78254
5871 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
5872 insns operating on a register.
5873
5874 2016-11-09 Richard Biener <rguenther@suse.de>
5875
5876 PR tree-optimization/78007
5877 * tree-vect-stmts.c (vectorizable_bswap): New function.
5878 (vectorizable_call): Call vectorizable_bswap for
5879 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
5880
5881 2016-11-09 Richard Biener <rguenther@suse.de>
5882
5883 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5884 Look at the DR_BASE_ADDRESS object for forcing alignment.
5885
5886 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5887
5888 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5889 (propagate_vr_accross_jump_function): Likewise.
5890 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5891 (load_from_param_1): New.
5892 (load_from_unmodified_param): Factor common part into load_from_param_1.
5893 (load_from_param): New.
5894 (compute_complex_assign_jump_func): Handle unary expressions.
5895 (ipa_write_jump_function): Likewise.
5896 (ipa_read_jump_function): Likewise.
5897
5898 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5899
5900 PR ipa/78121
5901 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
5902 Also fold constant passed as argument while computing value range.
5903 (propagate_constants_accross_call): Pass param type.
5904 * ipa-prop.c: export ipa_get_callee_param_type.
5905 * ipa-prop.h: export ipa_get_callee_param_type.
5906
5907 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5908
5909 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
5910 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
5911
5912 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
5913
5914 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
5915 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
5916 ASAN_STACK_MAGIC_MIDDLE.
5917 (asan_global_struct): Increase the size of fields.
5918 (asan_add_global): Add new field constructor.
5919 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
5920 __asan_version_mismatch_check_v8.
5921
5922 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
5923
5924 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
5925 at runtime.
5926
5927 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
5928
5929 PR target/70799
5930 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5931 Handle ASHIFT and LSHIFTRT.
5932 (dimode_scalar_chain::compute_convert_gain): Ditto.
5933 (dimode_scalar_chain::convert_insn): Ditto.
5934
5935 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5936
5937 * gimple-ssa-store-merging.c: Include selftest.h
5938 (verify_array_eq): New function.
5939 (verify_shift_bytes_in_array): Likewise.
5940 (verify_shift_bytes_in_array_right): Likewise.
5941 (verify_clear_bit_region): Likewise.
5942 (verify_clear_bit_region_be): Likewise.
5943 (store_merging_c_tests): Likewise.
5944 * selftest.h (store_merging_c_tests): Declare prototype.
5945 * selftest-run-tests.c (selftest::run_tests): Run
5946 store_merging_c_tests.
5947
5948 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5949
5950 * config/arm/arm.opt (mold-rtx-costs): Delete.
5951 (mnew-generic-costs): Delete.
5952 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5953 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5954 (arm_size_rtx_costs): Likewise.
5955 (arm_slowmul_rtx_costs): Likewise.
5956 (arm_fastmul_rtx_costs): Likewise.
5957 (arm_xscale_rtx_costs): Likewise.
5958 (arm_9e_rtx_costs): Likewise.
5959 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5960 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5961 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5962 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5963 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5964 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5965 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5966 arm_cortex_m7_tune):
5967 Delete rtx_costs field.
5968 (arm_new_rtx_costs): Rename to...
5969 (arm_rtx_costs_internal): ... This.
5970 (arm_rtx_costs): Remove old way of doing rtx costs.
5971
5972 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5973
5974 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5975 (arm_fastmul_tune): Likewise.
5976 (arm_strongarm_tune): Likewise.
5977 (arm_xscale_tune): Likewise.
5978 (arm_9e_tune): Likewise.
5979 (arm_marvell_pj4_tune): Likewise.
5980 (arm_v6t2_tune): Likewise.
5981 (arm_v6m_tune): Likewise.
5982 (arm_fa726te_tune): Likewise.
5983
5984 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5985
5986 PR tree-optimization/78234
5987 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5988 in start != 0 case.
5989
5990 2016-11-08 Martin Liska <mliska@suse.cz>
5991
5992 PR testsuite/78242
5993 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5994 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5995 with a value expr. Do not add artificial variables to
5996 live_switch_vars. Use the debug counter.
5997 (gimplify_target_expr): Use the debug counter.
5998 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5999 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6000 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6001
6002 2016-11-08 Richard Biener <rguenther@suse.de>
6003
6004 * tree-vect-stmts.c (get_group_load_store_type): If the
6005 access is aligned do not trigger peeling for gaps.
6006 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6007 force alignment of vars with DECL_USER_ALIGN.
6008
6009 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6010
6011 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6012
6013 2016-11-08 Richard Biener <rguenther@suse.de>
6014
6015 PR tree-optimization/78205
6016 * tree-vect-stmts.c (vectorizable_load): Move check whether
6017 we may run into gaps when BB vectorizing SLP permutations ...
6018 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6019 here where we can do a more precise check.
6020
6021 2016-11-08 Richard Biener <rguenther@suse.de>
6022
6023 PR tree-optimization/78224
6024 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6025 Split the fallthru edge in case its successor may have PHIs.
6026 Do not free dominance info.
6027
6028 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6029
6030 PR target/78229
6031 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6032 EH info even for bzhi and pdep/pext.
6033
6034 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6035
6036 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6037 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6038
6039 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6040
6041 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6042 if appropriate.
6043 * config/rs6000/vector.md (div<mode>3): Ditto.
6044
6045 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6046
6047 * configure.ac (.hidden): Change to conftest_s string. Provide string
6048 for AIX assembler.
6049 (gcc_cv_ld_hidden): Yes for AIX.
6050 * configure: Regenerate.
6051
6052 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6053
6054 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6055 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6056 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6057 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6058 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6059 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6060 from #if to if.
6061 (rs6000_xcoff_visibility): New.
6062 (rs6000_xcoff_declare_function_name): Add visibility support.
6063 (rs6000_xcoff_asm_globalize_decl_name): New.
6064 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6065 (rs6000_asm_weaken_decl): New.
6066 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6067 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6068 reference function.
6069
6070 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6071
6072 PR driver/78206
6073 * incpath.c (remove_dup): Also silently ignore EPERM.
6074
6075 2016-11-07 Martin Jambor <mjambor@suse.cz>
6076
6077 * tree.c (verify_type_variant): Use pointer comparison to check that
6078 TYPE_SIZE_UNIT match.
6079
6080 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR target/77834
6083 * dse.c (dse_step5): Call scan_reads even if just
6084 insn_info->frame_read. Improve and fix dump file messages.
6085
6086 PR target/78227
6087 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6088 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6089
6090 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6091
6092 PR middle-end/35691
6093 * match.pd: Add following two patterns:
6094 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6095 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6096
6097 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6098
6099 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6100 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6101 * rtl.h (duplicate_reg_notes): Declare.
6102 * rtlanal.c (duplicate_reg_note): New function.
6103
6104 PR rtl-optimization/77309
6105 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6106 don't assume an equality comparison for plain COMPARE.
6107 (simplify_comparison): Pass a more accurate code to
6108 make_compound_operation.
6109
6110 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6111
6112 * target.def (compute_pressure_classes): New target hook.
6113 * doc/tm.texi.in: Document it.
6114 * doc/tm.texi: Regenerate.
6115 * ira.c (setup_pressure_classes): Call target hook if defined.
6116
6117 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6118
6119 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6120 method.
6121 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6122 that have the default values.
6123 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6124 method.
6125 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6126 label string from expected dump.
6127 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6128 from expected dump.
6129
6130 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6131
6132 PR target/77834
6133 * alias.c (nonoverlapping_memrefs_p): If one decl is
6134 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6135
6136 2016-11-07 Richard Biener <rguenther@suse.de>
6137
6138 PR target/78229
6139 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6140 EH info.
6141
6142 2016-11-07 Richard Biener <rguenther@suse.de>
6143
6144 PR tree-optimization/78218
6145 * gimple-ssa-store-merging.c
6146 (pass_store_merging::terminate_all_aliasing_chains):
6147 Drop unused argument, fix alias check to also consider uses.
6148 (pass_store_merging::execute): Adjust.
6149
6150 2016-11-07 Richard Biener <rguenther@suse.de>
6151
6152 PR tree-optimization/78228
6153 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6154 undefined behavior.
6155
6156 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6157
6158 PR target/77822
6159 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6160 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6161 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6162 to restrict them to an appropriate range and add FAIL check if the
6163 region they specify is out of range. Delete useless constraint
6164 strings.
6165 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6166 2 and 3 to restrict their range and add pattern predicate.
6167
6168 2016-11-07 Martin Liska <mliska@suse.cz>
6169
6170 * asan.c (enum asan_check_flags): Move the enum to header file.
6171 (asan_init_shadow_ptr_types): Make type creation more generic.
6172 (shadow_mem_size): New function.
6173 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6174 Rewritten stack unpoisoning code.
6175 (build_shadow_mem_access): Add new argument return_address.
6176 (instrument_derefs): Instrument local variables if use after scope
6177 sanitization is enabled.
6178 (asan_store_shadow_bytes): New function.
6179 (asan_expand_mark_ifn): Likewise.
6180 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6181 * asan.h (enum asan_mark_flags): Moved here from asan.c
6182 (asan_protect_stack_decl): Protect all declaration that need
6183 to live in memory.
6184 (asan_sanitize_use_after_scope): New function.
6185 (asan_no_sanitize_address_p): Likewise.
6186 * cfgexpand.c (partition_stack_vars): Consider
6187 asan_sanitize_use_after_scope in condition.
6188 (expand_stack_vars): Likewise.
6189 * common.opt (-fsanitize-address-use-after-scope): New option.
6190 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6191 Explain the parameter.
6192 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6193 * gimplify.c (build_asan_poison_call_expr): New function.
6194 (asan_poison_variable): Likewise.
6195 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6196 variables that have address taken.
6197 (gimplify_decl_expr): Likewise.
6198 (gimplify_target_expr): Likewise for C++ temporaries.
6199 (sort_by_decl_uid): New function.
6200 (gimplify_expr): Unpoison all variables for a label we can jump
6201 from outside of a scope.
6202 (gimplify_switch_expr): Unpoison variables defined in the switch
6203 context.
6204 (gimplify_function_tree): Clear asan_poisoned_variables.
6205 (asan_poison_variables): New function.
6206 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6207 * internal-fn.c (expand_ASAN_MARK): New function.
6208 * internal-fn.def (ASAN_MARK): Declare.
6209 * opts.c (finish_options): Handle -fstack-reuse if
6210 -fsanitize-address-use-after-scope is enabled.
6211 (common_handle_option): Enable address sanitization if
6212 -fsanitize-address-use-after-scope is enabled.
6213 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6214 New parameter.
6215 * params.h: Likewise.
6216 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6217 * sanitizer.def: Define __asan_poison_stack_memory and
6218 __asan_unpoison_stack_memory functions.
6219 * asan.c (asan_mark_poison_p): New function.
6220 (transform_statements): Handle asan_mark_poison_p calls.
6221 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6222
6223 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6224
6225 PR driver/78196
6226 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6227
6228 2016-11-07 Martin Liska <mliska@suse.cz>
6229
6230 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6231 to time_profiler_counter_ptr.
6232
6233 2016-11-07 Richard Biener <rguenther@suse.de>
6234
6235 PR tree-optimization/37150
6236 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6237 parameter.
6238 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6239 (vect_analyze_slp_cost_1): Account for the real number of
6240 permutations emitted and for dead loads.
6241 (vect_transform_slp_perm_load): Add n_perms parameter counting
6242 the number of emitted permutations.
6243 * tree-vect-stmts.c (vectorizable_load): Adjust.
6244
6245 2016-11-07 Richard Biener <rguenther@suse.de>
6246
6247 PR tree-optimization/78189
6248 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6249 alignment computation.
6250
6251 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6252
6253 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6254
6255 2016-11-05 Martin Sebor <msebor@redhat.com>
6256
6257 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6258 documentation.
6259
6260 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6261
6262 PR bootstrap/78188
6263 PR c++/71848
6264 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6265
6266 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6267
6268 PR target/77834
6269 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6270 doesn't have rtl set.
6271
6272 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6273
6274 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6275 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6276 rs6000_gimple_fold_builtin.
6277 (rs6000_gimple_fold_builtin): New function. Add handling for
6278 early expansion of vector addition builtins.
6279
6280 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6281
6282 * expr.h (copy_blkmode_from_reg): Delete.
6283 * expr.c (copy_blkmode_from_reg): Make static.
6284
6285 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6286
6287 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6288 * combine.c (LOAD_EXTEND_OP): Delete.
6289 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6290 * cse.c (LOAD_EXTEND_OP): Delete.
6291 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6292 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6293 * postreload.c (LOAD_EXTEND_OP): Delete.
6294 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6295 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6296 (find_reloads): Likewise.
6297 * reload1.c (eliminate_regs_1): Likewise.
6298 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6299 (num_sign_bit_copies1): Likewise.
6300
6301 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6302
6303 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6304 (selftest::ix86_test_dumping_hard_regs): New function.
6305 (selftest::ix86_run_selftests): New function.
6306 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6307 selftest::ix86_run_selftests.
6308 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6309 * doc/tm.texi: Regenerate
6310 * selftest-rtl.h: New file.
6311 * rtl-tests.c: Include "selftest-rtl.h".
6312 (selftest::assert_rtl_dump_eq): Make non-static.
6313 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6314 (selftest::test_dumping_regs): Update comment.
6315 * selftest-run-tests.c: Include "target.h".
6316 (selftest::run_tests): If non-NULL, call
6317 targetm.run_target_selftests.
6318 * target.def (run_target_selftests): New hook.
6319
6320 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6321
6322 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6323 representative core for this architecture.
6324 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6325 * config/arm/arm-tables.opt: Regenerate.
6326 * config/arm/arm-tune.md: Likewise.
6327 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6328 valid -mcpu options.
6329 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6330
6331 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6332
6333 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6334 representative core for this architecture.
6335 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6336 * config/arm/arm-tables.opt: Regenerate.
6337 * config/arm/arm-tune.md: Likewise.
6338 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6339 this tuning parameters apply to in the comment.
6340 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6341 valid -mcpu options.
6342 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6343
6344 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6345
6346 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6347 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6348 where cond_expr can't be a lvalue.
6349
6350 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6351
6352 * config/arc/arc.c (arc_process_double_reg_moves): Use
6353 gen_dexcl_2op call.
6354 * config/arc/arc.md (movsi_insn): Disable unsupported move
6355 instructions for ARCv2 cores.
6356 (movdi): Use prepare_move_operands.
6357 (movsf, movdf): Use move_dest_operand predicate.
6358 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6359 present.
6360 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6361 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6362 also a destination.
6363 (dexcl_3op_peep2_insn_nores): Likewise.
6364 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6365 (LINK_COMMAND_SPEC): Remove.
6366
6367 2016-11-04 Richard Biener <rguenther@suse.de>
6368
6369 PR middle-end/78185
6370 * loop-invariant.c (find_exits): Record entering inner
6371 loops as possibly exiting to handle infinite sub-loops.
6372 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6373 (fill_always_executed_in_1): Honor infinite child loops.
6374
6375 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6376
6377 PR target/78192
6378 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6379 has already been adjusted for endianness, so don't adjust it any
6380 further.
6381
6382 PR target/77993
6383 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6384 ICmode unless we have standard PowerPC floating point.
6385 * config/rs6000/rs6000.md (FP iterator): Likewise.
6386 (FMOVE128 iterator): Likewise.
6387
6388 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6389 Alexandre Oliva <aoliva@redhat.com>
6390 Jason Merrill <jason@redhat.com>
6391
6392 PR debug/28767
6393 PR debug/56974
6394 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6395 langhook.
6396 * langhooks.c (lhd_type_dwarf_attribute): New function.
6397 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6398 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6399 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6400 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6401 (check_qualified_type, check_aligned_type): Call it.
6402 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6403 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6404 check_base_type and check_lang_type.
6405 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6406 return early. For pointer-to-data-member add DW_AT_use_location
6407 attribute.
6408 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6409 if needed.
6410 (gen_type_die_with_usage): Don't use type_main_variant
6411 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6412 check_base_type and check_lang_type. Formatting fixes. Call
6413 get_debug_type langhook.
6414
6415 2016-11-03 Jason Merrill <jason@redhat.com>
6416
6417 * tree.c (check_lang_type): New.
6418 (check_qualified_type): Use it.
6419 (check_aligned_type): Use it.
6420 * tree.h: Declare it.
6421
6422 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6423
6424 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6425 (arm*-freebsd*): Likewise.
6426 (arm*-*-netbsdelf*): Likewise.
6427 (arm*-*-linux*): Likewise.
6428 (arm*-*-uclinux*eabi*): Likewise.
6429 (arm*-*-phoenix*): Likewise.
6430 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6431 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6432 specified. Default to arm6 if target_cpu_cname is not set.
6433 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6434 default cpu has been correctly configured.
6435 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6436 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6437 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6438 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6439 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6440 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6441 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6442
6443 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6444
6445 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6446 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6447 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6448 (output_cfa_loc): Support DW_CFA_val_expression.
6449 (output_cfa_loc_raw): Likewise.
6450 (output_cfi): Likewise.
6451 (output_cfi_directive): Likewise.
6452 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6453 (dw_cfi_oprnd2_desc): Likewise.
6454 (mem_loc_descriptor): Recognize new pattern generated for value
6455 expression.
6456
6457 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6458
6459 PR rtl-optimization/78186
6460 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6461 well, when converting to IOR.
6462
6463 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6464
6465 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6466 (vec_interleave_highv8qi): Likewise.
6467
6468 2016-11-03 Martin Liska <mliska@suse.cz>
6469
6470 * profile.c (instrument_values): Fix coding style.
6471 (branch_prob): Use renamed function.
6472 * tree-profile.c (init_ic_make_global_vars): Likewise.
6473 (gimple_init_edge_profiler): Rename to
6474 gimple_init_gcov_profiler.
6475 tree_time_profiler_counter variable declaration.
6476 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6477 emission.
6478 * value-prof.h: Remove an argument.
6479
6480 2016-11-03 Richard Biener <rguenther@suse.de>
6481
6482 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6483 symtab_node::get_create.
6484
6485 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6486
6487 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6488 Move comments into more natural position.
6489
6490 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6491
6492 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6493 (PTRDIFF_TYPE): Define as int.
6494
6495 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6496
6497 * ccmp.c (expand_ccmp_expr_1): Adjust.
6498 (expand_ccmp_expr): Likewise.
6499 (expand_ccmp_next): Likewise.
6500 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6501 (aarch64_gen_ccmp_first): Likewise.
6502 * doc/tm.texi: Regenerate.
6503 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6504 (gen_ccmp_next): Likewise.
6505
6506 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6507
6508 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6509 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6510
6511 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6512
6513 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6514 darwin_rename_builtins here.
6515 (ix86_expand_divmod_libfunc): New.
6516 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6517 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6518
6519 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6520 Nathan Sidwell <nathan@acm.org>
6521
6522 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6523
6524 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6525
6526 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6527 New function.
6528 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6529 to format MODE_INT and MODE_PARTIAL_INT literals.
6530
6531 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6532
6533 PR target/78168
6534 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6535 NULL if TARGET_SPE_ABI.
6536
6537 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6538
6539 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6540 clear padding bits even when they're less than a byte.
6541
6542 2016-11-02 Richard Biener <rguenther@suse.de>
6543
6544 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6545 (imm_store_chain_info::output_merged_stores): Force base_addr
6546 to be proper GIMPLE for a MEM_REF address.
6547 (pass_store_merging::execute): Restrict negative bitpos
6548 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6549 check. Take into account non-NULL_TREE offset if the base
6550 is already addressable.
6551
6552 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6553
6554 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6555 New pattern.
6556 (aarch64_be_crypto_sha1hv4si): New pattern.
6557
6558 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6559
6560 * config/aarch64/aarch64.md (add<mode>3): Remove
6561 redundant code. Don't split frame based additions.
6562
6563 2016-11-02 Richard Biener <rguenther@suse.de>
6564
6565 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6566 redundant val and dest members.
6567 (store_immediate_info::store_immediate_info): Adjust.
6568 (merged_store_group::merged_store_group): Adjust.
6569 (merged_store_group::apply_stores): Likewise.
6570 (struct imm_store_chain_info): Add base_addr field.
6571 (imm_store_chain_info::imm_store_chain_info): New constructor.
6572 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6573 (imm_store_chain_info::output_merged_store): Likewise. Use
6574 addr_base which is already the address.
6575 (imm_store_chain_info::output_merged_stores): Likewise.
6576 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6577 imm_store_chain_info instead of base. Fix alias check.
6578 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6579 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6580 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6581 use the address of the base and adjust for other changes.
6582
6583 2016-11-02 Martin Liska <mliska@suse.cz>
6584
6585 * fold-const-call.c (host_size_t_cst_p): Test whether
6586 t is convertible to size_t.
6587
6588 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6589
6590 PR tree-optimization/78170
6591 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6592 introduced by native_encode_expr on little-endian as well.
6593
6594 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6595
6596 PR tree-optimization/78162
6597 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6598 as invalid.
6599
6600 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6601
6602 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6603 function comment.
6604 (aarch64_next_callee_save): Likewise.
6605 (aarch64_pushwb_single_reg): Likewise.
6606 (aarch64_gen_storewb_pair): Likewise.
6607 (aarch64_push_regs): Likewise.
6608 (aarch64_gen_loadwb_pair): Likewise.
6609 (aarch64_pop_regs): Likewise.
6610 (aarch64_gen_store_pair): Likewise.
6611 (aarch64_gen_load_pair): Likewise.
6612 (aarch64_save_callee_saves): Likewise.
6613 (aarch64_restore_callee_saves): Likewise.
6614
6615 2016-11-02 Richard Biener <rguenther@suse.de>
6616
6617 PR tree-optimization/78035
6618 PR tree-optimization/77964
6619 * gimple-pretty-print.c (pp_points_to_solution): Print
6620 vars_contains_interposable.
6621 * tree-ssa-alias.c: Include varasm.h.
6622 (ptrs_compare_unequal): Check vars_contains_interposable and
6623 decl_binds_to_current_def_p.
6624 (dump_points_to_solution): Dump vars_contains_interposable.
6625 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6626 flag.
6627 * tree-ssa-structalias.c: Include varasm.h.
6628 (set_uids_in_ptset): Record whether vars contains a
6629 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6630 (ipa_escaped_pt): Update initializer.
6631
6632 2016-11-02 Richard Biener <rguenther@suse.de>
6633
6634 PR tree-optimization/78047
6635 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6636 fake field at offset zero conservatively regarding to may_have_pointers.
6637
6638 2016-11-02 Richard Biener <rguenther@suse.de>
6639
6640 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6641 infer_value_range on stmt ops and update value-ranges.
6642 Dump visited stmts and blocks.
6643 (evrp_dom_walker::push_value_range): Dump changes.
6644 (evrp_dom_walker::pop_value_range): Likewise.
6645 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6646
6647 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6648
6649 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6650 rtx_insn *.
6651 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6652
6653 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6654
6655 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6656 and adjust for that.
6657 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6658
6659 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6660
6661 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6662 to rtx_insn *.
6663 (transcode_memory_rtx): Likewise.
6664 (move_to_acc): Likewise.
6665 (move_from_acc): Likewise.
6666 (move_acc_to_reg): Likewise.
6667 (move_to_x): Likewise.
6668 (move_to_hl): Likewise.
6669 (move_to_de): Likewise.
6670 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6671 (rs6000_emit_savres_rtx): Likewise.
6672 (rs6000_emit_prologue): Likewise.
6673 * reorg.c (update_reg_unused_notes): Likewise.
6674 * rtl.h (remove_note): Adjust prototype.
6675 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6676
6677 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6678
6679 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6680 variables so some can be rtx_insn *.
6681 (alpha_emit_xfloating_libcall): Likewise.
6682 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6683 (mips_legitimize_tls_address): Likewise.
6684 * optabs.c (expand_binop): Likewise.
6685 * reload1.c (gen_reload): Likewise.
6686
6687 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6688
6689 * reorg.c (relax_delay_slots): Split up the trial variable.
6690
6691 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6692
6693 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6694 of variables rtx_insn *.
6695 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6696 (legitimize_tls_address): Likewise.
6697 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6698 (bfin_gen_bundles): Likewise.
6699 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6700 (c6x_reorg): Likewise.
6701 * config/frv/frv.c (frv_reorder_packet): Likewise.
6702 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6703 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6704 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6705 * config/mn10300/mn10300.c: Likewise.
6706 * config/rl78/rl78.c: Likewise.
6707 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6708 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6709 (sh_expand_cmpnstr): Likewise.
6710 (sh_expand_strlen): Likewise.
6711 (sh_expand_setmem): Likewise.
6712 * config/sh/sh.md: Likewise.
6713 * emit-rtl.c (emit_pattern_before): Likewise.
6714 * except.c: Likewise.
6715 * final.c: Likewise.
6716 * jump.c: Likewise.
6717
6718 2016-11-01 Jason Merrill <jason@redhat.com>
6719
6720 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6721 a COND_EXPR with constant condition.
6722
6723 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6724
6725 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6726 and its initialization.
6727
6728 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6729
6730 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6731 HAVE_AS_LEB128.
6732
6733 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6734
6735 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6736 argument, don't call add_linkage_name if it is true.
6737 (gen_variable_die): For C++ inline static data members, consider the
6738 initial call when old_die is NULL to be declaration and call
6739 add_name_and_src_coords_attributes in that case with true as
6740 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6741 (gen_member_die): For C++ inline static data members, emit a
6742 definition DIE right away in DW_TAG_compile_unit context.
6743
6744 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6745
6746 PR target/78166
6747 * config/pa/pa.md: Add new shift/add patterns to handle
6748 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6749
6750 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6751
6752 * config/xtensa/xtensa-protos.h
6753 (xtensa_use_return_instruction_p): New prototype.
6754 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6755 xtensa_callee_save_size): Remove.
6756 (struct machine_function): Add new fields: current_frame_size,
6757 callee_save_size, frame_laid_out and epilogue_done.
6758 (compute_frame_size, xtensa_expand_prologue,
6759 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6760 cfun->machine->callee_save_size and xtensa_current_frame_size
6761 with cfun->machine->current_frame_size.
6762 (compute_frame_size): Update cfun->machine->frame_laid_out and
6763 don't update frame layout after reload completion.
6764 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6765 instead of zeroing xtensa_current_frame_size.
6766 (xtensa_use_return_instruction_p): New function.
6767 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6768 declaration.
6769 (INITIAL_ELIMINATION_OFFSET): Use return value of
6770 compute_frame_size instead of xtensa_current_frame_size value.
6771 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6772 function xtensa_use_return_instruction_p instead of inline code.
6773
6774 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6775
6776 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6777 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6778 * dwarf2out.c (rnglist_idx): New variable.
6779 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6780 (DEBUG_RNGLISTS_SECTION): Define.
6781 (ranges_base_label): New variable.
6782 (size_of_die) <case dw_val_class_range_list>: If using
6783 DW_FORM_rnglistx, count size of uleb128 of range list index.
6784 (value_format) <case dw_val_class_range_list>: For
6785 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6786 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6787 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6788 (add_ranges_num): Remove useless prototype. Don't multiply
6789 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6790 for new fields added to dw_ranges struct.
6791 (add_ranges): Add maybe_new_sec argument and pass it
6792 through to add_ranges_num.
6793 (note_rnglist_head): New function.
6794 (add_ranges_by_labels): Pass true as maybe_new_sec to
6795 add_ranges_num, call note_rnglist_head on the head of the list.
6796 (output_ranges): Add function comment. Switch to
6797 .debug_ranges section here and emit .Ldebug_ranges0 label.
6798 (index_rnglists, output_rnglists): New functions.
6799 (gen_subprogram_die): Formatting fixes.
6800 (add_high_low_attributes): Don't divide offsets
6801 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
6802 first list element or when pointing into the middle of
6803 a list. Pass true as second argument to add_ranges on the
6804 first block fragment after cold/hot section switch.
6805 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
6806 section instead of .debug_ranges. Initialize
6807 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
6808 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
6809 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
6810 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
6811 Call output_rnglists for -gdwarf-5.
6812 (dwarf2out_c_finalize): Clear rnglist_idx.
6813
6814 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
6815
6816 * combine.c (simplify_compare_const): Add gcc_fallthrough.
6817
6818 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
6819 Tamar Christina <tamar.christina@arm.com>
6820
6821 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
6822 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
6823 (vmaxnmq_f32): Likewise.
6824 (vminnm_f32): Likewise.
6825 (vminnmq_f32): Likewise.
6826 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
6827 (vminnm): Likewise.
6828 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
6829 expander.
6830
6831 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
6832
6833 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
6834 binary floating point types supported by the hardware except for
6835 double.
6836 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
6837 vector instruction for optimizing extracting a SImode from a
6838 V4SImode vector and converting it to floating point.
6839 (vsx_xvcvuxwdp_df): Likewise.
6840 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
6841 registers to be any VSX register. Move stores to the end of the
6842 constraints.
6843 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
6844 to optimize extracting a SImode from a V4SImode vector and
6845 converting it to a binary floating point type supported by the
6846 hardware. Use the vector converts instead of extracting the
6847 element, sign extending it, and then converting it to double.
6848 Other floating point types than double first convert to double,
6849 then the double is converted to that type.
6850 (vsx_extract_si_<uns>float_<mode>): Likewise.
6851
6852 2016-10-31 Andrew Pinski <apinski@cavium.com>
6853
6854 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6855 Rewrite handling of part num to handle the case where
6856 multiple implementers share the same part num.
6857
6858 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6859 Jakub Jelinek <jakub@redhat.com>
6860
6861 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
6862 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
6863
6864 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6865
6866 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
6867 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
6868 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
6869 (is_cu_die, is_unit_die): Likewise.
6870 (should_move_die_to_comdat, break_out_comdat_types): Adjust
6871 comments for DWARF5 DW_UT_type units.
6872 (output_compilation_unit_header): Add UT argument, output
6873 start of DWARF5 .debug_info section header.
6874 (output_comp_unit): Add dwo_id argument. Adjust
6875 output_compilation_unit_header caller, for DW_UT_split_compile
6876 emit dwo_id field, otherwise padding1. Emit padding2 field.
6877 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
6878 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
6879 (output_skeleton_debug_sections): Add dwo_id argument, for
6880 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
6881 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
6882 DW_UT_type or DW_UT_split_type units rather than .debug_types.
6883 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
6884 DW_TAG_compile_unit for skeleton unit die. Don't add
6885 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
6886 address to output_comp_unit and output_skeleton_debug_sections.
6887
6888 * dwarf2out.c (debug_line_str_section): New variable.
6889 (debug_line_str_hash): Likewise.
6890 (DEBUG_LINE_STR_SECTION): Define.
6891 (set_indirect_string): Handle DW_FORM_line_strp like
6892 DW_FORM_strp.
6893 (find_string_form): Fix up formatting.
6894 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
6895 Fix up indentation.
6896 (output_die): Handle DW_FORM_line_strp.
6897 (DWARF5_USE_DEBUG_LINE_STR): Define.
6898 (output_line_string): New function.
6899 (output_file_names): Add -gdwarf-5 support.
6900 (output_line_info): Likewise.
6901 (init_sections_and_labels): Initialize debug_line_str_section.
6902 (output_indirect_string): Change 2nd argument from void *
6903 to enum dwarf_form form, compare with form rather than
6904 DW_FORM_strp.
6905 (output_indirect_strings): Pass DW_FORM_strp to
6906 output_indirect_string traversion.
6907 (dwarf2out_finish): Output .debug_line_str strings.
6908 (dwarf2out_c_finalize): Clear debug_line_str_section and
6909 debug_line_str_hash.
6910
6911 2016-10-31 Tom Tromey <tom@tromey.com>
6912
6913 PR debug/77315
6914 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
6915 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
6916 DW_OP_GNU_push_tls_address case.
6917 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
6918
6919 2016-10-31 Jakub Jelinek <jakub@redhat.com>
6920
6921 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
6922 for frame_offset_rel bit.
6923 (struct array_descr_info): Add rank field.
6924 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
6925 and placeholder_seen fields.
6926 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
6927 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
6928 DW_OP_pick 1 into DW_OP_over.
6929 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
6930 gen_variant_part): Clear placeholder_{arg,seen}.
6931 (loc_list_from_tree_1): Drop const from context argument.
6932 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
6933 (loc_list_for_address_of_addr_expr_of_indirect_ref,
6934 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
6935 context argument.
6936 (add_scalar_info): Drop const from context argument. Handle
6937 context->placeholder_arg.
6938 (add_bound_info): Drop const from context argument.
6939 (gen_descr_array_type_die): Drop const from ctx variable.
6940 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
6941 attribute and use a single DW_TAG_generic_subrange instead of
6942 7 DW_TAG_subrange_type for assumed rank arrays.
6943
6944 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
6945 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
6946 from bool to 1-bit uchar bitfield. Add num_assigned and
6947 offset_emitted bitfields.
6948 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
6949 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6950 dw_val_class_loclistsptr.
6951 (new_addr_loc_descr): Fix up formatting.
6952 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6953 (add_AT_low_high_pc): Fix up formatting.
6954 (add_AT_loclistsptr): New function.
6955 (AT_lbl): Allow dw_val_class_loclistsptr.
6956 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6957 Handle dw_val_class_loclistsptr.
6958 (loc_list_idx): New variable.
6959 (output_loclists_offsets, assign_location_list_indexes): New
6960 functions.
6961 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6962 add size_of_uleb128 of the index. Drop never used
6963 dwarf_split_debug_info AT_index handling. Handle
6964 dw_val_class_loclistsptr.
6965 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6966 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6967 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6968 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6969 DW_FORM_loclistx indexes.
6970 (output_attr_index_or_value): Fix up formatting. Don't handle
6971 dw_val_class_loc_list here.
6972 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6973 For dw_val_class_loc_list call output_loc_list_offset rather than
6974 output_attr_index_or_value.
6975 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6976 or .debug_loclists.dwo section name for debug_loc_section.
6977 (resolve_addr_in_expr): Formatting fix.
6978 (index_location_lists): Likewise.
6979 (dwarf2out_finish): If there are any location lists, for
6980 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6981 index_location_lists only if have_location_lists. Call
6982 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6983 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6984 -gsplit-dwarf also emit offset table.
6985
6986 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6987 (size_of_die, value_format, output_die): Use
6988 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6989 dw_val_class_wide_int.
6990
6991 * dwarf2out.c (dwarf_op): Renamed to ...
6992 (dwarf_OP): ... this.
6993 (convert_descriptor_to_mode, scompare_loc_descriptor,
6994 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6995 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6996 callers.
6997 (dwarf_AT, dwarf_TAG): New functions.
6998 (check_die): Disallow DW_AT_call_all_calls next to
6999 DW_AT_GNU_all_call_sites.
7000 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7001 and attributes instead of the corresponding GNU tag and attributes.
7002 (gen_subprogram_die): Likewise. Emit call site information even
7003 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7004 DW_AT_defaulted in comment.
7005 (resolve_addr): Handle DW_AT_call_origin attribute on
7006 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7007 DW_TAG_GNU_call_site DIE.
7008
7009 * dwarf2out.c (dwarf_op): New function.
7010 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7011 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7012 (output_loc_operands, output_loc_operands_raw): Likewise.
7013 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7014 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7015 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7016 if dwarf_version < 5.
7017 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7018 DW_OP_GNU_xxx.
7019 (scompare_loc_descriptor, ucompare_loc_descriptor,
7020 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7021 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7022 optimize_location_into_implicit_ptr): Likewise. Only punt for
7023 !dwarf_strict if dwarf_version < 5.
7024 (string_cst_pool_decl): Adjust comment.
7025 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7026
7027 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7028 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7029 (struct dw_val_node): Add val_file_implicit field.
7030 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7031 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7032 output_die): Handle dw_val_class_const_implicit,
7033 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7034 (abbrev_die_table): Change into va_gc vec.
7035 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7036 ABBREV_DIE_TABLE_INCREMENT): Remove.
7037 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7038 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7039 variables.
7040 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7041 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7042 vectors.
7043 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7044 functions.
7045 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7046 the implicit value.
7047 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7048 vec.
7049 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7050 unit. Call optimize_abbrev_table.
7051 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7052 abbrev_die_table being a va_gc vec.
7053
7054 PR tree-optimization/77860
7055 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7056 also integral complex and vector constants.
7057
7058 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7059 optimize_macinfo_range, save_macinfo_strings): Replace
7060 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7061 (output_macinfo): Likewise. Emit .debug_macro* rather than
7062 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7063 (init_sections_and_labels): Use .debug_macro* labels rather than
7064 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7065 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7066 or DW_AT_GNU_macros for -gdwarf-5.
7067
7068 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7069
7070 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7071
7072 2016-09-11 Le-Chun Wu <lcwu@google.com>
7073 Mark Wielaard <mjw@redhat.com>
7074
7075 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7076 (Wshadow=local): New option.
7077 (Wshadow-local): Hidden alias for -Wshadow=local.
7078 (Wshadow=compatible-local): New option.
7079 (Wshadow-compatible-local): Hidden alias for
7080 -Wshadow=compatible-local.
7081 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7082 Wshadow=compatible-local.
7083
7084 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7085
7086 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7087 Check slp defs for COND_EXPR by swapping/inverting operands if the
7088 new parameter SWAP indicates so.
7089 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7090 is isomorphic to the first stmt via swapping/inverting. Store swap
7091 information in the new parameter SWAP.
7092 (vect_build_slp_tree): New local array SWAP and pass it to function
7093 vect_build_slp_tree_1. Cleanup result handling code for function
7094 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7095 order of operands has been fixed as indicated by SWAP[i].
7096
7097 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7098
7099 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7100 unnecessary data dependence check after visited store stmt.
7101
7102 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7103
7104 PR tree-optimization/71915
7105 PR tree-optimization/71490
7106 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7107 stride_type field.
7108 (find_basis_for_base_expr): Require stride types to match when
7109 seeking a basis.
7110 (alloc_cand_and_find_basis): Record the stride type.
7111 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7112 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7113 the expressions having those types.
7114 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7115 (create_mul_ssa_cand): Likewise.
7116 (create_mul_imm_cand): Likewise.
7117 (create_add_ssa_cand): Likewise.
7118 (create_add_imm_cand): Likewise.
7119 (legal_cast_p_1): Change interface to accept types rather than the
7120 expressions having those types.
7121 (legal_cast_p): Pass types to legal_cast_p_1.
7122 (slsr_process_cast): Pass stride type to
7123 alloc_cand_and_find_basis.
7124 (slsr_process_copy): Likewise.
7125 (dump_candidate): Display stride type when a cast exists.
7126 (create_add_on_incoming_edge): Introduce a cast when necessary for
7127 the stride type.
7128 (analyze_increments): Change the code checking for invalid casts
7129 to rely on the stride type, and update the documentation and
7130 example. Change the code checking for pointer multiplies to rely
7131 on the stride type.
7132 (insert_initializers): Introduce a cast when necessary for the
7133 stride type. Use the stride type for the type of the initializer.
7134
7135 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7136
7137 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7138
7139 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7140
7141 PR rtl-optimization/77919
7142 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7143 into memory if both modes are complex and their inner modes have the
7144 same precision. If the two modes are different complex modes, convert
7145 each part separately and generate a new CONCAT.
7146
7147 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7148
7149 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7150
7151 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7152
7153 PR target/78148
7154 * gimple-ssa-store-merging.c
7155 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7156 instead of SET_TYPE_ALIGN on shared integral type.
7157
7158 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7159
7160 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7161 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7162 Adjust comment.
7163
7164 2016-10-28 Jeff Law <law@redhat.com>
7165
7166 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7167 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7168
7169 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7170
7171 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7172
7173 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7174
7175 * target.def (min_arithmetic_precision): New hook.
7176 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7177 * doc/tm.texi: Regenerate.
7178 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7179 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7180 * targhooks.c (default_min_arithmetic_precision): New function.
7181 * targhooks.h (default_min_arithmetic_precision): Declare.
7182 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7183 (sparc_min_arithmetic_precision): New function.
7184
7185 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7186
7187 PR target/71847
7188 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7189 Swap commutative operands in new RTL if needed. Handle zero_ext
7190 in the set_dest.
7191 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7192 PATTERN (insn).
7193
7194 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7195 Kugan Vivekanandarajah <kuganv@linaro.org>
7196 Jim Wilson <jim.wilson@linaro.org>
7197
7198 PR tree-optimization/43721
7199 * target.def: New hook expand_divmod_libfunc.
7200 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7201 * doc/tm.texi: Regenerate.
7202 * internal-fn.def: Add new entry for DIVMOD ifn.
7203 * internal-fn.c (expand_DIVMOD): New.
7204 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7205 targhooks.h.
7206 (widen_mul_stats): Add new field divmod_calls_inserted.
7207 (target_supports_divmod_p): New.
7208 (divmod_candidate_p): Likewise.
7209 (convert_to_divmod): Likewise.
7210 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7211 renumber_gimple_stmt_uids at beginning of function. Call
7212 convert_to_divmod and record stats for divmod.
7213 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7214 TARGET_EXPAND_DIVMOD_LIBFUNC.
7215 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7216 divmod_simode.
7217
7218 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7219 Segher Boessenkool <segher@kernel.crashing.org>
7220
7221 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7222 swapping the arms of the branch.
7223 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7224 sequence for the generic signed-signed-signed case.
7225
7226 2016-10-28 Jeff Law <law@redhat.com>
7227
7228 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7229 fallthru comment.
7230 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7231
7232 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7233
7234 PR rtl-optimization/78029
7235 * function.c (prologue_contains, epilogue_contains): New functions.
7236 (record_prologue_seq, record_epilogue_seq): New functions.
7237 * function.h (prologue_contains, epilogue_contains,
7238 record_prologue_seq, record_epilogue_seq): New declarations.
7239 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7240 mixing prologue and epilogue insns.
7241 (init_deps): Initialize the new fields in struct deps_desc.
7242 * sched-int.h (struct deps_desc): New fields last_prologue,
7243 last_epilogue, and last_logue_was_epilogue.
7244 * shrink-wrap.c (emit_common_heads_for_components): Record all
7245 emitted prologue and epilogue insns.
7246 (emit_common_tails_for_components): Ditto.
7247 (insert_prologue_epilogue_for_components): Ditto.
7248
7249 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7250
7251 PR middle-end/22141
7252 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7253 * common.opt (fstore-merging): New Optimization option.
7254 * opts.c (default_options_table): Add entry for
7255 OPT_ftree_store_merging.
7256 * fold-const.h (can_native_encode_type_p): Declare prototype.
7257 * fold-const.c (can_native_encode_type_p): Define.
7258 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7259 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7260 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7261 * passes.def: Insert pass_tree_store_merging.
7262 * tree-pass.h (make_pass_store_merging): Declare extern
7263 prototype.
7264 * gimple-ssa-store-merging.c: New file.
7265 * doc/invoke.texi (Optimization Options): Document
7266 -fstore-merging.
7267 (--param documentation): Document store-merging-allow-unaligned
7268 and max-stores-to-merge.
7269
7270 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7271
7272 PR middle-end/72747
7273 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7274 assignment to earlier in the if/else logic.
7275
7276 2016-10-28 Richard Biener <rguenther@suse.de>
7277
7278 PR middle-end/78128
7279 PR middle-end/71002
7280 * fold-const.c (make_bit_field_ref): Only adjust alias set
7281 when the original alias set was zero.
7282
7283 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7284
7285 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7286 (s390_adjust_loops): New function.
7287 (s390_reorg): Invoke s390_adjust_loops.
7288 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7289 ("osc_break"): New insn definition.
7290
7291 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7292
7293 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7294 * config.gcc: Support alternate archXX cpu levels with
7295 --with-arch= and --with-tune=.
7296 * config/s390/linux.h: Translate new archXX cpu levels to the
7297 original names when calling GAS.
7298 * config/s390/tpf.h: Likewise.
7299 * doc/invoke.texi: Document the alternate cpu level names.
7300
7301 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7302
7303 PR rtl-optimization/77919
7304 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7305 MEM if mode1 is not a complex mode.
7306
7307 PR rtl-optimization/78132
7308 * ree.c (combine_reaching_defs): Give up if copy_needed and
7309 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7310
7311 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7312
7313 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7314
7315 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7316
7317 * config/rs6000/constraints.md (wH constraint): Add new
7318 constraints for allowing 32-bit integers (and eventually 8/16-bit
7319 integers) into the vector registers.
7320 (wI constraint): Likewise.
7321 (wJ constraint): Likewise.
7322 (wK constraint): Likewise.
7323 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7324 -mvsx-small-integer as a default option for ISA 2.07
7325 (i.e. power8).
7326 (POWERPC_MASKS): Likewise.
7327 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7328 switch to turn off small integer support in vector registers.
7329 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7330 test for -mupper-regs-di, since it is already done with the
7331 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7332 -mvsx-small-integer.
7333 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7334 constraints.
7335 (rs6000_setup_reg_addr_masks): Likewise.
7336 (rs6000_init_hard_regno_mode_ok): Likewise.
7337 (rs6000_option_override_internal): Add consistency checks for
7338 -mvsx-small-integer.
7339 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7340 -mvsx-small-integer.
7341 (rs6000_secondary_reload): Use std::swap.
7342 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7343 VSX_REGS for small integers in vector registers, since there is no
7344 D-FORM address mode for such types.
7345 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7346 (rs6000_opt_masks): Add -mvsx-small-integer.
7347 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7348 support.
7349 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7350 extracts can be done on ISA 2.07.
7351 (vsx_extract_<mode>): Add support for small integers in vsx
7352 registers.
7353 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7354 longer support V4SImode in this pattern.
7355 (vsx_extract_si): New insn to support extraction of SImode in ISA
7356 2.07 using either xxextractuw or vspltw.
7357 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7358 longer support V4SImode in this pattern.
7359 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7360 wJ, and wK constraints.
7361 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7362 storing SDmode with VSX instructions.
7363 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7364 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7365 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7366 small integers in vector registers.
7367 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7368 load and before the FPR and VSX loads. Remove ??, ! from the
7369 constraints. Add VEXTSW2D support for small integers in vector
7370 registers.
7371 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7372 integers in vector registers.
7373 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7374 move instead of using an UNSPEC.
7375 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7376 integers in vector registers.
7377 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7378 move instead of using an UNSPEC.
7379 (movsi_internal1): Add support for -mvsx-small-integer. Align
7380 columns so that it is more readable.
7381 (SImode splitter for ISA 3.0 constants): Add splitter for
7382 -128..127 constants that can easily be constructed on ISA 3.0.
7383 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7384 constraints.
7385
7386 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR middle-end/78025
7389 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7390 functions.
7391
7392 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7393
7394 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7395 PIC_OFFSET_TABLE_REGNUM twice.
7396
7397 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7398
7399 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7400 support for constant operand for OP.
7401
7402 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7403
7404 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7405 splice_child_die if child doesn't have DW_AT_specification attribute.
7406
7407 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7408
7409 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7410 (TARGET_HAVE_LDREXBH): Likewise.
7411 (TARGET_HAVE_LDACQ): Likewise.
7412
7413 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7414
7415 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7416 logic to to decide whether to copy over old value to register for new
7417 value.
7418 * config/arm/sync.md: Add comments explaning why mode and code
7419 attribute are not defined in iterators.md
7420 (thumb1_atomic_op_str): New code attribute.
7421 (thumb1_atomic_newop_str): Likewise.
7422 (thumb1_atomic_fetch_op_str): Likewise.
7423 (thumb1_atomic_fetch_newop_str): Likewise.
7424 (thumb1_atomic_fetch_oldop_str): Likewise.
7425 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7426 mirror the more restrictive constraints of the Thumb-1 insns after
7427 split compared to Thumb-2 counterpart insns.
7428 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7429 in sync with non atomic version.
7430 (atomic_nand<mode>): Likewise.
7431 (atomic_fetch_<sync_optab><mode>): Likewise.
7432 (atomic_fetch_nand<mode>): Likewise.
7433 (atomic_<sync_optab>_fetch<mode>): Likewise.
7434 (atomic_nand_fetch<mode>): Likewise.
7435 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7436 in sync with atomic version.
7437 (thumb1_subsi3_insn): Likewise.
7438 (thumb1_andsi3_insn): Likewise.
7439 (thumb1_iorsi3_insn): Likewise.
7440 (thumb1_xorsi3_insn): Likewise.
7441
7442 2016-10-27 Nick Clifton <nickc@redhat.com>
7443
7444 * plugin.c (register_plugin_info): Produce an error message if the
7445 plugin is not found in the hash table.
7446
7447 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7448
7449 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7450 New pattern.
7451
7452 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7453
7454 PR target/78056
7455 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7456 define builtin functions from the bdesc_spe_predicates or
7457 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7458 the current compiler configuration.
7459 (paired_init_builtins): Modify loop to not define define builtin
7460 functions from the bdesc_paried_preds array if the builtin mask is
7461 not compatible with the current compiler configuration.
7462 (altivec_init_builtins): Modify loops to not define the
7463 __builtin_altivec_stxvl function nor the builtin functions from
7464 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7465 builtin mask is not compatible with the current compiler
7466 configuration.
7467
7468 2016-10-26 Jeff Law <law@redhat.com>
7469
7470 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7471 (gen_shl_and): Likewise.
7472 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7473
7474 * config/mips/mips.c (mips16_constant_cost): Add missing
7475 fallthru comments.
7476 (mips16_build_call_stub): Increase buffer size. Adjust
7477 fallthru comment.
7478
7479 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7480
7481 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7482 INSN_UIDs for all insns in compact mode.
7483 (rtx_writer::print_rtx): Likewise.
7484 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7485 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7486 output to include INSN_UID.
7487 (selftest::test_uncond_jump): Likewise.
7488
7489 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7490
7491 * haifa-sched.c (call_used_regs_num): Rename to...
7492 (call_saved_regs_num): ...this.
7493 (fixed_regs_num): New variable.
7494 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7495 regs not call_used.
7496 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7497
7498 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7499
7500 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7501 class rtx_writer.
7502 * print-rtl.c (outfile): Delete global.
7503 (sawclose): Likewise.
7504 (indent): Likewise.
7505 (in_call_function_usage): Likewise.
7506 (flag_compact): Likewise.
7507 (flag_simple): Likewise.
7508 (rtx_writer::rtx_writer): New ctor.
7509 (print_rtx_operand_code_0): Convert to...
7510 (rtx_writer::print_rtx_operand_code_0): ...this.
7511 (print_rtx_operand_code_e): Convert to...
7512 (rtx_writer::print_rtx_operand_code_e): ...this.
7513 (print_rtx_operand_codes_E_and_V): Convert to...
7514 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7515 (print_rtx_operand_code_i): Convert to...
7516 (rtx_writer::print_rtx_operand_code_i): ...this.
7517 (print_rtx_operand_code_r): Convert to...
7518 (rtx_writer::print_rtx_operand_code_r): ...this.
7519 (print_rtx_operand_code_u): Convert to...
7520 (rtx_writer::print_rtx_operand_code_u): ...this.
7521 (print_rtx_operand): Convert to...
7522 (rtx_writer::print_rtx_operand): ...this.
7523 (print_rtx): Convert to...
7524 (rtx_writer::print_rtx): ...this.
7525 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7526 (debug_rtx): Likewise.
7527 (print_rtl): Convert to...
7528 (rtx_writer::print_rtl): ...this.
7529 (print_rtl): Reimplement in terms of class rtx_writer.
7530 (print_rtl_single): Rewrite in terms of class rtx_writer.
7531 (print_rtl_single_with_indent): Convert to..
7532 (rtx_writer::print_rtl_single_with_indent): ...this.
7533 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7534 * print-rtl.h (flag_compact): Delete decl.
7535 (class rtx_writer): New class.
7536 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7537 class rtx_writer.
7538
7539 2016-10-26 Jeff Law <law@redhat.com>
7540
7541 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7542 fallthru.
7543
7544 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7545 (check_if_valid_sleep_operand): Add missing fallthru comment.
7546 (arc_register_move_cost): Increase buffer size.
7547 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7548 comment.
7549 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7550
7551 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7552 comment. Add gcc_unreachable for path that should never happen.
7553
7554 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7555 fallthru comment.
7556
7557 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7558 Martin Liska <mliska@suse.cz>
7559
7560 PR fortran/77973
7561 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7562 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7563 on outer context if any.
7564
7565 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7566
7567 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7568 by increment rather than double it.
7569 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7570 emit a space before args[4].
7571 (END): Don't emit a space before with_arg.
7572
7573 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7574
7575 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7576 Baseline only alternatives to (i) hold store atomic success value in a
7577 return register rather than a scratch register, (ii) use a low register
7578 for it and to (iii) ensure the cbranchsi insn generated by the split
7579 respect the constraints of Thumb-1 cbranchsi4_insn and
7580 cbranchsi4_scratch.
7581 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7582 constraints must match those in atomic_compare_and_swap.
7583 (cbranchsi4_scratch): Likewise.
7584
7585 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7586
7587 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7588 variable. Add the new parameter to the insn generator. Set that
7589 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7590 return value from the negation of that parameter for Thumb-1, keeping
7591 the logic unchanged otherwise except for using bdst as the destination
7592 register of the compare_and_swap insn.
7593 (arm_split_compare_and_swap): Add explanation about how is the value
7594 returned to the function comment. Rename scratch variable to
7595 neg_bval. Adapt initialization of variables holding operands to the
7596 new operand numbers. Use return register to hold result of store
7597 exclusive for Thumb-1, scratch register otherwise. Construct the
7598 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7599 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7600 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7601 for strongly ordered compare_and_swap.
7602 * config/arm/predicates.md (cc_register_operand): New predicate.
7603 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7604 match_operand with the new predicate to accept either the CC flag or a
7605 destination register for the boolean return value, restricting it to
7606 CC flag only via constraint. Adapt operand numbers accordingly.
7607
7608 2016-10-26 Jeff Law <law@redhat.com>
7609
7610 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7611
7612 * config/frv/frv.c (comparison_string): Do not fall through after
7613 an error.
7614
7615 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7616 comment.
7617 (expand_one_builtin): Add missing break.
7618
7619 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7620 (m32c_legitimate_address_p): Likewise.
7621
7622 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7623
7624 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7625
7626 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7627 fallthru comment.
7628
7629 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7630 fallthru comment.
7631
7632 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7633
7634 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7635 comment.
7636 (rl78_asm_ctor_dtor): Increase buffer size.
7637
7638 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7639 buffer size.
7640 (xstormy16_asm_output_constructor): Likewise.
7641
7642 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7643 size.
7644
7645 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7646 comment to silence warning.
7647
7648 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7649 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7650 comment.
7651
7652 2016-10-26 Michael Matz <matz@suse.de>
7653
7654 PR tree-optimization/78060
7655 PR tree-optimization/78061
7656 PR tree-optimization/78088
7657 * tree-ssa-loop-split.c (easy_exit_values): New function.
7658 (tree_ssa_split_loops): Use it.
7659 (compute_new_first_bound): Change order of operations,
7660 fix invalid use of types.
7661
7662 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7663
7664 gen-pass-instances.awk is sensitive to the order in which
7665 passes are added; passes that appear later have to be added first.
7666
7667 PR target/71676
7668 PR target/71678
7669 * config/avr/avr-passes.def: Swap order of directives for
7670 gen-pass-instances.awk.
7671
7672 2016-10-25 Jeff Law <law@redhat.com>
7673
7674 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7675 (vax_notice_update_cc): Likewise.
7676
7677 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7678
7679 * config.gcc (sparc*-*-solaris2*): Adjust.
7680 (sparc64-*-linux*): Likewise.
7681 * config/sparc/default-64.h: Rename to...
7682 * config/sparc/default64.h: ...this.
7683 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7684 with TARGET_ARCH64.
7685 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7686 * config/sparc/sparc.h: Minor tweaks.
7687 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7688 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7689
7690 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7691
7692 * input.c (fcache::file_patch): Add comment about lifetime.
7693 (selftest::cpp_reader_ptr): New class.
7694 (selftest::lexer_test): Convert m_parser from cpp_reader *
7695 to a cpp_reader_ptr, and move m_tempfile to after it.
7696 (selftest::lexer_test::lexer_test): Update for above reordering.
7697 (lexer_test::~lexer_test): Move cleanup of m_parser to
7698 cpp_reader_ptr's dtor.
7699
7700 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7701
7702 * toplev.c (toplev::main): Remove call to
7703 location_adhoc_data_fini.
7704
7705 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7706
7707 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7708 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7709
7710 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7711
7712 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7713 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7714 (test_basic_struct): Update for above renaming.
7715 (test_length): Likewise.
7716 (test_union): Likewise.
7717 (test_finalization): Likewise.
7718 (test_deletable_global): Likewise.
7719 (test_inheritance): Likewise.
7720 (test_chain_next): Likewise.
7721 (test_user_struct): Likewise.
7722 (test_tree_marking): Likewise.
7723 * selftest-run-tests.c (selftest::run_tests): Call
7724 selftest::forcibly_ggc_collect at the end of the selftests.
7725 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7726
7727 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7728
7729 PR target/78102
7730 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7731 * optabs.c (expand_vec_cond_expr): For comparison codes
7732 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7733 (expand_vec_cmp_expr): For comparison codes
7734 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7735 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7736 Add enum tree_code argument.
7737 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7738 inline functions.
7739 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7740 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7741 fallback.
7742 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7743 NE_EXPR, attempt to use vcondeq_optab as fallback.
7744 * tree-vect-generic.c (expand_vector_comparison,
7745 expand_vector_divmod, expand_vector_condition): Adjust
7746 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7747 * tree-vect-stmts.c (vectorizable_condition,
7748 vectorizable_comparison): Likewise.
7749 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7750 check_bool_pattern, search_type_for_mask_1): Likewise.
7751 * expr.c (do_store_flag): Likewise.
7752 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7753 @code{vcondeq@var{m}@var{n}}): Document.
7754 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7755 New expanders.
7756
7757 2016-10-25 Jeff Law <law@redhat.com>
7758
7759 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7760 comment.
7761 (v850_output_aligned_bss): Add missing break.
7762
7763 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7764
7765 2016-10-25 Martin Liska <mliska@suse.cz>
7766
7767 PR sanitizer/78106
7768 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7769 statements as they can also contain possibly a freeing call.
7770
7771 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7772 Martin Liska <mliska@suse.cz>
7773
7774 PR ipa/78099
7775 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7776 * ipa-icf.c (sem_function::get_hash): Add target optimization
7777 node to hash.
7778
7779 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7780
7781 PR target/78041
7782 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7783 Remove partial overlap check for shift by 1.
7784 (ashldi3_neon): Likewise.
7785
7786 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7787
7788 * config/arm/constraints.md (Q constraint): Document its use for
7789 Thumb-1.
7790 (Pf constraint): New constraint for relaxed, consume or relaxed memory
7791 models.
7792 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
7793 alternatives to allow any register when memory model matches Pf and
7794 thus lda is used, but only low registers otherwise. Use unpredicated
7795 output template for Thumb-1 targets.
7796 (atomic_store<mode>): Likewise for stl.
7797 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
7798 whose output template does not have predication.
7799 (arm_load_acquire_exclusive<mode>): Likewise.
7800 (arm_load_exclusivesi): Likewise.
7801 (arm_load_acquire_exclusivesi): Likewise.
7802 (arm_store_release_exclusive<mode>): Likewise.
7803 (arm_store_exclusive<mode>): Use unpredicated output template for
7804 Thumb-1 targets.
7805
7806 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7807
7808 * internal-fn.def (LAUNDER): New internal function.
7809 * internal-fn.c (expand_LAUNDER): New function.
7810
7811 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7812 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7813
7814 New avr target pass to work around performance loss by PR fix.
7815
7816 PR target/71676
7817 PR target/71678
7818 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
7819 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
7820 * config/avr/predicates.md (extend_operator): New.
7821 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
7822 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
7823 (make_avr_pass_casesi): New prototypes.
7824 * config/avr/avr.c (print-rtl.h): Include it.
7825 (pass_data avr_pass_data_casesi): Data for new pass.
7826 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
7827 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
7828 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
7829 (avr_optimize_casesi): New functions.
7830
7831 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
7832 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
7833
7834 PR target/71676
7835 PR target/71678
7836 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
7837
7838 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7839
7840 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
7841 DW_AT_rvalue_reference attributes.
7842
7843 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
7844
7845 * doc/invoke.text (Wint-in-bool-context): Update documentation.
7846 * value-prof.c (stringop_block_profile): Fix a warning.
7847
7848 2016-10-24 Martin Sebor <msebor@redhat.com>
7849
7850 PR middle-end/77735
7851 * builtins.c (string_length): New function.
7852 (c_strlen): Use string_length. Correctly handle wide strings.
7853 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
7854 functions.
7855 (target_int_max): Call target_max_value.
7856 (format_result::knownrange): New data member.
7857 (fmtresult::fmtresult): Define default constructor.
7858 (format_integer): Use it and set format_result::knownrange.
7859 Handle global constants.
7860 (format_floating_max): Add third argument.
7861 (format_floating): Recompute maximum value for %a for each argument.
7862 (get_string_length): Use fmtresult default ctor.
7863 (format_string): Set format_result::knownrange.
7864 (format_directive): Check format_result::knownrange.
7865 (add_bytes): Same. Correct caret placement in diagnostics.
7866 (pass_sprintf_length::compute_format_length): Set
7867 format_result::knownrange.
7868 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
7869
7870 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7871
7872 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
7873 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
7874
7875 2016-10-24 Ximin Luo <infinity0@pwned.gg>
7876
7877 PR debug/77985
7878 * dwarf2out.c (file_table_relative_p): Remove.
7879 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
7880 also for absolute paths.
7881 * doc/tm.texi: Update.
7882 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
7883 * target.def (force_at_comp_dir): Remove hook.
7884 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
7885
7886 2016-10-24 Richard Biener <rguenther@suse.de>
7887
7888 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
7889 backedges when identifying the single predecessor to take
7890 conditional info from. Use SCEV to get at ranges for loop IVs.
7891 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
7892 avoid false warning.
7893
7894 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
7895
7896 PR target/78093
7897 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
7898 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
7899 (avr_address_tiny_absdata_p): New static function.
7900 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
7901 it to determine validity of constant addresses.
7902 (avr_attribute_table) [absdata]: New variable attribute...
7903 (avr_handle_absdata_attribute): ...and handler.
7904 (avr_decl_absdata_p): New static function.
7905 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
7906 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
7907 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
7908
7909 2016-10-24 Richard Biener <rguenther@suse.de>
7910
7911 PR tree-optimization/78076
7912 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
7913 also on the loop tree root.
7914
7915 2016-10-24 Jakub Jelinek <jakub@redhat.com>
7916
7917 * config/i386/i386.c (ix86_fold_builtin): Handle
7918 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
7919 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7920 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
7921 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
7922
7923 2016-10-24 Martin Liska <mliska@suse.cz>
7924
7925 PR sanitizer/77966
7926 * opts.c (finish_options): Skip conditionally.
7927
7928 2016-10-23 Martin Sebor <msebor@redhat.com>
7929
7930 PR target/77837
7931 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
7932 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
7933
7934 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7935
7936 * config/sparc/sparc.md (cpu_feature): Minor tweak.
7937 (enabled): Likewise.
7938 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
7939 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
7940 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
7941 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
7942 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
7943 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
7944
7945 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
7946
7947 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
7948 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7949
7950 2016-10-21 Andrew Pinski <apinski@cavium.com>
7951
7952 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7953 integer constants.
7954 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7955 implementer_id to unsigned char.
7956 Change part_no to unsigned int.
7957 (AARCH64_BIG_LITTLE): New define.
7958 (INVALID_IMP): New define.
7959 (INVALID_CORE): New define.
7960 (cpu_data): Change the last element's implementer_id and part_no to
7961 integers.
7962 (valid_bL_string_p): Rewrite to ..
7963 (valid_bL_core_p): this for integers instead of strings.
7964 (parse_field): New function.
7965 (contains_string_p): Rewrite to ...
7966 (contains_core_p): this for integers and only for the part_no.
7967 (host_detect_local_cpu): Rewrite handling of implementation and
7968 par num to be integers; simplifying the code.
7969
7970 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7971
7972 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7973 value range for pointers in more cases.
7974
7975 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7976
7977 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7978 Add extra argument to allow emitting the move immediate.
7979 Use add/sub with positive immediate.
7980 (aarch64_add_constant): Add inline function.
7981 (aarch64_add_sp): Likewise.
7982 (aarch64_sub_sp): Likewise.
7983 (aarch64_expand_prologue): Call aarch64_sub_sp.
7984 (aarch64_expand_epilogue): Call aarch64_add_sp.
7985 Decide when to leave out move.
7986 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7987
7988 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7989
7990 * config/aarch64/aarch64.c (aarch64_layout_frame):
7991 Align FP callee-saves.
7992
7993 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7994
7995 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7996 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7997 Formatting fixes.
7998 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7999 _rdseed64_step): Likewise.
8000 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8001
8002 PR target/78057
8003 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8004 and tree-ssanames.h.
8005 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8006 with INTEGER_CST argument.
8007 (ix86_gimple_fold_builtin): New function.
8008 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8009
8010 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8011 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8012 (ranges_table_allocated, ranges_table_in_use,
8013 ranges_by_label_allocated, ranges_by_label_in_use,
8014 RANGES_TABLE_INCREMENT): Removed.
8015 (add_ranges_num): Use vec_safe_push into ranges_table.
8016 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8017 (output_ranges): Adjust for ranges_table and ranges_by_label
8018 conversion from arrays to vec.
8019 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8020 conversion from arrays to vec.
8021 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8022 ranges_table_in_use, ranges_by_label_allocated and
8023 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8024
8025 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8026 if needed. Re-add origin_die variable and its initialization.
8027
8028 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8029 even for -fstack-reuse=none, or for volatile vars etc.
8030
8031 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8032
8033 * print-rtl-function.c (flag_compact): Move extern decl to...
8034 * print-rtl.h (flag_compact): ...here.
8035 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8036 (ASSERT_RTL_DUMP_EQ): New macro.
8037 (selftest::test_dumping_regs): New function.
8038 (selftest::test_dumping_insns): New function.
8039 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8040 the insns.
8041 (selftest::rtl_tests_c_tests): Call the new test functions.
8042
8043 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8044
8045 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8046 (outgoing_edges_match): Likewise.
8047 (try_crossjump_to_edge): Likewise.
8048 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8049 (rtl_tidy_fallthru_edge): Likewise.
8050 * rtl.h (tablejump_p): Adjust prototype.
8051 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8052
8053 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8054
8055 * rtl.h (label_ref_label): New function.
8056 (set_label_ref_label): New function.
8057 (LABEL_REF_LABEL): Delete.
8058 * alias.c (rtx_equal_for_memref_p): Adjust.
8059 * cfgbuild.c (make_edges): Likewise.
8060 (purge_dead_tablejump_edges): Likewise.
8061 * cfgexpand.c (convert_debug_memory_address): Likewise.
8062 * cfgrtl.c (patch_jump_insn): Likewise.
8063 * combine.c (distribute_notes): Likewise.
8064 * cse.c (hash_rtx_cb): Likewise.
8065 (exp_equiv_p): Likewise.
8066 (fold_rtx): Likewise.
8067 (check_for_label_ref): Likewise.
8068 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8069 (cselib_hash_rtx): Likewise.
8070 * emit-rtl.c (mark_label_nuses): Likewise.
8071 * explow.c (convert_memory_address_addr_space_1): Likewise.
8072 * final.c (output_asm_label): Likewise.
8073 (output_addr_const): Likewise.
8074 * gcse.c (add_label_notes): Likewise.
8075 * genconfig.c (walk_insn_part): Likewise.
8076 * genrecog.c (validate_pattern): Likewise.
8077 * ifcvt.c (cond_exec_get_condition): Likewise.
8078 (noce_emit_store_flag): Likewise.
8079 (noce_get_alt_condition): Likewise.
8080 (noce_get_condition): Likewise.
8081 * jump.c (maybe_propagate_label_ref): Likewise.
8082 (mark_jump_label_1): Likewise.
8083 (redirect_exp_1): Likewise.
8084 (rtx_renumbered_equal_p): Likewise.
8085 * lra-constraints.c (operands_match_p): Likewise.
8086 * print-rtl.c (print_value): Likewise.
8087 * reload.c (find_reloads): Likewise.
8088 * reload1.c (set_label_offsets): Likewise.
8089 * reorg.c (get_branch_condition): Likewise.
8090 * rtl-tests.c (test_uncond_jump): Likewise.
8091 * rtl.c (rtx_equal_p_cb): Likewise.
8092 (rtx_equal_p): Likewise.
8093 * rtlanal.c (reg_mentioned_p): Likewise.
8094 (rtx_referenced_p): Likewise.
8095 (get_condition): Likewise.
8096 * varasm.c (const_hash_1): Likewise.
8097 (compare_constant): Likewise.
8098 (const_rtx_hash_1): Likewise.
8099 (output_constant_pool_1): Likewise.
8100
8101 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8102
8103 PR target/71627
8104 * reload.c (find_valid_class_1): Allow regclass if atleast one
8105 regno in regclass is ok. Compute and use rclass size based on
8106 actually available regnos for mode in rclass.
8107
8108 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8109
8110 * config/sparc/sparc-modes.def (CCV): New.
8111 (CCXV): Likewise.
8112 * config/sparc/predicates.md (v_comparison_operator): New.
8113 (icc_comparison_operator): Add support for CCV/CCXV.
8114 (xcc_comparison_operator): Likewise.
8115 * config/sparc/sparc.c (output_cbranch): Likewise.
8116 (sparc_print_operand): Likewise.
8117 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8118 (uaddvdi4): New expander.
8119 (addvdi4): Likewise.
8120 (uaddvdi4_sp32): New instruction.
8121 (addvdi4_sp32): Likewise.
8122 (uaddvsi4): New expander.
8123 (addvsi4): Likewise.
8124 (cmp_ccc_plus_sltu_set): New instruction.
8125 (cmp_ccv_plus): Likewise.
8126 (cmp_ccxv_plus): Likewise.
8127 (cmp_ccv_plus_set): Likewise.
8128 (cmp_ccxv_plus_set): Likewise.
8129 (cmp_ccv_plus_sltu_set): Likewise.
8130 (uaddvdi4): New expander.
8131 (subvdi4): Likewise.
8132 (usubdi4_sp32): New instruction.
8133 (subvdi4_sp32): Likewise.
8134 (usubvsi4): New expander.
8135 (subvsi4): Likewise.
8136 (cmpsi_minus_sltu_set): New instruction.
8137 (cmp_ccv_minus): Likewise.
8138 (cmp_ccxv_minus): Likewise.
8139 (cmp_ccv_minus_set): Likewise.
8140 (cmp_ccxv_minus_set): Likewise.
8141 (cmp_ccv_minus_sltu_set): Likewise.
8142 (unegvdi3): New expander.
8143 (negvdi3): Likewise.
8144 (unegdi3_sp32): New instruction.
8145 (negvdi3_sp32): Likewise.
8146 (unegvsi3): New expander.
8147 (negvsi3): Likewise.
8148 (cmp_ccc_neg_sltu_set): New instruction.
8149 (cmp_ccv_neg): Likewise.
8150 (cmp_ccxv_neg): Likewise.
8151 (cmp_ccv_neg_set): Likewise.
8152 (cmp_ccxv_neg_set): Likewise.
8153 (cmp_ccv_neg_sltu_set): Likewise.
8154
8155 * tree-ssa-loop-split.c: Remove trailing spaces.
8156 * match.pd: Likewise.
8157
8158 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8159
8160 PR rtl-optimization/78038
8161 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8162 be deduced to set REG through the RTL structure.
8163 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8164
8165 2016-10-21 Richard Biener <rguenther@suse.de>
8166
8167 PR tree-optimization/78051
8168 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8169 and mark replaced if folding did something.
8170
8171 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8172
8173 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8174 and "protected" in visibility types.
8175 (rs6000_xcoff_declare_function_name): Fix formatting.
8176 (rs6000_xcoff_declare_object_name): Fix formatting.
8177
8178 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8179
8180 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8181 and IX86_BUILTIN_HUGE_VALQ here ...
8182 (ix86_expand_builtin): ... not here.
8183
8184 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8185
8186 * doc/gty.texi (for_user): Use @item next to @findex.
8187
8188 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8189
8190 PR target/78037
8191 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8192 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8193 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8194 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8195 __builtin_ia32_lzcnt_u16.
8196 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8197 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8198 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8199 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8200 (bmi_tzcnt_<mode>): New expander.
8201 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8202 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8203 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8204 (lzcnt_<mode>): New expander.
8205 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8206 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8207 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8208 (UINT64_FTYPE_UINT64): New.
8209 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8210 (__builtin_ia32_lzcnt_u16): New description.
8211 (__builtin_ia32_lzcnt_u32): Ditto.
8212 (__builtin_ia32_lzcnt_u64): Ditto.
8213 (__builtin_ctzs): Remove description.
8214 (__builtin_ia32_tzcnt_u16): New description.
8215 (__builtin_ia32_tzcnt_u32): Ditto.
8216 (__builtin_ia32_tzcnt_u64): Ditto.
8217 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8218 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8219
8220 2016-10-20 Martin Liska <mliska@suse.cz>
8221
8222 PR lto/78049
8223 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8224 comparison with STMT_UID_NOT_IN_RANGE.
8225 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8226 LTRANS.
8227
8228 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8229
8230 * compare-elim.c (conforming_compare): Accept UNSPECs.
8231 (find_comparison_dom_walker::before_dom_children): Deal with
8232 instructions both using and killing the flags register.
8233 (equivalent_reg_at_start): New function extracted from...
8234 (try_eliminate_compare): ...here. Use it and add support for
8235 registers and UNSPECs as second operand of the compare.
8236 * config/visium/visium-modes.def (CCV): New.
8237 * config/visium/predicates.md (visium_v_comparison_operator): New.
8238 (visium_branch_operator): Deal with CCV mode.
8239 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8240 (output_cbranch): Likewise.
8241 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8242 (uaddv<mode>4): New expander.
8243 (addv<mode>4): Likewise.
8244 (add<mode>3_insn_set_carry): New instruction.
8245 (add<mode>3_insn_set_overflow): Likewise.
8246 (addsi3_insn_set_overflow): Likewise.
8247 (usubv<mode>4): New expander.
8248 (subv<mode>4): Likewise.
8249 (sub<mode>3_insn_set_carry): New instruction.
8250 (sub<mode>3_insn_set_overflow): Likewise.
8251 (subsi3_insn_set_overflow): Likewise.
8252 (unegv<mode>3): New expander.
8253 (negv<mode>3): Likewise.
8254 (neg<mode>2_insn_set_overflow): New instruction.
8255 (addv_tst<mode>): Likewise.
8256 (subv_tst<mode>): Likewise.
8257 (negv_tst<mode>): Likewise.
8258 (cbranch<mode>4_addv_insn): New splitter and instruction.
8259 (cbranch<mode>4_subv_insn): Likewise.
8260 (cbranch<mode>4_negv_insn): Likewise.
8261
8262 2016-10-20 Richard Biener <rguenther@suse.de>
8263
8264 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8265 Handle decls possibly not bound.
8266 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8267 nothing_id for decls that might not be bound if we are interested
8268 for the address.
8269 (get_constraint_for_component_ref): Deal with that.
8270
8271 2016-10-20 Michael Matz <matz@suse.de>
8272
8273 Loop splitting.
8274 * common.opt (-fsplit-loops): New flag.
8275 * passes.def (pass_loop_split): Add.
8276 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8277 (enable_fdo_optimizations): Add loop splitting.
8278 * timevar.def (TV_LOOP_SPLIT): Add.
8279 * tree-pass.h (make_pass_loop_split): Declare.
8280 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8281 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8282 * tree-ssa-loop-split.c: New file.
8283 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8284 * doc/invoke.texi (fsplit-loops): Document.
8285 * doc/passes.texi (Loop optimization): Add paragraph about loop
8286 splitting.
8287
8288 2016-10-20 Richard Biener <rguenther@suse.de>
8289
8290 * cgraphunit.c (analyze_functions): Set node->definition to
8291 false to signal symbol removal to debug_hooks->late_global_decl.
8292 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8293 WPA signal symbol removal to the debuginfo machinery.
8294 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8295 using early_finised to guard the we're called for symbol
8296 removal case look at the symtabs definition flag.
8297 (gen_variable_die): Remove redundant check.
8298
8299 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8300
8301 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8302
8303 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8304
8305 PR tree-optimization/53979
8306 * match.pd ((a ^ b) | a -> a | b): New pattern.
8307
8308 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8309
8310 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8311 config/pa/pa64-hpux-lib.h.
8312 (PA_CRTBEGIN_HACK): Likewise.
8313 (DTOR_LIST_BEGIN): Likewise.
8314
8315 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8316
8317 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8318 register only if "in" and "out" are different registers.
8319
8320 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8321
8322 * omp-low.c (pass_oacc_device_lower::gate): New method.
8323 (execute): Always call execute_oacc_device_lower.
8324
8325 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8326
8327 PR tree-optimization/77916
8328 PR tree-optimization/77937
8329 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8330 stopgap fix.
8331 (insert_initializers): Requirement of initializer for -1 should be
8332 based on pointer-typedness of the candidate basis.
8333
8334 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8335
8336 PR tree-optimization/78005
8337 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8338 upper (included) bound for niters of prolog loop.
8339 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8340 Compute niters of scalar loop above which vectorized loop is
8341 preferred, as well as the upper (included) bound for the niters.
8342 (vect_do_peeling): Record niter bound for loops accordingly.
8343
8344 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8345
8346 PR lto/77458
8347 * tree-core.h (enum tree_index): Put the complex types after their
8348 component types.
8349 * tree-streamer.c (verify_common_node_recorded): New function.
8350 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8351
8352 2016-10-19 Martin Liska <mliska@suse.cz>
8353
8354 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8355 Replace NULL with false as a return value.
8356
8357 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8358
8359 PR tree-optimization/78024
8360 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8361 don't clear BB_VISITED after processing.
8362
8363 2016-10-19 Richard Biener <rguenther@suse.de>
8364
8365 * domwalk.c (dom_walker::walk): Use RPO order.
8366
8367 2016-10-19 Richard Biener <rguenther@suse.de>
8368
8369 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8370 stmts_to_remove.
8371 (evrp_dom_walker::~evrp_dom_walker): Free it.
8372 (evrp_dom_walker::stmts_to_remove): Add.
8373 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8374 whose output we fully propagate for removal. Propagate
8375 into BB destination PHI arguments.
8376 (execute_early_vrp): Remove queued stmts. Dump value ranges
8377 before stmt removal.
8378
8379 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8380
8381 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8382 * passes.def: Add two instances of pass_walloca.
8383 * tree-pass.h (make_pass_walloca): New.
8384 * gimple-ssa-warn-alloca.c: New file.
8385 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8386 -Wvla-larger-than= options.
8387
8388 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8389
8390 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8391 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8392
8393 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8394
8395 * config/rs6000/altivec.h (vec_xl_len): New macro.
8396 (vec_xst_len): New macro.
8397 (vec_cmpnez): New macro.
8398 (vec_cntlz_lsbb): New macro.
8399 (vec_cnttz_lsbb): New macro.
8400 (vec_xlx): New macro.
8401 (vec_xrx): New macro.
8402 (vec_all_nez): New C++ predicate template.
8403 (vec_any_eqz): New C++ predicate template.
8404 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8405 conditional compilation.
8406 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8407 conditional compilation.
8408 (vec_all_nez): New macro.
8409 (vec_any_eqz): New macro.
8410 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8411 compilation.
8412 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8413 compilation.
8414 * config/rs6000/vector.md (VI): Moved this mode iterator
8415 definition from altivec.md to vector.md.
8416 (UNSPEC_NEZ_P): New value.
8417 (vector_ne_<mode>_p): New expansion for implementation of
8418 vec_all_ne and vec_any_eq built-in functions.
8419 (vector_nez_<mode>_p): New expansion for implementation of
8420 vec_all_nez and vec_any_eqz built-in functions.
8421 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8422 and vec_any_eq built-in function.
8423 (cr6_test_for_zero): New commentary to explain this expansion.
8424 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8425 (cr6_test_for_lt): New commentary to explain this expansion.
8426 (cr6_test_for_lt_reverse): New commentary to explain this
8427 expansion.
8428 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8429 overloaded function prototypes for vec_all_ne, vec_all_nez,
8430 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8431 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8432 built-in functions.
8433 (altivec_resolve_overloaded_builtin): Modify the handling of
8434 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8435 the compiler is configured to support TARGET_P9_VECTOR.
8436 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8437 to explain the special processing that is given to predicate
8438 built-ins introduced using this macro.
8439 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8440 the special processing given to predicate built-ins introduced
8441 using this macro.
8442 (BU_VSX_P): Likewise.
8443 (BU_P8V_AV_P): Likewise.
8444 (BU_P9V_AV_P): Likewise.
8445 (BU_P9V_AV_X): New macro.
8446 (BU_P9V_64BIT_AV_X): New macro.
8447 (BU_P9V_VSX_3): New macro.
8448 (BU_P9V_OVERLOAD_P): New macro.
8449 (LXVL): New BU_P9V_64BIT_VSX_2.
8450 (VEXTUBLX): New BU_P9V_AV_2.
8451 (VEXTUBRX): Likewise.
8452 (VEXTUHLX): Likewise.
8453 (VEXTUHRX): Likewise.
8454 (VEXTUWLX): Likewise.
8455 (VEXTUWRX): Likewise.
8456 (STXVL): New BU_P9V_64BIT_AV_X.
8457 (VCLZLSBB): New BU_P9V_AV_1.
8458 (VCTZLSBB): Likewise.
8459 (CMPNEB): New BU_P9V_AV_2.
8460 (CMPNEH): Likewise.
8461 (CMPNEW): Likewise.
8462 (CMPNEF): Likewise.
8463 (CMPNED): Likewise.
8464 (VCMPNEB_P): New BU_P9V_AV_P.
8465 (VCMPNEH_P): Likewise.
8466 (VCMPNEW_P): Likewise.
8467 (VCMPNED_P): Likewise.
8468 (VCMPNEFP_P): Likewise.
8469 (VCMPNEDP_P): Likewise.
8470 (CMPNEZB): New BU_P9V_AV_2.
8471 (CMPNEZH): Likewise.
8472 (CMPNEZW): Likewise.
8473 (VCMPNEZB_P): New BU_P9V_AV_P.
8474 (VCMPNEZH_P): Likewise.
8475 (VCMPNEZW_P): Likewise.
8476 (LXVL): New BU_P9V_OVERLOAD_2.
8477 (STXVL): New BU_P9V_OVERLOAD_3.
8478 (VEXTULX): New BU_P9V_OVERLOAD_2.
8479 (VEXTURX): Likewise.
8480 (CMPNEZ): Likewise.
8481 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8482 (VCMPNE_P): Likewise.
8483 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8484 (VCTZLSBB): Likewise.
8485 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8486 comment to explain mode used for scratch register.
8487 (altivec_expand_stxvl_builtin): New function.
8488 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8489 (altivec_init_builtins): Add initialized variable
8490 void_ftype_v16qi_pvoid_long and use this type to define the
8491 built-in function __builtin_altivec_stxvl.
8492 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8493 (UNSPEC_STXVL): New value.
8494 (UNSPEC_VCLZLSBB): New value.
8495 (UNSPEC_VCTZLSBB): New value.
8496 (UNSPEC_VEXTUBLX): New value.
8497 (UNSPEC_VEXTUHLX): New value.
8498 (UNSPEC_VEXTUWLX): New value.
8499 (UNSPEC_VEXTUBRX): New value.
8500 (UNSPEC_VEXTUHRX): New value.
8501 (UNSPEC_VEXTUWRX): New value.
8502 (UNSPEC_VCMPNEB): New value.
8503 (UNSPEC_VCMPNEZB): New value.
8504 (UNSPEC_VCMPNEH): New value.
8505 (UNSPEC_VCMPNEZH): New value.
8506 (UNSPEC_VCMPNEW): New value.
8507 (UNSPEC_VCMPNEZW): New value.
8508 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8509 vector of integer modes.
8510 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8511 vector of float or double modes.
8512 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8513 zero.
8514 (lxvl): New expand for load VSX vector with length.
8515 (*lxvl): New insn for load VSX vector with length.
8516 (stxvl): New expand for store VSX vector with length.
8517 (*stxvl): New insn for store VSX vector with length.
8518 (vcmpneb): New insn for vector of byte compare not equal.
8519 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8520 (vcmpneh): New insn for vector of half word compare not equal.
8521 (vcmpnezh): New insn for vector of half word compare not equal or
8522 zero.
8523 (vcmpnew): New insn for vector of word compare not equal.
8524 (vcmpne<VSs>): New insn for vector of float or double compare not
8525 equal.
8526 (vcmpnezw): New insn for vector of word compare not equal or zero.
8527 (vclzlsbb): New insn for vector count leading zero
8528 least-significant bits byte.
8529 (vctzlsbb): New insn for vector count trailing zero least
8530 signficant bits byte.
8531 (vextublx): New insn for vector extract unsigned byte left
8532 indexed.
8533 (vextubrx): New insn for vector extract unsigned byte right
8534 indexed.
8535 (vextuhlx): New insn for vector extract unsigned half word left
8536 indexed.
8537 (vextuhrx): New insn for vector extract unsigned half word right
8538 indexed.
8539 (vextuwlx): New insn for vector extract unsigned word left
8540 indexed.
8541 (vextuwrx): New insn for vector extract unsigned word right
8542 indexed.
8543 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8544 clarify intent of this constant.
8545 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8546 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8547 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8548 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8549 and vec_xrx functions.
8550
8551 2016-10-18 Andrew Pinski <apinski@cavium.com>
8552
8553 PR tree-opt/65950
8554 * predict.c (is_exit_with_zero_arg): New function.
8555 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8556 as nottaken.
8557
8558 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8559
8560 PR target/77991
8561 * config/i386/i386.c (legitimize_tls_address)
8562 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8563 convert dest to Pmode if different than Pmode.
8564
8565 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8566
8567 PR tree-optimization/77916
8568 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8569 stopgap fix, as pointers with -1 increment are still broken.
8570
8571 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8572
8573 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8574 mapping class decoration from here...
8575 (rs6000_xcoff_encode_section): ...to here.
8576
8577 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8578 if shrink-wrapping and optimizing for speed.
8579
8580 2016-10-18 Richard Biener <rguenther@suse.de>
8581
8582 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8583 not visited but non-executable predecessors. Return taken edge.
8584 Simplify conditions and refactor propagation vs. folding step.
8585
8586 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8587
8588 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8589 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8590 (rs6000_get_separate_components): Assert we do not have those
8591 strategies selected.
8592
8593 2016-10-18 Richard Biener <rguenther@suse.de>
8594
8595 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8596 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8597 clearing.
8598 (substitute_and_fold_dom_walker): Adjust constructor.
8599 (substitute_and_fold_dom_walker::before_dom_children): Remove
8600 do_dce flag and handling (always true).
8601 (substitute_and_fold): Likewise.
8602 * tree-vrp.c (vrp_finalize): Adjust.
8603 (execute_early_vrp): Remove final BB_VISITED clearing.
8604 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8605 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8606 * ira.c (ira): Call clear_bb_flags.
8607
8608 2016-10-18 Richard Biener <rguenther@suse.de>
8609
8610 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8611 get at the operand to look at with TREE_OPERAND for generic
8612 sub-nodes.
8613
8614 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8615
8616 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8617 copy_md_ptr_loc.
8618 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8619 (write_test_expr): Use rtx_reader_ptr for calls to
8620 fprint_c_condition.
8621 (write_attr_value): Likewise.
8622 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8623 call to print_md_ptr_loc.
8624 (write_one_condition): Likewise for calls to print_c_condition.
8625 * genconstants.c: Include "statistics.h" and "vec.h".
8626 (main): Update for conversion to member functions.
8627 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8628 call to print_md_ptr_loc.
8629 * genenums.c: Include "statistics.h" and "vec.h".
8630 (main): Update for conversion of traverse_enum_types to a method.
8631 * genmddeps.c: Include "statistics.h" and "vec.h".
8632 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8633 print_md_ptr_loc.
8634 * genpreds.c (write_predicate_subfunction): Likewise.
8635 (write_predicate_expr): Likewise for calls to print_c_condition.
8636 * genrecog.c (print_test): Likewise.
8637 * gensupport.c (process_rtx): Likewise for calls to
8638 copy_md_ptr_loc and join_c_conditions.
8639 (alter_test_for_insn): Likewise for call to join_c_conditions.
8640 (process_substs_on_one_elem): Likewise.
8641 (gen_mnemonic_setattr): Update for move of string_obstack to a
8642 field of rtx_reader.
8643 (mnemonic_htab_callback): Likewise. Fix formatting.
8644 (gen_mnemonic_attr): Likewise.
8645 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8646 to print_c_condition.
8647 * read-md.c: Include "statistics.h" and "vec.h".
8648 (string_obstack): Convert this global to field "m_string_obstack"
8649 of class rtx_reader.
8650 (ptr_locs): Likewise, as "m_ptr_locs".
8651 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8652 (joined_conditions): Likewise, as "m_joined_conditions".
8653 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8654 (md_constants): Likewise, as "m_md_constants".
8655 (enum_types): Likewise, as "m_enum_types".
8656 (set_md_ptr_loc): Convert to...
8657 (rtx_reader::set_md_ptr_loc): ...member function.
8658 (get_md_ptr_loc): Convert to...
8659 (rtx_reader::get_md_ptr_loc): ...member function.
8660 (copy_md_ptr_loc): Convert to...
8661 (rtx_reader::copy_md_ptr_loc): ...member function.
8662 (fprint_md_ptr_loc): Convert to...
8663 (rtx_reader::fprint_md_ptr_loc): ...member function.
8664 (print_md_ptr_loc): Convert to...
8665 (rtx_reader::print_md_ptr_loc): ...member function.
8666 (join_c_conditions): Convert to...
8667 (rtx_reader::join_c_conditions): ...member function.
8668 (fprint_c_condition): Convert to...
8669 (rtx_reader::fprint_c_condition): ...member function.
8670 (print_c_condition): Convert to...
8671 (rtx_reader::print_c_condition): ...member function.
8672 (read_name): Convert to...
8673 (rtx_reader::read_name): ...member function.
8674 (read_escape): Convert to...
8675 (rtx_reader::read_escape): ...member function.
8676 (read_quoted_string): Convert to...
8677 (rtx_reader::read_quoted_string): ...member function.
8678 (read_braced_string): Convert to...
8679 (rtx_reader::read_braced_string): ...member function.
8680 (read_string): Convert to...
8681 (rtx_reader::read_string): ...member function.
8682 (read_skip_construct): Convert to...
8683 (rtx_reader::read_skip_construct): ...member function.
8684 (handle_constants): Convert to...
8685 (rtx_reader::handle_constants): ...member function.
8686 (traverse_md_constants): Convert to...
8687 (rtx_reader::traverse_md_constants): ...member function.
8688 (handle_enum): Convert to...
8689 (rtx_reader::handle_enum): ...member function.
8690 (lookup_enum_type): Convert to...
8691 (rtx_reader::lookup_enum_type): ...member function.
8692 (traverse_enum_types): Convert to...
8693 (rtx_reader::traverse_enum_types): ...member function.
8694 (rtx_reader::rtx_reader): Move initializations
8695 of various former global data from rtx_reader::read_md_files to
8696 here, as fields, along with the call to unlock_std_streams.
8697 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8698 the new fields.
8699 (rtx_reader::read_md_files): Move initializations of various
8700 global data from here to the ctor.
8701 * read-md.h (read_name): Convert to...
8702 (rtx_reader::read_name): ...member function.
8703 (rtx_reader::read_escape): New method decl.
8704 (read_quoted_string): Convert to...
8705 (rtx_reader::read_quoted_string): ...member function.
8706 (rtx_reader::read_braced_string): New method decl.
8707 (read_string): Convert to...
8708 (rtx_reader::read_string): ...member function.
8709 (rtx_reader::read_skip_construct): New method decl.
8710 (rtx_reader::set_md_ptr_loc): New method decl.
8711 (rtx_reader::get_md_ptr_loc): New method decl.
8712 (copy_md_ptr_loc): Convert to...
8713 (rtx_reader::copy_md_ptr_loc): ...member function.
8714 (fprint_md_ptr_loc): Convert to...
8715 (rtx_reader::fprint_md_ptr_loc): ...member function.
8716 (print_md_ptr_loc): Convert to...
8717 (rtx_reader::print_md_ptr_loc): ...member function.
8718 (rtx_reader::lookup_enum_type): New method decl.
8719 (rtx_reader::traverse_enum_types): New method decl.
8720 (rtx_reader::handle_constants): New method decl.
8721 (traverse_md_constants): Convert to...
8722 (rtx_reader::traverse_md_constants): ...member function.
8723 (rtx_reader::handle_enum): New method decl.
8724 (rtx_reader::join_c_conditions): New method decl.
8725 (fprint_c_condition): Convert to...
8726 (rtx_reader::fprint_c_condition): ...member function.
8727 (print_c_condition): Convert to...
8728 (rtx_reader::print_c_condition): ...member function.
8729 (rtx_reader::apply_iterator_to_string): New method decl.
8730 (rtx_reader::copy_rtx_for_iterators): New method decl.
8731 (rtx_reader::read_conditions): New method decl.
8732 (rtx_reader::record_potential_iterator_use): New method decl.
8733 (rtx_reader::read_mapping): New method decl.
8734 (rtx_reader::read_rtx): New method decl.
8735 (rtx_reader::read_rtx_code): New method decl.
8736 (rtx_reader::read_rtx_operand): New method decl.
8737 (rtx_reader::read_nested_rtx): New method decl.
8738 (rtx_reader::read_rtx_variadic): New method decl.
8739 (rtx_reader::get_string_obstack): New method.
8740 (rtx_reader::get_md_constants): New method.
8741 (string_obstack): Convert global variable decl to...
8742 (rtx_reader::m_string_obstack): ...this new field.
8743 (rtx_reader::m_ptr_locs): New field.
8744 (rtx_reader::m_ptr_loc_obstack): New field.
8745 (rtx_reader::m_joined_conditions): New field.
8746 (rtx_reader::m_joined_conditions_obstack): New field.
8747 (rtx_reader::m_md_constants): New field.
8748 (rtx_reader::m_enum_types): New field.
8749 * read-rtl.c (apply_iterator_to_string): Convert to...
8750 (rtx_reader::apply_iterator_to_string): ...member function.
8751 (copy_rtx_for_iterators): Convert to...
8752 (rtx_reader::copy_rtx_for_iterators): ...member function.
8753 (add_condition_to_string): Use rtx_reader_ptr for
8754 calls join_c_conditions.
8755 (apply_iterators): Use rtx_reader_ptr for calls to
8756 join_c_conditions and copy_rtx_for_iterators.
8757 (read_conditions): Convert to...
8758 (rtx_reader::read_conditions): ...member function.
8759 (record_potential_iterator_use): Convert to...
8760 (rtx_reader::record_potential_iterator_use): ...member function.
8761 (read_mapping): Convert to...
8762 (rtx_reader::read_mapping): ...member function.
8763 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8764 (read_rtx): Convert to...
8765 (rtx_reader::read_rtx): ...member function.
8766 (read_rtx_code): Convert to...
8767 (rtx_reader::read_rtx_code): ...member function.
8768 (read_rtx_operand): Convert to...
8769 (rtx_reader::read_rtx_operand): ...member function. Update for move
8770 of string_obstack to a field.
8771 (read_nested_rtx): Convert to..
8772 (rtx_reader::read_nested_rtx): ...member function.
8773 (read_rtx_variadic): Convert to..
8774 (rtx_reader::read_rtx_variadic): ...member function.
8775
8776 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8777
8778 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8779
8780 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8781
8782 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8783 for pointer type too.
8784 (ipcp_update_vr): set_ptr_nonnull for pointer.
8785
8786 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8787
8788 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8789 pt_solution_singleton_p.
8790 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
8791 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
8792 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
8793 pointer nonnull computed by VRP.
8794 Also Conservatively set pt.null to 1.
8795 (pt_solution_reset): Conservatively set pt.null to 1.
8796 (pt_solution_singleton_or_null_p): Renamed from
8797 pt_solution_singleton_p.
8798 * tree-ssanames.h (set_ptr_nonnull): Declare.
8799 (get_ptr_nonnull): Likewise.
8800 * tree-ssanames.c (set_ptr_nonnull): New.
8801 (get_ptr_nonnull): Likewise.
8802 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
8803 (evrp_dom_walker::before_dom_children): Likewise.
8804
8805 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8806
8807 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8808 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8809 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8810 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8811 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
8812 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
8813 (rs6000_option_override_internal): Clear it if ABI_AIX.
8814 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
8815 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
8816
8817 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8818
8819 * gimple-ssa-strength-reduction.c (record_increment): Remove
8820 garbage comment.
8821
8822 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8823
8824 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
8825 that the result is non-zero if it is true.
8826 (maybe_expand_shift): New wrapper around expand_shift_1.
8827 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
8828
8829 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8830
8831 PR tree-optimization/77916
8832 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
8833 Don't allow a MINUS_EXPR for pointer arithmetic for either known
8834 or unknown strides.
8835 (record_increment): Increments of -1 for unknown strides just use
8836 a multiply initializer like other negative values.
8837 (analyze_increments): Remove stopgap solution for -1 increment
8838 applied to pointer arithmetic.
8839
8840 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
8841
8842 * dominance.c (dom_info::dom_info): Add new constructor for region
8843 which is vector of basic blocks.
8844 (dom_init): New method to initialize members common for both
8845 constructors.
8846 (dom_info::dom_info): Invoke dom_init for partial initialization.
8847 (dom_info::get_idom): Add check to corner cases on basic blocks which
8848 are not in region.
8849 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
8850 to detect unreachable bbs.
8851 (dom_info::calc_idoms): Likewise.
8852 (compute_dom_fast_query_in_region): New function.
8853 (calculate_dominance_info_for_region): Likewise.
8854 (free_dominance_info_for_region): Likewise.
8855 * dominance.h: Add prototypes for introduced region-based functions
8856 * tree-if-conv.c (build_region): New function.
8857 (if_convertible_loop_p_1): Invoke local version of post-dominators
8858 calculation before basic block predication with subsequent freeing
8859 post-dominator info.
8860 (tree_if_conversion): Remove free of post-dominator info
8861 (pass_if_conversion::execute): Delete detection of infinite loops
8862 and fake edges to exit block since post-dominator calculation is
8863 performed per if-converted loop only.
8864
8865 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
8866
8867 PR target/77308
8868 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8869 register explicitly.
8870 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
8871 optimizing for size.
8872
8873 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8874
8875 * config/aarch64/aarch64.c: Delete inclusion of
8876 cortex-a57-fma-steering.h.
8877 (aarch64_override_options): Delete call
8878 to aarch64_register_fma_steering.
8879 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
8880 * config/aarch64/cortex-a57-fma-steering.h: Delete.
8881 * config/aarch64/aarch64-passes.def: New file.
8882 * config/aarch64/cortex-a57-fma-steering.c
8883 (aarch64_register_fma_steering): Delete definition.
8884 (make_pass_fma_steering): Remove static qualifier.
8885 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
8886 (cortex-a57-fma-steering.o): Remove dependency on
8887 cortex-a57-fma-steering.h.
8888
8889 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
8890
8891 * explow.c (validize_mem): Do not modify the argument in-place.
8892
8893 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
8894
8895 * tree-streamer.c (record_common_node): Explicitly list expected
8896 tree codes.
8897
8898 2016-10-17 Richard Biener <rguenther@suse.de>
8899
8900 PR tree-optimization/77988
8901 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
8902
8903 2016-10-17 Marek Polacek <polacek@redhat.com>
8904
8905 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
8906
8907 2016-10-17 Richard Biener <rguenther@suse.de>
8908
8909 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
8910 before using it.
8911
8912 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8913
8914 PR tree-optimization/71636
8915 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
8916
8917 2016-10-17 Richard Biener <rguenther@suse.de>
8918
8919 * gimplify.c (gimplify_function_tree): Do not move the outer
8920 binds block.
8921
8922 2016-10-17 Jakub Jelinek <jakub@redhat.com>
8923
8924 * langhooks.h (struct lang_hooks_for_decls): Remove
8925 function_decl_explicit_p, function_decl_deleted_p and
8926 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
8927 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
8928 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8929 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
8930 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
8931 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
8932 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
8933 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
8934 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
8935 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
8936 * langhooks.c (lhd_decl_dwarf_attribute): New function.
8937 * dwarf2out.c (gen_subprogram_die): Use
8938 lang_hooks.decls.decl_dwarf_attribute instead of
8939 lang_hooks.decls.function_decl_*.
8940
8941 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8942
8943 PR ada/37139
8944 PR ada/67205
8945 * common.opt (-ftrampolines): New option.
8946 * doc/invoke.texi (Code Gen Options): Document it.
8947 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
8948 * doc/tm.texi: Regenerate.
8949 * builtins.def: Add init_descriptor and adjust_descriptor.
8950 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8951 on platforms with descriptors.
8952 (expand_builtin_init_descriptor): New function.
8953 (expand_builtin_adjust_descriptor): Likewise.
8954 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8955 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8956 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8957 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8958 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8959 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8960 (expand_call): Likewise. Move around call to prepare_call_address
8961 and pass all flags to it.
8962 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8963 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8964 (gimple_call_set_by_descriptor): New setter.
8965 (gimple_call_by_descriptor_p): New getter.
8966 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8967 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8968 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8969 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8970 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8971 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8972 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8973 * target.def (custom_function_descriptors): New POD hook.
8974 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8975 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8976 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8977 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8978 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8979 (build_common_builtin_nodes): Initialize init_descriptor and
8980 adjust_descriptor.
8981 * tree-nested.c: Include target.h.
8982 (struct nesting_info): Add 'any_descr_created' field.
8983 (get_descriptor_type): New function.
8984 (lookup_element_for_decl): New function extracted from...
8985 (create_field_for_decl): Likewise.
8986 (lookup_tramp_for_decl): ...here. Adjust.
8987 (lookup_descr_for_decl): New function.
8988 (convert_tramp_reference_op): Deal with descriptors.
8989 (build_init_call_stmt): New function extracted from...
8990 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8991 * defaults.h (FUNCTION_ALIGNMENT): Define.
8992 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8993 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8994 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8995 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8996 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8997
8998 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8999
9000 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9001 constants in CONST_VECTORs.
9002
9003 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9004
9005 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9006 register as destination of bmask.
9007 (vector_init_bshuffle): Likewise.
9008 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9009 (bmaskdi_vis): Enable only in 64-bit mode.
9010
9011 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9012
9013 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9014 make LR a separately shrink-wrapped component unless savres_strategy
9015 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9016 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9017 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9018
9019 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9020
9021 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9022 and keep looping on failure.
9023
9024 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9025
9026 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9027 set.
9028 (print_rtx_function): Update example in comment for...
9029 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9030 non-virtual pseudos with a '%' sigil followed by the regno, offset
9031 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9032 pseudo is dumped as "%0".
9033
9034 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9035
9036 PR middle-end/77959
9037 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9038 return a MEM.
9039
9040 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9041
9042 * config/sparc/sparc-passes.def: New file.
9043 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9044 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9045 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9046
9047 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9048
9049 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9050 loop peel to loops with exit test at the beginning.
9051
9052 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9053
9054 PR rtl-optimization/68212
9055 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9056 frequency when computing scale factor for peeled copies.
9057 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9058 values for switch/peel blocks/edges.
9059
9060 2016-10-14 Pedro Alves <palves@redhat.com>
9061
9062 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9063
9064 2016-10-14 Catherine Moore <clm@codesourcery.com>
9065
9066 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9067 micromips_globals to zero.
9068
9069 2016-10-14 Richard Biener <rguenther@suse.de>
9070
9071 PR tree-optimization/77979
9072 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9073 in the equivalency sets.
9074 (compare_names): Likewise.
9075
9076 2016-10-14 Martin Liska <mliska@suse.cz>
9077
9078 * builtins.h(target_char_cst_p): Declare the function.
9079 * builtins.c (fold_builtin_memchr): Remove.
9080 (target_char_cst_p): Move the function from gimple-fold.c.
9081 (fold_builtin_3): Do not call the function.
9082 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9083 (gimple_fold_builtin): Call the function.
9084 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9085
9086 2016-10-14 Martin Liska <mliska@suse.cz>
9087
9088 * builtins.c (fold_builtin_strcmp): Remove function.
9089 (fold_builtin_strncmp): Likewise.
9090 (fold_builtin_2): Remove call of the function.
9091 (fold_builtin_3): Likewise.
9092 * fold-const-call.c (fold_const_call): Add constant folding
9093 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9094 * fold-const-call.h (build_cmp_result): Declare the function.
9095 * gimple-fold.c (gimple_load_first_char): New function.
9096 (gimple_fold_builtin_string_compare): Likewise.
9097 (gimple_fold_builtin): Call the function.
9098
9099 2016-10-14 Nathan Sidwell <nathan@acm.org>
9100
9101 * gcov-io.c (gcov_open): Deconstify 'mode'.
9102
9103 2016-10-14 Martin Liska <mliska@suse.cz>
9104
9105 * fold-const.c (c_getstr): Support of properly \0-terminated
9106 string constants. New argument is added.
9107 * fold-const.h: New argument is added.
9108
9109 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9110
9111 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9112 New function.
9113 (aarch64_print_hint_for_core): Likewise.
9114 (aarch64_print_hint_for_arch): Likewise.
9115 (aarch64_validate_march): Use it. Fix indentation in type signature.
9116 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9117 (aarch64_validate_mtune): Likewise.
9118 (aarch64_handle_attr_arch): Likewise.
9119 (aarch64_handle_attr_cpu): Likewise.
9120 (aarch64_handle_attr_tune): Likewise.
9121
9122 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9123
9124 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9125 and udivmod_optab.
9126
9127 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9128
9129 * config/m68k/m68k.c (m68k_option_override): Check
9130 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9131 instead of stack_limit_rtx.
9132
9133 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9134
9135 * dwarf2out.c (gen_member_die): Handle inline static data member
9136 definitions.
9137
9138 2016-10-13 Nathan Sidwell <nathan@acm.org>
9139
9140 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9141 gcov_var.mode. Remove unnecessary fstat.
9142
9143 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9144
9145 PR bootstrap/77962
9146 * function.c (thread_prologue_and_epilogue_insns): Call all
9147 make_*logue_seq in the same order as traditional. Call them
9148 all a second time if shrink_wrapped_separate.
9149
9150 2016-10-13 Marek Polacek <polacek@redhat.com>
9151
9152 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9153 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9154 use -Wno-error.
9155
9156 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9157
9158 PR tree-optimization/77937
9159 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9160 to infinite when we have a pointer with an increment of -1.
9161
9162 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9163
9164 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9165 into ...
9166 * memmodel.h: This file.
9167 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9168 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9169 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9170 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9171 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9172 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9173 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9174 compare-elim.c, config/aarch64/aarch64-builtins.c,
9175 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9176 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9177 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9178 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9179 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9180 config/darwin.c, config/epiphany/epiphany.c,
9181 config/epiphany/mode-switch-use.c,
9182 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9183 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9184 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9185 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9186 config/m68k/m68k.c, config/mcore/mcore.c,
9187 config/microblaze/microblaze.c, config/mmix/mmix.c,
9188 config/mn10300/mn10300.c, config/moxie/moxie.c,
9189 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9190 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9191 config/nds32/nds32-memory-manipulation.c,
9192 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9193 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9194 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9195 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9196 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9197 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9198 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9199 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9200 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9201 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9202 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9203 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9204 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9205 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9206 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9207 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9208 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9209 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9210 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9211 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9212 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9213 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9214 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9215 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9216 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9217 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9218 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9219 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9220 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9221 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9222 var-tracking.c, varasm.c: Include memmodel.h.
9223 * genattrtab.c (write_header): Include memmodel.h in generated file.
9224 * genautomata.c (main): Likewise.
9225 * gengtype.c (open_base_files): Likewise.
9226 * genopinit.c (main): Likewise.
9227 * genconditions.c (write_header): Include memmodel.h earlier in
9228 generated file.
9229 * genemit.c (main): Likewise.
9230 * genoutput.c (output_prologue): Likewise.
9231 * genpeep.c (main): Likewise.
9232 * genpreds.c (write_insn_preds_c): Likewise.
9233 * genrecog.c (write_header): Likewise.
9234 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9235
9236 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9237
9238 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9239 for new "compact" param of print_rtx_function. Check for "cinsn"
9240 rather than "insn".
9241 * print-rtl-function.c (flag_compact): New decl.
9242 (print_rtx_function): Add param "compact" and use it to set
9243 flag_compact, adding a description of the effect to the leading
9244 comment, and updating the example output.
9245 * print-rtl.c (flag_compact): New variable.
9246 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9247 mode.
9248 (print_rtx_operand_code_i): When printing source locations, wrap
9249 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9250 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9251 virtuals in compact mode.
9252 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9253 apart from in LABEL_REFs.
9254 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9255 Don't print basic block ids in compact mode.
9256 (print_rtx): In compact mode, prefix the code of insns with "c",
9257 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9258 * print-rtl.h (print_rtx_function): Add "compact" param.
9259
9260 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9261
9262 * arm.h (TARGET_VFP): Delete.
9263 (TARGET_VFPD32): Remove references to TARGET_VFP.
9264 (TARGET_VFP3, TARGET_VFP5): Likewise.
9265 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9266 (TARGET_NEON_FP16): Likewise.
9267 (TARGET_FMA): Likewise.
9268 (TARGET_CRYPTO): Likewise.
9269 (TARGET_NEON): Likewise.
9270 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9271 (FUNCTION_ARG_REGNO_P): Likewise.
9272 * arm.c (arm_option_check_internal): Likewise.
9273 (arm_option_override): Likewise.
9274 (use_return_insn): Likewise.
9275 (arm_function_value_regno_p): Likewise.
9276 (arm_apply_result_size): Likewise.
9277 (use_vfp_abi): Likewise.
9278 (arm_legitimate_address_outer_p): Likewise.
9279 (thumb2_legitimate_address_p): Likewise.
9280 (arm_legitimate_index_p): Likewise.
9281 (thumb2_legitimate_index_p): Likewise.
9282 (arm_legitimate_address): Likewise.
9283 (arm_get_vfp_saved_size): Likewise.
9284 (arm_emit_vfp_multi_reg_pop): Likewise.
9285 (arm_get_frame_offsets): Likewise.
9286 (arm_save_coproc_regs): Likewise.
9287 (arm_hard_regno_mode_ok): Likewise.
9288 (arm_expand_epilogue_apcs_frame): Likewise.
9289 (arm_expand_epilogue): Likewise.
9290 (arm_file_start): Likewise.
9291 (arm_conditional_register_usage): Likewise.
9292 (arm_validize_comparison): Use vfp_compare_operand directly.
9293 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9294 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9295 unsupported usage.
9296 (arm_atomic_assign_expand_fenv): Likewise.
9297 * arm.md (divsf3): Likewise.
9298 (arm_negsi2): Likewise.
9299 (absdf2): Likewise.
9300 (arm_movdi): Likewise.
9301 (arm_movt): Likewise.
9302 (cbranchsf4): Change predicate to vfp_compare_operand.
9303 (cbranchdf4): Change predicate to vfp_compare_operand.
9304 (cstorehf4): Change predicate to vfp_compare_operand.
9305 (cstoresf4): Change predicate to vfp_compare_operand.
9306 (cstoredf4): Change predicate to vfp_compare_operand.
9307 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9308 (movhi_insn_arch4, movhi_bytes): Likewise.
9309 * constraints.md (Dt): Likewise.
9310 (Dp): Likewise.
9311 * iterators.md (SDF): Likewise.
9312 * predicates.md (arm_float_compare_operand): Delete.
9313 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9314 TARGET_VFP.
9315 (const_double_vcvt_power_of_two): Likewise.
9316 * thumb2.md thumb2_movsi_insn): Likewise.
9317 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9318 (movhf_vfp): Likewise.
9319 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9320 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9321 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9322 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9323 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9324 (subsf3_vfp, divsf3_vfp): Likewise.
9325 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9326 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9327 (mulsf3negsfsubsf_vfp): Likewise.
9328 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9329 (floatunssisf2, sqrtsf2_vfp): Likewise.
9330 (movcc_vfp): Likewise.
9331 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9332 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9333 (push_multi_vfp): Likewise.
9334 (set_fpscr, get_fpscr): Likewise.
9335 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9336
9337 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9338
9339 * arm.h (TARGET_VFP): Unconditionally define to 1.
9340 (arm_fpu_desc): Remove 'model' field.
9341 (TARGET_FPU_MODEL): Delete.
9342 * arm.c (all_fpus): Don't initialize the model field.
9343 (arm_can_inline_p): Don't check the FPU model.
9344 * arm-fpus.def: Remove redundant model field from all FPU
9345 descriptions.
9346
9347 2016-10-13 Richard Biener <rguenther@suse.de>
9348
9349 PR middle-end/77826
9350 * genmatch.c (struct capture): Add value_match member.
9351 (commutate): Preserve value_match.
9352 (lower_opt_convert): Likewise.
9353 (lower_cond): Likewise.
9354 (replace_id): Likewise.
9355 (struct dt_operand): Add value_match member.
9356 (decision_tree::cmp_node): Compare it.
9357 (decision_tree::insert_operand): Honor it when finding and
9358 when appending a DT_MATCH.
9359 (dt_operand::gen_match_op): Generate a type check after
9360 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9361 (parser::get_internal_capture_id): New helper.
9362 (parser::finish_match_operand): New function lowering @@<id>.
9363 (parser::parse_capture): Parse @@<id> as value-match.
9364 (parser::parse_expr): Use get_internal_capture_id.
9365 (parser::parse_simplify): Call finish_match_operand.
9366 (walk_captures): New helper.
9367 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9368 of operand_equal_p.
9369 ((X /[ex] A) * A -> X): Likewise.
9370 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9371 convert[12] and value-matching.
9372 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9373 ((X | Y) | Y -> X | Y): Likewise.
9374 ((X ^ Y) ^ Y -> X): Likewise.
9375 (A - (A & B) -> ~B & A): Likewise.
9376 ((T)(P + A) - (T)P -> (T) A): Likewise.
9377 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9378 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9379 * doc/match-and-simplify.texi: Amend capture section.
9380
9381 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9382
9383 * config/arc/arc.md (umul_600): Remove predicated variant.
9384 (umul64_600): Likewise.
9385
9386 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9387
9388 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9389
9390 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9391
9392 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9393 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9394 no-overflow information to vect_do_peeling_for_loop_bound and
9395 vect_gen_vector_loop_niters.
9396
9397 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9398
9399 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9400 iterates 1 time.
9401
9402 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9403
9404 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9405 adjust_vec automatically.
9406 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9407 param exit_bb to guard_to.
9408 (slpeel_checking_verify_cfg_after_peeling):
9409 (set_prologue_iterations):
9410 (create_lcssa_for_virtual_phi): New func which is factored out from
9411 slpeel_tree_peel_loop_to_edge.
9412 (slpeel_tree_peel_loop_to_edge):
9413 (iv_phi_p): New func.
9414 (vect_can_advance_ivs_p): Call iv_phi_p.
9415 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9416 new gimple stmts in basic block.
9417 (vect_gen_niters_for_prolog_loop): Rename to...
9418 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9419 adjust implementation.
9420 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9421 sizetype if necessary.
9422 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9423 it to external function.
9424 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9425 (vect_gen_vector_loop_niters_mult_vf): New.
9426 (slpeel_update_phi_nodes_for_loops): New.
9427 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9428 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9429 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9430 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9431 tree-vect-loop-manip.c
9432 (vect_generate_tmps_on_preheader): Delete.
9433 (vect_transform_loop): Rename vectorization_factor to vf. Call
9434 vect_do_peeling instead of vect_do_peeling-* functions.
9435 * tree-vectorizer.h (vect_do_peeling): New decl.
9436 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9437 (vect_do_peeling_for_loop_bound): Delete.
9438 (vect_do_peeling_for_alignment): Delete.
9439
9440 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9441
9442 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9443 duplicated loop after its preheader and after the original loop.
9444
9445 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9446
9447 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9448 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9449
9450 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9451
9452 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9453 for live variable outside loop but not in lcssa form.
9454
9455 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9456
9457 * cfg.c (reset_original_copy_tables): New func.
9458 * cfg.h (reset_original_copy_tables): New decl.
9459
9460 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9461
9462 PR c/77946
9463 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9464 public_flag.
9465 * varasm.c (default_binds_local_p_3): Formatting fix.
9466
9467 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9468
9469 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9470 style issue.
9471 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9472 Remove useless code.
9473
9474 2016-10-13 Martin Liska <mliska@suse.cz>
9475
9476 PR tree-optimization/77943
9477 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9478 a different EH landing pads.
9479
9480 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9481
9482 PR target/77957
9483 * hooks.h (hook_tree_void_null): Declare.
9484 * hooks.c (hook_tree_void_null): New function.
9485 * langhooks.c (lhd_return_null_tree_v): Remove.
9486 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9487 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9488 set y to const0_rtx.
9489 * function.c (stack_protect_epilogue): Likewise.
9490 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9491 if TARGET_THREAD_SSP_OFFSET is defined.
9492 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9493 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9494 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9495 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9496 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9497 (ix86_stack_protect_guard): New function.
9498
9499 2016-10-13 Richard Biener <rguenther@suse.de>
9500
9501 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9502 rtl_for_decl_init during early phase.
9503 (gen_variable_die): Do not create locations during early phase.
9504 (gen_label_die): Likewise.
9505 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9506 twice.
9507
9508 2016-10-12 Richard Biener <rguenther@suse.de>
9509
9510 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9511 try_add_new_range and made to eturn new range.
9512 (evrp_dom_walker::before_dom_children): Push op1 value range before
9513 pushing op0 value range.
9514
9515 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9516
9517 PR tree-optimization/77937
9518 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9519 POINTER_TYPE_P on the candidate type to determine whether
9520 candidates in this chain require pointer arithmetic.
9521
9522 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9523
9524 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9525 correction if the type is smaller than a word.
9526 (visium_select_cc_mode): Add ... fall through ... comment.
9527
9528 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9529
9530 * config/rs6000/rs6000.c (machine_function): Add new fields
9531 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9532 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9533 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9534 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9535 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9536 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9537 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9538 (rs6000_get_separate_components): New function.
9539 (rs6000_components_for_bb): New function.
9540 (rs6000_disqualify_components): New function.
9541 (rs6000_emit_prologue_components): New function.
9542 (rs6000_emit_epilogue_components): New function.
9543 (rs6000_set_handled_components): New function.
9544 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9545 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9546 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9547 (rs6000_emit_epilogue): Don't emit GPR restores if
9548 gpr_is_wrapped_separately for that register. Don't make a
9549 REG_CFA_RESTORE note for registers we did not restore, either.
9550
9551 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9552
9553 * function.c (thread_prologue_and_epilogue_insns): Call
9554 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9555 if it has possibly changed. Compute the split_prologue_seq and
9556 epilogue_seq later, too.
9557 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9558 (dump_components): New function.
9559 (struct sw): New struct.
9560 (SW): New function.
9561 (init_separate_shrink_wrap): New function.
9562 (fini_separate_shrink_wrap): New function.
9563 (place_prologue_for_one_component): New function.
9564 (spread_components): New function.
9565 (disqualify_problematic_components): New function.
9566 (emit_common_heads_for_components): New function.
9567 (emit_common_tails_for_components): New function.
9568 (insert_prologue_epilogue_for_components): New function.
9569 (try_shrink_wrapping_separate): New function.
9570 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9571
9572 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9573
9574 * regrename.c (build_def_use): Invalidate chains that have a
9575 REG_CFA_RESTORE on some instruction.
9576
9577 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9578
9579 * dce.c (delete_unmarked_insns): Don't delete instructions with
9580 a REG_CFA_RESTORE note.
9581
9582 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9583
9584 * common.opt (-fshrink-wrap-separate): New flag.
9585 * doc/invoke.texi: Document it.
9586 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9587 * doc/tm.texi: Regenerate.
9588 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9589 * target.def (shrink_wrap): New hook vector.
9590 (get_separate_components, components_for_bb, disqualify_components,
9591 emit_prologue_components, emit_epilogue_components,
9592 set_handled_components): New hooks.
9593
9594 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9595
9596 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9597 vector return by reference only if -Wpsabi.
9598 (rs6000_pass_by_reference): Similarly, for argument passing.
9599
9600 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9601
9602 * function-tests.c: Include "print-rtl.h".
9603 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9604 function, and verify what is dumped.
9605 * print-rtl-function.c (print_edge): New function.
9606 (begin_any_block): New function.
9607 (end_any_block): New function.
9608 (can_have_basic_block_p): New function.
9609 (print_rtx_function): Track the basic blocks of insns in the
9610 chain, wrapping those that are within blocks within "(block)"
9611 directives. Remove the "(cfg)" directive.
9612
9613 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9614
9615 * selftest.c (selftest::read_file): New function.
9616 (selftest::test_read_file): New function.
9617 (selftest::selftest_c_tests): Call test_read_file.
9618 * selftest.h (selftest::read_file): New decl.
9619
9620 2016-10-12 Richard Biener <rguenther@suse.de>
9621
9622 PR debug/77947
9623 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9624 function context.
9625
9626 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9627
9628 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9629
9630 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9631 dwarf2out_assembly_start.
9632
9633 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9634
9635 * Makefile.in (SELFTEST_FLAGS): New variable.
9636 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9637
9638 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9639 early_finish hook.
9640
9641 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9642
9643 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9644 dumped in RTL dumps.
9645
9646 2016-10-12 Martin Liska <mliska@suse.cz>
9647
9648 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9649 (gimple_fold_builtin_memory_op): Use the function.
9650 (gimple_fold_builtin_strchr): Likewise.
9651 (gimple_fold_builtin_strcat): Likewise.
9652 (gimple_build): Likewise.
9653
9654 2016-10-12 Nathan Sidwell <nathan@acm.org>
9655
9656 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9657
9658 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9659
9660 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9661 equivalent 32-bit constant (modulo 2**32) when that yields
9662 smaller instructions.
9663 (size_of_int_loc_descriptor): Update accordingly.
9664
9665 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9666
9667 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9668 functions, call dwarf2out_decl on the parent function first.
9669
9670 2016-10-12 Richard Biener <rguenther@suse.de>
9671
9672 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9673 on the conversion.
9674
9675 2016-10-12 Richard Biener <rguenther@suse.de>
9676
9677 * tree-ssa-propagate.c
9678 (substitute_and_fold_dom_walker::before_dom_children): Do not
9679 ignore ASSERT_EXPRs but only preserve them.
9680 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9681 that have been propagated into.
9682 (vrp_finalize): Enable DCE for substitute_and_fold.
9683
9684 2016-10-12 Richard Biener <rguenther@suse.de>
9685
9686 PR tree-optimization/77920
9687 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9688 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9689 (simplify_abs_using_ranges): Likewise.
9690 (simplify_conversion_using_ranges): Likewise.
9691 (simplify_stmt_using_ranges): Adjust.
9692
9693 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9694
9695 PR tree-optimization/77929
9696 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9697 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9698
9699 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9700
9701 PR target/77934
9702 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9703 needs a base register for arg 1.
9704
9705 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9706
9707 * common.opt (Wimplicit-fallthrough) Turn into alias to
9708 -Wimplicit-fallthrough=3. Remove EnabledBy.
9709 (Wimplicit-fallthrough=): New option.
9710 * gimplify.c (warn_implicit_fallthrough_r): Use
9711 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9712 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9713 to -Wimplicit-fallthrough=3.
9714 (-Wimplicit-fallthrough=): Document.
9715
9716 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9717
9718 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9719 and GEU in DImode if TARGET_SUBXC.
9720 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9721 (seqdi<W:mode>_zero_subxc): Delete.
9722 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9723 (neg_seqdi<W:mode>_zero_vis3): Delete.
9724 (plus_seqdi<W:mode>_zero): Likewise.
9725 (minus_seqdi<W:mode>_zero): Likewise.
9726 (plus_plus_sltu<W:mode>): Accept only register.
9727 (addx<W:mode>): Likewise.
9728 (plus_sltu<W:mode>_vis3): Likewise.
9729 (plus_plus_sltu<W:mode>_vis3): Likewise.
9730 (neg_sgeu<W:mode>_vis3): Delete.
9731 (minus_sgeu<W:mode>_vis3): Likewise.
9732 (addxc<W:mode>): Accept only registers.
9733 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9734 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9735 (neg_plus_sltu<W:mode>_subxc): Likewise.
9736 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9737 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9738 (sgeu<W:mode>_insn_subxc): Delete.
9739 (plus_sgeu<W:mode>_subxc): Likewise.
9740 (subxc<W:mode>): Accept only register.
9741 (scc splitter): Split always GEU again.
9742
9743 2016-10-11 Jeff Law <law@redhat.com>
9744
9745 PR tree-optimization/77424
9746 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9747 dead conditionals. Assert that all e->aux fields are NULL.
9748
9749 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9750
9751 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9752 operand-printing "switch" statement into...
9753 (print_rtx_operand_code_0): ...this new function, ...
9754 (print_rtx_operand_code_e): ...this new function, ...
9755 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9756 (print_rtx_operand_code_i): ...this new function, ...
9757 (print_rtx_operand_code_r): ...this new function, ...
9758 (print_rtx_operand_code_u): ...this new function, ...
9759 (print_rtx_operand): ...and this new function.
9760
9761 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9762
9763 * config/alpha/alpha-passes.def: New file.
9764 * config/alpha/t-alpha: New file.
9765 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9766 (make_pass_handle_trap_shadows): New prototype.
9767 (make_pass_align_insns): Ditto.
9768 * config/alpha/alpha.c (alpha_option_override): Don't register
9769 passes here.
9770 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9771
9772 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9773
9774 PR target/77924
9775 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9776 distinct __ibm128 IBM extended double type if long doubles are
9777 128-bits and the default format for long double is IEEE 128-bit.
9778
9779 2016-10-11 Richard Biener <rguenther@suse.de>
9780
9781 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9782 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9783 (verify_die): New function.
9784 (dwarf2out_finish): Call it.
9785 (output_line_info): Handle case of -gsplit-dwarf without
9786 DWARF2_ASM_LINE_DEBUG_INFO.
9787
9788 2016-10-11 Richard Biener <rguenther@suse.de>
9789
9790 PR debug/77931
9791 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
9792 sub-chains of BLOCK_VARS and gimple_bind_vars.
9793
9794 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9795
9796 * config/i386/znver1.md : Fix imov/imovx load type reservations.
9797
9798 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9799
9800 * config/sparc/sparc.opt (msubxc): New option.
9801 * doc/invoke.texi (SPARC options): Document it and tidy up.
9802 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
9803 * doc/tm.texi: Regenerate.
9804 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
9805 (CCNZ): ...this.
9806 (CCX_NOOV): Rename into...
9807 (CCXNZ): ...this.
9808 (CCC): New.
9809 (CCXC): Likewise.
9810 * config/sparc/predicates.m (fcc_register_operand): Simplify.
9811 (fcc0_register_operand): Likewise.
9812 (icc_register_operand): New.
9813 (icc_or_fcc_register_operand): Simplify.
9814 (nz_comparison_operator): New.
9815 (c_comparison_operator): Likewise.
9816 (noov_compare_operator): Rename into...
9817 (icc_comparison_operator): ...this. Use above predicates.
9818 (noov_compare64_operator): Rename into...
9819 (v9_comparison_operator): ...this and tidy up.
9820 (fcc_comparison_operator): New.
9821 (icc_or_fcc_comparison_operator): Likewise.
9822 (v9_register_compare_operator): Rename info...
9823 (v9_register_comparison_operator): ...this.
9824 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9825 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
9826 for Niagara-7.
9827 (sparc_fixed_condition_code_regs): New function.
9828 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
9829 renaming and add support for CCC/CCXC.
9830 (output_cbranch): Likewise.
9831 (sparc_print_operand): Likewise.
9832 (gen_v9_scc): Remove obsolete assertion.
9833 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
9834 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
9835 (output_cbcond): Remove bogus handling of CC modes.
9836 (sparc_register_move_cost): Return 100 for NO_REGS.
9837 * config/sparc/sparc.md (W): New mode iterator.
9838 (length): Adjust for noov_compare64_operator renaming.
9839 (cmpsi_sne): New instruction.
9840 (cmpdi_sne): Likewise.
9841 (seqdi_special): Delete.
9842 (seqdi_special): Likewise.
9843 (snesi<P:mode>_special): Likewise.
9844 (snedi_special): Likewise.
9845 (snedi_special_vis3): Likewise.
9846 (snesi patterns): Use W iterator.
9847 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
9848 (sltu patterns): Likewise.
9849 (sgeu patterns): Likewise.
9850 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
9851 (normal_branch): Use icc_comparison_operator predicate.
9852 (inverted_branch): Likewise.
9853 (cbcond_sp32): Use comparison_operator predicate.
9854 (cbcond_sp64): Likewise.
9855 (normal_int_branch_sp64): Adjust for renaming
9856 (inverted_int_branch_sp64): Likewise.
9857 (mov<I:mode>_cc_reg_sp64): Likewise.
9858 (movsf_cc_reg_sp6): Likewise.
9859 (movdf_cc_reg_sp64): Likewise.
9860 (movtf_cc_reg_hq_sp64): Likewise.
9861 (movtf_cc_reg_sp64): Likewise.
9862 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
9863 (movsf_cc_v9): Likewise.
9864 (movdf_cc_v9): Likewise.
9865 (movtf_cc_hq_v9): Likewise.
9866 (movtf_cc_v9): Likewise.
9867 (adddi3): Call gen_adddi3_sp32.
9868 (adddi3_insn_sp32): Rename to...
9869 (adddi3_sp32): ...this. Accept only register_operand as operand #1
9870 and use CCCmode for the carry.
9871 (addx_extend_sp32): Use CCCmode for the carry.
9872 (addx_extend_sp64): Delete.
9873 (adddi3_extend_sp32): Use CCCmode for the carry.
9874 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
9875 (subdi3): Call gen_subdi3_sp32.
9876 (subdi3_insn_sp32): Rename to...
9877 (subdi3_sp32): ...this and use CCmode for the carry.
9878 (subx_extend_sp32): Use CCCmode for the carry.
9879 (subx_extend_sp64): Delete.
9880 (subdi3_extend_sp32): Use CCmode for the carry.
9881 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
9882 (negdi3): Call gen_negdi3_sp32.
9883 (negdi3_sp32): Use CCCmode for the carry.
9884 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
9885 (cmp_nz_ashift_1): Use CCNZ mode.
9886 (cmp_nz_set_ashift_1): Likewise.
9887 (ctrapsi4): Use comparison_operator predicate.
9888 (ctrapdi4): Likewise.
9889 (trapsi_insn): Use icc_comparison_operator predicate.
9890 (trapdi_insn): Likewise.
9891 (edge8 patterns): Use CCNZmode.
9892 (edge16 patterns): Likewise.
9893 (edge32 patterns): Likewise.
9894
9895 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9896
9897 * config/visium/visium-modes.def (CC_NOOV): Rename into...
9898 (CCNZ): ...this.
9899 (CC_BTST): Rename into...
9900 (CCC): ...this.
9901 * config/visium/predicates.md (real_add_operand): New.
9902 (visium_btst_operator): Rename into...
9903 (visium_equality_comparison_operator): ...this.
9904 (visium_noov_operator): Rename into...
9905 (visium_nz_comparison_operator): ...this.
9906 (visium_c_comparison_operator): New.
9907 (visium_branch_operator): Adjust and deal with all CC modes.
9908 * config/visium/visium.c (visium_adjust_cost): Adjust.
9909 (visium_split_double_add): Use the *_set_carry patterns.
9910 (visium_select_cc_mode): Add support for CCC mode and adjust.
9911 (output_cbranch): Adjust and use the carry-based operators for
9912 floating-point comparisons.
9913 * config/visium/visium.md (flags_subst_arith): Adjust.
9914 (addsi3_insn_set_carry): New instruction.
9915 (subsi3_insn_set_carry): Likewise.
9916 (negsi2_insn_set_carry): Likewise.
9917 (btst): Adjust.
9918 (cmp<mode>_sne): Likewise.
9919 (cbranch<mode>4): Use ordered_comparison_operator.
9920 (cbranch<mode>4_insn): Likewise.
9921 (cbranchsi4_btst_insn): Adjust.
9922
9923 2016-10-11 Tom de Vries <tom@codesourcery.com>
9924
9925 PR middle-end/77558
9926 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
9927 special-casing.
9928
9929 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9930
9931 * tree.h (build_complex_type): Add second parameter with default.
9932 * tree.c (build_complex_type): Add NAMED second parameter and adjust
9933 recursive call. Create a TYPE_DECL only if NAMED is true.
9934 (build_common_tree_nodes): Pass true in calls to build_complex_type.
9935
9936 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
9937
9938 New avr-passes.def to register AVR specific passes.
9939
9940 * config/avr/avr-passes.def: New file.
9941 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
9942 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
9943 (make_avr_pass_recompute_note): New proto.
9944 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
9945 (avr_pass_recompute_notes): Use anonymous namespace.
9946 (avr_register_passes): Remove function...
9947 (avr_option_override): ...and its call.
9948
9949 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9950
9951 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9952 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9953 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9954 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9955 flags.
9956 * config/mips/mips.c (mips_option_override): Enable the branch
9957 likely depending on the tune flags and optimization level.
9958 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9959 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9960 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9961 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9962
9963 2016-10-11 Richard Biener <rguenther@suse.de>
9964
9965 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9966 (output_function): Properly stream the whole block tree.
9967 * lto-streamer-in.c (input_function): Likewise.
9968
9969 2016-10-11 Marek Polacek <polacek@redhat.com>
9970
9971 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9972
9973 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9974
9975 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9976 (evrp_dom_walker::before_dom_children): Infer and push new value
9977 ranges for x in y < x.
9978
9979 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9980
9981 PR target/77586
9982 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9983 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9984 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9985 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9986 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9987 (IA64_NO_LIBGCC_TFMODE): Likewise.
9988
9989 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9990
9991 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9992 copying.
9993
9994 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9995
9996 * config.gcc: Add aarch64-*-freebsd* support.
9997 * config.host: Likewise.
9998 * config/aarch64/aarch64-freebsd.h: New file.
9999 * config/aarch64/t-aarch64-freebsd: Ditto.
10000
10001 2016-10-10 Jeff Law <law@redhat.com>
10002
10003 PR tree-optimization/71947
10004 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10005 B with A within a single statement.
10006
10007 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10008
10009 PR tree-optimization/77824
10010 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10011 zero cost for copies.
10012 (find_candidates_dom_walker::before_dom_children): Replace
10013 MODIFY_EXPR with SSA_NAME.
10014 (replace_mult_candidate): Likewise.
10015 (replace_profitable_candidates): Likewise.
10016
10017 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10018
10019 * config/s390/s390.h: Wrap more macros args in brackets and fix
10020
10021 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10022
10023 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10024
10025 2016-10-10 Andreas Schwab <schwab@suse.de>
10026
10027 PR target/77738
10028 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10029 pseudo is not DImode.
10030
10031 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10032
10033 * common/config/arc/arc-common.c (arc_option_optimization_table):
10034 Remove compact casesi option.
10035 * config/arc/arc.c (arc_override_options): Use compact casesi
10036 option only for pre-ARCv2 cores.
10037 * doc/invoke.texi (mcompact-casesi): Update text.
10038
10039 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10040
10041 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10042 Add macro to say we can efficiently handle overlapping unaligned
10043 loads.
10044 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10045 poor code for processors older than p8.
10046
10047 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10048
10049 * gen-pass-instances.awk: Remove GNUism.
10050
10051 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10052
10053 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10054 NULL of (*ipcp_transformations)][node->uid].
10055
10056 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10057
10058 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10059 (MALLOC_ABI_ALIGNMENT): Define.
10060
10061 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10062
10063 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10064 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10065 VAR_OR_FUNCTION_DECL_P macros.
10066 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10067 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10068 chkp_find_bounds_1): Likewise.
10069 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10070 * hsa-gen.c (get_symbol_for_decl): Likewise.
10071 * cgraphunit.c (check_global_declaration, analyze_functions,
10072 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10073 Likewise.
10074 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10075 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10076 Likewise.
10077 * tree.c (set_decl_section_name, copy_node_stat,
10078 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10079 merge_dllimport_decl_attributes, handle_dll_attribute,
10080 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10081 verify_type): Likewise.
10082 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10083 find_explicit_erroneous_behavior): Likewise.
10084 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10085 * ipa.c (process_references): Likewise.
10086 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10087 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10088 notice_global_symbol, assemble_variable, mark_decl_referenced,
10089 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10090 make_decl_one_only, default_section_type_flags,
10091 categorize_decl_for_section, default_encode_section_info): Likewise.
10092 * trans-mem.c (requires_barrier): Likewise.
10093 * gimple-expr.c (mark_addressable): Likewise.
10094 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10095 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10096 expand_debug_expr): Likewise.
10097 * tree-dump.c (dequeue_and_dump): Likewise.
10098 * ubsan.c (instrument_bool_enum_load): Likewise.
10099 * tree-pretty-print.c (print_declaration): Likewise.
10100 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10101 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10102 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10103 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10104 pass_build_ssa::execute): Likewise.
10105 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10106 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10107 Likewise.
10108 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10109 Likewise.
10110 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10111 can_be_nonlocal, remap_decls, copy_debug_stmt,
10112 initialize_inlined_parameters, add_local_variables,
10113 reset_debug_binding, replace_locals_op): Likewise.
10114 * dse.c (can_escape): Likewise.
10115 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10116 Likewise.
10117 * tree-diagnostic.c (default_tree_printer): Likewise.
10118 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10119 unpack_ts_decl_with_vis_value_fields,
10120 lto_input_ts_decl_common_tree_pointers): Likewise.
10121 * builtins.c (builtin_save_expr, fold_builtin_expect,
10122 readonly_data_expr): Likewise.
10123 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10124 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10125 Likewise.
10126 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10127 * gimplify.c (force_constant_size, gimplify_bind_expr,
10128 gimplify_decl_expr, gimplify_var_or_parm_decl,
10129 gimplify_compound_lval, gimplify_init_constructor,
10130 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10131 gimplify_type_sizes): Likewise.
10132 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10133 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10134 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10135 remove_unused_locals): Likewise.
10136 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10137 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10138 * function.c (instantiate_expr, instantiate_decls_1,
10139 setjmp_vars_warning, add_local_decl): Likewise.
10140 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10141 Likewise.
10142 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10143 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10144 optimize_va_list_gpr_fpr_size): Likewise.
10145 * tree-nrv.c (pass_nrv::execute): Likewise.
10146 * tsan.c (instrument_expr): Likewise.
10147 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10148 * vtable-verify.c (verify_bb_vtables): Likewise.
10149 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10150 get_ref_base_and_extent): Likewise.
10151 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10152 Likewise.
10153 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10154 analyze_all_variable_accesses): Likewise.
10155 * tree-nested.c (get_nonlocal_debug_decl,
10156 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10157 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10158 get_local_debug_decl, convert_local_omp_clauses,
10159 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10160 Likewise.
10161 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10162 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10163 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10164 dbxout_symbol, dbxout_common_check): Likewise.
10165 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10166 string_constant): Likewise.
10167 * hsa.c (hsa_get_declaration_name): Likewise.
10168 * passes.c (rest_of_decl_compilation): Likewise.
10169 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10170 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10171 pack_ts_decl_with_vis_value_fields,
10172 write_ts_decl_common_tree_pointers): Likewise.
10173 * stor-layout.c (place_field): Likewise.
10174 * symtab.c (symtab_node::maybe_create_reference,
10175 symtab_node::verify_base, symtab_node::make_decl_local,
10176 symtab_node::copy_visibility_from,
10177 symtab_node::can_increase_alignment_p): Likewise.
10178 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10179 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10180 fortran_common, add_location_or_const_value_attribute,
10181 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10182 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10183 optimize_one_addr_into_implicit_ptr,
10184 optimize_location_into_implicit_ptr): Likewise.
10185 * gimple-low.c (record_vars_into): Likewise.
10186 * ipa-visibility.c (update_vtable_references): Likewise.
10187 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10188 Likewise.
10189 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10190 DFS::DFS_write_tree_body, write_symbol): Likewise.
10191 * langhooks.c (lhd_warn_unused_global_decl,
10192 lhd_set_decl_assembler_name): Likewise.
10193 * attribs.c (decl_attributes): Likewise.
10194 * except.c (output_ttype): Likewise.
10195 * varpool.c (varpool_node::get_create, ctor_for_folding,
10196 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10197 * fold-const.c (fold_unary_loc): Likewise.
10198 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10199 ipa_find_agg_cst_from_init): Likewise.
10200 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10201 expand_omp_target, lower_omp_regimplify_p,
10202 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10203 find_link_var_op): Likewise.
10204 * tree-chrec.c (chrec_contains_symbols): Likewise.
10205 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10206 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10207 execute_fixup_cfg): Likewise.
10208
10209 PR tree-optimization/77901
10210 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10211 if ranges[i].exp is SSA_NAME when looking for >= and only when
10212 ranges[i].exp is NULL or SSA_NAME when looking for the other
10213 comparison.
10214
10215 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10216
10217 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10218 (ipcp_param_lattices): Remove field alignment.
10219 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10220 (set_all_contains_variable): Remove call to
10221 ipcp_alignment_lattice::set_to_bottom.
10222 (initialize_node_lattices): Likewise.
10223 (propagate_alignment_accross_jump_function): Remove.
10224 (propagate_constants_accross_call): Remove call to
10225 propagate_alignment_accross_jump_function.
10226 (ipcp_store_alignment_results): Remove.
10227 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10228 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10229 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10230 pretty-printing of alignment jump function.
10231 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10232 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10233 alignments and remove computing ipa_alignment jump function.
10234 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10235 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10236 (ipa_read_jump_function): Remove reading of ipa_alignment.
10237 (write_ipcp_transformation_info): Remove streaming for alignment
10238 propagation summary.
10239 (read_ipcp_transformation_info): Remove reading of alignment
10240 propagation summary.
10241 (ipcp_update_alignments): Remove.
10242 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10243 type.
10244 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10245 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10246 * ipa-prop.h (ipa_alignment): Remove.
10247 (ipa_jump_func): Remove field alignment.
10248 (ipcp_transformation_summary): Remove field alignments.
10249 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10250 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10251 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10252
10253 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10254
10255 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10256
10257 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10258 change.
10259 (visium_expand_fp_cstore): Likewise.
10260
10261 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10262
10263 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10264 * diagnostic.c (warning_at_rich_loc_n): New function.
10265 (diagnostic_n_impl_richloc): Likewise.
10266 (diagnostic_n_impl): Move most of the function to
10267 diagnostic_n_impl_richloc and call it.
10268
10269 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10270
10271 * gen-pass-instances.awk: Rewritten.
10272 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10273 $(PASSES_EXTRA) after passes.def to the script.
10274 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10275 * config/i386/i386-passes.def: New file.
10276 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10277 make_pass_stv): Declare.
10278 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10279 false.
10280 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10281 or !TARGET_64BIT.
10282 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10283 (pass_stv::timode_p): New non-static data member.
10284 (ix86_option_override): Don't register passes here.
10285
10286 * doc/invoke.texi: Document accepting Else, fallthrough.
10287
10288 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10289 style changes.
10290
10291 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10292 FALLTHRU comment styles.
10293
10294 2016-10-07 Andrew Pinski <apinski@cavium.com>
10295
10296 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10297 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10298 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10299 Likewise.
10300 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10301 Likewise.
10302 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10303 Likewise.
10304 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10305 (AARCH64_ARCH): Likewise.
10306 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10307 Likewise.
10308 (AARCH64_CORE): Likewise.
10309 (AARCH64_ARCH): Likewise.
10310 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10311 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10312 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10313 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10314 (AARCH64_ARCH): Likewise.
10315 (AARCH64_CORE): Likewise.
10316 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10317 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10318 (AARCH64_CORE): Likewise.
10319 (AARCH64_ARCH): Likewise.
10320
10321 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10322
10323 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10324 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10325 floating point type infrastructre, and -mfloat128 that enables the
10326 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10327 if -mfloat128-type. Define __ibm128 to be long double by default.
10328 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10329 the IEEE 128-bit floating point type infrastructure should
10330 automatically be enabled.
10331 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10332 instead of -mfloat128 to enable KFmode.
10333 (rs6000_option_override_internal): Split the option -mfloat128
10334 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10335 systems, automatically set -mfloat128-type, but don't enable it on
10336 other operating systems. Move setting the long double size and
10337 IEEE quad support before the IEEE 128-bit floating point changes.
10338 (rs6000_init_builtins): Do not create a unique type for __ibm128
10339 if long double is IBM extended double, instead rely on __ibm128
10340 being defined as 'long double'. If -mfloat128-type and not
10341 -mfloat128, create the KFmode type with an undocumented __ieee128
10342 keyword.
10343 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10344 -mfloat128 for tests about the types, but keep tests for
10345 -mfloat128 to enable the keyword support.
10346 (rs6000_complex_function_value): Likewise.
10347 (rs6000_scalar_mode_supported_p): Likewise.
10348 (rs6000_floatn_mode): Likewise.
10349 (rs6000_c_mode_for_suffix): Likewise.
10350 (rs6000_opt_masks): Add -mfloat128-type.
10351 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10352 -mfloat128-type being split from -mfloat128. Add
10353 -mfloat128-hardware, which was missing.
10354 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10355 -mfloat128 and -mfloat128-type:
10356 (-mfloat128-type): Likewise.
10357 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10358 that 64-bit Linux systems with enable -mfloat128-type by default
10359 on VSX systems.
10360 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10361 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10362 -mfloat128-type instead of -mfloat128.
10363 (FLOAT128_2REG_P): Likewise.
10364 (MASK_FLOAT128_TYPE): Likewise.
10365 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10366 (RS6000_BTM_FLOAT128): Likewise.
10367 (TARGET_FLOAT128): Poison old identifiers.
10368 (OPTION_MASK_FLOAT128): Likewise.
10369 (MASK_FLOAT128): Likewise.
10370 * config/rs6000/rs6000.md (FP): Likewise.
10371 (FLOAT128): Likewise.
10372 (fix_trunc<mode>di2): Likewise.
10373 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10374 (floatdi<mode>2): Likewise.
10375 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10376 (neg<mode>2, FLOAT128 iterator): Likewise.
10377 (abs<mode>2, FLOAT128 iterator): Likewise.
10378 (ieee_128bit_negative_zero): Likewise.
10379 (ieee_128bit_vsx_neg<mode>2): Likewise.
10380 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10381 (ieee_128bit_vsx_abs<mode>2): Likewise.
10382 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10383 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10384 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10385 (extendiftf2): Likewise.
10386 (extendifkf2): Likewise.
10387 (extendtfkf2): Likewise.
10388 (trunciftf2): Likewise.
10389 (truncifkf2): Likewise.
10390 (trunckftf2): Likewise.
10391 (trunctfif2): Likewise.
10392 (extendkftf2): Likewise.
10393 (trunctfkf2): Likewise.
10394
10395 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10396
10397 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10398 before merging in bytes to pass down to real_from_target.
10399
10400 2016-10-07 Richard Biener <rguenther@suse.de>
10401
10402 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10403 required hack.
10404 (substitute_and_fold_dom_walker::before_dom_children):
10405 Substitute and fold before pass specific folding to avoid
10406 feeding that with SSA names that will be later released.
10407 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10408 introduced by folding and visited by evaluate_stmt called during
10409 ccp_fold_stmt.
10410 (likely_value): Likewise.
10411 (evaluate_stmt): Likewise.
10412 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10413 (simplify_div_or_mod_using_ranges): Likewise.
10414 (simplify_min_or_max_using_ranges): Likewise.
10415 (simplify_abs_using_ranges): Likewise.
10416 (simplify_conversion_using_ranges): Likewise.
10417 (simplify_float_conversion_using_ranges): Likewise.
10418 (simplify_stmt_using_ranges): Likewise.
10419
10420 2016-10-07 Marek Polacek <polacek@redhat.com>
10421
10422 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10423 FALLTHROUGH_LABEL_P here...
10424 (warn_implicit_fallthrough_r): ...not here.
10425
10426 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10427
10428 PR tree-optimization/77880
10429 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10430 necessary.
10431
10432 2016-10-07 Marek Polacek <polacek@redhat.com>
10433
10434 PR c++/77803
10435 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10436
10437 2016-10-07 Richard Biener <rguenther@suse.de>
10438
10439 * bitmap.h: Document constraints on bitmap modification while
10440 iterating over it.
10441
10442 2016-10-07 Richard Biener <rguenther@suse.de>
10443
10444 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10445 * bitmap.h (bmp_iter_set): When advancing to the next element
10446 check that we didn't remove the current one.
10447 (bmp_iter_and): Likewise.
10448 (bmp_iter_and_compl): Likewise.
10449 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10450 we currently iterate on but keep a one-level queue.
10451 * sched-deps.c (remove_from_deps): Do not clear current bit
10452 but keep a one-level queue.
10453
10454 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10455
10456 PR tree-optimization/77664
10457 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10458 for the other ranges.
10459 (optimize_range_tests_diff): Fix up formatting.
10460 (optimize_range_tests_var_bound): New function.
10461 (optimize_range_tests): Use it.
10462
10463 2016-10-07 Martin Liska <mliska@suse.cz>
10464
10465 * coverage.c (build_gcov_exit_decl): Fix priority what
10466 should be really 99.
10467
10468 2016-10-07 Richard Biener <rguenther@suse.de>
10469
10470 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10471 vars in gimple_bind_vars but not in BLOCK_VARS.
10472
10473 2016-10-07 Richard Biener <rguenther@suse.de>
10474
10475 PR tree-optimization/77879
10476 * tree-ssa-structalias.c (handle_const_call): Properly handle
10477 NRV return slots.
10478 (handle_pure_call): Likewise.
10479
10480 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10481
10482 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10483 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10484 possible overflow.
10485
10486 2016-10-06 Andrew Pinski <apinski@cavium.com>
10487
10488 * config/aarch64/aarch64-cores.def: Add a comment before each
10489 set of cores.
10490
10491 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10492
10493 PR tree-optimization/77862
10494 * tree-vrp.c (add_equivalence): Use get_value_range so that
10495 num_vr_values is checked before accessing vr_values.
10496
10497 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10498
10499 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10500 POINTER_TYPE_P.
10501
10502 2016-10-05 Jeff Law <law@redhat.com>
10503
10504 PR tree-optimization/71661
10505 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10506 removal of a forwarder exposes a new natural loop.
10507
10508 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10509
10510 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10511 Introduce ssesuffix variable.
10512 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10513 (*<code><mode>3): Ditto.
10514
10515 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10516
10517 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10518 noop move.
10519
10520 2016-10-06 Richard Biener <rguenther@suse.de>
10521
10522 PR tree-optimization/77855
10523 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10524 instead of removing the current item while iterating over the set
10525 which is not safe.
10526
10527 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10528 Eric Botcazou <ebotcazou@adacore.com>
10529
10530 PR target/77759
10531 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10532 (classify_registers): Don't set it
10533 (function_arg_slotno): Don't initialize and test it. Tidy up.
10534
10535 2016-10-06 Richard Biener <rguenther@suse.de>
10536
10537 PR tree-optimization/77839
10538 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10539 lattice transition.
10540
10541 2016-10-06 Martin Liska <mliska@suse.cz>
10542
10543 * gcc.c: Set -fprofile-update=atomic when profiling is
10544 enabled and -pthread is set. Warn when one combines
10545 -pthread and -fprofile-update=single for an app using
10546 profiling code.
10547
10548 2016-10-06 Martin Liska <mliska@suse.cz>
10549
10550 PR bootstrap/77788
10551 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10552 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10553 Initialize a pointer to NULL.
10554 (slsr_process_copy): Likewise.
10555 * input.c (location_get_source_line): Likewise.
10556 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10557
10558 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10559
10560 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10561 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10562 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10563 * config.gcc: Deleted pcommitintrin.h
10564 * config/i386/pcommitintrin.h: Deleted file.
10565 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10566 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10567 detection.
10568 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10569 __PCOMMIT__.
10570 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10571 (PTA_PCOMMIT): Deleted define.
10572 (ix86_option_override_internal): Deleted handle of option.
10573 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10574 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10575 __builtin_ia32_pcommit): Deleted.
10576 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10577 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10578 (pcommit): Deleted instruction.
10579 * config/i386/i386.opt: Mention -mpcommit deprecation.
10580 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10581
10582 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10583
10584 PR target/77874
10585 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10586 Remove wrong assert.
10587 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10588 Use <round_constraint> as operand 1 constraint.
10589
10590 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10591
10592 PR sanitizer/66343
10593 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10594 (ubsan_instrument_float_cast): And not here.
10595
10596 PR sanitizer/66343
10597 * ubsan.c (ubsan_ids): New GTY(()) array.
10598 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10599 instead of static local counters.
10600
10601 2016-10-05 Martin Sebor <msebor@redhat.com>
10602
10603 PR bootstrap/77819
10604 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10605 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10606 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10607 (default_printf_pointer_format): Define function.
10608 * targhooks.c (linux_printf_pointer_format): Define new function.
10609 * targhooks.h (linux_printf_pointer_format): Declare.
10610 (gnu_libc_printf_pointer_format): Remove declaration.
10611
10612 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10613
10614 * fold-const.c (native_encode_real): Fix logic for selecting offset
10615 to write to when BYTES_BIG_ENDIAN.
10616
10617 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10618
10619 * builtins.c (fold_builtin_strchr): Remove function.
10620 (fold_builtin_strrchr): Likewise.
10621 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10622 * gimple-fold.c (target_char_cst_p): New function.
10623 (gimple_fold_builtin_strchr) Add more foldings.
10624 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10625
10626 2016-10-05 Richard Biener <rguenther@suse.de>
10627
10628 PR middle-end/77863
10629 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10630 capture ids in c-exprs.
10631
10632 2016-10-05 Richard Biener <rguenther@suse.de>
10633
10634 PR middle-end/77826
10635 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10636 with types_match for GIMPLE code gen to handle type mismatched
10637 constants properly.
10638 (dt_operand::gen): Adjust.
10639 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10640 and constant A.
10641
10642 2016-10-05 Richard Biener <rguenther@suse.de>
10643
10644 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10645
10646 2016-10-05 Richard Biener <rguenther@suse.de>
10647
10648 PR middle-end/77842
10649 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10650
10651 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10652
10653 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10654 version check to protect only DW_TAG_imported_module generation.
10655
10656 2016-10-05 Richard Biener <rguenther@suse.de>
10657
10658 PR middle-end/55152
10659 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10660
10661 2016-10-04 Ian Lance Taylor <iant@golang.org>
10662
10663 * explow.c (allocate_dynamic_stack_space): Call
10664 do_pending_stack_adjust before handling flag_split_stack.
10665
10666 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10667
10668 * genattrtab.c (make_internal_attr): Supply dummy column number to
10669 file_location ctor.
10670 (main): Likewise.
10671 * genoutput.c (init_insn_for_nothing): Likewise.
10672 * gensupport.c (add_define_attr): Likewise.
10673 * read-md.c (message_at_1): Print column number.
10674 (fatal_with_file_and_line): Likewise.
10675 (rtx_reader::read_char): Track column numbers.
10676 (rtx_reader::unread_char): Likewise.
10677 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10678 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10679 (rtx_reader::handle_file): Initialize m_read_md_colno.
10680 (rtx_reader::get_current_location): Supply column number to
10681 file_location ctor.
10682 * read-md.h (struct file_location): Add field "colno".
10683 (file_location::file_location): Likewise.
10684 (rtx_reader::get_colno): New accessor.
10685 (rtx_reader::m_read_md_colno): New field.
10686 (rtx_reader::m_last_line_colno): New field.
10687
10688 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10689
10690 * doc/extend.texi (Java Exceptions): Remove.
10691 (java_interface): Remove.
10692
10693 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10694
10695 PR tree-optimization/77808
10696 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10697 and addr are different before copying points-to information.
10698
10699 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10700
10701 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10702 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10703 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10704 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10705
10706 2016-10-04 Richard Biener <rguenther@suse.de>
10707
10708 PR tree-optimization/77399
10709 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10710 verify the target can convert.
10711
10712 2016-10-04 Richard Biener <rguenther@suse.de>
10713
10714 PR middle-end/77833
10715 * explow.c (plus_constant): Verify the mode of the constant
10716 pool offset before calling plus_constant.
10717
10718 2016-10-04 Richard Biener <rguenther@suse.de>
10719
10720 PR middle-end/77407
10721 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10722 type support, mark with :C.
10723 (X / -X -> -1): Mark with :C.
10724
10725 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10726
10727 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10728 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10729 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10730 * doc/tm.texi: Regenerated.
10731 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10732 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10733 * config/darwin.h (JCR_SECTION_NAME): Remove.
10734 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10735 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10736 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10737 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10738 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10739 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10740
10741 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10742
10743 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10744 between "because" and "param" in dump message in call to fprintf.
10745
10746 2016-10-03 Jeff Law <law@redhat.com>
10747
10748 PR tree-optimization/71550
10749 PR tree-optimization/71403
10750 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10751 (profitable_jump_thread_path): Also return boolean indicating if
10752 the realized path will create an irreducible loop.
10753 Remove loop depth tests from 71403.
10754 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10755 from 71403. If threading will create an irreducible loop, then
10756 throw away loop iteration and related information.
10757
10758 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10759
10760 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10761 -Woverloaded-virtual checks for warning options.
10762 * configure: Regenerate.
10763
10764 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10765
10766 PR preprocessor/77699
10767 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10768 (get_next_line): Return false on error.
10769 (read_next_line): Removed, use get_next_line instead.
10770 (read_line_num): Don't copy the line.
10771 (location_get_source_line): Don't use static data.
10772 (selftest::test_reading_source_line): Add more test cases.
10773
10774 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10775
10776 Revert
10777 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10778
10779 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10780 (noce_process_if_block): Use it.
10781
10782 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10783
10784 * doc/invoke.texi: Update -Wint-in-bool-context.
10785
10786 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10787
10788 * dwarf2out.c (output_fde, output_call_frame_info,
10789 dwarf2out_do_cfi_startproc, set_indirect_string,
10790 gen_internal_sym, output_die, output_line_info): Use
10791 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
10792 ASM_GENERATE_INTERNAL_LABEL output.
10793
10794 2016-10-01 Richard Biener <rguenther@suse.de>
10795
10796 PR middle-end/77798
10797 * genmatch.c (get_operand_type): Add operand position arg
10798 and handle COND_EXPR comparison operand with fixed boolean_type_node.
10799 (expr::gen_transform): Adjust.
10800 (dt_simplify::gen_1): Likewise.
10801
10802 2016-10-01 Jakub Jelinek <jakub@redhat.com>
10803
10804 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
10805 comments. Simplify asserts, remove unnecessary conditions.
10806 Formatting fixes.
10807 (*<code><mode>3): Likewise.
10808
10809 2016-09-30 Jakub Jelinek <jakub@redhat.com>
10810
10811 * doc/invoke.texi (-Wregister): Document.
10812
10813 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
10814
10815 * configure.ac: Split CHECKING_P into CHECKING_P and
10816 ENABLE_EXTRA_CHECKING.
10817 * configure: Regenerated.
10818 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
10819 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
10820
10821 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
10822
10823 PR other/31566
10824 * gcc.c (process_command): For @filename handling, output
10825 the correct name if the file does not exist.
10826
10827 2016-09-30 Marek Polacek <polacek@redhat.com>
10828
10829 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
10830 * config/alpha/predicates.md: Likewise.
10831
10832 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10833
10834 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10835 (noce_process_if_block): Use it.
10836
10837 2016-09-30 Martin Liska <mliska@suse.cz>
10838
10839 * doc/invoke.texi: Document asan-use-after-return that
10840 it's disabled by default in runtime.
10841
10842 2016-09-30 Richard Biener <rguenther@suse.de>
10843
10844 * tree-vrp.c (intersect_ranges): If we failed to handle
10845 the intersection choose a constant singleton range if available.
10846
10847 2016-09-30 Richard Biener <rguenther@suse.de>
10848
10849 PR tree-optimization/77399
10850 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
10851 float <-> int conversions.
10852
10853 2016-09-30 Alan Modra <amodra@gmail.com>
10854
10855 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
10856
10857 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10858
10859 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
10860 ext_level before calling CPUID with 0x80000008.
10861 Simplify xgetbv checks.
10862
10863 2016-09-29 David Malcolm <dmalcolm@redhat.com>
10864
10865 * Makefile.in (OBJS): Add print-rtl-function.o.
10866 * print-rtl-function.c: New file.
10867 * print-rtl.h (print_rtx_function): New decl.
10868
10869 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
10870
10871 PR target/77756
10872 * config/i386/cpuid.h (__get_cpuid_count): New.
10873 (__get_cpuid): Rename __level to __leaf.
10874
10875 2016-09-29 Marek Polacek <polacek@redhat.com>
10876
10877 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
10878
10879 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
10880
10881 PR target/77718
10882 * builtins.c (expand_builtin_memcmp): Don't swap args unless
10883 result is only being compared with zero.
10884
10885 2016-09-29 Marek Polacek <polacek@redhat.com>
10886
10887 * dwarf2out.c (loc_descriptor): Add fall through comment.
10888 (add_const_value_attribute): Likewise.
10889
10890 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
10891
10892 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
10893 with "v6t2". Move "arch" attribute above "pool_range".
10894 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
10895 with "v6t2".
10896 (*thumb2_movhi_vfp): Likewise.
10897 (*arm_movhi_fp16): Likewise.
10898 (*thumb2_movhi_fp16): Likewise.
10899 (*arm_movsi_vfp): Remove "arch" attribute.
10900 (*thumb2_movsi_vfp): Likewise.
10901
10902 2016-09-29 Martin Liska <mliska@suse.cz>
10903
10904 * doc/extend.texi: Remove limitation of Objective C for
10905 __attribute__((constructor)) and __attribute__((destructor)).
10906
10907 2016-09-29 Richard Biener <rguenther@suse.de>
10908
10909 PR tree-optimization/77768
10910 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10911 Handle stores to readonly memory when removing redundant stores.
10912
10913 2016-09-29 Richard Biener <rguenther@suse.de>
10914
10915 PR middle-end/77407
10916 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
10917 X / -X -> -1 simplifications.
10918
10919 2016-09-29 Richard Biener <rguenther@suse.de>
10920
10921 PR middle-end/55152
10922 * match.pd: Add max(a,-a) -> abs(a) pattern.
10923 * tree-ssa-phiopt.c (minmax_replacement): Disable for
10924 HONOR_SIGNED_ZEROS types.
10925
10926 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
10927
10928 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
10929 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
10930
10931 2016-09-29 Richard Biener <rguenther@suse.de>
10932
10933 * tree-vrp.c (set_defs_to_varying): New helper avoiding
10934 writing to vr_const_varying.
10935 (vrp_initialize): Call it.
10936 (vrp_visit_stmt): Likewise.
10937 (evrp_dom_walker::before_dom_children): Likewise.
10938
10939 2016-09-29 Richard Biener <rguenther@suse.de>
10940
10941 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
10942 constructors with vector elements.
10943
10944 2016-09-29 Richard Biener <rguenther@suse.de>
10945
10946 PR tree-optimization/77768
10947 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
10948 with stores to a place we know has a constant value.
10949
10950 2016-09-29 Alan Modra <amodra@gmail.com>
10951
10952 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10953 * doc/invoke.texi: Document it.
10954 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10955 (rs6000_passes_float): Comment.
10956 (rs6000_passes_long_double): New static var.
10957 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10958 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10959 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10960 to include fp values returned in vectors.
10961 Set rs6000_passes_long_double.
10962 (rs6000_function_arg_advance_1): Likewise for function args.
10963 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10964 and SPE. Emit long double tag value too.
10965 (rs6000_opt_vars): Add gnu-attr.
10966 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10967 * configure: Regenerate.
10968 * config.in: Regenerate.
10969
10970 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10971
10972 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10973 of 0 < x.
10974 (format_floating, format_string, format_directive,
10975 get_destination_size, pass_sprintf_length::handle_gimple_call):
10976 Likewise.
10977
10978 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10979
10980 * gimple-ssa-sprintf.c: Fix comment formatting.
10981 (format_integer): Use is_gimple_assign.
10982 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10983 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10984 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10985 (pass_sprintf_length::execute): Use is_gimple_call.
10986
10987 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10988
10989 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10990 strchr, also try the generic folding.
10991
10992 2016-09-28 Martin Sebor <msebor@redhat.com>
10993
10994 PR c/77762
10995 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10996 Fix typos.
10997
10998 2016-09-28 Martin Sebor <msebor@redhat.com>
10999
11000 PR middle-end/77683
11001 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11002 length modifier is not expected.
11003 (format_floating): Ignore l length modifier and fail gracefuly
11004 when it isn't one of the other expected ones.
11005
11006 2016-09-28 Martin Sebor <msebor@redhat.com>
11007
11008 PR bootstrap/77753
11009 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11010
11011 2016-09-27 Richard Biener <rguenther@suse.de>
11012
11013 * dwarf2out.c (cu_die_list): New global.
11014 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11015 main_comp_unit_die to cu_die_list if we created it.
11016 Move break_out_includes ...
11017 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11018 the cu_die_list.
11019
11020 2016-09-28 Richard Biener <rguenther@suse.de>
11021
11022 * dwarf2out.c (struct die_struct): Add removed flag.
11023 (lookup_type_die): If the DIE is marked as removed, clear
11024 TYPE_SYMTAB_DIE and return NULL.
11025 (lookup_decl_die): If the DIE is marked as removed, remove it
11026 from the hash and return NULL.
11027 (mark_removed): New helper.
11028 (prune_unused_types_prune): Call it for removed DIEs.
11029 (gen_subprogram_die): Move the premark_used_types call to after
11030 DIEs for the functions scopes are generated.
11031 (process_scope_var): Do not re-create pruned types or type decls.
11032 Make sure to also re-parent type decls.
11033 (dwarf2out_finish): Move unused type pruning and debug_types
11034 handling ...
11035 (dwarf2out_early_finish): ... here.
11036
11037 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11038
11039 * config/arc/arc-c.c: New file.
11040 * config/arc/arc-c.def: Likewise.
11041 * config/arc/t-arc: Likewise.
11042 * config.gcc: Include arc-c.o as c and cpp object.
11043 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11044 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11045 arc_cpu_cpp_builtins.
11046
11047 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11048
11049 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11050 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11051
11052 2016-09-28 Nathan Sidwell <nathan@acm.org>
11053
11054 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11055 printing.
11056
11057 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11058
11059 PR tree-optimization/61056
11060 * gimple-fold.c (gimple_fold_builtin_strchr):
11061 New function to optimize strchr (s, 0) to strlen.
11062 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11063
11064 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11065
11066 PR tree-optimization/77724
11067 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11068 Add tree_fits_shwi_p check.
11069
11070 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11071
11072 * auto-inc-dec.c (try_merge): Remove break after return.
11073 * cselib.c (autoinc_split): Likewise.
11074 * explow.c (promote_mode): Likewise.
11075 * fixed-value.c (fixed_arithmetic): Likewise.
11076 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11077 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11078 * trans-mem.c (get_attrs_for): Likewise.
11079 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11080 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11081 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11082 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11083 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11084 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11085 * config/cris/cris.c (cris_op_str): Likewise.
11086 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11087 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11088
11089 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11090
11091 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11092 IFN_GOACC_REDUCTION_CODES): New.
11093 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11094 ifn_goacc_reduction_kind): Use them.
11095 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11096 of internal functions, when applicable.
11097
11098 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11099
11100 * config/mips/constraints.md (d): Fix documentation.
11101 * doc/md.texi (Machine Constraints): Update accordingly.
11102
11103 2016-09-27 Richard Biener <rguenther@suse.de>
11104
11105 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11106 cur_line_info_table initialization ...
11107 (dwarf2out_assembly_start): ... here.
11108
11109 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11110
11111 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11112 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11113 (*thumb2_movhi_vfp): Likewise.
11114 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11115 template. Expand predicable attribute to mark VMOV.F16 as not
11116 predicable. Add "arch" attribute.
11117 (*thumb2_movhi_fp16): Likewise.
11118 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11119 (*thumb2_movsi_vfp): Add "arch" attribute.
11120
11121 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11122
11123 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11124 VAR_DECL string.
11125
11126 2016-09-27 Marek Polacek <polacek@redhat.com>
11127
11128 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11129 comment.
11130
11131 * config/c6x/c6x.h: Adjust fall through comment.
11132 * config/sh/sh.c (final_prescan_insn): Likewise.
11133 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11134 (visium_expand_fp_cstore): Likewise.
11135
11136 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11137
11138 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11139 expected by -Wimplicit-fallthrough.
11140 (thumb1_size_rtx_costs): Likewise.
11141 (thumb2_reorg): Likewise.
11142 (tls_mentioned_p): Add "Fall through" comment.
11143 (thumb2_reorg): Likewise.
11144 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11145 comment form expected by -Wimplicit-fallthrough.
11146
11147 2016-09-27 Martin Liska <mliska@suse.cz>
11148
11149 PR gcov-profile/46266
11150 * input.h (RESERVED_LOCATION_P): New macro.
11151 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11152 instread of comparison with UNKNOWN_LOCATION.
11153
11154 2016-09-27 Richard Biener <rguenther@suse.de>
11155
11156 PR tree-optimization/77745
11157 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11158 When removing redundant stores make sure to check compatibility
11159 of the TBAA state for downstream accesses.
11160 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11161 value-numbering virtual operands for store matches.
11162
11163 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11164
11165 PR target/51244
11166 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11167 movrt patterns. Match them before anything else in the SET case.
11168
11169 2016-09-27 Martin Liska <mliska@suse.cz>
11170
11171 PR gcov-profile/7970
11172 PR gcov-profile/16855
11173 PR gcov-profile/44779
11174 * coverage.c (build_gcov_exit_decl): New function.
11175 (coverage_obj_init): Call the function and generate __gcov_exit
11176 destructor.
11177 * doc/gcov.texi: Document when __gcov_exit function is called.
11178
11179 2016-09-27 Marek Polacek <polacek@redhat.com>
11180
11181 PR bootstrap/77751
11182 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11183 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11184 -Wno-error instead of -Wno-implicit-fallthrough.
11185
11186 2016-09-27 Martin Liska <mliska@suse.cz>
11187
11188 PR bootstrap/77749
11189 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11190
11191 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11192
11193 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11194 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11195 comments. Remove break after return.
11196 (ix86_fp_compare_code_to_integer, has_dispatch,
11197 ix86_simd_clone_usable): Remove break after return.
11198
11199 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11200
11201 PR rlt-optimization/77714
11202 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11203 REG_EQUAL note.
11204
11205 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11206
11207 PR ipa/77677
11208 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11209 extract_range_from_unary_expr to convert value_range.
11210 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11211 (extract_range_from_unary_expr): This.
11212 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11213
11214 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11215
11216 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11217
11218 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11219
11220 * config/i386/i386.c (ix86_print_operand)
11221 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11222 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11223 (epilogue_renumber): Likewise.
11224
11225 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11226
11227 PR middle-end/77719
11228 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11229 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11230
11231 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11232
11233 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11234 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11235 is_mm_seq_cst, is_mm_sync): Move to ...
11236 * memmodel.h: This. New file.
11237 * builtins.c: Include memmodel.h.
11238 * optabs.c: Likewise.
11239 * tsan.c: Likewise.
11240 * config/aarch64/aarch64.c: Likewise.
11241 * config/alpha/alpha.c: Likewise.
11242 * config/arm/arm.c: Likewise.
11243 * config/i386/i386.c: Likewise.
11244 * config/ia64/ia64.c: Likewise.
11245 * config/mips/mips.c: Likewise.
11246 * config/rs6000/rs6000.c: Likewise.
11247 * config/sparc/sparc.c: Likewise.
11248 * genconditions.c: Include memmodel.h in generated file.
11249 * genemit.c: Likewise.
11250 * genoutput.c: Likewise.
11251 * genpeep.c: Likewise.
11252 * genpreds.c: Likewise.
11253 * genrecog.c: Likewise.
11254
11255 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11256
11257 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11258 "c" instead when parsing characters. Move operand parsing into...
11259 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11260 and tightening the scope of various locals.
11261
11262 2016-09-26 Liu Hao <lh_mouse@126.com>
11263
11264 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11265
11266 2016-09-26 Marek Polacek <polacek@redhat.com>
11267
11268 * system.h: Use __has_attribute to check whether the fallthrough
11269 attribute is supported.
11270
11271 2016-09-26 Marek Polacek <polacek@redhat.com>
11272
11273 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11274 gimple_call_internal_p.
11275 * ipa-split.c (find_return_bb): Likewise.
11276 (execute_split_functions): Likewise.
11277 * omp-low.c (dump_oacc_loop_part): Likewise.
11278 (oacc_loop_xform_head_tail): Likewise.
11279 * predict.c (predict_loops): Likewise.
11280 * sanopt.c (pass_sanopt::execute): Likewise.
11281 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11282 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11283 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11284 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11285 (expand_ifn_va_arg): Likewise.
11286 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11287 (optimize_mask_stores): Likewise.
11288 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11289 (vect_transform_stmt): Likewise.
11290 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11291 * tsan.c (instrument_memory_accesses): Likewise.
11292
11293 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11294 Alexander Monakov <amonakov@ispras.ru>
11295
11296 * regrename.c (rename_chains): Check
11297 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11298 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11299 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11300
11301 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11302
11303 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11304 (s390_sched_score): Likewise.
11305
11306 2016-09-26 Martin Liska <mliska@suse.cz>
11307
11308 * doc/gcov.texi: Update program output of gcov tool.
11309
11310 2016-09-26 Martin Liska <mliska@suse.cz>
11311
11312 PR gcov-profile/23332
11313 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11314 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11315 * value-prof.c (dump_histogram_value): Do not handle
11316 HIST_TYPE_CONST_DELTA.
11317 (stream_in_histogram_value): Likewise.
11318 (gimple_find_values_to_profile): Likewise.
11319 * value-prof.h (enum hist_type): Likewise.
11320
11321 2016-09-26 Martin Liska <mliska@suse.cz>
11322
11323 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11324 from default sanitize recover values.
11325 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11326 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11327 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11328 consistent.
11329 * opts.c (finish_options): Do a generic loop over options
11330 that can be recovered.
11331 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11332 SANITIZE_RETURN.
11333 (common_handle_option): Likewise.
11334 * opts.h: Declare can_recover to sanitizer_opts_s.
11335
11336 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11337
11338 * target.def(elf_flags_numeric): Change documentation to present tense.
11339 * doc/tm.texi: Regenerate.
11340
11341 2016-09-26 Marek Polacek <polacek@redhat.com>
11342
11343 PR c/7652
11344 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11345 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11346 -Wno-switch-fallthrough.
11347 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11348 (expand_builtin): Likewise.
11349 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11350 * convert.c (convert_to_real_1): Likewise.
11351 (convert_to_integer_1): Likewise.
11352 * final.c (output_alternate_entry_point): Likewise.
11353 * genattrtab.c (make_canonical): Likewise.
11354 (write_test_expr): Likewise.
11355 * genpreds.c (validate_exp): Likewise.
11356 * gimple-ssa-strength-reduction.c
11357 (find_candidates_dom_walker::before_dom_children): Likewise.
11358 * godump.c (go_format_type): Likewise.
11359 * reload1.c (elimination_effects): Likewise.
11360 * resource.c (mark_referenced_resources): Likewise.
11361 (mark_set_resources): Likewise.
11362 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11363 * varasm.c (output_addressed_constants): Likewise.
11364
11365 2016-09-26 Marek Polacek <polacek@redhat.com>
11366
11367 PR c/7652
11368 * common.opt (Wimplicit-fallthrough): New option.
11369 * doc/extend.texi: Document statement attributes and the fallthrough
11370 attribute.
11371 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11372 * gimple.h (gimple_call_internal_p): New function.
11373 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11374 (struct label_entry): New struct.
11375 (find_label_entry): New function.
11376 (case_label_p): New function.
11377 (collect_fallthrough_labels): New function.
11378 (last_stmt_in_scope): New function.
11379 (should_warn_for_implicit_fallthrough): New function.
11380 (warn_implicit_fallthrough_r): New function.
11381 (maybe_warn_implicit_fallthrough): New function.
11382 (expand_FALLTHROUGH_r): New function.
11383 (expand_FALLTHROUGH): New function.
11384 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11385 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11386 (gimplify_label_expr): New function.
11387 (gimplify_case_label_expr): Set location.
11388 (gimplify_expr): Call gimplify_label_expr.
11389 * internal-fn.c (expand_FALLTHROUGH): New function.
11390 * internal-fn.def (FALLTHROUGH): New internal function.
11391 * langhooks.c (lang_GNU_OBJC): New function.
11392 * langhooks.h (lang_GNU_OBJC): Declare.
11393 * system.h (gcc_fallthrough): Define.
11394 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11395 * tree.h (FALLTHROUGH_LABEL_P): Define.
11396
11397 2016-09-26 Richard Biener <rguenther@suse.de>
11398
11399 * dwarf2out.c (stripattributes): Remove unused function.
11400 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11401 Push dwarf_split_debug_info handling into init_sections_and_labels.
11402 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11403 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11404 (debug_macinfo_section_name): New global.
11405 (output_macinfo): Use debug_macinfo_section_name.
11406 (init_sections_and_labels): Split out section and label generation
11407 from dwarf2out_init. Set debug_macinfo_section_name.
11408 (dwarf2out_init): Move text section label generation and emission
11409 to ...
11410 (dwarf2out_assembly_start): ... here.
11411 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11412 output starts.
11413
11414 2016-09-26 Richard Biener <rguenther@suse.de>
11415
11416 PR debug/77692
11417 * cgraphunit.c (analyze_functions): Before early removing
11418 global vars calls the late_global_decl debug handler mark
11419 the variable as readonly.
11420
11421 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11422
11423 PR target/51244
11424 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11425 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11426 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11427 declare new overloads.
11428 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11429 operand.
11430
11431 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11432
11433 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11434 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11435
11436 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11437
11438 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11439 * configure: Regenerate.
11440
11441 2016-09-24 Marek Polacek <polacek@redhat.com>
11442
11443 PR c/77490
11444 * doc/invoke.texi: Document -Wbool-operation.
11445
11446 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11447
11448 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11449 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11450 cmpmemsi pattern to do builtin expansion of memcmp ().
11451 (compute_current_alignment): Add helper function for
11452 expand_block_compare used to compute alignment as the compare proceeds.
11453 (select_block_compare_mode): Used by expand_block_compare to select
11454 the mode used for reading the next chunk of bytes in the compare.
11455 (do_load_for_compare): Used by expand_block_compare to emit the load
11456 insns for the compare.
11457 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11458 reference from expand_block_compare ().
11459 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11460 prototype for this function.
11461 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11462 target option for controlling how much code inline expansion of
11463 memcmp() will be allowed to generate.
11464
11465 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11466
11467 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11468 hook_bool_mode_false, hook_bool_mode_true,
11469 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11470 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11471 hook_bool_const_rtx_insn_const_rtx_insn_true,
11472 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11473 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11474 hook_bool_const_tree_hwi_hwi_const_tree_false,
11475 hook_bool_const_tree_hwi_hwi_const_tree_true,
11476 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11477 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11478 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11479 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11480 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11481 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11482 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11483 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11484 hook_bool_uintp_uintp_false,
11485 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11486 hook_rtx_tree_int_null, hook_uint_mode_0,
11487 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11488 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11489 hook_constcharptr_const_rtx_insn_null,
11490 hook_constcharptr_const_tree_const_tree_null,
11491 hook_constcharptr_int_const_tree_null,
11492 hook_constcharptr_int_const_tree_const_tree_null,
11493 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11494 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11495 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11496
11497 * vec.h (vNULL): Extend comment to say = vNULL initialization
11498 isn't needed for static vars.
11499
11500 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11501 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11502 = vNULL initialization of file scope vec.
11503 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11504 disabled_pass_uid_range_tab): Likewise.
11505 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11506 * tree-chkp-opt.c (check_infos): Likewise.
11507 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11508
11509 * vec.h (vnull::operator vec): Add constexpr keyword for
11510 C++11 and later.
11511
11512 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11513
11514 PR tree-optimization/77654
11515 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11516 to duplicate_ssa_name_ptr_info.
11517
11518 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11519
11520 PR preprocessor/77672
11521 * input.c (selftest::test_lexer_string_locations_simple): Update
11522 test to expect location information of the terminator character
11523 at the location of the final closing quote.
11524 (selftest::test_lexer_string_locations_hex): Likewise.
11525 (selftest::test_lexer_string_locations_oct): Likewise.
11526 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11527 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11528 (selftest::test_lexer_string_locations_ucn4): Likewise.
11529 (selftest::test_lexer_string_locations_ucn8): Likewise.
11530 (selftest::test_lexer_string_locations_u8): Likewise.
11531 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11532 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11533 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11534 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11535 (selftest::test_lexer_string_locations_macro): Likewise.
11536 (selftest::test_lexer_string_locations_long_line): Likewise.
11537
11538 2016-09-23 Richard Biener <rguenther@suse.de>
11539
11540 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11541 virtual definition to virtual use if the call devirtualizes
11542 to a const or pure function.
11543 (visit_use): Also visit calls we can devirtualize to a
11544 const or pure function.
11545
11546 2016-09-23 Richard Biener <rguenther@suse.de>
11547
11548 PR tree-optimization/77697
11549 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11550 signal error if we have sth ternary or unhandled.
11551
11552 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11553
11554 * config/arm/arm_neon.h (vabd_f16): New.
11555 (vabdq_f16): New.
11556 (vabs_f16): New.
11557 (vabsq_f16): New.
11558 (vadd_f16): New.
11559 (vaddq_f16): New.
11560 (vcage_f16): New.
11561 (vcageq_f16): New.
11562 (vcagt_f16): New.
11563 (vcagtq_f16): New.
11564 (vcale_f16): New.
11565 (vcaleq_f16): New.
11566 (vcalt_f16): New.
11567 (vcaltq_f16): New.
11568 (vceq_f16): New.
11569 (vceqq_f16): New.
11570 (vceqz_f16): New.
11571 (vceqzq_f16): New.
11572 (vcge_f16): New.
11573 (vcgeq_f16): New.
11574 (vcgez_f16): New.
11575 (vcgezq_f16): New.
11576 (vcgt_f16): New.
11577 (vcgtq_f16): New.
11578 (vcgtz_f16): New.
11579 (vcgtzq_f16): New.
11580 (vcle_f16): New.
11581 (vcleq_f16): New.
11582 (vclez_f16): New.
11583 (vclezq_f16): New.
11584 (vclt_f16): New.
11585 (vcltq_f16): New.
11586 (vcltz_f16): New.
11587 (vcltzq_f16): New.
11588 (vcvt_f16_s16): New.
11589 (vcvt_f16_u16): New.
11590 (vcvt_s16_f16): New.
11591 (vcvt_u16_f16): New.
11592 (vcvtq_f16_s16): New.
11593 (vcvtq_f16_u16): New.
11594 (vcvtq_s16_f16): New.
11595 (vcvtq_u16_f16): New.
11596 (vcvta_s16_f16): New.
11597 (vcvta_u16_f16): New.
11598 (vcvtaq_s16_f16): New.
11599 (vcvtaq_u16_f16): New.
11600 (vcvtm_s16_f16): New.
11601 (vcvtm_u16_f16): New.
11602 (vcvtmq_s16_f16): New.
11603 (vcvtmq_u16_f16): New.
11604 (vcvtn_s16_f16): New.
11605 (vcvtn_u16_f16): New.
11606 (vcvtnq_s16_f16): New.
11607 (vcvtnq_u16_f16): New.
11608 (vcvtp_s16_f16): New.
11609 (vcvtp_u16_f16): New.
11610 (vcvtpq_s16_f16): New.
11611 (vcvtpq_u16_f16): New.
11612 (vcvt_n_f16_s16): New.
11613 (vcvt_n_f16_u16): New.
11614 (vcvtq_n_f16_s16): New.
11615 (vcvtq_n_f16_u16): New.
11616 (vcvt_n_s16_f16): New.
11617 (vcvt_n_u16_f16): New.
11618 (vcvtq_n_s16_f16): New.
11619 (vcvtq_n_u16_f16): New.
11620 (vfma_f16): New.
11621 (vfmaq_f16): New.
11622 (vfms_f16): New.
11623 (vfmsq_f16): New.
11624 (vmax_f16): New.
11625 (vmaxq_f16): New.
11626 (vmaxnm_f16): New.
11627 (vmaxnmq_f16): New.
11628 (vmin_f16): New.
11629 (vminq_f16): New.
11630 (vminnm_f16): New.
11631 (vminnmq_f16): New.
11632 (vmul_f16): New.
11633 (vmul_lane_f16): New.
11634 (vmul_n_f16): New.
11635 (vmulq_f16): New.
11636 (vmulq_lane_f16): New.
11637 (vmulq_n_f16): New.
11638 (vneg_f16): New.
11639 (vnegq_f16): New.
11640 (vpadd_f16): New.
11641 (vpmax_f16): New.
11642 (vpmin_f16): New.
11643 (vrecpe_f16): New.
11644 (vrecpeq_f16): New.
11645 (vrnd_f16): New.
11646 (vrndq_f16): New.
11647 (vrnda_f16): New.
11648 (vrndaq_f16): New.
11649 (vrndm_f16): New.
11650 (vrndmq_f16): New.
11651 (vrndn_f16): New.
11652 (vrndnq_f16): New.
11653 (vrndp_f16): New.
11654 (vrndpq_f16): New.
11655 (vrndx_f16): New.
11656 (vrndxq_f16): New.
11657 (vrsqrte_f16): New.
11658 (vrsqrteq_f16): New.
11659 (vrecps_f16): New.
11660 (vrecpsq_f16): New.
11661 (vrsqrts_f16): New.
11662 (vrsqrtsq_f16): New.
11663 (vsub_f16): New.
11664 (vsubq_f16): New.
11665
11666 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11667
11668 * config.gcc (extra_headers): Add arm_fp16.h
11669 * config/arm/arm_fp16.h: New.
11670 * config/arm/arm_neon.h: Include "arm_fp16.h".
11671
11672 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11673
11674 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11675 variants).
11676 (vmulf): New (v8hf, v4hf variants).
11677 (vfma): New (v8hf, v4hf variants).
11678 (vfms): New (v8hf, v4hf variants).
11679 (vsub): New (v8hf, v4hf variants).
11680 (vcage): New (v8hf, v4hf variants).
11681 (vcagt): New (v8hf, v4hf variants).
11682 (vcale): New (v8hf, v4hf variants).
11683 (vcalt): New (v8hf, v4hf variants).
11684 (vceq): New (v8hf, v4hf variants).
11685 (vcgt): New (v8hf, v4hf variants).
11686 (vcge): New (v8hf, v4hf variants).
11687 (vcle): New (v8hf, v4hf variants).
11688 (vclt): New (v8hf, v4hf variants).
11689 (vceqz): New (v8hf, v4hf variants).
11690 (vcgez): New (v8hf, v4hf variants).
11691 (vcgtz): New (v8hf, v4hf variants).
11692 (vcltz): New (v8hf, v4hf variants).
11693 (vclez): New (v8hf, v4hf variants).
11694 (vabd): New (v8hf, v4hf variants).
11695 (vmaxf): New (v8hf, v4hf variants).
11696 (vmaxnm): New (v8hf, v4hf variants).
11697 (vminf): New (v8hf, v4hf variants).
11698 (vminnm): New (v8hf, v4hf variants).
11699 (vpmaxf): New (v4hf variant).
11700 (vpminf): New (v4hf variant).
11701 (vpadd): New (v4hf variant).
11702 (vrecps): New (v8hf, v4hf variants).
11703 (vrsqrts): New (v8hf, v4hf variants).
11704 (vabs): New (v8hf, v4hf variants).
11705 (vneg): New (v8hf, v4hf variants).
11706 (vrecpe): New (v8hf, v4hf variants).
11707 (vrnd): New (v8hf, v4hf variants).
11708 (vrnda): New (v8hf, v4hf variants).
11709 (vrndm): New (v8hf, v4hf variants).
11710 (vrndn): New (v8hf, v4hf variants).
11711 (vrndp): New (v8hf, v4hf variants).
11712 (vrndx): New (v8hf, v4hf variants).
11713 (vrsqrte): New (v8hf, v4hf variants).
11714 (vmul_lane): Add v4hf and v8hf variants.
11715 (vmul_n): Add v4hf and v8hf variants.
11716 (vext): New (v8hf, v4hf variants).
11717 (vcvts): New (v8hi, v4hi variants).
11718 (vcvts): New (v8hf, v4hf variants).
11719 (vcvtu): New (v8hi, v4hi variants).
11720 (vcvtu): New (v8hf, v4hf variants).
11721 (vcvts_n): New (v8hf, v4hf variants).
11722 (vcvtu_n): New (v8hi, v4hi variants).
11723 (vcvts_n): New (v8hi, v4hi variants).
11724 (vcvtu_n): New (v8hf, v4hf variants).
11725 (vbsl): New (v8hf, v4hf variants).
11726 (vcvtas): New (v8hf, v4hf variants).
11727 (vcvtau): New (v8hf, v4hf variants).
11728 (vcvtms): New (v8hf, v4hf variants).
11729 (vcvtmu): New (v8hf, v4hf variants).
11730 (vcvtns): New (v8hf, v4hf variants).
11731 (vcvtnu): New (v8hf, v4hf variants).
11732 (vcvtps): New (v8hf, v4hf variants).
11733 (vcvtpu): New (v8hf, v4hf variants).
11734
11735 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11736
11737 * config/arm/arm-builtins.c (hf_UP): New.
11738 (si_UP): New.
11739 (vfp_builtin_data): New. Update comment.
11740 (enum arm_builtins): Include "arm_vfp_builtins.def".
11741 (ARM_BUILTIN_VFP_PATTERN_START): New.
11742 (arm_init_vfp_builtins): New.
11743 (arm_init_builtins): Add arm_init_vfp_builtins.
11744 (arm_expand_vfp_builtin): New.
11745 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11746 long line.
11747 * config/arm/arm_vfp_builtins.def: New file.
11748 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11749 (arm-builtins.o): Likewise.
11750
11751 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11752
11753 PR ipa/77677
11754 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11755 from constant while creating value range.
11756
11757 2016-09-23 Renlin Li <renlin.li@arm.com>
11758
11759 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11760 (ira_init_once): Here.
11761
11762 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11763 Jakub Jelinek <jakub@redhat.com>
11764
11765 * hooks.h (hook_uint_uintp_false): Rename to...
11766 (hook_bool_uint_uintp_false): ... this.
11767 * hooks.c (hook_uint_uintp_false): Rename to...
11768 (hook_bool_uint_uintp_false): ... this.
11769 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11770 instead of hook_uint_uintp_false.
11771
11772 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11773
11774 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11775 (arm_init_builtins): Move body of a loop to the standalone
11776 function arm_init_neon_builtin.
11777 (arm_expand_neon_builtin_1): New. Update comment. Function body
11778 moved from arm_neon_builtin with some white-space fixes.
11779 (arm_expand_neon_builtin): Move code into the standalone function
11780 arm_expand_neon_builtin_1.
11781
11782 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11783
11784 * config/arm/iterators.md (VCVTHI): New.
11785 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11786 (NEON_VAGLTE): New.
11787 (VFM_LANE_AS): New.
11788 (VH_CVTTO): New.
11789 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11790 (V_HALF): Add V4HF. Fix white-space.
11791 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
11792 (V_s_elem): Likewise.
11793 (V_sz_elem): Fix white-space.
11794 (V_elem_ch): Likewise.
11795 (VH_elem_ch): New.
11796 (scalar_mul_constraint): Add V8HF and V4HF.
11797 (Is_float_mode): Fix white-space.
11798 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
11799 (q): Add HF. Fix white-space.
11800 (float_sup): New.
11801 (float_SUP): New.
11802 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
11803 (neon_vfm_lane_as): New.
11804 * config/arm/neon.md (add<mode>3_fp16): New.
11805 (sub<mode>3_fp16): New.
11806 (mul<mode>3add<mode>_neon): New.
11807 (fma<VH:mode>4_intrinsic): New.
11808 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
11809 (fmsub<VH:mode>4_intrinsic): New.
11810 (<absneg_str><mode>2): New.
11811 (neon_v<absneg_str><mode>): New.
11812 (neon_v<fp16_rnd_str><mode>): New.
11813 (neon_vrsqrte<mode>): New.
11814 (neon_vpaddv4hf): New.
11815 (neon_vadd<mode>): New.
11816 (neon_vsub<mode>): New.
11817 (neon_vmulf<mode>): New.
11818 (neon_vfma<VH:mode>): New.
11819 (neon_vfms<VH:mode>): New.
11820 (neon_vc<cmp_op><mode>): New.
11821 (neon_vc<cmp_op><mode>_fp16insn): New
11822 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
11823 (neon_vca<cmp_op><mode>): New.
11824 (neon_vca<cmp_op><mode>_fp16insn): New.
11825 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
11826 (neon_vc<cmp_op>z<mode>): New.
11827 (neon_vabd<mode>): New.
11828 (neon_v<maxmin>f<mode>): New.
11829 (neon_vp<maxmin>fv4hf: New.
11830 (neon_<fmaxmin_op><mode>): New.
11831 (neon_vrecps<mode>): New.
11832 (neon_vrsqrts<mode>): New.
11833 (neon_vrecpe<mode>): New (VH variant).
11834 (neon_vdup_lane<mode>_internal): New.
11835 (neon_vdup_lane<mode>): New.
11836 (neon_vcvt<sup><mode>): New (VCVTHI variant).
11837 (neon_vcvt<sup><mode>): New (VH variant).
11838 (neon_vcvt<sup>_n<mode>): New (VH variant).
11839 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
11840 (neon_vcvt<vcvth_op><sup><mode>): New.
11841 (neon_vmul_lane<mode>): New.
11842 (neon_vmul_n<mode>): New.
11843 * config/arm/unspecs.md (UNSPEC_VCALE): New
11844 (UNSPEC_VCALT): New.
11845 (UNSPEC_VFMA_LANE): New.
11846 (UNSPECS_VFMS_LANE): New.
11847
11848 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11849
11850 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
11851 ("*extzv<mode><clobbercc_or_nocc>"):
11852 Correct a typo in a comment.
11853 Merged patterns.
11854 ("*insv<mode>_zEC12", "*insv<mode>_z10")
11855 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
11856 ("*insv<mode>_zEC12_appendbitsleft")
11857 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
11858 ("*insv<mode>_z10_appendbitsleft"): Ditto.
11859 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
11860 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
11861 Provide pattern with operands switched.
11862 ("*pre_z10_extv<mode>"):
11863 Use new subst patterns.
11864 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
11865 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
11866 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
11867 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
11868 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
11869 ("*<risbg_n>_sidi_ior_and_lshiftrt")
11870 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
11871 New patterns.
11872 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
11873 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
11874 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
11875 on zEC12.
11876 ("SINT"): New mode_iterator with SI, HI, QI.
11877 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
11878 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
11879 duplication.
11880
11881 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11882
11883 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
11884 new interface of s390_contiguous_bitmask_p.
11885 ("contiguous_bitmask_nowrap_operand"): New predicate.
11886 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
11887 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
11888 of s390_contiguous_bitmask_p.
11889 ("NxxDw"): Rename NxxDq constraint to NxxDw.
11890 ("NxxSw"): New constraint.
11891 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
11892 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
11893 interface.
11894 (s390_contiguous_bitmask_nowrap_p): Export.
11895 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
11896 former s390_contiguous_bitmask_p.
11897 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
11898 detect contiguous bit ranges with wraparound. Change signature to
11899 return START and END position instead of POS and LENGTH.
11900 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
11901 ranges with wraparound.
11902 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
11903 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
11904 Adapt to new signature of s390_contiguous_bitmask_p.
11905
11906 2016-09-23 Bin Cheng <bin.cheng@arm.com>
11907
11908 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
11909 (create_intersect_range_checks): New.
11910 (vect_create_cond_for_alias_checks): Call above function.
11911
11912 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11913
11914 * config/arm/iterators.md (Code iterators): Fix some white-space
11915 in the comments.
11916 (GLTE): New.
11917 (ABSNEG): New
11918 (FCVT): Moved from vfp.md.
11919 (VCVT_HF_US_N): New.
11920 (VCVT_SI_US_N): New.
11921 (VCVT_HF_US): New.
11922 (VCVTH_US): New.
11923 (FP16_RND): New.
11924 (absneg_str): New.
11925 (FCVTI32typename): Moved from vfp.md.
11926 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
11927 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
11928 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
11929 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
11930 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
11931 (vcvth_op): New.
11932 (fp16_rnd_str): New.
11933 (fp16_rnd_insn): New.
11934 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
11935 (UNSPEC_VCVT_HF_U_N): New.
11936 (UNSPEC_VCVT_SI_S_N): New.
11937 (UNSPEC_VCVT_SI_U_N): New.
11938 (UNSPEC_VCVTH_S): New.
11939 (UNSPEC_VCVTH_U): New.
11940 (UNSPEC_VCVTA_S): New.
11941 (UNSPEC_VCVTA_U): New.
11942 (UNSPEC_VCVTM_S): New.
11943 (UNSPEC_VCVTM_U): New.
11944 (UNSPEC_VCVTN_S): New.
11945 (UNSPEC_VCVTN_U): New.
11946 (UNSPEC_VCVTP_S): New.
11947 (UNSPEC_VCVTP_U): New.
11948 (UNSPEC_VCVTP_S): New.
11949 (UNSPEC_VCVTP_U): New.
11950 (UNSPEC_VRND): New.
11951 (UNSPEC_VRNDA): New.
11952 (UNSPEC_VRNDI): New.
11953 (UNSPEC_VRNDM): New.
11954 (UNSPEC_VRNDN): New.
11955 (UNSPEC_VRNDP): New.
11956 (UNSPEC_VRNDX): New.
11957 * config/arm/vfp.md (<absneg_str>hf2): New.
11958 (neon_vabshf): New.
11959 (neon_v<fp16_rnd_str>hf): New.
11960 (neon_vrndihf): New.
11961 (addhf3): New.
11962 (subhf3): New.
11963 (divhf3): New.
11964 (mulhf3): New.
11965 (*mulsf3neghf_vfp): New.
11966 (*negmulhf3_vfp): New.
11967 (*mulsf3addhf_vfp): New.
11968 (*mulhf3subhf_vfp): New.
11969 (*mulhf3neghfaddhf_vfp): New.
11970 (*mulhf3neghfsubhf_vfp): New.
11971 (fmahf4): New.
11972 (neon_vfmahf): New.
11973 (fmsubhf4_fp16): New.
11974 (neon_vfmshf): New.
11975 (*fnmsubhf4): New.
11976 (*fnmaddhf4): New.
11977 (neon_vsqrthf): New.
11978 (neon_vrsqrtshf): New.
11979 (FCVT): Move to iterators.md.
11980 (FCVTI32typename): Likewise.
11981 (neon_vcvth<sup>hf): New.
11982 (neon_vcvth<sup>si): New.
11983 (neon_vcvth<sup>_nhf_unspec): New.
11984 (neon_vcvth<sup>_nhf): New.
11985 (neon_vcvth<sup>_nsi_unspec): New.
11986 (neon_vcvth<sup>_nsi): New.
11987 (neon_vcvt<vcvth_op>h<sup>si): New.
11988 (neon_<fmaxmin_op>hf): New.
11989
11990 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11991
11992 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11993 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11994 ("*insv<mode>_zEC12_appendbitsleft")
11995 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11996 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11997
11998 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11999
12000 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12001 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12002 construct values without normalization.
12003 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12004 static local lhs_ops to vNULL.
12005
12006 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12007 Jiong Wang <jiong.wang@arm.com>
12008
12009 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12010 available when FP16 instructions are available.
12011 (output_move_vfp): Add support for 16-bit data moves.
12012 (arm_validize_comparison): Fix some white-space. Support HFmode
12013 by conversion to SFmode.
12014 * config/arm/arm.md (truncdfhf2): Fix a comment.
12015 (extendhfdf2): Likewise.
12016 (cstorehf4): New.
12017 (movsicc): Fix some white-space.
12018 (movhfcc): New.
12019 (movsfcc): Fix some white-space.
12020 (*cmovhf): New.
12021 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12022 instructions are available.
12023 (*thumb2_movhi_vfp): Likewise.
12024 (*arm_movhi_fp16): New.
12025 (*thumb2_movhi_fp16): New.
12026 (*movhf_vfp_fp16): New.
12027 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12028 (*movhf_vfp): Likewise.
12029 (extendhfsf2): Enable when VFP FP16 instructions are available.
12030 (truncsfhf2): Enable when VFP FP16 instructions are available.
12031
12032 2016-09-23 Martin Liska <mliska@suse.cz>
12033
12034 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12035
12036 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12037
12038 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12039 V4HF modes.
12040 (arm_evpc_neon_vtrn): Likewise.
12041 (arm_evpc_neon_vrev): Likewise.
12042 (arm_evpc_neon_vext): Likewise.
12043 * config/arm/arm_neon.h (vbsl_f16): New.
12044 (vbslq_f16): New.
12045 (vdup_n_f16): New.
12046 (vdupq_n_f16): New.
12047 (vdup_lane_f16): New.
12048 (vdupq_lane_f16): New.
12049 (vext_f16): New.
12050 (vextq_f16): New.
12051 (vmov_n_f16): New.
12052 (vmovq_n_f16): New.
12053 (vrev64_f16): New.
12054 (vrev64q_f16): New.
12055 (vtrn_f16): New.
12056 (vtrnq_f16): New.
12057 (vuzp_f16): New.
12058 (vuzpq_f16): New.
12059 (vzip_f16): New.
12060 (vzipq_f16): New.
12061 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12062 (vdup_lane): New (v8hf, v4hf variants).
12063 (vext): New (v8hf, v4hf variants).
12064 (vbsl): New (v8hf, v4hf variants).
12065 * config/arm/iterators.md (VDQWH): New.
12066 (VH): New.
12067 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12068 (Scalar_mul_8_16): Fix white-space.
12069 (Is_d_reg): Add V4HF and V8HF.
12070 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12071 (neon_vdup_lane<mode>): New.
12072 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12073 (*neon_vtrn<mode>_insn): Likewise.
12074 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12075 (*neon_vzip<mode>_insn): Likewise
12076 (neon_vuzp<mode>_internal): Likewise.
12077 (*neon_vuzp<mode>_insn): Likewise
12078 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12079
12080 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12081 Matthew Wahab <matthew.wahab@arm.com>
12082
12083 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12084 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12085 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12086 available. Also fix some white-space.
12087 * config/arm/vfp.md (*arm_movhi_vfp): New.
12088 (*thumb2_movhi_vfp): New.
12089
12090 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12091
12092 * config/arm/arm-c.c (arm_cpu_builtins): Define
12093 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12094 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12095
12096 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12097
12098 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12099 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12100 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12101 arm_v8_2a_fp16_neon_hw.
12102 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12103 arm_v8_2a_neon.
12104
12105 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12106
12107 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12108 arm_fp16_alternative_ok and arm_fp16_none_ok.
12109
12110 2016-09-23 Martin Liska <mliska@suse.cz>
12111
12112 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12113
12114 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12115
12116 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12117 ("armv8.2-a"): New.
12118 ("armv8.2-a+fp16"): New.
12119 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12120 (FL2_FP16INST): New.
12121 (FL2_FOR_ARCH8_2A): New.
12122 * config/arm/arm-tables.opt: Regenerate.
12123 * config/arm/arm.c (arm_arch8_2): New.
12124 (arm_fp16_inst): New.
12125 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12126 for incompatible fp16-format settings.
12127 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12128 (TARGET_NEON_FP16INST): New.
12129 (arm_arch8_2): Declare.
12130 (arm_fp16_inst): Declare.
12131 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12132 march=armv8.2-a and march=armv8.2-a+fp16.
12133 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12134 and armv8.2-a+fp16.
12135 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12136 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12137
12138 2016-09-23 Martin Liska <mliska@suse.cz>
12139
12140 * doc/extend.texi: Remove fused-madd from i386 target options.
12141
12142 2016-09-23 Martin Liska <mliska@suse.cz>
12143
12144 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12145 Handle movbe.
12146
12147 2016-09-23 Martin Liska <mliska@suse.cz>
12148
12149 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12150 Handle crc32.
12151
12152 2016-09-23 Martin Liska <mliska@suse.cz>
12153
12154 PR target/71652
12155 * config/i386/i386.c (ix86_option_override_internal): Change
12156 signature and return false when there's an error related to
12157 arch string.
12158 (release_options_strings): New function.
12159 (ix86_valid_target_attribute_tree): Call the function.
12160
12161 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12162
12163 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12164 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12165 (gen_hsa_ctor_assignment): Likewise.
12166 * print-tree.c (print_node): Likewise.
12167 * tree-dump.c (dequeue_and_dump): Likewise.
12168 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12169 * expr.c (store_constructor): Likewise.
12170 * fold-const.c (operand_equal_p): Likewise.
12171 * tree-pretty-print.c (dump_generic_node): Likewise.
12172 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12173 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12174
12175 2016-09-23 Richard Biener <rguenther@suse.de>
12176
12177 * hooks.h (hook_uint_uintp_false): Declare.
12178
12179 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12180
12181 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12182 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12183
12184 2016-09-22 Martin Sebor <msebor@redhat.com>
12185
12186 PR target/77676
12187 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12188 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12189 (target_int_min): Correct computation.
12190 (format_integer): Use long long as the argument for the ll length
12191 modifier.
12192 (format_floating): Use target_int_max().
12193 (get_string_length): Same.
12194 (format_string): Avoid setting the bounded flag for strings
12195 of unknown length.
12196 (try_substitute_return_value): Avoid setting range info when
12197 the result isn't bounded.
12198 * varasm.c (assemble_name): Increase buffer size.
12199
12200 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12201 Terry Guo <terry.guo@arm.com>
12202
12203 * target.def (elf_flags_numeric): New target hook.
12204 * targhooks.h (default_asm_elf_flags_numeric): New.
12205 * varasm.c (default_asm_elf_flags_numeric): New.
12206 (default_elf_asm_named_section): Use new target hook.
12207 * config/arm/arm.opt (mpure-code): New.
12208 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12209 * config/arm/arm.c (arm_asm_init_sections): Add section
12210 attribute to default text section if -mpure-code.
12211 (arm_option_check_internal): Diagnose use of option with
12212 non supported targets and/or options.
12213 (arm_asm_elf_flags_numeric): New.
12214 (arm_function_section): New.
12215 (arm_elf_section_type_flags): New.
12216 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12217 for -mpure-code.
12218 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12219 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12220
12221 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12222
12223 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12224
12225 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12226
12227 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12228 * rtl.h: Adjust prototype.
12229
12230 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12231
12232 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12233 (prev_active_insn): Likewise.
12234 (active_insn_p): Likewise.
12235 * rtl.h: Adjust prototypes.
12236 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12237 * config/arc/arc.md: Likewise.
12238 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12239 (branch_needs_nop_p): Likewise.
12240 (use_skip_p): Likewise.
12241 * config/sh/sh.c (gen_block_redirect): Likewise.
12242 (split_branches): Likewise.
12243 * reorg.c (optimize_skip): Likewise.
12244 (fill_simple_delay_slots): Likewise.
12245 (fill_slots_from_thread): Likewise.
12246 (relax_delay_slots): Likewise.
12247 * resource.c (mark_target_live_regs): Likewise.
12248
12249 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12250
12251 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12252 type to rtx_insn *.
12253 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12254 (prev_nonnote_nondebug_insn): Likewise.
12255 * config/cris/cris-protos.h: Adjust prototype.
12256 * rtl.h: Likewise.
12257 * jump.c (rtx_renumbered_equal_p): Adjust.
12258
12259 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12260
12261 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12262 * rtl.h: Adjust prototype.
12263 * config/sh/sh.md: Adjust.
12264 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12265
12266 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12267
12268 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12269 (prev_nondebug_insn): Likewise.
12270 * loop-doloop.c (doloop_condition_get): Likewise.
12271 * rtl.h: Adjust prototype.
12272 * cfgloop.h: Likewise.
12273
12274 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12275
12276 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12277 (prev_nonnote_insn): Likewise.
12278 * jump.c (reversed_comparison_code_parts): Likewise.
12279 (reversed_comparison): Likewise.
12280 * rtl.h: Adjust prototypes.
12281 * config/arc/arc.md: Adjust.
12282 * cse.c (find_comparison_args): Likewise.
12283 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12284 (fix_reg_dead_note): Change argument type to rtx_insn *.
12285 (delete_prior_computation): Likewise.
12286 (delete_computation): Likewise.
12287 (fill_slots_from_thread): Adjust.
12288 (relax_delay_slots): Likewise.
12289 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12290 (simplify_relational_operation_1): Likewise.
12291 (simplify_ternary_operation): Likewise.
12292
12293 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12294
12295 * config/arc/arc-protos.h (arc_label_align): Change type of
12296 variables from rtx to rtx_insn *.
12297 * config/arc/arc.c (arc_label_align): Likewise.
12298 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12299 * config/bfin/bfin.c (workaround_speculation): Likewise.
12300 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12301 (find_last_same_clock): Likewise.
12302 (reorg_split_calls): Likewise.
12303 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12304 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12305 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12306 (same_cmp_following_p): Likewise.
12307 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12308 (same_cmp_following_p): Likwise.
12309 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12310 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12311 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12312 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12313 (rl78_alloc_physical_registers_cmp): Likewise.
12314 (rl78_alloc_physical_registers_umul): Likewise.
12315 (rl78_calculate_death_notes): Likewise.
12316 * config/s390/s390-protos.h (s390_label_align): Likewise.
12317 * config/s390/s390.c (s390_label_align): Likewise.
12318 * config/sh/sh.c (barrier_align): Likewise.
12319 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12320 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12321 (emit_cbcond_nop): Likewise.
12322
12323 2016-09-22 Martin Liska <mliska@suse.cz>
12324
12325 PR ipa/77653
12326 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12327 alias address matters, not necessarily address of original.
12328
12329 2016-09-22 Richard Biener <rguenther@suse.de>
12330
12331 PR middle-end/77697
12332 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12333 fold fails.
12334
12335 2016-09-22 Richard Biener <rguenther@suse.de>
12336
12337 PR middle-end/77677
12338 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12339 from constant folding results.
12340 (gimple_resimplify2): Likewise.
12341 (gimple_resimplify3): Likewise.
12342
12343 2016-09-22 Richard Biener <rguenther@suse.de>
12344
12345 PR middle-end/77678
12346 * expr.c (expand_expr_real_1): Guard array access against negative
12347 offset.
12348
12349 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12350
12351 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12352 of MPFR_RNDN.
12353 (format_floating): Likewise.
12354
12355 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12356
12357 PR fortran/77665
12358 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12359 for all IFN_GOMP_SIMD_* internal fns, not just for
12360 IFN_GOMP_SIMD_ORDERED_*.
12361
12362 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12363
12364 PR target/77670
12365 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12366 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12367 instructions when you want to invert the test.
12368 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12369 correct order for XXSEL.
12370 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12371 for using XSCMP{EQ,GT,GE}DP.
12372
12373 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12374
12375 * genconstants.c (main): Introduce noop_reader and convert call
12376 to read_md_files to a method call.
12377 * genenums.c (main): Likewise.
12378 * genmddeps.c (main): Likewise.
12379 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12380 rtx_reader_ptr->get_top_level_filename ().
12381 (write_tm_preds_h): Likewise.
12382 (write_insn_preds_c): Likewise.
12383 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12384 (rtx_handle_directive): Convert to...
12385 (gen_reader::handle_unknown_directive): ...this.
12386 (init_rtx_reader_args_cb): Convert return type from bool to
12387 rtx_reader *. Create a gen_reader instance, using it for the
12388 call to read_md_files. Return it if no errors occur.
12389 (init_rtx_reader_args): Convert return type from bool to
12390 rtx_reader *.
12391 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12392 (init_rtx_reader_args_cb): Likewise.
12393 * read-md.c (struct file_name_list): Move to class rtx_reader.
12394 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12395 (read_md_filename): Delete in favor of
12396 rtx_reader::m_read_md_filename.
12397 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12398 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12399 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12400 (first_dir_md_include): Delete in favor of
12401 rtx_reader::m_first_dir_md_include.
12402 (last_dir_md_include_ptr): Delete in favor of
12403 rtx_reader::m_last_dir_md_include_ptr.
12404 (max_include_len): Delete.
12405 (rtx_reader_ptr): New.
12406 (fatal_with_file_and_line): Use get_filename and get_lineno
12407 accessors of rtx_reader_ptr.
12408 (require_char_ws): Likewise.
12409 (rtx_reader::read_char): New method, based on ::read_char.
12410 (rtx_reader::unread_char): New method, based on ::unread_char.
12411 (read_escape): Use get_filename and get_lineno accessors of
12412 rtx_reader_ptr.
12413 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12414 (read_string): Use get_filename and get_lineno accessors of
12415 rtx_reader_ptr.
12416 (rtx_reader::rtx_reader): New ctor.
12417 (rtx_reader::~rtx_reader): New dtor.
12418 (handle_include): Convert from a function to...
12419 (rtx_reader::handle_include): ...this method, converting
12420 handle_directive from a callback to a virtual function.
12421 (handle_file): Likewise, converting to...
12422 (rtx_reader::handle_file): ...this method.
12423 (handle_toplevel_file): Likewise, converting to...
12424 (rtx_reader::handle_toplevel_file): ...this method.
12425 (rtx_reader::get_current_location): New method.
12426 (parse_include): Convert from a function to...
12427 (rtx_reader::add_include_path): ...this method, dropping redundant
12428 update to unused max_include_len.
12429 (read_md_files): Convert from a function to...
12430 (rtx_reader::read_md_files): ...this method, converting
12431 handle_directive from a callback to a virtual function.
12432 (noop_reader::handle_unknown_directive): New method.
12433 * read-md.h (directive_handler_t): Delete this typedef.
12434 (in_fname): Delete.
12435 (read_md_file): Delete.
12436 (read_md_lineno): Delete.
12437 (read_md_filename): Delete.
12438 (class rtx_reader): New class.
12439 (rtx_reader_ptr): New decl.
12440 (class noop_reader): New subclass of rtx_reader.
12441 (read_char): Reimplement in terms of rtx_reader::read_char.
12442 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12443 (read_md_files): Delete.
12444 * read-rtl.c (read_rtx_code): Update for deletion of globals
12445 read_md_filename and read_md_lineno.
12446
12447 2016-09-21 Jason Merrill <jason@redhat.com>
12448
12449 * input.h (from_macro_definition_at): New.
12450
12451 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12452
12453 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12454
12455 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12456
12457 PR tree-optimization/77550
12458 * tree-vect-stmts.c (create_array_ref): Change parameters.
12459 (get_group_alias_ptr_type): New function.
12460 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12461
12462 2016-09-21 Marek Polacek <polacek@redhat.com>
12463
12464 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12465 Add falls through comment.
12466
12467 2016-09-21 Richard Biener <rguenther@suse.de>
12468
12469 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12470 (replace_child): Likewise.
12471 (remove_child_TAG): Adjust.
12472 (move_marked_base_types): Likewise.
12473 (prune_unused_types_prune): Clear die_sib of removed children.
12474
12475 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12476
12477 PR target/77326
12478 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12479 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12480
12481 2016-09-21 Richard Biener <rguenther@suse.de>
12482
12483 PR tree-optimization/77648
12484 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12485 with complex RHS.
12486 (make_transitive_closure_constraints): Adjust comment.
12487 (make_any_offset_constraints): New function.
12488 (handle_rhs_call): Make sure to first expand a pointer to all
12489 subfields before transitively closing it.
12490 (handle_const_call): Likewise. Properly expand returned
12491 pointers as well.
12492 (handle_pure_call): Likewise.
12493
12494 2016-09-21 Richard Biener <rguenther@suse.de>
12495 Jakub Jelinek <jakub@redhat.com>
12496
12497 PR tree-optimization/77621
12498 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12499 group at non-vectorizable stmts.
12500
12501 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12502
12503 PR tree-optimization/72835
12504 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12505 (make_new_ssa_for_all_defs): Likewise.
12506 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12507
12508 2016-09-20 Martin Sebor <msebor@redhat.com>
12509
12510 PR middle-end/49905
12511 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12512 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12513 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12514 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12515 * config/sol2.c (solaris_printf_pointer_format): New function.
12516 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12517 options.
12518 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12519 * doc/tm.texi: Regenerate.
12520 * gimple-fold.h (get_range_strlen): New function.
12521 (get_maxval_strlen): Declare existing function.
12522 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12523 maximum and minimum.
12524 (get_range_strlen): Define overload.
12525 (get_maxval_strlen): Adjust.
12526 * gimple-ssa-sprintf.c: New file and pass.
12527 * passes.def (pass_sprintf_length): Add new pass.
12528 * targhooks.h (default_printf_pointer_format): Declare new function.
12529 (gnu_libc_printf_pointer_format): Same.
12530 (solaris_libc_printf_pointer_format): Same.
12531 * targhooks.c (default_printf_pointer_format): Define new function.
12532 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12533 * print-tree.c: Increase buffer size.
12534
12535 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12536
12537 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12538
12539 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12540
12541 * common.opt: New option -fipa-vrp.
12542 * ipa-cp.c (ipa_get_vr_lat): New.
12543 (ipcp_vr_lattice::print): Likewise.
12544 (print_all_lattices): Call ipcp_vr_lattice::print.
12545 (ipcp_vr_lattice::meet_with): New.
12546 (ipcp_vr_lattice::meet_with_1): Likewise.
12547 (ipcp_vr_lattice::top_p): Likewise.
12548 (ipcp_vr_lattice::bottom_p): Likewsie.
12549 (ipcp_vr_lattice::set_to_bottom): Likewise.
12550 (set_all_contains_variable): Call VR set_to_bottom.
12551 (initialize_node_lattices): Init VR lattices.
12552 (propagate_vr_accross_jump_function): New.
12553 (propagate_constants_accross_call): Call
12554 propagate_vr_accross_jump_function.
12555 (ipcp_store_vr_results): New.
12556 (ipcp_driver): Handle VR.
12557 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12558 (ipa_set_jf_unknown): Likewise.
12559 (ipa_compute_jump_functions_for_edge): Likewise.
12560 (ipa_node_params_t::duplicate): Likewise.
12561 (ipa_write_jump_function): Likewise.
12562 (ipa_read_jump_function): Likewise.
12563 (write_ipcp_transformation_info): Likewise.
12564 (read_ipcp_transformation_info): Likewise.
12565 (ipcp_update_vr): New.
12566 (ipcp_transform_function): Handle VR.
12567 * ipa-prop.h (struct ipa_vr): New.
12568 * cgraph.c: Include tree-vrp.h.
12569 * cgraphunit.c: Likewise.
12570 * ipa-utils.c: Likewise.
12571 * ipa.c: Likewise.
12572 * opts.c: Likewise.
12573 * toplev.c: Likewise.
12574 * ipa-devirt.c: Likewise.
12575 * ipa-inline-transform.c: Likewise.
12576 * ipa-inline.c: Likewise.
12577 * ipa-profile.c: Likewise.
12578
12579 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12580
12581 * doc/invoke.texi: Document -fdump-tree-evrp.
12582 * passes.def: Define new pass_early_vrp.
12583 * timevar.def: Define new TV_TREE_EARLY_VRP.
12584 * tree-pass.h (make_pass_early_vrp): New.
12585 * tree-ssa-propagate.c: Make replace_uses_in non static.
12586 * tree-ssa-propagate.h: Export replace_uses_in.
12587 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12588 (extract_range_from_assert): Factor out
12589 extract_range_for_var_from_comparison_expr.
12590 (vrp_initialize_lattice): New.
12591 (vrp_initialize): Factor out vrp_initialize_lattice.
12592 (vrp_valueize): Fix it to reject complex value ranges.
12593 (vrp_free_lattice): New.
12594 (evrp_dom_walker::before_dom_children): Likewise.
12595 (evrp_dom_walker::after_dom_children): Likewise.
12596 (evrp_dom_walker::push_value_range): Likewise.
12597 (evrp_dom_walker::pop_value_range): Likewise.
12598 (execute_early_vrp): Likewise.
12599 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12600 (make_pass_early_vrp): New.
12601
12602 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12603
12604 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12605 instead of exact_log2.
12606
12607 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12608
12609 PR target/77621
12610 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12611 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12612 (ix86_add_stmt_cost): Penalize DFmode vector operations
12613 for !TARGET_VECTORIZE_DOUBLE.
12614
12615 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12616
12617 * doc/invoke.texi (Warning Options): Simplify language.
12618 (Optimize Options): Complete sentence.
12619
12620 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12621
12622 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12623 early_finish hook.
12624
12625 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12626
12627 PR target/71395
12628 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12629 inits on power8 and above, use the VMRGEW instruction instead of a
12630 permute.
12631
12632 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12633 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12634 initialization.
12635
12636 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12637
12638 * config/aarch64/arm_neon.h
12639 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12640 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12641 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12642
12643 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12644
12645 * config/var/vax.h (ELIMINABLE_REGS): Define.
12646 (INITIAL_ELIMINATION_OFFSET): Define.
12647
12648 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12649
12650 PR middle-end/77624
12651 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12652 cast to void * if the cast is from some other pointer type.
12653
12654 2016-09-20 Richard Biener <rguenther@suse.de>
12655
12656 PR tree-optimization/77646
12657 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12658 a VDEF.
12659
12660 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12661
12662 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12663 attributes to all inlined functions and make them extern.
12664
12665 2016-09-20 Richard Biener <rguenther@suse.de>
12666
12667 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12668 hook.
12669 * debug.c (do_nothing_debug_hooks): Adjust.
12670 * dbxout.c (dbx_debug_hooks): Likewise.
12671 * sdbout.c (sdb_debug_hooks): Likewise.
12672 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12673 (dwarf2out_finish): Move producer, filename and
12674 path annotation ...
12675 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12676 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12677
12678 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12679
12680 PR c++/77434
12681 * doc/invoke.texi: Document -Wint-in-bool-context.
12682
12683 PR middle-end/77421
12684 * dwarf2out.c (output_loc_operands): Fix an assertion.
12685
12686 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12687
12688 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12689 (CR_DECIMAL_DIG): New macro.
12690
12691 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12692
12693 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12694 element.
12695
12696 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12697
12698 PR rtl-optimization/77416
12699 * lra-remat.c (operand_to_remat): Process hard coded insn
12700 registers.
12701
12702 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12703
12704 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12705 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12706
12707 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12708
12709 * target.def (lra_p): Wordsmithing.
12710 * doc/tm.texi: Regenerate.
12711
12712 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12713 Jan Hubicka <jh@suse.cz>
12714
12715 PR target/77587
12716 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12717 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12718 Call ultimate_alias_target just once, not up to 4 times.
12719
12720 2016-09-19 Richard Biener <rguenther@suse.de>
12721
12722 * dwarf2out.c (early_dwarf_finished): New global.
12723 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12724 is false.
12725 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12726 if called from LTO exit early.
12727 (dwarf2out_late_global_decl): When being during the early
12728 debug phase do not add locations but only const value attributes.
12729 Adjust the way we generate early DIEs for LTO.
12730
12731 2016-09-19 Richard Biener <rguenther@suse.de>
12732
12733 PR middle-end/77605
12734 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12735 proper niter to bound the loops.
12736
12737 2016-09-19 Richard Biener <rguenther@suse.de>
12738
12739 PR tree-optimization/77514
12740 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12741 search for folded stmt.
12742
12743 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12744
12745 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12746 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12747 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12748 fsm_find_thread_path, profitable_jump_thread_path,
12749 fsm_find_control_statement_thread_paths,
12750 find_jump_threads_backwards): Add speed_p parameter.
12751 (pass_data_early_thread_jumps): New pass.
12752 (make_pass_early_thread_jumps): New function.
12753
12754 2016-09-17 Andreas Schwab <schwab@suse.de>
12755
12756 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12757 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12758
12759 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12760
12761 * recog.c (rest_of_handle_split_after_reload): Delete.
12762 (pass_split_after_reload::gate): New method.
12763 (pass_split_after_reload::execute): Call split_all_insns directly.
12764
12765 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12766
12767 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12768 parameters for functions taking long long arguments.
12769
12770 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12771
12772 PR target/77613
12773 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12774 splat with truncate.
12775
12776 2016-09-16 Jason Merrill <jason@redhat.com>
12777
12778 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12779 New.
12780 * hwint.c (exact_log2): Use pow2p_hwi.
12781 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12782 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12783 * builtins.c (get_object_alignment_2, get_object_alignment)
12784 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12785 least_bit_hwi.
12786 * calls.c (compute_argument_addresses, store_one_arg): Use
12787 least_bit_hwi.
12788 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12789 * combine.c (force_to_mode): Use least_bit_hwi.
12790 (contains_muldiv, find_split_point, combine_simplify_rtx)
12791 (simplify_if_then_else, simplify_set, force_to_mode)
12792 (if_then_else_cond, simplify_and_const_int_1)
12793 (simplify_compare_const): Use pow2p_hwi.
12794 * cse.c (fold_rtx): Use pow2p_hwi.
12795 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
12796 Use least_bit_hwi.
12797 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
12798 (init_expmed_one_conv): Use pow2p_hwi.
12799 * expr.c (is_aligning_offset): Use pow2p_hwi.
12800 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
12801 (fold_binary_loc): Use pow2p_hwi.
12802 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
12803 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
12804 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
12805 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
12806 Use least_bit_hwi.
12807 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
12808 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
12809 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
12810 * omp-low.c (oacc_loop_fixed_partitions)
12811 (oacc_loop_auto_partitions): Use least_bit_hwi.
12812 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
12813 * stor-layout.c (place_field): Use least_bit_hwi.
12814 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
12815 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
12816 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
12817 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
12818 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
12819 * tree-vect-data-refs.c (vect_analyze_group_access_1)
12820 (vect_grouped_store_supported, vect_grouped_load_supported)
12821 (vect_permute_load_chain, vect_shift_permute_load_chain)
12822 (vect_transform_grouped_load): Use pow2p_hwi.
12823 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
12824 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
12825 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
12826 least_bit_hwi.
12827 * tsan.c (instrument_expr): Use least_bit_hwi.
12828 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
12829
12830 2016-09-16 Andreas Schwab <schwab@suse.de>
12831
12832 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
12833 OFFSET, not offset.
12834 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12835
12836 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12837
12838 PR target/77526
12839 * combine.c (rest_of_handle_combine): If any edges have been purged,
12840 free dominators if available.
12841
12842 2016-09-16 Jakub Jelinek <jakub@redhat.com>
12843 Eric Botcazou <ebotcazou@adacore.com>
12844
12845 PR middle-end/77594
12846 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
12847 through into expand_addsub_overflow after expand_neg_overflow.
12848
12849 2016-09-15 David Malcolm <dmalcolm@redhat.com>
12850
12851 * diagnostic-show-locus.c
12852 (selftest::test_fixit_insert_containing_newline): New function.
12853 (selftest::test_fixit_replace_containing_newline): New function.
12854 (selftest::diagnostic_show_locus_c_tests): Call the above.
12855
12856 2016-09-15 Bin Cheng <bin.cheng@arm.com>
12857
12858 PR tree-optimization/77503
12859 * tree-vect-loop.c (vectorizable_reduction): Record reduction
12860 code for CONST_COND_REDUCTION at analysis stage and use it at
12861 transform stage.
12862 * tree-vectorizer.h (struct _stmt_vec_info): New field.
12863 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
12864 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
12865 field.
12866
12867 2016-09-15 Richard Biener <rguenther@suse.de>
12868
12869 PR middle-end/77544
12870 * fold-const.c (split_tree): Do not split constant ~X.
12871
12872 2016-09-15 Jakub Jelinek <jakub@redhat.com>
12873
12874 PR rtl-optimization/77425
12875 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
12876 is NULL.
12877
12878 PR middle-end/77475
12879 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
12880 use %qs instead of %s where desirable, use argument instead of arg in
12881 the diagnostic wording, add list of supported strategies and
12882 spellcheck hint.
12883 (ix86_option_override_internal): Emit target("m...") instead of
12884 option("m...") in the diagnostic. Use %qs instead of %s in invalid
12885 -march/-mtune option diagnostic. Add list of supported arches/tunings
12886 and spellcheck hint. Remove prefix, suffix and sw variables, use
12887 main_args_p ? "..." : "..." in diagnostics to make translation
12888 possible.
12889
12890 2016-09-15 Richard Biener <rguenther@suse.de>
12891
12892 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
12893 extra offset argument.
12894 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
12895 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
12896 to reflect new offset parameter.
12897 * doc/tm.texi: Regenerate.
12898 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12899 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
12900 offset argument.
12901 (darwin_asm_output_dwarf_offset): Likewise.
12902 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
12903 argument.
12904 (darwin_asm_output_dwarf_offset): Pass offset argument through.
12905 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
12906 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12907
12908 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
12909
12910 PR fortran/72743
12911 * ipa-icf.c (set_alias_uids): New function.
12912 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
12913 all the merged variable's referring aliases.
12914
12915 2016-09-15 Richard Biener <rguenther@suse.de>
12916
12917 PR tree-optimization/77514
12918 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
12919 only forced_stmts sequence.
12920
12921 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
12922
12923 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
12924 * cfgexpand.c (update_alias_info_with_stack_vars): Use
12925 FOR_EACH_SSA_NAME to iterate over SSA variables.
12926 (pass_expand::execute): Likewise.
12927 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
12928 * tree-cfg.c (dump_function_to_file): Likewise.
12929 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
12930 (update_ssa): Likewise.
12931 * tree-ssa-alias.c (dump_alias_info): Likewise.
12932 * tree-ssa-ccp.c (ccp_finalize): Likewise.
12933 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
12934 (create_outofssa_var_map): Likewise.
12935 (coalesce_ssa_name): Likewise.
12936 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
12937 * tree-ssa-pre.c (compute_avail): Likewise.
12938 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
12939 (scc_vn_restore_ssa_info): Likewise.
12940 (free_scc_vn): Likwise.
12941 (run_scc_vn): Likewise.
12942 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12943 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
12944 * tree-ssa-copy.c (fini_copy_prop): Likewise.
12945 * tree-ssa.c (verify_ssa): Likewise.
12946
12947 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
12948
12949 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12950 and mips64r2 as default 32-bit and 64-bit architectures.
12951 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12952 as default 32-bit and 64-bit architectures.
12953
12954 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12955
12956 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12957 of succ edge.
12958
12959 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12960
12961 * target.def (lra_p): Change commentary (for the manual) for the
12962 new default.
12963 * doc/tm.texi: Regenerate.
12964
12965 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12966
12967 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12968 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12969 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12970 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12971
12972 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12973
12974 * targhooks.c (default_lra_p): Return true instead of false.
12975
12976 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12977
12978 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12979 hook_bool_void_false.
12980 * config/avr/avr.c: Ditto.
12981 * config/bfin/bfin.c: Ditto.
12982 * config/c6x/c6x.c: Ditto.
12983 * config/cr16/cr16.c: Ditto.
12984 * config/cris/cris.c: Ditto.
12985 * config/epiphany/epiphany.c: Ditto.
12986 * config/fr30/fr30.c: Ditto.
12987 * config/frv/frv.c: Ditto.
12988 * config/h8300/h8300.c: Ditto.
12989 * config/ia64/ia64.c: Ditto.
12990 * config/iq2000/iq2000.c: Ditto.
12991 * config/lm32/lm32.c: Ditto.
12992 * config/m32c/m32c.c: Ditto.
12993 * config/m32r/m32r.c: Ditto.
12994 * config/m68k/m68k.c: Ditto.
12995 * config/mcore/mcore.c: Ditto.
12996 * config/microblaze/microblaze.c: Ditto.
12997 * config/mmix/mmix.c: Ditto.
12998 * config/mn10300/mn10300.c: Ditto.
12999 * config/moxie/moxie.c: Ditto.
13000 * config/msp430/msp430.c: Ditto.
13001 * config/nios2/nios2.c: Ditto.
13002 * config/nvptx/nvptx.c: Ditto.
13003 * config/pa/pa.c: Ditto.
13004 * config/pdp11/pdp11.c: Ditto.
13005 * config/rl78/rl78.c: Ditto.
13006 * config/sparc/sparc.c: Ditto.
13007 * config/spu/spu.c: Ditto.
13008 * config/stormy16/stormy16.c: Ditto.
13009 * config/tilegx/tilegx.c: Ditto.
13010 * config/tilepro/tilepro.c: Ditto.
13011 * config/v850/v850.c: Ditto.
13012 * config/vax/vax.c: Ditto.
13013 * config/visium/visium.c: Ditto.
13014 * config/xtensa/xtensa.c: Ditto.
13015
13016 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13017
13018 PR sanitizer/68260
13019 * tsan.c: Include target.h.
13020 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13021 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13022 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13023 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13024 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13025
13026 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13027 Martin Liska <mliska@suse.cz>
13028
13029 PR middle-end/77574
13030 * predict.c (force_edge_cold): Add braces to a condition.
13031
13032 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13033
13034 PR rtl-optimization/77289
13035 * lra-constraints.c (get_final_hard_regno): Removed.
13036 (get_hard_regno): Add new parameter final_p.
13037 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13038 (operands_match_p): Adjust call to get_hard_regno.
13039 (uses_hard_regs_p): Likewise.
13040 (process_alt_operands): Likewise.
13041
13042 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13043
13044 PR target/70713
13045 * config/msp430/msp430.c (msp430_start_function): Emit an error
13046 if a function is both weak and specifies an interrupt number.
13047
13048 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13049
13050 PR tree-optimization/77454
13051 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13052 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13053 Formatting fix.
13054
13055 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13056
13057 * config/aarch64/aarch64-builtins.c
13058 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13059
13060 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13061
13062 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13063 SFmode and SCmode arguments by reference.
13064
13065 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13066
13067 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13068 Rename to...
13069 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13070 for renaming of add_fixit_insert to add_fixit_insert_before.
13071 (selftest::test_one_liner_fixit_insert_after): New function.
13072 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13073 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13074 (selftest::test_one_liner_many_fixits): Likewise.
13075 (selftest::test_diagnostic_show_locus_one_liner): Update for
13076 renaming, call new test function.
13077 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13078 renaming of add_fixit_insert to add_fixit_insert_before.
13079 (selftest::test_fixit_consolidation): Likewise.
13080 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13081 Likewise.
13082 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13083 (selftest::test_applying_fixits_insert_before): ...this.
13084 (selftest::test_applying_fixits_insert): Update for renaming of
13085 add_fixit_insert to add_fixit_insert_before.
13086 (selftest::test_applying_fixits_insert_after): New function.
13087 (selftest::test_applying_fixits_insert_after_at_line_end): New
13088 function.
13089 (selftest::test_applying_fixits_insert_after_failure): New function.
13090 (selftest::test_applying_fixits_multiple): Update for renaming of
13091 add_fixit_insert to add_fixit_insert_before.
13092 (selftest::change_line): Likewise.
13093 (selftest::test_applying_fixits_unreadable_file): Likewise.
13094 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13095 (selftest::test_applying_fixits_column_validation): Likewise.
13096 (selftest::test_applying_fixits_column_validation): Likewise.
13097 (selftest::edit_context_c_tests): Update for renamed test function;
13098 call new test functions.
13099
13100 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13101
13102 PR tree-optimization/77536
13103 PR rtl-optimization/68212
13104 * config/rs6000/rs6000.md (div->recip splitter): Remove
13105 optimize_insn_for_speed_p condition.
13106
13107 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13108
13109 * optabs.c (prepare_cmp_insn): Update documentation comment.
13110
13111 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13112 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13113
13114 PR middle-end/77475
13115 * opts.h (candidates_list_and_hint): Declare.
13116 * opts-common.c (candidates_list_and_hint): New function.
13117 (cmdline_handle_error): Use it.
13118
13119 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13120
13121 * edit-context.c (edited_line::get_len): New accessor.
13122 (edited_file::print_diff): Split out hunk-printing into...
13123 (edited_file::print_diff_hunk): New method.
13124 (edited_file::print_diff_line): New method.
13125
13126 2016-09-12 Andrew Pinski <apinski@cavium.com>
13127
13128 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13129 New tuning option.
13130 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13131 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13132 (aarch64_operands_ok_for_ldpstp): Return false if
13133 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13134 was SImode and the alignment is less than 8 byte.
13135 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13136
13137 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13138
13139 PR target/77570
13140 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13141
13142 2016-09-12 Marek Polacek <polacek@redhat.com>
13143
13144 * doc/extend.texi: Use lowercase "boolean".
13145 * doc/invoke.texi: Likewise.
13146 * doc/md.texi: Likewise.
13147 * target.def: Likewise.
13148 * doc/tm.texi: Regenerated.
13149
13150 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13151
13152 PR middle-end/77426
13153 * expmed.c (synth_mult): Delete duplicate mode check.
13154
13155 2016-09-10 Tom de Vries <tom@codesourcery.com>
13156
13157 PR C/71602
13158 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13159 va_list type only.
13160 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13161 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13162
13163 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13164
13165 PR rtl-optimization/77289
13166 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13167 register numbers. Remove support for subregs.
13168 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13169 (get_reg_class): Delete removed get_final_hard_regno() argument.
13170 (uses_hard_regs_p): Call get_final_hard_regno().
13171
13172 2016-09-09 Martin Sebor <msebor@redhat.com>
13173
13174 PR c/77520
13175 PR c/77521
13176 * pretty-print.c (pp_quoted_string): New function.
13177 (pp_format): Call it for %c and %s directives.
13178
13179 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13180
13181 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13182 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13183 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13184 * target.def (frame_pointer_required, can_eliminate): Likewise.
13185 * doc/tm.texi: Regenerated.
13186 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13187 ELIMINABLE_REGS.
13188 * df-scan.c (df_hard_reg_init): Likewise.
13189 * ira.c (ira_setup_eliminable_regset): Likewise.
13190 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13191 init_elim_table): Likewise.
13192 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13193 set_initial_elim_offsets, update_eliminables,
13194 init_elim_table): Likewise.
13195 * rtlanal.c (get_initial_register_offset): Likewise.
13196 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13197 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13198 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13199 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13200 * config/fr30/fr30.h: Fix comment.
13201 * config/frv/frv.c: Likewise.
13202 * config/frv/frv.h: Likewise.
13203 * config/ft32/ft32.h: Likewise.
13204 * config/visium/visium.h: Likewise.
13205 * config/pa/pa64-linux.h: Likewise.
13206 * config/v850/v850.h: Likewise.
13207 * config/cris/cris.c: Likewise.
13208 * config/ia64/ia64.h: Likewise.
13209 * config/moxie/moxie.h: Likewise.
13210 * config/m32r/m32r.h: Likewise.
13211
13212 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13213
13214 PR target/77267
13215 * config.in: Regenerate.
13216 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13217 New macro.
13218 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13219 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13220 static-libmpxwrappers case.
13221 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13222 MPX_LD_AS_NEEDED_GUARD_POP.
13223 * configure: Regenerate.
13224 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13225 defined if linker support "--push-state"/"--pop-state".
13226
13227 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13228
13229 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13230
13231 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13232
13233 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13234 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13235 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13236 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13237 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13238 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13239 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13240 Document.
13241 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13242 width macros from TS 18661-1.
13243 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13244
13245 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13246
13247 PR fortran/77516
13248 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13249 OMP_CLAUSE_SAFELEN_EXPR.
13250
13251 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13252
13253 * Makefile.in (OBJS): Add substring-locations.o.
13254 * langhooks-def.h (class substring_loc): New forward decl.
13255 (lhd_get_substring_location): New decl.
13256 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13257 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13258 * langhooks.c (lhd_get_substring_location): New function.
13259 * langhooks.h (class substring_loc): New forward decl.
13260 (struct lang_hooks): Add field get_substring_location.
13261 * substring-locations.c: New file, taking definition of
13262 format_warning_va and format_warning_at_substring from
13263 c-family/c-format.c, making them non-static.
13264 * substring-locations.h (class substring_loc): Move class here
13265 from c-family/c-common.h. Add and rewrite comments.
13266 (format_warning_va): New decl.
13267 (format_warning_at_substring): New decl.
13268 (get_source_location_for_substring): Add comment.
13269
13270 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13271
13272 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13273 to avoid -Wnarrowing warning.
13274 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13275 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13276
13277 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13278
13279 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13280 Avoid use of base_offset if offset already in range.
13281
13282 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13283
13284 * config/sh/sh-protos.h (struct sh_atomic_model,
13285 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13286 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13287 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13288 * config/sh/sh.h (struct sh_atomic_model,
13289 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13290 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13291 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13292 Guard with __cplusplus.
13293
13294 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13295
13296 PR target/69255
13297 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13298 unsupported or unknown ISA, use expand_call.
13299
13300 2016-09-06 Martin Liska <mliska@suse.cz>
13301
13302 PR gcov-profile/77378
13303 PR gcov-profile/77466
13304 * tree-profile.c (tree_profiling): Detect whether target can use
13305 -fprofile-update=atomic.
13306
13307 2016-09-06 Richard Biener <rguenther@suse.de>
13308
13309 PR tree-optimization/77479
13310 * tree-vrp.c (update_value_range): Extend overflow handling to
13311 VARYING.
13312
13313 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13314
13315 PR target/77476
13316 * config/i386/i386.md (isa): Add x64_avx512bw.
13317 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13318 (kmov_isa): New mode attr.
13319 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13320 (*zero_extend<mode>si2): Likewise.
13321 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13322
13323 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13324
13325 * doc/invoke.texi (SPU Options): nops -> NOPs.
13326 (x86 Options): Ditto.
13327
13328 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13329
13330 PR middle-end/77475
13331 * toplev.c (process_options): Temporarily set input_location
13332 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13333
13334 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13335
13336 PR rtl-optimization/77452
13337 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13338 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13339
13340 2016-09-05 Marek Polacek <polacek@redhat.com>
13341
13342 PR c/77423
13343 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13344
13345 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13346
13347 PR other/77421
13348 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13349 *insn_out == '*' test. Don't copy unnecessary to yet another
13350 memory buffer, and don't leak it.
13351
13352 PR rtl-optimization/77425
13353 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13354
13355 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13356
13357 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13358
13359 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13360
13361 * common.opt (fdiagnostics-generate-patch): New option.
13362 * diagnostic.c: Include "edit-context.h".
13363 (diagnostic_initialize): Initialize context->edit_context_ptr.
13364 (diagnostic_finish): Delete context->edit_context_ptr.
13365 (diagnostic_report_diagnostic): Add fix-it hints from the
13366 diagnostic to context->edit_context_ptr, if any.
13367 * diagnostic.h (class edit_context): Add forward decl.
13368 (struct diagnostic_context): Add field "edit_context_ptr".
13369 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13370 -fdiagnostics-generate-patch.
13371 (-fdiagnostics-generate-patch): New item.
13372 * toplev.c: Include "edit-context.h".
13373 (process_options): Set global_dc->edit_context_ptr to a new
13374 edit_context if the options need one.
13375 (toplev::main): Handle -fdiagnostics-generate-patch by using
13376 global_dc->edit_context_ptr.
13377
13378 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13379
13380 PR c/65467
13381 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13382 map and firstprivate clauses on target construct for _Atomic
13383 qualified decls.
13384 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13385 on target construct for _Atomic qualified decls.
13386 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13387 decls.
13388 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13389 _Atomic qualified arguments not mentioned in uniform clause.
13390
13391 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13392
13393 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13394 * diagnostic-color.c (color_dict): Add "diff-filename",
13395 "diff-hunk", "diff-delete", and "diff-insert".
13396 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13397 to reflect above changes.
13398 * doc/invoke.texi (-fdiagnostics-color): Update description of
13399 default GCC_COLORS, and of the supported capabilities.
13400 * edit-context.c: New file.
13401 * edit-context.h: New file.
13402 * input.c (struct fcache): Add field "missing_trailing_newline".
13403 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13404 true.
13405 (add_file_to_cache_tab): Likewise.
13406 (fcache::fcache): Likewise.
13407 (get_next_line): Update c->missing_trailing_newline.
13408 (location_missing_trailing_newline): New function.
13409 * input.h (location_missing_trailing_newline): New decl.
13410 * selftest-run-tests.c (selftest::run_tests): Call
13411 edit_context_c_tests.
13412 * selftest.h (edit_context_c_tests): New decl.
13413
13414 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13415 Richard Biener <rguenth@suse.de>
13416
13417 PR tree-optimization/77444
13418 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13419 as steptype, remove redundant initialization.
13420
13421 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13422
13423 PR sanitizer/77396
13424 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13425 (sanopt_optimize_walker): Optimize away
13426 __asan_before_dynamic_init (...) followed by
13427 __asan_after_dynamic_init () without intervening memory loads/stores.
13428 * ipa-pure-const.c (special_builtin_state): Handle
13429 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13430 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13431
13432 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13433
13434 * cfg.c (free_original_copy_tables): Replace second assignment of
13435 bb_copy = NULL by bb_original = NULL.
13436
13437 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13438
13439 PR other/77421
13440 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13441 assignment added in r216794.
13442
13443 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13444
13445 * Makefile.in (OBJS): Add typed-splay-tree.o.
13446 * selftest-run-tests.c (selftest::run_tests): Call
13447 typed_splay_tree_c_tests.
13448 * selftest.h (typed_splay_tree_c_tests): New decl.
13449 * typed-splay-tree.c: New file.
13450 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13451 (typed_splay_tree::max): New method.
13452 (typed_splay_tree::min): New method.
13453 (typed_splay_tree::foreach): New method.
13454 (typed_splay_tree::closure): New struct.
13455 (typed_splay_tree::inner_foreach_fn): New function.
13456
13457 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13458
13459 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13460 -fipa-cp-bit to -fipa-bit-cp.
13461
13462 2016-09-01 Martin Sebor <msebor@redhat.com>
13463
13464 PR tree-optimization/71831
13465 * tree-object-size.h: Return bool instead of the size and add
13466 argument for the size.
13467 * tree-object-size.c (compute_object_offset): Update signature.
13468 (addr_object_size): Same.
13469 (compute_builtin_object_size): Return bool instead of the size
13470 and add argument for the size. Handle POINTER_PLUS_EXPR when
13471 optimization is disabled.
13472 (expr_object_size): Adjust.
13473 (plus_stmt_object_size): Adjust.
13474 (pass_object_sizes::execute): Adjust.
13475 * builtins.c (fold_builtin_object_size): Adjust.
13476 * doc/extend.texi (Object Size Checking): Update.
13477 * ubsan.c (instrument_object_size): Adjust.
13478
13479 2016-09-01 Martin Sebor <msebor@redhat.com>
13480
13481 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13482 it fits the output of the formatted function regardless of its
13483 arguments.
13484 * genmodes.c (parser::parse_expr): Same.
13485 * gimplify.c (gimplify_asm_expr): Same.
13486 * passes.c (pass_manager::register_one_dump_file): Same.
13487 * print-tree.c (print_node): Same.
13488
13489 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13490
13491 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13492
13493 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13494
13495 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13496
13497 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13498
13499 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13500 * config/rs6000/vector.md: Ditto.
13501 * config/rs6000/vsx.md: Ditto.
13502
13503 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13504
13505 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13506 first in all cases.
13507
13508 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13509
13510 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13511 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13512 *return_and_restore_gpregs_<mode>_r11,
13513 *return_and_restore_gpregs_<mode>_r12,
13514 *return_and_restore_gpregs_<mode>_r1,
13515 *return_and_restore_fpregs_<mode>_r11,
13516 *return_and_restore_fpregs_<mode>_r12,
13517 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13518 directly instead of via the "l" constraint. Renumber operands.
13519 Fix whitespace.
13520
13521 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13522
13523 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13524 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13525 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13526 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13527 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13528 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13529 *call_value_nonlocal_darwin64, reload_macho_picbase,
13530 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13531 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13532 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13533 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13534 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13535 *save_fpregs_<mode>_r1): Ditto.
13536 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13537 *return_and_restore_gpregs_spe): Ditto.
13538
13539 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13540
13541 * config/rs6000/rs6000.md
13542 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13543 the use of the link register.
13544 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13545
13546 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13547 Michael Meissner <meissner@linux.vnet.ibm.com>
13548
13549 PR target/72827
13550 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13551 reg+reg addressing for TImode.
13552 (rs6000_legitimate_address_p): Only allow register indirect
13553 addressing for TImode, even without TARGET_QUAD_MEMORY.
13554
13555 2016-09-01 Richard Biener <rguenther@suse.de>
13556
13557 PR middle-end/77436
13558 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13559 check whether the result fits the desired result type.
13560
13561 2016-09-01 Nathan Sidwell <nathan@acm.org>
13562
13563 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13564
13565 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13566
13567 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13568 New function.
13569 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13570
13571 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13572
13573 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13574 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13575 for comparisons of integer ZERO_EXTEND against zero.
13576
13577 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13580 STV pass if -mstackrealign is enabled.
13581
13582 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13583
13584 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13585 AVX512IFMA.
13586
13587 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13588
13589 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13590 (layout_range::intersects_line_p): New method.
13591 (test_range_contains_point_for_single_point): Rename to...
13592 (test_layout_range_for_single_point): ...this, and add testing
13593 for layout_range::intersects_line_p.
13594 (test_range_contains_point_for_single_line): Rename to...
13595 (test_layout_range_for_single_line): ...this, and add testing
13596 for layout_range::intersects_line_p.
13597 (test_range_contains_point_for_multiple_lines): Rename to...
13598 (test_layout_range_for_multiple_lines): ...this, and add testing
13599 for layout_range::intersects_line_p.
13600 (layout::layout): Populate m_fixit_hints.
13601 (layout::get_expanded_location): Handle the case of a line-span
13602 for a fix-it hint.
13603 (layout::validate_fixit_hint_p): New method.
13604 (get_line_span_for_fixit_hint): New function.
13605 (layout::calculate_line_spans): Add spans for fixit-hints.
13606 (layout::should_print_annotation_line_p): New method.
13607 (layout::print_any_fixits): Drop param "richloc", instead using
13608 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13609 (diagnostic_show_locus): Avoid printing blank annotation lines.
13610 (selftest::test_diagnostic_context::test_diagnostic_context):
13611 Initialize show_column and start_span.
13612 (selftest::test_diagnostic_context::start_span_cb): New static
13613 function.
13614 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13615 (selftest::diagnostic_show_locus_c_tests): Update for function
13616 renamings. Call test_diagnostic_show_locus_fixit_lines.
13617
13618 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13619
13620 PR tree-optimization/73714
13621 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13622
13623 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13624
13625 * selftest.c: Move "namespace selftest {" to top of file,
13626 removing explicit "selftest::" qualifiers throughout.
13627
13628 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13629
13630 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13631 New types.
13632 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13633 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13634 Replace builtin with vector extension.
13635 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13636 New types.
13637 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13638 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13639 Replace builtin with vector extension.
13640 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13641 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13642 Replace builtin with vector extension.
13643 * config/i386/xmmintrin.h (__m128_u): New type.
13644 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13645 (_mm_load_ps, _mm_store_ps): Simplify.
13646
13647 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13648
13649 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13650
13651 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13652
13653 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13654 than 3 ranges per diagnostic by alternating between color 1 and
13655 color 2.
13656 (layout::layout): Replace use of rich_location::MAX_RANGES
13657 with richloc->get_num_locations ().
13658 (layout::calculate_line_spans): Replace use of
13659 rich_location::MAX_RANGES with m_layout_ranges.length ().
13660 (layout::print_annotation_line): Handle arbitrary numbers of
13661 ranges in caret-printing by defaulting to '^'.
13662 (selftest::test_one_liner_many_fixits): New function.
13663 (test_diagnostic_show_locus_one_liner): Call it.
13664 * diagnostic.c (diagnostic_initialize): Update for renaming
13665 of rich_location::MAX_RANGES to
13666 rich_location::STATICALLY_ALLOCATED_RANGES.
13667 * diagnostic.h (struct diagnostic_context): Likewise.
13668
13669 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13670
13671 * selftest.c (selftest::named_temp_file::named_temp_file): New
13672 ctor.
13673 (selftest::temp_source_file::~temp_source_file): Move to...
13674 (selftest::named_temp_file::~named_temp_file): ...here.
13675 (selftest::test_named_temp_file): New function.
13676 (selftest::selftest_c_tests): Call test_named_temp_file.
13677 * selftest.h (class named_temp_file): New class.
13678 (class temp_source_file): Convert to a subclass of named_temp_file.
13679
13680 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13681
13682 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13683 USEs of LR_REGNO in returns and sibcalls.
13684 (rs6000_output_mi_thunk): Similar.
13685 (rs6000_sibcall_aix): Similar.
13686 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13687 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13688 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13689 Remove the USE of LR_REGNO from the patterns as well. Delete an
13690 obsolete comment.
13691 (return_internal_<mode>): Delete.
13692
13693 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13694
13695 * config/aarch64/aarch64-simd.md
13696 (aarch64_ld2<mode>_dreg_le): New.
13697 (aarch64_ld2<mode>_dreg_be): New.
13698 (aarch64_ld2<mode>_dreg): Removed.
13699 (aarch64_ld3<mode>_dreg_le): New.
13700 (aarch64_ld3<mode>_dreg_be): New.
13701 (aarch64_ld3<mode>_dreg): Removed.
13702 (aarch64_ld4<mode>_dreg_le): New.
13703 (aarch64_ld4<mode>_dreg_be): New.
13704 (aarch64_ld4<mode>_dreg): Removed.
13705 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13706
13707 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13708
13709 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13710 redundant location param.
13711 (test_one_liner_fixit_remove): Likewise.
13712 (test_one_liner_fixit_replace): Likewise.
13713 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13714 * gcc-rich-location.c
13715 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13716 get_range_from_loc. Drop overload taking a const char *.
13717 * gcc-rich-location.h
13718 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13719 a const char *.
13720
13721 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13722
13723 * config/linux.c (linux_libc_has_function): Return true on musl.
13724
13725 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13726
13727 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13728
13729 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13730
13731 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13732 used for abnormal egdes.
13733
13734 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13735
13736 PR tree-optimization/72866
13737 * tree-vect-patterns.c (search_type_for_mask): Turn into
13738 a small wrapper, move all code to ...
13739 (search_type_for_mask_1): ... this new function. Add caching
13740 and adjust recursive calls.
13741
13742 PR debug/77363
13743 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13744 instead of lookup_type_die (type_main_variant (type)) even for array
13745 types.
13746
13747 PR middle-end/77377
13748 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13749 constant pool reference return x instead of c.
13750
13751 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13752
13753 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13754 include MQ.
13755
13756 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13757
13758 * input.c
13759 (selftest::test_make_location_nonpure_range_endpoints): Fix
13760 header comment.
13761
13762 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13763
13764 * diagnostic-show-locus.c
13765 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13766 function.
13767 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13768 * input.c (get_pure_location): Move to libcpp/line-map.c.
13769 * input.h (get_pure_location): Convert decl to an inline function
13770 calling implementation in libcpp.
13771
13772 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13773
13774 PR target/77403
13775 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13776 template for intel asm dialect.
13777 (vec_set_hi_<mode><mask_name>): Ditto.
13778
13779 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13780
13781 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13782 (selftest::fail_formatted): Likewise.
13783
13784 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13785
13786 * input.c (make_location): Call get_start and get_finish
13787 on the endpoints to avoid storing packed ranges or ad-hoc
13788 ranges in them.
13789 (selftest::test_make_location_nonpure_range_endpoints): New function.
13790 (selftest::input_c_tests): Call it.
13791 * input.h (get_start): New inline function.
13792
13793 2016-08-29 Tom de Vries <tom@codesourcery.com>
13794
13795 PR c/77398
13796 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
13797 with assert.
13798
13799 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
13800
13801 * Makefile.in (gcov-iov.h): Add dummy recipe.
13802
13803 2016-08-29 Nathan Sidwell <nathan@acm.org>
13804
13805 * config/nvptx/nvptx.c: #include tree-vrp.h.
13806
13807 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
13808
13809 PR target/77324
13810 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
13811 HIGH+LO construct during reload.
13812
13813 2016-08-28 Tom de Vries <tom@codesourcery.com>
13814
13815 PR lto/70955
13816 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
13817 'sysv_abi va_list' attribute.
13818 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
13819 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
13820 attributes.
13821
13822 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13823
13824 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
13825 * emit-rtl.c (unshare_all_rtl_1): Adjust.
13826 (unshare_all_rtl_again): Likewise.
13827 * function.c (assign_stack_local_1): Likewise.
13828 (assign_stack_temp_for_type): Likewise.
13829
13830 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13831
13832 * cfgbuild.c (make_edges): Adjust.
13833 * cfgrtl.c (can_delete_label_p): Likewise.
13834 * dwarf2cfi.c (create_trace_edges): Likewise.
13835 * except.c (sjlj_emit_dispatch_table): Likewise.
13836 * function.h (struct expr_status): make x_forced_labels a vector.
13837 * jump.c (rebuild_jump_labels_1): Adjust.
13838 * reload1.c (set_initial_label_offsets): Likewise.
13839 * stmt.c (force_label_rtx): Likewise.
13840 (expand_label): Likewise.
13841
13842 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13843
13844 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
13845
13846 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
13847
13848 PR tree-optimization/71077
13849 PR tree-optimization/68542
13850 * fold-const.c (fold_relational_const): Fix folding of
13851 VECTOR_CST comparisons that have a scalar boolean result type.
13852 (selftest::test_vector_folding): New static function.
13853 (selftest::fold_const_c_tests): Call it.
13854
13855 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
13856
13857 * doc/extend.texi (SPU Built-in Functions): Remove stale
13858 references to material formerly at IBM and Sony.
13859
13860 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
13861
13862 PR target/77349
13863 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
13864
13865 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13866
13867 * diagnostic-show-locus.c
13868 (selftest::test_fixit_consolidation): New function.
13869 (selftest::diagnostic_show_locus_c_tests): Call it.
13870 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
13871 constructor based on source_range.
13872
13873 2016-08-26 David Malcolm <dmalcolm@redhat.com>
13874
13875 * diagnostic-color.c (color_dict): Add "fixit-insert" and
13876 "fixit-delete".
13877 (parse_gcc_colors): Update description of default GCC_COLORS.
13878 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
13879 (colorizer::set_fixit_insert): New method.
13880 (colorizer::set_fixit_delete): New method.
13881 (colorizer::get_color_by_name): New method.
13882 (colorizer::STATE_FIXIT_INSERT): New constant.
13883 (colorizer::STATE_FIXIT_DELETE): New constant.
13884 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
13885 fields in favor of new field "m_stop_color". Add fields
13886 "m_fixit_insert" and "m_fixit_delete".
13887 (colorizer::colorizer): Update for above changes. Replace
13888 colorize_start calls with calls to get_color_by_name.
13889 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
13890 STATE_FIXIT_DELETE. Update for field renamings.
13891 (colorizer::finish_state): Simplify by using m_stop_color,
13892 rather than multiple identical "*_ce" fields.
13893 (colorizer::get_color_by_name): New method.
13894 (layout::print_any_fixits): Print insertions and replacements
13895 using the "fixit-insert" color, and deletions using the
13896 "fixit-delete" color.
13897 * doc/invoke.texi (-fdiagnostics-color): Update description of
13898 default GCC_COLORS, and of the supported capabilities.
13899
13900 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
13901
13902 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
13903 current_function_static_stack_size variable with the static
13904 stack frame size of the current function when
13905 flag_stack_usage_info is enabled.
13906
13907 2016-08-26 Nathan Sidwell <nathan@acm.org>
13908
13909 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
13910 assignment inside if condition.
13911
13912 2016-08-26 Richard Biener <rguenther@suse.de>
13913
13914 PR tree-optimization/69047
13915 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
13916 extracts similar to what FRE does.
13917 (non_rewritable_mem_ref_base): Likewise.
13918
13919 2016-08-26 Joseph Myers <joseph@codesourcery.com>
13920
13921 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
13922 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
13923 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13924 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13925 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
13926 Likewise.
13927 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13928 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13929 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13930 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
13931 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
13932
13933 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13934
13935 PR target/70473
13936 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
13937 reservation duration to 15 cycles.
13938 (cortex_a8_vfp_macs): Likewise.
13939 (cortex_a8_vfp_macd): Likewise.
13940 (cortex_a8_vfp_divs): Likewise.
13941 (cortex_a8_vfp_divd): Likewise.
13942
13943 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13944
13945 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
13946 (aarch_macro_fusion_pair_p): Use above to avoid early return.
13947
13948 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13949 Martin Jambhor <mjambor@suse.cz>
13950
13951 * common.opt: New option -fipa-bit-cp.
13952 * doc/invoke.texi: Document -fipa-bit-cp.
13953 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13954 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13955 * tree-ssa-ccp.h: New header file.
13956 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13957 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13958 Replace all occurences of tree parameter by two new params: signop, int.
13959 (bit_value_unop_1): Change to bit_value_unop and export it.
13960 Replace all occurences of tree parameter by two new params: signop,
13961 int.
13962 (bit_value_binop): Change call from bit_value_binop_1 to
13963 bit_value_binop.
13964 (bit_value_assume_aligned): Likewise.
13965 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13966 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13967 to ccp_finalize.
13968 (ccp_finalize): Skip processing if val->mask == 0.
13969 * ipa-cp.c: Include tree-ssa-ccp.h
13970 (ipcp_bits_lattice): New class.
13971 (ipcp_param_lattice (bits_lattice): New member.
13972 (print_all_lattices): Call ipcp_bits_lattice::print.
13973 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13974 (initialize_node_lattices): Likewise.
13975 (propagate_bits_accross_jump_function): New function.
13976 (propagate_constants_accross_call): Call
13977 propagate_bits_accross_jump_function.
13978 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13979 (ipcp_store_bits_results): New function.
13980 (ipcp_driver): Call ipcp_store_bits_results.
13981 * ipa-prop.h (ipa_bits): New struct.
13982 (ipa_jump_func): Add new member bits of type ipa_bits.
13983 (ipa_param_descriptor): Change decl to decl_or_type.
13984 (ipa_get_param): Change decl to decl_or_type and assert on
13985 PARM_DECL.
13986 (ipa_get_type): New function.
13987 (ipcp_transformation_summary): New member bits.
13988 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13989 (ipa_populate_param_decls): Likewise.
13990 (ipa_dump_param): Likewise.
13991 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13992 function.
13993 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13994 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13995 propagation.
13996 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13997 (ipa_write_jump_function): Add streaming for ipa_bits.
13998 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13999 (write_ipcp_transformation_info): Add streaming for ipa_bits
14000 summary for ltrans.
14001 (read_ipcp_transfomration_info): Add support for reading streamed
14002 ipa_bits.
14003 (ipcp_update_bits): New function.
14004 (ipcp_transform_function): Call ipcp_update_bits.
14005
14006 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14007
14008 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14009 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14010
14011 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14012
14013 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14014
14015 2016-08-25 Richard Biener <rguenther@suse.de>
14016
14017 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14018 Only add locations in late dwarf.
14019 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14020 (dwarf2out_early_finish): But do it here.
14021
14022 2016-08-24 Michael Collison <michael.collison@linaro.org>
14023 Michael Collison <michael.collison@arm.com>
14024
14025 * config/arm/arm-modes.def: Add new condition code mode CC_V
14026 to represent the overflow bit.
14027 * config/arm/arm.c (maybe_get_arm_condition_code):
14028 Add support for CC_Vmode.
14029 (arm_gen_unlikely_cbranch): New function to generate common
14030 rtl conditional branches for overflow patterns.
14031 * config/arm/arm-protos.h: Add prototype for
14032 arm_gen_unlikely_cbranch.
14033 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14034 addsi3_compareV_upper): New patterns to support signed
14035 builtin overflow add operations.
14036 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14037 New patterns to support unsigned builtin add overflow operations.
14038 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14039 builtin overflow subtract operations,
14040 (usubv<mode>4): New patterns to support unsigned builtin subtract
14041 overflow operations.
14042 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14043 to support builtin overflow negate operations.
14044
14045 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14046
14047 Revert
14048 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14049
14050 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14051 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14052 needed.
14053
14054 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14055
14056 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14057 MULTILIB_OPTIONS should be used. Small wording fixes.
14058 * genmultilib: Memorize set of all option combinations in
14059 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14060 found in MULTILIB_OPTIONS by checking if option set is listed in
14061 combination_space. Output new and existing error message to stderr.
14062
14063 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14064
14065 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14066 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14067 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14068 (MULTILIB_REUSE): Remove reuse rules for option set including
14069 -mfpu=fp-armv8 and -mfpu=vfpv4
14070
14071 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14072
14073 * config/arm/t-rtems: Add vfp multilib.
14074
14075 2016-08-23 Ian Lance Taylor <iant@golang.org>
14076
14077 * config/s390/s390.c (s390_asm_file_start): Call
14078 default_file_start.
14079
14080 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14081
14082 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14083 initialization of all 0's to the 0 constant, instead of directly
14084 generating XOR. Add support for V4SImode vector initialization on
14085 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14086 initialization. Change variables used in V4SFmode vector
14087 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14088 any memory addresses are in index form. Add support for using
14089 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14090 with all of the same element.
14091 (regno_or_subregno): New helper function to return a register
14092 number for either REG or SUBREG.
14093 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14094 Use regno_or_subregno where possible.
14095 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14096 DImode value from two SImode values in order to generate V4SImode
14097 vector initialization on 64-bit systems with direct move.
14098 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14099 initialization.
14100 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14101 swappable.
14102 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14103 declaration.
14104 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14105 attributes to initialize V8HImode and V16QImode vectors with the
14106 same element.
14107 (VSX_SPLAT_COUNT): Likewise.
14108 (VSX_SPLAT_SUFFIX): Likewise.
14109 (UNSPEC_VSX_VEC_INIT): New unspec.
14110 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14111 Allow SFmode values to come from Altivec registers.
14112 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14113 on 64-bit systems with direct move.
14114 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14115 vector initializations, to allow V4SImode vector initializations
14116 on 64-bit systems with direct move.
14117 (vsx_splat_v4si): Likewise.
14118 (vsx_splat_v4si_di): Likewise.
14119 (vsx_splat_v4sf): Likewise.
14120 (vsx_splat_v4sf_internal): Likewise.
14121 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14122 register classes.
14123 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14124 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14125 initializing V8HImode and V16QImode vectors with the same
14126 element.
14127 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14128 optimization if -maltivec=be.
14129
14130 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14131
14132 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14133 attribute for alternatives 3 and 4.
14134
14135 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14136
14137 * selftest.c (selftest::assert_str_contains): New function.
14138 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14139 * selftest.h (selftest::assert_str_contains): New decl.
14140 (ASSERT_STR_CONTAINS): New macro.
14141
14142 2016-08-23 Richard Biener <rguenther@suse.de>
14143
14144 PR tree-optimization/77286
14145 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14146 the CFG here.
14147 (vect_transform_loop): Split exit edges of loop and scalar
14148 loop if required and at the appropriate time.
14149
14150 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14151
14152 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14153 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14154 needed.
14155 Correct a typo in a comment.
14156
14157 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14158
14159 * config/s390/s390.md ("*andc_split"): New splitter for and with
14160 complement.
14161
14162 2016-08-23 Richard Biener <rguenther@suse.de>
14163
14164 PR tree-optimization/27336
14165 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14166 by looking for a non-EH edge.
14167 (process_assert_insertions_for): Likewise.
14168
14169 2016-08-23 Richard Biener <rguenther@suse.de>
14170
14171 PR middle-end/77305
14172 * statistics.c (statistics_counter_event): Robustify against
14173 NULL current_pass.
14174
14175 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14176
14177 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14178 for targets amdfam10 and barcelona.
14179
14180 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14181
14182 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14183 (zero_extend<mode>di2): Ditto.
14184 (*zero_extend<mode>si2): Ditto.
14185 (*zero_extendqihi2): Ditto.
14186
14187 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14188
14189 PR middle-end/77269
14190 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14191 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14192
14193 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14194
14195 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14196 identical consecutive elements.
14197 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14198 the node's def stmt, avoid printing an unwanted trailing newline by
14199 replacing the call to print_gimple_stmt() with its inlined body and
14200 adjusting it to not set pp_needs_newline and to call pp_flush()
14201 instead of pp_newline_and_flush().
14202
14203 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14204
14205 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14206 (float32_type_node, float64_type_node, float32x_type_node)
14207 (float128x_type_node): New macros.
14208 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14209 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14210 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14211 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14212 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14213 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14214 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14215 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14216 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14217 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14218 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14219 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14220 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14221 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14222 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14223 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14224 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14225 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14226 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14227 and copysign.
14228 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14229 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14230 * doc/extend.texi (Other Builtins): Document these built-in
14231 functions.
14232 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14233 for nan and nans.
14234
14235 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14236
14237 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14238
14239 2016-08-22 Richard Biener <rguenther@suse.de>
14240
14241 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14242
14243 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14244
14245 PR target/77270
14246 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14247 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14248 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14249
14250 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14251
14252 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14253 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14254 (vrp_visit_switch_stmt): Likewise.
14255 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14256 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14257 (vrp_visit_stmt): Use extract_range_from_stmt.
14258 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14259
14260 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14261
14262 * Makefile.in: Add tree-vrp.h to GTFILES.
14263 * gengtype.c (open_base_files): Add tree-vrp.h.
14264 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14265 * builtins.c: Likewise.
14266 * fold-const.c: Likewise.
14267 * gimple-builder.c: Likewise.
14268 * gimple-laddress.c: Likewise.
14269 * hsa-gen.c: Likewise.
14270 * internal-fn.c: Likewise.
14271 * ssa.h: Likewise.
14272 * targhooks.c: Liewise,
14273 * tree-ssa-address.c: Likewise.
14274 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14275 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14276 * tree-vrp.h: New file.
14277
14278 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14279
14280 PR tree-optimization/61839
14281 * tree-vrp.c (two_valued_val_range_p): New.
14282 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14283 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14284 Also Convert VAR BINOP CST where VAR is two-valued to
14285 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14286
14287 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14288
14289 * diagnostic-show-locus.c
14290 (layout::annotation_line_showed_range_p): New method.
14291 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14292 Reimplement case fixit_hint::REPLACE to cover removals, and
14293 replacements where the range of the replacement isn't one
14294 of the ranges in the rich_location.
14295 (test_one_liner_fixit_replace): Likewise.
14296 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14297 function.
14298 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14299 New function.
14300 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14301 functions.
14302 * diagnostic.c (print_parseable_fixits): Remove case
14303 fixit_hint::REMOVE.
14304
14305 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14306
14307 PR target/77270
14308 * config/i386/i386.c (ix86_option_override_internal): Remove
14309 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14310 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14311 Do not try to enable TARGET_PRFCHW ISA flag here.
14312 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14313 Rewrite expander function body.
14314 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14315
14316 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14317
14318 PR c/32187
14319 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14320 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14321 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14322 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14323 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14324 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14325 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14326 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14327 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14328 tree_index values.
14329 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14330 macros.
14331 (struct floatn_type_info): New structure type.
14332 (floatn_nx_types): New variable declaration.
14333 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14334 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14335 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14336 * tree.c (floatn_nx_types): New variable.
14337 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14338 corresponding complex types.
14339 * target.def (floatn_mode): New hook.
14340 * targhooks.c: Include "real.h".
14341 (default_floatn_mode): New function.
14342 * targhooks.h (default_floatn_mode): New prototype.
14343 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14344 types.
14345 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14346 effective-target and dg-add-options keywords.
14347 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14348 Document new effective-target keywords.
14349 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14350 * doc/tm.texi: Regenerate.
14351 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14352 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14353 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14354 18661-3.
14355 * real.h (struct real_format): Add field ieee_bits.
14356 * real.c (ieee_single_format, mips_single_format)
14357 (motorola_single_format, spu_single_format, ieee_double_format)
14358 (mips_double_format, motorola_double_format)
14359 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14360 (ieee_extended_intel_128_format)
14361 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14362 (mips_extended_format, ieee_quad_format, mips_quad_format)
14363 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14364 (decimal_double_format, decimal_quad_format, ieee_half_format)
14365 (arm_half_format, real_internal_format: Initialize ieee_bits
14366 field.
14367 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14368 float128_type_node. Set float80_type_node to float64x_type_node
14369 if appropriate and long_double_type_node not appropriate.
14370 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14371 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14372 Initialize ieee_bits field.
14373 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14374 (rs6000_init_builtins): Set ieee128_float_type_node to
14375 float128_type_node.
14376 (rs6000_floatn_mode): New function.
14377
14378 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14379
14380 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14381 _rdseed64_step): Uglify argument names and/or local variable names
14382 in inline functions.
14383 * config/i386/rtmintrin.h (_xabort): Likewise.
14384 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14385 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14386 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14387 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14388 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14389 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14390 _mm_maskz_ternarylogic_epi32): Likewise.
14391 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14392 __lwpins32, __lwpins64): Likewise.
14393 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14394 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14395 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14396 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14397 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14398 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14399 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14400 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14401 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14402 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14403 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14404 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14405 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14406 _mm256_mask_i64gather_epi32): Likewise.
14407 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14408 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14409 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14410 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14411 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14412 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14413 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14414 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14415 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14416 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14417 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14418 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14419 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14420 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14421 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14422 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14423 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14424 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14425
14426 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14427 returning void.
14428 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14429 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14430 Likewise.
14431 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14432 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14433 function name.
14434 (_rdpkru_u32): Add space after function name.
14435
14436 * config/i386/t-i386 (i386-c.o): Don't depend on
14437 i386-builtin-types.inc.
14438 (i386.o): Depend on i386-builtin-types.inc.
14439
14440 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14441
14442 PR target/77281
14443 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14444 Use const_vec_duplicate to check for duplicated elements.
14445
14446 2016-08-19 Richard Biener <rguenther@suse.de>
14447
14448 PR tree-optimization/77290
14449 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14450 Fix flag_tree_parallelize_loops check.
14451
14452 2016-08-19 Richard Biener <rguenther@suse.de>
14453
14454 * match.pd (x | 0 -> x): Add.
14455
14456 2016-08-19 Richard Biener <rguenther@suse.de>
14457
14458 PR tree-optimization/77286
14459 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14460 Deal with virtual PHIs being out-of-order.
14461
14462 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14463
14464 * doc/invoke.texi (fverbose-asm): Note that source code lines
14465 are emitted, and provide an example.
14466 * final.c (asm_show_source): New function.
14467 (final_scan_insn): Call asm_show_source.
14468
14469 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14470
14471 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14472 param with diagnostic_kind.
14473 (class colorizer): Similarly replace field m_diagnostic with
14474 m_diagnostic_kind.
14475 (colorizer::colorizer): Replace diagnostic
14476 param with diagnostic_kind.
14477 (colorizer::begin_state): Update for above field change.
14478 (layout::layout): Replace diagnostic param with rich_location *
14479 and diagnostic_kind.
14480 (diagnostic_show_locus): Replace diagnostic param with richloc
14481 and diagnostic_kind.
14482 (class selftest::test_diagnostic_context): New class.
14483 (selftest::test_diagnostic_show_locus_unknown_location): New
14484 function.
14485 (selftest::test_one_liner_simple_caret): New function.
14486 (selftest::test_one_liner_caret_and_range): New function.
14487 (selftest::test_one_liner_multiple_carets_and_ranges): New
14488 function.
14489 (selftest::test_one_liner_fixit_remove): New function.
14490 (selftest::test_one_liner_fixit_replace): New function.
14491 (selftest::test_diagnostic_show_locus_one_liner): New function.
14492 (selftest::diagnostic_show_locus_c_tests): Call the new test
14493 functions.
14494 * diagnostic.c (diagnostic_initialize): Initialize
14495 colorize_source_p, show_ruler_p and parseable_fixits_p.
14496 (default_diagnostic_finalizer): Update for change to
14497 diagnostic_show_locus.
14498 (diagnostic_append_note): Likewise.
14499 * diagnostic.h (diagnostic_show_locus): Replace
14500 const diagnostic_info * param with location * and diagnostic_t.
14501
14502 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14503
14504 * input.c (saved_line_table): New global.
14505 (class selftest::temp_line_table): Rename to line_table_test and
14506 move declaration to selftest.h, and drop field m_old_line_table.
14507 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14508 (selftest::line_table_test::line_table_test): ...this. Add a
14509 default ctor. Store current value of line_table within
14510 saved_line_table.
14511 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14512 (selftest::line_table_test::~line_table_test): ...this, and
14513 restore line_table from the saved_line_table, rather than
14514 m_old_line_table.
14515 (selftest::test_accessing_ordinary_linemaps): Update for above
14516 renaming.
14517 (selftest::test_lexer): Likewise.
14518 (struct selftest::lexer_test): Likewise.
14519 (selftest::lexer_test::lexer_test): Likewise.
14520 (selftest::input_c_tests): Move the looping over test cases from
14521 here into...
14522 (selftest::for_each_line_table_case): New function.
14523 * input.h (saved_line_table): New decl.
14524 * selftest.h (struct selftest::line_table_case): New forward decl.
14525 (class selftest::line_table_test): New class, moved here from
14526 selftest::temp_line_table in input.c, and renamed.
14527 (selftest::for_each_line_table_case): New decl.
14528
14529 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14530
14531 PR target/72839
14532 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14533
14534 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14535
14536 PR middle-end/70895
14537 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14538 enclosing parallel construct for reduction variables on OpenACC loop
14539 directives.
14540
14541 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14542
14543 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14544 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14545 -gdwarf-3.
14546 (function_to_dwarf_procedure): Update comment.
14547
14548 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14549
14550 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14551 function.
14552 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14553 declaration.
14554 * selftest.c (selftest::temp_source_file::~temp_source_file):
14555 Evict m_filename from the diagnostic file cache.
14556
14557 2016-08-18 Richard Biener <rguenther@suse.de>
14558
14559 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14560 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14561 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14562 clone materialization.
14563 * passes.def (all_late_ipa_passes): Start with
14564 pass_materialize_all_clones.
14565 * cgraphunit.c (symbol_table::compile): Remove call to
14566 materialize_all_clones.
14567 * tree-into-ssa.c: Include statistics.h.
14568 (update_ssa): Count number of times we do incremental/rewrite
14569 SSA update.
14570
14571 2016-08-18 Richard Biener <rguenther@suse.de>
14572
14573 PR tree-optimization/77282
14574 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14575 When doing auto-parallelizing also prevent use of PHIs that
14576 carry dependences across loop backedges.
14577
14578 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14579 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14580
14581 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14582
14583 2016-08-18 Richard Biener <rguenther@suse.de>
14584
14585 * ssa-iterators.h (ssa_vuse_operand): New inline.
14586 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14587 (predicate_all_scalar_phis): Use remove_phi_node to remove
14588 phi nodes predicated. Delay removing virtual PHIs.
14589 (predicate_mem_writes): Update virtual operands.
14590 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14591 (tree_if_conversion): Do not rewrite virtual SSA form.
14592 * tree-phinodes.c (release_phi_node): Make static.
14593 * tree-phinodes.h (release_phi_node): Remove.
14594
14595 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14596
14597 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14598 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14599 twice to define those.
14600 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14601 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14602 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14603 * config/i386/i386-builtin.def: New file.
14604
14605 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14606
14607 * input.c (get_source_range_for_char): Rename to...
14608 (selftest::get_source_range_for_char): ...this, and move within
14609 the #if CHECKING_P guard.
14610 (get_num_source_ranges_for_substring): Rename to...
14611 (selftest::get_num_source_ranges_for_substring): ...this, move
14612 within the #if CHECKING_P guard, and make static.
14613 (selftest::assert_num_substring_ranges): Initialize
14614 actual_num_ranges.
14615
14616 2016-08-18 Alan Modra <amodra@gmail.com>
14617
14618 PR rtl-optimization/72771
14619 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14620 when find_reloads_toplev returns address_reloaded==-1.
14621 (alternative_allows_const_pool_ref): Update comment.
14622
14623 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14624
14625 PR tree-optimization/71752
14626 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14627 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14628
14629 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14630
14631 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14632 instead of testing ECF_NORETURN bit in gimple_call_flags.
14633 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14634 * predict.c (tree_bb_level_predictions): Likewise.
14635 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14636
14637 PR middle-end/77259
14638 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14639 turning a call into __builtin_unreachable-like noreturn call, adjust
14640 gimple_call_set_fntype.
14641 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14642 gimple_call_fntype has void return type.
14643
14644 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14645
14646 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14647 maybe_lookup_decl, to handle nested acc loop directives.
14648
14649 2016-08-17 Richard Biener <rguenther@suse.de>
14650
14651 PR tree-optimization/76490
14652 * tree-vrp.c (update_value_range): Preserve overflow infinities
14653 when intersecting with ranges from get_range_info.
14654 (operand_less_p): Handle overflow infinities correctly.
14655 (value_range_constant_singleton): Use vrp_operand_equal_p
14656 to handle overflow max/min correctly.
14657 (vrp_valueize): Likewise.
14658 (union_ranges): Likewise.
14659 (intersect_ranges): Likewise.
14660 (vrp_visit_phi_node): Improve iteration limitation to only
14661 apply when we'll possibly re-visit the PHI via a changed argument
14662 on the backedge.
14663
14664 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14665
14666 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14667 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14668 rather than those that should not be built.
14669
14670 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14671
14672 PR target/66488
14673 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14674
14675 2016-08-17 Richard Biener <rguenther@suse.de>
14676
14677 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14678 (verify_vssa): New function verifying virtual SSA form.
14679 (verify_ssa): Call it.
14680 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14681 Do not apply loop-closed SSA handling to virtuals.
14682 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14683 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14684 when rewriting their symbol.
14685 (prepare_def_site_for): Likewise.
14686 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14687 operands of moved stmts.
14688
14689 2016-08-17 Richard Biener <rguenther@suse.de>
14690
14691 PR tree-optimization/23855
14692 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14693 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14694 find guards to hoist. Do not update SSA form but rewrite virtuals
14695 into loop closed SSA.
14696 (find_loop_guard): Adjust to skip already hoisted guards. Do
14697 not mark virtuals for renaming or update SSA form.
14698
14699 2016-08-17 Martin Liska <mliska@suse.cz>
14700
14701 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14702 a LONG_LONG_TYPE_SIZE comparison.
14703 * gcov-io.h: Remove macro definitions.
14704 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14705 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14706 comparison.
14707
14708 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14709
14710 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14711 that builtins not mentioned in bdesc_* arrays come first, then
14712 the ones mentioned in bdesc_* arrays in the order they appear in
14713 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14714 IX86_BUILTIN__BDESC_*_LAST enumerator.
14715 (bdesc_mpx): Fix up a comment typo.
14716 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14717 __builtin_ia32_vpcomneu[bwdq] builtins.
14718 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14719 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14720 enum ix86_builtins ordering.
14721 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14722 for direct bdesc_* array member access instead of searching all the
14723 arrays until an fcode match is found.
14724
14725 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14726
14727 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14728 pattern as define_insn_and_split. Split insn before reload to
14729 ashl<mode>3_1.
14730 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14731 <shift_insn><mode>3_1.
14732 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14733 <rotate_insn><mode>3_1.
14734
14735 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14736
14737 PR c/72857
14738 * input.c (get_source_range_for_substring): Rename to...
14739 (get_source_location_for_substring): ...this, adding param
14740 "caret_idx", and converting output param from source_range * to
14741 location_t *.
14742 (get_source_range_for_char): New function.
14743 (get_num_source_ranges_for_substring): Update comment to reflect
14744 above renaming.
14745 (assert_char_at_range): Update to use get_source_range_for_char
14746 rather than get_source_range_for_substring.
14747 (test_lexer_string_locations_concatenation_2): Likewise.
14748 * substring-locations.h (get_source_range_for_substring): Rename
14749 to...
14750 (get_source_location_for_substring): ...this, and adding param
14751 "caret_idx", and converting output param from source_range * to
14752 location_t *.
14753
14754 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14755
14756 * input.c (class selftest::temp_source_file): Move to
14757 selftest.h.
14758 (selftest::temp_source_file::temp_source_file): Move to
14759 selftest.c.
14760 (selftest::temp_source_file::~temp_source_file): Likewise.
14761 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14762 here from input.c.
14763 (selftest::temp_source_file::~temp_source_file): Likewise.
14764 * selftest.h (class selftest::temp_source_file): Move here from
14765 input.c
14766
14767 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14768
14769 PR target/71910
14770 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14771 inlining, add cgraph edge for the added __builtin_unreachable call.
14772
14773 PR middle-end/67485
14774 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14775 only cast it to SHWI for the final comparison.
14776
14777 2016-08-16 Martin Liska <mliska@suse.cz>
14778
14779 PR gcov-profile/36412
14780 * doc/gcov.texi: Document --hash-filenames(-x).
14781 * gcov.c (print_usage): Add the option.
14782 (process_args): Process the option, sort options alphabetically.
14783 (md5sum_to_hex): New function.
14784 (make_gcov_file_name): Do the md5sum and append it to a
14785 filename.
14786
14787 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14788
14789 PR tree-optimization/69848
14790 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
14791 and swtich operands to avoid additional NOT instruction.
14792 (vcond<v_cmp_mixed><mode>): Ditto.
14793 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14794
14795 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
14796
14797 * doc/install.texi (*-*-solaris2*): Adjust latest change.
14798
14799 2016-08-16 Richard Biener <rguenther@suse.de>
14800
14801 PR tree-optimization/76783
14802 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
14803 BB visited flags at start.
14804
14805 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14806
14807 PR tree-optimization/72817
14808 PR tree-optimization/73450
14809 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
14810 multiple_of_p for adjusted IV.base.
14811
14812 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
14813
14814 PR target/72867
14815 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
14816 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
14817 for !flag_finite_math_only or flag_signed_zeros.
14818 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
14819 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
14820 depend on flag_finite_math_only.
14821 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
14822 New insn pattern.
14823 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
14824 (*ieee_smin<mode>3): Ditto.
14825 (*ieee_smax<mode>3): Ditto.
14826 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
14827 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
14828 flag_signed_zeros.
14829 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
14830 depend on flag_finite_math_only.
14831 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
14832 (*mmx_<code>v2sf3): Remove.
14833 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
14834 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
14835 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
14836
14837 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
14838
14839 PR rtl-optimization/73650
14840 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
14841 it is not a simple move.
14842
14843 2016-08-15 Martin Liska <mliska@suse.cz>
14844
14845 PR driver/72765
14846 * gcc.c (do_spec_1): Call save_string with the right size.
14847 (save_string): Do an assert about string we copy.
14848
14849 2016-08-15 Richard Biener <rguenther@suse.de>
14850
14851 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
14852 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
14853 TV_MACH_DEP.
14854 (pass_data_stv): Likewise.
14855
14856 2016-08-15 Richard Biener <rguenther@suse.de>
14857
14858 PR tree-optimization/73434
14859 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
14860 TBAA info on the base when forwarding a non-invariant address.
14861
14862 2016-08-15 Jakub Jelinek <jakub@redhat.com>
14863
14864 * dwarf2out.c (struct checksum_attributes): Add
14865 at_string_length_bit_size and at_string_length_byte_size fields.
14866 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
14867 and DW_AT_string_length_byte_size.
14868 (die_checksum_ordered): Handle at_string_length_bit_size and
14869 at_string_length_byte_size.
14870 (gen_array_type_die): For dwarf_version >= 5 emit
14871 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14872 (adjust_string_types): For dwarf_version >= 5 remove
14873 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
14874 (resolve_addr): Likewise.
14875
14876 PR debug/71906
14877 * dwarf2out.c (string_types): New variable.
14878 (gen_array_type_die): Change early_dwarf handling of
14879 DW_AT_string_length, create DW_OP_call4 referencing the
14880 length var temporarily. Handle parameters that are pointers
14881 to string length.
14882 (adjust_string_types): New function.
14883 (gen_subprogram_die): Temporarily set string_types to local var,
14884 call adjust_string_types if needed.
14885 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
14886 New functions.
14887 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
14888
14889 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
14890
14891 * doc/install.texi (*-*-solaris2*): Fix version number and document
14892 requirement on GNU make for building libjava with the Solaris linker.
14893
14894 2016-08-15 Martin Liska <mliska@suse.cz>
14895 Jakub Jelinek <jakub@redhat.com>
14896
14897 PR tree-optimization/72824
14898 * tree-loop-distribution.c (const_with_all_bytes_same)
14899 <case VECTOR_CST>: Fix a typo.
14900
14901 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
14902
14903 PR target/76342
14904 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
14905 Renamed from _mm512_undefined_si512.
14906 (_mm_undefined_si512): New definition.
14907
14908 2016-08-13 Richard Biener <rguenther@suse.de>
14909
14910 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
14911 into PHIs and update the lattice for its def.
14912
14913 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14914
14915 PR c/71512
14916 * ubsan.c (instrument_si_overflow): Pass true instead of false
14917 to gsi_replace.
14918 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
14919 of bbs. Return TODO_cleanup_cfg if any returned true.
14920
14921 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14922
14923 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
14924 ISA 3.0 MTVSRDD instruction.
14925 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
14926 vecperm.
14927
14928 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14929
14930 PR tree-optimization/71083
14931 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
14932 bitfield access when possible.
14933
14934 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
14935
14936 PR middle-end/71654
14937 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
14938 sign-changing cast from a shorter unsigned type to a wider
14939 signed type.
14940
14941 2016-08-12 Jakub Jelinek <jakub@redhat.com>
14942
14943 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
14944 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
14945 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
14946
14947 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14948
14949 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14950 Correct costs for vec_construct.
14951
14952 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14953
14954 PR tree-optimization/69848
14955 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14956 type CONST_COND_REDUCTION.
14957 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14958 reudction type CONST_COND_REDUCTION.
14959
14960 2016-08-12 Richard Biener <rguenther@suse.de>
14961
14962 PR tree-optimization/57326
14963 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14964 returning an SSA name.
14965 (phi_translate_1): When fully_constant_expression returns a NAME
14966 make sure we have a leader for it.
14967
14968 2016-08-12 Martin Liska <mliska@suse.cz>
14969 Adam Fineman <afineman@afineman.com>
14970
14971 * gcov.c (process_file): Create .gcov file when .gcda
14972 file is missing.
14973
14974 2016-08-12 Marek Polacek <polacek@redhat.com>
14975
14976 PR c/7652
14977 * alias.c (find_base_value): Adjust fall through comment.
14978 * cfgexpand.c (expand_debug_expr): Likewise.
14979 * combine.c (find_split_point): Likewise.
14980 (expand_compound_operation): Likewise. Add FALLTHRU.
14981 (make_compound_operation): Adjust fall through comment.
14982 (canon_reg_for_combine): Add FALLTHRU.
14983 (force_to_mode): Adjust fall through comment.
14984 (simplify_shift_const_1): Likewise.
14985 (simplify_comparison): Likewise.
14986 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14987 FALLTHRU.
14988 * config/aarch64/predicates.md: Likewise.
14989 * config/i386/i386.c (function_arg_advance_32): Likewise.
14990 (ix86_gimplify_va_arg): Likewise.
14991 (print_reg): Likewise.
14992 (ix86_print_operand): Likewise.
14993 (ix86_build_const_vector): Likewise.
14994 (ix86_expand_branch): Likewise.
14995 (ix86_sched_init_global): Adjust fall through comment.
14996 (ix86_expand_args_builtin): Add FALLTHRU.
14997 (ix86_expand_builtin): Likewise.
14998 (ix86_expand_vector_init_one_var): Likewise.
14999 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15000 (rs6000_adjust_cost): Likewise.
15001 (insn_must_be_first_in_group): Likewise.
15002 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15003 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15004 * df-scan.c (df_uses_record): Likewise.
15005 * dojump.c (do_jump): Add FALLTHRU.
15006 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15007 comment.
15008 (resolve_args_picking_1): Adjust fall through comment.
15009 (loc_list_from_tree_1): Likewise.
15010 * expmed.c (make_tree): Likewise.
15011 * expr.c (expand_expr_real_2): Add FALLTHRU.
15012 (expand_expr_real_1): Likewise. Adjust fall through comment.
15013 * fold-const.c (const_binop): Adjust fall through comment.
15014 (fold_truth_not_expr): Likewise.
15015 (fold_cond_expr_with_comparison): Add FALLTHRU.
15016 (fold_binary_loc): Likewise.
15017 (contains_label_1): Adjust fall through comment.
15018 (multiple_of_p): Likewise.
15019 * gcov-tool.c (process_args): Add FALLTHRU.
15020 * genattrtab.c (check_attr_test): Likewise.
15021 (write_test_expr): Likewise.
15022 * genconfig.c (walk_insn_part): Likewise.
15023 * genpreds.c (validate_exp): Adjust fall through comment.
15024 (needs_variable): Likewise.
15025 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15026 (subst_dup): Likewise.
15027 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15028 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15029 (gimplify_scan_omp_clauses): Add FALLTHRU.
15030 (goa_stabilize_expr): Likewise.
15031 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15032 through comment.
15033 * hsa-gen.c (get_address_from_value): Likewise.
15034 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15035 * ira.c (ira_setup_alts): Add FALLTHRU.
15036 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15037 comment.
15038 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15039 * opts.c (common_handle_option): Likewise.
15040 * read-rtl.c (read_rtx_code): Likewise.
15041 * real.c (round_for_format): Likewise.
15042 * recog.c (asm_operand_ok): Likewise.
15043 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15044 * reload1.c (set_label_offsets): Likewise.
15045 (eliminate_regs_1): Likewise.
15046 (reload_reg_reaches_end_p): Likewise.
15047 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15048 (rtx_cost): Likewise.
15049 * sched-rgn.c (is_exception_free): Likewise.
15050 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15051 * stor-layout.c (int_mode_for_mode): Likewise.
15052 * toplev.c (print_to_asm_out_file): Likewise.
15053 (print_to_stderr): Likewise.
15054 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15055 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15056 (chrec_fold_multiply): Likewise.
15057 (evolution_function_is_invariant_rec_p): Likewise.
15058 (for_each_scev_op): Likewise.
15059 * tree-data-ref.c (siv_subscript_p): Likewise.
15060 (get_references_in_stmt): Likewise.
15061 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15062 (substitute_in_expr): Likewise.
15063 (type_cache_hasher::equal): Likewise.
15064 (walk_type_fields): Likewise.
15065 * var-tracking.c (adjust_mems): Add FALLTHRU.
15066 (set_dv_changed): Adjust fall through comment.
15067 * varasm.c (default_function_section): Add FALLTHRU.
15068
15069 2016-08-12 Marek Polacek <polacek@redhat.com>
15070
15071 PR c/7652
15072 * tree-complex.c (expand_complex_division): Add missing break.
15073
15074 2016-08-12 Richard Biener <rguenther@suse.de>
15075
15076 * passes.c (execute_todo): Do not push/pop TV_TODO.
15077 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15078 (execute_one_pass): Likewise.
15079 * common.opt (ftime-report-details): New switch.
15080 * doc/invoke.texi (ftime-report-details): Document.
15081 * timevar.h (timer::print_row): Adjust signature.
15082 (timer::all_zero): New static helper.
15083 (timer::child_map_t): New typedef.
15084 (timer::time_var_def): Add children field.
15085 * timevar.c (timer::named_items::print): Adjust.
15086 (timer::~timer): Free timevar recorded children.
15087 (timer::pop_internal): When -ftime-report-details record
15088 time spent in sub-timevars.
15089 (timer::print_row): Adjust.
15090 (timer::print): Print sub-timevar stats, use all_zero.
15091 * timevar.def (TV_TODO): Remove.
15092
15093 2016-08-12 Richard Biener <rguenther@suse.de>
15094
15095 PR tree-optimization/72851
15096 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15097 worklists to use bitmaps indexed in execution order.
15098 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15099 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15100 (cfg_blocks): Make a bitmap.
15101 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15102 New globals.
15103 (cfg_blocks_empty_p): Adjust.
15104 (cfg_blocks_add): Likewise.
15105 (cfg_blocks_get): Likewise.
15106 (add_ssa_edge): Likewise.
15107 (add_control_edge): Likewise.
15108 (simulate_stmt): Likewise.
15109 (process_ssa_edge_worklist): Likewise.
15110 (simulate_block): Likewise.
15111 (ssa_prop_init): Compute PRE order and stmt UIDs.
15112 (ssa_prop_fini): Adjust.
15113 (ssa_propagate): Adjust.
15114
15115 2016-08-12 Richard Biener <rguenther@suse.de>
15116
15117 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15118 the currently executable edges have fixed ranges. Always
15119 go through update_value_range.
15120
15121 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15122
15123 PR debug/63240
15124 * langhooks-def.h
15125 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15126 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15127 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15128 (LANG_HOOKS_DECLS): Add it.
15129 * langhooks.h (struct lang_hooks_for_decls): Add
15130 function_decl_defaulted. Const_tree-ify
15131 function_decl_explicit_p and function_decl_deleted_p.
15132 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15133 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15134 also at strict DWARF v5.
15135
15136 PR debug/55641
15137 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15138 TYPE_QUAL_CONST in reference-typed decls.
15139
15140 PR debug/49366
15141 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15142 in DW_OP_pieces, just enough to handle pointers to member
15143 functions.
15144 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15145 expression on DWARFv5 if a constant value doesn't work.
15146
15147 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15148
15149 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15150 * selftest.c (selftest::test_assertions): New function.
15151 (selftest::selftest_c_tests): New function.
15152 * selftest.h (selftest::selftest_c_tests): New declaration.
15153
15154 2016-08-11 Richard Biener <rguenther@suse.de>
15155 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15156
15157 PR rtl-optimization/72855
15158 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15159
15160 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15161
15162 PR target/72863
15163 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15164 (vsx_store_<mode>): Likewise.
15165
15166 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15167
15168 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15169 TImode CONST_WIDE_INT store.
15170 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15171
15172 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15173
15174 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15175 mode if unaligned SSE load and store are optimal.
15176
15177 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15178
15179 PR tree-optimization/71083
15180 * tree-predcom.c (ref_at_iteration): Correctly align the
15181 reference type.
15182
15183 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15184
15185 * config/s390/s390-builtin-types.def: Add INT128 types.
15186 * config/s390/s390-builtins.def: Add INT128 variants for the add
15187 sub low-level builtins dealing with TImode.
15188 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15189 via subreg when expanding a builtin.
15190 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15191 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15192 Fix comment.
15193 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15194 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15195 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15196 "vacc<bhfgq>_<mode>".
15197 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15198 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15199 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15200 "vscbi<bhfgq>_<mode>".
15201 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15202 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15203
15204 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15205
15206 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15207
15208 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15209
15210 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15211 unused declaration.
15212 (vcond<v_cmp_mixed><mode>): Ditto.
15213 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15214
15215 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15216
15217 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15218 variable explicitly, also assert on it before use.
15219
15220 2016-08-11 Richard Biener <rguenther@suse.de>
15221
15222 PR tree-optimization/72772
15223 * cfgloopmanip.c (create_preheader): Use split_edge if there
15224 is a single loop entry, avoiding degenerate PHIs.
15225
15226 2016-08-11 Richard Biener <rguenther@suse.de>
15227
15228 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15229 unconditional TODO_cleanup_cfg.
15230 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15231 cleanup only if we threaded a jump.
15232
15233 2016-08-11 Alan Modra <amodra@gmail.com>
15234
15235 PR target/71680
15236 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15237 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15238 slow. Emit two reloads for slow mem case, first loading in
15239 fast innermode, then converting to required mode.
15240
15241 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15242
15243 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15244 (vec_extract_sig): New macro.
15245 (vec_insert_exp): New macro.
15246 (vec_test_data_class): New macro.
15247 (scalar_extract_exp): New macro.
15248 (scalar_extract_sig): New macro.
15249 (scalar_insert_exp): New macro.
15250 (scalar_test_data_class): New macro.
15251 (scalar_test_neg): New macro.
15252 (scalar_cmp_exp_gt): New macro.
15253 (scalar_cmp_exp_lt): New macro.
15254 (scalar_cmp_exp_eq): New macro.
15255 (scalar_cmp_exp_unordered): New macro.
15256 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15257 to enforce constraint that operand is a 7-bit unsigned literal.
15258 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15259 for power9 built-ins.
15260 (BU_P9V_VSX_2): Likewise.
15261 (BU_P9V_64BIT_VSX_2): Likewise.
15262 (VSEEDP): Add scalar extract exponent support.
15263 (VSEESP): Add scalar extract signature support.
15264 (VSTDCNDP): Add scalar test negative support.
15265 (VSTDCNSP): Likewise.
15266 (VSIEDP): Add scalar insert exponent support.
15267 (VSCEDPGT): Add scalar compare exponent greater than support.
15268 (VSCEDPLT): Add scalar compare exponent less than support.
15269 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15270 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15271 (VSTDCDP): Add scalar test data class support.
15272 (VSTDCSP): Likewise.
15273 (VSEEDP): Add overload support for scalar extract exponent
15274 operation.
15275 (VSESDP): Add overload support for scalar extract signature
15276 operation.
15277 (VSTDCN): Add overload support for scalar test negative
15278 operation.
15279 (VSTDCNDP): Add overload support for scalar test negative
15280 operation.
15281 (VSTDCNSP): Add overload support for scalar test negative
15282 operation.
15283 (VSIEDP): Add overload support for scalar insert exponent
15284 operation.
15285 (VSTDC): Add overload support for scalar test data class
15286 operation.
15287 (VSTDCDP): Add overload support for scalar test data class
15288 operation.
15289 (VSTDCSP): Add overload support for scalar test data class
15290 opreation.
15291 (VSCEDPGT): Add overload support for scalar compare exponent
15292 greater than operation.
15293 (VSCEDPLT): Add overload support for scalar compare exponent
15294 less than operation.
15295 (VSCEDPEQ): Add overload support for scalar compare exponent
15296 test-for-equality operation.
15297 (VSCEDPUO): Add overload support for scalar compare exponent
15298 test-for-unordered operation.
15299 (VEEDP): Add vector extract exponent support.
15300 (VEESP): Likewise.
15301 (VESDP): Add vector extract significand support.
15302 (VESSP): Likewise.
15303 (VIEDP): Add vector insert exponent support.
15304 (VIESP): Likewise.
15305 (VTDCDP): Add vector test data class support.
15306 (VTDCSP): Likewise.
15307 (VES): Add overload support for vector extract significand operation.
15308 (VESDP): Likewise.
15309 (VESSP): Likewise
15310 (VEE): Add overload support for vector extract exponent operation.
15311 (VEEDP): Likewise.
15312 (VEESP): Likewise.
15313 (VTDC): Add overload support for vector test data class operation.
15314 (VTDCDP): Likewise.
15315 (VTDCSP): Likewise.
15316 (VIE): Add overload support for vector insert exponent operation.
15317 (VIEDP): Likewise.
15318 (VIESP): Likewise.
15319 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15320 overloaded binary floating point functions.
15321 (altivec_resolve_overloaded_builtin): Improve error messages to
15322 distinguish between functions not supported in the current
15323 compiler configuration and functions that were invoked with an
15324 invalid parameter combination, and include the built-in function
15325 name in both error messages.
15326 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15327 New prototype.
15328 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15329 function.
15330 (rs6000_expand_binop_builtin): Add check to enforce that argument
15331 2 of the test data class operations is a 7-bit unsigned literal.
15332 (rs6000_invalid_builtin): Add code to issue an error message if a
15333 built-in function that requires the power9_vector and -m32
15334 command-line options is compiled without these options.
15335 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15336 (UNSPEC_VSX_SXSIGDP): New value.
15337 (UNSPEC_VSX_SXSIGPDP): New value.
15338 (UNSPEC_VSX_SIEXPDP): New value.
15339 (UNSPEC_VSX_SCMPEXPDP): New value.
15340 (UNSPEC_VSX_STSTDC): New value.
15341 (UNSPEC_VSX_VXEXP): New value.
15342 (UNSPEC_VSX_VXSIG): New value.
15343 (UNSPEC_VSX_VIEXP): New value.
15344 (UNSPEC_VSX_VTSTDC): New value.
15345 (xsxexpdp): New insn for scalar extract exponent.
15346 (xsxsigdp): New insn for scalar extract significand.
15347 (xsiexpdp): New insn for scalar insert exponent.
15348 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15349 (*xscmpexpdp): New insn for scalar compare exponents.
15350 (xststdc<Fvsx): New expansion for both single- and
15351 double-precision scalar test data class operations.
15352 (xststdcneg<Fvsx>): New expansion for both single- and
15353 double-precision scalar test for negative value operations.
15354 (*xststdc<Fvsx>): New insn for scalar test data class
15355 operation.
15356 (xvxexp<VSs>): New insn for single- and double-precision
15357 vector extract exponent operation.
15358 (xvxsig<VSs>): New insn for single- and double-precision
15359 vector extract significand operation.
15360 (xviexp<VSs>): New insn for single- and double-precision
15361 vector insert exponent operation.
15362 (xvtstdc<VSs>): New insn for single- and double-precision
15363 vector test data class operation.
15364 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15365 built-in functions to represent the Power9 binary floating-point
15366 support instructions.
15367
15368 2016-08-10 bin cheng <bin.cheng@arm.com>
15369
15370 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15371
15372 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15373 Renlin Li <renlin.li@arm.com>
15374 Bin Cheng <bin.cheng@arm.com>
15375
15376 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15377 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15378 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15379 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15380 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15381 (vcond<v_cmp_result><mode>): Ditto.
15382 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15383 (vcondu<mode><mode>): Ditto.
15384 (vcond<v_cmp_mixed><mode>): New pattern.
15385 (vcondu<mode><v_cmp_mixed>): New pattern.
15386 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15387 of aarch64_vcond_internal.
15388
15389 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15390 Renlin Li <renlin.li@arm.com>
15391 Bin Cheng <bin.cheng@arm.com>
15392
15393 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15394 (vec_cmp<mode><v_cmp_result>): New pattern.
15395 (vec_cmpu<mode><mode>): New pattern.
15396 (vcond_mask_<mode><v_cmp_result>): New pattern.
15397
15398 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15399
15400 PR tree-optimization/71734
15401 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15402 REF_LOOP, invoke ref_indep_loop_p_1.
15403 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15404 to ref_indep_loop_p.
15405 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15406 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15407 is inside LOOP, do not cache dpendence value for loops with
15408 non-zero SAFELEN.
15409 (ref_indep_loop_p_2): Delete function.
15410 (can_sm_ref_p): Pass LOOP as additional argument to
15411 ref_indep_loop_p.
15412
15413 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15414
15415 PR target/72853
15416 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15417 being an offsettable address.
15418
15419 2016-08-10 Martin Liska <mliska@suse.cz>
15420
15421 PR gcov-profile/58306
15422 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15423 atomic variants of profile update functions.
15424
15425 2016-08-10 Martin Liska <mliska@suse.cz>
15426
15427 Cherry picked (and modified) from google-4_7 branch
15428 2012-12-26 Rong Xu <xur@google.com>
15429 * common.opt (fprofile-update): Add new flag.
15430 * coretypes.h: Define enum profile_update.
15431 * doc/invoke.texi: Document -fprofile-update.
15432 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15433 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15434 * tree-profile.c (gimple_init_edge_profiler): Generate
15435 also atomic profiler update.
15436 (gimple_gen_edge_profiler): Likewise.
15437
15438 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15439
15440 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15441 stack_usage_file to NULL after fclose calls.
15442
15443 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15444
15445 PR target/71873
15446 * reload.c (push_reload): Compute subreg_in_class for
15447 subregs of constants and plus expressions. Remove special
15448 handling of SYMBOL_REFs.
15449
15450 2016-08-10 Alan Modra <amodra@gmail.com>
15451
15452 PR target/71680
15453 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15454 SImode for TARGET_E500_DOUBLE when given SImode.
15455
15456 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15457
15458 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15459 unused variable __O.
15460
15461 2016-08-09 Martin Liska <mliska@suse.cz>
15462
15463 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15464 _gcov_reset to __gcov_reset.
15465 * doc/gcov-tool.texi: Fix typo.
15466
15467 2016-08-09 Martin Liska <mliska@suse.cz>
15468
15469 * value-prof.c (gimple_divmod_values_to_profile): Do not
15470 instrument MOD histogram if a value is not a SSA name.
15471
15472 2016-08-09 Martin Liska <mliska@suse.cz>
15473
15474 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15475 values.
15476
15477 2016-08-09 Renlin Li <renlin.li@arm.com>
15478
15479 PR middle-end/64971
15480 * calls.c (prepare_call_address): Convert funexp to Pmode when
15481 necessary.
15482 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15483 (sibcall_value): Likewise.
15484
15485 2016-08-09 Marek Polacek <polacek@redhat.com>
15486
15487 PR c/7652
15488 * cselib.c (cselib_expand_value_rtx_1): Add return.
15489 * gengtype.c (dbgprint_count_type_at): Likewise.
15490 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15491 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15492
15493 2016-08-09 Martin Jambor <mjambor@suse.cz>
15494
15495 PR ipa/71981
15496 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15497 if instance is a MEM_REF.
15498
15499 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15500
15501 PR target/72843
15502 * config/i386/i386.md (*movtf_internal): Use
15503 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15504 in the insn constraint.
15505 (*movxf_internal): Ditto.
15506 (*movdf_internal): Ditto.
15507 (*movsf_internal): Ditto.
15508
15509 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15510
15511 PR tree-optimization/72772
15512 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15513 for expanded base.
15514
15515 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15516
15517 PR tree-optimization/72772
15518 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15519 parameter STOP.
15520 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15521 parameter STOP and update calls. Move expand_simple_operations
15522 function call from here...
15523 (simplify_using_initial_conditions): ...to here. Delete parameter
15524 STOP.
15525 (tree_simplify_using_condition): Delete parameter STOP.
15526 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15527 simplify_using_initial_conditions.
15528
15529 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15530
15531 PR c/65345
15532 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15533 Use create_tmp_var_raw instead of create_tmp_var.
15534
15535 2016-08-09 Richard Biener <rguenther@suse.de>
15536
15537 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15538 Treat same SSA names related.
15539
15540 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15541
15542 PR tree-optimization/72824
15543 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15544 real_zerop is not negative.
15545
15546 2016-08-09 Richard Biener <rguenther@suse.de>
15547
15548 PR tree-optimization/71802
15549 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15550 all merge opportunities with the predecessor.
15551
15552 2016-08-09 Richard Biener <rguenther@suse.de>
15553
15554 PR ipa/68273
15555 * ipa-prop.c (ipa_modify_formal_parameters): Build
15556 parameter types with natural alignment also for the
15557 over-aligned case.
15558
15559 2016-08-08 Andi Kleen <ak@linux.intel.com>
15560
15561 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15562
15563 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15564
15565 PR c/64955
15566 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15567 do-nothing langhook.
15568 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15569 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15570 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15571 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15572
15573 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15574
15575 PR bootstrap/72844
15576 * input.c: Ensure that HAVE_ICONV is defined.
15577
15578 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15579
15580 PR middle-end/72781
15581 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15582 private vars for lastprivate and for linear iterator.
15583
15584 PR middle-end/68762
15585 * omp-simd-clone.c: Include varasm.h.
15586 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15587 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15588 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15589 update function name.
15590
15591 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15592
15593 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15594 (avr_diagnose_devicespecs_error): Remove.
15595 (avr_devicespecs_file): Remove composing absolute path for specfile
15596 and its verbose info. Remove conditions to check specs-file,
15597
15598 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15599
15600 PR rtl-optimization/72821
15601 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15602 just return false for them.
15603
15604 2016-08-08 Alan Modra <amodra@gmail.com>
15605
15606 PR target/72771
15607 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15608 toc refs created during reload. Update function comment.
15609
15610 2016-08-08 Alan Modra <amodra@gmail.com>
15611
15612 PR target/72802
15613 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15614 alternatives. Put loads first, then stores, and reg/reg moves
15615 within same class later. Delete attr length.
15616
15617 2016-08-08 Alan Modra <amodra@gmail.com>
15618
15619 PR target/72802
15620 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15621 (mem_operand_ds_form): New predicate.
15622 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15623 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15624 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15625 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15626 (extendsfdf2_fpr): Replace o constraint with wY.
15627
15628 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15629
15630 * tree-ssa-threadbackward.c: Include tree-inline.h
15631 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15632 size of copied block; for cold paths reduce duplication.
15633 (find_jump_threads_backwards): Remove redundant tests.
15634 (pass_thread_jumps::gate): Enable for -Os.
15635
15636 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15637
15638 PR c/72816
15639 * stor-layout.c (layout_decl): Fix up formatting.
15640 (relayout_decl): Allow DECL to be FIELD_DECL.
15641
15642 2016-08-07 Alan Modra <amodra@gmail.com>
15643
15644 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15645
15646 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15647
15648 * data-streamer-in.c (streamer_read_wide_int): New.
15649 (streamer_read_widest_int): Renamed function.
15650 * data-streamer-out.c (streamer_write_wide_int): New
15651 (streamer_write_widest_int): Renamed function.
15652 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15653 data-stream-in.c.
15654 (input_cfg): Call renamed function.
15655 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15656 data-stream-out.c.
15657 (output_cfg): Call renamed function.
15658 * data-streamer.h: Add declarations.
15659
15660 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15661
15662 * tree-ssa-ccp.c (extend_mask): New param sgn.
15663 Remove ORing with wi::mask.
15664 (get_default_value): Adjust call to extend_mask to pass sign.
15665 (evaluate_stmt): Likewise.
15666
15667 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15668
15669 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15670 INT64_MAX.
15671
15672 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15673
15674 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15675 transform if operand's type is pointer to function or method.
15676
15677 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15678
15679 PR tree-optimization/18046
15680 * tree-ssa-threadedge.c: Include cfganal.h.
15681 (simplify_control_statement_condition): If simplifying a
15682 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15683 with the dominating ASSERT_EXPR before handing it off to VRP.
15684 Mention that a CASE_LABEL_EXPR may be returned.
15685 (thread_around_empty_blocks): Adjust to handle
15686 simplify_control_statement_condition() returning a
15687 CASE_LABEL_EXPR.
15688 (thread_through_normal_block): Likewise.
15689 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15690 a switch statement by trying to determine which case label
15691 will be taken.
15692
15693 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15694
15695 PR rtl-optimization/69847
15696 * lra-constraints.c (process_invariant_for_inheritance): Save
15697 pattern instead of src.
15698 (remove_inheritance_pseudos): Use the pattern. Add assert.
15699
15700 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15701
15702 * input.c (string_concat::string_concat): New constructor.
15703 (string_concat_db::string_concat_db): New constructor.
15704 (string_concat_db::record_string_concatenation): New method.
15705 (string_concat_db::get_string_concatenation): New method.
15706 (string_concat_db::get_key_loc): New method.
15707 (class auto_cpp_string_vec): New class.
15708 (get_substring_ranges_for_loc): New function.
15709 (get_source_range_for_substring): New function.
15710 (get_num_source_ranges_for_substring): New function.
15711 (class selftest::lexer_test_options): New class.
15712 (struct selftest::lexer_test): New struct.
15713 (class selftest::ebcdic_execution_charset): New class.
15714 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15715 (selftest::lexer_test::lexer_test): New constructor.
15716 (selftest::lexer_test::~lexer_test): New destructor.
15717 (selftest::lexer_test::get_token): New method.
15718 (selftest::assert_char_at_range): New function.
15719 (ASSERT_CHAR_AT_RANGE): New macro.
15720 (selftest::assert_num_substring_ranges): New function.
15721 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15722 (selftest::assert_has_no_substring_ranges): New function.
15723 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15724 (selftest::test_lexer_string_locations_simple): New function.
15725 (selftest::test_lexer_string_locations_ebcdic): New function.
15726 (selftest::test_lexer_string_locations_hex): New function.
15727 (selftest::test_lexer_string_locations_oct): New function.
15728 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15729 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15730 (selftest::test_lexer_string_locations_ucn4): New function.
15731 (selftest::test_lexer_string_locations_ucn8): New function.
15732 (selftest::uint32_from_big_endian): New function.
15733 (selftest::test_lexer_string_locations_wide_string): New function.
15734 (selftest::uint16_from_big_endian): New function.
15735 (selftest::test_lexer_string_locations_string16): New function.
15736 (selftest::test_lexer_string_locations_string32): New function.
15737 (selftest::test_lexer_string_locations_u8): New function.
15738 (selftest::test_lexer_string_locations_utf8_source): New function.
15739 (selftest::test_lexer_string_locations_concatenation_1): New
15740 function.
15741 (selftest::test_lexer_string_locations_concatenation_2): New
15742 function.
15743 (selftest::test_lexer_string_locations_concatenation_3): New
15744 function.
15745 (selftest::test_lexer_string_locations_macro): New function.
15746 (selftest::test_lexer_string_locations_stringified_macro_argument):
15747 New function.
15748 (selftest::test_lexer_string_locations_non_string): New function.
15749 (selftest::test_lexer_string_locations_long_line): New function.
15750 (selftest::test_lexer_char_constants): New function.
15751 (selftest::input_c_tests): Call the new test functions once per
15752 case within the line_table test matrix.
15753 * input.h (struct string_concat): New struct.
15754 (struct location_hash): New struct.
15755 (class string_concat_db): New class.
15756 * substring-locations.h: New header.
15757
15758 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15759
15760 PR tree-optimization/72810
15761 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15762 the type of the case labels when truncating.
15763
15764 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15765
15766 PR Target/72819
15767 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15768 (aarch64_fp16_ptr_type_node): Likewise.
15769 * config/aarch64/aarch64-simd-builtins.c
15770 (aarch64_fp16_ptr_type_node): Define.
15771 (aarch64_init_fp16_types): New, refactored out of...
15772 (aarch64_init_builtins): ...here, update to call
15773 aarch64_init_fp16_types.
15774 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15775 HFmode.
15776 (aapcs_vfp_sub_candidate): Likewise.
15777
15778 2016-08-05 Martin Liska <mliska@suse.cz>
15779 Joshua Cranmer <Pidgeot18@gmail.com>
15780
15781 * gcov.c (line_t::has_block): New function.
15782 (enum loop_type): New enum.
15783 (handle_cycle): New function.
15784 (unblock): Likewise.
15785 (circuit): Likewise.
15786 (get_cycles_count): Likewise.
15787 (accumulate_line_counts): Use new loop detection algorithm.
15788
15789 2016-08-05 Martin Liska <mliska@suse.cz>
15790
15791 * gcov.c (output_intermediate_file): Rename
15792 function_info::line_next to next_file_fn.
15793 (process_file): Likewise.
15794 (read_graph_file): Likewise.
15795 (accumulate_line_counts): Likewise.
15796 (output_lines): Likewise.
15797
15798 2016-08-05 Richard Biener <rguenther@suse.de>
15799
15800 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
15801 restriction on threading to a loop header.
15802
15803 2016-08-05 Richard Biener <rguenther@suse.de>
15804
15805 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
15806 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
15807 adjust loop info accordingly.
15808
15809 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
15810
15811 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
15812 before folding call to __builtin_constant_p with parameters to false.
15813
15814 2016-08-05 Alan Modra <amodra@gmail.com>
15815
15816 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
15817 code accidentally committed 2016-05-02 providing class when given
15818 NO_REGS.
15819
15820 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15821
15822 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
15823 the case label ranges that partially overlap with OP's value
15824 range.
15825
15826 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
15827
15828 PR target/72805
15829 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
15830 Cast builtin function result to __mmask16 instead of __mmask8.
15831 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15832 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
15833 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
15834
15835 2016-08-04 David Malcolm <dmalcolm@redhat.com>
15836
15837 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
15838 (ASSERT_TRUE_AT): New macro.
15839 (ASSERT_FALSE): Reimplement in terms of...
15840 (ASSERT_FALSE_AT): New macro.
15841 (ASSERT_STREQ_AT): Fix typo in comment.
15842
15843 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
15844
15845 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
15846 labels are exhaustive, designate the label with the widest
15847 range to be the default label.
15848
15849 2016-08-04 Andrew Pinski <apinski@cavium.com>
15850
15851 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
15852 (thunderx_tunings): Use thunderx_vector_cost instead of
15853 generic_vector_cost.
15854
15855 2016-08-04 Martin Liska <mliska@suse.cz>
15856
15857 * gcov.c (main): Fix GNU coding style.
15858 (output_intermediate_file): Likewise.
15859 (process_file): Likewise.
15860 (generate_results): Likewise.
15861 (release_structures): Likewise.
15862 (create_file_names): Likewise.
15863 (find_source): Likewise.
15864 (read_graph_file): Likewise.
15865 (find_exception_blocks): Likewise.
15866 (canonicalize_name): Likewise.
15867 (make_gcov_file_name): Likewise.
15868 (mangle_name): Likewise.
15869 (accumulate_line_counts): Likewise.
15870 (output_branch_count): Likewise.
15871 (read_line): Likewise.
15872
15873 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
15874
15875 PR rtl-optimization/71779
15876 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
15877 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
15878 or if it was truncated.
15879
15880 PR rtl-optimization/70903
15881 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
15882
15883 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15884
15885 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
15886 accessing SSA_NAME_PTR_INFO.
15887
15888 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15889
15890 PR 70677
15891 * common/config/avr/avr-common.c (avr_option_optimization_table)
15892 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
15893
15894 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
15895
15896 PR 55181
15897 * config/avr/avr.md: New pattern to work around do_store_flag
15898 generating shift instructions for bit extractions.
15899
15900 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
15901
15902 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
15903 BITMAP_ALLOC.
15904 (add_equivalence): Likewise.
15905 (get_value_range): Allocate value range with vrp_value_range_pool.
15906 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
15907 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
15908
15909 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
15910
15911 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
15912 the default for the rs6000 port.
15913
15914 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15915
15916 PR middle-end/71876
15917 * calls.c (special_function_p): Remove special handling of
15918 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
15919 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
15920 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
15921
15922 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
15923
15924 PR middle-end/72778
15925 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
15926 Don't stop on regular insns.
15927
15928 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
15929
15930 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
15931 size to DImode boundary.
15932 (nvptx_propagate): Likewise.
15933
15934 2016-08-03 Alan Modra <amodra@gmail.com>
15935
15936 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
15937 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
15938 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
15939 from -mefficient-unaligned-vector. Note that this affects fp too.
15940
15941 2016-08-03 Alan Modra <amodra@gmail.com>
15942
15943 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
15944 cost more.
15945
15946 2016-08-03 Alan Modra <amodra@gmail.com>
15947
15948 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
15949 to a reg. Localize vars.
15950
15951 2016-08-03 Alan Modra <amodra@gmail.com>
15952
15953 * config/rs6000/rs6000.opt: Remove negatives from help strings
15954 and comments.
15955
15956 2016-08-03 Alan Modra <amodra@gmail.com>
15957
15958 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15959 Delete duplicated code.
15960
15961 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15962
15963 PR middle-end/72778
15964 * lra-spills.c (regno_in_use_p): New.
15965 (lra_final_code_change): Use it.
15966
15967 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15968
15969 PR rtl-optimization/69847
15970 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15971 restore_regno.
15972 (lra_rtx_hash): New.
15973 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15974 of restore_regno.
15975 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15976 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15977 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15978 next insn is USE with the same reg as the current insn source.
15979 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15980 of restore_regno.
15981 (lra_constraints_init): Call initiate_invariants.
15982 (lra_constraints_finish): Call finish_invariants.
15983 (struct invariant, invariant_t, invariant_ptr_t): New.
15984 (const_invariant_ptr_t, invariants, invariants_pool): New.
15985 (invariant_table, invariant_hash, invariant_eq_p): New.
15986 (insert_invariant, initiate_invariants, finish_invariants): New.
15987 (clear_invariants, invalid_invariant_regs): New.
15988 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15989 instead of restore_regno.
15990 (invariant_p, process_invariant_for_inheritance): New.
15991 (inherit_in_ebb): Implement invariant inheritance.
15992 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15993 (remove_inheritance_pseudos): Implement undoing invariant
15994 inheritance.
15995 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15996 instead of restore_regno.
15997 * lra-assigns.c (regno_live_length): New.
15998 (reload_pseudo_compare_func): Use regno_live_length.
15999 (assign_by_spills): Use restore_rtx instead of restore_regno.
16000 (lra_assign): Ditto. Initiate regno_live_length.
16001
16002 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16003
16004 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16005 __builtin_aarch64_fmindf.
16006
16007 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16008
16009 PR tree-optimization/34114
16010 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16011 information for more control IVs.
16012
16013 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16014
16015 PR tree-optimization/34114
16016 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16017 PLUS_EXPR case. Handle SSA_NAME case.
16018
16019 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16020
16021 * config/aarch64/aarch64-simd-builtins.def
16022 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16023 (__builtin_aarch64_fmaxdf): Likewise.
16024 (__builtin_aarch64_smin_nandf): Likewise.
16025 (__builtin_aarch64_smax_nandf): Likewise.
16026 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16027 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16028 (<fmaxmin><mode>3): ...this.
16029 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16030 (vminnm_f64): Likewise.
16031 (vmin_f64): Likewise.
16032 (vmax_f64): Likewise.
16033 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16034 (FMAXMIN_UNS): ...this.
16035 (fmaxmin): Merged with
16036 (fmaxmin_op): ...this...
16037 (maxmin_uns_op): ...in to this.
16038
16039 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16040
16041 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16042 Add support for vec_extract on vector float, vector int, vector
16043 short, and vector char vector types.
16044 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16045 vector float, vector int, vector short, and vector char
16046 optimizations on 64-bit ISA 2.07 systems for both constant and
16047 variable element numbers.
16048 (rs6000_split_vec_extract_var): Likewise.
16049 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16050 Altivec registers on ISA 2.07 and above.
16051 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16052 which never was matched due to the split occuring before register
16053 allocation (and the code would not have worked on little endian
16054 systems if it did match). Allow extracts to go to the Altivec
16055 registers if ISA 2.07 (power8). Change from using "" around the
16056 C++ code to using {}'s.
16057 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16058 vec_extracts when the vector is in memory.
16059 (vsx_extract_v4sf_var): New insn to optimize vector float
16060 vec_extracts when the element number is variable on 64-bit ISA
16061 2.07 systems.
16062 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16063 for 64-bit ISA 2.07 as well as ISA 3.0.
16064 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16065 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16066 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16067 optimize vector int, vector short, and vector char vec_extracts
16068 when the vector is in memory.
16069 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16070 optimize vector int, vector short, and vector char vec_extracts
16071 when the element number is variable.
16072
16073 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16074
16075 PR target/71948
16076 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16077 does not overlap with other symbol flags.
16078
16079 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16080
16081 * config/aarch64/aarch64.h (aarch64_frame):
16082 Remove padding0 and hardfp_offset. Add locals_offset,
16083 initial_adjust, callee_adjust, callee_offset and final_adjust.
16084 * config/aarch64/aarch64.c (aarch64_layout_frame):
16085 Remove unused padding0 and hardfp_offset initializations.
16086 Choose frame layout and set frame variables accordingly.
16087 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16088 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16089 (aarch64_pop_regs): Likewise.
16090 (aarch64_expand_prologue): Remove all decision code, just emit
16091 prolog according to frame variables.
16092 (aarch64_expand_epilogue): Remove all decision code, just emit
16093 epilog according to frame variables.
16094 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16095
16096 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16097
16098 PR target/72748
16099 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16100 fix_debug_reg_uses after changing source register mode to
16101 V1TImode if source register is undefined.
16102
16103 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16104
16105 PR tree-optimization/71818
16106 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16107 with non invariant evolutions
16108
16109 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16110
16111 PR target/72767
16112 * config/avr/avr.md (length) [branch]: Correct insn length
16113 attribute for forward branches.
16114
16115 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16116
16117 * doc/extend.texi (AVR Built-in Functions): Document
16118 __builtin_avr_nops.
16119 * config/avr/builtins.def (NOPS): New.
16120 * config/avr/avr.c (avr_expand_nops): New static function.
16121 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16122
16123 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16124
16125 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16126 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16127 addresses.
16128
16129 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16130
16131 * config/aarch64/aarch64.c (vulcan_tunings): Update
16132 vulcan L1 cache_line_size.
16133
16134 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16135
16136 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16137 function that takes a vector memory address, a hard register, an
16138 element number and a temporary base register, and recreates an
16139 address that points to the appropriate element within the vector.
16140 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16141 (rs6000_split_vec_extract_var): Add support for the target of a
16142 vec_extract with variable element number being a scalar memory
16143 location.
16144 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16145 swappable.
16146 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16147 vsx_extract_<mode>_load insn with a new insn that optimizes
16148 storing either element to a memory location, using scratch
16149 registers to pick apart the vector and reconstruct the address.
16150 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16151 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16152 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16153 store instruction.
16154 (vsx_extract_<mode>_var): Add support for extracting a variable
16155 element number from memory.
16156
16157 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16158
16159 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16160 when testing for compares against constants of the form 0xabab.
16161
16162 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16163
16164 PR tree-optimization/57558
16165 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16166 function.
16167 (vect_loop_versioning): Support versioning with niter assumptions.
16168 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16169 (vect_get_loop_niters): New parameter. Reimplement to support
16170 assumptions in loop niter info.
16171 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16172 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16173 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16174 Support loop versioning for niters.
16175 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16176 (vect_free_loop_info_assumptions): New function.
16177 (vectorize_loops): Free loop niter info for loops with flag
16178 LOOP_F_ASSUMPTIONS set if vectorization failed.
16179 * tree-vectorizer.h (struct _loop_vec_info): New field
16180 num_iters_assumptions.
16181 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16182 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16183 (LOOP_REQUIRES_VERSIONING): New macro.
16184 (vect_free_loop_info_assumptions): New decl.
16185
16186 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16187
16188 * cfgloop.h (struct loop): New field constraints.
16189 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16190 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16191 functions.
16192 * cfgloop.c (alloc_loop): Initialize new field.
16193 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16194 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16195 Adjust niter analysis wrto loop constraints.
16196 * doc/loop.texi (@node Number of iterations): Add description for loop
16197 constraints.
16198
16199 2016-07-29 Marek Polacek <polacek@redhat.com>
16200
16201 PR c/7652
16202 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16203 (ix86_expand_round_builtin): Likewise.
16204
16205 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16206 Georg-Johann Lay <avr@gjlay.de>
16207
16208 PR rtl-optimization/71976
16209 * combine.c (get_last_value): Return 0 if the argument for which
16210 the function is called has a wider mode than the recorded value.
16211
16212 2016-07-29 Marek Polacek <polacek@redhat.com>
16213
16214 PR c/7652
16215 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16216 (altivec_expand_st_builtin): Likewise.
16217
16218 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16219
16220 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16221 introduced in r238381.
16222
16223 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16224
16225 PR middle-end/68217
16226 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16227 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16228
16229 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16230
16231 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16232 New declaration.
16233 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16234 Add support for vec_extract of vector double or vector long having
16235 a variable element number on 64-bit ISA 2.07 systems or newer.
16236 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16237 Likewise.
16238 (rs6000_split_vec_extract_var): New function to split a
16239 vec_extract built-in function with variable element number.
16240 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16241 swappable.
16242 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16243 (UNSPEC_VSX_EXTRACT): Likewise.
16244 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16245 direct move instructions to be generated on 64-bit ISA 2.07
16246 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16247 instruction.
16248 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16249 arguments for vec_extract variable element.
16250 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16251 vec_extract with variable element on V2DFmode and V2DImode
16252 vectors.
16253 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16254 -mupper-regs-df requirement, since it isn't needed.
16255 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16256 do direct moves on 64-bit systems, which allows optimization of
16257 vec_extract on 64-bit ISA 2.07 systems and newer.
16258
16259 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16260 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16261
16262 * config/aarch64/aarch64.md
16263 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16264 statement and type.
16265 (<optab>qihi2_aarch64): Likewise, and split into two.
16266 (extendqihi2_aarch64): New.
16267 (zero_extendqihi2_aarch64): New.
16268 * config/aarch64/iterators.md (ldrxt): Remove.
16269 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16270 uxtb/uxth.
16271
16272 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16273
16274 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16275
16276 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16277
16278 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16279 (aarch64_push_reg): New function to push 1 or 2 registers.
16280 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16281 (aarch64_expand_prologue): Use aarch64_push_regs.
16282 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16283
16284 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16285
16286 PR tree-optimization/71734
16287 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16288 attribute instead of REF_LOOP and use it.
16289 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16290 set it for Loops having non-zero safelen attribute.
16291 (ref_indep_loop_p): Pass zero as initial value for safelen.
16292
16293 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16294
16295 PR middle-end/72657
16296 PR target/72683
16297 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16298 call using chkp_gimple_call_builtin_p.
16299 (chkp_copy_bounds_for_assign): Likewise.
16300
16301 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16302
16303 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16304 * config/arm/arm-protos.h (struct tune_params): Likewise.
16305 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16306 (cortex_a9_sched_adjust_cost): Likewise.
16307 (fa726te_sched_adjust_cost): Likewise.
16308 (arm_adjust_cost): Likewise.
16309 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16310 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16311 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16312 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16313 * config/ia64/ia64.c: Likewise.
16314 * config/m68k/m68k.c: Likewise.
16315 * config/mep/mep.c (mep_adjust_cost): Likewise.
16316 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16317 * Likewise.
16318 * config/mips/mips.c (mips_adjust_cost): Likewise.
16319 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16320 * Likewise.
16321 * config/pa/pa.c (pa_adjust_cost): Likewise.
16322 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16323 (rs6000_debug_adjust_cost): Likewise.
16324 * config/sh/sh.c (sh_adjust_cost): Likewise.
16325 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16326 (hypersparc_adjust_cost): Likewise.
16327 (sparc_adjust_cost): Likewise.
16328 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16329 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16330 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16331 * Likewise.
16332 * config/visium/visium.c (visium_adjust_cost): Likewise.
16333 * doc/tm.texi: Regenerate.
16334 * haifa-sched.c (dep_cost_1): Adjust.
16335 * target.def: Merge adjust_cost and adjust_cost_2.
16336
16337 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16338
16339 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16340
16341 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16342
16343 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16344 (extract_mentioned_regs): Append to a vector instead of
16345 returning a rtx_expr_list.
16346 (st_expr_entry): Adjust.
16347 (free_st_expr_entry): Likewise.
16348 (store_ops_ok): Likewise.
16349 (store_killed_in_insn): Likewise.
16350 (find_moveable_store): Likewise.
16351
16352 2016-07-28 Martin Liska <mliska@suse.cz>
16353
16354 PR gcov-profile/68025
16355 * tree-profile.c (tree_profiling): Respect
16356 no_profile_instrument_function attribute.
16357 * doc/extend.texi: Document no_profile_instrument_function
16358 attribute.
16359
16360 2016-07-28 Martin Liska <mliska@suse.cz>
16361
16362 PR rtl-optimization/70944
16363 * combine.c (make_compound_operation):
16364 Do not allow make_compound_operation for vector mode
16365
16366 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16367
16368 PR middle-end/71994
16369 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16370 before calling get_ops.
16371
16372 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16373
16374 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16375 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16376 (BITS_PER_UNIT_LOG): Remove.
16377 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16378 * expr.c (expand_assignment): Likewise.
16379 * stor-layout.c (initialize_sizetypes): Likewise.
16380
16381 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16382
16383 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16384 signature of rs6000_expand_vector_extract so that the element
16385 number is a RTX instead of a constant integer.
16386 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16387 Likewise.
16388 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16389 (altivec_expand_vec_ext_builtin): Likewise.
16390 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16391 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16392 MFVSRLD instruction.
16393
16394 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16395
16396 * input.c (get_pure_location): Move here from tree.c.
16397 (make_location): Likewise. Add header comment.
16398 (selftest::test_accessing_ordinary_linemaps): Verify
16399 pure_location_p, make_location, get_location_from_adhoc_loc and
16400 get_range_from_loc.
16401 * input.h (get_pure_location): Move declaration here from tree.h.
16402 (get_finish): Likewise for inline function.
16403 (make_location): Likewise for declaration.
16404 * tree.c (get_pure_location): Move to input.c.
16405 (make_location): Likewise.
16406 * tree.h (get_pure_location): Move declaration to tree.h.
16407 (get_finish): Likewise for inline function.
16408 (make_location): Likewise for declaration.
16409
16410 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16411
16412 PR middle-end/71078
16413 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16414
16415 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16416
16417 * system.h (STATIC_ASSERT): Use static_assert if building
16418 with C++11 onwards.
16419
16420 2016-07-27 Richard Biener <rguenther@suse.de>
16421
16422 PR tree-optimization/72517
16423 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16424 Revert change to not compute read-read dependences.
16425
16426 2016-07-27 Richard Biener <rguenther@suse.de>
16427
16428 * predict.c (set_even_probabilities): Make nedges unsigned.
16429
16430 2016-07-27 Martin Liska <mliska@suse.cz>
16431
16432 * predict.c (set_even_probabilities): Handle unlikely edges.
16433 (combine_predictions_for_bb): Likewise.
16434
16435 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16436
16437 PR target/71869
16438 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16439 __float128 support when we don't have hardware support, so that
16440 the IEEE built-in functions like isgreater, first call __unordkf3
16441 to make sure neither operand is a NaN, and if both operands are
16442 ordered, do the normal comparison.
16443
16444 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16445
16446 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16447 name.
16448 (extract_code_and_val_from_cond_with_ops): Verify that name is
16449 either cond_op0 or cond_op1.
16450
16451 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16452
16453 PR tree-optimization/18046
16454 * genmodes.c (emit_mode_size_inline): Emit an assert that
16455 verifies that mode is a valid array index.
16456 (emit_mode_nuinits_inline): Likewise.
16457 (emit_mode_inner_inline): Likewise.
16458 (emit_mode_unit_size_inline): Likewise.
16459 (emit_mode_unit_precision_inline): Likewise.
16460 * tree-vrp.c: Include params.h.
16461 (find_switch_asserts): Register edge assertions for the default
16462 label which correspond to the anti-ranges of each case label.
16463 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16464 * doc/invoke.texi: Document it.
16465
16466 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16467
16468 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16469 and unnecessary call to gimple_bb.
16470
16471 2016-07-26 Richard Biener <rguenther@suse.de>
16472
16473 PR rtl-optimization/71984
16474 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16475 for VOIDmode.
16476
16477 2016-07-26 Richard Biener <rguenther@suse.de>
16478
16479 PR middle-end/72517
16480 * expmed.c (extract_bit_field_1): Constrain the vector mode
16481 with element size matching the extraction mode size when
16482 choosing a better vector mode to do the extraction from.
16483
16484 2016-07-26 Richard Biener <rguenther@suse.de>
16485 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16486
16487 PR middle-end/70920
16488 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16489 pattern.
16490
16491 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16492
16493 * tree-ssa-structalias.c (struct scc_info): Change types of
16494 members to auto_sbitmap and auto_vec.
16495 (scc_info::scc_info): New constructor.
16496 (scc_info::~scc_info): New destructor.
16497 (init_scc_info): Remove.
16498 (free_scc_info): Remove.
16499 (find_indirect_cycles): Adjust.
16500 (perform_var_substitution): Likewise.
16501 (free_var_substitution_info): Likewise.
16502
16503 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16504
16505 * tree-outof-ssa.c (struct elim_graph): Change type of members
16506 to auto_vec and auto_sbitmap.
16507 (elim_graph::elim_graph): New constructor.
16508 (delete_elim_graph): Remove.
16509 (expand_phi_nodes): Adjust.
16510
16511 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16512
16513 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16514 (new_elim_graph): Adjust.
16515 (clear_elim_graph): Likewise.
16516 (delete_elim_graph): Likewise.
16517 (elim_graph_size): Likewise.
16518 (elim_graph_add_node): Likewise.
16519 (elim_graph_add_edge): Likewise.
16520 (elim_graph_remove_succ_edge): Likewise.
16521 (eliminate_name): Likewise.
16522 (eliminate_build): Likewise.
16523 (elim_forward): Likewise.
16524 (elim_unvisited_predecessor): Likewise.
16525 (elim_backward): Likewise.
16526 (elim_create): Likewise.
16527 (eliminate_phi): Likewise.
16528 (expand_phi_nodes): Likewise.
16529
16530 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16531
16532 * bt-load.c (compute_out): Use auto_sbitmap class.
16533 (link_btr_uses): Likewise.
16534 * cfganal.c (mark_dfs_back_edges): Likewise.
16535 (post_order_compute): Likewise.
16536 (inverted_post_order_compute): Likewise.
16537 (pre_and_rev_post_order_compute_fn): Likewise.
16538 (single_pred_before_succ_order): Likewise.
16539 * cfgexpand.c (pass_expand::execute): Likewise.
16540 * cfgloop.c (verify_loop_structure): Likewise.
16541 * cfgloopmanip.c (fix_bb_placements): Likewise.
16542 (remove_path): Likewise.
16543 (update_dominators_in_loop): Likewise.
16544 * cfgrtl.c (break_superblocks): Likewise.
16545 * ddg.c (check_sccs): Likewise.
16546 (create_ddg_all_sccs): Likewise.
16547 * df-core.c (df_worklist_dataflow): Likewise.
16548 * dse.c (dse_step3): Likewise.
16549 * except.c (eh_region_outermost): Likewise.
16550 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16551 * gcse.c (prune_expressions): Likewise.
16552 (prune_insertions_deletions): Likewise.
16553 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16554 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16555 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16556 * lcm.c (compute_earliest): Likewise.
16557 (compute_farthest): Likewise.
16558 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16559 (unroll_loop_runtime_iterations): Likewise.
16560 (unroll_loop_stupid): Likewise.
16561 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16562 * lra-lives.c: Likewise.
16563 * lra.c (lra): Likewise.
16564 * modulo-sched.c (schedule_reg_moves): Likewise.
16565 (optimize_sc): Likewise.
16566 (get_sched_window): Likewise.
16567 (sms_schedule_by_order): Likewise.
16568 (check_nodes_order): Likewise.
16569 (order_nodes_of_sccs): Likewise.
16570 (order_nodes_in_scc): Likewise.
16571 * recog.c (split_all_insns): Likewise.
16572 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16573 * reload1.c (reload): Likewise.
16574 * sched-rgn.c (haifa_find_rgns): Likewise.
16575 (split_edges): Likewise.
16576 (compute_trg_info): Likewise.
16577 * sel-sched.c (init_seqno): Likewise.
16578 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16579 * tree-into-ssa.c (update_ssa): Likewise.
16580 * tree-ssa-live.c (live_worklist): Likewise.
16581 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16582 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16583 * Likewise.
16584 (try_peel_loop): Likewise.
16585 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16586 * Likewise.
16587 * tree-ssa-pre.c (compute_antic): Likewise.
16588 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16589 * tree-stdarg.c (reachable_at_most_once): Likewise.
16590 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16591 * var-tracking.c (vt_find_locations): Likewise.
16592
16593 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16594
16595 * sbitmap.h (auto_sbitmap): New class.
16596
16597 2016-07-26 Alan Modra <amodra@gmail.com>
16598
16599 PR target/72103
16600 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16601 sri->t_icode.
16602
16603 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16604
16605 * input.c (selftest::temp_source_file::temp_source_file): Fix
16606 missing "%s" in fprintf.
16607
16608 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16609
16610 PR middle-end/71732
16611 * cselib.c (cselib_process_insn): Invalidate argument slots for
16612 const/pure calls.
16613
16614 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16615
16616 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16617 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16618 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16619
16620 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16621
16622 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16623 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16624 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16625
16626 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16627
16628 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16629 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16630 New.
16631 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16632 (add<mode>3): Likewise.
16633 (sub<mode>3): Likewise.
16634 (mul<mode>3): Likewise.
16635 (div<mode>3): Likewise.
16636 (*div<mode>3): Likewise.
16637 (<fmaxmin><mode>3): Extend to HF.
16638 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16639 (fabd<mode>3): Likewise.
16640 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16641 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16642 (aarch64_fmulx<mode>): Likewise.
16643 (aarch64_fac<optab><mode>): Likewise.
16644 (aarch64_frecps<mode>): Likewise.
16645 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16646 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16647 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16648 (VSDQ_HSDI): Support HI.
16649 (fcvt_target, FCVT_TARGET): Likewise.
16650 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16651 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16652 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16653 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16654 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16655 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16656 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16657 vrsqrtsh_f16): New.
16658
16659 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16660
16661 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16662 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16663 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16664 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16665 mode.
16666 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16667 (aarch64_cm<optab><mode>): Likewise.
16668 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16669 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16670 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16671 (sqrt<mode>2): Likewise.
16672 (*sqrt<mode>2): Likewise.
16673 (abs<mode>2): Likewise.
16674 (<optab><mode>hf2): New pattern for HF mode.
16675 (<optab>hihf2): Likewise.
16676 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16677 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16678 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16679 Support HF mode.
16680 * config/aarch64/arm_fp16.h: New file.
16681 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16682 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16683 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16684 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16685 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16686 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16687 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16688 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16689 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16690 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16691 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16692 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16693 vsqrth_f16): New.
16694
16695 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16696
16697 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16698 reduc_smin_scal_): Use VDQIF_F16.
16699 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16700 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16701 Use VHSDF.
16702 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16703 * config/aarch64/iterators.md (VDQIF_F16): New.
16704 (vp): Support HF modes.
16705 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16706 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16707
16708 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16709
16710 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16711 "*aarch64_mulx_elt_from_dup<mode>".
16712 (*aarch64_mul3_elt<mode>): Update schedule type.
16713 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16714 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16715 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16716 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16717 (f, fp): Support HF modes.
16718 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16719 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16720 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16721 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16722 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16723 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16724
16725 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16726
16727 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16728 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16729 modes.
16730 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16731 vfmsq_f16): New.
16732
16733 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16734
16735 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16736 * config/aarch64/aarch64-simd.md
16737 (aarch64_rsqrts<mode>): Extend to HF modes.
16738 (fabd<mode>3): Likewise.
16739 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16740 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16741 (aarch64_<maxmin_uns>p<mode>): Likewise.
16742 (<su><maxmin><mode>3): Likewise.
16743 (<maxmin_uns><mode>3): Likewise.
16744 (<fmaxmin><mode>3): Likewise.
16745 (aarch64_faddp<mode>): Likewise.
16746 (aarch64_fmulx<mode>): Likewise.
16747 (aarch64_frecps<mode>): Likewise.
16748 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16749 (add<mode>3): Extend to HF modes.
16750 (sub<mode>3): Likewise.
16751 (mul<mode>3): Likewise.
16752 (div<mode>3): Likewise.
16753 (*div<mode>3): Likewise.
16754 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16755 HF, V4HF and V8HF.
16756 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16757 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16758 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16759 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16760 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16761 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16762 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16763 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16764 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16765 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16766 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16767 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16768 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16769 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16770
16771 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16772
16773 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16774 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16775 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16776 (neg<mode>2): Likewise.
16777 (abs<mode>2): Likewise.
16778 (<frint_pattern><mode>2): Likewise.
16779 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16780 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16781 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16782 (ftrunc<VDQF:mode>2): Likewise.
16783 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16784 (sqrt<mode>2): Likewise.
16785 (*sqrt<mode>2): Likewise.
16786 (aarch64_frecpe<mode>): Likewise.
16787 (aarch64_cm<optab><mode>): Likewise.
16788 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16789 HF, V4HF and V8HF.
16790 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
16791 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
16792 (stype): New.
16793 * config/aarch64/arm_neon.h (vdup_n_f16): New.
16794 (vdupq_n_f16): Likewise.
16795 (vld1_dup_f16): Use vdup_n_f16.
16796 (vld1q_dup_f16): Use vdupq_n_f16.
16797 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
16798 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
16799 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
16800 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
16801 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
16802 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
16803 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
16804 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
16805 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
16806 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
16807 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
16808 vsqrt_f16, vsqrtq_f16): New.
16809
16810 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16811
16812 * config/aarch64/aarch64-simd.md
16813 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
16814 (aarch64_ext<mode>): Likewise.
16815 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
16816 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
16817 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
16818 and V8HFmode.
16819 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
16820 float16x8_t.
16821 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
16822 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
16823 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
16824 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
16825 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
16826 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
16827 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
16828 New.
16829 (vmov_n_f16): Reimplement using vdup_n_f16.
16830 (vmovq_n_f16): Reimplement using vdupq_n_f16..
16831
16832 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16833
16834 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
16835 "frame_related_p". Generate CFA annotation when it's necessary.
16836 (aarch64_expand_prologue): Use aarch64_add_constant.
16837 (aarch64_expand_epilogue): Likewise.
16838 (aarch64_output_mi_thunk): Pass "false" when calling
16839 aarch64_add_constant.
16840
16841 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16842
16843 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
16844 sequences.
16845
16846 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16847
16848 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
16849 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
16850 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
16851 (aarch64_build_constant): Delete.
16852
16853 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
16854
16855 Revert
16856 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16857
16858 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16859 flag_toplevel_reorder.
16860
16861 2016-07-25 Richard Biener <rguenther@suse.de>
16862
16863 * cgraph.c (cgraph_node::verify_node): Compare against builtin
16864 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
16865 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
16866 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
16867 (streamer_get_builtin_tree): Likewise.
16868 (streamer_write_builtin): Likewise.
16869 * lto-streamer.h (LTO_builtin_decl): Remove.
16870 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
16871 (lto_input_scc): Remove LTO_builtin_decl handling.
16872 (lto_input_tree_1): Liekwise.
16873 * lto-streamer-out.c (lto_output_tree_1): Remove special
16874 handling of builtins.
16875 (DFS::DFS): Likewise.
16876 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
16877 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
16878 assert.
16879 (streamer_write_builtin): Remove.
16880
16881 2016-07-25 Martin Liska <mliska@suse.cz>
16882
16883 * lto-cgraph.c (input_symtab): Don't call get_working_sets
16884 if flag_auto_profile is set to true.
16885
16886 2016-07-25 Martin Liska <mliska@suse.cz>
16887
16888 PR gcov-profile/71868
16889 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
16890 have a function with multiple latches, count them all.
16891
16892 2016-07-25 Martin Liska <mliska@suse.cz>
16893
16894 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
16895
16896 2016-07-25 Martin Liska <mliska@suse.cz>
16897
16898 PR tree-optimization/71987
16899 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
16900 just for SSA_NAMEs. Fix GNU coding style.
16901
16902 2016-07-25 Martin Liska <mliska@suse.cz>
16903
16904 PR gcov-profile/64874
16905 * gcov-io.h: Update command about file format.
16906 * gcov-iov.c (main): Adapt the numbering scheme.
16907
16908 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
16909
16910 PR middle-end/66726
16911 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
16912 whose result is used in PHI.
16913 (final_range_test_p): Likewise.
16914 (maybe_optimize_range_tests): Likewise.
16915
16916 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
16917
16918 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16919 Reformat two multi-line strings.
16920
16921 2016-07-22 Martin Sebor <msebor@redhat.com>
16922
16923 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
16924
16925 2016-07-22 Martin Sebor <msebor@redhat.com>
16926
16927 PR c/71560
16928 * doc/extend.texi (Compound Literals): Correct and clarify.
16929 (Cast to Union): Same.
16930
16931 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
16932
16933 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16934 comments to explain why certain error messages make mention of
16935 undocumented options.
16936 (rs6000_invalid_builtin): Change error messages to replace mention
16937 of undocumented options with mention of the -mcpu=power9 option
16938 that enables those undocumented options.
16939 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
16940 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
16941 definition of this macro to correct an existing error.
16942 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
16943 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
16944 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
16945 descriptions of built-in functions so that they depend on
16946 -mcpu=power9 instead of on the corresponding undocumented flags.
16947 * doc/invoke.texi (Option Summary): Remove all mention of newly
16948 undocumented flags.
16949 (IBM RS/6000 and PowerPC Options): Likewise.
16950 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16951 mention of newly undocumented flags.
16952
16953 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16954
16955 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16956 when target_clones attribute is set.
16957
16958 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16959
16960 * common.opt (funsafe-loop-optimizations): Mark ignore.
16961 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16962 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16963 related code.
16964 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16965 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16966
16967 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16968
16969 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16970 Parameter.
16971 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16972 Parameter.
16973 (number_of_iterations_exit): Warn missed loop optimization for
16974 possible infinite loops.
16975
16976 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16977
16978 PR target/71216
16979 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16980 when to emit a ".machine" pseudo-op.
16981
16982 2016-07-22 Martin Liska <mliska@suse.cz>
16983
16984 PR gcov-profile/69028
16985 PR gcov-profile/62047
16986 * coverage.c (coverage_compute_lineno_checksum): Do not
16987 calculate checksum for fns w/o xloc.file.
16988 (coverage_compute_profile_id): Likewise.
16989
16990 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16991
16992 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16993 (avr_secondary_reload): ...and implementation.
16994 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16995 * config/avr/avr.md (reload_in<mode>): Remove insns.
16996 (adjust_len) [lpm]: Remove insn attribute value.
16997 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16998
16999 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17000
17001 PR middle-end/71876
17002 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17003 attribute.
17004 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17005 * calls.c (special_function_p): Remove the special handling of the
17006 "__builtin_" prefix.
17007
17008 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17009
17010 PR middle-end/71876
17011 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17012 if STMT may be an alloca call.
17013 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17014 builtin alloca call.
17015 * calls.h (gimple_maybe_alloca_call_p): New function.
17016 * tree-inline.c (inline_forbidden_p_stmt): Use
17017 gimple_maybe_alloca_call_p here.
17018
17019 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17020
17021 * spellcheck-tree.c (best_macro_match::best_macro_match):
17022 Explictly specify the template arguments when invoking the base
17023 class constructor, to help older C++ compilers.
17024
17025 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17026
17027 PR sanitizer/71953
17028 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17029 before builtin_decl_implicit.
17030
17031 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17032
17033 * optabs.c (emit_condiitonal_move): Short circuit for identical
17034 sources.
17035
17036 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17037
17038 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17039 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17040 (noce_conversion_profitable_p): New.
17041 (noce_try_store_flag_constants): Use it.
17042 (noce_try_addcc): Likewise.
17043 (noce_try_store_flag_mask): Likewise.
17044 (noce_try_cmove): Likewise.
17045 (noce_try_cmove_arith): Likewise.
17046 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17047 overwriting it.
17048 (noce_convert_multiple_sets): Move cost model to here, from...
17049 (bb_ok_for_noce_convert_multiple_sets) ...here.
17050 (noce_process_if_block): Update calls for above changes.
17051 (noce_find_if_block): Record new noce_if_info parameters.
17052
17053 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17054
17055 * target.def (max_noce_ifcvt_seq_cost): New.
17056 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17057 * doc/tm.texi: Regenerate.
17058 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17059 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17060 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17061 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17062 * doc/invoke.texi: Document new params.
17063
17064 2016-07-21 Richard Biener <rguenther@suse.de>
17065
17066 PR tree-optimization/71947
17067 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17068 ranges have useful limit_vr information.
17069
17070 2016-07-21 Richard Biener <rguenther@suse.de>
17071
17072 * function-tests.c (build_trivial_generic_function): Set
17073 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17074 * omp-low.c (create_omp_child_function): Likewise.
17075 (grid_expand_target_grid_body): Likewise.
17076 * cgraphunit.c (init_lowered_empty_function): Likewise.
17077 (cgraph_node::expand_thunk): Likewise.
17078 * tree-parloops.c (create_loop_fn): Likewise.
17079 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17080
17081 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17082
17083 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17084 in comment.
17085
17086 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17087
17088 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17089 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17090 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17091 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17092 values for insn attribute.
17093 * config/avr/avr.c (avr_out_insert_notbit): New function.
17094 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17095 ADJUST_LEN_INSV_NOTBIT_0/_7.
17096 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17097
17098 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17099
17100 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17101 (chrec_convert_1, chrec_convert): Ditto.
17102 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17103 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17104 * tree-vrp.c (adjust_range_with_scev): Ditto.
17105 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17106 (scev_var_range_cant_overflow): New function.
17107 (scev_probably_wraps_p): New parameter. Call above function.
17108 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17109
17110 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17111
17112 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17113 by removing computation of may_be_zero.
17114
17115 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17116
17117 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17118
17119 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17120
17121 Improving concepts performance and diagnostics.
17122 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17123 for constraint satisfaction and subsumption.
17124 * timevar.h (auto_timevar): New constructor that matches the push/pop
17125 pattern of usage in pt.c.
17126
17127 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17128
17129 * hwint.h (HOST_WIDE_INT_0): New define.
17130 (HOST_WIDE_INT_0U): Ditto.
17131 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17132 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17133 * simplify-rtx.c: Ditto.
17134 * tree-object-size.c: Ditto.
17135
17136 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17137
17138 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17139 check.
17140
17141 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17142
17143 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17144 * combine.c: Use HOST_WIDE_INT_M1U instead of
17145 ~(unsigned HOST_WIDE_INT) 0.
17146 * double-int.h: Ditto.
17147 * dse.c: Ditto.
17148 * dwarf2asm.c:Ditto.
17149 * expmed.c: Ditto.
17150 * genmodes.c: Ditto.
17151 * match.pd: Ditto.
17152 * read-rtl.c: Ditto.
17153 * tree-ssa-loop-ivopts.c: Ditto.
17154 * tree-ssa-loop-prefetch.c: Ditto.
17155 * tree-vect-generic.c: Ditto.
17156 * tree-vect-patterns.c: Ditto.
17157 * tree.c: Ditto.
17158
17159 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17160
17161 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17162 constant addresses outside [0,0xc0] into a register.
17163 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17164 cases where the base address register is unused after.
17165 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17166 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17167 (avr_out_store_psi_reg_disp_tiny): Same.
17168
17169 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17170
17171 Implement attribute progmem on reduced Tiny cores by adding
17172 flash offset 0x4000 to respective symbols.
17173
17174 PR target/71948
17175 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17176 documentation how it works on reduced Tiny cores.
17177 (AVR Named Address Spaces): No support for reduced Tiny.
17178 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17179 (avr_address_tiny_pm_p): New static function.
17180 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17181 if the address is in progmem.
17182 (avr_assemble_integer): Same.
17183 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17184 for symbol_ref in progmem.
17185 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17186 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17187 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17188
17189 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17190
17191 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17192 * configure: Regenerate.
17193 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17194 (USE_THIN_ARCHIVES): New variable.
17195 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17196 this archive as a thin archive.
17197
17198 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17199
17200 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17201 same location as last time, don't skip if we have fix-it hints.
17202 Clarify the skipping logic by converting it from one "if" clause
17203 to repeated "if" clauses.
17204 * spellcheck-tree.c: Include "cpplib.h".
17205 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17206 (best_macro_match::best_macro_match): New constructor.
17207 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17208 Move here from c/c-decl.c.
17209 (class best_macro_match): Move here from c/c-decl.c, converting
17210 from a typedef to a subclass, gaining a ctor.
17211
17212 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17213
17214 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17215 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17216 define...
17217 (avr_addr_space_diagnose_usage): ...and implementation.
17218 (avr_addr_space_supported_p): New function.
17219 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17220 report bad address space usage if that space is supported.
17221 (avr_insert_attributes): Same. No more complain about unsupported
17222 address spaces.
17223 * config/avr/avr-c.c (tm_p.h): Include it.
17224 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17225 macro if avr_addr_space_supported_p.
17226
17227 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17228
17229 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17230 flag_toplevel_reorder.
17231
17232 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17233
17234 * gcc-rich-location.c
17235 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17236 a const char *.
17237 * gcc-rich-location.h
17238 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17239
17240 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17241
17242 * target.def (addr_space): Add new diagnose_usage to hook vector.
17243 * targhooks.c (default_addr_space_diagnose_usage): Add default
17244 implementation and...
17245 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17246 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17247 is some address space, call targetm.addr_space.diagnose_usage.
17248 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17249 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17250 * doc/tm.texi: Regenerate.
17251
17252 2016-07-20 Martin Liska <mliska@suse.cz>
17253
17254 PR middle-end/71898
17255 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17256 Properly handly PHI stmts.
17257
17258 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17259
17260 PR tree-optimization/71503
17261 PR tree-optimization/71683
17262 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17263 and break.
17264
17265 2016-07-20 Martin Liska <mliska@suse.cz>
17266
17267 * doc/invoke.texi (-fipa-ra): Document when the option is
17268 disabled. Fix a typo.
17269
17270 2016-07-20 Martin Liska <mliska@suse.cz>
17271
17272 * Makefile.in: Include fibonacci_heap.c
17273 * fibonacci_heap.c: New file.
17274 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17275 (fibonacci_heap::union_with): Fix deletion of the second heap.
17276 * selftest-run-tests.c (selftest::run_tests): Incorporate
17277 fibonacci heap tests.
17278 * selftest.h: Declare fibonacci_heap_c_tests.
17279
17280 2016-07-20 Martin Liska <mliska@suse.cz>
17281
17282 * selftest-run-tests.c (selftest::run_tests): New function.
17283 * selftest.h (sreal_c_tests): Declare.
17284 * sreal.c (sreal_verify_basics): New function.
17285 (verify_aritmetics): Likewise.
17286 (sreal_verify_arithmetics): Likewise.
17287 (verify_shifting): Likewise.
17288 (sreal_verify_shifting): Likewise.
17289 (void sreal_c_tests): Likewise.
17290
17291 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17292
17293 PR rtl-optimization/71916
17294 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17295 bb which have a single succ fake edge.
17296
17297 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17298
17299 PR debug/71855
17300 * dwarf2out.c (gen_subprogram_die): Only call
17301 gen_unspecified_parameters_die while dumping early dwarf.
17302
17303 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17304
17305 PR middle-end/71874
17306 * gimple-fold.c (fold_builtin_memory_op): Use
17307 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17308
17309 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17310
17311 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17312 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17313 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17314 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17315 * combine.c: Ditto.
17316 * cse.c: Ditto.
17317 * dojump.c: Ditto.
17318 * double-int.c: Ditto.
17319 * dse.c: Ditto.
17320 * dwarf2out.c: Ditto.
17321 * expmed.c: Ditto.
17322 * expr.c: Ditto.
17323 * fold-const.c: Ditto.
17324 * function.c: Ditto.
17325 * fwprop.c: Ditto.
17326 * genmodes.c: Ditto.
17327 * hwint.c: Ditto.
17328 * hwint.h: Ditto.
17329 * ifcvt.c: Ditto.
17330 * loop-doloop.c: Ditto.
17331 * loop-invariant.c: Ditto.
17332 * loop-iv.c: Ditto.
17333 * match.pd: Ditto.
17334 * optabs.c: Ditto.
17335 * real.c: Ditto.
17336 * reload.c: Ditto.
17337 * rtlanal.c: Ditto.
17338 * simplify-rtx.c: Ditto.
17339 * stor-layout.c: Ditto.
17340 * toplev.c: Ditto.
17341 * tree-ssa-loop-ivopts.c: Ditto.
17342 * tree-vect-generic.c: Ditto.
17343 * tree-vect-patterns.c: Ditto.
17344 * tree.c: Ditto.
17345 * tree.h: Ditto.
17346 * ubsan.c: Ditto.
17347 * varasm.c: Ditto.
17348 * wide-int-print.cc: Ditto.
17349 * wide-int.cc: Ditto.
17350 * wide-int.h: Ditto.
17351
17352 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17353
17354 * selftest.c (selftest::assert_streq): Handle NULL values of
17355 val_actual and val_expected.
17356
17357 2016-07-19 Martin Jambor <mjambor@suse.cz>
17358
17359 PR fortran/71688
17360 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17361 rather than cgraph_create_node to get a call graph node.
17362
17363 2016-07-19 Richard Biener <rguenther@suse.de>
17364
17365 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17366 handle all tcc_constant bases and valueize SSA names.
17367 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17368 tcc_constant bases.
17369
17370 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17371
17372 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17373 the flags of the exit block and bb2, not just the entry block.
17374
17375 2016-07-19 Richard Biener <rguenther@suse.de>
17376
17377 PR tree-optimization/71901
17378 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17379 align member, group stuff with the bitfield.
17380 (vn_ref_op_align_unit): New inline.
17381 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17382 record element alignment and operand 3 unchanged.
17383 (ao_ref_init_from_vn_reference): Adjust.
17384 (valueize_refs_1): Likewise.
17385 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17386
17387 2016-07-19 Richard Biener <rguenther@suse.de>
17388
17389 PR tree-optimization/71908
17390 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17391 symbolic constants in a more reliable way.
17392
17393 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17394
17395 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17396 comment.
17397 (vect_update_inits_of_drs): Likewise.
17398 (vect_create_cond_for_alias_checks): Likewise.
17399 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17400
17401 2016-07-19 Richard Biener <rguenther@suse.de>
17402
17403 PR lto/71907
17404 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17405 with an abstract origin that is not an inlined function outer
17406 scope add a self-reference as abstract origin.
17407 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17408
17409 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17410
17411 PR target/71493
17412 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17413 unintentional System V.4 structure return breakage for structures
17414 with a single floating point element.
17415
17416 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17417
17418 PR tree-optimization/71734
17419 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17420 contains REF, use it to check safelen, assume that safelen value
17421 must be greater 1, fix style.
17422 (ref_indep_loop_p_2): Add REF_LOOP argument.
17423 (ref_indep_loop_p): Pass LOOP as additional argument to
17424 ref_indep_loop_p_2.
17425
17426 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17427
17428 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17429 allocation in the prologue.
17430 * explow.c (get_dynamic_stack_base): New function to return an address
17431 expression for the dynamic stack base.
17432 (get_dynamic_stack_size): New function to do the required dynamic stack
17433 space size calculations.
17434 (allocate_dynamic_stack_space): Use new functions.
17435 (align_dynamic_address): Move some code from
17436 allocate_dynamic_stack_space to new function.
17437 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17438
17439 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17440
17441 * config/s390/s390.c (s390_encode_section_info): Always set
17442 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17443 found.
17444
17445 2016-07-18 Richard Biener <rguenther@suse.de>
17446
17447 PR tree-optimization/71893
17448 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17449 for sizetype cast added by array_ref_element_size.
17450 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17451
17452 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17453
17454 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17455 register parameters. Remove code to initialize argument pointer
17456 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17457 using a pc-relative branch. Cleanup conditional code.
17458 * config/pa/pa.md (call_mcount): New expander.
17459 (call_mcount_nonpic): New insn.
17460 (call_mcount_pic): New insn and split.
17461 (call_mcount_pic_post_reload): New insn.
17462 (call_mcount_64bit): New insn and split.
17463 (call_mcount_64bit_post_reload): New insn.
17464
17465 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17466
17467 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17468 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17469 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17470 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17471 (*usum_widenqihi3, *udiff_widenqihi3)
17472 (*addhi3_zero_extend.const): New combiner insns.
17473 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17474 just 1 bit is affected.
17475 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17476 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17477
17478 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17479
17480 * omp-low.c (lower_omp_target): Mark data clauses with
17481 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17482 zero-length subarrays.
17483
17484 2016-07-15 Richard Biener <rguenther@suse.de>
17485
17486 PR tree-optimization/71881
17487 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17488 reverse DOM order to make debug temp generation happy.
17489
17490 2016-07-15 Richard Biener <rguenther@suse.de>
17491
17492 PR tree-optimization/71887
17493 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17494 verify it is not zero for division / modulo handling.
17495 (value_replacement): Adjust.
17496
17497 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17498 Julian Brown <julian@codesourcery.com>
17499
17500 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17501 * config/aarch64/aarch64-cost-tables.h
17502 (vulcan_extra_costs): New variable.
17503 * config/aarch64/aarch64.c
17504 (vulcan_addrcost_table): Likewise.
17505 (vulcan_regmove_cost): Likewise.
17506 (vulcan_vector_cost): Likewise.
17507 (vulcan_branch_cost): Likewise.
17508 (vulcan_tunings): Likewise.
17509
17510 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17511
17512 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17513 (output_in_order): Loop over undefined variables too. Output them
17514 via assemble_undefined_decl. Skip variables that correspond to hard
17515 registers or have value-exprs.
17516 * varpool.c (symbol_table::output_variables): Handle undefined
17517 variables together with defined ones.
17518
17519 2016-07-15 Richard Biener <rguenther@suse.de>
17520
17521 * tree-ssa-pre.c (get_representative_for): Make sure to return
17522 the value number of SSA names.
17523 (phi_translate_1): get_representative_for cannot return NULL.
17524 (do_pre_regular_insertion): Remove redundant call to
17525 fully_constant_expression.
17526 (do_pre_partial_partial_insertion): Likewise.
17527
17528 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17529
17530 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17531 (derive_simple_iv_with_niters): New function.
17532 (simple_iv): Rewrite using simple_iv_with_niters.
17533 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17534 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17535 function.
17536 (number_of_iterations_exit): Rewrite using above function.
17537 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17538 Decl.
17539
17540 2016-07-15 Richard Biener <rguenther@suse.de>
17541
17542 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17543 vec_construct cost.
17544
17545 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17546
17547 PR tree-optimization/71872
17548 * tree-data-ref.c (get_references_in_stmt): Ignore references
17549 with is_gimple_constant get_base_address.
17550
17551 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17552
17553 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17554 (TARGET_HAVE_LDACQD): New macro.
17555 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17556 than TARGET_HAVE_LDACQ.
17557 (arm_load_acquire_exclusivedi): Likewise.
17558 (arm_store_release_exclusivedi): Likewise.
17559
17560 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17561
17562 PR rtl-optimization/71878
17563 * lra-constraints.c (match_reload): Pass information about other
17564 output operands. Create new unique register value if matching input
17565 operand shares same register value as output operand being considered.
17566 (curr_insn_transform): Record output operands already processed.
17567
17568 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17569
17570 PR target/65951
17571 PR tree-optimization/70923
17572 * tree-vect-patterns.c: Include mult-synthesis.h.
17573 (target_supports_mult_synth_alg): New function.
17574 (synth_lshift_by_additions): Likewise.
17575 (apply_binop_and_append_stmt): Likewise.
17576 (vect_synth_mult_by_constant): Likewise.
17577 (target_has_vecop_for_code): Likewise.
17578 (vect_recog_mult_pattern): Use above functions to synthesize vector
17579 multiplication by integer constants.
17580
17581 2016-07-14 Alan Modra <amodra@gmail.com>
17582
17583 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17584 gpr alternatives. Correct '*' placement on Y,r alternative.
17585 Add '*' on operand 1 of r,r alternative.
17586
17587 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17588
17589 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17590 * expmed.h: ... Here.
17591
17592 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17593
17594 * gimple.h (stmt_can_terminate_bb_p): New function.
17595 * tree-cfg.c (need_fake_edge_p): Rename to ...
17596 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17597 throw external; handle const and pure calls.
17598 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17599
17600 2016-07-14 Richard Biener <rguenther@suse.de>
17601
17602 PR tree-optimization/71866
17603 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17604 (do_hoist_insertion): Avoid endless recursion when we
17605 didn't insert anything because we managed to simplify
17606 things down to a constant or SSA name.
17607 (fully_constant_expression): Re-write in terms of ...
17608 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17609 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17610 vn_nary_build_or_lookup_1.
17611 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17612 (vn_nary_build_or_lookup): ... this which now wraps it.
17613
17614 2016-07-14 Alan Modra <amodra@gmail.com>
17615
17616 PR target/71733
17617 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17618 with p9_vector override before power9-dform override.
17619
17620 2016-07-13 Andi Kleen <ak@linux.intel.com>
17621
17622 * value-prof.c (gimple_value_profile_transformations): Don't run
17623 when auto_profile is on.
17624
17625 2016-07-13 Andi Kleen <ak@linux.intel.com>
17626
17627 * auto-profile.c (update_inlined_ind_target,
17628 afdo_indirect_call): Print information to dump file.
17629
17630 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17631
17632 * genrecog.c (special_predicate_operand_p): New function.
17633 (predicate_name): Move function.
17634 (validate_pattern): Don't warn about missing mode for all
17635 define_special_predicate predicates.
17636
17637 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17638
17639 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17640 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17641 resolve alias checks which are known at compilation time.
17642 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17643 alias checks are resolved. Move dump info for too many runtime
17644 alias checks to here...
17645 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17646
17647 2016-07-13 Richard Biener <rguenther@suse.de>
17648
17649 PR tree-optimization/24574
17650 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17651 position and add shift, rotate, divison and modulo support
17652 for left zero.
17653 (value_replacement): Pass in argument position to absorbing_element_p.
17654
17655 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17656
17657 PR ipa/71633
17658 * ipa-inline-transform.c (inline_call): Support
17659 instrumented thunks.
17660
17661 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17662
17663 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17664 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17665 divide feature.
17666 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17667 Baseline. Make initial alternative TARGET_32BIT only.
17668 (udivsi3): Likewise.
17669 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17670 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17671 target.
17672
17673 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17674
17675 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17676 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17677 availability with TARGET_HAVE_MOVT.
17678 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17679 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17680 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17681 UINTVAL.
17682 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17683 extra instruction if MOVW is available. Use a cost variable
17684 incremented by COSTS_N_INSNS (1) when the condition match rather than
17685 returning an arithmetic expression based on COSTS_N_INSNS. Make
17686 constant with bottom half word zero cost 2 instruction if MOVW is
17687 available.
17688 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17689 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17690 target is ARMv8-M Baseline.
17691 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17692 (arm_movtas_ze): Likewise.
17693 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17694 alternative for constants satisfying j constraint.
17695 (thumb1_movsi_insn): Likewise.
17696 (movsi splitter for K alternative): Tighten condition to not trigger
17697 if movt is available and j constraint is satisfied.
17698 (Pe immediate splitter): Likewise.
17699 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17700 constant fitting in an halfword to use MOVW.
17701 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17702 effective target.
17703
17704 2016-07-13 Richard Biener <rguenther@suse.de>
17705
17706 PR middle-end/71104
17707 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17708 gimplifying the LHS. Make sure to gimplify a returning twice
17709 call LHS without using SSA names.
17710
17711 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17712
17713 * tree-data-ref.c (find_data_references_in_stmt): Remove
17714 unnecessary call to vec::release.
17715 (graphite_find_data_references_in_stmt): Likewise.
17716 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17717 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17718
17719 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17720
17721 * cfgexpand.c (expand_used_vars): Make the type of a local
17722 variable auto_vec.
17723 * genmatch.c (lower_for): Likewise.
17724 * haifa-sched.c (haifa_sched_init): Likewise.
17725 (add_to_speculative_block): Likewise.
17726 (create_check_block_twin): Likewise.
17727 * predict.c (handle_missing_profiles): Likewise.
17728 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17729 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17730 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17731 Likewise.
17732 (maybe_lower_iteration_bound): Likewise.
17733 * tree-ssa-sccvn.c (DFS): Likewise.
17734 * tree-stdarg.c (reachable_at_most_once): Likewise.
17735 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17736 (vectorizable_store): Likewise.
17737
17738 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17739
17740 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17741 (sccvn_dom_walker): make cond_stack an auto_vec.
17742
17743 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17744
17745 * ree.c (struct ext_state): Make type of members auto_vec.
17746 (find_and_remove_re): Adjust.
17747
17748 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17749
17750 * cfgexpand.c (struct stack_vars_data): Make type of fields
17751 auto_vec.
17752 (expand_used_vars): Adjust.
17753
17754 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17755
17756 * ipa.c (record_cdtor_fn): Adjust.
17757 (build_cdtor_fns): Likewise.
17758 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17759 variables.
17760
17761 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17762
17763 * genextract.c (struct accum_extract): Add constructor and make
17764 members auto_vec.
17765 (gen_insn): Adjust.
17766
17767 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17768
17769 * tree.c (struct free_lang_data_d): Add constructor and change
17770 types of members to ones that automatically manage resources.
17771 (fld_worklist_push): Adjust.
17772 (find_decls_types): Likewise.
17773 (find_decls_types_in_eh_region): Likewise.
17774 (free_lang_data_in_cgraph): Stop manually creating and
17775 destroying members of free_lang_data_d.
17776
17777 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17778
17779 PR rtl-optimization/68961
17780 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17781 peephole variant. Use sse_reg_operand predicates.
17782
17783 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17784
17785 * config/i386/predicates.md (x86_64_immediate_operand)
17786 <case CONST_INT>: Remove unneeded truncation to DImode.
17787 <case CONST>: Ditto.
17788 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17789
17790 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17791
17792 PR target/71805
17793 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
17794 The xxperm and xxpermr instructions require that the 2nd input
17795 operand overlap with the output operand, and not the 1st.
17796 (altivec_vperm_v8hiv16qi): Likewise.
17797 (altivec_vperm_<mode>_uns_internal): Likewise.
17798 (altivec_vpermr_<mode>_internal): Likewise.
17799 (vperm_v8hiv4si): Likewise.
17800 (vperm_v16qiv8hi): Likewise.
17801
17802 2016-07-12 Nathan Sidwell <nathan@acm.org>
17803
17804 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
17805 when -mno-pic-data-is-text-relative is in effect, by default.
17806 * doc/invoke.texi (mpic-data-is-text-relative): Document new
17807 behavior and clarify.
17808
17809 2016-07-12 Martin Liska <mliska@suse.cz>
17810
17811 * params.def: Add avg-loop niter.
17812 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
17813 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
17814 * doc/invoke.texi: Document the new parameter.
17815
17816 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17817
17818 PR middle-end/71700
17819 * expr.c (store_constructor): Mask sign-extended bits when widening
17820 sub-word constructor element at the start of a word.
17821
17822 2016-07-12 Martin Liska <mliska@suse.cz>
17823
17824 * Makefile.in: Append rule for params-options.h.
17825 * params-options.h: New file.
17826
17827 2016-07-12 Martin Liska <mliska@suse.cz>
17828
17829 * ira-build.c (mark_loops_for_removal): Properly iterate
17830 loops.
17831
17832 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
17833 Richard Biener <rguenther@suse.de>
17834
17835 PR tree-optimization/23286
17836 PR tree-optimization/70159
17837 * doc/invoke.texi: Document -fcode-hoisting.
17838 * common.opt (fcode-hoisting): New flag.
17839 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
17840 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
17841 (do_regular_insertion): Rename to ...
17842 (do_pre_regular_insertion): ... this and amend general comments
17843 on insertion strathegy.
17844 (do_partial_partial_insertion): Rename to ...
17845 (do_pre_partial_partial_insertion): ... this.
17846 (do_hoist_insertion): New function.
17847 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
17848 and call do_hoist_insertion properly.
17849 (insert): Adjust.
17850 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
17851 (pass_pre::execute): Register hoist_insert stats.
17852
17853 2016-07-12 Jakub Jelinek <jakub@redhat.com>
17854
17855 PR middle-end/71716
17856 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
17857 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
17858 is different from mode's bitsize. Small cleanup.
17859
17860 2016-07-12 Richard Biener <rguenther@suse.de>
17861
17862 PR rtl-optimization/68961
17863 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
17864 to simplify to a non-constant.
17865
17866 2016-07-11 Jakub Jelinek <jakub@redhat.com>
17867
17868 PR middle-end/71758
17869 * omp-low.c (expand_omp_target): Gimplify device.
17870
17871 PR tree-optimization/71823
17872 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
17873 to get vec_oprnds2 from op2.
17874
17875 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
17876
17877 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
17878 Hoist common subexpressions.
17879 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17880
17881 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
17882
17883 PR target/71800
17884 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
17885 prevent generation of 'stxsiwx' on pre Power8 hardware.
17886
17887 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17888
17889 * input.c: Include cpplib.h.
17890 (selftest::temp_source_file): New class.
17891 (selftest::temp_source_file::temp_source_file): New ctor.
17892 (selftest::temp_source_file::~temp_source_file): New dtor.
17893 (selftest::should_have_column_data_p): New function.
17894 (selftest::test_should_have_column_data_p): New function.
17895 (selftest::temp_line_table): New class.
17896 (selftest::temp_line_table::temp_line_table): New ctor.
17897 (selftest::temp_line_table::~temp_line_table): New dtor.
17898 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
17899 it to create a temp_line_table.
17900 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
17901 locations that are known to have column data.
17902 (selftest::line_table_case): New struct.
17903 (selftest::test_reading_source_line): Move tempfile handling
17904 to class temp_source_file.
17905 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
17906 (selftest::assert_token_loc_eq): New function.
17907 (ASSERT_TOKEN_LOC_EQ): New macro.
17908 (selftest::test_lexer): New function.
17909 (selftest::boundary_locations): New array.
17910 (selftest::input_c_tests): Call test_should_have_column_data_p.
17911 Loop over a test matrix of interesting values of location and
17912 default_range_bits, calling test_lexer on each case in the matrix.
17913 Move call to test_accessing_ordinary_linemaps into the matrix.
17914 * selftest.h (ASSERT_EQ): Reimplement in terms of...
17915 (ASSERT_EQ_AT): New macro.
17916
17917 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
17918
17919 PR target/71801
17920 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
17921 Don't convert TImode in debug insn.
17922
17923 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
17924
17925 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
17926 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
17927 (tree_type_common::lang_flag_7): New.
17928 (tree_type_common::spare): Reduce size.
17929 * tree.h (TYPE_ALIGN_OK): Remove.
17930 (TYPE_LANG_FLAG_7): New.
17931 (get_inner_reference): Adjust header.
17932 * print-tree.c (print_node): Adjust.
17933 * expr.c (get_inner_reference): Remove parameter keep_aligning.
17934 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
17935 calls to get_inner_reference.
17936 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
17937 handling of TYPE_ALIGN_OK.
17938 * builtins.c (get_object_alignment_2): Adjust call to
17939 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
17940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
17941 TYPE_ALIGN_OK.
17942 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
17943 * cfgexpand.c (expand_debug_expr): Likewise.
17944 * dbxout.c (dbxout_expand_expr): Likewise.
17945 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
17946 loc_list_from_tree, fortran_common): Likewise.
17947 * fold-const.c (optimize_bit_field_compare,
17948 decode_field_reference, fold_unary_loc, fold_comparison,
17949 split_address_to_core_and_offset): Likewise.
17950 * gimple-laddress.c (execute): Likewise.
17951 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17952 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17953 * hsa-gen.c (gen_hsa_addr): Likewise.
17954 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17955 * tsan.c (instrument_expr): Likewise.
17956 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17957 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17958 * tree-affine.c (tree_to_aff_combination,
17959 get_inner_reference_aff): Adjust calls to get_inner_reference.
17960 * tree-data-ref.c (split_constant_offset_1,
17961 dr_analyze_innermost): Likewise.
17962 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17963 * tree-sra.c (ipa_sra_check_caller): Likewise.
17964 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17965 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17966 bswap_replace): Likewise.
17967 * tree-vect-data-refs.c (vect_check_gather,
17968 vect_analyze_data_refs): Likewise.
17969 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17970 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17971 TYPE_ALIGN_OK.
17972
17973 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17974
17975 * Makefile.in (selftest-valgrind): New phony target.
17976 * function-tests.c (selftest::build_cfg): Delete pass instances
17977 created by the test.
17978 (selftest::convert_to_ssa): Likewise.
17979 (selftest::test_expansion_to_rtl): Likewise.
17980 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17981 vectors.
17982 (selftest::test_diamond): Likewise.
17983
17984 2016-07-11 Richard Biener <rguenther@suse.de>
17985
17986 PR tree-optimization/71816
17987 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17988 than replacing all of its operands.
17989
17990 2016-07-11 Alan Modra <amodra@gmail.com>
17991
17992 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17993 (ctr<mode>): Add unspec.
17994 (ctr<mode>_internal*): Likewise.
17995
17996 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17997
17998 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17999 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18000
18001 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18002
18003 PR rtl-optimization/71621
18004 * lra-constraints.c (process_alt_operands): Check combination of
18005 reg class and mode.
18006
18007 2016-07-08 Jason Merrill <jason@redhat.com>
18008 Richard Biener <rguenther@suse.de>
18009
18010 P0145: Refining Expression Order for C++.
18011 * gimplify.c (initial_rhs_predicate_for): New.
18012 (gimplfy_modify_expr): Gimplify RHS before LHS.
18013
18014 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18015
18016 PR target/71297
18017 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18018 Allow standard error handling to take over when a wrong number
18019 of arguments is presented to __builtin_vec_ld () or
18020 __builtin_vec_st ().
18021
18022 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18023
18024 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18025 variants.
18026 (smin): Likewise.
18027 (fmax): New entry.
18028 (fmin): Likewise.
18029 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18030 __builtin_aarch64_fmaxv2sf.
18031 (vmaxnmq_f32): Likewise.
18032 (vmaxnmq_f64): Likewise.
18033 (vminnm_f32): Likewise.
18034 (vminnmq_f32): Likewise.
18035 (vminnmq_f64): Likewise.
18036
18037 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18038
18039 PR target/71806
18040 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18041 enable -mfloat128-hardware by default.
18042 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18043 that IEEE 128-bit hardware support needs.
18044 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18045 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18046 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18047 floating point requires.
18048 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18049 -mfloat128 and -mfloat128-hardware changes.
18050
18051 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18052
18053 PR tree-optimization/71667
18054 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18055
18056 2016-07-08 Martin Liska <mliska@suse.cz>
18057
18058 PR middle-end/71606
18059 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18060 folding produces SAVE_EXPRs, thus return false for the type.
18061
18062 2016-07-07 Martin Liska <mliska@suse.cz>
18063
18064 * file-find.c (remove_prefix): New function.
18065 * file-find.h (remove_prefix): Declare the function.
18066 * gcc-ar.c (main): Skip a folder of the wrapper if
18067 a wrapped binary would point to the same file.
18068
18069 2016-07-07 Jan Hubicka <jh@suse.cz>
18070
18071 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18072 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18073 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18074
18075 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18076
18077 PR ipa/71624
18078 * ipa-inline-analysis.c (compute_inline_parameters): Set
18079 local.can_change_signature to false for intrumentation
18080 thunk callees.
18081
18082 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18083
18084 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18085 with TARGET_HAVE_MOVT.
18086 (TARGET_HAVE_MOVT): Define.
18087 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18088 availability with TARGET_HAVE_MOVT.
18089 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18090 availability.
18091 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18092 TARGET_THUMB2.
18093 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18094 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18095 * config/arm/constraints.md (define_constraint "j"): Use
18096 TARGET_HAVE_MOVT to check MOVT availability.
18097
18098 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18099
18100 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18101
18102 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18103
18104 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18105 (armv8-m.main): Likewise.
18106 (armv8-m.main+dsp): Likewise.
18107 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18108 (FL_FOR_ARCH8M_MAIN): Likewise.
18109 * config/arm/arm-tables.opt: Regenerate.
18110 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18111 armv8-m.main+dsp to BE8_LINK_SPEC.
18112 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18113 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18114 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18115 Baseline and Mainline.
18116 (arm_option_override_internal): Also disable arm_restrict_it when
18117 !arm_arch_notm. Update comment for -munaligned-access to also cover
18118 ARMv8-M Baseline.
18119 (arm_file_start): Increase buffer size for printing architecture name.
18120 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18121 and armv8-m.main+dsp.
18122 (mno-unaligned-access): Clarify that this is disabled by default for
18123 ARMv8-M Baseline architectures as well.
18124
18125 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18126
18127 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18128 decide whether to prevent some libgcc routines being included for some
18129 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18130 link between this condition and the one in
18131 libgcc/config/arm/lib1func.S.
18132
18133 2016-07-07 Richard Biener <rguenther@suse.de>
18134
18135 * tree-ssa-pre.c: Include alias.h.
18136 (compute_avail): If we have multiple VN_REFERENCEs with the
18137 same hashtable entry adjust that to make it a valid replacement
18138 for all of them with respect to alignment and aliasing
18139 when doing insertion.
18140 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18141 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18142
18143 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18144
18145 PR target/70098
18146 PR target/71763
18147 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18148 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18149 constraint.
18150
18151 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18152
18153 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18154 (adjust_mems): Adjust.
18155 (adjust_insn): Likewise.
18156 (prepare_call_arguments): Likewise.
18157
18158 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18159
18160 * gcse.c (struct ls_expr): Make stores field a vector.
18161 (ldst_entry): Adjust.
18162 (free_ldst_entry): Likewise.
18163 (print_ldst_list): Likewise.
18164 (compute_ld_motion_mems): Likewise.
18165 (update_ld_motion_stores): Likewise.
18166
18167 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18168
18169 * gcse.c (struct ls_expr): Remove loads field.
18170 (ldst_entry): Adjust.
18171 (free_ldst_entry): Likewise.
18172 (print_ldst_list): Likewise.
18173 (compute_ld_motion_mems): Likewise.
18174
18175 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18176
18177 * store-motion.c (struct st_expr): Make antic_stores a vector.
18178 (st_expr_entry): Adjust.
18179 (free_st_expr_entry): Likewise.
18180 (print_store_motion_mems): Likewise.
18181 (find_moveable_store): Likewise.
18182 (compute_store_table): Likewise.
18183 (remove_reachable_equiv_notes): Likewise.
18184 (replace_store_insn): Likewise.
18185 (build_store_vectors): Likewise.
18186
18187 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18188
18189 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18190 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18191
18192 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18193
18194 PR tree-optimization/71518
18195 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18196 misalign also for outer loops with negative step.
18197
18198 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18199
18200 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18201 (cortex_a53_shift): Add mov_shift.
18202 (cortex_a53_shift_reg): Add new reservation for register shifts.
18203 (cortex_a53_alu): Remove bfm.
18204 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18205 (cortex_a53_alu_extr): Add new reservation for EXTR.
18206 (bypasses): Improve bypass modelling.
18207
18208 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18209
18210 PR target/50739
18211 * config/avr/avr.c (avr_asm_select_section): Strip off
18212 SECTION_DECLARED from flags when calling get_section.
18213
18214 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18215
18216 * tree-vectorizer.h (vect_memory_access_type): Add
18217 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18218 * tree-vect-stmts.c (compare_step_with_zero): New function.
18219 (perm_mask_for_reverse): Move further up file.
18220 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18221 step is negative.
18222 (get_negative_load_store_type): New function.
18223 (get_load_store_type): Call it. Add an ncopies argument.
18224 (vectorizable_mask_load_store): Update call accordingly and
18225 remove tests for negative steps.
18226 (vectorizable_store, vectorizable_load): Likewise. Handle new
18227 memory_access_types.
18228
18229 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18230
18231 * tree-vectorizer.h (vect_memory_access_type): New enum.
18232 (_stmt_vec_info): Add a memory_access_type field.
18233 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18234 (vect_model_store_cost): Take an access type instead of a boolean.
18235 (vect_model_load_cost): Likewise.
18236 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18237 vect_model_store_cost and vect_model_load_cost.
18238 * tree-vect-stmts.c (vec_load_store_type): New enum.
18239 (vect_model_store_cost): Take an access type instead of a
18240 store_lanes_p boolean. Simplify tests.
18241 (vect_model_load_cost): Likewise, but for load_lanes_p.
18242 (get_group_load_store_type, get_load_store_type): New functions.
18243 (vectorizable_store): Use get_load_store_type. Record the access
18244 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18245 (vectorizable_load): Likewise.
18246 (vectorizable_mask_load_store): Likewise. Replace is_store
18247 variable with vls_type.
18248
18249 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18250
18251 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18252 single_element_p parameter.
18253 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18254 Check the PR65518 case here rather than in vectorizable_load.
18255 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18256 * tree-vect-stmts.c (vectorizable_load): Likewise.
18257
18258 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18259
18260 * tree-vectorizer.h (gather_scatter_info): New structure.
18261 (vect_check_gather_scatter): Return a bool rather than a decl.
18262 Replace return-by-pointer arguments with a single
18263 gather_scatter_info *.
18264 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18265 (vect_analyze_data_refs): Update call accordingly.
18266 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18267 (vectorizable_mask_load_store): Likewise. Also record the
18268 offset dt and vectype in the gather_scatter_info.
18269 (vectorizable_store): Likewise.
18270 (vectorizable_load): Likewise.
18271
18272 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18273
18274 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18275 strided groups, use the cost of N scalar accesses instead
18276 of ncopies vector accesses.
18277 (vect_model_load_cost): Likewise.
18278
18279 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18280
18281 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18282 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18283 variable to indicate when once-per-group costs are being used.
18284 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18285
18286 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18287
18288 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18289 peeling-for-gaps condition.
18290
18291 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18292
18293 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18294 element to register if it doesn't match general_operand.
18295
18296 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18297 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18298
18299 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18300 prototype.
18301 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18302 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18303 (SIGNBIT): New mode iterator.
18304 (Fsignbit): New mode attribute.
18305 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18306 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18307 when direct moves are available.
18308 (signbit<mode>2_dm): New define_insn_and_split).
18309 (signbit<mode>2_dm2): New define_insn.
18310
18311 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18312
18313 PR rtl-optimization/71594
18314 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18315 into subregs of appropriate mode before trying to emit a conditional
18316 move.
18317
18318 2016-07-05 Jan Hubicka <jh@suse.cz>
18319
18320 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18321 (simple_iv): Use it.
18322
18323 2016-07-05 Jan Hubicka <jh@suse.cz>
18324
18325 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18326
18327 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18328
18329 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18330 "offmemok".
18331
18332 2016-07-05 Jan Hubicka <jh@suse.cz>
18333
18334 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18335 IV can overflow.
18336
18337 2016-07-05 Richard Biener <rguenther@suse.de>
18338
18339 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18340 Handle empty else block.
18341 (is_feasible_trace): Likewise.
18342 (split_paths): Likewise.
18343
18344 2016-07-05 Richard Biener <rguenther@suse.de>
18345
18346 * tree-loop-distribution.c (distribute_loop): Fix issue with
18347 the cost model loop.
18348
18349 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18350
18351 * config/arm/neon-testgen.ml: Delete.
18352 * config/arm/neon.ml: Delete.
18353
18354 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18355
18356 PR c++/71739
18357 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18358 directly using TREE_PURPOSE.
18359
18360 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18361
18362 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18363 * config/aarch64/aarch64_neon.h: Likewise.
18364 * config/aarch64/arm_neon.h: Likewise.
18365 * config/aarch64/atomics.md: Likewise.
18366 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18367 * doc/invoke.texi: Likewise.
18368
18369 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18370
18371 * config/s390/s390.md: Add "z13" cpu_facility.
18372 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18373 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18374 condition" type instructions.
18375
18376 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18377 Jeff Law <law@redhat.com>
18378
18379 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18380 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18381
18382 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18383
18384 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18385 permutation for TARGET_AVX512F.
18386 (ix86_expand_vec_one_operand_perm_avx512): New function.
18387 (expand_vec_perm_1): Invoke introduced function.
18388 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18389 it may be not valid after vectorization.
18390
18391 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18392
18393 PR target/63874
18394 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18395 typo in comment. Only force to memory if it is a weak
18396 external reference.
18397
18398 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18399 Jiong Wang <jiong.wang@arm.com>
18400
18401 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18402 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18403 (AARCH64_FL_F16): New.
18404 (AARCH64_FL_FOR_ARCH8_2): New.
18405 (AARCH64_ISA_8_2): New.
18406 (AARCH64_ISA_F16): New.
18407 (TARGET_FP_F16INST): New.
18408 (TARGET_SIMD_F16INST): New.
18409 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18410 ("fp"): Disabling "fp" also disables "fp16".
18411 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18412 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18413 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18414 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18415
18416 2016-07-04 Jan Beulich <jbeulich@suse.com>
18417
18418 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18419
18420 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18421
18422 PR target/71720
18423 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18424 the insns, use an insn form that does not adjust the offset on
18425 little endian systems.
18426
18427 2016-07-01 Jan Beulich <jbeulich@suse.com>
18428
18429 * varasm.c (get_variable_section): Validate initializer in
18430 named .bss-like sections.
18431
18432 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18433
18434 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18435 Exchange the order of the second and third operands in the vpermr
18436 instruction tmeplate.
18437
18438 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18439
18440 PR target/71698
18441 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18442 Disallow TDmode values.
18443
18444 2016-07-01 Alan Modra <amodra@gmail.com>
18445
18446 PR rtl-optimization/71709
18447 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18448 being set, not referenced.
18449
18450 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18451
18452 PR tree-optimization/70729
18453 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18454 of loop since it can be not valid after transformation.
18455
18456 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18457
18458 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18459 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18460
18461 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18462
18463 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18464 for NULL decl.
18465
18466 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18467
18468 PR target/71677
18469 * config/rs6000/constraints.md (wY constraint): New constraint to
18470 match the requirements for the LXSD and STXSD instructions.
18471 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18472 predicate to match the requirements for the LXSD and STXSD
18473 instructions.
18474 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18475 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18476 to make sure that the bottom 2 bits of offset are 0, the address
18477 form is offsettable, and no updating is done in the address mode.
18478 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18479 (movdi_internal32): Likewise
18480 (movdi_internal64): Likewise.
18481
18482 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18483
18484 PR tree-optimization/71707
18485 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18486 strinfo even for ADDR_EXPR ptr.
18487
18488 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18489
18490 * config/rs6000/altivec.md (darn_32): Change the condition to
18491 TARGET_P9_MISC instead of TARGET_MODULO.
18492 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18493 condition expression.
18494 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18495 condition expression.
18496 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18497 (DFP_TEST): New code iterator.
18498 (dfptstsfi_<code>_mode>): New define_expand.
18499 (*dfp_sgnfcnc_<mode>): New define_insn.
18500 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18501 definition next to BU_P9_MISC_1 definition and change the MASK
18502 value to RS6000_BTM_P9_MISC.
18503 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18504 (BU_P9_64BIT_MISC_0): Likewise.
18505 (BU_P9_DFP_MISC_0): New macro definition.
18506 (BU_P9_DFP_MISC_1): New macro definition.
18507 (BU_P9_DFP_MISC_2): New macro definition.
18508 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18509 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18510 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18511 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18512 (TSTSFI_LT_TD): Likewise.
18513 (TSTSFI_EQ_DD): Likewise.
18514 (TSTSFI_EQ_TD): Likewise.
18515 (TSTSFI_GT_DD): Likewise.
18516 (TSTSFI_GT_TD): Likewise.
18517 (TSTSFI_OV_DD): Likewise.
18518 (TSTSFI_OV_TD): Likewise.
18519 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18520 (TSTSFI_LT_DD): Likewise.
18521 (TSTSFI_LT_TD): Likewise.
18522 (TSTSFI_EQ): Likewise.
18523 (TSTSFI_EQ_DD): Likewise.
18524 (TSTSFI_EQ_TD): Likewise.
18525 (TSTSFI_GT): Likewise.
18526 (TSTSFI_GT_DD): Likewise.
18527 (TSTSFI_GT_TD): Likewise.
18528 (TSTSFI_OV): Likewise.
18529 (TSTSFI_OV_DD): Likewise.
18530 (TSTSFI_OV_TD): Likewise.
18531 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18532 overloaded test significance functions.
18533 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18534 OPTION_MASK_P9_MISC into the representation of this mask.
18535 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18536 of this mask.
18537 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18538 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18539 non-zero.
18540 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18541 argument is a 6-bit unsigned literal value if the icode argument
18542 represents a DFP test significance built-in call.
18543 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18544 flag used independently and in combination with the
18545 RS6000_BTM_64BIT flag.
18546 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18547 (rs6000_builtin_mask_names): Add entry for power9-misc
18548 command-line option.
18549 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18550 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18551 RS6000_BTM_P9_MISC macros.
18552 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18553 option and change the description of the -mpower9-vector option to
18554 enable only vector instructions, removing its erroneously claimed
18555 support for scalar instructions.
18556 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18557 the ISA 3.0 digital floating point test significance built-in
18558 functions.
18559
18560 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18561
18562 * config/aarch64/aarch64.c (cortexa35_tunings):
18563 Enable AES fusion. Use cortexa57_branch_cost.
18564 (cortexa53_tunings): Use cortexa57_branch_cost.
18565 (cortexa72_tunings): Use cortexa57_branch_cost.
18566 Use AUTOPREFETCHER_WEAK.
18567 (cortexa73_tunings): Use cortexa57_branch_cost.
18568
18569 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18570 James Greenhalgh <james.greenhalgh@arm.com>
18571
18572 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18573 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18574 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18575 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18576 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18577 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18578 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18579 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18580 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18581 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18582 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18583 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18584 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18585 New intrinsics.
18586
18587 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18588 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18589
18590 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18591 New define_insn.
18592 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18593
18594 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18595
18596 PR driver/71651
18597 * gcc.c (driver::build_option_suggestions): Pass "option" to
18598 add_misspelling_candidates.
18599 * opts-common.c (add_misspelling_candidates): Add "option" param;
18600 use it to avoid adding negated forms for options marked with
18601 RejectNegative.
18602 * opts.h (add_misspelling_candidates): Add "option" param.
18603
18604 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18605
18606 PR middle-end/71693
18607 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18608 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18609 first when permuting bitwise operation with rotate. Cast
18610 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18611
18612 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18613
18614 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18615 for misspelled param names.
18616 * params.c: Include spellcheck.h.
18617 (find_param_fuzzy): New function.
18618 * params.h (find_param_fuzzy): New prototype.
18619 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18620 * spellcheck.h (struct edit_distance_traits<const char *>):
18621 ...here.
18622
18623 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18624
18625 * config/rs6000/predicates.md (const_0_to_7_operand): New
18626 predicate, recognize 0..7.
18627 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18628 support for doing extracts from V16QImode, V8HImode, V4SImode
18629 under ISA 3.0.
18630 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18631 vector extract support.
18632 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18633 for ISA 3.0 vector extract.
18634 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18635 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18636 extracts of a constant element number from small integer vectors
18637 on 64-bit ISA 3.0 systems.
18638 (vsx_extract_<mode>_di): Likewise.
18639 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18640 say when we can do ISA 3.0 vector extracts.
18641 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18642 registers, using the stxsiwx instruction.
18643
18644 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18645
18646 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18647 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18648 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18649 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18650 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18651 * config/arm/arm.c (arm_qdf24xx_tune): New.
18652
18653 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18654
18655 * config/aarch64/aarch64.c (cortexa53_tunings):
18656 Increase loop alignment to 8. Set function alignment to 16.
18657 (cortexa35_tunings): Likewise.
18658 (cortexa57_tunings): Increase loop alignment to 8.
18659 (cortexa72_tunings): Likewise.
18660 (cortexa73_tunings): Likewise.
18661
18662 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18663
18664 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18665 for arm_fp16_ok and arm_fp16_hw.
18666 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18667 arm_fp16_alternative.
18668
18669 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18670
18671 PR tree-optimization/71655
18672 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18673 types when swapping operands.
18674
18675 2016-06-29 Martin Liska <mliska@suse.cz>
18676
18677 PR middle-end/71585
18678 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18679 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18680 of build_optimization_node.
18681
18682 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18683
18684 PR tree-optimization/70729
18685 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18686 independent in loops having positive safelen value.
18687 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18688 it may be not valid after vectorization.
18689
18690 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18691
18692 PR tree-optimization/71625
18693 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18694 is sorted by ascending list->offset. If PTR is non-NULL and there is
18695 previous strinfo, call get_stridx_plus_constant.
18696 (get_stridx): Pass exp as second argument to get_addr_stridx.
18697 (addr_stridxptr): Add missing list = list->next, so that there can be
18698 more than one entries in the list. Bump limit from 16 to 32. Ensure
18699 the list is sorted by ascending list->offset.
18700 (get_stridx_plus_constant): Adjust so that it can be also called with
18701 ADDR_EXPR instead of SSA_NAME as PTR.
18702 (handle_char_store): Pass NULL_TREE as second argument to
18703 get_addr_stridx.
18704
18705 2016-06-29 Richard Biener <rguenther@suse.de>
18706
18707 PR rtl-optimization/68961
18708 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18709
18710 2016-06-29 Richard Biener <rguenther@suse.de>
18711
18712 PR middle-end/71002
18713 * alias.c (component_uses_parent_alias_set_from): Handle
18714 type punning through union accesses by using the union alias set.
18715 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18716
18717 2016-07-29 Richard Biener <rguenther@suse.de>
18718
18719 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18720 precision not matching mode precision.
18721
18722 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18723
18724 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18725 pa_output_arg_descriptor.
18726 (call_val_symref_64bit_post_reload): Likewise.
18727 (call_val_powf_64bit_post_reload): Likewise.
18728 (sibcall_internal_symref_64bit): Likewise.
18729 (sibcall_value_internal_symref_64bit): Likewise.
18730
18731 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18732
18733 PR middle-end/71626
18734 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18735 a constant, force its SUBREG_REG into memory or register instead
18736 of whole op1.
18737
18738 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18739
18740 PR target/58655
18741 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18742 * doc/invoke.texi (AVR Options): Document it.
18743
18744 2016-06-28 Walter Lee <walt@tilera.com>
18745
18746 * config/tilegx/linux.h: Do not include arch/icache.h
18747 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18748 * config/tilepro/linux.h: Do not include arch/icache.h
18749 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18750
18751 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18752
18753 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18754 for big-endian BIT_FIELD_REF.
18755
18756 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18757
18758 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18759 ('size' attribute): Add '128'.
18760 Include power9.md.
18761 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18762 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18763 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18764 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18765 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18766 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18767 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18768 *trunc<mode>df2_odd): Set size attribute to '128'.
18769 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18770 * config/rs6000/power6.md (power6-fp): Include dfp type.
18771 * config/rs6000/power7.md (power7-fp): Likewise.
18772 * config/rs6000/power8.md (power8-fp): Likewise.
18773 * config/rs6000/power9.md: New file.
18774 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18775 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18776 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18777 htmsimple.
18778 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18779 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18780 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18781 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18782 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18783 dfp_dscri_<mode>): Change type attribute to dfp.
18784 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18785 attribute to vecsimple.
18786 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18787 and prefetch streams.
18788 (rs6000_option_override_internal): Remove temporary code setting
18789 tuning to power8. Don't set rs6000_sched_groups for power9.
18790 (last_scheduled_insn): Change to rtx_insn *.
18791 (divide_cnt, vec_load_pendulum): New variables.
18792 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
18793 (rs6000_issue_rate): Set issue rate for Power9.
18794 (is_power9_pairable_vec_type): New.
18795 (power9_sched_reorder2): New.
18796 (rs6000_sched_reorder2): Call new function for Power9 specific
18797 reordering.
18798 (insn_must_be_first_in_group): Remove Power9.
18799 (insn_must_be_last_in_group): Likewise.
18800 (force_new_group): Likewise.
18801 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
18802 Initialize divide_cnt/vec_load_pendulum.
18803 (_rs6000_sched_context, rs6000_init_sched_context,
18804 rs6000_set_sched_context): Handle context save/restore of new
18805 variables.
18806
18807 2016-06-28 Richard Biener <rguenther@suse.de>
18808
18809 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
18810 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
18811 COMPONENT_REF operand.
18812 (nonoverlapping_component_refs_p): Likewise.
18813 * stor-layout.c (start_bitfield_representative): Mark
18814 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
18815
18816 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18817
18818 * Makefile.in: Don't cat ../stage_current if it does not exist.
18819
18820 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
18821 last argument is a bit-field.
18822
18823 PR rtl-optimization/71673
18824 * internal-fn.c (expand_arith_overflow_result_store): Use
18825 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
18826 expand_simple_binop.
18827
18828 PR middle-end/66867
18829 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
18830 expand_ifn_atomic_compare_exchange): New functions.
18831 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
18832 * tree.h (build_call_expr_internal_loc): Rename to ...
18833 (build_call_expr_internal_loc_array): ... this. Fix up type of
18834 last argument.
18835 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
18836 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
18837 ATOMIC_COMPARE_EXCHANGE result.
18838 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
18839 * gimple-fold.h (optimize_atomic_compare_exchange_p,
18840 fold_builtin_atomic_compare_exchange): New prototypes.
18841 * gimple-fold.c (optimize_atomic_compare_exchange_p,
18842 fold_builtin_atomic_compare_exchange): New functions..
18843 * tree-ssa.c (execute_update_addresses_taken): If
18844 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
18845 of call when finding addressable vars, and if such var becomes
18846 non-addressable, call fold_builtin_atomic_compare_exchange.
18847
18848 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
18849
18850 PR target/71670
18851 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
18852 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
18853
18854 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
18855
18856 * config/rs6000/rs6000.md ('type' attribute): Add
18857 veclogical,veccmpfx,vecexts,vecmove insn types.
18858 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
18859 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
18860 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
18861 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
18862 *nabs<mode>2_hw): Change type to vecmove.
18863 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
18864 *boolcc<mode>3_internal, *eqv<mode>3_internal,
18865 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
18866 *ieee_128bit_vsx_abs<mode>2_internal,
18867 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
18868 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
18869 *ieee128_mtvsrd_32bit): Change type to veclogical.
18870 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
18871 *movdi_internal32, *movdi_internal64): Update insn types.
18872 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
18873 vsx_extract_<mode>): Change type to veclogical.
18874 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
18875 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
18876 *vsx_sign_extend_si_v2di): Change type to vecexts.
18877 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
18878 type to veclogical.
18879 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
18880 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
18881 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
18882 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
18883 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18884 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
18885 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
18886 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
18887 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
18888 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
18889 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
18890 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
18891 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
18892 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
18893 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
18894 (ppc7450-vecsimple): Add veclogical, vecmove.
18895 (ppc7450-veccmp): Add veccmpfx.
18896 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
18897 vecmove.
18898 (ppc8540_vector_compare): Add veccmpfx.
18899 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
18900 * config/rs6000/cell.md (cell-fp): Add fpsimple.
18901 (cell-vecsimple): Add veclogical, vecmove.
18902 (cell-veccmp): Add veccmpfx.
18903 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
18904 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
18905 veccmpfx.
18906 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
18907 * config/rs6000/power4.md (power4-fp): Add fpsimple.
18908 (power4-vecsimple): Add veclogical, vecmove.
18909 (power4-veccmp): Add veccmpfx.
18910 * config/rs6000/power5.md (power5-fp): Add fpsimple.
18911 * config/rs6000/power6.md (power6-fp): Add fpsimple.
18912 (power6-vecsimple): Add veclogical, vecmove.
18913 (power6-veccmp): Add veccmpfx.
18914 * config/rs6000/power7.md (power7-fp): Add fpsimple.
18915 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
18916 * config/rs6000/power8.md (power8-fp): Add fpsimple.
18917 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
18918 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
18919 * config/rs6000/titan.md (titan_fp): Add fpsimple.
18920 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
18921 fpsimple.
18922 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
18923
18924 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
18925
18926 PR target/71656
18927 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18928 OPTION_MASK_P9_DFORM_VECTOR.
18929 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18930 disable -mpower9-dform-vector when using reload.
18931 (quad_address_p): Remove 'gpr_p' argument and all associated code.
18932 New 'strict' argument. Update all callers. Add strict addressing
18933 support.
18934 (rs6000_legitimate_offset_address_p): Remove call to
18935 virtual_stack_registers_memory_p.
18936 (rs6000_legitimize_reload_address): Add quad address support.
18937 (rs6000_legitimate_address_p): Move call to quad_address_p above
18938 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
18939 to account for new strict usage.
18940 (rs6000_output_move_128bit): Adjust quad_address_p args to account
18941 for new strict usage.
18942 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
18943
18944 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18945
18946 PR target/70902
18947 PR target/71453
18948 PR target/71555
18949 PR target/71596
18950 PR target/71657
18951 * config/i386/i386.c (ix86_spill_class): Disable condition to
18952 always return NO_REGS.
18953
18954 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18955
18956 * predict.c: Include gimple-pretty-print.h
18957 (predicted_by_loop_heuristics_p): Check also
18958 PRED_LOOP_EXIT_WITH_RECURSION
18959 (predict_loops): Find self recursive calls and use special purpose
18960 predictors for them; dump log about decisions.
18961 (pass_profile::execute): Dump info about #of iterations.
18962 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18963 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18964
18965 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18966
18967 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18968 output_asm_insn calls and shorten long lines. Output .CALL
18969 argument descriptor using pa_output_arg_descriptor. Add various
18970 inline $$dyncall and other optimizations.
18971 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18972
18973 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18974
18975 PR tree-optimization/71643
18976 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18977 EH preds.
18978
18979 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18980 leak a bitmap if dep_bb is NULL.
18981
18982 PR tree-optimization/71631
18983 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18984 to rewrite_expr_tree even if negate_result, move new_lhs var
18985 declaration and initialization earlier, for powi_result set afterwards
18986 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18987 if new_lhs != lhs, and don't shadow gsi var.
18988
18989 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18990
18991 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18992 Add in_loop parameter.
18993 (predict_loops): Add loop guard heuristics.
18994 * predict.def (PRED_LOOP_GUARD): New heuristics.
18995
18996 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18997
18998 * predict.c: Include ipa-utils.h
18999 (tree_bb_level_prediction): Predict recursive calls.
19000 (tree_estimate_probability_bb): Skip inexpensive calls for call
19001 predictor.
19002 * predict.def (PRED_RECURSIVE_CALL): New.
19003
19004 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19005
19006 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19007 (BU_FLOAT128_1): Likewise.
19008 (FABSQ): Likewise.
19009 (COPYSIGNQ): Likewise.
19010 (RS6000_BUILTIN_NANQ): Likewise.
19011 (RS6000_BUILTIN_NANSQ): Likewise.
19012 (RS6000_BUILTIN_INFQ): Likewise.
19013 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19014 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19015 (TARGET_FOLD_BUILTIN): New #define.
19016 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19017 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19018 (rs6000_fold_builtin): New target hook implementation, handling
19019 folding of 128-bit NaNs and infinities.
19020 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19021 entries are filled in to avoid problems during bootstrap
19022 self-test; define builtins for 128-bit NaNs and infinities.
19023 (rs6000_opt_mask): Add entry for float128.
19024 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19025 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19026 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19027 (const_str_type_node): New #define.
19028 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19029 to a define_expand that dispatches to either copysign<mode>3_soft
19030 or copysign<mode>3_hard.
19031 (copysign<mode>3_hard): Rename from copysign<mode>3.
19032 (copysign<mode>3_soft): New define_insn.
19033 * doc/extend.texi: Document new builtins.
19034
19035 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19036
19037 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19038 PRIu64 instead of lu.
19039
19040 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19041
19042 PR debug/71642
19043 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19044 copy the type name.
19045
19046 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19047
19048 PR tree-optimization/71647
19049 * omp-low.c (lower_rec_input_clauses): Convert
19050 omp_clause_aligned_alignment (c) to size_type_node for the
19051 last argument of __builtin_assume_aligned.
19052
19053 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19054
19055 * configure.ac (calling ___tls_get_addr via GOT): New
19056 assembler/linker check.
19057 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19058 assembler and linker supports calling ___tls_get_addr via GOT.
19059 Otherise, defined to 0.
19060 * config.in: Regenerated.
19061 * configure: Likewise.
19062 * config/i386/constraints.md (Yb): New constraint.
19063 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19064 (REG_CLASS_NAMES): Likewise.
19065 (REG_CLASS_CONTENTS): Likewise.
19066 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19067 the b constraint with the Yb constraint. Call ___tls_get_addr
19068 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19069 is 1.
19070 (*tls_local_dynamic_base_32_gnu): Likewise.
19071 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19072 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19073 (*tls_local_dynamic_base_64_<mode>): Likewise.
19074
19075 2016-06-24 Martin Liska <mliska@suse.cz>
19076
19077 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19078 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19079 few functions.
19080 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19081 argument to true if the expected number of iterations is
19082 loop-based.
19083
19084 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19085
19086 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19087 assemble for 32bit target.
19088 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19089 and $ld_ix86_gld_32_opt to link for 32bit target.
19090 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19091 * configure: Regenerate.
19092
19093 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19094
19095 * config/arm/arm.c (int_log2): Delete definition and prototype.
19096 (shift_op): Use exact_log2 instead of int_log2.
19097 (vfp3_const_double_for_fract_bits): Likewise.
19098
19099 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19100
19101 * internal-fn.c (expand_arith_set_overflow): New function.
19102 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19103 Use it.
19104 (expand_arith_overflow_result_store): Likewise. Handle precision
19105 smaller than mode precision.
19106 * tree-vrp.c (extract_range_basic): For imag part, handle
19107 properly signed 1-bit precision result.
19108 * doc/extend.texi (__builtin_add_overflow): Document that last
19109 argument can't be pointer to enumerated or boolean type.
19110 (__builtin_add_overflow_p): Document that last argument can't
19111 have enumerated or boolean type.
19112
19113 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19114 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19115
19116 * config/rs6000/predicates.md (splat_input_operand): Rework.
19117 Don't allow constants, since the insns that use this predicate
19118 don't support constants. Constants are handled by other insns
19119 that are created via combine. During and after register
19120 allocation, only allow indexed or indirect addresses, and not
19121 general addresses. Only allow modes supported by the hardware.
19122 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19123 comment. Move check for using VSPLTIS<x> to a common location,
19124 instead of doing it in two different places.
19125
19126 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19127
19128 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19129 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19130 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19131 signature_CENTAUR_ebx.
19132
19133 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19134
19135 PR target/66232
19136 PR target/67400
19137 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19138 (as_ix86_gas_32_opt): This.
19139 (ld_ix86_tls_ldm_opt): Renamed to ...
19140 (ld_ix86_gld_32_opt): This.
19141 (R_386_TLS_LDM reloc): Updated.
19142 (R_386_GOT32X reloc): New assembler/linker check.
19143 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19144 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19145 defined to 0.
19146 * config.in: Regenerated.
19147 * configure: Likewise.
19148 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19149 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19150 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19151 if ix86_force_load_from_GOT_p returns true.
19152 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19153 ix86_force_load_from_GOT_p returns true.
19154 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19155 the external function address via the GOT slot.
19156 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19157 HAVE_AS_IX86_GOT32X before returning false.
19158 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19159 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19160
19161 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19162
19163 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19164
19165 2016-06-23 Andi Kleen <ak@linux.intel.com>
19166
19167 * Makefile.in: Regenerate.
19168 * doc/install.texi: Document autoprofiledbootstrap.
19169
19170 2016-06-23 Andi Kleen <ak@linux.intel.com>
19171
19172 * config/i386/gcc-auto-profile: New file.
19173
19174 2016-06-23 Martin Liska <mliska@suse.cz>
19175
19176 PR middle-end/71619
19177 * predict.c (predict_loops): Revert the hunk that was removed
19178 in r237103.
19179
19180 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19181
19182 * config.gcc: Add support for arm*-*-phoenix* targets.
19183 * config/arm/t-phoenix: New.
19184 * config/phoenix.h: New.
19185
19186 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19187 H.J. Lu <hongjiu.lu@intel.com>
19188
19189 PR target/67400
19190 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19191 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19192 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19193 ix86_force_load_from_GOT_p returns true.
19194 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19195 ix86_force_load_from_GOT_p returns true.
19196 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19197 ix86_force_load_from_GOT_p returns true.
19198 (ix86_expand_move): Load the external function address via the
19199 GOT slot if ix86_force_load_from_GOT_p returns true.
19200 * config/i386/predicates.md (x86_64_immediate_operand): Return
19201 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19202 (x86_64_zext_immediate_operand): Ditto.
19203
19204 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19205
19206 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19207
19208 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19209
19210 PR c/70339
19211 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19212 * diagnostic.c (pedwarn_at_rich_loc): New function.
19213 * spellcheck.h (best_match::best_match): Add a
19214 "best_distance_so_far" optional parameter.
19215 (best_match::set_best_so_far): New method.
19216 (best_match::get_best_distance): New accessor.
19217 (best_match::get_best_candidate_length): New accessor.
19218
19219 2016-06-22 Nick Clifton <nickc@redhat.com>
19220
19221 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19222 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19223 modes are accepted as well.
19224 (ucompare_loc_descriptor): Likewise.
19225 (minmax_loc_descriptor): Likewise.
19226 (clz_loc_descriptor): Likewise.
19227 (popcount_loc_descriptor): Likewise.
19228 (bswap_loc_descriptor): Likewise.
19229 (rotate_loc_descriptor): Likewise.
19230 (mem_loc_descriptor): Likewise.
19231 (loc_descriptor): Likewise.
19232
19233 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19234
19235 * common.opt (fdiagnostics-parseable-fixits): New option.
19236 * diagnostic.c: Include "selftest.h".
19237 (print_escaped_string): New function.
19238 (print_parseable_fixits): New function.
19239 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19240 (selftest::assert_print_escaped_string): New function.
19241 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19242 (selftest::test_print_escaped_string): New function.
19243 (selftest::test_print_parseable_fixits_none): New function.
19244 (selftest::test_print_parseable_fixits_insert): New function.
19245 (selftest::test_print_parseable_fixits_remove): New function.
19246 (selftest::test_print_parseable_fixits_replace): New function.
19247 (selftest::diagnostic_c_tests): New function.
19248 * diagnostic.h (struct diagnostic_context): Add field
19249 "parseable_fixits_p".
19250 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19251 -fdiagnostics-parseable-fixits.
19252 (-fdiagnostics-parseable-fixits): New option.
19253 * opts.c (common_handle_option): Handle
19254 -fdiagnostics-parseable-fixits.
19255 * selftest-run-tests.c (selftest::run_tests): Call
19256 selftest::diagnostic_c_tests.
19257 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19258
19259 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19260
19261 PR tree-optimization/71488
19262 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19263 comparison of boolean vectors.
19264 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19265 of boolean vectors using bitwise operations.
19266
19267 2016-06-22 Andreas Schwab <schwab@suse.de>
19268
19269 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19270 Remove declaration.
19271
19272 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19273
19274 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19275
19276 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19277
19278 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19279 print FLAGS_REG.
19280
19281 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19282
19283 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19284 * config/arm/arm-cores.def (cortex-a73): New entry.
19285 (cortex-a73.cortex-a35): Likewise.
19286 (cortex-a73.cortex-a53): Likewise.
19287 * config/arm/arm-tables.opt: Regenerate.
19288 * config/arm/arm-tune.md: Likewise.
19289 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19290 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19291 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19292 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19293 * doc/invoke.texi (ARM Options): Document cortex-a73,
19294 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19295
19296 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19297
19298 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19299 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19300 (cortex-a73.cortex-a35): Likewise.
19301 (cortex-a73.cortex-a53): Likewise.
19302 * config/aarch64/aarch64-tune.md: Regenerate.
19303 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19304 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19305 -mcpu and -mtune.
19306
19307 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19308
19309 * configure.ac (gcc_cv_as_compress_debug): Remove
19310 --compress-debug-sections as extra as switch.
19311 Handle gas --compress-debug-sections=type.
19312 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19313 Handle gld --compress-debug-sections=type.
19314 * configure: Regenerate.
19315
19316 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19317
19318 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19319
19320 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19321
19322 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19323 (do_rewrite): likewise.
19324
19325 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19326
19327 * common/config/mep/mep-common.c: Remove.
19328 * config.gcc: Remove mep-* support.
19329 * config/mep/constraints.md: Remove.
19330 * config/mep/default.h: Remove.
19331 * config/mep/intrinsics.h: Remove.
19332 * config/mep/intrinsics.md: Remove.
19333 * config/mep/ivc2-template.h: Remove.
19334 * config/mep/mep-c5.cpu: Remove.
19335 * config/mep/mep-core.cpu: Remove.
19336 * config/mep/mep-default.cpu: Remove.
19337 * config/mep/mep-ext-cop.cpu: Remove.
19338 * config/mep/mep-intrin.h: Remove.
19339 * config/mep/mep-ivc2.cpu: Remove.
19340 * config/mep/mep-pragma.c: Remove.
19341 * config/mep/mep-protos.h: Remove.
19342 * config/mep/mep.c: Remove.
19343 * config/mep/mep.cpu: Remove.
19344 * config/mep/mep.h: Remove.
19345 * config/mep/mep.md: Remove.
19346 * config/mep/mep.opt: Remove.
19347 * config/mep/predicates.md: Remove.
19348 * config/mep/t-mep: Remove.
19349 * doc/install.texi: Remove mep-* documentation.
19350 * doc/md.texi: Likewise.
19351
19352 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19353
19354 * config.gcc: Remove support for avr-rtems.
19355 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19356 * config/avr/rtems.h: Remove.
19357 * config/avr/t-rtems: Remove.
19358
19359 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19360
19361 * config.gcc: Remove m32r-rtems support.
19362 * config/m32r/rtems.h: Remove.
19363
19364 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19365
19366 * config.gcc: Remove h8300-rtems support.
19367 * config/h8300/rtems.h: Remove.
19368 * config/h8300/t-rtems: Remove.
19369
19370 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19371
19372 * config.gcc: Remove support for knetbsd.
19373 * configure.ac: Likewise.
19374 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19375 * config/knetbsd-gnu.h: Remove.
19376 * configure: Regenerate.
19377
19378 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19379
19380 * config.gcc: Remove support for openbsd 2 and 3.
19381 * config/openbsd-oldgas.h: Remove.
19382
19383 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19384
19385 * config.gcc: Remove interix support.
19386 * config/i386/i386-interix.h: Remove.
19387 * config/i386/interix.opt: Remove.
19388 * config/i386/t-interix: Remove.
19389 * configure: Regenerate.
19390 * configure.ac: Remove interix support.
19391 * doc/install.texi: Remove interix documentation.
19392
19393 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19394
19395 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19396 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19397 not defined.
19398
19399 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19400
19401 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19402 they are both PLACEHOLDER_EXPRs.
19403
19404 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19405
19406 * stor-layout.c (layout_type): Move setting complex MODE to
19407 layout_type, instead of setting it ahead of time by the caller.
19408 * tree.c (build_complex_type): Likewise.
19409
19410 2016-06-21 Martin Liska <mliska@suse.cz>
19411
19412 * predict.c (force_edge_cold): Replace imposisble with
19413 impossible.
19414
19415 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19416
19417 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19418 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19419
19420 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19421
19422 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19423
19424 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19425 Ilya Enkovich <ilya.enkovich@intel.com>
19426
19427 PR target/71549
19428 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19429 New member function to convert V1TImode register to SUBREG
19430 TImode in debug insn.
19431 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19432 after changing register mode to V1TImode.
19433
19434 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19435
19436 * config/aarch64/aarch64-cores.def (vulcan): New core.
19437 * config/aarch64/aarch64-tune.md: Regenerate.
19438 * doc/invoke.texi: Document vulcan as an available option.
19439
19440 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19441
19442 * cse.c (canon_asm_operands): New function extracted from...
19443 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19444 either standalone or member of a PARALLEL.
19445
19446 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19447
19448 PR target/30417
19449 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19450 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19451 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19452
19453 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19454
19455 PR target/71103
19456 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19457 constant addresses if can_create_pseudo_p.
19458
19459 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19460
19461 PR tree-optimization/71588
19462 * tree-ssa-strlen.c (valid_builtin_call): New function.
19463 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19464 it.
19465
19466 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19467
19468 PR middle-end/71581
19469 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19470 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19471 for conversion of scalar user var to complex type and use the
19472 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19473 punt.
19474
19475 PR rtl-optimization/71591
19476 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19477 don't run any tests.
19478
19479 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19480
19481 PR target/71571
19482 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19483 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19484 space for PIC with non-v32 and the common non-PIC "jump".
19485
19486 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19487
19488 PR target/71559
19489 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19490 returned values and add UN*/LTGT/*ORDERED cases with values matching
19491 D operand modifier on vcmp for AVX.
19492
19493 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19494
19495 * config/aarch64/aarch64.opt
19496 (mpc-relative-literal-loads): Rename internal option name.
19497 * config/aarch64/aarch64.c
19498 (aarch64_nopcrelative_literal_loads): Rename to
19499 aarch64_pcrelative_literal_loads.
19500 (aarch64_expand_mov_immediate): Likewise.
19501 (aarch64_secondary_reload): Likewise.
19502 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19503 (aarch64_override_options_after_change_1): Rename and simplify logic.
19504 (aarch64_classify_symbol): Merge large model checks into switch,
19505 remove pc-relative load check.
19506
19507 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19508
19509 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19510 costs relative to the cost of a register move.
19511
19512 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19513
19514 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19515 (vcvt_n_f64_u64): Likewise.
19516 (vcvt_n_s64_f64): Likewise.
19517 (vcvt_n_u64_f64): Likewise.
19518 (vcvt_f64_s64): Likewise.
19519 (vrecpe_f64): Likewise.
19520 (vcvt_f64_u64): Likewise.
19521 (vrecps_f64): Likewise.
19522
19523 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19524
19525 * config/aarch64/aarch64.md
19526 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19527 iterators.
19528 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19529 attributes.
19530 * config/aarch64/aarch64-builtins.c
19531 (aarch64_types_binop_uss_qualifiers): Delete.
19532 (TYPES_BINOP_USS): Likewise.
19533 (aarch64_types_binop_sus_qualifiers): Likewise.
19534 (TYPES_BINOP_SUS): Likewise.
19535 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19536 (TYPES_FCVTIMM_SUS): Likewise.
19537 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19538 rather than BINOP.
19539 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19540 (fcvtzs): Use SHIFTIMM rather than BINOP.
19541 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19542
19543 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19544
19545 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19546 costs relative to the cost of a register move.
19547
19548 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19549
19550 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19551 Allow scalar/single vector modes to be tieable.
19552
19553 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19554
19555 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19556
19557 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19558
19559 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19560 "alignement".
19561 * tree.h (TYPE_ALIGN): Likewise.
19562
19563 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19564
19565 PR target/71103
19566 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19567
19568 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19569
19570 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19571 literal" build warnings.
19572 (avr_print_operand_address): Dito.
19573
19574 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19575
19576 PR target/71375
19577 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19578 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19579
19580 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19581
19582 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19583
19584 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19585
19586 PR bootstrap/71435
19587 * reload1.c (reload): Pass 0 to finish_spills when called because
19588 update_eliminables_and_spill returns true and remove did_spill.
19589 (finish_spills): Adjust comment and document GLOBAL parameter.
19590
19591 2016-06-17 DJ Delorie <dj@redhat.com>
19592
19593 PR target/71338
19594 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19595 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19596 (umulqihi3_virt): Likewise.
19597 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19598 (umulqihi3_real): Likewise.
19599
19600 2016-06-17 Martin Liska <mliska@suse.cz>
19601
19602 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19603
19604 2016-06-17 Martin Liska <mliska@suse.cz>
19605
19606 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19607
19608 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19609
19610 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19611 __FAST_MATH__.
19612 (vaddq_f32): Likewise.
19613 (vmul_f32): Likewise.
19614 (vmulq_f32): Likewise.
19615 (vsub_f32): Likewise.
19616 (vsubq_f32): Likewise.
19617
19618 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19619
19620 PR tree-optimization/71347
19621 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19622 cost for all uses in group.
19623
19624 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19625
19626 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19627 insert gimple seq if it's not empty.
19628
19629 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19630
19631 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19632 member OFFSET.
19633 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19634 rather than OFFSET.
19635 (comp_dr_with_seg_len_pair): Ditto.
19636 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19637 struct dr_with_seg_len_pair against DR_OFFSET.
19638 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19639 DR_OFFSET directly.
19640
19641 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19642
19643 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19644
19645 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19646
19647 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19648 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19649 (pa_output_millicode_call): Likewise.
19650 (pa_output_call): Likewise.
19651 (pa_output_indirect_call): Likewise.
19652 (pa_asm_output_mi_thunk): Likewise.
19653
19654 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19655
19656 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19657
19658 2016-06-16 Martin Liska <mliska@suse.cz>
19659
19660 * predict.c (combine_predictions_for_insn): When we find a first
19661 match predictor, we should consider just predictors with
19662 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19663 DS theory predictor.
19664 (combine_predictions_for_bb): Likewise.
19665
19666 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19667
19668 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19669 with base of reference to struct.
19670
19671 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19672
19673 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19674
19675 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19676
19677 PR target/71151
19678 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19679 progmem_swtable_section.
19680 (progmem_swtable_section): Remove.
19681 (avr_asm_function_rodata_section): Remove.
19682 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19683 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19684
19685 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19686
19687 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19688 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19689 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19690 signature_CENTAUR_ebx.
19691 * config/i386/i386.c (ix86_option_override_internal): Add
19692 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19693 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19694 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19695
19696 2016-06-16 Martin Liska <mliska@suse.cz>
19697
19698 * predict.def: Add fortran loop preheader predictor.
19699 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19700 fold IFN_BUILTIN_EXPECT with a known constant argument.
19701
19702 2016-06-16 Martin Liska <mliska@suse.cz>
19703
19704 * predict.def: Add 'Fortran' to display text of all
19705 PRED_FORTRAN_* predictors.
19706
19707 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19708
19709 PR target/71242
19710 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19711 [IA64_BUILTIN_NANSQ]: Ditto.
19712 (ia64_fold_builtin): New function.
19713 (TARGET_FOLD_BUILTIN): New define.
19714 (ia64_init_builtins) Declare const_string_type node.
19715 Add __builtin_nanq and __builtin_nansq builtin functions.
19716 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19717
19718 2016-06-16 Nick Clifton <nickc@redhat.com>
19719
19720 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19721 MSP430_HWMULT_ prefix to enum values.
19722 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19723 * config/msp430/msp430.c: Update use of enum values.
19724 * config/msp430/msp430.md: Likewise.
19725 * config/msp430/msp430.opt: Likewise.
19726
19727 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19728
19729 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19730 of comparsions in the last iteration.
19731
19732 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19733 Joern Rennecke <joern.rennecke@embecosm.com>
19734
19735 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19736 addresses.
19737 (arc_needs_pcl_p): Add GOTOFFPC.
19738 (arc_legitimate_pic_addr_p): Likewise.
19739 (arc_output_pic_addr_const): Likewise.
19740 (arc_legitimize_pic_address): Generate a pc-relative address using
19741 GOTOFFPC.
19742 (arc_output_libcall): Use @pcl syntax.
19743 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19744 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19745 (*movsi_insn): Use @pcl syntax.
19746 (doloop_begin_i): Likewise.
19747
19748 2016-06-16 Martin Liska <mliska@suse.cz>
19749
19750 * predict.def: Define a new predictor.
19751
19752 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19753
19754 * config/arc/arc.opt (mtp-regno): Update text.
19755
19756 2016-06-16 Renlin Li <renlin.li@arm.com>
19757
19758 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19759
19760 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19761
19762 PR target/71554
19763 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19764 (setcc + and peephole2): Likewise.
19765
19766 PR rtl-optimization/71532
19767 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19768 memory slots.
19769
19770 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19771
19772 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19773 DImode constants with XXSPLTIB in vector registers.
19774 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19775 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19776 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19777 extraction of the element at the top of the register as a scalar
19778 value.
19779 (vsx_extract_<mode>_internal1): Likewise.
19780 (vsx_extract_<mode>_internal2): Likewise.
19781 * config/rs6000/constraints.md (wi constraint): Remove a comment
19782 about DImode not being allowed in Altivec registers.
19783 (wB constraint): New constraint for constants that can be
19784 generated in Altivec registers with VSPLTISW/VUPKHSW.
19785 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19786 comments.
19787 (xxspltib_constant_nosplit): Likewise.
19788 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19789 support for -mupper-regs-di to enable DImode to go into Altivec
19790 registers.
19791 (POWERPC_MASKS): Likewise.
19792 (power7 cpu): Likewise.
19793 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
19794 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
19795 for DImode being allowed in Altivec registers. Update wi/wj
19796 constraints. Set scalar_in_vmx_p flag.
19797 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
19798 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
19799 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
19800 (rs6000_opt_masks): Add -mupper-regs-di.
19801 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
19802 direct move to use wi and not wj.
19803 (lfiwzx): Likewise.
19804 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
19805 alternative.
19806 (floatunssi<mode>2_lfiwzx_mem): Likewise.
19807 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
19808 any VSX register, instead of just Altivec registers, to allow
19809 either operand to be an Altivec register or both.
19810 (fixuns_trunc<mode>di2_fctiduz): Likewise.
19811 (movdi_internal32): Add support for -mupper-regs-di. Add support
19812 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
19813 the alternatives and attributes to be lined up to be easier to
19814 read.
19815 (movdi_internal64): Likewise.
19816 (64-bit DImode splitters): Change predicates to only split loading
19817 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
19818 load constants in ISA 3.0 or ISA 2.07 respectively.
19819 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
19820 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
19821 mention -mcpu=power9 sets these options.
19822 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
19823 wB constraint.
19824
19825 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19826
19827 PR target/67353
19828 * config/avr/avr.c (avr_set_current_function): Warn misspelled
19829 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
19830 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
19831 by default to warn misspelled interrupt/ signal handler.
19832 * doc/invoke.texi (AVR Options): Document it. Update description
19833 for -nodevicelib option.
19834
19835 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19836
19837 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
19838 up parentheses. Use GET_MODE_UNIT_BITSIZE.
19839 (aarch64_<sur>shll2_n<mode>): Likewise.
19840
19841 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
19842
19843 PR middle-end/71529
19844 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
19845 DECL_CONTEXT for copied arguments.
19846
19847 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19848
19849 PR tree-optimization/71483
19850 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
19851 for slp
19852
19853 2016-06-15 Martin Liska <mliska@suse.cz>
19854
19855 * predict.c (tree_predict_by_opcode): Call predict_edge_def
19856 instead of predict_edge w/o a probability.
19857
19858 2016-06-15 Alan Hayward <alan.hayward@arm.com>
19859
19860 PR tree-optimization/71439
19861 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
19862 live PHIs.
19863
19864 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19865
19866 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
19867 register subregs in SET_SRC.
19868
19869 2016-06-15 Richard Biener <rguenther@suse.de>
19870
19871 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
19872 store restrictions.
19873
19874 2016-06-15 Richard Biener <rguenther@suse.de>
19875
19876 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
19877 not consider dependences between accesses that belong to the
19878 same group.
19879 (vect_analyze_data_ref_dependences): Do not analyze read-read
19880 or self-dependences.
19881
19882 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19883
19884 * spellcheck-tree.c: Include spellcheck-tree.h rather than
19885 spellcheck.h.
19886 (find_closest_identifier): Reimplement in terms of
19887 best_match<tree,tree>.
19888 * spellcheck-tree.h: New file.
19889 * spellcheck.c (struct edit_distance_traits<const char *>): New
19890 struct.
19891 (find_closest_string): Reimplement in terms of
19892 best_match<const char *, const char *>.
19893 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
19894 overload to spellcheck-tree.h.
19895 (find_closest_identifier): Likewise.
19896 (struct edit_distance_traits<T>): New template.
19897 (class best_match): New class.
19898
19899 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19900
19901 * selftest-run-tests.c (selftest::run_tests): Call
19902 selftest::spellcheck_tree_c_tests.
19903 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
19904 * spellcheck-tree.c: Include selftest.h and stringpool.h.
19905 (selftest::test_find_closest_identifier): New function.
19906 (selftest::spellcheck_tree_c_tests): New function.
19907 * spellcheck.c (selftest::test_find_closest_string): Verify that
19908 the order of the vec does not affect the results for this case.
19909 (selftest::test_data): New array.
19910 (selftest::test_metric_conditions): New function.
19911 (selftest::spellcheck_c_tests): Add a test of case-comparison.
19912 Call selftest::test_metric_conditions.
19913
19914 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19915
19916 * config/rs6000/rs6000-builtin.def (commentary): Typo.
19917 (BU_P9_MISC_1): Likewise.
19918 (BU_P9_64BIT_MISC_0): Likewise.
19919 (BU_P9_MISC_0): Likewise.
19920
19921 2016-06-14 David Malcolm <dmalcolm@redhat.com>
19922
19923 * gcc-rich-location.c
19924 (gcc_rich_location::add_fixit_misspelled_id): New method.
19925 * gcc-rich-location.h
19926 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
19927
19928 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
19929
19930 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
19931 FreeBSD 11 and above.
19932
19933 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
19934
19935 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
19936
19937 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19938
19939 * expmed.h: Close parenthesis in "at your option" in copyright
19940 boilerplate.
19941 * lower-subreg.h: Likewise.
19942
19943 2016-06-14 Richard Biener <rguenther@suse.de>
19944
19945 PR middle-end/71526
19946 * genmatch.c (expr::gen_transform): Use in_type for comparisons
19947 if available.
19948
19949 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19950
19951 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19952 New function.
19953 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19954 mask+shift version.
19955 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19956 New prototype.
19957 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19958 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19959
19960 2016-06-14 Richard Biener <rguenther@suse.de>
19961
19962 PR tree-optimization/71522
19963 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19964 copying into float copying.
19965
19966 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19967
19968 PR tree-optimization/71520
19969 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19970 (replace_block_by): Move user labels from bb1 to bb2.
19971
19972 2016-06-14 Richard Biener <rguenther@suse.de>
19973
19974 PR middle-end/71310
19975 PR bootstrap/71510
19976 * expr.h (get_bit_range): Declare.
19977 * expr.c (get_bit_range): Export.
19978 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19979 word_mode again to constrain the bitfield access.
19980
19981 2016-06-14 Richard Biener <rguenther@suse.de>
19982
19983 PR tree-optimization/71521
19984 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19985 division int_const_binop against zero divisor.
19986
19987 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19988
19989 * config/i386/i386.md (signbittf2): New expander.
19990 * config/i386/sse.md (ptesttf2): New insn pattern.
19991
19992 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19993
19994 PR bootstrap/71481
19995 * input.c (selftest::test_reading_source_line): Avoid reading from
19996 __FILE__ by creating a tempfile with known content and reading
19997 from that instead.
19998
19999 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20000
20001 * pretty-print.c (assert_pp_format_colored): Skip the test if
20002 GCC_COLORS is set.
20003 (test_pp_format): Remove comment about GCC_COLORS.
20004
20005 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20006
20007 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20008 * pretty-print.c (assert_pp_format_va): Add location param and use
20009 it with ASSERT_STREQ_AT.
20010 (assert_pp_format): Add location param and pass it to
20011 assert_pp_format_va.
20012 (assert_pp_format_colored): Likewise.
20013 (ASSERT_PP_FORMAT_1): New.
20014 (ASSERT_PP_FORMAT_2): New.
20015 (ASSERT_PP_FORMAT_3): New.
20016 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20017 explicitly, or implicitly via the above macros.
20018 * selftest.c (selftest::pass): Use a selftest::location rather
20019 than file and line.
20020 (selftest::fail): Likewise. Print the function name.
20021 (selftest::fail_formatted): Likewise.
20022 (selftest::assert_streq): Use a selftest::location rather than
20023 file and line.
20024 * selftest.h (selftest::location): New struct.
20025 (SELFTEST_LOCATION): New macro.
20026 (selftest::pass): Accept a const location & rather than file
20027 and line.
20028 (selftest::fail): Likewise.
20029 (selftest::fail_formatted): Likewise.
20030 (selftest::assert_streq): Likewise.
20031 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20032 (ASSERT_FALSE): Likewise.
20033 (ASSERT_EQ): Likewise.
20034 (ASSERT_NE): Likewise.
20035 (ASSERT_STREQ): Likewise.
20036 (ASSERT_PRED1): Likewise.
20037 (ASSERT_STREQ_AT): New macro.
20038
20039 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20040
20041 * selftest.c (selftest::fail_formatted): New function.
20042 (selftest::assert_streq): New function.
20043 * selftest.h (selftests::fail_formatted): New decl.
20044 (selftest::assert_streq): New decl.
20045 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20046
20047 2016-06-13 Jeff Law <law@redhat.com>
20048
20049 PR tree-optimization/71403
20050 * tree-ssa-threadbackward.c
20051 (convert_and_register_jump_thread_path): No longer accept reference
20052 to path. Do not pop items off the path anymore.
20053 (fsm_find_control_statement_thread_paths): Do not allow threading
20054 to a deeper loop nest. Pop the last item off the path here rather
20055 than in convert_and_register_jump_thread_path.
20056
20057 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20058 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20059
20060 [AArch64] Emit division using the Newton series
20061
20062 * config/aarch64/aarch64-protos.h
20063 (cpu_approx_modes): Add new member "division".
20064 (aarch64_emit_approx_div): Declare new function.
20065 * config/aarch64/aarch64.c
20066 (generic_approx_modes): New member "division".
20067 (exynosm1_approx_modes): Likewise.
20068 (xgene1_approx_modes): Likewise.
20069 (aarch64_emit_approx_div): Define new function.
20070 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20071 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20072 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20073 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20074
20075 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20076 Wilco Dijkstra <wilco.dijkstra@arm.com>
20077
20078 [AArch64] Emit square root using the Newton series
20079
20080 * config/aarch64/aarch64-protos.h
20081 (aarch64_emit_approx_rsqrt): Replace with new function
20082 "aarch64_emit_approx_sqrt".
20083 (cpu_approx_modes): New member "sqrt".
20084 * config/aarch64/aarch64.c
20085 (generic_approx_modes): New member "sqrt".
20086 (exynosm1_approx_modes): Likewise.
20087 (xgene1_approx_modes): Likewise.
20088 (aarch64_emit_approx_rsqrt): Replace with new function
20089 "aarch64_emit_approx_sqrt".
20090 (aarch64_override_options_after_change_1): Handle new option.
20091 * config/aarch64/aarch64-simd.md
20092 (rsqrt<mode>2): Use new function instead.
20093 (sqrt<mode>2): New expansion and insn definitions.
20094 * config/aarch64/aarch64.md: Likewise.
20095 * config/aarch64/aarch64.opt
20096 (mlow-precision-sqrt): Add new option description.
20097 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20098
20099 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20100
20101 [AArch64] Add more choices for the reciprocal square root approximation
20102
20103 Allow a target to prefer such operation depending on the operation mode.
20104
20105 * config/aarch64/aarch64-protos.h
20106 (AARCH64_APPROX_MODE): New macro.
20107 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20108 (cpu_approx_modes): New structure.
20109 (tune_params): New member "approx_modes".
20110 * config/aarch64/aarch64-tuning-flags.def
20111 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20112 * config/aarch64/aarch64.c
20113 (generic_approx_modes): New core "cpu_approx_modes" structure.
20114 (exynosm1_approx_modes): Likewise.
20115 (xgene1_approx_modes): Likewise.
20116 (generic_tunings): New member "approx_modes".
20117 (cortexa35_tunings): Likewise.
20118 (cortexa53_tunings): Likewise.
20119 (cortexa57_tunings): Likewise.
20120 (cortexa72_tunings): Likewise.
20121 (exynosm1_tunings): Likewise.
20122 (thunderx_tunings): Likewise.
20123 (xgene1_tunings): Likewise.
20124 (use_rsqrt_p): New argument for the mode and use new member from
20125 "tune_params".
20126 (aarch64_builtin_reciprocal): Devise mode from builtin.
20127 (aarch64_optab_supported_p): New argument for the mode.
20128 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20129
20130 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20131
20132 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20133 RS6000_BTM_MODULO flag into the set of flags that are considered
20134 to be part of the common configuration.
20135
20136 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20137
20138 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20139 difference unsigned.
20140 (vec_absdb): New macro for vector absolute difference unsigned
20141 byte.
20142 (vec_absdh): New macro for vector absolute difference unsigned
20143 half-word.
20144 (vec_absdw): New macro for vector absolute difference unsigned word.
20145 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20146 (vadu<mode>3): New insn.
20147 (*p9_vadu<mode>3): New insn.
20148 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20149 definition.
20150 (vaduh): New built-in definition.
20151 (vaduw): New built-in definition.
20152 (vadu): New overloaded built-in definition.
20153 (vadub): New overloaded built-in definition.
20154 (vaduh): New overloaded built-in definition.
20155 (vaduw): New overloaded built-in definition.
20156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20157 overloaded vector absolute difference unsigned functions.
20158 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20159 the ISA 3.0 vector absolute difference unsigned built-in functions.
20160
20161 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20162
20163 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20164 update shared_lookup_references only once after changing operands.
20165
20166 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20167
20168 PR middle-end/71373
20169 * tree-nested.c (convert_nonlocal_omp_clauses)
20170 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20171
20172 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20173 * tree.def (CASE_LABEL_EXPR): Likewise.
20174
20175 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20176
20177 PR bootstrap/71481
20178 * input.c (test_builtins): Fix an assertion.
20179
20180 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20181
20182 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20183 (paritysi2): Ditto.
20184 (isinfxf2): Ditto.
20185 (isinf<mode>2): Ditto.
20186
20187 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20188
20189 * ggc-tests.c (test_finalization): Only test need_finalization_p
20190 for GCC_VERSION >= 4003.
20191
20192 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20193
20194 * config/s390/vecintrin.h: Fix file description in comment.
20195
20196 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20197
20198 * config/s390/s390-builtin-types.def: Change builtin type naming
20199 scheme to match builtin-types.def.
20200
20201 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20202
20203 * fold-const.c (optimize_minmax_comparison): Remove.
20204 (fold_comparison): Remove call to the above.
20205 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20206 New transformations.
20207
20208 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20209
20210 PR tree-optimization/71416
20211 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20212 multiple entries
20213
20214 2016-06-13 Martin Liska <mliska@suse.cz>
20215
20216 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20217 (combine_predictions_for_insn): Likewise.
20218 (prune_predictions_for_bb): Likewise.
20219 (combine_predictions_for_bb): Likewise.
20220
20221 2016-06-13 Richard Biener <rguenther@suse.de>
20222
20223 PR tree-optimization/71505
20224 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20225 assert match comment.
20226
20227 2016-06-13 Marek Polacek <polacek@redhat.com>
20228
20229 PR middle-end/71476
20230 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20231 gimplify_switch_expr.
20232 (warn_switch_unreachable_r): New function.
20233
20234 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20235
20236 PR target/71379
20237 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20238 one.
20239
20240 2016-06-13 Richard Biener <rguenther@suse.de>
20241
20242 PR middle-end/64516
20243 * fold-const.c (fold_unary_loc): Preserve alignment when
20244 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20245
20246 2016-06-13 Martin Liska <mliska@suse.cz>
20247
20248 PR sanitizer/71458
20249 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20250 w/ -fsanitize=bounds.
20251
20252 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20253
20254 * config/i386/i386.c (ix86_init_builtins): Calculate
20255 FLOAT128_FTYPE_CONST_STRING function type only once.
20256 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20257 built-in functions are available for x86-32 and x86-64 targets.
20258
20259 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20260
20261 PR target/71241
20262 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20263 New primitive type.
20264 (FLOAT128_FTYPE_CONST_STRING): New function type.
20265 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20266 [IX86_BUILTIN_NANSQ]: Ditto.
20267 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20268 (ix86_init_builtin_types): Declare const_string_type_node.
20269 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20270 builtin functions.
20271 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20272 * doc/extend.texi (x86 Built-in Functions): Document
20273 __builtin_nanq and __builtin_nansq.
20274
20275 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20276
20277 PR target/71061
20278 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20279 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20280 length for pop patterns.
20281 (arm_attr_length_push_multi): Update comments.
20282 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20283 attribute.
20284 (*pop_multiple_with_writeback_and_return): Likewise.
20285 (*pop_multiple_with_return): Likewise.
20286
20287 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20288
20289 PR middle-end/71310
20290 * fold-const.c (optimize_bit_field_compare): Don't try to use
20291 word_mode unconditionally for reading the bit field, look at
20292 DECL_BIT_FIELD_REPRESENTATIVE instead.
20293
20294 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20295
20296 PR middle-end/71478
20297 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20298 vector integer type.
20299
20300 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20301
20302 PR middle-end/71494
20303 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20304 without LABEL_DECL, set *handled_ops_p to false instead of true.
20305
20306 2016-06-10 Martin Sebor <msebor@redhat.com>
20307
20308 PR c/71392
20309 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20310 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20311 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20312 them.
20313 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20314 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20315 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20316 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20317 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20318 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20319 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20320 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20321
20322 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20323
20324 * config/arm/arm.h (pool_vector_label,
20325 return_used_this_function): Remove.
20326
20327 2016-06-10 Jeff Law <law@redhat.com>
20328
20329 PR tree-optimization/71335
20330 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20331 zero length paths here.
20332 (convert_and_register_jump_thread_path): Remove hacks related to
20333 duplicated blocks in the jump thread path.
20334 (fsm_find_control_statement_thread_paths): Avoid putting the same
20335 block on the thread path twice, but ensure the thread path is
20336 unchanged from the caller's point of view.
20337
20338 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20339
20340 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20341 * predict.def (PRED_LOOP_BRANCH): Remove.
20342
20343 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20344
20345 * Makefile.in (OBJS): Add ggc-tests.o.
20346 (GTFILES): Add ggc-tests.c.
20347 * ggc-tests.c: New file.
20348 * selftest-run-tests.c (selftest::run_tests): Call
20349 selftest::ggc_tests_c_tests.
20350 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20351
20352 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20353
20354 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20355
20356 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20357
20358 PR sanitizer/71480
20359 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20360 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20361
20362 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20363
20364 * profile.c: Include cfgloop.h.
20365 (branch_prob): Compute estimated number of iterations.
20366 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20367 recompute estimate number of iterations from profile.
20368
20369 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20370
20371 PR inline-asm/68843
20372 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20373 must be grouped on top of stack. Don't force early clobber
20374 on ordinary reg outputs.
20375
20376 2016-06-10 Richard Biener <rguenther@suse.de>
20377
20378 * targhooks.c (default_builtin_vectorization_cost): Adjust
20379 vec_construct cost.
20380
20381 2016-06-10 Richard Biener <rguenther@suse.de>
20382
20383 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20384 to fold the RHS to a constant if possible.
20385
20386 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20387
20388 PR middle-end/71373
20389 * tree-nested.c (convert_nonlocal_omp_clauses)
20390 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20391 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20392 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20393
20394 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20395 OMP_CLAUSE_TILE.
20396 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20397
20398 * omp-low.c (scan_sharing_clauses): Don't expect
20399 OMP_CLAUSE__CACHE_.
20400
20401 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20402
20403 PR tree-optimization/71407
20404 PR tree-optimization/71416
20405 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20406 BIT_FIELD_REF type.
20407
20408 2016-06-10 Richard Biener <rguenther@suse.de>
20409
20410 PR middle-end/71477
20411 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20412
20413 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20414
20415 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20416
20417 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20418 Jiong Wang <jiong.wang@arm.com>
20419
20420 PR rtl-optimization/70751
20421 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20422 spilled into memory.
20423
20424 2016-06-09 Jonathan Yong <10walls@gmail.com>
20425
20426 Revert:
20427 2015-09-21 Jonathan Yong <10walls@gmail.com>
20428
20429 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20430 sysroot/usr/lib/32api for additional win32 libraries,
20431 fixes failing Cygwin bootstrapping.
20432
20433 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20434
20435 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20436 Delete.
20437
20438 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20439
20440 PR bootstrap/71471
20441 * pretty-print.c (pp_indent): Specify that %p is printed in a
20442 host-dependent manner.
20443 (test_pp_format): Remove the test for %p.
20444
20445 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20446
20447 * config/mips/mips.c (mips_output_jump): Fix formatting.
20448
20449 2016-06-09 Richard Biener <rguenther@suse.de>
20450
20451 PR tree-optimization/71462
20452 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20453 removed blocks.
20454
20455 2016-06-09 Martin Liska <mliska@suse.cz>
20456
20457 * predict.c (dump_prediction): Add new argument.
20458 (enum predictor_reason): New enum.
20459 (struct predictor_hash): New struct.
20460 (predictor_hash::hash): New function.
20461 (predictor_hash::equal): Likewise.
20462 (not_removed_prediction_p): New function.
20463 (prune_predictions_for_bb): Likewise.
20464 (combine_predictions_for_bb): Prune predictions.
20465
20466 2016-06-09 Martin Liska <mliska@suse.cz>
20467
20468 * predict.c (filter_predictions): New function.
20469 (remove_predictions_associated_with_edge): Use the filter
20470 function.
20471 (equal_edge_p): New function.
20472
20473 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20474
20475 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20476 Correct usage of @samp vs @option, add @samp where appropriate.
20477 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20478 Add armv6s-m and document it, as it is no official ARM name.
20479
20480 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20481
20482 * ifcvt.c (struct noce_if_info): Add transform_name field.
20483 (noce_try_move): Set if_info->transform_name to the function name.
20484 (noce_try_ifelse_collapse): Likewise.
20485 (noce_try_store_flag): Likewise.
20486 (noce_try_inverse_constants): Likewise.
20487 (noce_try_store_flag_constants): Likewise.
20488 (noce_try_addcc): Likewise.
20489 (noce_try_store_flag_mask): Likewise.
20490 (noce_try_cmove): Likewise.
20491 (noce_try_cmove_arith): Likewise.
20492 (noce_try_minmax): Likewise.
20493 (noce_try_abs): Likewise.
20494 (noce_try_sign_mask): Likewise.
20495 (noce_try_bitop): Likewise.
20496 (noce_convert_multiple_sets): Likewise.
20497 (noce_process_if_block): Print if_info->transform_name to
20498 dump_file if transformation succeeded.
20499
20500 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20501
20502 * config/arm/cortex-a57.md (cortex_a57_alu):
20503 Handle csel type.
20504
20505 2016-06-08 Martin Sebor <msebor@redhat.com>
20506 Jakub Jelinek <jakub@redhat.com>
20507
20508 PR c++/70507
20509 PR c/68120
20510 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20511 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20512 * builtins.c: Include gimple-fold.h.
20513 (fold_builtin_arith_overflow): Handle
20514 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20515 (fold_builtin_3): Likewise.
20516 * doc/extend.texi (Integer Overflow Builtins): Document
20517 __builtin_{add,sub,mul}_overflow_p.
20518
20519 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20520
20521 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20522 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20523
20524 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20525
20526 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20527 Rewrite, looking one level down for records and arrays.
20528
20529 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20530
20531 * pretty-print.c: Include "selftest.h".
20532 (pp_format): Fix comment.
20533 (identifier_to_locale): Likewise.
20534 (selftest::test_basic_printing): New function.
20535 (selftest::assert_pp_format): New function.
20536 (selftest::test_pp_format): New function.
20537 (selftest::pretty_print_c_tests): New function.
20538 * selftest-run-tests.c (selftest::run_tests): Call
20539 selftest::pretty_print_c_tests.
20540 * selftest.h (pretty_print_c_tests): New declaration.
20541
20542 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20543
20544 * invoke.texi (max-loop-headers-insns): Document.
20545 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20546 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20547 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20548
20549 2016-06-08 Richard Biener <rguenther@suse.de>
20550
20551 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20552 on strided SLP loads and fall back to scalar loads in case
20553 we can't chunk them.
20554
20555 2016-06-08 Richard Biener <rguenther@suse.de>
20556
20557 PR tree-optimization/71452
20558 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20559 type used for the SSA rewrite has enough precision to cover
20560 the dynamic type of the location.
20561
20562 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20563 Richard Biener <rguenther@suse.de>
20564
20565 PR c++/71448
20566 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20567 the same as DECL_P (base0) for indirect_base0. Use equality_code
20568 in one further place.
20569
20570 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20571
20572 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20573 to one word if the field is known to overlap other words.
20574 (extract_bit_field_1): Likewise.
20575 (store_split_bit_field): Remove compensating code.
20576 (extract_split_bit_field): Likewise.
20577
20578 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20579
20580 PR debug/71432
20581 PR ada/71413
20582 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20583
20584 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20585
20586 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20587 VDQF.
20588 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20589 (arch64_addpv4sf): Delete.
20590 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20591 "gen_aarch64_addpv4sf".
20592 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20593 builtin.
20594 (vpadds_f32): Likewise.
20595 (vpaddq_f32): Likewise.
20596 (vpaddq_f64): Likewise.
20597
20598 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20599
20600 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20601 VALLF.
20602 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20603 to VALLF. Rename to "fabd<mode>3".
20604 "*fabd_scalar<mode>3): Delete.
20605 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20606 Use builtin.
20607 (vabdd_f64): Likewise.
20608 (vabd_f32): Likewise.
20609 (vabd_f64): Likewise.
20610 (vabdq_f32): Likewise.
20611 (vabdq_f64): Likewise.
20612
20613 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20614
20615 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20616 VALLF.
20617 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20618 "aarch64_rsqrts<mode>".
20619 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20620 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20621 builtin.
20622 (vrsqrtsd_f64): Likewise.
20623 (vrsqrts_f32): Likewise.
20624 (vrsqrts_f64): Likewise.
20625 (vrsqrtsq_f32): Likewise.
20626 (vrsqrtsq_f64): Likewise.
20627
20628 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20629
20630 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20631 VALLF.
20632 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20633 "aarch64_rsqrte<mode>".
20634 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20635 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20636 builtin.
20637 (vrsqrted_f64): Likewise.
20638 (vrsqrte_f32): Likewise.
20639 (vrsqrte_f64): Likewise.
20640 (vrsqrteq_f32): Likewise.
20641 (vrsqrteq_f64): Likewise.
20642
20643 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20644
20645 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20646 (ucvtf): Likewise.
20647 (fcvtzs): Likewise.
20648 (fcvtzu): Likewise.
20649 * config/aarch64/aarch64-simd.md
20650 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20651 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20652 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20653 Use builtin.
20654 (vcvt_n_f32_u32): Likewise.
20655 (vcvt_n_s32_f32): Likewise.
20656 (vcvt_n_u32_f32): Likewise.
20657 (vcvtq_n_f32_s32): Likewise.
20658 (vcvtq_n_f32_u32): Likewise.
20659 (vcvtq_n_f64_s64): Likewise.
20660 (vcvtq_n_f64_u64): Likewise.
20661 (vcvtq_n_s32_f32): Likewise.
20662 (vcvtq_n_s64_f64): Likewise.
20663 (vcvtq_n_u32_f32): Likewise.
20664 (vcvtq_n_u64_f64): Likewise.
20665 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20666 (VSDQ_SDI): Likewise.
20667 (fcvt_target): Support V4DI, V4SI and V2SI.
20668 (FCVT_TARGET): Likewise.
20669
20670 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20671
20672 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20673 (TYPES_BINOP_SUS): Likewise.
20674 (aarch64_simd_builtin_data): Update include file name.
20675 (aarch64_builtins): Likewise.
20676 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20677 for conversion between scalar float-point and fixed-point.
20678 (ucvtf): Likewise.
20679 (fcvtzs): Likewise.
20680 (fcvtzu): Likewise.
20681 * config/aarch64/aarch64.md
20682 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20683 pattern for conversion between scalar float to fixed-pointer.
20684 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20685 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20686 (UNSPEC_FCVTZU): Likewise.
20687 (UNSPEC_SCVTF): Likewise.
20688 (UNSPEC_UCVTF): Likewise.
20689 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20690 Use builtin.
20691 (vcvtd_n_f64_u64): Likewise.
20692 (vcvtd_n_s64_f64): Likewise.
20693 (vcvtd_n_u64_f64): Likewise.
20694 (vcvtd_n_f32_s32): Likewise.
20695 (vcvts_n_f32_u32): Likewise.
20696 (vcvtd_n_s32_f32): Likewise.
20697 (vcvts_n_u32_f32): Likewise.
20698 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20699 mapping.
20700 (FCVT_TARGET): Likewise.
20701 (FCVT_FIXED2F): New iterator.
20702 (FCVT_F2FIXED): Likewise.
20703 (fcvt_fixed_insn): New define_int_attr.
20704
20705 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20706
20707 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20708 some statements was removed.
20709
20710 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20711
20712 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20713 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20714 (vect_can_advance_ivs_p): likewise.
20715 (vect_update_ivs_after_vectorizer): likewise.
20716 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20717 (vect_analyze_scalar_cycles_1): likewise.
20718 (vect_analyze_loop_operations): likewise.
20719 (report_vect_op): likewise.
20720 (vect_is_slp_reduction): likewise.
20721 (vect_is_simple_reduction): likewise.
20722 (get_initial_def_for_induction): likewise.
20723 (vect_transform_loop): likewise.
20724 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20725 (vect_recog_sad_pattern): likewise.
20726 (vect_recog_widen_sum_pattern): likewise.
20727 (vect_recog_widening_pattern): likewise.
20728 (vect_recog_divmod_pattern): likewise.
20729 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20730 (vect_analyze_slp_instance): likewise.
20731 (vect_transform_slp_perm_load): likewise.
20732 (vect_schedule_slp_instance): likewise.
20733
20734 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20735
20736 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20737 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20738 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20739 (PRED_LOOP_BRANCH): Document predictor as broken.
20740 (PRED_LOOP_EXIT): Change hitrate 91->92.
20741 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20742 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20743 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20744 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20745 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20746 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20747 (PRED_CALL): Chane hitrate 71->67.
20748 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20749 (PRED_GOTO): Document as unused right now.
20750 (PRED_CONST_RETURN): Change hitrate 67->69
20751 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20752 (PRED_NULL_RETURN): Change hitrate 91->90.
20753 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20754 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20755 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20756
20757 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20758
20759 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20760 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20761 special case Altivec builtin.
20762 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20763 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20764 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20765 code for ALTIVEC_BUILTIN_VEC_MUL.
20766 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20767 for __builtin_vec_mul.
20768
20769 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20770
20771 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20772 -mno-htm.
20773
20774 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20775
20776 * spellcheck.c (selftest::test_find_closest_string): New function.
20777 (spellcheck_c_tests): Call the above.
20778
20779 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20780
20781 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20782
20783 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20784
20785 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20786 Yv=Yv,C alternatives.
20787
20788 2016-06-07 Richard Biener <rguenther@suse.de>
20789
20790 PR c/61564
20791 * common.opt (ffast-math): Make Optimization.
20792
20793 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
20794 Prachi Godbole <prachi.godbole@imgtec.com>
20795
20796 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
20797 `fabs' and `fneg' type attributes.
20798 (p5600_fpu_fabs): Add `fmove' to the comment.
20799
20800 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20801
20802 * gimple.c: Include builtins.h
20803 (gimple_inexpensive_call_p): New function.
20804 * gimple.h (gimple_inexpensive_call_p): Declare.
20805 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
20806 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
20807 fix formatting.
20808
20809 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
20810
20811 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
20812 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
20813 warning_at_rich_loc, warning_n, pedwarn, permerror,
20814 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
20815 sorry, fatal_error, internal_error, internal_error_no_backtrace):
20816 Use the above.
20817
20818 2016-06-07 Richard Biener <rguenther@suse.de>
20819
20820 PR tree-optimization/71428
20821 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
20822 BIT_FIELD_REF op vs. load.
20823
20824 2016-06-07 Richard Biener <rguenther@suse.de>
20825
20826 PR middle-end/71423
20827 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
20828 for signed ops.
20829
20830 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20831
20832 * config/pa/pa.md (call): Generate indirect long calls to non-local
20833 functions on TARGET_64BIT.
20834 (call_value): Likewise.
20835
20836 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
20837
20838 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
20839 pattern and subsequent splitters.
20840 (call_val_reg_64bit_post_reload): Likewise.
20841
20842 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20843
20844 PR middle-end/71408
20845 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
20846 propagate_op_to_single_use.
20847
20848 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
20849
20850 PR middle-end/71281
20851 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
20852
20853 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
20854
20855 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
20856 (enum x86_dirflag_state): New enum.
20857 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
20858 (machine_function): Remove needs_cld.
20859 (ix86_current_function_needs_cld): Remove.
20860 * config/i386/i386.c (ix86_set_func_type): Set
20861 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
20862 (ix86_expand_prologue): Do not emit CLD here.
20863 (ix86_dirflag_mode_needed): New function.
20864 (ix86_dirflag_mode_entry): Ditto.
20865 (ix86_mode_needed): Handle X86_DIRFLAG entity.
20866 (ix86_mode_after): Ditto.
20867 (ix86_mode_entry): Ditto.
20868 (ix86_mode_exit): Ditto.
20869 (ix86_emit_mode_set): Ditto.
20870 * config/i386/i386.md (strmov_singleop): Set
20871 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
20872 Do not set ix86_current_function_needs_cld.
20873 (rep_mov): Ditto.
20874 (strset_singleop): Ditto.
20875 (rep_stos): Ditto.
20876 (cmpstrnqi_nz_1): Ditto.
20877 (cmpstrnqi_1): Ditto.
20878 (strlenqi_1): Ditto.
20879
20880 2016-06-06 Jakub Jelinek <jakub@redhat.com>
20881
20882 PR tree-optimization/71259
20883 * tree-vect-slp.c (vect_get_constant_vectors): For
20884 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
20885 one for constant op, and use COND_EXPR for non-constant.
20886
20887 2016-06-06 David Malcolm <dmalcolm@redhat.com>
20888
20889 * Makefile.in (OBJS): Add function-tests.o,
20890 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
20891 selftest-run-tests.o.
20892 (OBJS-libcommon): Add selftest.o.
20893 (OBJS-libcommon-target): Add selftest.o.
20894 (all.internal): Add "selftest".
20895 (all.cross): Likewise.
20896 (selftest): New phony target.
20897 (s-selftest): New target.
20898 (selftest-gdb): New phony target.
20899 (COLLECT2_OBJS): Add selftest.o.
20900 * bitmap.c: Include "selftest.h".
20901 (selftest::test_gc_alloc): New function.
20902 (selftest::test_set_range): New function.
20903 (selftest::test_clear_bit_in_middle): New function.
20904 (selftest::test_copying): New function.
20905 (selftest::test_bitmap_single_bit_set_p): New function.
20906 (selftest::bitmap_c_tests): New function.
20907 * common.opt (fself-test): New.
20908 * diagnostic-show-locus.c: Include "selftest.h".
20909 (make_range): New function.
20910 (test_range_contains_point_for_single_point): New function.
20911 (test_range_contains_point_for_single_line): New function.
20912 (test_range_contains_point_for_multiple_lines): New function.
20913 (assert_eq): New function.
20914 (test_get_line_width_without_trailing_whitespace): New function.
20915 (selftest::diagnostic_show_locus_c_tests): New function.
20916 * et-forest.c: Include "selftest.h".
20917 (selftest::test_single_node): New function.
20918 (selftest::test_simple_tree): New function.
20919 (selftest::test_disconnected_nodes): New function.
20920 (selftest::et_forest_c_tests): New function.
20921 * fold-const.c: Include "selftest.h".
20922 (selftest::assert_binop_folds_to_const): New function.
20923 (selftest::assert_binop_folds_to_nonlvalue): New function.
20924 (selftest::test_arithmetic_folding): New function.
20925 (selftest::fold_const_c_tests): New function.
20926 * function-tests.c: New file.
20927 * gimple.c: Include "selftest.h".
20928 Include "gimple-pretty-print.h".
20929 (selftest::verify_gimple_pp): New function.
20930 (selftest::test_assign_single): New function.
20931 (selftest::test_assign_binop): New function.
20932 (selftest::test_nop_stmt): New function.
20933 (selftest::test_return_stmt): New function.
20934 (selftest::test_return_without_value): New function.
20935 (selftest::gimple_c_tests): New function.
20936 * hash-map-tests.c: New file.
20937 * hash-set-tests.c: New file.
20938 * input.c: Include "selftest.h".
20939 (selftest::assert_loceq): New function.
20940 (selftest::test_accessing_ordinary_linemaps): New function.
20941 (selftest::test_unknown_location): New function.
20942 (selftest::test_builtins): New function.
20943 (selftest::test_reading_source_line): New function.
20944 (selftest::input_c_tests): New function.
20945 * rtl-tests.c: New file.
20946 * selftest-run-tests.c: New file.
20947 * selftest.c: New file.
20948 * selftest.h: New file.
20949 * spellcheck.c: Include "selftest.h".
20950 (selftest::levenshtein_distance_unit_test_oneway): New function,
20951 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20952 (selftest::levenshtein_distance_unit_test): Likewise.
20953 (selftest::spellcheck_c_tests): Likewise.
20954 * toplev.c: Include selftest.h.
20955 (toplev::run_self_tests): New.
20956 (toplev::main): Handle -fself-test.
20957 * toplev.h (toplev::run_self_tests): New.
20958 * tree.c: Include "selftest.h".
20959 (selftest::test_integer_constants): New function.
20960 (selftest::test_identifiers): New function.
20961 (selftest::test_labels): New function.
20962 (selftest::tree_c_tests): New function.
20963 * tree-cfg.c: Include "selftest.h".
20964 (selftest::push_fndecl): New function.
20965 (selftest::test_linear_chain): New function.
20966 (selftest::test_diamond): New function.
20967 (selftest::test_fully_connected): New function.
20968 (selftest::tree_cfg_c_tests): New function.
20969 * vec.c: Include "selftest.h".
20970 (selftest::safe_push_range): New function.
20971 (selftest::test_quick_push): New function.
20972 (selftest::test_safe_push): New function.
20973 (selftest::test_truncate): New function.
20974 (selftest::test_safe_grow_cleared): New function.
20975 (selftest::test_pop): New function.
20976 (selftest::test_safe_insert): New function.
20977 (selftest::test_ordered_remove): New function.
20978 (selftest::test_unordered_remove): New function.
20979 (selftest::test_block_remove): New function.
20980 (selftest::reverse_cmp): New function.
20981 (selftest::test_qsort): New function.
20982 (selftest::vec_c_tests): New function.c.
20983 * wide-int.cc: Include selftest.h and wide-int-print.h.
20984 (selftest::from_int <wide_int>): New function.
20985 (selftest::from_int <offset_int>): New function.
20986 (selftest::from_int <widest_int>): New function.
20987 (selftest::assert_deceq): New function.
20988 (selftest::assert_hexeq): New function.
20989 (selftest::test_printing <VALUE_TYPE>): New function template.
20990 (selftest::test_ops <VALUE_TYPE>): New function template.
20991 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20992 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20993 template.
20994 (selftest::wide_int_cc_tests): New function.
20995
20996 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20997
20998 PR middle-end/37780
20999 * ifcvt.c (noce_try_ifelse_collapse): New function.
21000 Declare prototype.
21001 (noce_process_if_block): Call noce_try_ifelse_collapse.
21002 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21003 (simplify_ternary_operation): Use the above to simplify
21004 conditional CLZ/CTZ expressions.
21005
21006 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21007
21008 PR middle-end/37780
21009 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21010 define_insn_and_split.
21011
21012 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21013
21014 PR middle-end/37780
21015 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21016
21017 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21018
21019 PR c/24414
21020 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21021 Implicitly clobber memory for basic asm with non-empty assembler
21022 string. Use targetm.md_asm_adjust also here.
21023 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21024 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21025 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21026 non-empty assembler string.
21027 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21028 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21029 (decode_asm_operands): Handle basic asm in PARALLEL block.
21030 (extract_insn): Handle basic asm in PARALLEL block.
21031 * doc/extend.texi: Mention new behavior of basic asm.
21032 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21033 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21034 branch_needs_nop_p): Use asm_noperands.
21035
21036 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21037
21038 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21039 Include the M7 SPARC DFA scheduler.
21040 New attribute v3pipe.
21041 Annotate insns with v3pipe where appropriate.
21042 Define cpu_feature vis4.
21043 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21044 Add (V8QI "8") to vbits.
21045 Add insns {add,sub}v8qi3
21046 Add insns ss{add,sub}v8qi3
21047 Add insns us{add,sub}{v8qi,v4hi}3
21048 Add insns {min,max}{v8qi,v4hi,v2si}3
21049 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21050 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21051 * config/sparc/niagara4.md: Add a comment explaining the
21052 discrepancy between the documented latenty numbers and the
21053 implemented ones.
21054 * config/sparc/niagara7.md: New file.
21055 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21056 supports SPARC5 and VIS 4.0 instructions.
21057 * configure: Regenerate.
21058 * config.in: Likewise.
21059 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21060 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21061 TARGET_CPU_niagara7.
21062 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21063 (CPP_CPU_SPEC): Handle niagara7.
21064 (ASM_CPU_SPEC): Likewise.
21065 * config/sparc/sparc-opts.h (processor_type): Add
21066 PROCESSOR_NIAGARA7.
21067 (mvis4): New option.
21068 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21069 (AS_NIAGARA7_FLAG): Define.
21070 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21071 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21072 (CPP_CPU_SPEC): Handle niagara7.
21073 (ASM_CPU_SPEC): Likewise.
21074 * config/sparc/sparc.c (niagara7_costs): Define.
21075 (sparc_option_override): Handle niagara7 and adjust cache-related
21076 parameters with better values for niagara cpus. Also support VIS4.
21077 (sparc32_initialize_trampoline): Likewise.
21078 (sparc_use_sched_lookahead): Likewise.
21079 (sparc_issue_rate): Likewise.
21080 (sparc_register_move_cost): Likewise.
21081 (dump_target_flag_bits): Support VIS4.
21082 (sparc_vis_init_builtins): Likewise.
21083 (sparc_builtins): Likewise.
21084 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21085 VIS4 4.0.
21086 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21087 UltraSparc M7.
21088 * config/sparc/sparc.opt (sparc_processor_type): New value
21089 niagara7.
21090 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21091 VIS4 builtins.
21092 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21093 -mvis4.
21094 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21095 VIS4 builtins.
21096
21097 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21098
21099 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21100
21101 2016-06-06 Richard Biener <rguenther@suse.de>
21102
21103 PR tree-optimization/71398
21104 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21105 remove edges.
21106
21107 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21108
21109 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21110 ft32_expand_prolog, ft32_expand_epilogue):
21111 Handle pretend_args.
21112 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21113 * config/ft32/ft32.md: Add pretend_returner.
21114
21115 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21116
21117 PR target/71389
21118 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21119 Copy op1 RTX to avoid invalid sharing.
21120 (ix86_expand_vector_move_misalign): Ditto.
21121
21122 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21123
21124 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21125 ATTRIBUTE_UNUSED.
21126
21127 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21128
21129 * predict.c (predicted_by_loop_heuristics_p): New function.
21130 (predict_iv_comparison): Use it.
21131 (predict_loops): Walk from innermost loops; do not predict edges
21132 leaving multiple loops multiple times; implement
21133 PRED_LOOP_ITERATIONS_MAX heuristics.
21134 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21135
21136 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21137
21138 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21139 only edges out of BB are EH edges.
21140
21141 2016-06-04 Martin Sebor <msebor@redhat.com>
21142 Marcin Baczyński <marbacz@gmail.com>
21143
21144 PR c/48116
21145 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21146 a void expression in a void function.
21147
21148 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21149
21150 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21151 aux; dump reasons of decisions.
21152 (should_duplicate_loop_header_p): Likewise.
21153 (do_while_loop_p): Likewise.
21154 (ch_base::copy_headers): Dump asi num insns duplicated.
21155
21156 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21157
21158 PR tree-optimization/71405
21159 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21160 incompatible type, build a new clobber with the right type instead
21161 of building a VIEW_CONVERT_EXPR around it.
21162
21163 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21164
21165 PR tree-optimization/52171
21166 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21167 by_pieces_ninsns instead of move_by_pieces_ninsns.
21168
21169 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21170
21171 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21172 for reg+reg addressing mode.
21173
21174 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21175
21176 * rs6000-c.c (c/c-tree.h): Add #include.
21177 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21178 in C++ when found in the base position of vec_ld or vec_st.
21179
21180 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21181
21182 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21183 use of profile unless profile status is PROFILE_READ.
21184 * profile.c (compute_branch_probabilities): Set profile status
21185 only after reporting predictor hitrates.
21186
21187 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21188
21189 PR target/71276
21190 PR target/71277
21191 * common.opt (ffp-int-builtin-inexact): New option.
21192 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21193 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21194 (ceil@var{m}2): Document dependence on this option.
21195 * ipa-inline-transform.c (inline_call): Handle
21196 flag_fp_int_builtin_inexact.
21197 * ipa-inline.c (can_inline_edge_p): Likewise.
21198 * config/i386/i386.md (rintxf2): Do not test
21199 flag_unsafe_math_optimizations.
21200 (rint<mode>2_frndint): New define_insn.
21201 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21202 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21203 for 387 instead of extending and truncating.
21204 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21205 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21206 Change to frndint<mode>2_<rounding>.
21207 (frndintxf2_<rounding>_i387): Likewise. Change to
21208 frndint<mode>2_<rounding>_i387.
21209 (<rounding_insn>xf2): Likewise.
21210 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21211 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21212 x87. Test TARGET_ROUND || !flag_trapping_math ||
21213 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21214 SSE. Use ROUND_NO_EXC in constant operand of
21215 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21216 for 387 instead of extending and truncating.
21217
21218 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21219 Julia Koval <julia.koval@intel.com>
21220
21221 PR target/66960
21222 PR target/67630
21223 PR target/67634
21224 PR target/67841
21225 PR target/68037
21226 PR target/68618
21227 PR target/68661
21228 PR target/69575
21229 PR target/69596
21230 PR target/69734
21231 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21232 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21233 all registers, except for function return registers if there are
21234 no caller-saved registers.
21235 (ix86_set_func_type): New function.
21236 (ix86_set_current_function): Call ix86_set_func_type to set
21237 no_caller_saved_registers and func_type. Call reinit_regs if
21238 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21239 nor x87 instructions in interrupt handler nor function with
21240 no_caller_saved_registers attribute.
21241 (ix86_function_ok_for_sibcall): Return false if there are no
21242 caller-saved registers.
21243 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21244 handler.
21245 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21246 (ix86_function_arg): Return special arguments in interrupt handler.
21247 (ix86_promote_function_mode): Promote pointer to word_mode only
21248 for normal functions.
21249 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21250 interrupt handler.
21251 (ix86_epilogue_uses): New function.
21252 (ix86_hard_regno_scratch_ok): Likewise.
21253 (ix86_save_reg): Preserve all registers in interrupt handler
21254 after reload. Preserve all registers, except for function return
21255 registers, if there are no caller-saved registers after reload.
21256 (find_drap_reg): Always use callee-saved register if there are
21257 no caller-saved registers.
21258 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21259 for interrupt handler.
21260 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21261 Emit cld instruction if stringops are used in interrupt handler
21262 or interrupt handler isn't a leaf function.
21263 (ix86_expand_epilogue): Generate interrupt return for interrupt
21264 handler and pop the 'ERROR_CODE' off the stack before interrupt
21265 return in exception handler.
21266 (ix86_expand_call): Disallow calling interrupt handler directly.
21267 If there are no caller-saved registers, mark all registers that
21268 are clobbered by the call which returns as clobbered.
21269 (ix86_handle_no_caller_saved_registers_attribute): New function.
21270 (ix86_handle_interrupt_attribute): Likewise.
21271 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21272 attributes.
21273 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21274 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21275 accumulation in interrupt function if stack may be realigned to
21276 avoid DRAP.
21277 (EPILOGUE_USES): New.
21278 (function_type): New enum.
21279 (machine_function): Add func_type and no_caller_saved_registers.
21280 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21281 (interrupt_return): New pattern.
21282 * doc/extend.texi: Document x86 interrupt and
21283 no_caller_saved_registers attributes.
21284
21285 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21286
21287 PR tree-optimization/52171
21288 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21289 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21290 Look for constant strings. Move some code to emit_block_cmp_hints
21291 and use it.
21292 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21293 * defaults.h (COMPARE_MAX_PIECES): New macro.
21294 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21295 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21296 (clear_by_pieces_1): Don't declare. Move definition before use.
21297 (can_do_by_pieces): New static function.
21298 (can_move_by_pieces): Use it. Return bool.
21299 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21300 OP. All callers changed. Handle COMPARE_BY_PIECES.
21301 (class pieces_addr); New.
21302 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21303 pieces_addr::adjust, pieces_addr::increment_address,
21304 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21305 functions for it.
21306 (class op_by_pieces_d): New.
21307 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21308 functions for it.
21309 (class move_by_pieces_d, class compare_by_pieces_d,
21310 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21311 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21312 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21313 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21314 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21315 compare_by_pieces_d::finish_mode): New member functions.
21316 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21317 functions.
21318 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21319 (emit_block_cmp_hints): New function.
21320 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21321 use the newly defined classes.
21322 * expr.h (by_pieces_constfn): New typedef.
21323 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21324 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21325 (move_by_pieces_ninsns): Don't declare.
21326 (can_move_by_pieces): Change return value to bool.
21327 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21328 (compare_by_pieces_branch_ratio): New hook.
21329 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21330 (by_pieces_ninsns): Declare.
21331 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21332 COMPARE_BY_PIECES.
21333 (default_compare_by_pieces_branch_ratio): New function.
21334 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21335 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21336 * doc/tm.texi: Regenerate.
21337 * tree-ssa-strlen.c: Include "builtins.h".
21338 (handle_builtin_memcmp): New static function.
21339 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21340 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21341
21342 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21343
21344 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21345 relevant stmts which are simple and invariant.
21346 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21347 instead of simple and invariant
21348
21349 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21350
21351 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21352 (vectorizable_reduction): Check for new relevant state.
21353 (vectorizable_live_operation): vectorize live stmts using
21354 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21355 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21356 (vect_stmt_relevant_p): Check for stmts which are only used live.
21357 (process_use): Use of a stmt does not inherit it's live value.
21358 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21359 (vect_analyze_stmt): Check for new relevant state.
21360 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21361 outside the loop, but not inside it.
21362
21363 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21364
21365 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21366 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21367 (vect_get_vec_def_for_operand): Split out code.
21368
21369 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21370
21371 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21372
21373 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21374
21375 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21376
21377 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21378
21379 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21380
21381 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21382
21383 PR middle-end/71387
21384 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21385 to noreturn e->callee->decl that has void return type and void
21386 arguments, adjust gimple_call_fntype and remove lhs even if it had
21387 previously addressable type.
21388
21389 2016-06-02 Jeff Law <law@redhat.com>
21390
21391 PR tree-optimization/71328
21392 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21393 error when checking for a jump back onto the copied path.
21394
21395 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21396
21397 * config/microblaze/microblaze.c (get_branch_target): Add return
21398 NULL_RTX for the non-CALL_P case.
21399 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21400 (insert_wic): Remove unused local "j".
21401
21402 2016-06-02 Martin Liska <mliska@suse.cz>
21403
21404 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21405
21406 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21407 Julia Koval <julia.koval@intel.com>
21408
21409 * function.c (assign_parm_setup_stack): Force source into a
21410 register if needed.
21411 * target.def (function_incoming_arg): Update documentation to
21412 allow arbitrary address computation based on hard register.
21413 * doc/tm.texi: Regenerated.
21414
21415 2016-06-02 Martin Liska <mliska@suse.cz>
21416
21417 * predict.c (combine_predictions_for_bb): Fix first match in
21418 cases where a first predictor contains more than one occurence
21419 in list of predictors. Take the best value in such case.
21420
21421 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21422
21423 PR rtl-optimization/71295
21424 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21425 offset would go over the size of the inner mode reject it.
21426
21427 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21428
21429 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21430 x=x,x and v=v,m instead of x=x,m.
21431
21432 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21433 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21434 alternative to v=rm,C.
21435
21436 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21437 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21438 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21439 instead of vex for the last two above mentioned alternatives.
21440
21441 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21442
21443 PR target/70830
21444 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21445
21446 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21447
21448 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21449
21450 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21451
21452 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21453 from int to unsigned.
21454
21455 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21456
21457 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21458 alternatives, eliminating preferred register class. Add support
21459 for the MTVSRDD instruction in ISA 3.0.
21460 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21461 reg_or_indexed_operand.
21462 (vsx_splat_v4sf_internal): Likewise.
21463
21464 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21465
21466 PR target/71186
21467 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21468 for loading up all 0's or all 1's.
21469
21470 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21471
21472 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21473
21474 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21475
21476 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21477 extension.
21478 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21479 * gcc.c (set_source_date_epoch_envvar): New function, sets
21480 the SOURCE_DATE_EPOCH environment variable to the current time.
21481
21482 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21483
21484 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21485 the factor for live Phi nodes.
21486
21487 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21488
21489 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21490 * tree-parloops.c (parallelize_loops): likewise.
21491 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21492 tree_unswitch_outer_loop): likewise.
21493
21494 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21495
21496 PR middle-end/71371
21497 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21498 around creation of the temporary.
21499
21500 2016-06-01 Richard Biener <rguenther@suse.de>
21501
21502 PR tree-optimization/71366
21503 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21504 (unloop_loops): Move removing edges here ...
21505 (try_unroll_loop_completely): ... from here.
21506 (try_peel_loop): ... and here.
21507 (tree_unroll_loops_completely_1): Track parent loops via
21508 bitmap of header BBs.
21509 (tree_unroll_loops_completely): Adjust for that.
21510
21511 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21512
21513 * config/rs6000/altivec.h (vec_slv): New macro.
21514 (vec_srv): New macro.
21515 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21516 (UNSPEC_VSRV): New value.
21517 (vslv): New insn.
21518 (vsrv): New insn.
21519 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21520 (vsrv): New builtin definition.
21521 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21522 define argument types for new builtin.
21523 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21524 new builtin.
21525 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21526 functions.
21527
21528 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21529 Jocelyn Mayer <l_indien@magic.fr>
21530
21531 PR target/67310
21532 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21533 detect processor family for signature_CENTAUR_ebx.
21534 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21535 signature_CENTAUR_ebx.
21536 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21537 <default>: Pass x86-64 for has_longmode.
21538
21539 2016-06-01 Nathan Sidwell <nathan@acm.org>
21540
21541 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21542 undefined weak.
21543
21544 2016-06-01 Richard Biener <rguenther@suse.de>
21545
21546 PR tree-optimization/71261
21547 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21548 of stmts successfully put in the bool pattern. Remove
21549 single-use restriction.
21550 (adjust_bool_pattern_cast): Add cast at the use site via the
21551 pattern def sequence.
21552 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21553 of patterned defs. Use the pattern def seqence instead of
21554 multiple independent patterns.
21555 (sort_after_uid): New qsort compare function.
21556 (adjust_bool_stmts): New function to process stmts in the bool
21557 pattern in IL order.
21558 (vect_recog_bool_pattern): Adjust.
21559 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21560 (ifcvt_walk_pattern_tree): Likewise.
21561 (stmt_is_root_of_bool_pattern): Likewise.
21562 (ifcvt_repair_bool_pattern): Likewise.
21563 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21564
21565 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21566
21567 * loop-unroll.c (decide_unroll_constant_iterations,
21568 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21569 likely upper bounds.
21570 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21571
21572 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21573
21574 * tree-core.h (enum omp_clause_code): Remove
21575 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21576
21577 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21578
21579 * config/arm/sync.md (arm_store_exclusive<mode>):
21580 Use 'H' output modifier on operands[2] rather than creating a new
21581 entry in out-of-bounds memory of the operands array.
21582 (arm_store_release_exclusivedi): Likewise.
21583
21584 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21585
21586 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21587 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21588 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21589 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21590
21591 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21592
21593 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21594 into account live statements for mask producers.
21595
21596 2016-06-01 Richard Biener <rguenther@suse.de>
21597
21598 PR tree-optimization/71311
21599 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21600 restrict to non-INTEGER_CST @0.
21601
21602 2016-06-01 Richard Biener <rguenther@suse.de>
21603
21604 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21605 (relational patterns): Use :c to avoid pattern duplications.
21606
21607 2016-06-01 Richard Biener <rguenther@suse.de>
21608
21609 * genmatch.c (comparison_code_p): New predicate.
21610 (swap_tree_comparison): New function.
21611 (commutate): Add for_vec parameter to append new for entries.
21612 Support commutating relational operators by swapping it alongside
21613 operands.
21614 (lower_commutative): Adjust.
21615 (dt_simplify::gen): Do not pass artificial operators to gen
21616 functions.
21617 (decision_tree::gen): Do not add artificial operators as parameters.
21618 (parser::parse_expr): Verify operator commutativity when :c is
21619 applied. Allow :C to override this.
21620 * match.pd: Adjust patterns to use :C instead of :c where required.
21621
21622 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21623
21624 PR tree-optimization/71077
21625 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21626 the combining step, use boolean_false_node and boolean_true_node
21627 as the designated false/true return values.
21628
21629 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21630
21631 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21632 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21633 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21634 PRED_LOOP_EXIT.
21635
21636 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21637
21638 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21639 of flags impliying the register renaming.
21640 * toplev.c (process_options): Do not imply flag_rename_registers with
21641 loop peeling.
21642
21643 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21644
21645 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21646 default implementation.
21647
21648 2016-05-31 Nathan Sidwell <nathan@acm.org>
21649
21650 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21651
21652 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21653
21654 * config/sh/constraints.md (b): Remove constraint.
21655 * config/sh/predicates.md (arith_reg_operand): Remove
21656 TARGET_REGISTER_P.
21657 * config/sh/sh-modes.def (PDI): Remove.
21658 * config/sh/sh.c (sh_target_reg_class,
21659 sh_optimize_target_register_callee_saved): Remove functions.
21660 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21661 (sh_expand_epilogue): Update comment.
21662 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21663 sh_secondary_reload): Remove TARGET_REGS related code.
21664 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21665 TARGET_REGISTER_P): Remove macros.
21666 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21667 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21668 TR1_REG, TR2_REG): Remove constants.
21669 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21670
21671 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21672
21673 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21674 define_expand patterns.
21675 (adddi3_compact): Rename to adddi3.
21676 (subdi3_compact): Rename to subdi3.
21677 (*negdi2): Rename to negdi2.
21678 (*abs<mode>2): Rename to abs<mode>2.
21679
21680 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21681
21682 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21683 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21684 (atomic_sub_fetchsi): ... this new pattern.
21685 (mvtc): Add CC_REG clobber.
21686
21687 2016-05-31 Marek Polacek <polacek@redhat.com>
21688
21689 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21690
21691 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21692
21693 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21694 aarch64_fusion_enabled_p to check for fusion capabilities.
21695
21696 2016-05-31 Richard Biener <rguenther@suse.de>
21697
21698 PR tree-optimization/71352
21699 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21700 minus one and a negate.
21701
21702 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21703
21704 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21705 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21706 Delete prototype.
21707 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21708 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21709 Remove use of aarch64_simd_attr_length_move, set length attribute
21710 directly.
21711 (*aarch64_be_movoi): Likewise.
21712 (*aarch64_be_movci): Likewise.
21713 (*aarch64_be_movxi): Likewise.
21714
21715 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21716
21717 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21718 It no longer does that.
21719 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21720
21721 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21722
21723 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21724 attribute __unused__.
21725
21726 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21727
21728 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21729 * config/arm/arm.c (arm_arch_thumb1): Define.
21730 (arm_option_override): Initialize arm_arch_thumb1.
21731 * config/arm/arm.h (arm_arch_thumb1): Declare.
21732 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21733 support Thumb-1 ISA.
21734
21735 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21736
21737 PR target/71346
21738 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21739 `Yv' for scalar operand.
21740
21741 2016-05-31 Tom de Vries <tom@codesourcery.com>
21742
21743 PR tree-optimization/69068
21744 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21745 phis with more than two args.
21746
21747 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21748
21749 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21750 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21751 target.
21752
21753 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21754
21755 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21756 tune_64.
21757 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21758 support on SPARC.
21759 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21760 cpu_32, cpu_64, tune_32 and tune_64.
21761 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21762
21763 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21764
21765 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21766
21767 2016-05-30 Andi Kleen <ak@linux.intel.com>
21768
21769 * auto-profile.c (read_profile): Replace asserts with errors
21770 when file does not exist.
21771 * gcov-io.c (gcov_read_words): Dito.
21772
21773 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21774
21775 * tree-cfg.c (print_loop): Print likely upper bounds.
21776
21777 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21778
21779 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21780 * opts.c (default_options): Enable peel loops at -O3.
21781 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21782 (try_peel_loop): Do not re-peel already peeled loops;
21783 use likely upper bounds; fix profile updating.
21784 (pass_complete_unroll::execute): Initialize peeled_loops.
21785
21786 2016-05-30 Martin Liska <mliska@suse.cz>
21787
21788 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21789 computed costs by frequency of BB they belong to.
21790 (get_scaled_computation_cost_at): New function.
21791
21792 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
21793 Marc Glisse <marc.glisse@inria.fr>
21794
21795 PR tree-optimization/71289
21796 * match.pd (-1 / B < A, A > -1 / B): New transformations.
21797
21798 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21799
21800 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
21801
21802 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21803
21804 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
21805 for peeled copies; avoid underflow when updating estimates; correctly
21806 scale loop profile.
21807
21808 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21809
21810 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
21811 r236875. Corrected oe3 to oe2 as obvious.
21812
21813 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21814
21815 PR middle-end/71269
21816 PR middle-end/71252
21817 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
21818 that inserted stmt will not dominate stmts that defines its operand.
21819 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
21820 (rewrite_expr_tree_parallel): Likewise.
21821
21822 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
21823
21824 PR middle-end/71252
21825 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
21826 all fields including stmt_to_insert are swapped.
21827
21828 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21829
21830 * predict.h (force_edge_cold): Declare.
21831 * predict.c (force_edge_cold): New function.
21832 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
21833 updating.
21834 (canonicalize_loop_induction_variables): Fix formating.
21835
21836 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
21837
21838 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
21839 (visium_expand_copysign): Use gen_int_mode directly.
21840 (visium_compute_frame_size): Minor tweaks.
21841
21842 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21843
21844 * tree-vect-loop.c (vect_analyze_loop_2): Use
21845 likely_max_stmt_executions_int.
21846
21847 2016-05-30 Tom de Vries <tom@codesourcery.com>
21848
21849 PR tree-optimization/69067
21850 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
21851
21852 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
21853
21854 PR target/71245
21855 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
21856 New peepholes to remove unneeded fild/fistp pairs.
21857 (define_peephole2 atomic_loaddi_fpu): Ditto.
21858
21859 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21860
21861 * predict.c (maybe_hot_frequency_p): Avoid division.
21862
21863 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
21864
21865 * doc/install.texi: Use https for shop.fsf.org.
21866
21867 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21868
21869 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
21870 likely_max_stmt_executions_int.
21871
21872 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21873
21874 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
21875 likely_max_stmt_executions_int.
21876
21877 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21878
21879 * profile.c (compute_branch_probabilities): Do not report hitrates
21880 here.
21881 (branch_prob): Report hitrates here.
21882 * predict.c (gimple_predict_edge): Do not assert profile status;
21883 fix formatting issues.
21884
21885 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21886
21887 * predict.c (edge_predicted_by_p): New function.
21888 (predict_paths_for_bb): Do not put multiple predictions of the same type
21889 on one edge.
21890
21891 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21892
21893 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
21894 commit.
21895
21896 2016-05-28 Alan Modra <amodra@gmail.com>
21897
21898 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
21899
21900 2016-05-28 Alan Modra <amodra@gmail.com>
21901
21902 PR rtl-optimization/71275
21903 * ira.c (ira): Free dominance info.
21904
21905 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
21906
21907 * doc/sourcebuild.texi: New address for upstream Go repository.
21908
21909 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
21910
21911 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
21912 (TARGET_ARM_V7M): Likewise.
21913
21914 2016-05-26 Jeff Law <law@redhat.com>
21915
21916 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
21917 (thread_across_edge): Remove calls to find_jump_threads_backwards.
21918 * passes.def: Add jump threading passes before DOM/VRP.
21919 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
21920 argument to a basic block from an edge. Remove tests which are
21921 handled elsewhere.
21922 (pass_data_thread_jumps, class pass_thread_jumps): New.
21923 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
21924 (make_pass_thread_jumps): Likewise.
21925 * tree-pass.h (make_pass_thread_jumps): Declare.
21926
21927 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
21928
21929 * config/visium/visium-protos.h (split_double_move): Rename into...
21930 (visium_split_double_move): ...this.
21931 (visium_split_double_add): Declare.
21932 * config/visium/visium.c (split_double_move): Rename into...
21933 (visium_split_double_move): ...this.
21934 (visium_split_double_add): New function.
21935 (visium_expand_copysign): Renumber operands for consistency.
21936 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
21937 (DFmode move splitter): Likewise.
21938 (*addi3_insn): Split by means of visium_split_double_add.
21939 (*adddi3_insn_flags): Delete.
21940 (*plus_plus_sltu<subst_arith>): New insn.
21941 (*subdi3_insn): Split by means of visium_split_double_add.
21942 (subdi3_insn_flags): Delete.
21943 (*minus_minus_sltu<subst_arith>): New insn.
21944 (*negdi2_insn): Split by means of visium_split_double_add.
21945 (*negdi2_insn_flags): Delete.
21946
21947 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
21948
21949 * configure.ac: Treat a --with-headers option without argument
21950 the same as the default (i.e. consult sys-include directory).
21951 * configure: Regenerate.
21952
21953 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21954
21955 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21956 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21957 prototype.
21958 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21959 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21960
21961 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21962
21963 PR target/63596
21964 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21965 tree-stdarg analysis results.
21966 (aarch64_setup_incoming_varargs): Likewise.
21967
21968 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21969
21970 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21971 va_list_gpr_counter_field and va_list_fpr_counter_field.
21972
21973 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21974
21975 PR67609
21976 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21977 * config/aarch64/aarch64.c
21978 (aarch64_cannot_change_mode_class): Remove function.
21979 * config/aarch64/aarch64-protos.h
21980 (aarch64_cannot_change_mode_class): Remove.
21981
21982 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21983
21984 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21985 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21986 get_likely_max_loop_iterations_int): New.
21987 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21988 any_likely_upper_bound.
21989 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21990 Declare.
21991 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21992 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21993 upper bound.
21994 (unroll_loop_constant_iterations): Likewise.
21995 (unroll_loop_runtime_iterations): Likewise.
21996 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21997 * lto-streamer-out.c (output_cfg): Likewise.
21998 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21999 bounds.
22000 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22001 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22002 (likely_max_loop_iterations): New.
22003 (likely_max_loop_iterations_int): New.
22004 (likely_max_stmt_executions): New.
22005 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22006 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22007 likely_max_stmt_executions): Declare.
22008
22009 2016-05-27 Marek Polacek <polacek@redhat.com>
22010
22011 PR middle-end/71308
22012 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22013
22014 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22015
22016 * config/s390/s390.md (2x risbg splitters): Use
22017 reg_overlap_mentioned_p instead of rtx_equal_p.
22018
22019 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22020
22021 * combine.c (make_compound_operation): Take known zero bits into
22022 account when checking for possible zero_extend.
22023
22024 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22025
22026 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22027 Use const_int_operand for operand 2 predicate. Simplify expand code
22028 as a result.
22029
22030 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22031
22032 PR middle-end/71279
22033 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22034 into comparison.
22035
22036 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22037
22038 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22039 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22040 that returns CC_SESWPmode and CC_ZESWPmode.
22041 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22042 and CC_SESWPmode.
22043 (aarch64_rtx_costs): Likewise.
22044
22045 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22046
22047 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22048 for ISA 3.0 min/max support.
22049 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22050 conditional move support.
22051 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22052 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22053 available.
22054 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22055 conditional moves where the comparison type is different from move
22056 type.
22057 (fp_minmax): New code iterator for smin/smax.
22058 (minmax): New code attributes for min/max.
22059 (SMINMAX): Likewise.
22060 (smax<mode>3): Combine min, max insns into one insn using the
22061 fp_minmax code iterator. Add support for ISA 3.0 min/max
22062 instructions that don't need -ffast-math.
22063 (s<minmax><mode>3): Likewise.
22064 (smax<mode>3_vsx): Likewise.
22065 (smin<mode>3): Likewise.
22066 (s<minmax><mode>3_vsx): Likewise.
22067 (smin<mode>3_vsx): Likewise.
22068 (pre-VSX min/max splitters): Likewise.
22069 (s<minmax><mode>3_fpr): Likewise.
22070 (movsfcc): Rewrite floating point conditional moves to combine
22071 SFmode/DFmode into a single insn.
22072 (mov<mode>cc): Likewise.
22073 (movdfcc): Likewise.
22074 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22075 SFDF2 iterators to handle all combinations.
22076 (fseldfsf4): Likewise.
22077 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22078 (fseldfdf4): Likewise.
22079 (fselsfdf4): Likewise.
22080 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22081 comparison instructions that set a 0/-1 mask, and use it for
22082 floating point conditional move via XXSEL.
22083 (fpmask<mode>): Likewise.
22084 (xxsel<mode>): Likewise.
22085 * config/rs6000/predicates.md (min_max_operator): Delete, no
22086 longer used.
22087 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22088 instructions that generate a 0/-1 mask for use with XXSEL.
22089 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22090 say whether floating point min/max is available, either through
22091 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22092 (TARGET_MINMAX_DF): Likewise.
22093
22094 2016-05-27 Alan Modra <amodra@gmail.com>
22095
22096 PR rtl-optimization/71275
22097 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22098 for update_equiv_regs and combine_and_move_insns.
22099
22100 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22101
22102 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22103 if_then_else or cond RTXes to calculate attribute value.
22104 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22105 <attr "length_immediate>: Ditto.
22106 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22107 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22108 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22109 <attr "type">: Ditto.
22110 <attr "prefix_data16">: Ditto.
22111 <attr "prefix_extra">: Ditto.
22112 <attr "length_immediate">: Ditto.
22113 <attr "prefix">: Ditto.
22114 (vec_set<mode>_0) <attr "isa">: Ditto.
22115 <attr "prefix_extra">: Ditto.
22116 <attr "length_immediate">: Ditto.
22117 <attr "prefix">: Ditto.
22118 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22119 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22120 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22121 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22122 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22123 <attr "length_immediate">: Ditto.
22124 <attr "prefix">: Ditto.
22125 (sse2_movsd) <attr "length_immediate">: Ditto.
22126 <attr "prefix">: Ditto.
22127 (vec_concatv2df) <attr "isa">: Ditto.
22128 <attr "prefix">: Ditto.
22129 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22130 (*vec_extractv2di_1) <attr "isa">: Ditto.
22131 <attr "type">: Ditto.
22132 <attr "length_immediate">: Ditto.
22133 <attr "prefix_rex">: Ditto.
22134 <attr "prefix_extra">: Ditto.
22135 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22136 <attr "prefix_extra">: Ditto.
22137 <attr "length_immediate">: Ditto.
22138 (vec_concatv2di) <attr "isa">: Ditto.
22139 <attr "prefix_extra">: Ditto.
22140 <attr "length_immediate">: Ditto.
22141 <attr "prefix">: Ditto.
22142
22143 2016-05-26 Martin Liska <mliska@suse.cz>
22144
22145 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22146 function.
22147 (operator+): Likewise.
22148 (operator-): Likewise.
22149 (comp_cost::operator+=): Likewise.
22150 (comp_cost::operator-=): Likewise.
22151 (comp_cost::operator/=): Likewise.
22152 (comp_cost::operator*=): Likewise.
22153 (operator<): Likewise.
22154 (operator==): Likewise.
22155 (operator<=): Likewise.
22156 (new_cost): Remove.
22157 (infinite_cost_p): Likewise.
22158 (add_costs): Likewise.
22159 (sub_costs): Likewise.
22160 (compare_costs): Likewise.
22161 (set_group_iv_cost): Use the newly introduced functions.
22162 (get_address_cost): Likewise.
22163 (get_shiftadd_cost): Likewise.
22164 (force_expr_to_var_cost): Likewise.
22165 (split_address_cost): Likewise.
22166 (ptr_difference_cost): Likewise.
22167 (difference_cost): Likewise.
22168 (get_computation_cost_at): Likewise.
22169 (determine_group_iv_cost_generic): Likewise.
22170 (determine_group_iv_cost_address): Likewise.
22171 (determine_group_iv_cost_cond): Likewise.
22172 (autoinc_possible_for_pair): Likewise.
22173 (determine_group_iv_costs): Likewise.
22174 (cheaper_cost_pair): Likewise.
22175 (iv_ca_recount_cost): Likewise.
22176 (iv_ca_set_no_cp): Likewise.
22177 (iv_ca_set_cp): Likewise.
22178 (iv_ca_cost): Likewise.
22179 (iv_ca_new): Likewise.
22180 (iv_ca_dump): Likewise.
22181 (iv_ca_narrow): Likewise.
22182 (iv_ca_prune): Likewise.
22183 (iv_ca_replace): Likewise.
22184 (try_add_cand_for): Likewise.
22185 (try_improve_iv_set): Likewise.
22186 (find_optimal_iv_set): Likewise.
22187
22188 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22189
22190 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22191 that internal functions will clobber all caller-saved registers.
22192
22193 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22194
22195 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22196 Return a better case_values_threshold when optimizing.
22197
22198 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22199
22200 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22201 Add ? to integer variant.
22202 (aarch64_combinez_be): Likewise.
22203
22204 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22205
22206 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22207 instead of x constraint.
22208 (vcvtps2ph256<mask_name>): Likewise.
22209
22210 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22211 alternative. Formatting fix.
22212
22213 * config/i386/sse.md
22214 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22215 to ...
22216 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22217 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22218 maybe_evex prefix instead of vex.
22219 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22220 EXT_REX_SSE_REG_P (op0) case in the splitter.
22221
22222 2016-05-25 Jeff Law <law@redhat.com>
22223
22224 PR tree-optimization/71272
22225 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22226 Update comments. Add test for empty path.
22227
22228 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22229
22230 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22231 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22232 special case builtin.
22233 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22234 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22235 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22236 for __builtin_vec_cmpne.
22237
22238 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22239
22240 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22241 redundant test and bail out if the type of the new operand is not
22242 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22243
22244 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22245
22246 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22247 (x_ix86_target_flags_explicit): Remove.
22248 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22249 x_ix86_target_flags_explicit.
22250 (ix86_function_specific_restore): Ditto.
22251
22252 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22253 H.J. Lu <hongjiu.lu@intel.com>
22254
22255 PR target/70738
22256 * common/config/i386/i386-common.c
22257 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22258 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22259 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22260 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22261 (-mgeneral-regs-only): Add new option.
22262 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22263 x87 instructions if only general registers are allowed.
22264 (ix86_target_string): Add ix86_flags argument. Handle additional
22265 flags options through ix86_flags argument. Update all callers.
22266 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22267
22268 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22269
22270 PR rtl-optimization/66940
22271 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22272 decrementing desired_val will not overflow before performing these
22273 operations.
22274
22275 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22276
22277 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22278 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22279 * config/i386/i386.c (enum ix86_builtins): Add
22280 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22281 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22282 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22283 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22284 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22285 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22286 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22287 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22288 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22289 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22290 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22291 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22292 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22293 __builtin_ia32_cvtps2dq512_mask.
22294 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22295 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22296 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22297 * config/i386/sse.md
22298 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22299 Rename to ...
22300 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22301 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22302 to ...
22303 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22304 (avx512f_vec_pack_sfix_v8df): New define_expand.
22305 (avx512f_roundpd512): Rename to ...
22306 (avx512f_round<castmode>512): ... this. Change iterator.
22307 (avx512f_roundps512_sfix): New define_expand.
22308 (round<mode>2_sfix): Change iterator.
22309
22310 2016-05-25 Nick Clifton <nickc@redhat.com>
22311
22312 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22313 static interrupt handler is detected.
22314 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22315 default linker script.
22316 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22317 the low part of a symbolic pointer.
22318
22319 2016-05-25 Richard Biener <rguenther@suse.de>
22320
22321 PR tree-optimization/71261
22322 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22323 interesting stmt instead of immediate uses when looking
22324 for the use operand to replace.
22325
22326 2016-05-25 Martin Liska <mliska@suse.cz>
22327
22328 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22329
22330 2016-05-25 Richard Biener <rguenther@suse.de>
22331
22332 PR tree-optimization/71264
22333 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22334 vector type val.
22335
22336 2016-05-25 Martin Liska <mliska@suse.cz>
22337
22338 PR tree-optimization/71239
22339 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22340 if DECL_SIZE is NULL.
22341
22342 2016-05-25 Richard Biener <rguenther@suse.de>
22343
22344 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22345 * tree-if-conv.c (pass_data_if_conversion): Use it.
22346
22347 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22348
22349 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22350 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22351 * varpool.c (varpool_node::get_availability): Likewise.
22352
22353 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22354
22355 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22356 VNEGW/VNEGD instructions.
22357 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22358 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22359 support for ISA 3.0 VNEGW/VNEGD instructions.
22360
22361 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22362
22363 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22364 pointers inside OACC_DATA regions.
22365 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22366 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22367 (gimplify_adjust_omp_clauses): Fix typo in comment.
22368
22369 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22370
22371 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22372 parity built-in functions.
22373 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22374 zeros.
22375 (p9v_parity<mode>2): Likewise.
22376 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22377 parity.
22378 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22379 (parity<mode>2): ISA 3.0 expander for vector parity.
22380 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22381 power9 built-ins.
22382 (BU_P9_64BIT_MISC_0): Likewise.
22383 (BU_P9_MISC_0): Likewise.
22384 (BU_P9V_AV_1): Likewise.
22385 (BU_P9V_AV_2): Likewise.
22386 (BU_P9V_AV_3): Likewise.
22387 (BU_P9V_AV_P): Likewise.
22388 (BU_P9V_VSX_1): Likewise.
22389 (BU_P9V_OVERLOAD_1): Likewise.
22390 (BU_P9V_OVERLOAD_2): Likewise.
22391 (BU_P9V_OVERLOAD_3): Likewise.
22392 (VCTZB): Add vector count trailing zeros support.
22393 (VCTZH): Likewise.
22394 (VCTZW): Likewise.
22395 (VCTZD): Likewise.
22396 (VPRTYBD): Add vector parity support.
22397 (VPRTYBQ): Likewise.
22398 (VPRTYBW): Likewise.
22399 (VCTZ): Add overloaded vector count trailing zeros support.
22400 (VPRTYB): Add overloaded vector parity support.
22401 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22402 overloaded vector count trailing zeros and parity instructions.
22403 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22404 vector parity support.
22405 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22406 trailing zeros support.
22407 (vec_cntlz): Likewise.
22408 (vec_vctzb): Likewise.
22409 (vec_vctzd): Likewise.
22410 (vec_vctzh): Likewise.
22411 (vec_vctzw): Likewise.
22412 (vec_vprtyb): Add ISA 3.0 vector parity support.
22413 (vec_vprtybd): Likewise.
22414 (vec_vprtybw): Likewise.
22415 (vec_vprtybq): Likewise.
22416 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22417 the ISA 3.0 vector count trailing zeros and vector parity built-in
22418 functions.
22419
22420 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22421
22422 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22423 when there is stmt_to_insert.
22424
22425 2016-05-24 Martin Sebor <msebor@redhat.com>
22426
22427 PR c++/71147
22428 * tree.h (complete_or_array_type_p): New inline function.
22429
22430 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22431
22432 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22433 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22434 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22435
22436 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22437 Limit 1st alternative to noavx isa, split 2nd alternative into one
22438 noavx and one avx alternative, use *x and Bm in the former and
22439 x and m in the latter.
22440
22441 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22442 of sse4 for the first alternative, drop %v from the template
22443 and d operand modifier. Split second alternative into one sse4_noavx
22444 and one avx alternative, use *x instead of *v in the former and v
22445 instead of *v in the latter.
22446 (*sse4_1_extractps): Use noavx isa instead of * for the first
22447 alternative, drop %v from the template. Split second alternative into
22448 one noavx and one avx alternative, use *x instead of *v in the
22449 former and v instead of *v in the latter.
22450 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22451 with noavx and the last one with avx.
22452 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22453 split the second one into one noavx and one avx alternative,
22454 use *x and Bm in the former and x and m in the latter one.
22455 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22456 alternatives.
22457
22458 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22459 first two alternatives to noavx, use *x instead of *v in the second
22460 one, add avx alternative without *.
22461 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22462 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22463 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22464
22465 2016-05-24 Jeff Law <law@redhat.com>
22466
22467 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22468 New function, extracted from...
22469 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22470 Allow simple copies and constant initializations in the SSA chain.
22471
22472 2016-05-24 Marek Polacek <polacek@redhat.com>
22473
22474 PR c/71249
22475 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22476 scope.
22477
22478 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22479
22480 PR c++/71257
22481 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22482 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22483 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22484 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22485 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22486
22487 2016-05-24 Richard Biener <rguenther@suse.de>
22488
22489 PR tree-optimization/71240
22490 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22491 has integral type.
22492
22493 2016-05-24 Richard Biener <rguenther@suse.de>
22494
22495 PR tree-optimization/71230
22496 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22497
22498 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22499
22500 * tree-vectorizer.h (vectorizable_comparison): Delete.
22501 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22502 PURE_SLP_STMT check.
22503 * tree-vect-stmts.c (vectorizable_call): Likewise.
22504 (vectorizable_simd_clone_call): Likewise.
22505 (vectorizable_conversion): Likewise.
22506 (vectorizable_assignment): Likewise.
22507 (vectorizable_shift): Likewise.
22508 (vectorizable_operation): Likewise.
22509 (vectorizable_load): Likewise.
22510 (vectorizable_condition): Likewise.
22511 (vectorizable_store): Likewise. Assert that we don't have
22512 hybrid SLP.
22513 (vectorizable_comparison): Make static. Remove redundant
22514 PURE_SLP_STMT check.
22515 (vect_transform_stmt): Assert that we always have an slp_node
22516 if PURE_SLP_STMT.
22517
22518 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22519
22520 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22521 operands[2] against 1 with comparison against CONST1_RTX.
22522 (<shift>di3_neon): Likewise.
22523 * config/arm/predicates.md (const0_operand): Replace with comparison
22524 against CONST0_RTX.
22525
22526 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22527
22528 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22529 operands[2] against 1 with comparison against CONST1_RTX.
22530 (ashrdi3): Likewise.
22531 (lshrdi3): Likewise.
22532 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22533 UINTVAL.
22534 (ashrsi3): Likewise.
22535 (lshrsi3): Likewise.
22536 (rotrsi3): Likewise.
22537 (define_split above *compareqi_eq0): Likewise.
22538 (define_split above "prologue"): Likewise.
22539 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22540 * config/arm/predicates.md (shift_operator): Likewise.
22541 (shift_nomul_operator): Likewise.
22542 (sat_shift_operator): Likewise.
22543 (thumb1_cmp_operand): Likewise.
22544 (const_neon_scalar_shift_amount_operand): Replace manual range
22545 check with IN_RANGE.
22546 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22547 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22548
22549 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22550
22551 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22552 with HOST_WIDE_INT_1.
22553 (insv): Likewise.
22554 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22555 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22556 (arm_canonicalize_comparison): Likewise.
22557 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22558 HOST_WIDE_INT_1.
22559 (thumb1_size_rtx_costs): Likewise.
22560 (vfp_const_double_index): Replace cast of 1 to unsigned
22561 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22562 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22563 HOST_WIDE_INT_1.
22564 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22565 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22566 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22567 HOST_WIDE_INT with HOST_WIDE_INT_1.
22568
22569 2016-05-24 Marek Polacek <polacek@redhat.com>
22570
22571 * tree-cfg.h (should_remove_lhs_p): New predicate.
22572 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22573 * gimplify.c (gimplify_modify_expr): Likewise.
22574 * tree-cfg.c (verify_gimple_call): Likewise.
22575 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22576 * gimple-fold.c: Include "tree-cfg.h".
22577 (gimple_fold_call): Use should_remove_lhs_p.
22578
22579 2016-05-24 Richard Biener <rguenther@suse.de>
22580
22581 PR tree-optimization/71253
22582 * cfganal.h (control_dependences): Make robust against edge
22583 and BB removal.
22584 (control_dependences::control_dependences): Remove edge_list argument.
22585 (control_dependences::get_edge): Remove.
22586 (control_dependences::get_edge_src): Add.
22587 (control_dependences::get_edge_dest): Likewise.
22588 (control_dependences::m_el): Make a vector of edge src/dest index.
22589 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22590 (control_dependences::control_dependences): Likewise.
22591 (control_dependences::~control_dependence): Likewise.
22592 (control_dependences::get_edge): Remove.
22593 (control_dependences::get_edge_src): Add.
22594 (control_dependences::get_edge_dest): Likewise.
22595 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22596 get_edge_src.
22597 (perform_tree_ssa_dce): Adjust.
22598 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22599 get_edge_src.
22600 (pass_loop_distribution::execute): Adjust. Do loop destroying
22601 conditional on changed.
22602
22603 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22604
22605 PR target/69857
22606 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22607 return. Reindent transformation comment and mention the ARM state
22608 behavior.
22609
22610 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22611
22612 PR middle-end/71252
22613 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22614 after build_and_add_sum creates new use stmt.
22615
22616 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22617
22618 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22619 load_lanes/grouped_load classification comes first. Don't check
22620 whether the vectorization factor is a multiple of the group size
22621 for load_lanes.
22622
22623 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22624
22625 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22626 GROUP_GAP for single-element interleaving.
22627 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22628 variable.
22629
22630 2016-05-24 Richard Biener <rguenther@suse.de>
22631
22632 PR middle-end/70434
22633 PR c/69504
22634 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22635 bases which are accessed with non-invariant indices.
22636 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22637 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22638
22639 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22640
22641 PR middle-end/71170
22642 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22643 (add_to_ops_vec): Add stmt_to_insert.
22644 (add_repeat_to_ops_vec): Init stmt_to_insert.
22645 (insert_stmt_before_use): New.
22646 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22647 to ops vector.
22648 (get_ops): Init stmt_to_insert.
22649 (maybe_optimize_range_tests): Likewise.
22650 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22651 (rewrite_expr_tree_parallel): Likewise.
22652 (reassociate_bb): Likewise.
22653
22654 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22655
22656 PR target/71201
22657 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22658 ISA 3.0 xxperm fusion alternative.
22659 (altivec_vperm_v8hiv16qi): Likewise.
22660 (altivec_vperm_<mode>_uns_internal): Likewise.
22661 (vperm_v8hiv4si): Likewise.
22662 (vperm_v16qiv8hi): Likewise.
22663
22664 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22665 Kelvin Nilsen <kelvin@gcc.gnu.org>
22666
22667 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22668 vpermr/xxpermr on ISA 3.0.
22669 (altivec_expand_vec_perm_le): Likewise.
22670 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22671 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22672 ISA 3.0.
22673
22674 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22675
22676 * config/i386/i386.h (IS_STACK_MODE): Enable for
22677 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22678 SSE_FLOAT_MODE_P macros.
22679 * config/i386/i386.c (ix86_preferred_reload_class): Use
22680 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22681 Cleanup regclass processing for CONST_DOUBLE_P.
22682 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22683 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22684 with IS_STACK_MODE macro.
22685 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22686 with TARGET_SSE2.
22687 (*movdf_internal): Use IS_STACK_MODE macro.
22688 (*movsf_internal): Ditto.
22689
22690 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22691
22692 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22693 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22694
22695 2016-05-23 Jeff Law <law@redhat.com>
22696
22697 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22698 extracted from ...
22699 (fsm_find_control_statement_thread_paths): Call it.
22700
22701 2016-05-23 Martin Jambor <mjambor@suse.cz>
22702
22703 PR ipa/71234
22704 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22705 from_global_constant if t is not NULL.
22706
22707 2016-05-23 Marek Polacek <polacek@redhat.com>
22708
22709 PR c/49859
22710 * common.opt (Wswitch-unreachable): New option.
22711 * doc/invoke.texi: Document -Wswitch-unreachable.
22712 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22713 warning.
22714
22715 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22716
22717 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22718 TMR_INDEX is non-NULL.
22719
22720 2016-05-23 Richard Biener <rguenther@suse.de>
22721
22722 PR tree-optimization/71230
22723 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22724 (try_special_add_to_ops): ... here. Always test for single-use.
22725
22726 2016-05-23 Martin Jambor <mjambor@suse.cz>
22727
22728 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22729 default block if a PHI node in the original one would be resized.
22730
22731 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22732
22733 PR tree-optimization/58135
22734 * tree-vect-slp.c: When group size is not multiple
22735 of vector size, allow splitting of store group at
22736 vector boundary.
22737
22738 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22739
22740 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22741
22742 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22743
22744 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22745 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22746 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22747 of 64x2.
22748
22749 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22750 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22751 v constraint instead of x and vinserti32x4 insn.
22752
22753 * config/i386/sse.md (i128vldq): New mode iterator.
22754 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22755 avx512dq and avx512vl alternatives.
22756
22757 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22758 constraint, use maybe_evex prefix instead of vex.
22759 (vec_dupv4sf): Use v constraint instead of x for output
22760 operand except for noavx alternative, use Yv constraint
22761 instead of x for input. Use maybe_evex prefix instead of vex.
22762 (*vec_dupv4si): Likewise.
22763 (*vec_dupv2di): Likewise.
22764
22765 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22766
22767 PR middle-end/40921
22768 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22769 (linearize_expr_tree): Call try_special_add_to_ops.
22770 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22771
22772 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22773
22774 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22775 to computed stack_usage.
22776
22777 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22778
22779 PR target/71103
22780 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22781 operand is subreg (symbol_ref) then move the symbol ref to register.
22782
22783 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22784
22785 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22786
22787 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22788
22789 PR middle-end/71179
22790 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
22791 VECTOR type.
22792
22793 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22794
22795 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
22796 ranges by calling get_single_symbol and tidy up. Look more closely
22797 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
22798
22799 2016-05-20 Jeff Law <law@redhat.com>
22800
22801 * bitmap.c (bitmap_find_bit): Remove useless test.
22802
22803 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22804
22805 * function.c (thread_prologue_and_epilogue_insns): Commit the
22806 insertion of the epilogue.
22807
22808 2016-05-20 Martin Jambor <mjambor@suse.cz>
22809
22810 PR tree-optimization/70884
22811 * tree-sra.c (initialize_constant_pool_replacements): Do not check
22812 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
22813 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
22814 of constant pool data as a reason for scalarization.
22815
22816 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
22817
22818 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
22819 for naked functions.
22820 (thumb1_expand_prologue): Likewise.
22821
22822 2016-05-20 Nathan Sidwell <nathan@acm.org>
22823
22824 * config/nvptx/nptx.c (nvptx_option_override): Only set
22825 flag_toplevel_reorder, if not explicitly specified. Set
22826 flag_no_common, unless explicitly specified.
22827
22828 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22829
22830 * calls.c (can_implement_as_sibling_call_p): Mark param
22831 reg_parm_stack_space with ATTRIBUTE_UNUSED.
22832
22833 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
22834
22835 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
22836 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
22837 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
22838 constants.
22839 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
22840 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
22841 and CASE_CONST_ANY.
22842
22843 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
22844
22845 * config/nvptx/nvptx.md (sincossf3): New pattern.
22846
22847 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22848
22849 * calls.c (maybe_complain_about_tail_call): New function.
22850 (initialize_argument_information): Call
22851 maybe_complain_about_tail_call when clearing *may_tailcall.
22852 (can_implement_as_sibling_call_p): Call
22853 maybe_complain_about_tail_call when returning false.
22854 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
22855 ensure try_tail_call is set. Call maybe_complain_about_tail_call
22856 if tail-call optimization fails.
22857 * cfgexpand.c (expand_call_stmt): Initialize
22858 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
22859 * gimple-pretty-print.c (dump_gimple_call): Dump
22860 gimple_call_must_tail_p.
22861 * gimple.c (gimple_build_call_from_tree): Call
22862 gimple_call_set_must_tail with the value of
22863 CALL_EXPR_MUST_TAIL_CALL.
22864 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
22865 (gimple_call_set_must_tail): New function.
22866 (gimple_call_must_tail_p): New function.
22867 * print-tree.c (print_node): Update printing of TREE_STATIC
22868 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
22869 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
22870 trailing comment listing applicable flags.
22871 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
22872
22873 2016-05-20 David Malcolm <dmalcolm@redhat.com>
22874
22875 * calls.c (expand_call): Move "Rest of purposes for tail call
22876 optimizations to fail" to...
22877 (can_implement_as_sibling_call_p): ...this new function, and
22878 split into multiple "if" statements.
22879
22880 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22881
22882 * cfgloop.h (expected_loop_iterations_unbounded,
22883 expected_loop_iterations): Unconstify.
22884 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
22885 profile with known upper bound; return 3 when profile is absent.
22886 (expected_loop_iterations): Update.
22887
22888 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22889
22890 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
22891 and get_max_loop_iterations_int.
22892
22893 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
22894
22895 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
22896 realistic upper bounds here.
22897
22898 2016-05-20 Jakub Jelinek <jakub@redhat.com>
22899
22900 PR c++/71210
22901 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
22902 calls if the LHS is variable length or has addressable type.
22903 If targets[0]->decl is a noreturn call with void return type and
22904 zero arguments, adjust fntype and remove lhs in that case.
22905
22906 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
22907
22908 PR tree-optimization/71079
22909 PR tree-optimization/71206
22910 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
22911
22912 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22913
22914 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
22915 (get_vec_alignment_for_array_decl): Likewise.
22916 (get_vec_alignment_for_record_decl): Likewise.
22917 (increase_alignment::execute): Move code to find alignment to
22918 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
22919 (type_align_map): New hash_map.
22920
22921 2016-05-20 Richard Guenther <rguenther@suse.de>
22922
22923 PR tree-optimization/29756
22924 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
22925 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
22926 * fold-const.c (operand_equal_p): Likewise.
22927 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
22928 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
22929 * tree-inline.c (estimate_operator_cost): Likewise.
22930 * tree-pretty-print.c (dump_generic_node): Likewise.
22931 * tree-ssa-operands.c (get_expr_operands): Likewise.
22932 * cfgexpand.c (expand_debug_expr): Likewise.
22933 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
22934 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
22935 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
22936 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
22937 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
22938 (execute_update_addresses_taken): Do it.
22939
22940 2016-05-20 Richard Biener <rguenther@suse.de>
22941
22942 PR tree-optimization/71185
22943 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
22944 register operations.
22945
22946 2016-05-20 Richard Biener <rguenther@suse.de>
22947
22948 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
22949 gimple_seq_add_seq_without_update.
22950 (release_bb_predicate): Assert we have no operands to free.
22951 (if_convertible_loop_p_1): Calculate post dominators later.
22952 Do not free BB predicates here.
22953 (combine_blocks): Do not recompute BB predicates.
22954 (version_loop_for_if_conversion): Save BB predicates around
22955 loop versioning.
22956
22957 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22958
22959 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22960 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22961 code. Ignore sibcalls on EDGE_IGNORE edges.
22962 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22963 on edges for sibcalls that run without prologue. The rest of the
22964 function is combined from...
22965 (fix_fake_fallthrough_edge): ... this, and ...
22966 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22967 function argument, make it a local variable.
22968
22969 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22970
22971 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22972 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22973 for 32-bit mode and SEH for 64-bit.
22974 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22975 TARGET_64BIT_DEFAULT.
22976
22977 2016-05-19 Ryan Burn <contact@rnburn.com>
22978
22979 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22980 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22981
22982 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22983
22984 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22985 force pending loads from memory.
22986
22987 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22988
22989 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22990 (UNSPEC_DARN_32): New unspec constant.
22991 (UNSPEC_DARN_RAW): New unspec constant.
22992 (darn_32): New instruction.
22993 (darn_raw): New instruction.
22994 (darn): New instruction.
22995 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22996 support and documentation for this macro.
22997 (BU_P9_MISC_1): New macro definition.
22998 (BU_P9_64BIT_MISC_0): New macro definition.
22999 (BU_P9_MISC_0): New macro definition.
23000 (darn_32): New builtin definition.
23001 (darn_raw): New builtin definition.
23002 (darn): New builtin definition.
23003 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23004 RS6000_BUILTIN_0 directives to surround each occurrence of
23005 #include "rs6000-builtin.def".
23006 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23007 RS6000_BTM_64BIT flags to the returned mask, depending on
23008 configuration.
23009 (def_builtin): Correct an error in the assignments made to the
23010 debugging variable attr_string.
23011 (rs6000_expand_builtin): Add support for no-operand built-in
23012 functions.
23013 (builtin_function_type): Remove fatal_error assertion that is no
23014 longer valid.
23015 (rs6000_common_init_builtins): Add support for no-operand built-in
23016 functions.
23017 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23018 definition.
23019 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23020 definition.
23021 (RS6000_BTM_64BIT): New macro definition.
23022 * doc/extend.texi: Document __builtin_darn (void),
23023 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23024 functions.
23025
23026 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23027
23028 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23029 max_loop_iterations_int.
23030
23031 2016-05-19 Marek Polacek <polacek@redhat.com>
23032
23033 PR tree-optimization/71031
23034 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23035 condition and adjust the code a bit.
23036
23037 2016-05-19 Martin Liska <mliska@suse.cz>
23038
23039 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23040 auto_vec instead of vec.
23041
23042 2016-05-19 Martin Liska <mliska@suse.cz>
23043
23044 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23045
23046 2016-05-19 Martin Liska <mliska@suse.cz>
23047
23048 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23049
23050 2016-05-19 Martin Liska <mliska@suse.cz>
23051
23052 * ipa-pure-const.c (set_function_state): Remove an existing
23053 funct_state.
23054 (remove_node_data): Do not free it as it's released
23055 in set_function_state.
23056
23057 2016-05-19 Martin Liska <mliska@suse.cz>
23058
23059 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23060 bitmap.
23061
23062 2016-05-19 Martin Liska <mliska@suse.cz>
23063
23064 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23065
23066 2016-05-19 Martin Liska <mliska@suse.cz>
23067
23068 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23069 an auto_vec instead of re-creating it.
23070
23071 2016-05-19 Martin Liska <mliska@suse.cz>
23072
23073 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23074 auto_vec instead of vec.
23075
23076 2016-05-19 Martin Liska <mliska@suse.cz>
23077
23078 * lto-section-in.c (lto_get_section_data): Call
23079 lto_check_version with additional argument.
23080 * lto-streamer.c (lto_check_version): Add new argument.
23081 * lto-streamer.h (lto_check_version): Likewise.
23082
23083 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23084
23085 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23086 Don't add cost of inner memory when handling sign-extended loads.
23087
23088 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23089
23090 PR rtl-optimization/71148
23091 * cse.c (cse_main): Free dominance info.
23092 (rest_of_handle_cse): Don't free dominance info.
23093 (rest_of_handle_cse2): Likewise.
23094 (rest_of_handle_cse_after_global_opts): Likewise.
23095
23096 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23097
23098 PR target/71056
23099 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23100 NULL_TREE early if NEON is not available. Remove now redundant check
23101 in ARM_CHECK_BUILTIN_MODE.
23102
23103 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23104
23105 PR sanitizer/64354
23106 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23107 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23108 * doc/cpp.texi: Document new macros.
23109
23110 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23111
23112 PR tree-optimization/69848
23113 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23114 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23115
23116 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23117
23118 * function.c (thread_prologue_and_epilogue_insn): Move the
23119 "goto epilogue_done" one block later.
23120
23121 2016-05-19 Richard Biener <rguenther@suse.de>
23122
23123 PR tree-optimization/70729
23124 * passes.def: Move LIM pass before PRE. Remove no longer
23125 required copyprop and move first DCE out of the loop pipeline.
23126
23127 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23128
23129 PR driver/69265
23130 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23131 (OBJS-libcommon-target): ...here.
23132 * opts-common.c: Include spellcheck.h.
23133 (cmdline_handle_error): Build a vec of valid options and use it
23134 to suggest provide hints for misspelled arguments.
23135
23136 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23137
23138 PR c++/71100
23139 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23140 lhs if it has TREE_ADDRESSABLE type.
23141
23142 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23143
23144 PR target/71145
23145 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23146 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23147
23148 2016-05-18 Martin Jambor <mjambor@suse.cz>
23149
23150 PR ipa/69708
23151 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23152 input for NOP_EXPR pass-through functions.
23153 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23154 aggregate global constant VAR_DECLs in constant jump functions.
23155
23156 2016-05-18 Martin Jambor <mjambor@suse.cz>
23157
23158 PR ipa/69708
23159 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23160 from TREE_READONLY parameters.
23161
23162 2016-05-18 Martin Jambor <mjambor@suse.cz>
23163
23164 PR ipa/69708
23165 * cgraph.h (cgraph_indirect_call_info): New field
23166 guaranteed_unmodified.
23167 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23168 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23169 appropriate.
23170 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23171 pass the parameter value to ipa_find_agg_cst_for_param.
23172 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23173 guaranteed_unmodified, store AA results there instead of bailing out
23174 if present.
23175 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23176 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23177 (find_constructor_constant_at_offset): New function.
23178 (ipa_find_agg_cst_from_init): Likewise.
23179 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23180 static initializers of contants, report back through a new paameter
23181 from_global_constant if that was the case.
23182 (try_make_edge_direct_simple_call): Also pass parameter value to
23183 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23184 appropriate.
23185 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23186 (ipa_read_indirect_edge_info): Likewise.
23187 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23188 (ipa_load_from_parm_agg): Likewise.
23189
23190 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23191
23192 PR rtl-optimization/71150
23193 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23194 check.
23195
23196 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23197
23198 PR target/70915
23199 * config/rs6000/constraints.md (wE constraint): New constraint
23200 for a vector constant that can be loaded with XXSPLTIB.
23201 (wM constraint): New constraint for a vector constant of a 1's.
23202 (wS constraint): New constraint for a vector constant that can be
23203 loaded with XXSPLTIB and a vector sign extend instruction.
23204 * config/rs6000/predicates.md (xxspltib_constant_split): New
23205 predicates for wE/wS constraints.
23206 (xxspltib_constant_nosplit): Likewise.
23207 (easy_vector_constant): Add support for constants that can be
23208 loaded via XXSPLTIB.
23209 (all_ones_constant): New predicate for vector constant with all
23210 1's set.
23211 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23212 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23213 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23214 instruction and possibly with a sign extension.
23215 (output_vec_const_move): Add support for XXSPLTIB. If we are
23216 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23217 instead of XXLXOR/XXLORC.
23218 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23219 operations.
23220 (rs6000_legitimize_reload_address): Likewise.
23221 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23222 constants.
23223 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23224 combine VSX_M and VSX_M2 into one iterator.
23225 (VSX_M2): Likewise.
23226 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23227 (VSINT_842): Likewise.
23228 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23229 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23230 XXSPLTIB instruction.
23231 (xxspltib_<mode>_nosplit): Likewise.
23232 (xxspltib_<mode>_split): New insn to load up constants with
23233 XXSPLTIB and a sign extend instruction.
23234 (vsx_mov<mode>): Replace single move that handled all vector types
23235 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23236 moves (when -mvsx-timode is in effect) into the main vector
23237 moves. Eliminate separate moves for <VSr> <VSa>, where the
23238 preferred register class (<VSr>) is listed first, and the
23239 secondary register class (<VSa>) is listed second with a '?' to
23240 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23241 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23242 that if the register was involved in a slow operation, the
23243 clear/set operation does not wait for the slow operation to
23244 finish. Adjust the length attributes for 32-bit mode. Use
23245 rs6000_output_move_128bit and drop the use of the string
23246 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23247 spacing so that the alternatives and attributes don't generate
23248 long lines, and put things in columns, so that it is easier to
23249 match up the operands and attributes with the insn alternatives.
23250 (vsx_mov<mode>_64bit): Likewise.
23251 (vsx_mov<mode>_32bit): Likewise.
23252 (vsx_movti_64bit): Fold movti into normal vector moves.
23253 (vsx_movti_32bit): Likewise.
23254 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23255 splat instructions.
23256 (vsx_splat_v4si_internal): Likewise.
23257 (vsx_splat_v4sf_internal): Likewise.
23258 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23259 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23260 extend vector elements.
23261 (vsx_sign_extend_hi_<mode>): Likewise.
23262 (vsx_sign_extend_si_v2di): Likewise.
23263 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23264 declaration.
23265 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23266 constraints. Add trailing period to wL documentation.
23267
23268 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23269
23270 PR middle-end/71020
23271 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23272 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23273 * tree-call-cdce.c: Include tree-dfa.h.
23274 (can_guard_call_p): New function, extracted from...
23275 (can_use_internal_fn): ...here.
23276 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23277 and return void.
23278 (shrink_wrap_one_built_in_call): Likewise.
23279 (use_internal_fn): Likewise.
23280 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23281 and return void. Call replace_abnormal_ssa_names.
23282 (pass_call_cdce::execute): Check can_guard_call_p during the
23283 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23284 will always change something.
23285
23286 2016-05-18 Martin Jambor <mjambor@suse.cz>
23287
23288 PR ipa/70646
23289 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23290 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23291
23292 2016-05-18 Martin Jambor <mjambor@suse.cz>
23293
23294 PR ipa/70646
23295 * ipa-inline.h (condition): New field size.
23296 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23297 for comaprison and store it into the new condition.
23298 (evaluate_conditions_for_known_args): Use condition size to check
23299 access sizes for all but CHANGED conditions.
23300 (unmodified_parm_1): New parameter size_p, store access size into it.
23301 (unmodified_parm): Likewise.
23302 (unmodified_parm_or_parm_agg_item): Likewise.
23303 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23304 (set_cond_stmt_execution_predicate): Extract access sizes and store
23305 them to conditions.
23306 (set_switch_stmt_execution_predicate): Likewise.
23307 (will_be_nonconstant_expr_predicate): Likewise.
23308 (will_be_nonconstant_predicate): Likewise.
23309 (inline_read_section): Stream condition size.
23310 (inline_write_summary): Likewise.
23311
23312 2016-05-18 Richard Biener <rguenther@suse.de>
23313
23314 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23315 condition cost to PHI cost instead of total_cost.
23316
23317 2016-05-18 Martin Liska <mliska@suse.cz>
23318
23319 PR fortran/70856
23320 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23321 merged variables.
23322
23323 2016-05-18 Richard Biener <rguenther@suse.de>
23324
23325 * lto-streamer.h (LTO_major_version): Bump to 6.
23326
23327 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23328
23329 * function.c (make_split_prologue_seq, make_prologue_seq,
23330 make_epilogue_seq): New functions, factored out from...
23331 (thread_prologue_and_epilogue_insns): Here.
23332
23333 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23334
23335 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23336 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23337 of before. Add a comment.
23338
23339 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23340
23341 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23342 expression pointer, not pointer to the pointer.
23343
23344 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23345
23346 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23347 (avx2_pbroadcast<mode>): Add another alternative with v instead
23348 of x constraints in it, using <pbroadcast_evex_isa> isa.
23349 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23350
23351 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23352 constraint x instead of v in second alternative, add avx512bw
23353 alternative.
23354
23355 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23356 constraint x instead of v in second alternative, add avx512bw
23357 alternative.
23358
23359 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23360 constraint x instead of v in second alternative, add avx512bw
23361 alternative.
23362
23363 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23364 avx512bw alternative.
23365
23366 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23367
23368 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23369 array to 128 chars.
23370 (define_insn "*andnottf3"): Ditto.
23371 (define_insn "*<code><mode>3"/any_logic): Ditto.
23372 (define_insn "*<code>tf3"/any_logic): Ditto.
23373 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23374 operand to block AVX-512VL insn variant emit when it is not enabled.
23375
23376 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23377
23378 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23379 constraint fot SF mode.
23380
23381 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23382 Kirill Yukhin <kirill.yukhin@intel.com>
23383
23384 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23385 modifiers.
23386 (define_insn "rsqrt14<mode>"): Ditto.
23387 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23388 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23389 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23390 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23391 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23392 Ditto.
23393 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23394 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23395 * config/i386/i386.c (ix86_print_operand): Expand check for size
23396 override codes for Intel syntax.
23397
23398 2016-05-18 Richard Biener <rguenther@suse.de>
23399
23400 PR tree-optimization/71168
23401 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23402 initialization earlier.
23403
23404 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23405
23406 * config/aarch64/aarch64-simd.md
23407 (aarch64_reduc_plus_internal<mode>): Rename to...
23408 (reduc_plus_scal): ...This, and remove previous implementation.
23409
23410 2016-05-18 Richard Biener <rguenther@suse.de>
23411
23412 * passes.def: Put late dse and cd_dce in canonical order.
23413
23414 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23415
23416 * ipa-inline-transform.c (preserve_function_body_p): Look for
23417 first non-thunk clone.
23418 (save_function_body): Save into first non-thunk.
23419 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23420 up call stmt id.
23421 (lto_output_node): Inline thunks don't need body in every
23422 partition.
23423 * lto-streamer-in.c: Do not fixup thunk clones.
23424 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23425 thunks.
23426 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23427 folding suceeds.
23428
23429 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23430
23431 PR middle-end/63586
23432 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23433 (reassociate_bb): Call transform_add_to_multiply.
23434
23435 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23436
23437 * config/aarch64/aarch64.c (all_extensions): Removed unused
23438 static variable.
23439
23440 2016-05-17 Nathan Sidwell <nathan@acm.org>
23441
23442 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23443 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23444
23445 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23446
23447 PR tree-optimization/54579
23448 PR middle-end/55299
23449 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23450
23451 2016-05-17 Marek Polacek <polacek@redhat.com>
23452
23453 PR ipa/71146
23454 * tree-inline.c (expand_call_inline): Call
23455 maybe_remove_unused_call_args.
23456
23457 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23458
23459 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23460 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23461 * doc/md.texi (fmin@var{m}3): Likewise.
23462
23463 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23464
23465 * match.pd (X & C): New transformation.
23466
23467 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23468
23469 * match.pd (~X & Y): New transformation.
23470
23471 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23472
23473 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23474 information for new SSA_NAME.
23475 (simplify_conversion_using_ranges): Get range through get_range_info
23476 instead of get_value_range.
23477
23478 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23479
23480 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23481 Remove inline assembly.
23482 (vmvn_s16): Likewise.
23483 (vmvn_s32): Likewise.
23484 (vmvn_u8): Likewise.
23485 (vmvn_u16): Likewise.
23486 (vmvn_u32): Likewise.
23487 (vmvnq_s8): Likewise.
23488 (vmvnq_s16): Likewise.
23489 (vmvnq_s32): Likewise.
23490 (vmvnq_u8): Likewise.
23491 (vmvnq_u16): Likewise.
23492 (vmvnq_u32): Likewise.
23493 (vmvn_p8): Likewise.
23494 (vmvnq_p16): Likewise.
23495
23496 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23497
23498 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23499 Use builtin.
23500 (vmul_n_s16): Likewise.
23501 (vmul_n_s32): Likewise.
23502 (vmul_n_u16): Likewise.
23503 (vmul_n_u32): Likewise.
23504 (vmulq_n_f32): Likewise.
23505 (vmulq_n_f64): Likewise.
23506 (vmulq_n_s16): Likewise.
23507 (vmulq_n_s32): Likewise.
23508 (vmulq_n_u16): Likewise.
23509 (vmulq_n_u32): Likewise.
23510
23511 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23512
23513 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23514 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23515
23516 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23517
23518 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23519 to *aarch64_fma4_elt_from_dup<mode>.
23520 (*aarch64_fnma4_elt_to_128df): Rename to
23521 *aarch64_fnma4_elt_from_dup<mode>.
23522 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23523 (vfms_n_f32): Likewise.
23524 (vfms_n_f64): Likewise.
23525 (vfmsq_n_f32): Likewise.
23526 (vfmsq_n_f64): Likewise.
23527
23528 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23529
23530 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23531
23532 2016-05-17 Richard Biener <rguenther@suse.de>
23533
23534 PR tree-optimization/71132
23535 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23536 Only add control dependences for blocks in the loop.
23537 (build_rdg): Adjust.
23538 (generate_code_for_partition): Return whether loop should
23539 be destroyed and delay that.
23540 (distribute_loop): Likewise.
23541 (pass_loop_distribution::execute): Record loops to be destroyed
23542 and perform delayed destroying of loops.
23543
23544 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23545
23546 PR target/70809
23547 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23548
23549 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23550
23551 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23552
23553 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23554
23555 PR target/71114
23556 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23557 insertion point for instructions generated by validize_mem.
23558
23559 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23560
23561 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23562 in brackets.
23563
23564 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23565
23566 * config/aarch64/aarch64.c
23567 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23568 rather than a macro.
23569
23570 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23571
23572 * doc/invoke.texi (AArch64 Options): Various updates.
23573
23574 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23575
23576 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23577 into instrumentation thunks.
23578 * cif-code.def (CIF_CHKP): New.
23579
23580 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23581
23582 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23583
23584 2016-05-16 Martin Jambor <mjambor@suse.cz>
23585
23586 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23587 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23588
23589 2016-05-16 Marek Polacek <polacek@redhat.com>
23590
23591 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23592 commentary.
23593
23594 2016-05-16 Martin Jambor <mjambor@suse.cz>
23595
23596 PR hsa/70857
23597 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23598 the outlined kernel function.
23599
23600 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23601
23602 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23603 (ISA_HAS_DLSA): Ditto.
23604
23605 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23606
23607 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23608
23609 2016-05-16 Nathan Sidwell <nathan@acm.org>
23610
23611 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23612 (nvptx_name_replacement): Restore. Add comment.
23613 (write_fn_proto, write_fn_proto_from_insn,
23614 nvptx_output_call_insn): Restore
23615 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23616
23617 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23618
23619 * config/aarch64/aarch64.md
23620 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23621 (add<mode>3_compareC_imm): Likewise.
23622 (<optab>si3_uxtw): Split into register and immediate variants.
23623 (andsi3_compare0_uxtw): Likewise.
23624 (and<mode>3_compare0): Likewise.
23625 (and<mode>3nr_compare0): Likewise.
23626 (stack_protect_test_<mode>): Don't use %x for memory operands.
23627
23628 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23629
23630 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23631
23632 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23633
23634 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23635 Split integer shifts into shift_reg and bfm.
23636 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23637 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23638 (ror<mode>3_insn): Likewise.
23639 (<optab>si3_insn_uxtw): Likewise.
23640 (<optab><mode>3_insn): Change to rotate_imm.
23641 (extr<mode>5_insn_alt): Likewise.
23642 (extrsi5_insn_uxtw): Likewise.
23643 (extrsi5_insn_uxtw_alt): Likewise.
23644
23645 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23646
23647 * doc/tm.texi: Regenerate.
23648 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23649 (TARGET_INVALID_RETURN_TYPE): Remove.
23650 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23651 TARGET_INVALID_RETURN_TYPE.
23652 * target.def (invalid_parameter_type): Remove.
23653 (invalid_return_type): Remove.
23654
23655 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23656
23657 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23658 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23659 calls from thunk.
23660 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23661 gimple body.
23662 (preserve_function_body_p): No need to preserve function body
23663 * cif-codes.def (CIF_THUNK): Remove.
23664 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23665
23666 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23667
23668 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23669
23670 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23671
23672 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23673 for thunks.
23674
23675 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23676
23677 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23678 (inline_small_functions): Do not look for function symbol when
23679 resetting caches.
23680
23681 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23682
23683 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23684 of inline thunks
23685
23686 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23687 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23688 Jiong Wang <jiong.wang@arm.com>
23689
23690 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23691 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23692 Define __ARM_FP16_ARGS when appropriate.
23693 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23694 declaration.
23695 (arm_invalid_return_type): Likewise.
23696 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23697 (TARGET_INVALID_RETURN_TYPE): Remove.
23698 (aapcs_vfp_sub_candidate): Allow HFmode.
23699 (aapcs_vfp_allocate): Add comment. Support HFmode.
23700 (aapcs_vfp_allocate_return_reg): Likewise.
23701 (struct aapcs_cp_arg_layout): Slightly reword comments for
23702 is_return_candidate and allocate_return_reg.
23703 (output_mov_vfp): Update assert.
23704 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23705 condition.
23706 (arm_invalid_parameter_type): Remove.
23707 (amr_invalid_return_type): Remove.
23708 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23709 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23710 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23711
23712 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23713
23714 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23715 * config/aarch64/arch64-protos.h
23716 (aarch64_legitimize_reload_address): Remove.
23717 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23718 Remove.
23719
23720 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23721
23722 * configure.ac: Add ACX_NONCANONICAL_HOST.
23723 * configure: Regenerate.
23724 * Makefile.in: Set host_noncanonical.
23725
23726 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23727
23728 PR target/71097
23729 * config/i386/i386.md (*movtf_internal): Before register allocation,
23730 do not allow FP constants for CM_MEDIUM memory model, allow only
23731 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23732 (*movxf_internal): Ditto.
23733 (*movdf_internal): Ditto.
23734 (*movsf_internal): Ditto.
23735
23736 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23737
23738 PR rtl-optimization/67483
23739 * combine.c (make_compound_operation): Don't call extract_left_shift
23740 with negative shift amounts.
23741
23742 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23743
23744 PR bootstrap/71071
23745 * fold-const.c (fold_checksum_tree): Allow modification
23746 of TYPE_ALIAS_SET during folding.
23747
23748 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23749 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23750 (ix86_split_to_parts): Likewise. Fix up formatting.
23751
23752 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23753
23754 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23755 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23756 printf format.
23757
23758 2016-05-13 Nathan Sidwell <nathan@acm.org>
23759
23760 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23761 (nvptx_name_replacement): Delete.
23762 (write_fn_proto, write_fn_proto_from_insn,
23763 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23764 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23765 * langhooks.c (add_builtin_funcction_common): Call
23766 targetm.mangle_decl_assembler_name.
23767
23768 * config/nvptx/nvptx.c (write_fn_proto): Handle
23769 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23770
23771 2016-05-13 Martin Liska <mliska@suse.cz>
23772
23773 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23774 and PRIu64 in printf format.
23775
23776 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23777
23778 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23779 comment.
23780
23781 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23782
23783 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23784 Change --param max-completely-peeled-times to
23785 --param max-completely-peel-times in dump file printing.
23786
23787 2016-05-13 Richard Biener <rguenther@suse.de>
23788
23789 PR tree-optimization/42587
23790 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
23791 (find_bswap_or_nop_1): Likewise.
23792 (bswap_replace): Likewise.
23793
23794 2016-05-13 Martin Liska <mliska@suse.cz>
23795
23796 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
23797 Initialize a variable with default value.
23798
23799 2016-05-13 Martin Liska <mliska@suse.cz>
23800
23801 * doc/invoke.texi: Enhance explanation of error recovery
23802 of sanitizers.
23803
23804 2016-05-13 Martin Liska <mliska@suse.cz>
23805
23806 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
23807 (struct cost_pair): Change inv_expr_id (int) to inv_expr
23808 (iv_inv_expr_ent *).
23809 (struct iv_inv_expr_ent): Comment struct fields.
23810 (sort_iv_inv_expr_ent): New function.
23811 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
23812 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
23813 a hash_map between iv_inv_expr_ent and number of usages.
23814 (niter_for_exit): Fix coding style.
23815 (tree_ssa_iv_optimize_init): Use renamed variable.
23816 (determine_base_object): Fix coding style.
23817 (alloc_iv): Likewise.
23818 (find_interesting_uses_outside): Likewise.
23819 (add_candidate_1): Likewise.
23820 (add_standard_iv_candidates): Likewise.
23821 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
23822 (prepare_decl_rtl): Fix coding style.
23823 (get_address_cost): Likewise.
23824 (get_shiftadd_cost): Likewise.
23825 (force_expr_to_var_cost): Likewise.
23826 (compare_aff_trees): Likewise.
23827 (get_expr_id): Restructure the function.
23828 (get_loop_invariant_expr_id): Renamed to
23829 get_loop_invariant_expr.
23830 (get_computation_cost_at): Replace usage of inv_expr_id with
23831 inv_expr.
23832 (get_computation_cost): Likewise.
23833 (determine_group_iv_cost_generic): Likewise.
23834 (determine_group_iv_cost_address): Likewise.
23835 (iv_period): Fix coding style.
23836 (iv_elimination_compare_lt): Likewise.
23837 (may_eliminate_iv): Likewise.
23838 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
23839 inv_expr.
23840 (determine_group_iv_costs): Dump invariant expressions.
23841 (iv_ca_recount_cost): Use the newly added hash_map.
23842 (iv_ca_set_remove_invariants): Fix coding style.
23843 (iv_ca_set_add_invariants): Fix coding style.
23844 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
23845 invariants.
23846 (iv_ca_set_cp): Likewise.
23847 (iv_ca_new): Initialize the newly added hash_map and remove
23848 initialization of fields.
23849 (iv_ca_free): Delete the hash_map.
23850 (iv_ca_dump): Dump invariant expressions.
23851 (iv_ca_extend): Fix coding style.
23852 (try_add_cand_for): Likewise.
23853 (create_new_ivs): Dump information about # of avg iterations and
23854 # of used invariant expressions.
23855 (rewrite_use_compare): Fix coding style.
23856 (free_loop_data): Set default value for max_inv_expr_id.
23857
23858 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
23859
23860 * cse.c (rest_of_handle_cse): Use cleanup_cfg
23861 returned value cse_cfg_altered computation.
23862 (rest_of_handle_cse2): Likewise.
23863 (rest_of_handle_cse_after_global_opts): Likewise.
23864
23865 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23866
23867 PR target/53440
23868 * config/arm/arm.c (arm32_output_mi_thunk): New.
23869 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
23870 to split Thumb1 vs TARGET_32BIT functionality.
23871 (arm_thumb1_mi_thunk): New.
23872
23873 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23874
23875 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
23876 to true.
23877
23878 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23879
23880 PR target/71080
23881 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
23882
23883 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
23884
23885 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
23886 (expand_builtin_trap): Emit a regular call.
23887 (set_builtin_user_assembler_name): Remove obsolete cases.
23888 * dse.c (scan_insn): Adjust.
23889 * except.c: Include calls.h.
23890 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
23891 emit a regular call to setjmp.
23892 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
23893 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
23894 (emit_block_move_via_libcall): Delete.
23895 (block_move_fn): Delete.
23896 (init_block_move_fn): Likewise.
23897 (emit_block_move_libcall_fn): Likewise.
23898 (emit_block_op_via_libcall): New function.
23899 (set_storage_via_libcall): Tidy up and use memset builtin.
23900 (block_clear_fn): Delete.
23901 (init_block_clear_fn): Likewise.
23902 (clear_storage_libcall_fn): Likewise.
23903 (expand_assignment): Call emit_block_move_via_libcall.
23904 Do not include gt-expr.h.
23905 * expr.h (emit_block_op_via_libcall): Declare.
23906 (emit_block_copy_via_libcall): New inline function.
23907 (emit_block_move_via_libcall): Likewise.
23908 (emit_block_comp_via_libcall): Likewise.
23909 (block_clear_fn): Delete.
23910 (init_block_move_fn): Likewise.
23911 (init_block_clear_fn): Likewise.
23912 (emit_block_move_via_libcall): Likewise.
23913 (set_storage_via_libcall): Add default parameter value.
23914 * libfuncs.h (enum libfunc_index): Remove obsolete values.
23915 (abort_libfunc): Delete.
23916 (memcpy_libfunc): Likewise.
23917 (memmove_libfunc): Likewise.
23918 (memcmp_libfunc): Likewise.
23919 (memset_libfunc): Likewise.
23920 (setbits_libfunc): Likewise.
23921 (setjmp_libfunc): Likewise.
23922 (longjmp_libfunc): Likewise.
23923 (profile_function_entry_libfunc): Likewise.
23924 (profile_function_exit_libfunc): Likewise.
23925 (gcov_flush_libfunc): Likewise.
23926 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
23927 and DECL_VISIBILITY on the declaration.
23928 (init_optabs): Do not initialize obsolete libfuncs.
23929 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
23930 * tree-core.h (ECF_RET1): Define.
23931 (ECF_TM_PURE): Adjust.
23932 (ECF_TM_BUILTIN): Likewise.
23933 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
23934 (build_common_builtin_nodes): Initialize abort builtin.
23935 Add ECF_RET1 on memcpy, memmove and memset builtins.
23936 Pass final flags for alloca and alloca_with_align builtins.
23937 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
23938 obsolete builtins.
23939 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
23940 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
23941 set_storage_via_libcall and call emit_block_copy_via_libcall.
23942
23943 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
23944
23945 * config/i386/i386.md (*call_got_x32): Change operand 0 to
23946 DImode before it is passed to ix86_output_call_operand.
23947 (*call_value_got_x32): Ditto for operand 1.
23948
23949 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23950
23951 PR rtl-optimization/70904
23952 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23953 reload for wide mode.
23954
23955 2016-05-12 Marek Polacek <polacek@redhat.com>
23956
23957 PR c/70756
23958 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23959 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23960 * langhooks.h (incomplete_type_error): Likewise.
23961 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23962 parameter, pass it down to incomplete_type_error.
23963 * tree.h (size_in_bytes): New inline overload.
23964 (size_in_bytes_loc): Renamed from size_in_bytes.
23965
23966 2016-05-12 Richard Biener <rguenther@suse.de>
23967
23968 PR tree-optimization/71059
23969 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23970 nary before looking up or entering the expression into the VN
23971 hashes.
23972 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23973 Make sure to re-use NARYs without result as inserted by
23974 phi-translation.
23975
23976 2016-05-12 Richard Biener <rguenther@suse.de>
23977
23978 PR tree-optimization/71062
23979 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23980 field.
23981 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23982 vars_contains_restrict if the var is a restrict tag.
23983 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23984 do not disambiguate pointers against it.
23985 (dump_points_to_solution): Re-structure and adjust for new
23986 vars_contains_restrict flag.
23987 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23988
23989 2016-05-12 Martin Liska <mliska@suse.cz>
23990
23991 * doc/invoke.texi: Explain connection between
23992 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23993
23994 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23995
23996 PR tree-optimization/71006
23997 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23998 consider COND_EXPR as a mask producer.
23999
24000 2016-05-12 Marek Polacek <polacek@redhat.com>
24001
24002 PR driver/71063
24003 * opts.c (common_handle_option): Detect missing argument for --help^.
24004
24005 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24006
24007 PR target/70830
24008 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24009 when popping the PC and within an interrupt handler routine.
24010 Add missing tab to output of "ldmfd".
24011 (output_return_instruction): Output LDMFD with SP update rather
24012 than POP when returning from interrupt handler.
24013
24014 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24015
24016 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24017 TARGET_64BIT && TARGET_AVX512DQ.
24018 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24019 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24020 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24021 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24022 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24023 (*vec_extractv4si_zext): Add avx512dq alternative.
24024 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24025 use v instead of x constraint in other alternatives where possible.
24026
24027 * config/i386/sse.md (sse2_loadld): Use v instead of x
24028 constraint in alternatives 0,1,4.
24029
24030 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24031 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24032 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24033
24034 PR target/71019
24035 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24036 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24037 is not emitted unless TARGET_AVX512BW.
24038 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24039 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24040 for the result operand.
24041
24042 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24043 constraint instead of x in avx alternatives. Use maybe_evex instead
24044 of vex prefix.
24045
24046 * config/i386/constraints.md (Yv): New constraint.
24047 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24048 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24049 * config/i386/i386.md (avx512fvecmode): New mode attr.
24050 (*pushtf): Use v constraint instead of x.
24051 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24052 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24053 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24054 (*absnegtf2_sse): Likewise.
24055 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24056 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24057 avx512f alternatives.
24058 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24059
24060 2016-05-12 Richard Biener <rguenther@suse.de>
24061
24062 PR tree-optimization/71060
24063 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24064 require exact match of DR_BASE_OBJECT but only matching address and
24065 type.
24066
24067 2016-05-12 Richard Biener <rguenther@suse.de>
24068
24069 PR tree-optimization/70986
24070 * cfganal.c: Include cfgloop.h.
24071 (dfs_find_deadend): Prefer to take edges exiting loops.
24072
24073 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24074
24075 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24076 compile and run time.
24077
24078 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24079
24080 PR c/43651
24081 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24082
24083 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24084
24085 * config/i386/i386.c (legitimize_pic_address): Use
24086 copy_to_suggested_reg instead of gen_movsi.
24087
24088 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24089
24090 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24091 the code into quad_address_p and call it to share code with
24092 vsx_quad_dform_memory_operand.
24093 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24094 d-form support.
24095 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24096 bit instead of being a separate word. Split -mpower9-dform into
24097 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24098 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24099 for the register class supporting 128-bit quad word memory offsets.
24100 (mode_supports_vsx_dform_quad): Helper function to return if the
24101 register class uses quad word memory offsets.
24102 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24103 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24104 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24105 instructions are enabled, set up the appropriate addr_masks for
24106 128-bit types.
24107 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24108 -mpower9-dform-scalar, instead of -mpower9-dform.
24109 (rs6000_option_override_internal): Split -mpower9-dform into two
24110 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24111 -mpower9-dform switch sets or clears both. If we are not using
24112 the LRA register allocator, do not enable -mpower9-dform-vector by
24113 default. If we are using LRA, enable -mpower9-dform-vector and
24114 -mvsx-timode if it is appropriate. Issue a warning if either
24115 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24116 enabling LRA.
24117 (quad_address_offset_p): New helper function to return if the
24118 offset is legal for quad word memory instructions.
24119 (quad_address_p): New function to determin if GPR or vector
24120 register quad word memory addresses are legal.
24121 (mem_operand_gpr): Validate quad word address offsets.
24122 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24123 d-form (register + offset) instructions.
24124 (offsettable_ok_by_alignment): Likewise.
24125 (rs6000_legitimate_offset_address_p): Likewise.
24126 (legitimate_lo_sum_address_p): Likewise.
24127 (rs6000_legitimize_address): Likewise.
24128 (rs6000_legitimize_reload_address): Add more debug statements for
24129 -mdebug=addr.
24130 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24131 d-form instructions.
24132 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24133 d-form instructions. Distinguish different cases in debug
24134 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24135 d-form instructions.
24136 (rs6000_preferred_reload_class): Likewise.
24137 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24138 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24139 of the ISA 2.06 indexed memory instructions.
24140 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24141 use them to save/restore the saved vector registers instead of
24142 using Altivec instructions.
24143 (rs6000_emit_epilogue): Likewise.
24144 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24145 (rs6000_opt_masks): Split -mpower9-dform into
24146 -mpower9-dform-scalar and -mpower9-dform-vector.
24147 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24148 was not selected.
24149 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24150 ISA 3.0 vector indexed memory instructions, and fold the code into
24151 the normal mov<mode> patterns.
24152 (p9_vecstore_<mode>): Likewise.
24153 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24154 instructions.
24155 (vsx_movti_64bit): Likewise.
24156 (vsx_movti_32bit): Likewise.
24157 * config/rs6000/constraints.md (wO constraint): New constraint for
24158 ISA 3.0 vector d-form support.
24159 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24160 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24161 include -mpower9-dform-vector until we switch over to LRA.
24162 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24163 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24164 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24165 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24166 for -mpower9-dform and -mlra.
24167 * doc/md.texi (wO constraint): Document wO constraint.
24168
24169 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24170
24171 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24172 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24173 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24174 Move handling of non-insn arguments inline into the sole user:
24175 (output_trans_func): ...here.
24176 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24177 in emitted function prototype.
24178 (output_internal_insn_latency_func): Ditto. Simplify.
24179 (output_internal_maximal_insn_latency_func): Ditto. Delete
24180 always-unused argument.
24181 (output_insn_latency_func): Ditto.
24182 (output_maximal_insn_latency_func): Ditto.
24183
24184 2016-05-11 Richard Biener <rguenther@suse.de>
24185
24186 PR tree-optimization/71055
24187 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24188 sth with precision not equal to access size verify we don't chop
24189 off bits.
24190
24191 2016-05-11 Richard Biener <rguenther@suse.de>
24192
24193 PR debug/71057
24194 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24195 (dwarf2out_finish): Move retry_incomplete_types call ...
24196 (dwarf2out_early_finish): ... here.
24197
24198 2016-05-11 Richard Biener <rguenther@suse.de>
24199
24200 PR middle-end/71002
24201 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24202 if the langhook insists on it.
24203 * fold-const.c (make_bit_field_ref): Add arg for the original
24204 reference and preserve its alias-set.
24205 (decode_field_reference): Take exp by reference and adjust it
24206 to the original memory reference.
24207 (optimize_bit_field_compare): Adjust callers.
24208 (fold_truth_andor_1): Likewise.
24209 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24210
24211 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24212
24213 PR middle-end/70807
24214 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24215 * cfgrtl.c (delete_insn_and_edges): Likewise.
24216 * config/i386/i386.c (convert_scalars_to_vector): Remove
24217 redundant code.
24218 * cse.c (cse_insn): Compute cse_cfg_altered.
24219 (delete_trivially_dead_insns): Likewise.
24220 (cse_cc_succs): Likewise.
24221 (rest_of_handle_cse): Free dominance info if required.
24222 (rest_of_handle_cse2): Likewise.
24223 (rest_of_handle_cse_after_global_opts): Likewise.
24224
24225 2016-05-11 Alan Modra <amodra@gmail.com>
24226
24227 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24228 abi_v4_pass_in_fpr): New functions.
24229 (rs6000_function_arg_boundary): Exclude complex IBM long double
24230 from 64-bit alignment when ABI_V4.
24231 (rs6000_function_arg, rs6000_function_arg_advance_1,
24232 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24233
24234 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24235
24236 PR rtl-optimization/71028
24237 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24238 jump with just a return in the fallthrough block if the branch
24239 block contains just a return as well.
24240
24241 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24242
24243 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24244 * match.pd ((X & Y) ^ Y): ... this.
24245 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24246 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24247
24248 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24249
24250 * read-md.c (require_char_ws): New function.
24251 (read_string): Simplify using require_char_ws.
24252 (handle_constants): Likewise.
24253 (handle_enum): Likewise.
24254 (handle_file): Likewise.
24255 * read-md.h (require_char_ws): New declaration.
24256 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24257 (read_mapping): Likewise.
24258 (read_rtx_code): Likewise.
24259 (read_nested_rtx): Likewise.
24260
24261 2016-05-10 James Norris <jnorris@codesourcery.com>
24262
24263 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24264 if offloading is enabled and -fopenacc or -fopenmp is specified.
24265 (CRTOFFLOADEND): Likewise.
24266 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24267 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24268
24269 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24270
24271 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24272 gotoff_operand code paths. Use copy_to_suggested_regs and
24273 expand_simple_binop where appropriate. Cleanup.
24274
24275 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24276
24277 PR target/70799
24278 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24279 integer constants.
24280 (dimode_scalar_chain::vector_const_cost): New.
24281 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24282 (dimode_scalar_chain::convert_op): Likewise.
24283 (dimode_scalar_chain::convert_insn): Likewise.
24284
24285 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24286
24287 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24288 unary operation, not a binary one.
24289
24290 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24291
24292 PR middle-end/70877
24293 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24294 calls with type casted fndecl.
24295
24296 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24297
24298 PR tree-optimization/70786
24299 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24300 * calls.c (initialize_argument_information): Bind bounds
24301 with corresponding args passed by reference.
24302
24303 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24304
24305 PR target/70927
24306 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24307 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24308 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24309 accordingly.
24310
24311 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24312
24313 PR target/70963
24314 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24315 code for a zero scale factor.
24316 (vsx_xvcvdpuxds_scale): Likewise.
24317
24318 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24319
24320 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24321 if show_ruler_p was set on the context.
24322 (layout::show_ruler): New method.
24323 * diagnostic.h (struct diagnostic_context): Add field
24324 "show_ruler_p".
24325
24326 2016-05-10 Richard Biener <rguenther@suse.de>
24327
24328 PR tree-optimization/71039
24329 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24330 (chk_uses): New function.
24331 (propagate_with_phi): Verify we can safely replicate the lhs of an
24332 aggregate assignment on all incoming edges.
24333
24334 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24335
24336 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24337 Forward declare.
24338 (rx_atomic_sequence): New class.
24339 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24340 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24341 non-inline.
24342 (rx_atomic_sequence::rx_atomic_sequence,
24343 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24344 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24345 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24346 CTRLREG_INTB): New constants.
24347 (FETCHOP): New code iterator.
24348 (fethcop_name, fetchop_name2): New iterator code attributes.
24349 (QIHI): New mode iterator.
24350 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24351 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24352 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24353
24354 2016-05-10 Martin Liska <mliska@suse.cz>
24355
24356 * tree-inline.c (remap_dependence_clique): Do not remap
24357 debugging statements.
24358
24359 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24360
24361 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24362 ("*fixuns_truncdfdi2_z13")
24363 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24364 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24365 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24366
24367 2016-05-10 Richard Biener <rguenther@suse.de>
24368
24369 PR tree-optimization/70497
24370 PR tree-optimization/28367
24371 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24372 split out from ...
24373 (visit_reference_op_load): ... here.
24374 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24375 with simplified BIT_FIELD_REFs.
24376 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24377 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24378 correctly.
24379
24380 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24381
24382 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24383 documentation comment. For BLOCK nodes, add a
24384 DW_AT_abstract_origin attribute that points to the DIE generated
24385 for the origin BLOCK.
24386 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24387 blocks from inlined functions.
24388
24389 2016-05-10 Alan Modra <amodra@gmail.com>
24390
24391 PR target/70947
24392 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24393 regrename modifying insns saving lr before __morestack call.
24394 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24395 insns restoring lr after __morestack call.
24396
24397 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24398
24399 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24400 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24401 expanders.
24402 * config/i386/sse.md (vec_interleave_high<mode>,
24403 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24404 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24405
24406 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24407
24408 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24409 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24410 parallel reassociation for power8 and forward.
24411
24412 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24413
24414 * config/i386/i386.md (absneg splitters with general regs): Use
24415 general_reg_operand predicate.
24416 (btsq peephole2): Use x86_64_immediate_operand to check if new
24417 value is suitable for immediate operand. Generate emitted insn
24418 using RTL expressions.
24419 (btcq peephole2): Ditto.
24420 (btrq peephole2): Ditto. Generate correct immediate operand
24421 for AND masking.
24422
24423 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24424
24425 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24426 bitpos.
24427
24428 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24429
24430 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24431 pointer dereference.
24432
24433 2016-05-09 Richard Biener <rguenther@suse.de>
24434
24435 PR tree-optimization/70985
24436 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24437 op0 isn't a gimple register.
24438
24439 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24440
24441 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24442 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24443 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24444 (i6400_fpu_mult): New cpu units.
24445 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24446 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24447 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24448 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24449 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24450 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24451 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24452 (i6400_msa_long_float4, i6400_msa_long_float5)
24453 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24454 (i6400_msa_fdiv_sf): New reservations.
24455 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24456 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24457 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24458 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24459 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24460 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24461 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24462 (msa_short_store4, msa_long_load, msa_short_store)
24463 (msa_long_logic, msa_long_float2, msa_long_float4)
24464 (msa_long_float5, msa_long_float8, msa_long_mult)
24465 (msa_long_fdiv, msa_long_div): New reservations.
24466
24467 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24468 Sameera Deshpande <sameera.deshpande@imgtec.com>
24469 Matthew Fortune <matthew.fortune@imgtec.com>
24470 Graham Stott <graham.stott@imgtec.com>
24471 Chao-ying Fu <chao-ying.fu@imgtec.com>
24472
24473 * config.gcc: Add MSA header file for mips*-*-* target.
24474 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24475 (Ubv8i, Urv8): New constraints.
24476 * config/mips/mips-ftypes.def: Add function types for MSA
24477 builtins.
24478 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24479 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24480 * config/mips/mips-msa.md: New file.
24481 * config/mips/mips-protos.h
24482 (mips_split_128bit_const_insns): New prototype.
24483 (mips_msa_idiv_insns): Likewise.
24484 (mips_split_128bit_move): Likewise.
24485 (mips_split_128bit_move_p): Likewise.
24486 (mips_split_msa_copy_d): Likewise.
24487 (mips_split_msa_insert_d): Likewise.
24488 (mips_split_msa_fill_d): Likewise.
24489 (mips_expand_msa_branch): Likewise.
24490 (mips_const_vector_same_val_p): Likewise.
24491 (mips_const_vector_same_bytes_p): Likewise.
24492 (mips_const_vector_same_int_p): Likewise.
24493 (mips_const_vector_shuffle_set_p): Likewise.
24494 (mips_const_vector_bitimm_set_p): Likewise.
24495 (mips_const_vector_bitimm_clr_p): Likewise.
24496 (mips_msa_vec_parallel_const_half): Likewise.
24497 (mips_msa_output_division): Likewise.
24498 (mips_ldst_scaled_shift): Likewise.
24499 (mips_expand_vec_cond_expr): Likewise.
24500 * config/mips/mips.c (enum mips_builtin_type): Add
24501 MIPS_BUILTIN_MSA_TEST_BRANCH.
24502 (mips_gen_const_int_vector_shuffle): New prototype.
24503 (mips_const_vector_bitimm_set_p): New function.
24504 (mips_const_vector_bitimm_clr_p): Likewise.
24505 (mips_const_vector_same_val_p): Likewise.
24506 (mips_const_vector_same_bytes_p): Likewise.
24507 (mips_const_vector_same_int_p): Likewise.
24508 (mips_const_vector_shuffle_set_p): Likewise.
24509 (mips_symbol_insns): Forbid loading symbols via immediate for
24510 MSA.
24511 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24512 stores.
24513 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24514 MSA.
24515 (mips_lx_address_p): Add support load indexed address for MSA.
24516 (mips_address_insns): Add calculation of instructions needed for
24517 stores and loads for MSA.
24518 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24519 CONST_VECTOR for MSA and let it fall through.
24520 (mips_ldst_scaled_shift): New function.
24521 (mips_subword_at_byte): Likewise.
24522 (mips_msa_idiv_insns): Likewise.
24523 (mips_legitimize_move): Validate MSA moves.
24524 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24525 calculation of costs for MSA division.
24526 (mips_split_move_p): Check if MSA moves need splitting.
24527 (mips_split_move): Split MSA moves if necessary.
24528 (mips_split_128bit_move_p): New function.
24529 (mips_split_128bit_move): Likewise.
24530 (mips_split_msa_copy_d): Likewise.
24531 (mips_split_msa_insert_d): Likewise.
24532 (mips_split_msa_fill_d): Likewise.
24533 (mips_output_move): Handle MSA moves.
24534 (mips_expand_msa_branch): New function.
24535 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24536 Reinstate 'y' modifier.
24537 (mips_file_start): Add MSA .gnu_attribute.
24538 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24539 FPRs.
24540 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24541 (mips_class_max_nregs): Add register size for MSA supported mode.
24542 (mips_cannot_change_mode_class): Allow conversion between MSA
24543 vector modes and TImode.
24544 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24545 instruction.
24546 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24547 (mips_preferred_simd_mode): Add preffered modes for MSA.
24548 (mips_vector_mode_supported_p): Add MSA supported modes.
24549 (mips_autovectorize_vector_sizes): New function.
24550 (mips_msa_output_division): Likewise.
24551 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24552 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24553 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24554 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24555 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24556 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24557 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24558 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24559 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24560 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24561 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24562 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24563 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24564 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24565 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24566 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24567 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24568 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24569 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24570 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24571 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24572 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24573 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24574 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24575 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24576 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24577 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24578 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24579 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24580 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24581 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24582 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24583 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24584 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24585 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24586 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24587 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24588 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24589 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24590 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24591 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24592 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24593 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24594 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24595 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24596 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24597 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24598 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24599 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24600 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24601 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24602 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24603 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24604 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24605 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24606 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24607 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24608 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24609 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24610 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24611 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24612 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24613 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24614 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24615 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24616 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24617 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24618 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24619 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24620 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24621 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24622 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24623 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24624 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24625 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24626 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24627 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24628 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24629 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24630 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24631 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24632 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24633 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24634 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24635 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24636 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24637 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24638 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24639 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24640 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24641 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24642 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24643 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24644 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24645 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24646 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24647 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24648 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24649 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24650 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24651 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24652 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24653 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24654 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24655 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24656 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24657 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24658 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24659 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24660 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24661 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24662 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24663 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24664 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24665 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24666 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24667 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24668 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24669 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24670 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24671 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24672 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24673 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24674 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24675 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24676 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24677 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24678 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24679 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24680 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24681 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24682 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24683 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24684 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24685 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24686 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24687 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24688 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24689 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24690 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24691 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24692 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24693 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24694 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24695 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24696 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24697 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24698 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24699 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24700 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24701 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24702 move_v builtins.
24703 (mips_get_builtin_decl_index): New array.
24704 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24705 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24706 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24707 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24708 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24709 array.
24710 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24711 hook.
24712 (mips_expand_builtin_insn): Prepare operands for
24713 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24714 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24715 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24716 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24717 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24718 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24719 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24720 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24721 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24722 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24723 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24724 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24725 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24726 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24727 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24728 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24729 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24730 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24731 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24732 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24733 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24734 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24735 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24736 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24737 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24738 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24739 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24740 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24741 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24742 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24743 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24744 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24745 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24746 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24747 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24748 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24749 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24750 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24751 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24752 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24753 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24754 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24755 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24756 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24757 These are set implicitly and an error is reported if overridden.
24758 (mips_expand_builtin_msa_test_branch): New function.
24759 (mips_expand_msa_shuffle): Likewise.
24760 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24761 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24762 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24763 (mips_expand_vec_unpack): Add support for MSA.
24764 (mips_expand_vector_init): Likewise.
24765 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24766 instead of const0_rtx.
24767 (mips_msa_vec_parallel_const_half): New function.
24768 (mips_gen_const_int_vector): Likewise.
24769 (mips_gen_const_int_vector_shuffle): Likewise.
24770 (mips_expand_msa_cmp): Likewise.
24771 (mips_expand_vec_cond_expr): Likewise.
24772 * config/mips/mips.h
24773 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24774 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24775 specified.
24776 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24777 (ISA_HAS_MSA): New macro.
24778 (UNITS_PER_MSA_REG): Likewise.
24779 (BITS_PER_MSA_REG): Likewise.
24780 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24781 (MSA_REG_FIRST): New macro.
24782 (MSA_REG_LAST): Likewise.
24783 (MSA_REG_NUM): Likewise.
24784 (MSA_REG_P): Likewise.
24785 (MSA_REG_RTX_P): Likewise.
24786 (MSA_SUPPORTED_MODE_P): Likewise.
24787 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24788 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24789 * config/mips/mips.md: Include mips-msa.md.
24790 (alu_type): Add simd_add.
24791 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
24792 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
24793 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
24794 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
24795 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
24796 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
24797 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
24798 simd_move, simd_load, simd_store. Choose "multi" for moves
24799 for "qword_mode".
24800 (qword_mode): New attribute.
24801 (insn_count): Add instruction count for quad moves.
24802 Increase the count for MIPS SIMD division.
24803 (UNITMODE): Add UNITMODEs for vector types.
24804 (addsub): New code iterator.
24805 * config/mips/mips.opt (mmsa): New option.
24806 * config/mips/msa.h: New file.
24807 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
24808 specified.
24809 * config/mips/mti-linux.h: Likewise.
24810 * config/mips/predicates.md
24811 (const_msa_branch_operand): New constraint.
24812 (const_uimm3_operand): Likewise.
24813 (const_uimm4_operand): Likewise.
24814 (const_uimm5_operand): Likewise.
24815 (const_uimm8_operand): Likewise.
24816 (const_imm5_operand): Likewise.
24817 (aq10b_operand): Likewise.
24818 (aq10h_operand): Likewise.
24819 (aq10w_operand): Likewise.
24820 (aq10d_operand): Likewise.
24821 (const_m1_operand): Likewise.
24822 (reg_or_m1_operand): Likewise.
24823 (const_exp_2_operand): Likewise.
24824 (const_exp_4_operand): Likewise.
24825 (const_exp_8_operand): Likewise.
24826 (const_exp_16_operand): Likewise.
24827 (const_vector_same_val_operand): Likewise.
24828 (const_vector_same_simm5_operand): Likewise.
24829 (const_vector_same_uimm5_operand): Likewise.
24830 (const_vector_same_uimm6_operand): Likewise.
24831 (const_vector_same_uimm8_operand): Likewise.
24832 (par_const_vector_shf_set_operand): Likewise.
24833 (reg_or_vector_same_val_operand): Likewise.
24834 (reg_or_vector_same_simm5_operand): Likewise.
24835 (reg_or_vector_same_uimm6_operand): Likewise.
24836 * doc/extend.texi (MIPS SIMD Architecture Functions): New
24837 section.
24838 * doc/invoke.texi (-mmsa): Document new option.
24839
24840 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24841
24842 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
24843 * configure: Regenerate.
24844 * config.in: Regenerate.
24845 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
24846 on -fvtable-verify.
24847 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
24848 (ENDFILE_VTV_SPEC): Define.
24849
24850 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
24851
24852 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
24853 registers in all interrupt handlers if necessary.
24854 (rl78_option_override): Add warning.
24855 (MUST_SAVE_MDUC_REGISTERS): New macro.
24856 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
24857 * config/rl78/rl78.c (check_mduc_usage): New function.
24858 (mduc_regs): New structure to hold MDUC register data.
24859 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
24860 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
24861 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
24862 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
24863 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
24864 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
24865
24866 2016-05-09 Bin Cheng <bin.cheng@arm.com>
24867
24868 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
24869 (tree-ssa-loop-niter.h): Ditto.
24870 (idx_within_array_bound, ref_within_array_bound): New functions.
24871 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
24872 Factor out check on writable base object to ...
24873 (base_object_writable): ... here.
24874
24875 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24876
24877 * config/arm/arm.md (probe_stack): Add modes to set source
24878 and destination.
24879
24880 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
24881
24882 * regrename.c (base_reg_class_for_rename): New static function.
24883 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
24884
24885 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
24886
24887 * cgraph.c (thunk_adjust): Export.
24888 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
24889 * cgraphunit.c (thunk_adjust): Export.
24890 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
24891 thunks.
24892 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
24893 inlinable.
24894 * tree-inline.c (expand_call_inline): Expand thunks inline.
24895
24896 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
24897
24898 PR target/70998
24899 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
24900 (*sse2_vd_cvtss2sd): Ditto.
24901 * config/i386/i386.md
24902 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
24903 Generate *sse2_vd_cvtsd2ss pattern.
24904 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
24905 Generate *sse2_vd_cvtss2sd pattern.
24906
24907 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24908
24909 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
24910 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
24911 users.
24912
24913 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
24914
24915 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
24916 * config/sh/sh.c: Define and declare variables on first use throughout
24917 the file.
24918 (current_function_interrupt): Change to bool type.
24919 (frame_insn): Rename to emit_frame_insn and update users.
24920 (push_regs): Use bool for 'interrupt_handler' argument.
24921 (save_schedule_s): Remove.
24922 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
24923 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
24924 targetm.asm_out.unaligned_op.di.
24925 (gen_far_branch): Remove redundant forward declaration.
24926 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
24927 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
24928 (sh_set_return_address, sh_function_ok_for_sibcall,
24929 scavenge_reg): Update comments.
24930 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
24931 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
24932 (sh_attr_renesas_p): Remove unnecessary parentheses.
24933 (branch_dest): Simplify.
24934 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
24935 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
24936 (CUMULATIVE_ARGS): Change macro to typedef.
24937 (current_function_interrupt): Change to bool type.
24938 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
24939 Surround with __cplusplus ifdef.
24940 (sh_compare_op0, sh_compare_op1): Remove.
24941 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
24942
24943 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
24944
24945 * config/arm/arm.md (arch): Add neon.
24946 (arch_enabled): Return yes for arch neon when TARGET_NEON.
24947 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
24948 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
24949 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24950 attributes for alt renumbering. Mark alt 3 as non-predicable.
24951 (thumb2_movdf_vfp): Likewise.
24952
24953 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24954
24955 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24956 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24957 (*andqi_1): Add preferred_for_speed attribute to disparage
24958 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24959 (*<code>qi_1): Ditto.
24960 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24961 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24962 (*ashlqi3_1): Ditto.
24963 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24964 Add preferred_for_size attribute to disparage alternative 0 and
24965 preferred_for_speed attribute to disparage alternative 1 for
24966 TARGET_PARTIAL_REG_STALL targets.
24967
24968 2016-05-07 Tom de Vries <tom@codesourcery.com>
24969
24970 PR tree-optimization/70956
24971 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24972 def.
24973
24974 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24975
24976 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24977 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24978 * config/sh/sh.md (branch_zero): Remove define_attr.
24979 (define_delay): Disable delay slot if branch distance is one insn.
24980
24981 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24982
24983 * config/i386/i386.md (LEAMODE): New mode attribute.
24984 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24985 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24986 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24987 operand 2 predicate.
24988 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24989 (*lea<mode>_general_3): Ditto.
24990 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24991
24992 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24993
24994 * genmddump.c (main): Convert argv from char ** to const char **.
24995
24996 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24997
24998 * coretypes.h (OVERRIDE): New macro.
24999 (FINAL): New macro.
25000
25001 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25002
25003 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25004 allow coalescing if the types are compatible.
25005
25006 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25007
25008 * pass_manager.h (pass_manager::register_pass_name): New method.
25009 (pass_manager::get_pass_by_name): New method.
25010 (pass_manager::create_pass_tab): New method.
25011 (pass_manager::m_name_to_pass_map): New field.
25012 * passes.c (name_to_pass_map): Delete global in favor of field
25013 "m_name_to_pass_map" of pass_manager.
25014 (register_pass_name): Rename from a function to...
25015 (pass_manager::register_pass_name): ...this method, updating
25016 for renaming of global "name_to_pass_map" to field
25017 "m_name_to_pass_map".
25018 (create_pass_tab): Rename from a function to...
25019 (pass_manager::create_pass_tab): ...this method, updating
25020 for renaming of global "name_to_pass_map" to field.
25021 (get_pass_by_name): Rename from a function to...
25022 (pass_manager::get_pass_by_name): ...this method.
25023 (enable_disable_pass): Convert use of get_pass_by_name to
25024 a method call, locating the pass_manager singleton.
25025
25026 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25027
25028 * genattr-common.c (main): Convert argv from char ** to const char **.
25029 * genattr.c (main): Likewise.
25030 * genattrtab.c (main): Likewise.
25031 * genautomata.c (initiate_automaton_gen): Likewise.
25032 (main): Likewise.
25033 * gencodes.c (main): Likewise.
25034 * genconditions.c (main): Likewise.
25035 * genconfig.c (main): Likewise.
25036 * genconstants.c (main): Likewise.
25037 * genemit.c (main): Likewise.
25038 * genenums.c (main): Likewise.
25039 * genextract.c (main): Likewise.
25040 * genflags.c (main): Likewise.
25041 * genmddeps.c (main): Likewise.
25042 * genopinit.c (main): Likewise.
25043 * genoutput.c (main): Likewise.
25044 * genpeep.c (main): Likewise.
25045 * genpreds.c (main): Likewise.
25046 * genrecog.c (main): Likewise.
25047 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25048 (init_rtx_reader_args): Likewise.
25049 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25050 (init_rtx_reader_args): Likewise.
25051 * gentarget-def.c (main): Likewise.
25052 * read-md.c (read_md_files): Likewise.
25053 * read-md.h (read_md_files): Likewise.
25054
25055 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25056
25057 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25058 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25059 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25060 Remove unused predicate.
25061 (register_and_not_fp_reg_operand): Ditto.
25062
25063 2016-05-06 Martin Liska <mliska@suse.cz>
25064
25065 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25066 instead of vec as the vector is local to the function.
25067
25068 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25069
25070 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25071 avx512bw alternative.
25072
25073 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25074 before the ashr<mode>3 pattern.
25075
25076 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25077 v instead of x in vex or maybe_vex alternatives, use
25078 maybe_evex instead of vex in prefix.
25079
25080 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25081 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25082 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25083 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25084 in prefix.
25085
25086 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25087 v instead of x in vex or maybe_vex alternatives, use
25088 maybe_evex instead of vex in prefix.
25089
25090 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25091 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25092 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25093 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25094 alternatives, use maybe_evex instead of vex in prefix.
25095
25096 * config/i386/sse.md (vec_interleave_lowv4sf,
25097 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25098 v instead of x in vex or maybe_vex alternatives, use
25099 maybe_evex instead of vex in prefix.
25100
25101 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25102 v instead of x in vex or maybe_vex alternatives, use
25103 maybe_evex instead of vex in prefix.
25104
25105 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25106 v constraint instead of x.
25107
25108 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25109
25110 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25111 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25112 equality first.
25113
25114 2016-05-06 Richard Biener <rguenther@suse.de>
25115
25116 PR tree-optimization/70948
25117 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25118 Properly clobber all fields of va_list for __builtin_va_start.
25119
25120 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25121
25122 PR debug/70935
25123 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25124 loop latch destination.
25125
25126 2016-05-06 Martin Liska <mliska@suse.cz>
25127
25128 * tree-ssa-uninit.c: Apply manual changes
25129 to the GNU coding style.
25130 (prune_uninit_phi_opnds): Rename from
25131 prune_uninit_phi_opnds_in_unrealizable_paths.
25132
25133 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25134
25135 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25136 mspace): Remove deprecated options.
25137 * doc/invoke.texi (SH options): Remove -mspace.
25138
25139 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25140
25141 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25142
25143 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25144
25145 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25146 corresponding combine split pattern.
25147
25148 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25149
25150 PR target/58219
25151 * config/sh/predicates.md (long_displacement_mem_operand): New.
25152 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25153 Add movi20, movi20s alternatives. Adjust length attribute for
25154 alternatives.
25155 (movsi_ie): Allow for any FPU. Adjust length attribute for
25156 alternatives.
25157 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25158 attribute for alternatives.
25159 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25160 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25161 length attribute for alternatives.
25162
25163 2016-05-06 Richard Biener <rguenther@suse.de>
25164
25165 PR tree-optimization/70960
25166 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25167
25168 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25169
25170 PR target/52933
25171 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25172 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25173
25174 2016-05-06 Marek Polacek <polacek@redhat.com>
25175
25176 PR sanitizer/70875
25177 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25178
25179 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25180
25181 PR target/54089
25182 * config/sh/sh.md (*rotcr): Add another variant.
25183
25184 2016-05-06 Richard Biener <rguenther@suse.de>
25185
25186 PR middle-end/70931
25187 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25188
25189 2016-05-06 Richard Biener <rguenther@suse.de>
25190
25191 PR middle-end/70941
25192 * fold-const.c (split_tree): Always convert to the original type
25193 before negating.
25194
25195 2016-05-06 Richard Biener <rguenther@suse.de>
25196
25197 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25198 (fwprop_addr): Likewise.
25199
25200 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25201
25202 PR target/70873
25203 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25204 New prototype.
25205 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25206 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25207 the splitter condition.
25208 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25209 the splitter condition.
25210 (FP float_extend load splitter): Ditto.
25211
25212 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25213
25214 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25215 to REGNO in all peephole2 patterns.
25216 (post-reload splitters): Change true_regnum to REGNO in
25217 post-reload splitters.
25218 (zero_extend splitters): Use general_reg_operand and
25219 nonimmediate_gr_operand predicates.
25220
25221 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25222
25223 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25224 v constraint instead of x.
25225
25226 2016-05-05 Alan Modra <amodra@gmail.com>
25227
25228 PR target/68662
25229 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25230 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25231 TARGET_NO_FP_IN_TOC for -mrelocatable.
25232 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25233 TARGET_RELOCATABLE test.
25234 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25235 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25236 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25237 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25238 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25239 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25240 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25241 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25242 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25243 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25244 Likewise.
25245 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25246 (rs6000_stack_info): Likewise.
25247 (rs6000_elf_asm_out_constructor): Likewise.
25248 (rs6000_elf_asm_out_destructor): Likewise.
25249 (rs6000_elf_declare_function_name): Likewise.
25250 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25251 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25252 Don't define.
25253
25254 2016-05-05 Alan Modra <amodra@gmail.com>
25255
25256 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25257
25258 2016-05-05 Alan Modra <amodra@gmail.com>
25259
25260 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25261 out-of-line gpr restore for one or two regs if that would add
25262 a save of lr.
25263
25264 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25265
25266 PR target/70873
25267 * config/i386/i386.md
25268 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25269 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25270 as operand 0 predicate.
25271 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25272 Ditto.
25273 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25274 Ditto. Emit the pattern using RTX.
25275
25276 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25277 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25278 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25279 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25280 Ditto.
25281 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25282 sse_reg_operand as operand 0 predicate.
25283
25284 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25285 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25286 instead of gen_rtx_REG.
25287 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25288 Ditto.
25289
25290 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25291
25292 * function.c (emit_use_return_register_into_block): Delete.
25293 (gen_return_pattern): Delete.
25294 (emit_return_into_block): Delete.
25295 (active_insn_between): Delete.
25296 (convert_jumps_to_returns): Delete.
25297 (emit_return_for_exit): Delete.
25298 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25299 simple_return for shrink-wrapped blocks.
25300 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25301 end of blocks that need one.
25302 (get_unconverted_simple_return): Delete.
25303 (convert_to_simple_return): Delete.
25304 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25305 (convert_to_simple_return): Ditto.
25306
25307 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25308
25309 * cfgcleanup.c (bb_is_just_return): New function.
25310 (try_optimize_cfg): Simplify jumps to return, branches to return,
25311 and branches around return.
25312
25313 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25314
25315 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25316 branch to a return.
25317
25318 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25319
25320 PR c++/70906
25321 PR c++/70933
25322 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25323 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25324 assert flags & OEP_HASH_CHECK, instead of asserting it
25325 never happens. Handle TARGET_EXPR.
25326 * fold-const.c (operand_equal_p): For hash verification,
25327 or in OEP_HASH_CHECK into flags.
25328
25329 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25330
25331 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25332 comment.
25333 (compute_samebase_partition_bases): Fix typo.
25334
25335 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25336
25337 * config/i386/sse.md (vec_interleave_highv8sf,
25338 vec_interleave_lowv8sf, vec_interleave_highv4df,
25339 vec_interleave_lowv4df): Remove constraints from expanders.
25340
25341 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25342
25343 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25344
25345 * tree-inline.c (expand_call_inline): Fix path dealing with
25346 making lhs of call statement undefined.
25347
25348 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25349
25350 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25351 Check availability on NODE, too.
25352 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25353 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25354 (varpool_node::call_for_symbol_and_aliase): Likewise.
25355 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25356 (propagate_pure_const): Propagate across interposable functions, too.
25357 (skip_function_for_local_pure_const): Do not skip interposable bodies
25358 with aliases.
25359 (pass_local_pure_const::execute): Update.
25360
25361 2016-05-04 Marek Polacek <polacek@redhat.com>
25362
25363 * doc/invoke.texi: Document -Wdangling-else.
25364
25365 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25366
25367 * config.gcc: Error out when conflicting multilib is detected. Do not
25368 loop over multilibs since no combination is legal.
25369
25370 2016-05-04 Alan Modra <amodra@gmail.com>
25371
25372 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25373 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25374 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25375 Align .toc.
25376
25377 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25378
25379 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25380 Clean up p5600 comments.
25381
25382 2016-05-04 Richard Biener <rguenther@suse.de>
25383
25384 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25385 constructor simplifications.
25386 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25387
25388 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25389
25390 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25391 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25392 result.set_rtx is null instead of aborting.
25393 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25394 Always enable.
25395 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25396 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25397 *mov<mode>_store_postinc): New patterns.
25398
25399 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25400
25401 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25402 as commutative. Check both conversions are NOP.
25403 ((A & B) OP (C & B)): Remove.
25404
25405 2016-05-04 Alan Modra <amodra@gmail.com>
25406
25407 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25408
25409 2016-05-04 Alan Modra <amodra@gmail.com>
25410
25411 PR target/70866
25412 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25413 when cr2,3,4 are all fixed regs.
25414
25415 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25416
25417 PR rtl-optimization/57193
25418 * opts.c (default_options_table): Revert OPT_frename_registers change.
25419 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25420
25421 2016-05-03 Martin Sebor <msebor@redhat.com>
25422
25423 PR c++/66561
25424 * builtins.c (fold_builtin_FILE): New function.
25425 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25426 (fold_builtin_0): Call them.
25427 * gimplify.c (gimplify_call_expr): Remove the handling of
25428 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25429
25430 PR c++/66561
25431 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25432 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25433 constants.
25434
25435 PR c++/66639
25436 * doc/extend.texi (Function Names as Strings): Update __func__,
25437 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25438 constants.
25439
25440 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25441 Richard Biener <rguenther@suse.de>
25442
25443 PR tree-optimization/70916
25444 * tree-if-conv.c: Include cfganal.h.
25445 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25446 and remove_fake_exit_edges around the optimization pass.
25447
25448 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25449
25450 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25451 (cgraph_edge::make_direct): Likewise.
25452 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25453 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25454 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25455 (CIF_THUNK): New code.
25456 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25457 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25458 (compute_inline_parameters): Set inline_failed for thunks.
25459 (inline_analyze_function): Cleanup.
25460 * ipa-inline.c (can_inline_edge_p): Do not deal with
25461 call_stmt_cannot_inline_p.
25462 (can_early_inline_edge_p): Likewise.
25463 (early_inliner): Initialize inline_failed.
25464 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25465
25466 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25467
25468 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25469 from nonimm_ssenomem_operand.
25470 (nonimm_ssenomem_operand): New predicate.
25471 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25472 as operand 0 predicate.
25473 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25474 Disable unsupported alternatives using "enabled" attribute.
25475 Use register_ssemem_operand as operand 0 predicate.
25476 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25477
25478 2016-05-03 Marek Polacek <polacek@redhat.com>
25479
25480 PR c/70859
25481 * input.c (expansion_point_location): New function.
25482 * input.h (expansion_point_location): Declare.
25483
25484 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25485
25486 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25487 occurence with frame_offset_ ones.
25488
25489 2016-05-03 Alan Modra <amodra@gmail.com>
25490
25491 PR rtl-optimization/70890
25492 * ira.c (combine_and_move_insns): When moving def_insn, remove
25493 equivs on use_insn.
25494
25495 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25496
25497 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25498 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25499 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25500 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25501
25502 2016-05-03 Alan Modra <amodra@gmail.com>
25503
25504 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25505 for SAVE_MULTIPLE/STORE_MULTIPLE.
25506
25507 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25508
25509 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25510 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25511
25512 2016-05-03 Richard Biener <rguenther@suse.de>
25513
25514 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25515 default true.
25516 (gimplify_arg): Likewise.
25517 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25518 re-writing the result to a decl if required.
25519 (internal_get_tmp_var): Add allow_ssa parameter
25520 and override into_ssa with it.
25521 (get_formal_tmp_var): Adjust.
25522 (get_initialized_tmp_var): Add allow_ssa parameter.
25523 (gimplify_arg): Add allow_ssa parameter and avoid generating
25524 SSA names for the result false.
25525 (gimplify_call_expr): If the call may return twice do not
25526 gimplify parameters into SSA.
25527 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25528 (gimplify_modify_expr): Adjust assert. For noreturn calls
25529 with a SSA name LHS adjust its def.
25530 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25531 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25532 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25533 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25534 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25535 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25536 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25537 (optimize_target_teams): Do not allow SSA names for clause operands.
25538 (gimplify_expr): Likewise for where we mark the result addressable.
25539 * passes.def (pass_init_datastructures): Remove.
25540 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25541 (rewrite_stmt): Likewise.
25542 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25543 (replace_locals_op): Replace SSA names.
25544 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25545 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25546 * cgraph.c (release_function_body): Free CFG annotations only
25547 when we have a CFG. Simplify.
25548 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25549 force_gimple_operand instead of get_initialized_tmp_var.
25550 * tree-pass.h (make_pass_init_datastructures): Remove.
25551 * tree-ssa.c (execute_init_datastructures): Remove.
25552 (pass_data_init_datastructures): Likewise.
25553 (class pass_init_datastructures): Likewise.
25554 (make_pass_init_datastructures): Likewise.
25555 * omp-low.c (create_omp_child_function): Init SSA data structures.
25556 (grid_expand_target_grid_body): Likewise.
25557 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25558 name before adding it to names_to_release.
25559 (remove_bb): Always release SSA defs.
25560 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25561 before dereferencing it.
25562 * cgraphunit.c (init_lowered_empty_function): Always
25563 int SSA data structures.
25564 * tree-ssanames.c (release_defs): Remove assert that we are in
25565 SSA form.
25566 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25567
25568 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25569 Uros Bizjak <ubizjak@gmail.com>
25570
25571 PR rtl-optimization/70467
25572 * config/i386/predicates.md (x86_64_hilo_int_operand,
25573 x86_64_hilo_general_operand): New predicates.
25574 * config/i386/constraints.md (Wd): New constraint.
25575 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25576 (general_hilo_operand): New mode attr.
25577 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25578 instead of <general_operand>.
25579 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25580 x86_64_hilo_general_operand instead of <general_operand>.
25581
25582 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25583
25584 PR tree-optimization/70916
25585 * tree-if-conv.c (constant_or_ssa_name): Removed.
25586 (fold_build_cond_expr): Use is_gimple_val instead of
25587 constant_or_ssa_name.
25588
25589 PR tree-optimization/70916
25590 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25591 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25592
25593 PR target/49244
25594 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25595 (optimize_atomic_bit_test_and): New function.
25596 (pass_fold_builtins::execute): Use it.
25597 * optabs.def (atomic_bit_test_and_set_optab,
25598 atomic_bit_test_and_complement_optab,
25599 atomic_bit_test_and_reset_optab): New optabs.
25600 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25601 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25602 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25603 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25604 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25605 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25606 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25607 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25608 atomic_bit_test_and_complement@var{mode},
25609 atomic_bit_test_and_reset@var{mode}): Document.
25610 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25611 atomic_bit_test_and_complement<mode>,
25612 atomic_bit_test_and_reset<mode>): New expanders.
25613 (atomic_bit_test_and_set<mode>_1,
25614 atomic_bit_test_and_complement<mode>_1,
25615 atomic_bit_test_and_reset<mode>_1): New insns.
25616
25617 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25618
25619 PR rtl-optimization/70687
25620 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25621 instead of unsigned HOST_WIDE_INT.
25622
25623 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25624
25625 PR rtl-optimization/44281
25626 * hard-reg-set.h (struct target_hard_regs): New field
25627 x_fixed_nonglobal_reg_set.
25628 (fixed_nonglobal_reg_set): New macro.
25629 * reginfo.c (init_reg_sets_1): Initialize it.
25630 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25631 of fixed_reg_set.
25632 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25633
25634 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25635
25636 PR tree-optimization/56541
25637 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25638 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25639 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25640 (any_complicated_phi): new static variable.
25641 (aggressive_if_conv): delete.
25642 (if_convertible_phi_p): support phis with more than two arguments.
25643 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25644 critical pred edges.
25645 (ifcvt_split_critical_edges): support phis with more than two
25646 arguments by checking new parameter. only split critical edges
25647 if needed.
25648 (tree_if_conversion): handle simd pragma marked loop using new
25649 local variable aggressive_if_conv. check any_complicated_phi.
25650
25651 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25652
25653 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25654 before using it.
25655
25656 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25657
25658 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25659 cbase.
25660
25661 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25662
25663 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25664 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25665 define_insn_and_split.
25666 (mulsi3_i): New define_insn_and_split.
25667 (mulsi3_call): Convert to define_insn.
25668 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25669 Remove constraints.
25670
25671 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25672
25673 * machmode.h (mode_complex): Add support to give the complex mode
25674 for a given mode.
25675 (GET_MODE_COMPLEX_MODE): Likewise.
25676 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25677 stored by build_complex_type and gfc_build_complex_type instead of
25678 trying to figure out the appropriate mode based on the size. Raise
25679 an assertion error, if the type was not set.
25680 * genmodes.c (struct mode_data): Add field for the complex type of
25681 the given type.
25682 (blank_mode): Likewise.
25683 (make_complex_modes): Remember the complex mode created in the
25684 base type.
25685 (emit_mode_complex): Write out the mode_complex array to map a
25686 type mode to the complex version.
25687 (emit_insn_modes_c): Likewise.
25688 * tree.c (build_complex_type): Set the complex type to use before
25689 calling layout_type.
25690 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25691 support for __float128 complex datatypes.
25692 (rs6000_hard_regno_mode_ok): Likewise.
25693 (rs6000_setup_reg_addr_masks): Likewise.
25694 (rs6000_complex_function_value): Likewise.
25695 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25696 __float128 and __ibm128 complex.
25697 (FLOAT128_IBM_P): Likewise.
25698 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25699 * doc/extend.texi (Additional Floating Types): Document that
25700 -mfloat128 must be used to enable __float128. Document complex
25701 __float128 and __ibm128 support.
25702
25703 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25704
25705 PR target/49244
25706 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25707 char/short arguments promoted to int because of promote_prototypes.
25708
25709 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25710
25711 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25712 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25713 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25714 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25715 alternatives using "enabled" attribute. Use register_ssemem_operand
25716 as operand 1 predicate.
25717 (*cmpi<unord>xf_i387): Split XFmode pattern from
25718 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25719 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25720 *absneg<mode>2_i387. Disable unsupported alternatives using
25721 "enabled" attribute.
25722 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25723
25724 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25725
25726 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25727 marker.
25728 (oacc_loop_process): Check mask for loop termination.
25729
25730 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25731
25732 * cif-code.def (CIF_THUNK): Add.
25733 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25734 accidental change.
25735
25736 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25737
25738 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25739 (dump_inline_summary): Dump it.
25740 (fp_expression_p): New predicate.
25741 (estimate_function_body_sizes): Use it.
25742 (inline_merge_summary): Merge fp_expressions.
25743 (inline_read_section): Read fp_expressions.
25744 (inline_write_summary): Write fp_expressions.
25745 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25746 codegen boundary if either caller or callee is !fp_expressions.
25747 * ipa-inline.h (inline_summary): Add fp_expressions.
25748 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25749 to fp_expressions be sure the fp generation flags are updated.
25750
25751 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25752
25753 PR rtl-optimization/70467
25754 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25755
25756 PR rtl-optimization/70467
25757 * ipa-pure-const.c (check_call): Handle internal calls even in
25758 ipa mode like in local mode.
25759
25760 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25761
25762 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25763
25764 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25765
25766 * match.pd (X u< X, X u> X): New transformations.
25767
25768 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25769
25770 * flag-types.h (enum warn_strict_overflow_code): Move ...
25771 * coretypes.h: ... here.
25772 * fold-const.h (fold_overflow_warning): Declare.
25773 * fold-const.c (fold_overflow_warning): Make non-static.
25774 (fold_comparison): Move the transformation of X +- C1 CMP C2
25775 into X CMP C2 -+ C1 ...
25776 * match.pd: ... here.
25777 * gimple-fold.c (fold_stmt_1): Protect with
25778 fold_defer_overflow_warnings.
25779
25780 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25781
25782 * omp-low.c (struct oacc_loop): Add 'inner' field.
25783 (new_oacc_loop_raw): Initialize it to zero.
25784 (oacc_loop_fixed_partitions): Initialize it.
25785 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25786 available partitioning.
25787
25788 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25789
25790 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
25791 register_operand.
25792 (umulsidi3): Likewise.
25793 (indirect_jump): Fix jump instruction assembly patterns.
25794
25795 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
25796
25797 PR target/70860
25798 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
25799 (nvptx_function_value): Assert non-NULL cfun.
25800
25801 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
25802
25803 PR rtl-optimization/70886
25804 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
25805
25806 * cselib.h (rtx_equal_for_cselib_1): Declare.
25807 (rtx_equal_for_cselib_p: New inline function.
25808 * cselib.c (rtx_equal_for_cselib_p): Delete.
25809 (rtx_equal_for_cselib_1): Make public.
25810
25811 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25812
25813 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
25814 (register_mixssei387nonimm_operand): Remove predicate.
25815 * config/i386/i386.md (*fop_<mode>_comm): Merge from
25816 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
25817 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
25818 for TARGET_MIX_SSE_I387 alternatives.
25819 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
25820 Disable unsupported alternatives using "enabled" attribute. Use
25821 nonimm_ssenomem_operand as operand 1 predicate. Also check
25822 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
25823
25824 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25825
25826 * tree.c (cst_and_fits_in_hwi): Simplify.
25827
25828 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25829
25830 * tree.h (wi::to_wide): New function.
25831 * expr.c (expand_expr_real_1): Use wi::to_wide.
25832 * fold-const.c (int_const_binop_1): Likewise.
25833 (extract_muldiv_1): Likewise.
25834
25835 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25836
25837 * wide-int.h: Update offset_int and widest_int documentation.
25838 (WI_SIGNED_SHIFT_RESULT): New macro.
25839 (wi::binary_shift): Define signed_shift_result_type for
25840 shifts on offset_int- and widest_int-like types.
25841 (generic_wide_int): Support <<= and >>= if << and >> are supported.
25842 * tree.h (int_bit_position): Use shift operators instead of wi::
25843 shifts.
25844 * alias.c (adjust_offset_for_component_ref): Likewise.
25845 * expr.c (get_inner_reference): Likewise.
25846 * fold-const.c (fold_comparison): Likewise.
25847 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25848 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
25849 * tree-dfa.c (get_ref_base_and_extent): Likewise.
25850 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
25851 (stmt_kills_ref_p): Likewise.
25852 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
25853 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
25854 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
25855 (ao_ref_init_from_vn_reference): Likewise.
25856
25857 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
25858
25859 * wide-int.h: Update offset_int and widest_int documentation.
25860 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
25861 (wi::binary_traits): Allow ordered comparisons between offset_int and
25862 offset_int, between widest_int and widest_int, and between either
25863 of these types and basic C types.
25864 (operator <, <=, >, >=): Define for the same combinations.
25865 * tree.h (tree_int_cst_lt): Use comparison operators instead
25866 of wi:: comparisons.
25867 (tree_int_cst_le): Likewise.
25868 * gimple-fold.c (fold_array_ctor_reference): Likewise.
25869 (fold_nonarray_ctor_reference): Likewise.
25870 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
25871 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
25872 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
25873 * tree-sra.c (completely_scalarize): Likewise.
25874 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
25875 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
25876 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
25877 (check_for_binary_op_overflow): Likewise.
25878 (search_for_addr_array): Likewise.
25879 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
25880
25881 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25882
25883 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
25884 (arc_save_restore): Likewise.
25885 (arc_dwarf_register_span): Likewise.
25886 (arc_output_pic_addr_const): Initialize suffix variable.
25887
25888 2016-05-02 Martin Liska <mliska@suse.cz>
25889
25890 * symbol-summary.h (function_summary::function_summary):
25891 Remove checking assert for all cgraph nodes.
25892 (function_summary::get): Check summary_uid.
25893 (symtab_insertion): Check summary_uid.
25894
25895 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25896
25897 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
25898 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
25899 bmaskn instruction.
25900 (arc_dwarf_register_span): Remove enum keyword.
25901 (compact_memory_operand_p): New function.
25902 * config/arc/arc.h (reg_class): Add code density register classes.
25903 (REG_CLASS_NAMES): Likewise.
25904 (REG_CLASS_CONTENTS): Likewise.
25905 * config/arc/arc.md (*movqi_insn): Add code density instructions.
25906 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
25907 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
25908 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
25909 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
25910 constraints.
25911 (h, Rcd, Rsd, Rzd): New register constraints.
25912 (T): Use compact_memory_operand_p function.
25913 * config/arc/predicates.md (compact_load_memory_operand): Remove.
25914
25915 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25916
25917 * config/sh/sh.md (*negnegt, *movtt): Remove.
25918
25919 2016-05-02 Marek Polacek <polacek@redhat.com>
25920 Tom de Vries <tom@codesourcery.com>
25921
25922 PR tree-optimization/70700
25923 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
25924 bigger than FIRST_REF_NODE.
25925
25926 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
25927
25928 PR target/52898
25929 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
25930 TARGET_CMPEQDI_T.
25931 (prepare_cbranch_operands): Don't use scratch register. Assume that
25932 function is used when pseudos can be created.
25933 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
25934 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
25935 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
25936 define_expand. Allow it only when pseudos can be created.
25937 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
25938
25939 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
25940
25941 * config/i386/constraints.md (BC): Only allow -1 operands.
25942 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
25943 Add "enabled" attribute. Update XI mode attribute calculation.
25944 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
25945 (*movoi_internal_avx): Update XI mode attribute calculation.
25946 (*movti_internal): Ditto.
25947
25948 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25949
25950 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25951 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25952
25953 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25954
25955 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25956 statement on instruction code. Remove trailing spaces.
25957 (altivec_expand_stv_builtin): Likewise.
25958
25959 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25960
25961 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25962 (TARGET_FPU_DOUBLE): Simplify.
25963 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25964 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25965 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25966 with 'TARGET_FPU_DOUBLE'.
25967 * config/sh/sh.md: Likewise.
25968
25969 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25970
25971 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25972 SH_DIV_STR_FOR_SIZE): Remove.
25973 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25974 SH_DIV_STR_FOR_SIZE): Remove.
25975
25976 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25977
25978 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25979 logical_reg_operand): Delete.
25980 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25981 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25982 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25983 match_operand and match_test.
25984 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25985 variables on their first use. Return bool values.
25986 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25987 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25988 arith_reg_operand for input operand. Remove empty constraints.
25989 (xorsi3): Delete.
25990 (*xorsi3_compact): Rename to xorsi3.
25991 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25992 (*zero_extend<mode>si2_disp_mem): Update comment.
25993 (mov_nop): Delete.
25994
25995 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25996
25997 * config/sh/t-sh: Remove SH5 support.
25998 * config.gcc: Likewise.
25999 * configure: Likewise.
26000
26001 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26002
26003 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26004
26005 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26006
26007 * config/sh/sh.c (register_sh_passes, sh_option_override,
26008 sh_print_operand, prepare_move_operands,
26009 sh_can_follow_jump): Remove TARGET_SH1 checks.
26010 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26011 PROMOTE_MODE): Likewise.
26012 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26013 movdi): Likewise.
26014
26015 2016-04-30 Alan Modra <amodra@gmail.com>
26016
26017 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26018 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26019 Check for user regs later to avoid unnecessary looping over regs.
26020 Merge user reg check with non-saved reg check. Don't force
26021 inline VR restore when static chain used.
26022 (rs6000_frame_related): Omit eh_frame info for user regs when
26023 saving.
26024 (fixed_regs_p): Delete.
26025
26026 2016-04-30 Alan Modra <amodra@gmail.com>
26027
26028 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26029 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26030 Update all uses.
26031
26032 2016-04-30 Alan Modra <amodra@gmail.com>
26033
26034 PR target/69645
26035 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26036 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26037 Update all uses.
26038
26039 2016-04-30 Alan Modra <amodra@gmail.com>
26040
26041 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26042 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26043 flag_pic test for Darwin.
26044
26045 2016-04-30 Alan Modra <amodra@gmail.com>
26046
26047 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26048 throw_calls_crossed.
26049 (REG_FREQ_CALLS_CROSSED): Delete.
26050 (REG_N_THROWING_CALLS_CROSSED): Delete.
26051 * regstat.c (regstat_bb_compute_ri): Don't calculate
26052 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26053 (dump_reg_info): Don't print call cross frequency.
26054 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26055 and REG_N_THROWING_CALLS_CROSSED.
26056
26057 2016-04-30 Alan Modra <amodra@gmail.com>
26058
26059 * regs.h (struct reg_info_t): Delete live_length.
26060 (REG_LIVE_LENGTH): Delete macro.
26061 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26062 local_live, local_processed and local_live_last_luid params.
26063 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26064 Formatting fixes.
26065 (regstat_compute_ri): Adjust for above. Don't set
26066 REG_LIVE_LENGTH.
26067 (dump_reg_info): Don't print live length.
26068 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26069 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26070 Localize loop_depth var.
26071
26072 2016-04-30 Alan Modra <amodra@gmail.com>
26073
26074 * ira.c (enum valid_equiv): New.
26075 (validate_equiv_mem): Return enum.
26076 (update_equiv_mem): Create replacement in more cases.
26077 (add_store_equivs): Update validate_equiv_mem call.
26078
26079 2016-04-30 Alan Modra <amodra@gmail.com>
26080
26081 * ira.c (combine_and_move_insns): Rather than scanning insns,
26082 use DF infrastucture to find use and def insns.
26083
26084 2016-04-30 Alan Modra <amodra@gmail.com>
26085
26086 ira.c (combine_and_move_insns): Move invariant conditions..
26087 (ira.c): ..to here. Call combine_and_move_insns before
26088 add_store_equivs. Call grow_reg_equivs later. Allocate
26089 req_equiv later using max_reg_num() rather than global max_regno.
26090 (contains_replace_regs): Delete.
26091 (add_store_equivs): Remove contains_replace_regs test.
26092
26093 2016-04-30 Alan Modra <amodra@gmail.com>
26094
26095 * ira.c (struct equiv_mem_data): New.
26096 (equiv_mem, equiv_mem_modified): Delete static vars.
26097 (validate_equiv_mem_from_store): Use "data" param to communicate..
26098 (validate_equiv_mem): ..from here.
26099
26100 2016-04-30 Alan Modra <amodra@gmail.com>
26101
26102 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26103 split out from..
26104 (update_reg_equivs): ..here. Move allocation and freeing of
26105 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26106 end_alias_analysis to..
26107 (ira): ..here.
26108
26109 2016-04-30 Alan Modra <amodra@gmail.com>
26110
26111 * ira.c (pdx_subregs): Delete.
26112 (struct equivalence): Add pdx_subregs field.
26113 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26114 pdx_subregs access.
26115 (update_equiv_regs): Don't create or free pdx_subregs. Update
26116 pdx_subregs access.
26117
26118 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26119
26120 * config/rs6000/altivec.h: Change definitions of vec_xl and
26121 vec_xst.
26122 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26123 (LD_ELEMREV_V2DI): New.
26124 (LD_ELEMREV_V4SF): New.
26125 (LD_ELEMREV_V4SI): New.
26126 (LD_ELEMREV_V8HI): New.
26127 (LD_ELEMREV_V16QI): New.
26128 (ST_ELEMREV_V2DF): New.
26129 (ST_ELEMREV_V2DI): New.
26130 (ST_ELEMREV_V4SF): New.
26131 (ST_ELEMREV_V4SI): New.
26132 (ST_ELEMREV_V8HI): New.
26133 (ST_ELEMREV_V16QI): New.
26134 (XL): New.
26135 (XST): New.
26136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26137 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26138 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26139 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26140 (altivec_expand_builtin): Add handling for
26141 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26142 (rs6000_invalid_builtin): Add error-checking for
26143 RS6000_BTM_P9_VECTOR.
26144 (altivec_init_builtins): Define builtins used to implement vec_xl
26145 and vec_xst.
26146 (rs6000_builtin_mask_names): Define power9-vector.
26147 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26148 (RS6000_BTM_P9_VECTOR): Define.
26149 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26150 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26151 (vsx_ld_elemrev_v2df): Likewise.
26152 (vsx_ld_elemrev_v4sf): Likewise.
26153 (vsx_ld_elemrev_v4si): Likewise.
26154 (vsx_ld_elemrev_v8hi): Likewise.
26155 (vsx_ld_elemrev_v16qi): Likewise.
26156 (vsx_st_elemrev_v2df): Likewise.
26157 (vsx_st_elemrev_v2di): Likewise.
26158 (vsx_st_elemrev_v4sf): Likewise.
26159 (vsx_st_elemrev_v4si): Likewise.
26160 (vsx_st_elemrev_v8hi): Likewise.
26161 (vsx_st_elemrev_v16qi): Likewise.
26162 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26163 grammar.
26164
26165 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26166
26167 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26168 out into ...
26169 (simplify_control_stmt_condition_1): ... here. Recurse into
26170 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26171
26172 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26173
26174 PR target/69810
26175 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26176 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26177 define_insn_and_split to define_insn.
26178 (zero_extendqi<mode>2_dot2): Same.
26179 (extendqi<mode>2_dot): Same.
26180 (extendqi<mode>2_dot2): Same.
26181
26182 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26183
26184 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26185 (probe_stack): New expander.
26186 (probe_stack_<mode>): New insn pattern.
26187
26188 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26189
26190 * config/i386/i386.md
26191 (operations with memory inputs setting flags peephole2):
26192 Remove uneeded REG_P checks. Cleanup pattern generation.
26193
26194 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26195
26196 * tree-vect-loop.c (vect_transform_loop): Fix
26197 nb_iterations_upper_bound computation for vectorized loop.
26198
26199 2016-04-29 Marek Polacek <polacek@redhat.com>
26200 Jakub Jelinek <jakub@redhat.com>
26201
26202 PR sanitizer/70342
26203 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26204 TARGET_EXPR_SLOT as a base.
26205
26206 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26207
26208 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26209 with 'rCm2' constraints to limit possible immediate size.
26210 (*load_zeroextendqisi_update): Likewise.
26211 (*load_signextendqisi_update): Likewise.
26212 (*loadhi_update): Likewise.
26213 (*load_zeroextendhisi_update): Likewise.
26214 (*load_signextendhisi_update): Likewise.
26215 (*loadsi_update): Likewise.
26216 (*loadsf_update): Likewise.
26217
26218 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26219
26220 * config/i386/predicates.md (constm1_operand): Fix comparison.
26221
26222 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26223
26224 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26225
26226 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26227
26228 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26229 remaining SH5 related settings.
26230 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26231 shmedia_prepare_call_address): Delete.
26232 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26233 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26234 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26235 UNSUPPORTED_SH2A): Remove m5 checks.
26236 (sh_divide_strategy_e): Remove SH5 division strategies.
26237 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26238 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26239
26240 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26241
26242 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26243
26244 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26245
26246 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26247 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26248 Change lder to ldr.
26249 * config/s390/vector.md ("mov<mode>"): Likewise.
26250
26251 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26252
26253 * config/s390/constraints.md ("U", "W"): Invoke
26254 s390_mem_constraint with "ZR" and "ZT".
26255 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26256 addresses when using LRA. Accept also short displacements for S
26257 and T constraints. Do not check for long displacement target for
26258 S and T constraints.
26259 (s390_mem_constraint): Remove handling of U and W constraints.
26260 * config/s390/s390.md (various patterns): Remove the short
26261 displacement constraints (Q and R) if a long displacement
26262 constraint is present. Add longdisp as required CPU capability.
26263 * config/s390/vector.md: Likewise.
26264 * config/s390/vx-builtins.md: Likewise.
26265
26266 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26267
26268 PR target/60040
26269 * reload1.c (reload): Call finish_spills before
26270 restarting reload loop. Skip select_reload_regs
26271 if update_eliminables_and_spill returns true.
26272
26273 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26274
26275 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26276 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26277 (umulhisi3_imm): Update predicates and constraint letters.
26278 (umulhisi3_reg): Declare instruction as commutative.
26279 * config/arc/constraints.md (J12, J16): New constraints.
26280 * config/arc/predicates.md (short_unsigned_const_operand): New
26281 predicate.
26282 (arc_short_operand): Likewise.
26283 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26284
26285 2016-04-29 Richard Biener <rguenther@suse.de>
26286
26287 PR tree-optimization/13962
26288 PR tree-optimization/65686
26289 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26290 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26291 using PTA to compare pointers.
26292 * match.pd: Add pattern for pointer equality compare simplification
26293 using ptrs_compare_unequal.
26294
26295 2016-04-29 Richard Biener <rguenther@suse.de>
26296
26297 * stor-layout.c (layout_type): Do not build a pointer-to-element
26298 type for arrays.
26299
26300 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26301
26302 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26303 Use SWI mode iterator. Use general_reg_operand predicate.
26304 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26305 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26306 predicates.
26307
26308 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26309
26310 PR middle-end/70843
26311 * fold-const.c (operand_equal_p): Don't verify hash value equality
26312 if arg0 == arg1.
26313 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26314 and OMP_CLAUSE.
26315
26316 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26317
26318 PR target/70858
26319 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26320 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26321 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26322 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26323 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26324
26325 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26326
26327 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26328 to info. Don't initialize separate fields to 0. Clean up
26329 formatting a bit.
26330
26331 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26332
26333 * config/i386/i386.md (peephole2s for operations with memory inputs):
26334 Use SWI mode iterator.
26335 (peephole2s for operations with memory outputs): Ditto.
26336 Do not check for stack checking probe.
26337
26338 (probe_stack): Remove expander.
26339
26340 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26341 Andrew Burgess <andrew.burgess@embecosm.com>
26342
26343 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26344 operands as 32-bits.
26345
26346 2016-04-28 Jason Merrill <jason@redhat.com>
26347
26348 * gdbinit.in: Skip line-map.h.
26349
26350 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26351 Andrew Burgess <andrew.burgess@embecosm.com>
26352
26353 * config/arc/arc.c (arc_conditional_register_usage): Take
26354 TARGET_RRQ_CLASS into account.
26355 (arc_print_operand): Support printing 'p' and 's' operands.
26356 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26357 as 0.
26358 (TARGET_RRQ_CLASS): Define.
26359 (IS_POWEROF2_OR_0_P): Define.
26360 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26361 alternatives.
26362 (*tst_movb): New define_insn.
26363 (*tst): Avoid recognition if it could prevent '*tst_movb'
26364 combination; replace c/CnL with c/Chs alternative.
26365 (*tst_bitfield_tst): New define_insn.
26366 (*tst_bitfield_asr): New define_insn.
26367 (*tst_bitfield): New define_insn.
26368 (andsi3_i): Add Rrq variant.
26369 (extzv): New define_expand.
26370 (insv): New define_expand.
26371 (*insv_i): New define_insn.
26372 (*movb): New define_insn.
26373 (*movb_signed): New define_insn.
26374 (*movb_high): New define_insn.
26375 (*movb_high_signed): New define_insn.
26376 (*movb_high_signed + 1): New define_split pattern.
26377 (*mrgb): New define_insn.
26378 (*mrgb + 1): New define_peephole2 pattern.
26379 (*mrgb + 2): New define_peephole2 pattern.
26380 * config/arc/arc.opt (mbitops): New option for nps400, uses
26381 TARGET_NPS_BITOPS_DEFAULT.
26382 * config/arc/constraints.md (q): Make register class conditional.
26383 (Rrq): New register constraint.
26384 (Chs): New constraint.
26385 (Clo): New constraint.
26386 (Chi): New constraint.
26387 (Cbf): New constraint.
26388 (Cbn): New constraint.
26389 (C18): New constraint.
26390 (Cbi): New constraint.
26391
26392 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26393
26394 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26395 dst->popcount.
26396 (bitmap_intersection_of_preds): Ditto.
26397 (bitmap_union_of_succs): Ditto.
26398 (bitmap_union_of_preds): Ditto.
26399 * sbitmap.c (do_popcount): Delete.
26400 (BITMAP_DEBUGGING): Delete.
26401 (sbitmap_verify_popcount): Delete.
26402 (sbitmap_alloc): Don't initialize the popcount field.
26403 (sbitmap_alloc_with_popcount): Delete.
26404 (sbitmap_resize): Don't resize the popcount array.
26405 (sbitmap_vector_alloc): Don't initialize the popcount field.
26406 (bitmap_copy): Don't copy the popcount array.
26407 (bitmap_clear): Don't clear the popcount array.
26408 (bitmap_clear): Delete the popcount array handling.
26409 (bitmap_ior_and_compl): Delete the popcount assert.
26410 (bitmap_not): Ditto.
26411 (bitmap_and_compl): Ditto.
26412 (bitmap_and): Delete the popcount array handling.
26413 (bitmap_xor): Ditto.
26414 (bitmap_ior): Ditto.
26415 (bitmap_or_and): Delete the popcount assert.
26416 (bitmap_and_or): Ditto.
26417 (popcount_table): Delete.
26418 (sbitmap_elt_popcount): Delete.
26419 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26420 (bitmap_set_bit): Delete the popcount assert.
26421 (bitmap_clear_bit): Ditto.
26422 (sbitmap_free): Don't free the popcount array.
26423 (sbitmap_alloc_with_popcount): Delete declaration.
26424 (sbitmap_popcount): Ditto.
26425
26426 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26427 Andrew Burgess <andrew.burgess@embecosm.com>
26428
26429 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26430 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26431 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26432 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26433 * config/arc/arc.opt (mcmem): New option.
26434 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26435 supply length for r/m alternative.
26436 (*extendqisi2_ac): Likewise.
26437 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26438 r/Uex alternative.
26439 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26440 (movhi_insn): Likewise.
26441 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26442 (*zero_extendqihi2_i): Add r/Ucm alternative.
26443 (*zero_extendqisi2_ac): Likewise.
26444 (*zero_extendhisi2_i): Likewise.
26445 * config/arc/constraints.md (Uex): New memory constraint.
26446 (Ucm): New define_constraint.
26447 * config/arc/predicates.md (long_immediate_loadstore_operand):
26448 Return 0 for MEM with cmem_address address.
26449 (cmem_address_0): New predicates.
26450 (cmem_address_1): Likewise.
26451 (cmem_address_2): Likewise.
26452 (cmem_address): Likewise.
26453
26454 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26455
26456 * config/rs6000/rs6000.c (machine_function): Rename
26457 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26458 (rs6000_stack_info): Adjust.
26459
26460 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26461 Andrew Burgess <andrew.burgess@embecosm.com>
26462
26463 * config/arc/constraints.md (Usd): Convert to define_constraint.
26464 (Us<): Likewise.
26465 (Us>): Likewise.
26466
26467 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26468
26469 PR target/70821
26470 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26471 Add new peephole2 where the first insn is *mov<mode>_or instead of
26472 *mov<mode>_internal.
26473
26474 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26475
26476 * tracer.c (bb_seen): Make static.
26477
26478 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26479
26480 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26481 support, setup defaults.
26482 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26483 * config/arc/arc.c (arc_init): Add NPS400 support.
26484 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26485 (TARGET_ARC700): NPS400 is also an ARC700.
26486 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26487
26488 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26489
26490 PR target/70668
26491 * config/nds32/nds32.md (casesi): Don't access the operands array
26492 out of bounds.
26493
26494 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26495
26496 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26497 (or $-1,reg peephole2): Ditto.
26498 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26499
26500 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26501
26502 * doc/extend.texi (Common Function Attributes) [optimize]:
26503 Discourage use of the optimize attribute.
26504
26505 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26506
26507 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26508 special case builtin.
26509 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26510 ALTIVEC_BUILTIN_VEC_ADDE.
26511 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26512 support for ALTIVEC_BUILTIN_VEC_ADDE.
26513 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26514 for __builtin_vec_adde.
26515
26516 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26517
26518 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26519 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26520
26521 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26522
26523 PR testsuite/70595
26524 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26525 attributes): Document cilkplus_runtime.
26526
26527 2016-04-28 Martin Jambor <mjambor@suse.cz>
26528
26529 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26530 this function. Call verify_expr on MEM_REFs and bases of other
26531 handled_components.
26532
26533 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26534
26535 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26536 for WORD_REGISTER_OPERATIONS to runtime check.
26537
26538 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26539
26540 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26541
26542 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26543
26544 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26545 big-endian compilation.
26546 * config/arc/arc.md (addf3): Likewise.
26547 (subdf3): Likewise.
26548 (muldf3): Likewise.
26549
26550 2016-04-28 Richard Biener <rguenther@suse.de>
26551
26552 PR tree-optimization/70840
26553 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26554 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26555 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26556 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26557
26558 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26559
26560 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26561 and explain why in a comment.
26562
26563 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26564
26565 * config/arc/arc.md (cpu_facility): Add fpx variant.
26566 (subdf3): Prohibit use reverse sub when assist operations option
26567 is enabled.
26568 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26569 instructions only when FPX is enabled.
26570 * testsuite/gcc.target/arc/trsub.c: New test.
26571
26572 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26573
26574 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26575 mult_operator when calculating "type" attribute.
26576 (*fop_<mode>_1_i387): Ditto.
26577 (*fop_xf_1_i387): Ditto.
26578 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26579 Use std::swap to swap operands. Use RTL expressions to generate
26580 converted pattern.
26581
26582 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26583 Joern Rennecke <joern.rennecke@embecosm.com>
26584
26585 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26586 declaration.
26587 (emit_pic_move): Remove.
26588 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26589 * config/arc/arc.c (emit_pic_move): Removed.
26590 (TARGET_HAVE_TLS): Define.
26591 (arc_conditional_register_usage): Test for arc_tp_regno.
26592 (arc_print_operand, arc_print_operand_address): Handle TLS
26593 unspecs.
26594 (arc_needs_pcl_p): New function.
26595 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26596 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26597 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26598 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26599 (arc_legitimize_tls_address): Likewise.
26600 (DTPOFF_ZERO_SYM): Define.
26601 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26602 (arc_output_pic_addr_const): Print TLS unspecs.
26603 (prepare_pic_move): New function, replaces emit_pic_move.
26604 (arc_legitimate_constant_p): Handle TLS unspecs.
26605 (arc_legitimate_address_p): Likewise.
26606 (arc_rewrite_small_data_p): Use assert for TLS constants.
26607 (prepare_move_operands): Use prepare_pic_move.
26608 (arc_legitimize_address): Legitimize tls addresses.
26609 (arc_epilogue_uses): Check for arc_tp_regno.
26610 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26611 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26612 Define.
26613 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26614 Likewise.
26615 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26616 %(arc_tls_extra_start_spec).
26617 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26618 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26619 (EH_USES): Define.
26620 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26621 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26622 (UNSPEC_TLS_OFF): Add.
26623 (R10_REG): Define.
26624 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26625 (get_thread_pointersi): New patterns.
26626 * config/arc/arc.opt (mtp-regno): New option.
26627 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26628 (move_dest_operand): Likewise.
26629 * configure: Regenerate.
26630 * configure.ac: Add arc*-*-* case to test for tls.
26631 * doc/invoke.texi (ARC options): Document mtp-regno.
26632
26633 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26634
26635 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26636 the new ARC HS SIMD instructions.
26637 (arc_preferred_simd_mode): New function.
26638 (arc_autovectorize_vector_sizes): Likewise.
26639 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26640 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26641 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26642 (arc_init_builtins): Add new SIMD builtin types.
26643 (arc_split_move): Handle 64 bit vector moves.
26644 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26645 (TARGET_PLUS_QMACW): Define.
26646 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26647 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26648 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26649 (VSUBADD4H): New builtins.
26650 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26651 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26652
26653 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26654 Matthias Klose <doko@debian.org>
26655
26656 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26657
26658 2016-04-28 Richard Biener <rguenther@suse.de>
26659
26660 PR middle-end/70777
26661 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26662 canonicalization.
26663
26664 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26665
26666 * common/config/sh/sh-common.c: Remove SH5 support.
26667 * config/sh/constraints.md: Likewise.
26668 * config/sh/config/sh/elf.h: Likewise.
26669 * config/sh/linux.h: Likewise.
26670 * config/sh/netbsd-elf.h: Likewise.
26671 * config/sh/predicates.md: Likewise.
26672 * config/sh/sh-c.c: Likewise.
26673 * config/sh/sh-protos.h: Likewise.
26674 * config/sh/sh.c: Likewise.
26675 * config/sh/sh.h: Likewise.
26676 * config/sh/sh.md: Likewise.
26677 * config/sh/sh.opt: Likewise.
26678 * config/sh/sync.md: Likewise.
26679 * config/sh/sh64.h: Delete.
26680 * config/sh/shmedia.h: Likewise.
26681 * config/sh/shmedia.md: Likewise.
26682 * config/sh/sshmedia.h: Likewise.
26683 * config/sh/t-netbsd-sh5-64: Likewise.
26684 * config/sh/t-sh64: Likewise.
26685 * config/sh/ushmedia.h: Likewise.
26686
26687 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26688
26689 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26690 general_reg_operand instead of register_operand predicate.
26691
26692 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26693
26694 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26695
26696 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26697
26698 * match.pd (A - B > A, A + B < A): New transformations.
26699
26700 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26701
26702 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26703 which defaults to true. Emit an outer pair of parentheses only if
26704 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26705 don't emit parentheses for the right-hand operand.
26706
26707 2016-04-27 Jeff Law <law@redhat.com>
26708
26709 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26710
26711 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26712
26713 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26714 (altivec_lvx_<mode>_internal): Document.
26715 (altivec_lvx_<mode>_2op): New define_insn.
26716 (altivec_lvx_<mode>_1op): Likewise.
26717 (altivec_lvx_<mode>_2op_si): Likewise.
26718 (altivec_lvx_<mode>_1op_si): Likewise.
26719 (altivec_stvx_<mode>): Remove.
26720 (altivec_stvx_<mode>_internal): Document.
26721 (altivec_stvx_<mode>_2op): New define_insn.
26722 (altivec_stvx_<mode>_1op): Likewise.
26723 (altivec_stvx_<mode>_2op_si): Likewise.
26724 (altivec_stvx_<mode>_1op_si): Likewise.
26725 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26726 Expand vec_ld and vec_st during parsing.
26727 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26728 changes.
26729 (altivec_expand_stvx_be): Likewise.
26730 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26731 address-masking behavior in RTL.
26732 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26733 address-masking behavior in RTL.
26734 (altivec_expand_builtin): Change builtin code arguments for calls
26735 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26736 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26737 presence of lvx/stvx patterns.
26738 (alignment_with_canonical_addr): New function.
26739 (alignment_mask): Likewise.
26740 (find_alignment_op): Likewise.
26741 (recombine_lvx_pattern): Likewise.
26742 (recombine_stvx_pattern): Likewise.
26743 (recombine_lvx_stvx_patterns): Likewise.
26744 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26745 stvx patterns from expand.
26746 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26747 expansions.
26748 (vector_altivec_store_<mode>): Likewise.
26749
26750 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26751
26752 * config/aarch64/aarch64.md
26753 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26754 remove the "fp" attributes.
26755 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26756 add the "simd" attributes.
26757 (*movdf_aarch64): Likewise.
26758 (*movtf_aarch64): Remove the "fp" attributes.
26759 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26760 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26761
26762 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26763
26764 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26765 rtx to rtx_code_label *.
26766 * rtl.h (maybe_set_first_label_num): Likewise.
26767
26768 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26769
26770 * df-core.c (df_add_problem): Make the problem param be const.
26771 (df_remove_problem): Make local "problem" be const.
26772 * df-problems.c (problem_RD): Make const.
26773 (problem_LR): Likewise.
26774 (problem_LIVE): Likewise.
26775 (problem_MIR): Likewise.
26776 (problem_CHAIN): Likewise.
26777 (problem_WORD_LR): Likewise.
26778 (problem_NOTE): Likewise.
26779 (problem_MD): Likewise.
26780 * df-scan.c (problem_SCAN): Likewise.
26781 * df.h (struct df_problem): Make field "dependent_problem" be
26782 const.
26783 (struct dataflow): Likewise for field "problem".
26784 (df_add_problem): Make param const.
26785
26786 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26787
26788 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26789 inter-unit moves to/from vector registers are enabled. Do not disable
26790 for TARGET_MMX.
26791
26792 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26793
26794 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
26795 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
26796 #define to...
26797 (enum df_problem_id): ...this new enum.
26798 (struct df_problem): Convert field "id" from "int" to
26799 enum df_problem_id.
26800
26801 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26802
26803 * rtl.def: Update comment for "things in the instruction chain" to
26804 reflect the removal of the leading "i" field for INSN_UID in
26805 r210360. Fix bogus apostrophe.
26806
26807 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26808
26809 * config/i386/i386.md
26810 (lea arith with mem operand + setcc peephole2): Set operator mode.
26811
26812 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 PR target/70155
26815 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
26816 (dimode_scalar_to_vector_candidate_p): This.
26817 (timode_scalar_to_vector_candidate_p): New function.
26818 (scalar_to_vector_candidate_p): Likewise.
26819 (timode_check_non_convertible_regs): Likewise.
26820 (timode_remove_non_convertible_regs): Likewise.
26821 (remove_non_convertible_regs): Likewise.
26822 (remove_non_convertible_regs): Renamed to ...
26823 (dimode_remove_non_convertible_regs): This.
26824 (scalar_chain::~scalar_chain): Make it virtual.
26825 (scalar_chain::compute_convert_gain): Make it pure virtual.
26826 (scalar_chain::mark_dual_mode_def): Likewise.
26827 (scalar_chain::convert_insn): Likewise.
26828 (scalar_chain::convert_registers): Likewise.
26829 (scalar_chain::add_to_queue): Make it protected.
26830 (scalar_chain::emit_conversion_insns): Likewise.
26831 (scalar_chain::replace_with_subreg): Likewise.
26832 (scalar_chain::replace_with_subreg_in_insn): Likewise.
26833 (scalar_chain::convert_op): Likewise.
26834 (scalar_chain::convert_reg): Likewise.
26835 (scalar_chain::make_vector_copies): Likewise.
26836 (scalar_chain::convert_registers): New pure virtual function.
26837 (class dimode_scalar_chain): New class.
26838 (class timode_scalar_chain): Likewise.
26839 (scalar_chain::mark_dual_mode_def): Renamed to ...
26840 (dimode_scalar_chain::mark_dual_mode_def): This.
26841 (timode_scalar_chain::mark_dual_mode_def): New function.
26842 (timode_scalar_chain::convert_insn): Likewise.
26843 (dimode_scalar_chain::convert_registers): Likewise.
26844 (scalar_chain::compute_convert_gain): Renamed to ...
26845 (dimode_scalar_chain::compute_convert_gain): This.
26846 (scalar_chain::replace_with_subreg): Renamed to ...
26847 (dimode_scalar_chain::replace_with_subreg): This.
26848 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
26849 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
26850 (scalar_chain::make_vector_copies): Renamed to ...
26851 (dimode_scalar_chain::make_vector_copies): This.
26852 (scalar_chain::convert_reg): Renamed to ...
26853 (dimode_scalar_chain::convert_reg ): This.
26854 (scalar_chain::convert_op): Renamed to ...
26855 (dimode_scalar_chain::convert_op): This.
26856 (scalar_chain::convert_insn): Renamed to ...
26857 (dimode_scalar_chain::convert_insn): This.
26858 (scalar_chain::convert): Call convert_registers.
26859 (convert_scalars_to_vector): Change to scalar_chain pointer to
26860 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
26861 in 32-bit mode. Delete scalar_chain pointer. Call
26862 free_dominance_info in 64-bit mode.
26863 (pass_stv::gate): Remove TARGET_64BIT check.
26864 (ix86_option_override): Put the 64-bit STV pass before the CSE
26865 pass.
26866
26867 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
26868
26869 * dwarf2out.h (struct dw_loc_descr_node): Remove the
26870 dw_loc_frame_offset field.
26871 * dwarf2out.c (new_loc_descr): Likewise.
26872 (resolve_args_picking_1): Turn the VISITED hash set into a
26873 FRAME_OFFSET hash map. Use it to associate a frame offset to
26874 visited nodes. Remove uses of the CHECKING_P macro.
26875 (resolve_args_picking): Update call to resolve_args_picking_1.
26876
26877 2016-04-27 Martin Liska <mliska@suse.cz>
26878
26879 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
26880 (free_loop_data): Release vuses of groups.
26881
26882 2016-04-27 Bin Cheng <bin.cheng@arm.com>
26883
26884 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
26885 instead of redundant use_id and boolean have_use_for.
26886 (struct iv_use): Change sub_id into group_id. Remove field next.
26887 Move fields: related_cands, n_map_members, cost_map and selected
26888 to ...
26889 (struct iv_group): ... here. New structure.
26890 (struct iv_common_cand): Use structure declaration directly.
26891 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
26892 (MAX_CONSIDERED_USES): Rename macro to ...
26893 (MAX_CONSIDERED_GROUPS): ... here.
26894 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
26895 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
26896 (dump_uses): Rename to ...
26897 (dump_groups): ... here. Update all uses.
26898 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
26899 (find_induction_variables): Refactor format of dump information.
26900 (record_sub_use): Delete.
26901 (record_use): Update all uses.
26902 (record_group): New function.
26903 (record_group_use, find_interesting_uses_op): Call above functions.
26904 Update all uses.
26905 (find_interesting_uses_cond): Ditto.
26906 (group_compare_offset): New function.
26907 (split_all_small_groups): Rename to ...
26908 (split_small_address_groups_p): ... here. Update all uses.
26909 (split_address_groups): Update all uses.
26910 (find_interesting_uses): Refactor format of dump information.
26911 (add_candidate_1): Update all uses. Remove redundant check on iv,
26912 base and step.
26913 (add_candidate, record_common_cand): Remove redundant assert.
26914 (add_iv_candidate_for_biv): Update use.
26915 (add_iv_candidate_derived_from_uses): Update all uses.
26916 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
26917 (alloc_use_cost_map): Ditto.
26918 (set_use_iv_cost, get_use_iv_cost): Rename to ...
26919 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
26920 (determine_use_iv_cost_generic): Ditto.
26921 (determine_group_iv_cost_generic): Ditto.
26922 (determine_use_iv_cost_address): Ditto.
26923 (determine_group_iv_cost_address): Ditto.
26924 (determine_use_iv_cost_condition): Ditto.
26925 (determine_group_iv_cost_cond): Ditto.
26926 (determine_use_iv_cost): Ditto.
26927 (determine_group_iv_cost): Ditto.
26928 (set_autoinc_for_original_candidates): Update all uses.
26929 (find_iv_candidates): Update all uses. Refactor dump information.
26930 (determine_use_iv_costs): Ditto.
26931 (determine_iv_costs): Ditto.
26932 (iv_ca_cand_for_use): Rename to ...
26933 (iv_ca_cand_for_group): ... here. Update all uses.
26934 (iv_ca_add_use, iv_ca_add_group): Ditto.
26935 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
26936 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
26937 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
26938 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
26939 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
26940 (create_new_iv, adjust_iv_update_pos): Ditto.
26941 (rewrite_use_address): Delete.
26942 (rewrite_use_address_1): Rename to ...
26943 (rewrite_use_address): ... here.
26944 (rewrite_use_compare): Update all uses.
26945 (rewrite_use): Delete.
26946 (rewrite_uses): Rename to ...
26947 (rewrite_groups): ... here. Update all uses.
26948 (remove_unused_ivs, free_loop_data): Update all uses.
26949 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26950
26951 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26952
26953 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26954 for WORD_REGISTER_OPERATIONS to runtime check.
26955
26956 2016-04-27 Richard Biener <rguenther@suse.de>
26957
26958 PR ipa/70760
26959 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26960 aggregate_value_p to determine if a function result is
26961 returned by reference.
26962 (ipa_pta_execute): Functions having their address taken are
26963 not automatically nonlocal.
26964
26965 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26966
26967 PR sanitizer/70683
26968 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26969 * fold-const.c (operand_equal_p): If flag_checking and
26970 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26971 and if it returns non-zero, assert iterative_hash_expr on both
26972 args is the same.
26973
26974 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26975
26976 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26977
26978 2016-04-27 Nick Clifton <nickc@redhat.com>
26979
26980 PR middle-end/49889
26981 * varasm.c (merge_weak): Generate an error if an attempt is made
26982 to convert a non-weak static function into a weak, public function.
26983
26984 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26985
26986 * params.def (MAX_PARTITION_SIZE): New param.
26987 * doc/invoke.texi: Document lto-max-partition.
26988
26989 2016-04-27 Richard Biener <rguenther@suse.de>
26990
26991 PR ipa/70785
26992 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26993 function cummulating used_from_other_partition, externally_visible
26994 and force_output from aliases.
26995 (refered_from_nonlocal_var): Likewise.
26996 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26997 node flags properly.
26998
26999 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27000
27001 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27002 (-Wmemset-elt-size): New item.
27003
27004 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27005
27006 PR ada/70759
27007 * stor-layout.h (internal_reference_types): Delete.
27008 * stor-layout.c (reference_types_internal): Likewise.
27009 (internal_reference_types): Likewise.
27010 (layout_type) <REFERENCE_TYPE>: Adjust.
27011
27012 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27013
27014 PR sanitizer/70683
27015 * tree.h (inchash::add_expr): Add FLAGS argument.
27016 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27017 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27018 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27019 Formatting fix. Adjust recursive calls. For tcc_comparison,
27020 if swap_tree_comparison (code) is smaller than code, hash that
27021 and arguments in the other order. Hash CONVERT_EXPR the same
27022 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27023 of ADDR_EXPR of decl as the decl itself. Add or remove
27024 OEP_ADDRESS_OF from recursive flags as needed. For
27025 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27026 operands commutatively and only the third one normally.
27027 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27028
27029 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27030
27031 * config/rtems.h (LIB_SPEC): Add -latomic.
27032
27033 2016-04-27 Joel Sherrill <joel@rtems.org>
27034
27035 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27036 xilink.ld and flags not relevant to RTEMS.
27037
27038 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27039
27040 * toplev.c (backend_init_target): Avoid calling init_reload when using
27041 LRA.
27042
27043 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27044
27045 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27046 for loops rather than one for the whole function.
27047
27048 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27049
27050 * match.pd (X + CST CMP X): New transformation.
27051
27052 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27053
27054 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27055 * fold-const.c (fold_binary_loc): Remove 2 transformations
27056 superseded by match.pd.
27057 * match.pd (x+x -> x*2): Generalize to integers.
27058
27059 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27060
27061 * config/i386/i386.md (operation on memory peephole): Duplicate an
27062 existing peephole and adapt it to match lea rather than an operation
27063 that clobbers CC.
27064
27065 PR rtl-optimization/57193
27066 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27067 and above.
27068 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27069
27070 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27071
27072 * tree-if-conv.c (any_pred_load_store): New static variable.
27073 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27074 any_pred_load_store instead of and_mask_load_store.
27075 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27076 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27077 (combine_blocks, tree_if_conversion): Ditto.
27078
27079 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27080
27081 PR tree-optimization/70771
27082 PR tree-optimization/70775
27083 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27084 virtual PHI nodes. Delete parameter.
27085 (if_convertible_loop_p_1): Delete argument to above function.
27086 (predicate_all_scalar_phis): Delete code handling single-argument
27087 PHIs.
27088 (tree_if_conversion): Mark and update virtual SSA.
27089
27090 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27091
27092 PR target/61821
27093 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27094 (x86_elf_aligned_common): Rename to ...
27095 (x86_elf_aligned_decl_common): ... this.
27096 Add decl arg. Switch to .lbss for largecomm object. Use
27097 LARGECOMM_SECTION_ASM_OP.
27098 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27099 renaming.
27100 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27101 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27102 Pass new decl arg.
27103 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27104 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27105
27106 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27107
27108 PR target/59407
27109 * config/i386/i386.c (SECTION_LARGE): Define.
27110 (x86_64_elf_select_section): Set it for large data/bss sections.
27111 Only clear SECTION_WRITE for .lrodata.
27112 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27113 data/bss sections.
27114 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27115 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27116 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27117 SECTION_MACH_DEP.
27118 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27119 * doc/tm.texi: Regenerate.
27120
27121 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27122
27123 PR bootstrap/70704
27124 * configure.ac (--enable-checking): Document extra flag, for
27125 non-release builds default to --enable-checking=yes,extra.
27126 If misc checking and extra checking, define CHECKING_P to 2 instead
27127 of 1.
27128 * common.opt (fchecking=): Add.
27129 * doc/invoke.texi (-fchecking=): Document.
27130 * doc/install.texi: Document --enable-checking changes.
27131 * configure: Regenerated.
27132 * config.in: Regenerated.
27133
27134 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27135
27136 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27137 attribute instead of which_alternative.
27138 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27139 Use EXT_REX_SSE_REG_P where appropriate.
27140
27141 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27142
27143 * config/i386/predicates.md (const0_operand): Do not match
27144 const_wide_int code.
27145 (const1_operand): Ditto.
27146
27147 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27148
27149 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27150 for SSE constm1 operands and TARGET_AVX512VL.
27151 (*movti_internal): Ditto.
27152 (*mov<mode>_or): Use constm1_operand predicate.
27153 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27154 for SSE vector_all_ones operands and TARGET_AVX512VL.
27155 * config/i386/predicates.md (constm1_operand): New predicate.
27156 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27157 emission of constant -1 load.
27158
27159 2016-04-25 Jason Merrill <jason@redhat.com>
27160
27161 * gdbinit.in: Skip is-a.h.
27162
27163 * attribs.c (register_scoped_attributes): Fix logic.
27164 * attribs.h: Declare register_scoped_attributes.
27165
27166 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27167
27168 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27169 stxvd2x and stxvw4x built-in functions.
27170
27171 2016-04-25 DJ Delorie <dj@redhat.com>
27172
27173 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27174 (ashrhi3): Likewise.
27175 (lshrhi3): Likewise.
27176
27177 2016-04-25 Richard Biener <rguenther@suse.de>
27178
27179 PR tree-optimization/70780
27180 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27181 wasn't visited yet.
27182 (compute_antic): Mark blocks with abnormal preds as visited as
27183 they have a final empty antic-in solution already.
27184
27185 2016-04-25 Michael Collison <michael.collison@linaro.org>
27186
27187 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27188
27189 2016-04-25 Michael Collison <michael.collison@linaro.org>
27190
27191 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27192 mode is VQI to improve mixed mode vectorization.
27193 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27194 define_insn to match low half of signed vaddw.
27195 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27196 define_insn to match high half of signed vaddw.
27197 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27198 define_insn to match low half of unsigned vaddw.
27199 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27200 define_insn to match high half of unsigned vaddw.
27201 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27202 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27203 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27204 for new function.
27205 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27206 * config/arm/predicates.md (vect_par_constant_high): Support
27207 big endian and simplify by calling
27208 arm_simd_check_vect_par_cnst_half
27209 (vect_par_constant_low): Likewise.
27210
27211 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27212
27213 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27214 predicate for operand 2.
27215
27216 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27217 H.J. Lu <hongjiu.lu@intel.com>
27218
27219 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27220 machine_mode argument.
27221 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27222 constm1_rtx operands. For VOIDmode constants, get mode from
27223 pred_mode. Check mode size if the mode is supported by ABI.
27224 (standard_sse_constant_opcode): Do not use standard_constant_p.
27225 Strictly check ABI support for all-ones operands.
27226 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27227 immediates. Update calls to standard_sse_constant_p.
27228 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27229 (ix86_rtx_costs): Ditto.
27230 * config/i386/i386.md (*movxi_internal_avx512f): Use
27231 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27232 Use (v,BC) alternative instead of (v,C). Use register_operand
27233 checks instead of MEM_P.
27234 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27235 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27236 isa attribute. Use register_operand checks instead of MEM_P.
27237 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27238 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27239 alternative and corresponding sse2 isa attribute.
27240 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27241 to standard_sse_constant_p.
27242 (FP constant splitters): Ditto.
27243 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27244 (C): Ditto.
27245 * config/i386/predicates.md (constm1_operand): Remove.
27246 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27247 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27248 vector_all_ones_operand instead of constm1_operand.
27249
27250 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27251
27252 * print-rtl.c (print_rtx_insn_vec): New function.
27253 * print-rtl.h: New prototype.
27254 * store-motion.c (struct st_expr): Make avail_stores a vector.
27255 (st_expr_entry): Adjust.
27256 (free_st_expr_entry): Likewise.
27257 (print_store_motion_mems): Likewise.
27258 (find_moveable_store): Likewise.
27259 (compute_store_table): Likewise.
27260 (delete_store): Likewise.
27261 (build_store_vectors): Likewise.
27262
27263 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27264
27265 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27266
27267 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27268
27269 * vec.h (vec_safe_contains): New function.
27270 (vec::contains): Likewise.
27271 (vec::begin): Likewise.
27272 (vec::end): Likewise.
27273
27274 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27275
27276 PR sanitizer/70712
27277 * cfgexpand.c (expand_stack_vars): Fix typo.
27278
27279 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27280
27281 * system.h (list, map, set, vector): Include conditionally.
27282 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27283 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27284 * ipa-icf.c (INCLUDE_LIST): Define.
27285 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27286 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27287 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27288 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27289 * cp/logic.cc (INCLUDE_LIST): Define.
27290 * fortran/trans-common.c (INCLUDE_MAP): Define.
27291
27292 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27293
27294 * auto-profile.c: Remove <string.h> include.
27295 * ipa-icf-gimple.c: Remove <list> include.
27296 * diagnostic.c: Remove <new> include.
27297 * genmatch.c: Likewise.
27298 * pretty-print.c: Likewise.
27299 * toplev.c: Likewise
27300 * c/c-objc-common.c: Likewise.
27301 * cp/error.c: Likewise.
27302 * fortran/error.c: Likewise.
27303
27304 2016-04-22 Richard Biener <rguenther@suse.de>
27305
27306 * lto-streamer-in.c (input_ssa_names): Do not allocate
27307 GIMPLE_NOP for all SSA names.
27308 * lto-streamer-out.c (output_ssa_names): Do not output
27309 SSA names that should have been released.
27310
27311 2016-04-22 Richard Biener <rguenther@suse.de>
27312
27313 PR tree-optimization/70740
27314 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27315 VDEF.
27316
27317 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27318
27319 PR target/70750
27320 * config/i386/predicates.md (call_insn_operand): Replace
27321 sibcall_memory_operand with memory_operand.
27322
27323 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27324
27325 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27326 has_single_use() tests.
27327 (register_edge_assert_for_1): Likewise.
27328 (find_assert_locations_1): Check the liveness bitmap instead of
27329 checking has_single_use().
27330
27331 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27332
27333 PR target/70728
27334 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27335 Extract AVX-512BW constraint from AVX.
27336
27337 2016-04-21 Richard Biener <rguenther@suse.de>
27338
27339 PR tree-optimization/70725
27340 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27341 for phi_convertible_by_degenerating_args.
27342 (predicate_all_scalar_phis): Handle single-argument PHIs.
27343
27344 2016-04-21 Richard Biener <rguenther@suse.de>
27345
27346 PR middle-end/70747
27347 * fold-const.c (fold_comparison): Return properly typed
27348 constant boolean.
27349
27350 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27351
27352 PR tree-optimization/70715
27353 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27354 after expanding BASE using expand_simple_operations.
27355
27356 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27357
27358 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27359 New transformations.
27360
27361 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27362
27363 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27364
27365 2016-04-20 Jan Hubicka <jh@suse.cz>
27366
27367 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27368 ultiimate_alias_target.
27369 (update_callee_keys): Likewise.
27370 (lookup_recursive_calls): Likewise.
27371 (speculation_useful_p): Likewise.
27372
27373 2016-04-20 Jan Hubicka <jh@suse.cz>
27374
27375 PR ipa/70018
27376 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27377 (set_nothrow_flag_1): ... this; handle interposition correctly;
27378 recurse on aliases and thunks.
27379 (cgraph_node::set_nothrow_flag): New.
27380 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27381 functions compiled with non-call exceptions that binds to current
27382 def.
27383 (propagate_nothrow): Be safe WRT interposition.
27384 * cgraph.h (set_nothrow_flag): Update prototype.
27385
27386 2016-04-18 Jan Hubicka <jh@suse.cz>
27387
27388 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27389 max_loop_iterations_int.
27390 (tree_unswitch_outer_loop): Likewise.
27391
27392 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27393
27394 PR tree-optimization/69489
27395 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27396 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27397 Revise dump message.
27398 (if_convertible_bb_p): Remove check on edge count of basic block's
27399 predecessors.
27400
27401 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27402
27403 PR tree-optimization/56625
27404 PR tree-optimization/69489
27405 * tree-data-ref.h (DR_INNERMOST): New macro.
27406 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27407 hashing struct innermost_loop_behavior.
27408 (ref_DR_map): Remove.
27409 (innermost_DR_map): New map.
27410 (baseref_DR_map): Revise comment.
27411 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27412 to innermost_DR_map accroding to its innermost loop behavior.
27413 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27414 to its innermost loop behavior.
27415 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27416 Add initialization for innermost_DR_map. Record memory reference
27417 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27418 have innermost loop behavior.
27419 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27420 innermost_DR_map.
27421
27422 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27423
27424 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27425 *lea_general_1. Use explicit SWI12 mode interator.
27426 (*lea<mode>_general_2): Rename from *lea_general_2.
27427 Use explicit SWI12 mode interator.
27428 (*lea<mode>_general_3): Rename from *lea_general_3.
27429 Use explicit SWI12 mode interator.
27430 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27431 Use explicit SWI12 mode interator.
27432 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27433 Use explicit SWI48 mode interator.
27434
27435 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27436
27437 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27438 Short-cut unaligned load and store cases. Handle all integer
27439 vector modes.
27440 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27441 and store cases. Call ix86_avx256_split_vector_move_misalign
27442 directly without checking mode class.
27443
27444 2016-04-20 Andrew Pinski <apinski@cavium.com>
27445 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27446
27447 PR target/64971
27448 * config/aarch64/aarch64.md (sibcall): Force call
27449 address to be DImode for ILP32.
27450 (sibcall_value): Likewise.
27451
27452 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27453
27454 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27455
27456 2016-04-20 Richard Biener <rguenther@suse.de>
27457
27458 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27459 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27460 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27461 (maybe_push_res_to_seq): Adjust.
27462 * gimple-fold.c (maybe_build_generic_op): Likewise.
27463
27464 2016-04-20 Marek Polacek <polacek@redhat.com>
27465
27466 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27467 rather than true.
27468
27469 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27470
27471 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27472 use kmovw to support AVX512F target.
27473
27474 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27475
27476 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27477
27478 2016-04-20 Marek Polacek <polacek@redhat.com>
27479
27480 PR tree-optimization/70725
27481 * tree-if-conv.c (is_false_predicate): New function.
27482 (predicate_mem_writes): Use it.
27483
27484 2016-04-20 Richard Biener <rguenther@suse.de>
27485
27486 PR tree-optimization/70726
27487 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27488 shift amounts from a pattern stmt operand.
27489
27490 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27491
27492 PR target/70674
27493 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27494 stack_restore_from_fpr pattern when restoring r15.
27495 (s390_optimize_prologue): Strip away the memory barrier in the
27496 parallel when trying to get rid of restore insns.
27497 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27498 definition for loading the stack pointer from an FPR. Compared to
27499 the normal move insn this pattern includes a full memory barrier.
27500
27501 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27502
27503 PR middle-end/70680
27504 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27505 implicitly linear or lastprivate iterator on the outer context.
27506
27507 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27508
27509 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27510 alignment check.
27511 * config/i386/i386.md (ssememalign): Removed.
27512 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27513
27514 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27515
27516 PR target/69201
27517 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27518 const short * to __builtin_ia32_loaddquhi512_mask.
27519 (_mm512_maskz_loadu_epi16): Likewise.
27520 (_mm512_mask_storeu_epi16): Pass short * to
27521 __builtin_ia32_storedquhi512_mask.
27522 (_mm512_mask_loadu_epi8): Pass const char * to
27523 __builtin_ia32_loaddquqi512_mask.
27524 (_mm512_maskz_loadu_epi8): Likewise.
27525 (_mm512_mask_storeu_epi8): Pass char * to
27526 __builtin_ia32_storedquqi512_mask.
27527 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27528 const double * to __builtin_ia32_loadupd512_mask.
27529 (_mm512_mask_loadu_pd): Likewise.
27530 (_mm512_maskz_loadu_pd): Likewise.
27531 (_mm512_storeu_pd): Pass double * to
27532 __builtin_ia32_storeupd512_mask.
27533 (_mm512_mask_storeu_pd): Likewise.
27534 (_mm512_loadu_ps): Pass const float * to
27535 __builtin_ia32_loadups512_mask.
27536 (_mm512_mask_loadu_ps): Likewise.
27537 (_mm512_maskz_loadu_ps): Likewise.
27538 (_mm512_storeu_ps): Pass float * to
27539 __builtin_ia32_storeups512_mask.
27540 (_mm512_mask_storeu_ps): Likewise.
27541 (_mm512_mask_loadu_epi64): Pass const long long * to
27542 __builtin_ia32_loaddqudi512_mask.
27543 (_mm512_maskz_loadu_epi64): Likewise.
27544 (_mm512_mask_storeu_epi64): Pass long long *
27545 to __builtin_ia32_storedqudi512_mask.
27546 (_mm512_loadu_si512): Pass const int * to
27547 __builtin_ia32_loaddqusi512_mask.
27548 (_mm512_mask_loadu_epi32): Likewise.
27549 (_mm512_maskz_loadu_epi32): Likewise.
27550 (_mm512_storeu_si512): Pass int * to
27551 __builtin_ia32_storedqusi512_mask.
27552 (_mm512_mask_storeu_epi32): Likewise.
27553 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27554 char * to __builtin_ia32_storedquqi256_mask.
27555 (_mm_mask_storeu_epi8): Likewise.
27556 (_mm256_mask_loadu_epi16): Pass const short * to
27557 __builtin_ia32_loaddquhi256_mask.
27558 (_mm256_maskz_loadu_epi16): Likewise.
27559 (_mm_mask_loadu_epi16): Pass const short * to
27560 __builtin_ia32_loaddquhi128_mask.
27561 (_mm_maskz_loadu_epi16): Likewise.
27562 (_mm256_mask_loadu_epi8): Pass const char * to
27563 __builtin_ia32_loaddquqi256_mask.
27564 (_mm256_maskz_loadu_epi8): Likewise.
27565 (_mm_mask_loadu_epi8): Pass const char * to
27566 __builtin_ia32_loaddquqi128_mask.
27567 (_mm_maskz_loadu_epi8): Likewise.
27568 (_mm256_mask_storeu_epi16): Pass short * to.
27569 __builtin_ia32_storedquhi256_mask.
27570 (_mm_mask_storeu_epi16): Pass short * to.
27571 __builtin_ia32_storedquhi128_mask.
27572 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27573 const double * to __builtin_ia32_loadupd256_mask.
27574 (_mm256_maskz_loadu_pd): Likewise.
27575 (_mm_mask_loadu_pd): Pass onst double * to
27576 __builtin_ia32_loadupd128_mask.
27577 (_mm_maskz_loadu_pd): Likewise.
27578 (_mm256_mask_storeu_pd): Pass double * to
27579 __builtin_ia32_storeupd256_mask.
27580 (_mm_mask_storeu_pd): Pass double * to
27581 __builtin_ia32_storeupd128_mask.
27582 (_mm256_mask_loadu_ps): Pass const float * to
27583 __builtin_ia32_loadups256_mask.
27584 (_mm256_maskz_loadu_ps): Likewise.
27585 (_mm_mask_loadu_ps): Pass const float * to
27586 __builtin_ia32_loadups128_mask.
27587 (_mm_maskz_loadu_ps): Likewise.
27588 (_mm256_mask_storeu_ps): Pass float * to
27589 __builtin_ia32_storeups256_mask.
27590 (_mm_mask_storeu_ps): ass float * to
27591 __builtin_ia32_storeups128_mask.
27592 (_mm256_mask_loadu_epi64): Pass const long long * to
27593 __builtin_ia32_loaddqudi256_mask.
27594 (_mm256_maskz_loadu_epi64): Likewise.
27595 (_mm_mask_loadu_epi64): Pass const long long * to
27596 __builtin_ia32_loaddqudi128_mask.
27597 (_mm_maskz_loadu_epi64): Likewise.
27598 (_mm256_mask_storeu_epi64): Pass long long * to
27599 __builtin_ia32_storedqudi256_mask.
27600 (_mm_mask_storeu_epi64): Pass long long * to
27601 __builtin_ia32_storedqudi128_mask.
27602 (_mm256_mask_loadu_epi32): Pass const int * to
27603 __builtin_ia32_loaddqusi256_mask.
27604 (_mm256_maskz_loadu_epi32): Likewise.
27605 (_mm_mask_loadu_epi32): Pass const int * to
27606 __builtin_ia32_loaddqusi128_mask.
27607 (_mm_maskz_loadu_epi32): Likewise.
27608 (_mm256_mask_storeu_epi32): Pass int * to
27609 __builtin_ia32_storedqusi256_mask.
27610 (_mm_mask_storeu_epi32): Pass int * to
27611 __builtin_ia32_storedqusi128_mask.
27612 * config/i386/i386-builtin-types.def (PCSHORT): New.
27613 (PINT64): Likewise.
27614 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27615 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27616 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27617 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27618 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27619 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27620 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27621 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27622 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27623 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27624 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27625 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27626 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27627 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27628 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27629 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27630 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27631 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27632 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27633 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27634 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27635 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27636 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27637 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27638 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27639 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27640 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27641 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27642 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27643 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27644 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27645 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27646 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27647 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27648 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27649 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27650 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27651 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27652 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27653 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27654 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27655 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27656 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27657 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27658 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27659 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27660 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27661 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27662 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27663 use UNSPEC_STOREU.
27664 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27665 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27666 load nor store.
27667 (ix86_expand_vector_move_misalign): Likewise.
27668 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27669 to scalar function prototype for unaligned load/store builtins.
27670 (ix86_expand_special_args_builtin): Updated.
27671 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27672 (UNSPEC_STOREU): Likewise.
27673 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27674 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27675 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27676 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27677 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27678 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27679 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27680 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27681 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27682 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27683 (<avx512>_storedqu<mode>_mask): Likewise.
27684 (*sse4_2_pcmpestr_unaligned): Likewise.
27685 (*sse4_2_pcmpistr_unaligned): Likewise.
27686 (*mov<mode>_internal): Renamed to ...
27687 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27688 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27689 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27690 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27691
27692 2016-04-19 Richard Biener <rguenther@suse.de>
27693
27694 PR tree-optimization/70171
27695 * tree-ssa-phiprop.c: Include stor-layout.h.
27696 (phiprop_insert_phi): Handle the aggregate copy case.
27697 (propagate_with_phi): Likewise.
27698
27699 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27700
27701 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27702 instead of simplify_gen_subreg (... , 0).
27703 (ix86_delegitimize_address): Ditto.
27704 (ix86_split_divmod): Ditto.
27705 (ix86_split_copysign_const): Ditto.
27706 (ix86_split_copysign_var): Ditto.
27707 (ix86_expand_args_builtin): Ditto.
27708 (ix86_expand_round_builtin): Ditto.
27709 (ix86_expand_special_args_builtin): Ditto.
27710 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27711 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27712 (udivmodqi4): Ditto.
27713 (absneg splitters): Ditto.
27714 (*jcc_bt<mode>_1): Ditto.
27715
27716 2016-04-19 Richard Biener <rguenther@suse.de>
27717
27718 PR tree-optimization/70724
27719 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27720 restoring out from ...
27721 (free_scc_vn): ... here.
27722 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27723 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27724 tail merging.
27725 (pass_fre::execute): Restore SSA info.
27726
27727 2016-04-19 Richard Biener <rguenther@suse.de>
27728
27729 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27730 * gimple-walk.c (walk_gimple_op): Initialize it.
27731 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27732 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27733 remapping SSA names of defs.
27734 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27735 adjustment.
27736
27737 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27738
27739 PR middle-end/70689
27740 * lra-constraints.c (equiv_substition_p): New.
27741 (process_alt_operands): Use it.
27742 (swap_operands): Swap it.
27743 (curr_insn_transform): Update it.
27744
27745 2016-04-18 Michael Matz <matz@suse.de>
27746
27747 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27748 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27749 * tree-core.h (tree_type_common.align): Use bit-field.
27750 (tree_type_common.spare): New.
27751 (tree_decl_common.off_align): Make smaller.
27752 (tree_decl_common.align): Use bit-field.
27753
27754 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27755 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27756 (scan_sharing_clauses): Ditto.
27757 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27758 (omp_finish_file): Ditto.
27759 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27760 (layout_decl): Ditto.
27761 (relayout_decl): Ditto.
27762 (finalize_record_size): Use SET_TYPE_ALIGN.
27763 (finalize_type_size): Ditto.
27764 (finish_builtin_struct): Ditto.
27765 (layout_type): Ditto.
27766 (initialize_sizetypes): Ditto.
27767 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27768 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27769 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27770 (get_chain_field): Ditto.
27771 (get_trampoline_type): Ditto.
27772 (get_nl_goto_field): Ditto.
27773 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27774 SET_DECL_ALIGN.
27775 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27776 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27777 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27778 (build_qualified_type): Use SET_TYPE_ALIGN.
27779 (build_aligned_type, build_range_type_1): Ditto.
27780 (build_atomic_base): Ditto.
27781 (build_common_tree_nodes): Ditto.
27782 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27783 (expand_one_stack_var_at): Ditto.
27784 * coverage.c (build_var): Use SET_DECL_ALIGN.
27785 * except.c (init_eh): Ditto.
27786 * function.c (assign_parm_setup_block): Ditto.
27787 * symtab.c (increase_alignment_1): Ditto.
27788 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27789 * tree-vect-stmts.c (ensure_base_align): Ditto.
27790 * varasm.c (align_variable): Ditto.
27791 (assemble_variable): Ditto.
27792 (build_constant_desc): Ditto.
27793 (output_constant_def_contents): Ditto.
27794
27795 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
27796 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
27797 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
27798 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
27799 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
27800
27801 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
27802
27803 PR target/70708
27804 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
27805 replace %vmovsd with "%vmovq".
27806 (vec_concatv2df): Likewise.
27807
27808 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
27809
27810 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
27811 (*vec_extractv2si_0): Ditto.
27812 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
27813 (zero_extended_scalar_load_operand splitters): Ditto.
27814 (vec_extract splitters): Ditto.
27815 (*vec_extractv4si_0_zext): Ditto.
27816 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
27817 and lowpart_subreg.
27818 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
27819 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
27820 (*sse4_1_extractps): Use lowpart_subreg.
27821 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
27822
27823 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27824
27825 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
27826 gld requirements.
27827 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
27828 Mention Solaris 11 packaging changes.
27829 Update gas and gld requirements.
27830 Remove reference to pre-Solaris 10 bug.
27831 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
27832 systems and bugs.
27833 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
27834 with cc.
27835
27836 2016-04-17 Jan Hubicka <jh@suse.cz>
27837
27838 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
27839 max_loop_iterations_int.
27840
27841 2016-04-18 Richard Biener <rguenther@suse.de>
27842
27843 PR tree-optimization/43434
27844 * tree-ssa-structalias.c (struct vls_data): New.
27845 (visit_loadstore): Handle all pointer-based accesses.
27846 (compute_dependence_clique): Compute a bitmap of restrict tags
27847 assigned bases and pass it to visit_loadstore.
27848
27849 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
27850
27851 PR target/70711
27852 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
27853 armv8.1-a and armv8.1-a+crc.
27854
27855 2016-04-18 Richard Biener <rguenther@suse.de>
27856
27857 PR tree-optimization/70701
27858 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
27859 references after translating through a memcpy.
27860
27861 2016-04-18 Richard Biener <rguenther@suse.de>
27862
27863 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
27864 (compute_antic): ... here. For partial antic use regular
27865 postorder and scrap iteration.
27866 (compute_partial_antic_aux): Remove unused return value.
27867 (init_pre): Do not allocate postorder.
27868 (fini_pre): Do not free postorder.
27869
27870 2016-04-18 Richard Biener <rguenther@suse.de>
27871
27872 PR middle-end/37870
27873 * expmed.c (extract_bit_field_1): Remove broken case
27874 using a wider MODE_INT mode.
27875
27876 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
27877
27878 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
27879 unless compiling with at least GCC-4.8.
27880
27881 2016-04-17 Jan Hubicka <jh@suse.cz>
27882
27883 PR bootstrap/70706
27884 * graphite.c (graphite_finalize): Update call to
27885 tree_estimate_probability.
27886 * predict.h (tree_estimate_probability): Update prototype.
27887
27888 2016-04-17 Jan Hubicka <jh@suse.cz>
27889
27890 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
27891 (tree_estimate_probability): Likewise.
27892 (pass_profile::execute): Update.
27893 (report_predictor_hitrates): New function.
27894 * profile.c (compute_branch_probabilities): Use it.
27895 * predict.h (report_predictor_hitrates): Declare.
27896
27897 2016-04-17 Jan Hubicka <jh@suse.cz>
27898
27899 PR ipa/70018
27900 * cgraph.h (cgraph_node::set_const_flag,
27901 cgraph_node::set_pure_flag): Update prototype to return bool;
27902 update comment.
27903 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
27904 of interposable symbol are interposable, too.
27905 (cgraph_set_const_flag_1): Rename to ...
27906 (set_const_flag_1): ... this one; change to self recursive function
27907 instead of call_for_symbol_thunks_and_aliases. Handle correctly
27908 clearnig the flag in all variants and also virtual thunks of const
27909 functions are pure; track if any change was done.
27910 (cgraph_node::set_const_flag): Update.
27911 (struct set_pure_flag_info): New struct.
27912 (cgraph_set_pure_flag_1): Rename to ...
27913 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
27914 rather than pointer encoded flags; track if any changes was done;
27915 handle correctly clearning flag and setting flag of aliases already
27916 declared const.
27917 (cgraph_node::set_pure_flag): Update.
27918 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
27919
27920 2016-04-17 Tom de Vries <tom@codesourcery.com>
27921
27922 PR other/70433
27923 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
27924 backslash in label.
27925
27926 2016-04-17 Tom de Vries <tom@codesourcery.com>
27927
27928 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
27929 '{}<> ' as escape-for-record.
27930
27931 2016-04-17 Tom de Vries <tom@codesourcery.com>
27932
27933 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
27934 structure.
27935
27936 2016-04-17 Tom de Vries <tom@codesourcery.com>
27937
27938 PR other/70185
27939 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
27940 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
27941 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
27942 * passes.c (finish_optimization_passes): Only call
27943 finish_graph_dump_file if dfi->graph_dump_initialized.
27944 (execute_function_dump, pass_init_dump_file): Use
27945 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
27946
27947 2016-04-17 Tom de Vries <tom@codesourcery.com>
27948
27949 PR tree-optimization/70256
27950 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27951 (debug_varmap): New function.
27952
27953 2016-04-17 Tom de Vries <tom@codesourcery.com>
27954
27955 PR other/70183
27956 * passes.c (pass_manager::register_pass): Propagate pflags.
27957
27958 2016-04-17 Tom de Vries <tom@codesourcery.com>
27959
27960 PR other/68875
27961 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27962 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27963 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27964 check if it's equal to p_start.
27965 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27966
27967 2016-04-15 Jan Hubicka <jh@suse.cz>
27968
27969 PR ipa/70018
27970 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27971 function does not bind to current def.
27972 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27973 handle conservatively calls to functions that does not need to bind
27974 to current def.
27975 (check_call): Update call of worse_state.
27976 (ignore_edge_for_nothrow): Update.
27977 (ignore_edge_for_pure_const): Likewise.
27978 (propagate_pure_const): Update calls to worse_state.
27979 (skip_function_for_local_pure_const): Reformat comments.
27980
27981 2016-04-15 Jan Hubicka <jh@suse.cz>
27982
27983 PR ipa/70018
27984 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27985 (cgraph_node::function_symbol): Likewise.
27986 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27987 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27988 (symtab_node::ultimate_alias_target): Add REF parameter.
27989 (symtab_node::binds_to_current_def_p): Declare.
27990 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27991 (cgraph_node::function_symbol): Likewise.
27992 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27993 (cgraph_node::get_availability): Likewise.
27994 (cgraph_edge::binds_to_current_def_p): New inline function.
27995 (varpool_node::get_availability): Add REF parameter.
27996 (varpool_node::ultimate_alias_target): Likewise.
27997 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27998 (symtab_node::binds_to_current_def_p): Likewise.
27999 * varpool.c (varpool_node::get_availability): Likewise.
28000
28001 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28002
28003 PR target/70662
28004 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28005 Fix mode size check.
28006
28007 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28008
28009 * BASE-VER: Set to 7.0.0.
28010
28011 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28012
28013 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28014
28015 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28016
28017 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28018 architecture revisions.
28019
28020 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28021
28022 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28023 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28024 * config/i386/i386.md (stack decrement to push peepholes): Guard
28025 with !x86_using_red_zone ().
28026
28027 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28028
28029 PR c++/70675
28030 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28031 to dump_generic_node.
28032 (NIY): Pass also flags to do_niy.
28033
28034 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28035
28036 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28037 (simd_clone_vector_of_formal_parm_types)
28038 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28039 (simd_clone_mangle, simd_clone_create)
28040 (simd_clone_adjust_return_type, create_tmp_simd_array)
28041 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28042 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28043 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28044 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28045 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28046 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28047 * omp-simd-clone.c: ... this new file.
28048 (simd_clone_vector_of_formal_parm_types): Make it static.
28049 * Makefile.in (OBJS): Add omp-simd-clone.o.
28050
28051 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28052
28053 PR target/70662
28054 * config/i386/sse.md: Use proper memory operand modifiers.
28055
28056
28057 2016-04-15 Richard Biener <rguenther@suse.de>
28058 Alan Modra <amodra@gmail.com>
28059
28060 PR tree-optimization/70130
28061 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28062 when alignment stays not the same and no not use the realign
28063 scheme then.
28064
28065 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28066
28067 PR target/70669
28068 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28069 direct move handlers for KFmode. Change TFmode handlers test from
28070 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28071
28072 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28073
28074 PR c++/70594
28075 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28076 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28077 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28078 * tree-ssa-live.c (remove_unused_scope_block_p): When
28079 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28080 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28081 block_ultimate_origin is FUNCTION_DECL.
28082 (remove_unused_locals): If current_function_decl is
28083 polymorphic_ctor_dtor_p, pass initial true to
28084 remove_unused_scope_block_p' is_ctor_dtor_block.
28085
28086 2016-04-14 Martin Sebor <msebor@redhat.com>
28087
28088 PR c++/69517
28089 PR c++/70019
28090 PR c++/70588
28091 * doc/extend.texi (Variable Length): Revert.
28092
28093 2016-04-14 Marek Polacek <polacek@redhat.com>
28094 Jan Hubicka <hubicka@ucw.cz>
28095
28096 PR c++/70029
28097 * tree.c (verify_type): Disable the canonical type of main variant
28098 check.
28099
28100 2016-04-14 Jason Merrill <jason@redhat.com>
28101
28102 * cfgexpand.c, expr.c: Revert previous change.
28103
28104 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28105
28106 PR middle-end/70643
28107 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28108 when building a mem ref for the incoming reduction variable.
28109
28110 2016-04-14 Richard Biener <rguenther@suse.de>
28111
28112 PR tree-optimization/70614
28113 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28114 loop if the evolution dropped to chrec_dont_know.
28115 (interpret_condition_phi): Likewise.
28116
28117 2016-04-14 Richard Biener <rguenther@suse.de>
28118
28119 PR tree-optimization/70623
28120 * tree-ssa-pre.c (changed_blocks): Make global ...
28121 (compute_antic): ... local here. Move and fix worklist
28122 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28123 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28124 worklist handling, dump when ANTIC_IN changed.
28125 (compute_partial_antic_aux): Remove worklist handling.
28126 (init_pre): Do not compute post dominators. Add a comment about
28127 the CFG order chosen.
28128 (fini_pre): Do not free post dominators.
28129
28130 2016-04-13 Martin Sebor <msebor@redhat.com>
28131
28132 PR c++/69517
28133 PR c++/70019
28134 PR c++/70588
28135 * doc/extend.texi (Variable Length): Document C++ specifics.
28136
28137 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28138
28139 PR c++/70641
28140 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28141 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28142 eh edges have been purged.
28143
28144 PR c++/70594
28145 * tree-sra.c (create_access_replacement,
28146 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28147 gets fancy name.
28148 * tree-pretty-print.c (dump_fancy_name): New function.
28149 (dump_decl_name, dump_generic_node): Use it.
28150
28151 2016-04-13 Jason Merrill <jason@redhat.com>
28152
28153 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28154 * expr.c (expand_expr_real_1): Likewise.
28155
28156 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28157
28158 * config/i386/i386.md (kunpckhi): Swap operands.
28159 (kunpcksi): Likewise.
28160 (kunpckdi): Likewise.
28161 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28162 (vec_pack_trunc_<mode>): Likewise.
28163
28164 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28165
28166 PR debug/70628
28167 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28168
28169 PR middle-end/70633
28170 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28171 gimplification turns some element into non-constant.
28172
28173 PR debug/70628
28174 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28175 * explow.c (convert_memory_address_addr_space_1): No longer static,
28176 add NO_EMIT argument and don't call convert_modes if true, pass
28177 it down recursively, remove break after return.
28178 (convert_memory_address_addr_space): Adjust caller.
28179 * simplify-rtx.c (simplify_unary_operation_1): Call
28180 convert_memory_address_addr_space_1 instead of convert_memory_address,
28181 if it returns NULL, don't simplify.
28182
28183 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28184
28185 PR target/70630
28186 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28187
28188 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28189
28190 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28191 Bump the upper SIMDLEN limits, so that if the return type or
28192 characteristic type if the return type is void can be passed in
28193 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28194 allowed.
28195
28196 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28197
28198 PR target/70640
28199 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28200 Do not use "=" constraint on an input constraint.
28201 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28202 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28203 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28204 generates (neg (abs ...)) instead of (abs ...).
28205
28206 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28207
28208 PR rtl-optimization/70596
28209 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28210 just invalidate LRA data and reset them. Adjust dump wording.
28211
28212 2016-04-12 Martin Liska <mliska@suse.cz>
28213
28214 Revert
28215 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28216
28217 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28218 estimates here.
28219 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28220 max_loop_iterations_int.
28221 (tree_unswitch_outer_loop): Likewise.
28222 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28223 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28224
28225 2016-04-12 Tom de Vries <tom@codesourcery.com>
28226
28227 PR tree-optimization/68756
28228 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28229 instead of new_name.
28230
28231 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28232
28233 PR tree-optimization/70602
28234 * tree-sra.c (generate_subtree_copies): Don't write anything into
28235 constant pool decls.
28236
28237 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28238 regardless whether there are depend clauses or not.
28239
28240 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28241
28242 PR target/70381
28243 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28244 target attribute and pragma from changing the -mfloat128
28245 and -mfloat128-hardware options.
28246
28247 * doc/extend.texi (Additional Floating Types): Document PowerPC
28248 __float128 restrictions.
28249
28250 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28251
28252 PR target/70133
28253 * config/aarch64/driver-aarch64.c
28254 (aarch64_get_extension_string_for_isa_flags): New.
28255 (arch_extension): Rename to...
28256 (aarch64_arch_extension): ...This.
28257 (ext_to_feat_string): Rename to...
28258 (aarch64_extensions): ...This.
28259 (aarch64_core_data): Keep track of architecture extension flags.
28260 (cpu_data): Rename to...
28261 (aarch64_cpu_data): ...This.
28262 (aarch64_arch_driver_info): Keep track of architecture extension
28263 flags.
28264 (get_arch_name_from_id): Rename to...
28265 (get_arch_from_id): ...This, change return type.
28266 (host_detect_local_cpu): Update and reformat for renames, handle
28267 extensions through common infrastructure.
28268
28269 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28270
28271 PR target/70133
28272 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28273 track of a canonical flag name.
28274 (all_extensions): Likewise.
28275 (arch_to_arch_name): Also track extension flags enabled by the arch.
28276 (all_architectures): Likewise.
28277 (aarch64_parse_extension): Move to here.
28278 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28279 rework.
28280 (aarch64_rewrite_selected_cpu): Update for above change.
28281 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28282 are handled, such that the single explicit value enabled by an
28283 extension is kept seperate from the implicit values it also enables.
28284 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28285 to here.
28286 (aarch64_parse_extension): New.
28287 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28288 here to config/aarch64/aarch64-protos.h.
28289 (aarch64_parse_extension): Move from here to
28290 common/config/aarch64/aarch64-common.c.
28291 (aarch64_option_print): Update.
28292 (aarch64_declare_function_name): Likewise.
28293 (aarch64_start_file): Likewise.
28294 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28295 the canonical flag for extensions.
28296 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28297 flags.
28298
28299 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28300
28301 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28302 AARCH64_FL_CRC.
28303
28304 2016-04-09 Tom de Vries <tom@codesourcery.com>
28305
28306 PR tree-optimization/68953
28307 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28308 first to last subscript.
28309
28310 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28311
28312 PR tree-optimization/70586
28313 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28314 for any calls.
28315
28316 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28317
28318 PR lto/70289
28319 PR ipa/70348
28320 PR tree-optimization/70373
28321 PR middle-end/70533
28322 PR middle-end/70534
28323 PR middle-end/70535
28324 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28325 clauses for acc parallel reductions as necessary. Error on those
28326 that are private.
28327 * omp-low.c (scan_sharing_clauses): Don't install variables which
28328 are used in acc parallel reductions.
28329 (lower_rec_input_clauses): Remove dead code.
28330 (lower_oacc_reductions): Add support for reference reductions.
28331 (lower_reduction_clauses): Remove dead code.
28332 (lower_omp_target): Don't remap variables appearing in acc parallel
28333 reductions.
28334 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28335
28336 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28337
28338 PR middle-end/70593
28339 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28340 with multiple SSA_NAME defs, force the outputs other than first
28341 to be live before calling live_track_process_def on each output.
28342
28343 PR rtl-optimization/70574
28344 * fwprop.c (forward_propagate_and_simplify): Don't add
28345 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28346 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28347 paradoxical subregs within *loc.
28348
28349 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28350
28351 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28352 -ftree-parallelize-loops={0,1}.
28353 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28354 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28355 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28356 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28357 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28358
28359 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28360
28361 PR sanitizer/70541
28362 * asan.c (instrument_derefs): If we get unknown location, extract it
28363 with EXPR_LOCATION.
28364 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28365
28366 2016-04-08 Tom de Vries <tom@codesourcery.com>
28367
28368 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28369 implicit firstprivate clause.
28370
28371 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28372
28373 PR target/70566
28374 * config/arm/thumb2.md (tst + branch-> lsls + branch
28375 peephole below *orsi_not_shiftsi_si): Require that condition
28376 register is dead after the peephole.
28377 (second peephole after the above): Likewise.
28378
28379 2016-04-08 Alan Modra <amodra@gmail.com>
28380
28381 PR target/70117
28382 * builtins.c (fold_builtin_classify): For IBM extended precision,
28383 look at just the high-order double to test for NaN.
28384 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28385 test just the high double for Inf but both doubles for subnormal
28386 limit.
28387
28388 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28389
28390 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28391 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28392 node->simdclone->mask_mode != VOIDmode masks.
28393 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28394 earlier, use it instead of node->simdclone.
28395 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28396 Set clonei->mask_mode.
28397
28398 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28399
28400 PR c/70436
28401 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28402 Pass it through to cp_parser_already_scoped_statement.
28403 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28404 it through to cp_parser_statement.
28405 (cp_parser_statement): Pass IF_P through to
28406 cp_parser_iteration_statement.
28407 (cp_parser_pragma): Adjust call to
28408 cp_parser_iteration_statement.
28409
28410 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28411
28412 PR c/70436
28413 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28414 resolve a future -Wparentheses warning.
28415 * omp-low.c (scan_sharing_clauses): Likewise.
28416 * tree-parloops.c (eliminate_local_variables): Likewise.
28417
28418 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28419
28420 PR rtl-optimization/70398
28421 * lra-constraints.c (process_address_1): Check zero scale and code
28422 for reloading with zero scale.
28423
28424 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28425
28426 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28427 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28428
28429 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28430
28431 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28432 Add support for AVX512F clones, include them by default for
28433 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28434 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28435 up to 128.
28436
28437 PR middle-end/70550
28438 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28439 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28440 firstprivate clauses.
28441 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28442 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28443 (lower_omp_target): Set TREE_NO_WARNING for
28444 non-addressable possibly uninitialized vars which are copied into
28445 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28446
28447 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28448
28449 * config/pa/predicates.md (integer_store_memory_operand): Accept
28450 REG+D operands with a large offset when reload_in_progress is true.
28451 (floating_point_store_memory_operand): Likewise.
28452
28453 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28454
28455 PR c++/70336
28456 * match.pd (nested int casts): Limit to GIMPLE.
28457
28458 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28459
28460 PR ipa/66223
28461 * ipa-devirt.c (maybe_record_node): Fix comment; use
28462 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28463
28464 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28465
28466 PR rtl-optimization/70542
28467 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28468 if there are any uses other than insn or debug insns.
28469
28470 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28471 Jakub Jelinek <jakub@redhat.com>
28472
28473 PR tree-optimization/70509
28474 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28475 Shift HOST_WIDE_INT_1U instead of 1.
28476
28477 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28478
28479 PR tree-optimization/70509
28480 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28481 of the vector base type for index.
28482
28483 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28484
28485 PR target/70510
28486 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28487
28488 2016-04-05 Richard Biener <rguenther@suse.de>
28489
28490 PR tree-optimization/70526
28491 * tree-sra.c (build_ref_for_offset): Use prev_base to
28492 extract the alias pointer type.
28493
28494 2016-04-05 Richard Biener <rguenther@suse.de>
28495
28496 * dse.c (struct store_info): Remove alias_set member.
28497 (struct read_info_type): Likewise.
28498 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28499 spill_deleted, clear_alias_set_lookup): Remove.
28500 (get_group_info): Remove dead base == NULL_RTX case.
28501 (dse_step0): Remove initialization of removed variables.
28502 (delete_dead_store_insn): Reomve alias set dumping.
28503 (free_read_records): Remove alias_set handling.
28504 (canon_address): Remove alias_set_out parameter.
28505 (record_store): Remove spill_alias_set, it's always zero.
28506 (check_mem_read_rtx): Likewise.
28507 (dse_step2): Rename from ...
28508 (dse_step2_nospill): ... this. Adjust.
28509 (scan_stores): Rename from ...
28510 (scan_stores_nospill): ... this.
28511 (scan_reads): Rename from ...
28512 (scan_reads_nospill): ... this.
28513 (scan_stores_spill, scan_reads_spill): Remove.
28514 (dse_step3_scan): Remove for_spills argument which is always false.
28515 (dse_step3): Likewise.
28516 (dse_step5): Rename from ...
28517 (dse_step5_nospill): ... this. Remove alias_set handling.
28518 (rest_of_handle_dse): Adjust.
28519
28520 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28521
28522 PR target/70525
28523 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28524 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28525 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28526 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28527
28528 2016-04-05 Richard Biener <rguenther@suse.de>
28529
28530 PR middle-end/70499
28531 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28532 non-register type temporaries into SSA.
28533
28534 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28535
28536 PR ipa/66223
28537 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28538 calls when sanitizing.
28539 (possible_polymorphic_call_target_p): Fix formatting.
28540
28541 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28542 Jakub Jelinek <jakub@redhat.com>
28543
28544 PR middle-end/70457
28545 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28546 to ensure a call statement is compatible with a built-in's
28547 prototype.
28548 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28549 Likewise.
28550
28551 2016-04-04 Richard Biener <rguenther@suse.de>
28552
28553 PR rtl-optimization/70484
28554 * rtl.h (canon_output_dependence): Declare.
28555 * alias.c (canon_output_dependence): New function.
28556 * dse.c (record_store): Use canon_output_dependence rather
28557 than canon_true_dependence.
28558
28559 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28560
28561 PR ipa/68881
28562 * cgraph.h (symtab_node::copy_visibility_from): New function.
28563 * symtab.c (symtab_node::copy_visibility_from): New function.
28564 * ipa-visibility.c (optimize_weakref): New function.
28565 (function_and_variable_visibility): Use it.
28566
28567 2016-04-04 Martin Liska <mliska@suse.cz>
28568
28569 PR hsa/70402
28570 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28571 value that is really in range handled by SBR instruction.
28572 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28573 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28574 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28575
28576 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28577
28578 PR target/70416
28579 PR target/67391
28580 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28581 set, but not for SP_REG operands.
28582
28583 2016-04-02 Martin Sebor <msebor@redhat.com>
28584
28585 PR c++/67376
28586 * fold-const.c (maybe_nonzero_address): New function.
28587 (fold_comparison): Call it. Fold equality and relational
28588 expressions involving null pointers.
28589 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28590
28591 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28592
28593 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28594 the "Y" constraint (scalar FP 0.0 immediate).
28595
28596 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28597 Add the "const_double" to the list of operand constraints.
28598
28599 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28600
28601 PR rtl-optimization/70467
28602 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28603 If low word of the last operand is 0, just emit addition/subtraction
28604 for the high word.
28605
28606 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28607
28608 PR target/70404
28609 * config/s390/s390.c (s390_expand_insv): Check for everything
28610 constant instead of just VOIDmode stuff.
28611
28612 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28613
28614 PR target/70496
28615 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28616
28617 2016-04-01 Nathan Sidwell <nathan@acm.org>
28618
28619 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28620
28621 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28622
28623 PR rtl-optimization/70461
28624 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28625 is necessary.
28626
28627 2016-03-31 Martin Liska <mliska@suse.cz>
28628
28629 PR hsa/70399
28630 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28631 a tree value or an immediate integer value to a buffer
28632 that is eventually copied to a BRIG section.
28633 (emit_immediate_operand): Call the function here.
28634 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28635 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28636 of class' fields that are removed.
28637 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28638 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28639 m_brig_repr_size fields.
28640
28641 2016-03-31 Martin Liska <mliska@suse.cz>
28642
28643 PR hsa/70391
28644 * hsa-gen.c (hsa_function_representation::update_dominance): New
28645 function.
28646 (convert_addr_to_flat_segment): Likewise.
28647 (gen_hsa_memory_set): New alignment argument.
28648 (gen_hsa_ctor_assignment): Likewise.
28649 (gen_hsa_insns_for_single_assignment): Provide alignment
28650 to gen_hsa_ctor_assignment.
28651 (gen_hsa_insns_for_direct_call): Add new argument.
28652 (expand_lhs_of_string_op): New function.
28653 (expand_string_operation_builtin): Likewise.
28654 (expand_memory_copy): New function.
28655 (expand_memory_set): New function.
28656 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28657 (convert_switch_statements): Change signature.
28658 (generate_hsa): Use a return value of the function.
28659 (pass_gen_hsail::execute): Do not call
28660 convert_switch_statements here.
28661 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28662 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28663 (hsa_function_representation::update_dominance): New function.
28664
28665 2016-03-31 Martin Liska <mliska@suse.cz>
28666
28667 PR hsa/70391
28668 * hsa-brig.c (emit_directive_variable): Emit alignment
28669 according to hsa_symbol::m_align.
28670 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28671 (dump_hsa_symbol): Dump alignment of HSA symbols.
28672 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28673 (gen_hsa_addr_with_align): New function.
28674 (hsa_bitmemref_alignment): Use newly added function.
28675 (gen_hsa_insns_for_load): Likewise.
28676 (gen_hsa_insns_for_store): Likewise.
28677 (gen_hsa_memory_copy): New argument added.
28678 (gen_hsa_insns_for_single_assignment): Respect
28679 alignment for assignments processed via gen_hsa_memory_copy.
28680 (gen_hsa_insns_for_direct_call): Likewise.
28681 (gen_hsa_insns_for_return): Likewise.
28682 (gen_function_def_parameters): Set default alignment.
28683 * hsa.c (hsa_object_alignment): New function.
28684 (hsa_byte_alignment): Pasted function.
28685 * hsa.h (hsa_symbol::m_align): New field.
28686
28687 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28688
28689 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28690 scratch field for goto case.
28691
28692 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28693
28694 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28695
28696 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28697
28698 PR target/70442
28699 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28700 (scalar_chain::convert_insn): Call convert_op for reg
28701 moves to handle undefined registers.
28702
28703 2016-03-31 Nathan Sidwell <nathan@acm.org>
28704
28705 PR c++/70393
28706 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28707 Assert we don't want to move backwards.
28708
28709 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28710
28711 PR target/70453
28712 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28713
28714 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28715
28716 PR rtl-optimization/70460
28717 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28718 with operand from REG_LABEL_OPERAND, instead substitute
28719 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28720 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28721
28722 2016-03-31 Martin Liska <mliska@suse.cz>
28723
28724 * passes.c (execute_one_pass): Do not call
28725 todo_after for a discarded function.
28726
28727 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28728
28729 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28730 (no_cost, infinite_cost): Initialize the new field.
28731 (get_computation_cost_at): Record setup cost.
28732 (determine_use_iv_cost_address): Skip cost computation for sub
28733 uses if we can estimate it without losing accuracy.
28734
28735 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28736
28737 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28738 estimates here.
28739 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28740 max_loop_iterations_int.
28741 (tree_unswitch_outer_loop): Likewise.
28742 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28743 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28744
28745 2016-03-30 Richard Biener <rguenther@suse.de>
28746
28747 PR middle-end/70450
28748 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28749
28750 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28751
28752 PR target/70421
28753 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28754 in gen_blendm expander.
28755
28756 2016-03-30 Nick Clifton <nickc@redhat.com>
28757
28758 PR target/62254
28759 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28760 case where we are already provided with an SImode SUBREG.
28761
28762 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28763
28764 PR target/70439
28765 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28766 conflict between DRAP register and __builtin_eh_return.
28767
28768 2016-03-30 Michael Matz <matz@suse.de>
28769 Richard Biener <rguenther@suse.de>
28770
28771 PR ipa/12392
28772 * ipa-polymorphic-call.c (struct type_change_info): Change
28773 speculative to an unsigned allowing to limit the work we do.
28774 (csftc_abort_walking_p): New inline function..
28775 (check_stmt_for_type_change): Limit the number of may-defs
28776 skipped for speculative devirtualization to
28777 max-speculative-devirt-maydefs.
28778 * params.def (max-speculative-devirt-maydefs): New param.
28779 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28780
28781 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28782
28783 PR target/63890
28784 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28785 and TARGET_MACHO.
28786
28787 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28788
28789 PR tree-optimization/59124
28790 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
28791 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
28792
28793 2016-03-29 Jeff Law <law@redhat.com>
28794
28795 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
28796
28797 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28798
28799 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
28800 to HOST_WIDE_INT.
28801
28802 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
28803
28804 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
28805 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
28806 gcrt0.o if linking dynamically.
28807
28808 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28809
28810 PR ipa/70283
28811 * ipa-devirt.c (methods_equal_p): New function.
28812 (compare_virtual_tables): Use it.
28813 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
28814 * cgraphclones.c (clone_function_name_1): Use
28815 symbol_table::symbol_suffix_separator.
28816 * coverage.c (build_var): Likewise.
28817 * symtab.c (symbol_table::symbol_suffix_separator): New.
28818
28819 2016-03-29 Jakub Jelinek <jakub@redhat.com>
28820
28821 PR rtl-optimization/70429
28822 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
28823 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
28824 mode != result_mode.
28825
28826 PR c++/70353
28827 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
28828
28829 PR tree-optimization/70405
28830 * ssa-iterators.h (num_imm_uses): Add missing braces.
28831
28832 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
28833
28834 PR rtl-optimization/68695
28835 * ira-color.c (allocno_copy_cost_saving): New.
28836 (improve_allocation): Use it.
28837
28838 2016-03-29 Richard Henderson <rth@redhat.com>
28839
28840 PR middle-end/70355
28841 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
28842
28843 2016-03-29 Richard Biener <rguenther@suse.de>
28844
28845 PR middle-end/70424
28846 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
28847 use alignment returned by get_pointer_alignment_1 if it is
28848 bigger than BITS_PER_UNIT.
28849 * builtins.c (get_pointer_alignment_1): Do not return true
28850 for alignment extracted from SSA info.
28851
28852 2016-03-28 James Bowman <james.bowman@ftdichip.com>
28853
28854 * config/ft32/ft32.opt (mnodiv): New.
28855 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
28856 * doc/invoke.texi (FT32 Options -mnodiv): New.
28857
28858 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
28859
28860 PR target/70406
28861 * config/i386/i386.md (define_split, andn): Fix modes.
28862
28863 2016-03-26 Richard Biener <rguenther@suse.de>
28864 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28865
28866 PR ipa/70366
28867 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
28868 instead of
28869 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
28870 as 2nd argument to cl_optimization_restore().
28871
28872 2016-03-25 Richard Henderson <rth@redhat.com>
28873
28874 PR target/70120
28875 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
28876 * config/aarch64/aarch64-protos.h: Declare it.
28877 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
28878
28879 2016-03-25 Alan Modra <amodra@gmail.com>
28880
28881 PR target/70052
28882 * config/rs6000/constraints.md (j): Simplify.
28883 * config/rs6000/predicates.md (easy_fp_constant): Exclude
28884 decimal float 0.D.
28885 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
28886 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
28887 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
28888 in all constraint alternatives.
28889 (movtd_64bit_nodm): Delete "j" constraint alternative.
28890
28891 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28892
28893 * tree-ssa-propagate.c: Enhance docs for
28894 SSA_PROP_NOT_INTERESTING.
28895
28896 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
28897
28898 * doc/extend.texi: Fix typo in documentation to pure attribute.
28899
28900 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
28901
28902 PR target/70319
28903 * config/pa/pa.md (bswapdi2): Use a scratch register.
28904
28905 2016-03-24 Richard Henderson <rth@redhat.com>
28906
28907 PR middle-end/69845
28908 * fold-const.c (extract_muldiv_1): Correct test for multiplication
28909 overflow.
28910
28911 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
28912
28913 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
28914 using ix86_expand_binary_operator instead of gen_andsi3.
28915
28916 2016-03-24 Richard Biener <rguenther@suse.de>
28917
28918 PR tree-optimization/70396
28919 * tree-vect-stmts.c (vectorizable_comparison): Use
28920 get_vectype_for_scalar_type.
28921
28922 2016-03-24 Richard Biener <rguenther@suse.de>
28923
28924 PR middle-end/70370
28925 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
28926 with register bases.
28927
28928 2016-03-24 Richard Biener <rguenther@suse.de>
28929
28930 PR tree-optimization/70372
28931 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
28932 build_all_ones_cst to also handle vector types correctly.
28933
28934 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
28935
28936 PR target/70381
28937 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
28938 -mfloat128 here.
28939
28940 2016-03-23 Marek Polacek <polacek@redhat.com>
28941
28942 PR c++/69884
28943 * doc/invoke.texi: Document -Wignored-attributes.
28944
28945 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28946
28947 PR tree-optimization/69042
28948 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
28949 parameter from 30 to 40.
28950
28951 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28952
28953 PR tree-optimization/69042
28954 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28955 for use with constant offset stripped in base.
28956
28957 2016-03-23 Richard Biener <rguenther@suse.de>
28958
28959 PR middle-end/70251
28960 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28961 mode compatibility check.
28962 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28963
28964 2016-03-23 Jeff Law <law@redhat.com>
28965
28966 PR tree-optimization/64058
28967 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28968 CONFLICT_COUNT.
28969 (struct ssa_conflicts): Move up earlier in the file.
28970 (conflicts_, var_map_): New static variables.
28971 (initialize_conflict_count): New function to initialize the
28972 CONFLICT_COUNT field for each conflict pair.
28973 (compare_pairs): Lazily initialize the conflict count and use it
28974 as the first tie-breaker.
28975 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28976 and wipe conflicts_ and map_ around the call to qsort. Remove
28977 special case for 2 coalesce pairs.
28978 * bitmap.c (bitmap_count_unique_bits): New function.
28979 (bitmap_count_bits_in_word): New function, extracted from
28980 bitmap_count_bits.
28981 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28982 * bitmap.h (bitmap_count_unique_bits): Declare it.
28983
28984 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28985
28986 PR target/69917
28987 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28988 transparent alias chain for decl assembler name.
28989 * config/sol2.c (solaris_assemble_visibility): Likewise.
28990
28991 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28992
28993 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28994 duration.
28995 (v10_fdivs): Likewise.
28996 (v10_fdivd): Likewise.
28997
28998 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28999
29000 PR driver/70132
29001 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29002 to not call fclose twice on file.
29003
29004 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29005
29006 PR tree-optimization/70354
29007 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29008 oprnd0 is wider than oprnd1 and there is a cast from the wider
29009 type to oprnd1, mask it with the mask of the narrower type.
29010
29011 PR target/70321
29012 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29013 Optimize TARGET_STV splitters, if high or low word of last argument
29014 is 0 or -1.
29015
29016 2016-03-22 Jeff Law <law@redhat.com>
29017
29018 PR target/70232
29019 tree-ssa-threadbackward.c
29020 (fsm_find_control_statement_thread_paths): Correctly distinguish
29021 between old style jump threads vs FSM jump threads.
29022
29023 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29024
29025 PR target/70302
29026 * config/i386/i386.c (scalar_chain::convert_op): Support
29027 uninitialized register usage case.
29028
29029 2016-03-22 Richard Biener <rguenther@suse.de>
29030
29031 PR middle-end/70251
29032 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29033 int...
29034 (capture::gen_transform): ... to change behavior when substituting
29035 a condition into cond or not-cond expr context.
29036 (dt_simplify::gen_1): Adjust.
29037 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29038 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29039 last change and instead change to
29040 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29041 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29042
29043 2016-03-22 Anthony Green <green@moxielogic.com>
29044
29045 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29046 issue for moxiebox targets.
29047 (CC1PLUS_SPEC): Ditto.
29048
29049 2016-03-22 Richard Biener <rguenther@suse.de>
29050
29051 PR middle-end/70333
29052 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29053 in the wide type.
29054
29055 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29056
29057 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29058
29059 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29060
29061 PR target/70325
29062 * config/i386/i386.c (def_builtin): Handle
29063 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29064 bits.
29065 (const struct builtin_description bdesc_special_args[]):
29066 Remove duplicate ISA bits.
29067
29068 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29069
29070 PR target/70329
29071 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29072 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29073 in a way that works also for AVX512BW.
29074
29075 PR target/70300
29076 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29077 instead of source if operands[1] is xmm16 and above and
29078 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29079 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29080
29081 PR c++/70295
29082 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29083 on assign if (*from_p) is a comparison, set it to
29084 TREE_NO_WARNING (*from_p).
29085
29086 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29087
29088 PR middle-end/70326
29089 * lra.c (restore_scratches): Ignore deleted insns.
29090
29091 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29092 Jakub Jelinek <jakub@redhat.com>
29093
29094 PR tree-optimization/70317
29095 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29096 to HONOR_NANS.
29097
29098 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29099
29100 PR target/70327
29101 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29102 of ix86_expand_move.
29103 (movoi): Ditto.
29104 (movti): Use general_operand for operand 1 predicate.
29105
29106 2016-03-21 Martin Liska <mliska@suse.cz>
29107
29108 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29109 insns.
29110 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29111
29112 2016-03-21 Martin Liska <mliska@suse.cz>
29113
29114 PR ipa/70306
29115 * ipa-icf.c (sem_function::parse): Skip static
29116 constructors and destructors.
29117
29118 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29119
29120 PR target/70296
29121 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29122 function-like macro, peek following token(s) if it is followed
29123 by CPP_OPEN_PAREN token with optional padding in between, and
29124 if not, don't treat it like a macro.
29125
29126 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29127 Alexander Monakov <amonakov@ispras.ru>
29128
29129 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29130 for the stabs debug format.
29131
29132 2016-03-21 Richard Biener <rguenther@suse.de>
29133
29134 PR tree-optimization/70310
29135 * tree-vect-generic.c (expand_vector_condition): Fold the built
29136 condition.
29137
29138 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29139
29140 PR target/70293
29141 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29142 Block third alternative for AVX-512VL target,
29143
29144 2016-03-21 Martin Liska <mliska@suse.cz>
29145
29146 PR hsa/70234
29147 * hsa-brig.c (emit_function_directives): Mark unemitted
29148 global variables for emission.
29149 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29150 (get_symbol_for_decl): Likewise.
29151 * hsa.h (struct hsa_symbol): New flag.
29152
29153 2016-03-21 Richard Biener <rguenther@suse.de>
29154
29155 PR tree-optimization/70288
29156 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29157 we do not estimate unsimplified all-constant conditionals or
29158 switches as optimized away.
29159
29160 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29161
29162 PR rtl-optimization/69102
29163 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29164 when we have a readonly dependency context.
29165
29166 2016-03-18 Jeff Law <law@redhat.com>
29167
29168 PR rtl-optimization/70263
29169 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29170 (update_equiv_regs): When trying to move a store to after the insn
29171 that sets the source of the store, make sure the store occurs after
29172 the insn that sets the source of the store. When successful note
29173 the REG_EQUIV note created in the dump file.
29174
29175 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29176 Bernd Schmidt <bschmidt@redhat.com>
29177
29178 * doc/extend.texi: Document more potential problems with basic asms.
29179
29180 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29181
29182 PR rtl-optimization/70278
29183 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29184 VOIDmode.
29185
29186 2016-03-18 Jason Merrill <jason@redhat.com>
29187
29188 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29189
29190 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29191
29192 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29193 values to 128b regs.
29194
29195 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29196
29197 PR tree-optimization/70252
29198 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29199 boolean vector has a proper number of elements.
29200 (supportable_narrowing_operation): Likewise.
29201
29202 2016-03-18 Tom de Vries <tom@codesourcery.com>
29203
29204 PR ipa/70269
29205 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29206
29207 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29208
29209 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29210 instead of replace_rtx for DEBUG_INSNs.
29211
29212 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29213
29214 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29215 load type reservations.
29216
29217 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29218
29219 PR target/70188
29220 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29221 define_constraint for "Q" and "T" constraints.
29222
29223 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29224
29225 Tweak the pipeline model for Exynos M1
29226
29227 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29228 model.
29229
29230 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29231
29232 PR c/70264
29233 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29234 where one or both locations aren't within a line_map.
29235
29236 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29237
29238 PR driver/70192
29239 * opts.c (finish_options): Don't set flag_pie to the default if
29240 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29241 if it is -1.
29242
29243 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29244
29245 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29246 true as ALL_REGS argument to replace_rtx.
29247
29248 2016-03-17 Richard Biener <rguenther@suse.de>
29249
29250 PR debug/70271
29251 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29252 last.
29253
29254 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29255
29256 PR target/70245
29257 * rtl.h (replace_rtx): Add ALL_REGS argument.
29258 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29259 equality and assert mode is the same, instead of just rtx pointer
29260 equality.
29261 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29262 true as ALL_REGS argument to replace_rtx.
29263
29264 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29265
29266 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29267 for boolean vector with vector mode only.
29268 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29269
29270 2016-03-17 Nick Clifton <nickc@redhat.com>
29271
29272 PR target/70162
29273 * config/rx/rx.c (rx_print_integer): Print negative constants in
29274 decimal.
29275
29276 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29277
29278 PR target/70261
29279 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29280
29281 2016-03-16 Richard Henderson <rth@redhat.com>
29282 Richard Biener <rguenth@suse.de>
29283
29284 PR middle-end/70240
29285 PR middle-end/68215
29286 PR tree-opt/68714
29287 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29288 first operand as is_gimple_condexpr.
29289
29290 PR middle-end/70240
29291 PR middle-end/68215
29292 Revert r231575
29293 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29294 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29295 Do not gimplify the result.
29296 (do_unop): Adjust call to tree_vec_extract.
29297 (do_binop): Likewise.
29298 (do_compare): Likewise.
29299 (do_plus_minus): Likewise.
29300 (do_negate): Likewise.
29301 (expand_vector_condition): Likewise.
29302 (do_cond): Likewise.
29303
29304 2016-03-16 Richard Henderson <rth@redhat.com>
29305
29306 PR target/70048
29307 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29308 (aarch64_classify_address): Use it.
29309 (aarch64_legitimize_address): Force all subexpressions of PLUS
29310 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29311
29312 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29313 Richard Biener <rguenth@suse.de>
29314
29315 PR target/70245
29316 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29317 return to even if only REGNO is equal, and assert
29318 mode is the same.
29319
29320 2016-03-11 Jeff Law <law@redhat.com>
29321
29322 PR rtl-optimization/70224
29323 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29324
29325 2016-03-16 Richard Henderson <rth@redhat.com>
29326
29327 PR middle-end/70199
29328 * function.h (struct function): Add has_forced_label_in_static.
29329 * gimplify.c (force_labels_r): Set it.
29330 * lto-streamer-in.c (input_struct_function_base): Read it.
29331 * lto-streamer-out.c (output_struct_function_base): Write it.
29332 * tree-inline.c (has_label_address_in_static_1): Remove.
29333 (copy_forbidden): Remove fndecl parameter; test
29334 has_forced_label_in_static.
29335 (inline_forbidden_p): Update call to copy_forbidden.
29336 (tree_versionable_function_p): Likewise.
29337 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29338 (chkp_versioning): Likewise.
29339 * tree-inline.h (copy_forbidden): Update decl.
29340
29341 2016-03-16 Marek Polacek <polacek@redhat.com>
29342
29343 PR c/70093
29344 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29345 function being thunked if the result type doesn't have fixed size.
29346 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29347 doesn't have fixed size.
29348
29349 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29350
29351 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29352 reporting malformed loop nest.
29353
29354 2016-03-16 Tom de Vries <tom@codesourcery.com>
29355
29356 PR lto/70187
29357 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29358 nodes.length () == 1 test to before first nodes[0] access.
29359
29360 2016-03-16 Tom de Vries <tom@codesourcery.com>
29361
29362 PR tree-optimization/68715
29363 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29364 single_pred_p test.
29365
29366 2016-03-16 Tom de Vries <tom@codesourcery.com>
29367
29368 PR tree-optimization/68809
29369 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29370 are the same.
29371
29372 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29373 Sandra Loosemore <sandra@codesourcery.com>
29374
29375 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29376 on leaf attribute. Mention ELF interposition problems.
29377
29378 2016-03-16 Alan Modra <amodra@gmail.com>
29379
29380 PR rtl-optimization/69195
29381 PR rtl-optimization/47992
29382 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29383 Add comments.
29384
29385 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29386
29387 PR bootstrap/69513
29388 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29389
29390 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29391
29392 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29393
29394 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29395
29396 PR rtl-optimization/70222
29397 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29398 optimization if mode is different from result_mode, queue up masking
29399 of the result in outer_op. Formatting fix.
29400
29401 PR middle-end/70239
29402 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29403 of safe_grow.
29404
29405 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29406
29407 PR rtl-optimization/69032
29408 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29409 looping backwards over basic block insns.
29410
29411 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29412
29413 PR target/66660
29414 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29415 to non-speculative when propagating trap bits.
29416
29417 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29418
29419 PR rtl-optimization/63384
29420 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29421 DEBUG_INSN_P insns.
29422
29423 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29424
29425 PR target/64411
29426 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29427 factored out from ...
29428 (sched_analyze_insn): ... here.
29429 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29430 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29431 get_implicit_reg_pending_clobbers in it.
29432 (setup_id_reg_sets): Use setup_id_implicit_regs.
29433 (deps_init_id): Ditto.
29434
29435 2016-03-15 Tom de Vries <tom@codesourcery.com>
29436
29437 PR ipa/70161
29438 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29439 dump_file_name.
29440 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29441 execute_function_dump.
29442 (execute_one_pass): Don't dump function if it will be dumped after ipa
29443 transform.
29444
29445 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29446
29447 * genrecog.c (match_pattern_2): If pred is NULL don't call
29448 safe_predicate_mode on it.
29449
29450 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29451
29452 PR middle-end/70219
29453 * lra-constraints.c (delete_move_and_clobber): Change assertion
29454 to also allow dregno == 0.
29455
29456 2016-03-14 Richard Henderson <rth@redhat.com>
29457
29458 PR tree-opt/68714
29459 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29460 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29461 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29462 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29463 on vectors.
29464
29465 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29466
29467 PR target/70083
29468 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29469 regs.
29470 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29471 VOIDmode.
29472 * lra-constraints.c (split_reg): For hard regs, try to find the
29473 biggest single-register mode used in the function.
29474
29475 2016-03-14 Richard Biener <rguenther@suse.de>
29476
29477 PR tree-optimization/56365
29478 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29479 constants to compare against.
29480
29481 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29482
29483 PR target/70098
29484 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29485 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29486 (define_split for the GPR case): Use int_reg_operand instead of
29487 gpc_reg_operand for the output.
29488
29489 2016-03-14 Tom de Vries <tom@codesourcery.com>
29490
29491 PR tree-optimization/70045
29492 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29493 create_empty_if_region_on_edge argument.
29494
29495 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29496
29497 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29498 (STACK_CHECK_PROTECT): Likewise.
29499 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29500 (STACK_CHECK_PROTECT): Likewise.
29501 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29502 (STACK_CHECK_PROTECT): Likewise.
29503 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29504 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29505 (STACK_CHECK_PROTECT): Likewise.
29506
29507 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29508
29509 PR rtl-optimization/69307
29510 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29511 registers in modes that span more than one register.
29512
29513 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29514
29515 PR target/69614
29516 * lra-constraints.c (delete_move_and_clobber): New.
29517 (remove_inheritance_pseudos): Use it.
29518
29519 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29520
29521 PR ada/70017
29522 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29523 the libcall is LCT_THROW.
29524 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29525 for the checking routine.
29526
29527 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29528
29529 PR target/70131
29530 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29531 optimization if we have direct move.
29532 (roundu32<mode>2_fprs): Likewise.
29533
29534 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29535
29536 PR target/70123
29537 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29538 be rematerialized.
29539 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29540 Arguments swapped. All callers changed. Take reg_renumber into
29541 account, and Calculate and compare register ranges for hard regs.
29542
29543 2016-03-11 Jeff Law <law@redhat.com>
29544
29545 PR tree-optimization/70190
29546 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29547 Handle cases where we can not extract the taken edge, even though we
29548 found a constant value.
29549
29550 PR tree-optimization/64058
29551 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29552 (num_coalesce_pairs): Move up earlier in file.
29553 (find_coalesce_pair): Initialize the INDEX field for each pair
29554 discovered.
29555 (compare_pairs): No longer sort on the elements in each pair.
29556 Instead break ties with the index of the coalesce pair.
29557
29558 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29559
29560 PR target/70002
29561 * config/aarch64/aarch64-protos.h
29562 (aarch64_save_restore_target_globals): New prototype.
29563 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29564 Call the above when popping pragma.
29565 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29566 New function.
29567 (aarch64_set_current_function): Rewrite using the above.
29568
29569 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29570
29571 PR tree-optimization/70177
29572 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29573 (extract_ops_from_tree): ... this. In the 2 argument
29574 overload remove _1 suffix.
29575 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29576 (extract_ops_from_tree): ... this.
29577 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29578 Adjust callers.
29579 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29580 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29581 extract_ops_from_tree instead of 2 operand one.
29582
29583 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29584
29585 PR tree-optimization/70013
29586 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29587 for constant-pool entries.
29588
29589 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29590
29591 PR rtl-optimization/70174
29592 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29593 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29594
29595 PR tree-optimization/70169
29596 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29597 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29598 for unknown codes.
29599
29600 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29601 Jakub Jelinek <jakub@redhat.com>
29602
29603 PR target/70160
29604 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29605 of uninitialized values.
29606
29607 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29608
29609 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29610 define_expand.
29611 ("*trunctddd2"): New pattern definition.
29612 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29613 TD->DD truncation.
29614
29615 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29616
29617 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29618 definitions for BFP and DFP rounding modes.
29619 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29620 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29621 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29622 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29623 numbers.
29624
29625 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29626
29627 * config/s390/constraints.md: Adjust comment.
29628 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29629 s390_decompose_addrstyle_without_index.
29630 * config/s390/predicates.md (shift_count_or_setmem_operand):
29631 Rename to setmem_operand.
29632 * config/s390/s390-protos.h
29633 (s390_decompose_shift_count): Rename to
29634 s390_decompose_addrstyle_without_index.
29635 * config/s390/s390.c (s390_decompose_shift_count)
29636 (s390_mem_constraint, print_shift_count_operand)
29637 (print_operand_address, print_operand): Rename
29638 s390_decompose_shift_count to
29639 s390_decompose_addrstyle_without_index and rename
29640 print_shift_count_operand to print_addrstyle_operand troughout the
29641 file.
29642 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29643 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29644 Rename shift_count_or_setmem_operand to setmem_operand.
29645 * config/s390/vx-builtins.md ("vec_insert<mode>")
29646 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29647 nonmemory_operand.
29648
29649 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29650
29651 PR target/70168
29652 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29653 Handle overlapping retval and newval.
29654
29655 2016-03-10 Nick Clifton <nickc@redhat.com>
29656
29657 PR target/7044
29658 * config/aarch64/aarch64.c
29659 (aarch64_override_options_after_change_1): When forcing
29660 flag_omit_frame_pointer to be true, use a special value that can
29661 be detected if this function is called again, thus preventing
29662 flag_omit_leaf_frame_pointer from being forced to be false.
29663
29664 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29665
29666 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29667 Set x_flag_omit_leaf_frame_pointer when handling
29668 -momit-leaf-frame-pointer.
29669
29670 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29671
29672 PR lto/69589
29673 * cgraph.c (cgraph_node::dump): Dump split_part and
29674 indirect_call_target.
29675 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29676 * ipa.c (has_addr_references_p): Cleanup.
29677 (is_indirect_call_target_p): New.
29678 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29679 called indirectly as local.
29680 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29681
29682 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29683
29684 PR ipa/69630
29685 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29686 on cxa_pure_virtual.
29687
29688 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29689
29690 PR lto/69589
29691 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29692
29693 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29694
29695 PR lto/69589
29696 * tree.c (need_assembler_name_p): Only record main variant type names.
29697
29698 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29699
29700 PR target/70113.
29701 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29702 Always define to 0 or 1.
29703 (TARGET_FIX_ERR_A53_843419): New macro.
29704 * config/aarch64/aarch64-elf-raw.h
29705 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29706 * config/aarch64/aarch64-linux.h: Likewise.
29707 * config/aarch64/aarch64.c
29708 (aarch64_override_options_after_change_1): Do not default
29709 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29710 843419 is on.
29711 (aarch64_attributes): Handle fix-cortex-a53-843419.
29712 (aarch64_can_inline_p): Likewise.
29713 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29714
29715 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29716 Jakub Jelinek <jakub@redhat.com>
29717
29718 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29719 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29720 DECL_COMMONS if flag_unconstrained_commons is set.
29721 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29722 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29723 (funconstrained-commons): Document.
29724
29725 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29726
29727 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29728 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29729
29730 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29731
29732 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29733 has a proper number of elements.
29734
29735 2016-03-10 Alan Modra <amodra@gmail.com>
29736
29737 PR rtl-optimization/69195
29738 PR rtl-optimization/47992
29739 * ira.c (recorded_label_ref): Delete.
29740 (update_equiv_regs): Return void.
29741 (indirect_jump_optimize): New function.
29742 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29743 before regstat_compute_ri. Don't rebuild_jump_labels here.
29744 Delete update_regstat.
29745
29746 2016-03-10 Richard Biener <rguenther@suse.de>
29747
29748 PR tree-optimization/70128
29749 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29750 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29751
29752 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29753
29754 PR tree-optimization/70152
29755 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29756 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29757
29758 PR target/70086
29759 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29760 instead of gen_sse2_loadlpd.
29761 * config/i386/sse.md (*vec_concatv2df): Rename to...
29762 (vec_concatv2df): ... this.
29763
29764 PR tree-optimization/70127
29765 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29766
29767 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29768
29769 PR c/68473
29770 PR c++/70105
29771 * diagnostic-show-locus.c (compatible_locations_p): New function.
29772 (layout::layout): Sanitize ranges using compatible_locations_p.
29773
29774 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29775
29776 PR c/68473
29777 PR c++/70105
29778 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29779 location_range param with three const expanded_locations * and a
29780 bool.
29781 (layout::layout): Replace call to
29782 rich_location::lazily_expand_location with get_expanded_location.
29783 Extract the range and perform location expansion here, passing
29784 the results to the layout_range ctor.
29785 * diagnostic.c (source_range::debug): Delete.
29786 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29787 of rich_location::get_expanded_location.
29788 * gcc-rich-location.c (get_range_for_expr): Delete.
29789 (gcc_rich_location::add_expr): Reimplement to avoid the
29790 rich_location::add_range overload that took a location_range,
29791 passing a location_t instead.
29792
29793 2016-03-09 Richard Biener <rguenther@suse.de>
29794 Jakub Jelinek <jakub@redhat.com>
29795
29796 PR tree-optimization/70138
29797 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29798 Also skip vect_double_reduction_def.
29799
29800 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29801
29802 PR target/70049
29803 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
29804 if the operand is "m".
29805
29806 2016-03-09 Nathan Sidwell <nathan@acm.org>
29807
29808 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
29809
29810 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29811
29812 * config/i386/i386.c (processor_target_table): Fix cost table
29813 intialization order for znver1.
29814
29815 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29816
29817 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
29818 - becuase -> because.
29819 * ipa-reference.c (ignore_module_statics): Likewise.
29820 * cgraph.c (cgraph_node::get_body): Likewise.
29821 * ipa-inline.c (early_inliner): Likewise.
29822 * ipa-devirt.c (types_same_for_odr): Likewise.
29823 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
29824 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
29825
29826 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29827
29828 * tree-ssa-math-opts.c: Fix typo in comment.
29829
29830 2016-03-08 Jakub Jelinek <jakub@redhat.com>
29831
29832 PR target/70110
29833 * config/i386/i386.c (scalar_chain::make_vector_copies,
29834 scalar_chain::convert_reg): Call end_sequence in between
29835 get_insns and emit_conversion_insns rather than after both
29836 calls.
29837
29838 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
29839
29840 PR target/70064
29841 * config/i386/i386.h (machine_function): Add
29842 pc_thunk_call_expanded flag.
29843 (ix86_pc_thunk_call_expanded): New define.
29844 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
29845 (*set_got): Rename insn pattern from set_got.
29846 (*set_got_labelled): Rename inst pattern from set_got_labelled.
29847 * config/i386/i386.c (ix86_compute_frame_layout): Use
29848 ix86_pc_thunk_call_expanded to prevent red-zone.
29849
29850 2016-03-07 Martin Jambor <mjambor@suse.cz>
29851
29852 * hsa.h (hsa_get_ctor_statements): Declare.
29853 (hsa_get_dtor_statements): Likewise.
29854 (hsa_get_kernel_dispatch_type): Likewise.
29855 * hsa.c (hsa_get_ctor_statements): New function.
29856 (hsa_get_dtor_statements): Likewise.
29857 (hsa_get_kernel_dispatch_type): Likewise.
29858 * hsa-brig.c (hsa_cdtor_statements): Removed.
29859 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
29860 hsa_get_dtor_statements.
29861 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
29862 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
29863
29864 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
29865
29866 * config/arm/arm-cores.def (cortex-r8): New.
29867 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
29868 * config/arm/arm-tune.md: Likewise.
29869 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
29870
29871 2016-03-07 Martin Sebor <msebor@redhat.com>
29872
29873 PR rtl-optimization/19705
29874 * doc/invoke.texi (Options That Control Optimization): Clarify
29875 -fno-branch-count-reg.
29876
29877 2016-02-26 Richard Biener <rguenther@suse.de>
29878 Jeff Law <law@redhat.com>
29879
29880 PR tree-optimization/69740
29881 * cfghooks.c (remove_edge): Request loop fixups if we delete
29882 an edge that might turn an irreducible loop into a natural
29883 loop.
29884 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
29885 Move after definition of loops_state_clear.
29886
29887 2016-03-07 Bin Cheng <bin.cheng@arm.com>
29888
29889 PR rtl-optimization/69052
29890 * rtlanal.c (commutative_operand_precedence): Set higher precedence
29891 to CONST_WIDE_INT.
29892
29893 2016-03-07 Tom de Vries <tom@codesourcery.com>
29894
29895 PR tree-optimization/70116
29896 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
29897 is_tm_ending stmts and ubsan/asan internal functions.
29898 (find_duplicate): Use it. Don't test is_tm_ending here.
29899
29900 2016-03-07 Richard Biener <rguenther@suse.de>
29901
29902 PR tree-optimization/70115
29903 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
29904 (propagate_constants_for_unrolling): Use replace_uses_by.
29905
29906 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
29907
29908 PR middle-end/69916
29909 * omp-low.c (struct oacc_loop): Add ifns.
29910 (new_oacc_loop_raw): Initialize it.
29911 (finish_oacc_loop): Clear mask & flags if no ifns.
29912 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
29913 (oacc_loop_xform_loop): Add ifns arg & adjust.
29914 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
29915
29916 2016-03-07 Richard Henderson <rth@redhat.com>
29917
29918 PR rtl-opt/70061
29919 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
29920 (insert_value_copy_on_edge): Likewise.
29921
29922 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29923
29924 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
29925
29926 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29927
29928 PR target/62281
29929 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
29930
29931 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29932
29933 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
29934
29935 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
29936
29937 Fix sseimul type attribute.
29938 * config/i386/znver1.md
29939 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
29940 znver1_sseimul_avx256_load) : Fix the type attribute.
29941 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
29942 pipe usage and latency.
29943
29944 2016-03-05 Jakub Jelinek <jakub@redhat.com>
29945
29946 PR c++/70084
29947 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
29948 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29949 to the right type.
29950
29951 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29952
29953 PR c/69973
29954 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29955
29956 PR rtl-optimization/69941
29957 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29958 the reg share its mode.
29959
29960 2016-03-04 Jeff Law <law@redhat.com>
29961
29962 PR tree-optimization/69196
29963 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29964 If the both SSA_NAMEs are anonymous, then consider them unassociated
29965 and include the PHI in the statement count.
29966
29967 2016-03-05 Tom de Vries <tom@codesourcery.com>
29968
29969 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29970 construct in oacc routine. Check for oacc region in oacc routine.
29971
29972 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29973
29974 PR target/70062
29975 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29976 2016-02-22 changes, instead don't recurse if RECUR is already true.
29977 Don't change *dynamic_check if RECUR. Adjust recursive caller
29978 to pass true to the new argument.
29979 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29980
29981 PR target/70059
29982 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29983 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29984 fixes.
29985 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29986
29987 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29988
29989 PR rtl-optimization/57676
29990 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29991 with flag_checking.
29992
29993 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29994
29995 * tree-vect-patterns.c (search_type_for_mask): Handle
29996 comparison of booleans.
29997
29998 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29999
30000 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30001 Fix @xref usage.
30002
30003 PR debug/69947
30004 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30005 all other ops that have dw_val_class_die_ref operands,
30006 and DW_OP_GNU_entry_value.
30007
30008 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30009
30010 PR rtl-optimization/69904
30011 * config/arm/arm.c (arm_cannot_copy_insn_p):
30012 Return true for load-exclusive instructions.
30013
30014 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30015
30016 PR target/70021
30017 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30018 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30019 the pattern no matter if it is used just by non-pattern, pattern
30020 or mix thereof.
30021 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30022 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30023 oprnd1 def_stmt is in pattern, don't look through it.
30024
30025 2016-03-03 Marek Polacek <polacek@redhat.com>
30026
30027 PR middle-end/70050
30028 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30029
30030 2016-03-03 Martin Liska <mliska@suse.cz>
30031
30032 PR tree-optimization/70043
30033 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30034 previous statement if we see a debug statement.
30035
30036 2016-03-03 Richard Biener <rguenther@suse.de>
30037
30038 PR tree-optimization/55936
30039 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30040 parameter and guard unsafe equivalence use.
30041 (vrp_evaluate_conditional_warnv_with_ops): Always use
30042 safe equivalences but not via the quadratic compare_names
30043 helper.
30044
30045 2016-03-03 Michael Collison <michael.collison@linaro.org>
30046
30047 PR target/70014
30048 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30049 for operand 1 to s_register_operand. Change predicate for operand
30050 2 to arm_not_immediate_operand.
30051
30052 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30053
30054 * doc/tm.texi: Regenerated.
30055
30056 2016-03-02 Richard Henderson <rth@redhat.com>
30057
30058 PR rtl-opt/67145
30059 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30060 simplification when all args are positive non-fixed registers.
30061
30062 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30063
30064 * target.def (lra_p): Specify that new ports should use LRA.
30065
30066 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30067
30068 PR libgomp/69555
30069 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30070 gimplify_type_sizes the type they refer to.
30071 (omp_notice_variable): Handle reference vars to VLAs.
30072 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30073 reference to VLA decls in the second pass instead of first pass.
30074
30075 2016-03-02 Tom de Vries <tom@codesourcery.com>
30076
30077 PR tree-optimization/68659
30078 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30079 new_expr == NULL_TREE.
30080 (get_new_name): Handle ADDR_EXPR.
30081
30082 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30083
30084 PR rtl-optimization/69052
30085 * loop-invariant.c (canonicalize_address): New function.
30086 (inv_can_prop_to_addr_use): Check validity of address expression
30087 which is canonicalized by above function.
30088
30089 2016-03-02 Alan Modra <amodra@gmail.com>
30090
30091 PR ipa/69990
30092 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30093 larger alignment.
30094
30095 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30096
30097 PR target/70028
30098 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30099 (*movhi_internal): Put mask moves from and to memory separately
30100 from moves from/to GPRs.
30101
30102 2016-03-02 Richard Biener <rguenther@suse.de>
30103
30104 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30105 GENERIC expressions in GIMPLE.
30106
30107 2016-03-02 Richard Biener <rguenther@suse.de>
30108
30109 * config/i386/i386.c (type_natural_mode): Fix typo.
30110
30111 2016-03-02 Nick Clifton <nickc@redhat.com>
30112
30113 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30114
30115 2016-03-02 Richard Biener <rguenther@suse.de>
30116 Uros Bizjak <ubizjak@gmail.com>
30117
30118 PR target/67278
30119 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30120
30121 2016-03-02 Richard Biener <rguenther@suse.de>
30122
30123 PR middle-end/67278
30124 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30125
30126 2016-03-02 Marek Polacek <polacek@redhat.com>
30127
30128 PR c/67854
30129 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30130 "is promoted to" warning.
30131
30132 2016-03-01 DJ Delorie <dj@redhat.com>
30133
30134 * config.gcc: Deprecate mep-*.
30135
30136 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30137
30138 PR middle-end/70025
30139 * lra-constraints.c (regno_val_use_in): New.
30140 (match_reload): Use it instead of regno_use_in.
30141
30142 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30143
30144 PR rtl-optimization/70007
30145 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30146 references present in REG_EQUAL notes attached to non-SET patterns.
30147
30148 2016-03-01 Jeff Law <law@redhat.com>
30149
30150 PR tree-optimization/69196
30151 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30152 Appropriately clamp the number of statements to copy when the
30153 thread path does not traverse a loop backedge.
30154
30155 PR tree-optimization/69196
30156 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30157 Do count some PHIs in the thread path against the insn count. Decrease
30158 final statement count by one as the control statement in the last
30159 block will get removed. Remove special cased code for handling PHIs
30160 in the last block.
30161
30162 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30163
30164 PR target/70027
30165 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30166 asm dialect alternatives to explicit GOTPCREL calls.
30167
30168 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30169
30170 PR ada/70017
30171 * ira.c (do_reload): Issue warning for generic stack checking here...
30172 * reload1.c (reload): ...instead of here and streamline it.
30173
30174 2016-03-01 Nick Clifton <nickc@redhat.com>
30175
30176 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30177
30178 2016-03-01 Richard Biener <rguenther@suse.de>
30179
30180 PR tree-optimization/69983
30181 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30182 types and fall back to operand_equal_p.
30183
30184 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30185
30186 Revert
30187 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30188
30189 * config/s390/constraints.md ("jm8"): New constraint.
30190 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30191 predicate.
30192 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30193 into ...
30194 ("*setmem_long<setmem_and>"): New pattern.
30195 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30196 into ...
30197 ("*setmem_long_31z<setmem_and>"): New pattern.
30198 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30199 New substitution rules with the required attributes.
30200
30201
30202 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30203
30204 Revert
30205 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30206
30207 * gensupport.c (process_substs_on_one_elem): Split loop to
30208 complete mark_operands_used_in_match_dup on all expressions in the
30209 vector first.
30210 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30211 and remove function.
30212
30213 2016-03-01 Richard Biener <rguenther@suse.de>
30214
30215 PR middle-end/70022
30216 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30217 vector BIT_FIELD_REF extract.
30218
30219 2016-03-01 Richard Biener <rguenther@suse.de>
30220
30221 PR tree-optimization/69994
30222 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30223
30224 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30225
30226 PR tree-optimization/69956
30227 * tree-vect-stmts.c (supportable_widening_operation): Support
30228 multi-step conversion of boolean vectors.
30229 (supportable_narrowing_operation): Likewise.
30230
30231 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30232
30233 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30234 anymore.
30235
30236 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30237
30238 * config/s390/subst.md (DSI_VI): New mode iterator.
30239 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30240 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30241 the insn definition.
30242 ("*vec_set<mode>"): Change predicate and add alternative to
30243 support only either register or const_int operands as element
30244 selector.
30245 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30246 operands.
30247 ("vec_extract<mode>"): New expander.
30248 ("*vec_extract<mode>"): New insn definition supporting reg and
30249 const_int element selectors.
30250 ("*vec_extract<mode>_plus"): New insn definition supporting
30251 reg+const_int element selectors.
30252 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30253 following expander+insn definition.
30254 ("<vec_shifts_name><mode>3"): New expander.
30255 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30256
30257 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30258
30259 * config/s390/s390.md ("*tabort_1"): Change predicate to
30260 nonmemory_operand. Add a second alternative to cover
30261 register as well as const int operands.
30262 ("*tabort_1_plus"): New pattern definition.
30263
30264 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30265
30266 * config/s390/s390.md ("*ashrdi3_cc_31")
30267 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30268 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30269 Merge insn definitions into ...
30270 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30271 New pattern definition.
30272 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30273 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30274 ("*ashr<mode>3_and"): Merge insn definitions into ...
30275 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30276 New pattern definition.
30277 * config/s390/subst.md ("addr_style_op_cc_subst")
30278 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30279 substitutions patterns plus attributes.
30280 Add ashiftrt to SUBST iterator.
30281
30282 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30283
30284 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30285 op2 to nonmemory_operand.
30286 ("*<shift>di3_31", "*<shift>di3_31_and"):
30287 Merge into single pattern definition ...
30288 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30289 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30290 pattern definition ...
30291 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30292 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30293 iterator.
30294
30295 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30296
30297 * config/s390/predicates.md (const_int_6bitset_operand): New
30298 predicate.
30299 * config/s390/s390.md: Include subst.md.
30300 ("rotl<mode>3"): New expander.
30301 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30302 ...
30303 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30304 * config/s390/subst.md: New file.
30305
30306 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30307
30308 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30309 Remove RRR type. It doesn't really exist.
30310 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30311 attributes.
30312 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30313 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30314 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30315 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30316 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30317 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30318 `enabled' attribute.
30319
30320 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30321
30322 * gensupport.c (process_substs_on_one_elem): Split loop to
30323 complete mark_operands_used_in_match_dup on all expressions in the
30324 vector first.
30325 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30326 and remove function.
30327
30328 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30329
30330 PR target/69706
30331 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30332 (CEIL_NWORDS): ...this. Use CEIL macro.
30333 (compute_fp_layout): Adjust to above renaming.
30334 (function_arg_union_value): Likewise.
30335 (sparc_arg_partial_bytes): Likewise.
30336 (sparc_function_arg_advance): Likewise.
30337
30338 2016-02-29 Jeff Law <law@redhat.com>
30339
30340 PR tree-optimization/70005
30341 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30342 where an object with a boolean range is compared against a value
30343 outside [0..1].
30344
30345 PR tree-optimization/69999
30346 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30347 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30348 loop cleanups.
30349
30350 2016-02-29 Richard Biener <rguenther@suse.de>
30351
30352 PR tree-optimization/69994
30353 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30354 (get_unary_op): Look through nop conversions.
30355 (ops_equal_values_p): New function, look for equality diregarding
30356 nop conversions.
30357 (eliminate_plus_minus_pair): Use ops_equal_values_p
30358 (repropagate_negates): Do not use get_unary_op here.
30359
30360 2016-02-29 Martin Liska <mliska@suse.cz>
30361
30362 * system.h: Poison ENABLE_CHECKING macro.
30363
30364 2016-02-29 Martin Liska <mliska@suse.cz>
30365
30366 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30367 is presented in dump flags.
30368 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30369 (hsa_regalloc): Likewise.
30370
30371 2016-02-19 Richard Biener <rguenther@suse.de>
30372
30373 PR tree-optimization/69980
30374 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30375 permutation of those we need to keep.
30376
30377 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30378
30379 PR target/69706
30380 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30381 (NWORDS_UP): ...this
30382 (init_cumulative_args): Minor tweaks.
30383 (sparc_promote_function_mode): Likewise.
30384 (scan_record_type): Delete.
30385 (traverse_record_type): New function template.
30386 (classify_data_t): New structure type.
30387 (classify_registers): New inline function.
30388 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30389 exhausted. Instantiate traverse_record_type on classify_registers and
30390 deal with the case of a structure passed in slot #15 with no FP field
30391 in the first word.
30392 (assign_data_t): New structure type.
30393 (compute_int_layout): New static function.
30394 (compute_fp_layout): Likewise.
30395 (count_registers): New inline function.
30396 (assign_int_registers): New static function.
30397 (assign_fp_registers): Likewise.
30398 (assign_registers): New inline function.
30399 (function_arg_record_value_1): Delete.
30400 (function_arg_record_value_2): Likewise.
30401 (function_arg_record_value_3): Likewise.
30402 (function_arg_record_value): Adjust to above changes. Instantiate
30403 traverse_record_type on count_registers to first count the number of
30404 registers to be used and then on assign_registers to assign them.
30405 (function_arg_union_value): Adjust to above renaming.
30406 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30407 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30408 case of a structure passed in slot #15
30409 (sparc_function_arg_advance): Likewise.
30410 (function_arg_padding): Minor tweak.
30411
30412 2016-02-29 Richard Biener <rguenther@suse.de>
30413
30414 PR tree-optimization/69720
30415 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30416 the adjustment_def path for possibly vectorized defs.
30417 (vect_create_epilog_for_reduction): Handle vectorized initial
30418 defs properly.
30419
30420 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30421
30422 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30423
30424 2016-02-27 Jeff Law <law@redhat.com>
30425
30426 Revert
30427 2016-02-26 Richard Biener <rguenther@suse.de>
30428 Jeff Law <law@redhat.com>
30429
30430 PR tree-optimization/69740
30431 * cfghooks.c (remove_edge): Request loop fixups if we delete
30432 an edge that might turn an irreducible loop into a natural
30433 loop.
30434
30435 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30436
30437 PR rtl-optimization/69896
30438 * tree-vect-generic.c (get_compute_type): Avoid single element
30439 vector types.
30440
30441 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30442
30443 Rename the AArch64 tuning option and related functions to enable the
30444 Newton series for the reciprocal square root to reflect its
30445 approximative characteristic.
30446
30447 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30448 function to "aarch64_emit_approx_rsqrt".
30449 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30450 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30451 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30452 (xgene1_tunings): Likewise.
30453 (use_rsqrt_p): Likewise.
30454 (aarch64_emit_swrsqrt): Use new function name.
30455 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30456 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30457 text explaining this option.
30458 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30459
30460 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30461
30462 PR target/69969
30463 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30464 complain about -mallow-movmisalign without -mvsx if
30465 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30466
30467 2016-02-26 Joel Sherrill <joel@rtems.org>
30468
30469 * config.gcc: Add x86_64-*-rtems*.
30470 * config/i386/rtems-64.h: New file.
30471
30472 2016-02-26 Joel Sherrill <joel@rtems.org>
30473
30474 * config.gcc: Add aarch64-*-rtems*.
30475 * config/aarch64/rtems.h: New file.
30476
30477 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30478
30479 PR target/69946
30480 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30481 shift amount using %h. Add comment.
30482
30483 2016-02-26 Richard Biener <rguenther@suse.de>
30484 Jeff Law <law@redhat.com>
30485
30486 PR tree-optimization/69740
30487 * cfghooks.c (remove_edge): Request loop fixups if we delete
30488 an edge that might turn an irreducible loop into a natural
30489 loop.
30490
30491 2016-02-26 Martin Jambor <mjambor@suse.cz>
30492
30493 PR middle-end/69920
30494 * tree-sra.c (sra_modify_assign): Do not remove loads of
30495 uninitialized aggregates to SSA_NAMEs.
30496
30497 2016-02-26 Richard Henderson <rth@redhat.com>
30498
30499 PR target/69709
30500 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30501 pseudo in case the target rtx matches the source of the left
30502 shift.
30503
30504 2016-02-26 Martin Jambor <mjambor@suse.cz>
30505
30506 PR hsa/69568
30507 * hsa.h (hsa_type_packed_p): Declare.
30508 * hsa.c (hsa_type_packed_p): New function.
30509 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30510 loads.
30511 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30512 * hsa-brig.c (emit_basic_insn): Likewise.
30513
30514 2016-02-26 Martin Jambor <mjambor@suse.cz>
30515
30516 pr hsa/69674
30517 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30518 pointers.
30519 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30520
30521 2016-02-26 Martin Jambor <mjambor@suse.cz>
30522
30523 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30524 hsa_op_with_type operands.
30525 (hsa_unsigned_type_for_type): Declare.
30526 * hsa.c (hsa_unsigned_type_for_type): New function.
30527 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30528 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30529 the finalizer. Do not emit extra move.
30530
30531 2016-02-26 Martin Jambor <mjambor@suse.cz>
30532
30533 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30534 atomic operations in private segment.
30535
30536 2016-02-26 Martin Jambor <mjambor@suse.cz>
30537
30538 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30539 statements to wi->info. Also disallow omp simd constructs.
30540 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30541 for not gridifying. Dump special string for omp_for.
30542
30543 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30544
30545 PR target/69245
30546 * config/aarch64/aarch64.c (aarch64_set_current_function):
30547 Save/restore target globals when switching to
30548 target_option_default_node.
30549
30550 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30551
30552 PR target/69613
30553 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30554 Return 0 if !SHIFT_COUNT_TRUNCATED.
30555
30556 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30557 Eric Botcazou <ebotcazou@adacore.com>
30558
30559 PR rtl-optimization/69891
30560 * dse.c (scan_insn): If we can't figure out memset arguments
30561 or they are non-constant, call clear_rhs_from_active_local_stores.
30562
30563 2016-02-26 Martin Liska <mliska@suse.cz>
30564
30565 * doc/extend.texi: Mention clog10, clog10f an clog10l
30566 in Builtins section.
30567
30568 2016-02-26 Martin Liska <mliska@suse.cz>
30569
30570 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30571 CHECKING_P.
30572 (resolve_args_picking_1): Likewise.
30573 * dwarf2out.h (struct GTY): Likewise.
30574
30575 2016-02-26 Martin Liska <mliska@suse.cz>
30576
30577 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30578 with flag_checking.
30579 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30580
30581 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30582 Martin Liska <mliska@suse.cz>
30583
30584 * doc/install.texi: Mention --enable-valgrind-annotations.
30585
30586 2016-02-26 Richard Biener <rguenther@suse.de>
30587
30588 PR tree-optimization/69551
30589 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30590 looking through aliases adjust DECL_PT_UID to refer to the
30591 ultimate alias target.
30592
30593 2016-02-25 Martin Liska <mliska@suse.cz>
30594
30595 PR middle-end/69919
30596 * alloc-pool.c (after_memory_report): New variable.
30597 * alloc-pool.h (base_pool_allocator ::release): Do not use
30598 the infrastructure if after_memory_report.
30599 * toplev.c (toplev::main): Mark after memory report.
30600
30601 2016-02-25 Richard Biener <rguenther@suse.de>
30602
30603 PR tree-optimization/48795
30604 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30605
30606 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30607
30608 PR driver/68463
30609 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30610 offloading is enabled and -fopenacc or -fopenmp is specified.
30611 (CRTOFFLOADEND): Likewise.
30612 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30613 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30614 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30615 (offload_objects_file_name): New static var.
30616 (tool_cleanup): Remove offload_objects_file_name file.
30617 (find_offloadbeginend): Replace with ...
30618 (find_crtoffloadtable): ... this.
30619 (run_gcc): Remove offload_argc and offload_argv.
30620 Get offload_objects_file_name from -foffload-objects=... option.
30621 Read names of object files with offload from this file, pass them to
30622 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30623 don't pass offloadbegin and offloadend to the linker. Don't pass
30624 offload non-LTO files to the linker, because now they're not claimed.
30625
30626 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30627
30628 PR ipa/69630
30629 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30630 on builtin_unreachable.
30631
30632 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30633
30634 PR rtl-optimization/69896
30635 * regcprop.c: Include cfgrtl.h.
30636 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30637 than remembered mode, either delete it (if noop_move_p), or
30638 treat like copy_p but not noop_p instruction.
30639
30640 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30641
30642 PR debug/69705
30643 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30644 - allow NULL decl for Fortran DW_TAG_common_block variables.
30645
30646 2016-02-24 Jason Merrill <jason@redhat.com>
30647
30648 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30649
30650 2016-02-24 Richard Biener <rguenther@suse.de>
30651 Jakub Jelinek <jakub@redhat.com>
30652
30653 PR middle-end/69760
30654 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30655 conditionally executed ops to well-defined overflow behavior.
30656
30657 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30658
30659 PR middle-end/69915
30660 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30661 elements.
30662
30663 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30664
30665 PR rtl-optimization/69886
30666 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30667 argument. Use it when checking validity of set instructions.
30668 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30669 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30670 callsite.
30671 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30672 * store-motion.c (find_moveable_store): Update
30673 can_assign_to_reg_without_clobbers_p callsite.
30674
30675 2016-02-24 Richard Biener <rguenther@suse.de>
30676
30677 PR middle-end/68963
30678 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30679 bogus check.
30680 (record_nonwrapping_iv): Do not fall back to the low/high bound
30681 for non-constant IV bases if the stmt is not always executed.
30682
30683 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30684
30685 * config/arm/arm-cores.def (cortex-a32): New entry.
30686 * config/arm/arm-tables.opt: Regenerate.
30687 * config/arm/arm-tune.md: Regenerate.
30688 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30689 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30690 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30691 for -mcpu and -mtune.
30692
30693 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30694
30695 PR target/69875
30696 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30697 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30698 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30699 (atomic_loaddi_1): Delete.
30700 (atomic_loaddi): Rewrite expander using the above changes.
30701
30702 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30703
30704 PR c/69918
30705 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30706 2 to 3.
30707
30708 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30709 Richard Biener <rguenth@suse.de>
30710
30711 PR middle-end/69909
30712 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30713 set_mem_attributes if tem is SSA_NAME which got expanded
30714 as a MEM.
30715
30716 2016-02-24 Richard Biener <rguenther@suse.de>
30717
30718 PR tree-optimization/69907
30719 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30720 end of permutations for BB vectorization.
30721
30722 2016-02-24 Christian Bruel <christian.bruel@st.com>
30723
30724 * config/arm/arm-c.c (arm_option_override): Initialize
30725 target_option_current_node.
30726 * config/arm/arm.c (arm_pragma_target_parse): Replace
30727 build_target_option_node call by target_option_current_node.
30728 Set target_option_current_node.
30729 Fix comments.
30730
30731 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30732
30733 PR target/69810
30734 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30735 define_insn_and_split to define_insn.
30736 (zero_extendqi<mode>2_dot2): Same.
30737 (extendqi<mode>2_dot): Same.
30738 (extendqi<mode>2_dot2): Same.
30739
30740 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30741
30742 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30743 and add bypass for AES{D,E} and AESMC pairs.
30744 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30745 and AESMC pairs.
30746
30747 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30748
30749 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30750 series for reciprocal square root in Exynos M1.
30751
30752 2016-02-23 Martin Sebor <msebor@redhat.com>
30753
30754 PR c/69759
30755 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30756 __builtin_alloca_with_align.
30757
30758 2016-02-23 Richard Henderson <rth@redhat.com>
30759
30760 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30761 (ix86_register_pragmas): Remove __seg_tls.
30762 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30763 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30764 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30765 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30766 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30767 * doc/extend.texi (__seg_tls): Remove item.
30768
30769 2016-02-23 Richard Biener <rguenther@suse.de>
30770
30771 * alloc-pool.h (struct allocation_object): Make id member
30772 conditional on CHECKING_P again.
30773 (get_instance): Adjust.
30774 (base_pool_allocator): Likewise.
30775
30776 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30777
30778 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30779 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30780 zero.
30781 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30782 flag_openacc.
30783 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30784
30785 2016-02-23 Richard Biener <rguenther@suse.de>
30786
30787 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30788 * bitmap.h (struct bitmap_usage): Likewise.
30789 (bitmap_move): Declare.
30790 * bitmap.c (register_overhead): Take size_t argument.
30791 (bitmap_move): New function.
30792 * df-problems.c (df_rd_transfer_function): Use bitmap_move
30793 to properly account overhead.
30794 * tree.c (free_node): Use tree_size.
30795
30796 2016-02-23 Jakub Jelinek <jakub@redhat.com>
30797
30798 PR c++/69902
30799 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
30800 when inverting comparison.
30801
30802 PR c/69900
30803 * common.opt (Wunreachable-code): Add Warning flag.
30804
30805 2016-02-23 Mark Wielaard <mjw@redhat.com>
30806 Jakub Jelinek <jakub@redhat.com>
30807
30808 PR c/69911
30809 * cgraphunit.c (check_global_declaration): Check main_input_filename
30810 and DECL_SOURCE_FILE are not NULL.
30811
30812 2016-02-23 Martin Jambor <mjambor@suse.cz>
30813
30814 PR tree-optimization/69666
30815 * tree-sra.c (sra_modify_assign): Do not attempt to create
30816 default_def replacements for unscalarizable regions.
30817
30818 2016-02-20 Mark Wielaard <mjw@redhat.com>
30819
30820 PR c/28901
30821 * cgraphunit.c (check_global_declaration): Check level of
30822 warn_unused_const_variable and main_input_filename.
30823 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
30824 (-Wunused-variable): For C implies -Wunused-const-variable=1.
30825 (-Wunused-const-variable): Explain levels 1 and 2.
30826
30827 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30828
30829 PR target/69888
30830 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
30831 identical arguments. Formatting and spelling fixes.
30832
30833 PR target/69885
30834 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
30835 be specified.
30836
30837 PR target/69894
30838 PR target/69895
30839 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
30840 and m68k-devices.def.
30841 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
30842 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
30843
30844 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
30845
30846 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
30847 and HImode registers.
30848
30849 2016-02-22 Richard Biener <rguenther@suse.de>
30850
30851 PR tree-optimization/69882
30852 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
30853 preserve permutations present because of gaps.
30854 (vect_supported_load_permutation_p): Always continue checking
30855 permutations after vect_attempt_slp_rearrange_stmts.
30856
30857 2016-02-22 Bin Cheng <bin.cheng@arm.com>
30858
30859 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
30860 min_profitable_estimate, rather than min_profitable_iters.
30861
30862 2016-02-22 Jakub Jelinek <jakub@redhat.com>
30863
30864 PR target/69885
30865 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
30866 SImode for last match_operand.
30867
30868 2016-02-22 Martin Liska <mliska@suse.cz>
30869
30870 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
30871 return bitsize - 1 as the return value.
30872
30873 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
30874
30875 PR target/69806
30876 PR target/54089
30877 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
30878 Handle negative shift counts.
30879 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
30880 force_reg on the shift constant.
30881 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
30882 (lshrsi3_d): Handle negative shift counts.
30883
30884 2016-02-22 Richard Biener <rguenther@suse.de>
30885 Tom de Vries <tom@codesourcery.com>
30886
30887 * graph.c: Include dumpfile.h.
30888 (print_graph_cfg): Split into three overloads.
30889 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
30890
30891 2016-02-22 Tom de Vries <tom@codesourcery.com>
30892
30893 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
30894 dump-fn.
30895
30896 2016-02-22 Richard Biener <rguenther@suse.de>
30897
30898 PR ipa/37448
30899 * ipa-inline-transform.c (inline_call): When not updating
30900 overall summaries adjust self size by the growth estimate.
30901 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
30902 hash-set, do not update overall summaries here. Renamed from ...
30903 (inline_to_all_callers): ... this which is now wrapping the
30904 above and performing delayed overall summary update.
30905 (early_inline_small_functions): Delay updating of the overall
30906 summary.
30907
30908 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
30909
30910 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
30911 variable.
30912
30913 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30914
30915 PR driver/69805
30916 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
30917 :%* in %:gt() argument.
30918 (greater_than_spec_func): Adjust for expecting only numbers,
30919 if there are more than two numbers, compare the last two.
30920
30921 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
30922
30923 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
30924 -Wnarrowing with -std.
30925
30926 2016-02-19 Jakub Jelinek <jakub@redhat.com>
30927
30928 PR c++/69851
30929 * expr.c (store_field): Don't use bit-field path if exp is
30930 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
30931 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
30932 and the assignment can be performed by bitwise copy. Formatting
30933 fix.
30934
30935 PR middle-end/69838
30936 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
30937 call copy_reg_eh_region_note_forward on before and/or after sequences
30938 and remove note from insn if it no longer can throw.
30939
30940 PR target/69820
30941 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
30942 if TARGET_AVX512BW.
30943
30944 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30945
30946 * config/s390/vector.md: Add missing commutative operand markers
30947 to the patterns which qualify for one.
30948 * config/s390/vx-builtins.md: Likewise.
30949
30950 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30951
30952 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30953 types to mode iterators.
30954 (vec_double): ... and mode attribute.
30955 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30956
30957 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30958
30959 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30960 Change the predicate of op2 from nonimmediate to general and let
30961 reload fix it if necessary.
30962
30963 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30964
30965 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30966
30967 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30968
30969 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30970 mode.
30971
30972 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30973
30974 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30975 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30976 * config/s390/s390.md ("movstr<P:mode>"): Call
30977 s390_expand_vec_movstr.
30978
30979 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30980
30981 * config/s390/s390.md: Add missing output modifier for operand 1
30982 to print it as address properly.
30983
30984 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30985
30986 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30987 * config/s390/2964.md: New file.
30988 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30989 of insn grouping attributes depending on the CPU level.
30990 (s390_get_unit_mask): New function.
30991 (s390_sched_score): Remove the OOO from the scheduling macros.
30992 Add loop to calculate a score for the instruction mix.
30993 (s390_sched_reorder): Likewise plus improve debug output.
30994 (s390_sched_variable_issue): Rename macros as above. Calculate
30995 the unit distances after actually scheduling an insn. Improve
30996 debug output.
30997 (s390_sched_init): Clear last_scheduled_unit_distance array.
30998 * config/s390/s390.md: Include 2964.md.
30999
31000 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31001
31002 PR target/69671
31003 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31004 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31005 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31006 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31007 *avx512f_<code>v8div16qi2_mask_1): New insns.
31008
31009 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31010
31011 PR target/68404
31012 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31013 2016-02-09 change.
31014
31015 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31016 earlyclobber from target. Use wF constraint for fused memory
31017 address.
31018 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31019
31020 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31021 Martin Liska <mliska@suse.cz>
31022
31023 PR sanitizer/69863
31024 * cfgexpand.c (asan_sanitize_stack_p): New function.
31025 (partition_stack_vars): Use the function.
31026 (expand_stack_vars): Likewise.
31027 (defer_stack_allocation): Likewise.
31028 (expand_used_vars): Likewise.
31029
31030 2016-02-18 Richard Biener <rguenther@suse.de>
31031
31032 PR middle-end/69553
31033 * fold-const.c (operand_equal_p): Properly compare offsets for
31034 IMAGPART_EXPR and ARRAY_REF.
31035
31036 2016-02-18 Nick Clifton <nickc@redhat.com>
31037
31038 PR target/62254
31039 PR target/69610
31040 * config/arm/arm.c (arm_option_override_internal): Disable
31041 interworking if the target does not support thumb instructions.
31042 (arm_reload_in_hi): Handle the case where a register to register
31043 move needs reloading because there is no simple pattern to handle
31044 it.
31045 (arm_reload_out_hi): Likewise.
31046
31047 2016-02-18 Richard Biener <rguenther@suse.de>
31048
31049 PR middle-end/69854
31050 * match.pd: Don't use fold_binary or fold_unary for folding
31051 constants.
31052
31053 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31054
31055 PR c++/69850
31056 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31057 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31058 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31059 warn on gimple_no_warning_p statements.
31060
31061 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31062
31063 * doc/extend.texi (C++ Attributes): Correct description of
31064 warn_unused type attribute.
31065
31066 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31067
31068 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31069 correct instruction.
31070
31071 2016-02-17 Richard Biener <rguenther@suse.de>
31072
31073 PR rtl-optimization/69609
31074 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31075 (find_traces_1_round): When ending a trace update cached priority
31076 of successors.
31077 (bb_to_key): Use cached priority when available.
31078 (copy_bb): Initialize cached priority.
31079 (reorder_basic_blocks_software_trace_cache): Likewise.
31080
31081 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31082
31083 PR target/69161
31084 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31085 New predicate.
31086 (aarch64_comparison_operator): Break overly long line into two.
31087 (aarch64_comparison_operation): Likewise.
31088 * config/aarch64/aarch64.md (cstorecc4): Use
31089 aarch64_comparison_operator_mode instead of
31090 aarch64_comparison_operator.
31091 (cstore<mode>4): Likewise.
31092 (aarch64_cstore<mode>): Likewise.
31093 (*cstoresi_insn_uxtw): Likewise.
31094 (cstore<mode>_neg): Likewise.
31095 (*cstoresi_neg_uxtw): Likewise.
31096
31097 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31098
31099 PR target/69161
31100 * config/arm/predicates.md (arm_comparison_operator_mode):
31101 New predicate.
31102 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31103 instead of arm_comparison_operator.
31104 (*mov_negscc): Likewise.
31105 (*mov_notscc): Likewise.
31106 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31107 (*thumb2_mov_negscc): Likewise.
31108 (*thumb2_mov_negscc_strict_it): Likewise.
31109 (*thumb2_mov_notscc): Likewise.
31110 (*thumb2_mov_notscc_strict_it): Likewise.
31111
31112 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31113
31114 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31115 Add missing return.
31116
31117 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31118
31119 * config/visium/visium.c (machine_libfunc_index): New enum.
31120 (machine_libfuncs): New structure.
31121 (visium_libfuncs): New static variable.
31122 (TARGET_INIT_LIBFUNCS): Define to...
31123 (visium_init_libfuncs): ...this. New function.
31124 (expand_block_move_4): Use the appropriate libfunc.
31125 (expand_block_move_2): Likewise.
31126 (expand_block_move_1): Likewise.
31127 (expand_block_set_4): Likewise.
31128 (expand_block_set_2): Likewise.
31129 (expand_block_set_1): Likewise.
31130 (visium_trampoline_init): Likewise.
31131
31132 2016-02-17 Nick Clifton <nickc@redhat.com>
31133
31134 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31135 TI's devices.csv file as of March 2016.
31136
31137 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31138
31139 PR Target/48344
31140 * opts-global.c (handle_common_deferred_options): Introduce and
31141 initialize two global variables to remember command-line options
31142 specifying a stack-limiting register.
31143 * opts.h: Add extern declarations of the two new global variables.
31144 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31145 variable based on the values of the two new global variables.
31146
31147 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31148
31149 PR c/69835
31150 * common.opt (Wnonnull-compare): New warning.
31151 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31152 of arguments against NULL.
31153 (-Wnonnull-compare): Document.
31154 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31155 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31156 * passes.def (pass_warn_nonnull_compare): Add.
31157 * gimple-ssa-nonnull-compare.c: New file.
31158
31159 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31160
31161 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31162 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31163
31164 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31165
31166 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31167 reciprocal sqrt for -mlow-precision-recip-sqrt.
31168
31169 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31170 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31171
31172 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31173 always use lane loads to construct non-constant vectors.
31174
31175 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31176
31177 * config/aarch64/aarch64.md
31178 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31179 constraints for operand 3.
31180 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31181
31182 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31183 Richard Biener <rguenther@suse.de>
31184
31185 PR tree-optimization/69820
31186 * tree-vect-patterns.c (type_conversion_p): Return false if
31187 *orig_type is unsigned single precision or boolean.
31188 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31189 Formatting fix.
31190
31191 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31192
31193 PR rtl-optimization/69764
31194 PR rtl-optimization/69771
31195 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31196 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31197
31198 2016-02-16 Richard Biener <rguenther@suse.de>
31199
31200 PR tree-optimization/69776
31201 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31202 sets from caller.
31203 (indirect_refs_may_alias_p): Likewise.
31204 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31205 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31206 according to tbaa_p.
31207 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31208 (optimize_stmt): For redundant store discovery do not allow tbaa.
31209
31210 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31211
31212 PR tree-optimization/69714
31213 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31214 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31215
31216 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31217
31218 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31219 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31220 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31221 * config/arc/arc.c (arc_init): Check FPU options.
31222 (get_arc_condition_code): Handle new CC_FPU* modes.
31223 (arc_select_cc_mode): Likewise.
31224 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31225 register pair only. Allow access for ARCv2 accumulator.
31226 (gen_compare_reg): Whenever we have FPU support use FPU compare
31227 instructions.
31228 (arc_reorg): Don't generate brcc insns when FPU compare
31229 instructions are involved.
31230 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31231 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31232 floating point emulation.
31233 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31234 (REVERSE_CONDITION): Add new CC_FPU* modes.
31235 (TARGET_FP_SP_BASE): Define.
31236 (TARGET_FP_DP_BASE): Likewise.
31237 (TARGET_FP_SP_FUSED): Likewise.
31238 (TARGET_FP_DP_FUSED): Likewise.
31239 (TARGET_FP_SP_CONV): Likewise.
31240 (TARGET_FP_DP_CONV): Likewise.
31241 (TARGET_FP_SP_SQRT): Likewise.
31242 (TARGET_FP_DP_SQRT): Likewise.
31243 (TARGET_FP_DP_AX): Likewise.
31244 * config/arc/arc.md (ARCV2_ACC): New constant.
31245 (type): New fpu type attribute.
31246 (SDF): Conditional iterator.
31247 (cstore<mode>, cbranch<mode>): Change expand condition.
31248 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31249 handles FPU/FPX cases as well.
31250 * config/arc/arc.opt (mfpu): New option.
31251 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31252 Renamed.
31253 (adddf3, muldf3, subdf3): Removed.
31254 * config/arc/predicates.md (proper_comparison_operator): Recognize
31255 CC_FPU* modes.
31256 * config/arc/fpu.md: New file.
31257 * doc/invoke.texi (ARC Options): Document mfpu option.
31258
31259 2016-02-16 Richard Biener <rguenther@suse.de>
31260
31261 PR rtl-optimization/69291
31262 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31263 noce_operand_ok check.
31264
31265 2016-02-16 Tom de Vries <tom@codesourcery.com>
31266
31267 PR lto/67709
31268 * omp-low.c (simd_clone_create): Remove call to
31269 symtab->call_cgraph_insertion_hooks.
31270
31271 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31272
31273 PR tree-optimization/69802
31274 * tree-ssa-reassoc.c (update_range_test): If op is
31275 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31276 op == 1 test of precision 1 integral op, otherwise handle
31277 that case as op itself. Fix up formatting.
31278 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31279 up formatting.
31280
31281 2016-02-16 Richard Biener <rguenther@suse.de>
31282
31283 PR tree-optimization/69586
31284 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31285 types for conversion sources.
31286
31287 2016-02-16 Richard Biener <rguenther@suse.de>
31288
31289 PR middle-end/69801
31290 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31291 mask OEP_ADDRESS_OF.
31292
31293 2016-02-16 Alan Modra <amodra@gmail.com>
31294
31295 PR target/68973
31296 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31297 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31298 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31299 (p8_mtvsrwz): New.
31300 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31301 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31302 (p8_fmrgow_<mode>): Likewise.
31303 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31304 changes.
31305 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31306 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31307 to use movdi_internal64. Remove op0_di.
31308 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31309
31310 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31311
31312 Add support for the FCCMP insn types
31313
31314 * config/aarch64/aarch64.md (fccmp): Change insn type.
31315 (fccmpe): Likewise.
31316 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31317 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31318 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31319 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31320 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31321 * config/arm/types.md (fccmps): Add new insn type.
31322 (fccmpd): Likewise.
31323
31324 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31325
31326 * alias.c (get_alias_set): Fix a typo in comment.
31327
31328 2016-02-15 Richard Biener <rguenther@suse.de>
31329
31330 PR tree-optimization/69595
31331 * match.pd: Complete range test simplification to true.
31332
31333 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31334
31335 PR rtl-optimization/69648
31336 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31337 pic_offset_table_rtx.
31338
31339 PR rtl-optimization/69752
31340 * ira.c (update_equiv_regs): When looking for more than a single SET,
31341 also take other side effects into account.
31342
31343 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31344
31345 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31346 for z900+ CPUs in 31-bit mode.
31347
31348 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31349
31350 * common/config/s390/s390-common.c (s390_supports_split_stack):
31351 New function.
31352 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31353 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31354 * config/s390/s390.c (struct machine_function): New field
31355 split_stack_varargs_pointer.
31356 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31357 in s390_emit_prologue.
31358 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31359 vararg pointer.
31360 (morestack_ref): New global.
31361 (SPLIT_STACK_AVAILABLE): New macro.
31362 (s390_expand_split_stack_prologue): New function.
31363 (s390_live_on_entry): New function.
31364 (s390_va_start): Use split-stack vararg pointer if appropriate.
31365 (s390_asm_file_end): Emit the split-stack note sections.
31366 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31367 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31368 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31369 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31370 (split_stack_prologue): New expand.
31371 (split_stack_space_check): New expand.
31372 (split_stack_data): New insn.
31373 (split_stack_call): New expand.
31374 (split_stack_call_*): New insn.
31375 (split_stack_cond_call): New expand.
31376 (split_stack_cond_call_*): New insn.
31377
31378 2016-02-15 Richard Biener <rguenther@suse.de>
31379
31380 PR tree-optimization/69783
31381 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31382 Add trivially correct cases.
31383
31384 2016-02-15 Tom de Vries <tom@codesourcery.com>
31385
31386 PR lto/69655
31387 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31388 do_force_output.
31389 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31390
31391 2016-02-15 Richard Biener <rguenther@suse.de>
31392
31393 PR tree-optimization/69776
31394 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31395 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31396 indicate whether we can use TBAA to disambiguate against stores.
31397 Use alias-set zero if not.
31398 (visit_reference_op_store): Do not use TBAA when looking up
31399 redundant stores.
31400 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31401 (eliminate_dom_walker::before_dom_children): But not when looking
31402 up redundant stores.
31403
31404 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31405
31406 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31407
31408 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31409
31410 * config/i386/znver1.md
31411 (znver1_pop, znver1_pop_mem,
31412 znver1_load_imov_double_store,
31413 znver1_load_imov_direct_store,
31414 znver1_load_imov_direct_load,
31415 znver1_load_imov_double_load): Add new.
31416 (znver1_insn, znver1_insn_load): Add icmov type.
31417 (znver1_sseavx_fma,
31418 znver1_sseavx_fma_load,
31419 znver1_avx256_fma,
31420 znver1_avx256_fma_load): Fix pipe usage.
31421
31422 2016-02-14 Alan Modra <amodra@gmail.com>
31423
31424 PR target/68973
31425 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31426 with an invalid hard reg, reload just the reg not the entire
31427 pre/post-inc/dec address expression.
31428
31429 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31430
31431 PR target/67260
31432 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31433 fixed R1_REG scratch reg.
31434 (sibcall_value_pcrel_fdpic): Likewise.
31435
31436 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31437
31438 PR target/67636
31439 PR target/64345
31440 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31441
31442 2016-02-12 Walter Lee <walt@tilera.com>
31443
31444 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31445 * config/tilegx/t-tilegx: Likewise.
31446
31447 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31448
31449 PR other/69554
31450 * diagnostic-show-locus.c (struct line_span): New struct.
31451 (layout::get_first_line): Delete.
31452 (layout::get_last_line): Delete.
31453 (layout::get_num_line_spans): New member function.
31454 (layout::get_line_span): Likewise.
31455 (layout::print_heading_for_line_span_index_p): Likewise.
31456 (layout::get_expanded_location): Likewise.
31457 (layout::calculate_line_spans): Likewise.
31458 (layout::m_first_line): Delete.
31459 (layout::m_last_line): Delete.
31460 (layout::m_line_spans): New field.
31461 (layout::layout): Update comment. Replace m_first_line and
31462 m_last_line with m_line_spans, replacing their initialization
31463 with a call to calculate_line_spans.
31464 (diagnostic_show_locus): When printing source lines and
31465 annotations, rather than looping over a single span
31466 of lines, instead loop over each line_span within
31467 the layout, with an inner loop over the lines within them.
31468 Call the context's start_span callback when changing line spans.
31469 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31470 (diagnostic_build_prefix): Break out the building of the location
31471 part of the string into...
31472 (diagnostic_get_location_text): ...this new function, rewriting
31473 it from nested ternary expressions to a sequence of "if"
31474 statements.
31475 (default_diagnostic_start_span_fn): New function.
31476 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31477 (diagnostic_context::start_span): New field.
31478 (default_diagnostic_start_span_fn): New prototype.
31479
31480 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31481
31482 PR driver/69779
31483 * gcc.c (driver::finalize): Fix cleanup of "specs".
31484
31485 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31486
31487 PR driver/69265
31488 PR driver/69453
31489 * gcc.c (driver::driver): Initialize m_option_suggestions.
31490 (driver::~driver): Clean up m_option_suggestions.
31491 (suggest_option): Convert to...
31492 (driver::suggest_option): ...this, and split out into
31493 driver::build_option_suggestions and find_closest_string.
31494 (driver::build_option_suggestions): New function, from
31495 first half of suggest_option. Special-case
31496 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31497 the sanitizer_opts array. For options of enum types, add the
31498 various enum values to the candidate strings.
31499 (driver::handle_unrecognized_options): Remove "const".
31500 * gcc.h (driver::handle_unrecognized_options): Likewise.
31501 (driver::build_option_suggestions): New decl.
31502 (driver::suggest_option): New decl.
31503 (driver::m_option_suggestions): New field.
31504 * opts-common.c (add_misspelling_candidates): New function.
31505 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31506 and make non-static.
31507 * opts.h (sanitizer_opts): New array decl.
31508 (add_misspelling_candidates): New function decl.
31509 * spellcheck.c (find_closest_string): New function.
31510 * spellcheck.h (find_closest_string): New function decl.
31511
31512 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31513
31514 PR rtl-optimization/69764
31515 PR rtl-optimization/69771
31516 * optabs.c (expand_binop_directly): For shift_optab_p, force
31517 convert_modes with VOIDmode if xop1 has VOIDmode.
31518
31519 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31520
31521 PR target/69729
31522 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31523 to correctly determine instrumentation thunks.
31524
31525 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31526
31527 PR ipa/69241
31528 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31529 type by reference, force lhs on the call.
31530
31531 PR ipa/68672
31532 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31533 Compute retval and retbnd early in all cases if split_part_return_p
31534 and return_bb is not EXIT. Remove all clobber stmts and reset
31535 all debug stmts that refer to SSA_NAMEs defined in split part,
31536 except if it is retval, in that case replace the old retval with the
31537 lhs of the call to the split part.
31538
31539 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31540
31541 revert:
31542 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31543
31544 PR middle-end/66726
31545 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31546 whose result is used in PHI.
31547 (maybe_optimize_range_tests): Likewise.
31548 (final_range_test_p): Likweise.
31549
31550 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31551
31552 PR middle-end/66726
31553 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31554 whose result is used in PHI.
31555 (maybe_optimize_range_tests): Likewise.
31556 (final_range_test_p): Likweise.
31557
31558 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31559
31560 * cgraph.c: Spelling fixes - behaviour -> behavior and
31561 neighbour -> neighbor.
31562 * target.def: Likewise.
31563 * sel-sched.c: Likewise.
31564 * config/mips/mips.c: Likewise.
31565 * config/arc/arc.md: Likewise.
31566 * config/arm/cortex-a57.md: Likewise.
31567 * config/arm/arm.c: Likewise.
31568 * config/arm/neon.md: Likewise.
31569 * config/arm/arm-c.c: Likewise.
31570 * config/vms/vms-c.c: Likewise.
31571 * config/s390/s390.c: Likewise.
31572 * config/i386/znver1.md: Likewise.
31573 * config/i386/i386.c: Likewise.
31574 * config/ia64/hpux-unix2003.h: Likewise.
31575 * config/msp430/msp430.md: Likewise.
31576 * config/rx/rx.c: Likewise.
31577 * config/rx/rx.md: Likewise.
31578 * config/aarch64/aarch64-simd.md: Likewise.
31579 * config/aarch64/aarch64.c: Likewise.
31580 * config/nvptx/nvptx.c: Likewise.
31581 * config/bfin/bfin.c: Likewise.
31582 * config/cris/cris.opt: Likewise.
31583 * config/rs6000/rs6000.c: Likewise.
31584 * target.h: Likewise.
31585 * spellcheck.c: Likewise.
31586 * ira-build.c: Likewise.
31587 * tree-inline.c: Likewise.
31588 * builtins.c: Likewise.
31589 * lra-constraints.c: Likewise.
31590 * explow.c: Likewise.
31591 * hwint.h: Likewise.
31592 * targhooks.c: Likewise.
31593 * tree-vect-data-refs.c: Likewise.
31594 * expr.c: Likewise.
31595 * doc/tm.texi: Likewise.
31596 * doc/extend.texi: Likewise.
31597 * doc/install.texi: Likewise.
31598 * doc/md.texi: Likewise.
31599 * tree-ssa-tail-merge.c: Likewise.
31600 * sched-int.h: Likewise.
31601 * match.pd: Likewise.
31602 * sched-ebb.c: Likewise.
31603 * target.def (omit_struct_return_reg): Likewise.
31604 * gimple-ssa-isolate-paths.c: Likewise.
31605 (find_implicit_erroneous_behaviour): Renamed to...
31606 (find_implicit_erroneous_behavior): ... this.
31607 (find_explicit_erroneous_behaviour): Renamed to...
31608 (find_explicit_erroneous_behavior): ... this.
31609 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31610
31611 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31612
31613 PR rtl-optimization/64682
31614 PR rtl-optimization/69567
31615 PR rtl-optimization/69737
31616 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31617 in I2 as well, just lose it.
31618
31619 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31620
31621 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31622 New variable.
31623 (aarch64_last_printed_tune_string): Likewise.
31624 (aarch64_declare_function_name): Only output .arch assembler
31625 directive if it will be different from the previously output
31626 directive. Same for .tune comment but only if -dA is set.
31627 (aarch64_start_file): New function.
31628 (TARGET_ASM_FILE_START): Define.
31629
31630 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31631
31632 PR plugins/69758
31633 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31634
31635 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31636
31637 PR target/65313
31638 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31639 -Wmaybe-uninitialized warning.
31640
31641 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31642
31643 PR target/69713
31644 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31645
31646 2016-02-11 Richard Biener <rguenther@suse.de>
31647
31648 PR rtl-optimization/69291
31649 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31650 subexpressions affected by changing the result.
31651
31652 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31653
31654 PR target/69148
31655 * lra-constraints.c (curr_insn_transform): Find in/out operands
31656 for secondary memory moves. Update dups.
31657
31658 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31659
31660 PR tree-optimization/69652
31661 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31662 to nested loop, did source re-formatting, skip debug statements,
31663 add check on statement with volatile operand, remove dead scalar
31664 statements.
31665
31666 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31667 Patrick Palka <ppalka@gcc.gnu.org>
31668
31669 PR ipa/69241
31670 PR c++/69649
31671 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31672 calls if the return type is TREE_ADDRESSABLE.
31673 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31674 * ipa-split.c (split_function): Fix doubled "we" in comment.
31675 Use void return type for the split part even if
31676 !split_point->split_part_set_retval.
31677
31678 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31679
31680 PR tree-optimization/68021
31681 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31682 when computing the value of biv cand by itself.
31683
31684 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31685
31686 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31687 (cortexa57_tunings): Likewise.
31688 (cortexa72_tunings): Likewise.
31689 (arch_macro_fusion_pair_p): Add support for AES fusion.
31690 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31691 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31692 Allow virtual registers before reload so early scheduling works.
31693 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31694 correct latency and pipeline.
31695 (cortex_a57_crypto_complex): Likewise.
31696 (cortex_a57_crypto_xor): Likewise.
31697 (define_bypass): Add AES bypass.
31698
31699 2016-02-10 Richard Biener <rguenther@suse.de>
31700
31701 PR tree-optimization/69726
31702 * passes.def: Add DCE pass before late uninit.
31703 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31704 really fixup if-conversions job.
31705
31706 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31707
31708 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31709 (arm_cortex_a57_tune): Likewise.
31710 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31711 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31712
31713 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31714
31715 * timevar.def (TV_PHASE_DBGINFO): Delete.
31716 (TV_PHASE_CHECK_DBGINFO): Likewise.
31717 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31718
31719 2016-02-10 Richard Biener <rguenther@suse.de>
31720
31721 PR tree-optimization/69719
31722 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31723 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31724
31725 2016-02-09 Andrew Pinski <apinski@cavium.com>
31726
31727 PR tree-opt/69282
31728 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31729 get_vcond_mask_icode returns false.
31730
31731 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31732
31733 PR target/68404
31734 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31735 an ADDIS that adds a pointer to a large constant that sets the
31736 upper16 bits with a load operation.
31737
31738 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31739
31740 PR target/68532
31741 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31742 order.
31743 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31744 endian.
31745 (vzipq_s16): Likewise.
31746 (vzipq_s32): Likewise.
31747 (vzipq_f32): Likewise.
31748 (vzipq_u8): Likewise.
31749 (vzipq_u16): Likewise.
31750 (vzipq_u32): Likewise.
31751 (vzipq_p8): Likewise.
31752 (vzipq_p16): Likewise.
31753
31754 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31755
31756 PR target/68532
31757 * config/arm/arm.c (neon_endian_lane_map): New function.
31758 (neon_vector_pair_endian_lane_map): New function.
31759 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31760 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31761 endian.
31762 (vuzpq_s16): Likewise.
31763 (vuzpq_s32): Likewise.
31764 (vuzpq_f32): Likewise.
31765 (vuzpq_u8): Likewise.
31766 (vuzpq_u16): Likewise.
31767 (vuzpq_u32): Likewise.
31768 (vuzpq_p8): Likewise.
31769 (vuzpq_p16): Likewise.
31770
31771 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31772
31773 PR target/69634
31774 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31775 debug insns.
31776
31777 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31778
31779 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31780 truncate const_int operand 1 to QImode.
31781
31782 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31783
31784 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31785 corresponding to an abnormal edge.
31786
31787 2016-02-09 Tom de Vries <tom@codesourcery.com>
31788
31789 PR tree-optimization/69599
31790 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
31791 function.
31792 (find_func_aliases_for_builtin_call, find_func_clobbers)
31793 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
31794 partition.
31795
31796 2016-02-09 Richard Biener <rguenther@suse.de>
31797
31798 PR tree-optimization/69715
31799 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
31800 LHS on calls as non-rewritable.
31801
31802 2016-02-09 Tom de Vries <tom@codesourcery.com>
31803
31804 PR lto/69707
31805 * lto-wrapper.c (append_diag_options): New function.
31806 (compile_offload_image): Call append_diag_options.
31807
31808 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
31809
31810 PR other/69722
31811 * doc/extend.texi (Flag Output Operands): Correct sectioning.
31812 Minor copy-edit to fix verb tenses.
31813
31814 2016-02-08 Jakub Jelinek <jakub@redhat.com>
31815
31816 PR tree-optimization/69209
31817 * ipa-split.c (split_function): If split part is not
31818 returning retval, retval has gimple type but is not
31819 gimple value, force it into a SSA_NAME first.
31820
31821 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
31822
31823 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
31824 outdated section.
31825
31826 2016-02-08 Jason Merrill <jason@redhat.com>
31827
31828 PR c++/69631
31829 * convert.c (convert_to_integer_1): Check dofold on truncation
31830 distribution.
31831 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
31832 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
31833 Rename from *_nofold.
31834 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
31835 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
31836
31837 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
31838
31839 PR target/60410
31840 * tree.c (build_common_tree_nodes): Remove short_double argument.
31841 All callers changed.
31842 * tree.h (build_common_tree_nodes): Adjust declaration.
31843 * doc/invoke.texi (-fshort-double): Remove documentation.
31844 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
31845 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
31846 * lto-wrapper.c (merge_and_complain, append_compiler_options)
31847 (append_linker_options): Don't handle OPT_fshort_double.
31848
31849 PR rtl-optimization/68730
31850 * lra-remat.c (insn_to_cand_activation): New static variable.
31851 (lra_remat): Allocate and free it.
31852 (create_cand): New arg activation. Initialize a field in
31853 insn_to_cand_activation if it is nonnull.
31854 (create_cands): Pass the activation insn to create_cand when making
31855 a candidate involving an output reload. Reorganize code a little.
31856 (do_remat): Keep track of active status of candidates in a separate
31857 bitmap.
31858
31859 2016-02-08 Richard Biener <rguenther@suse.de>
31860
31861 PR tree-optimization/69719
31862 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31863 Properly use absolute of the difference of the two offsets to
31864 compare or adjust the segment length.
31865
31866 2016-02-08 Richard Biener <rguenther@suse.de>
31867 Jeff Law <law@redhat.com>
31868
31869 PR target/68273
31870 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
31871 types for anonymous SSA names.
31872
31873 2016-02-08 Richard Biener <rguenther@suse.de>
31874
31875 PR rtl-optimization/69274
31876 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
31877
31878 2016-02-08 Jeff Law <law@redhat.com>
31879
31880 PR tree-optimization/65917
31881 * tree-ssa-dom.c (record_temporary_equivalences): Record both
31882 equivalences from if (x == y) style conditionals.
31883 (loop_depth_of_name): Remove.
31884 (record_equality): Remove loop depth check.
31885 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
31886 (const_and_copies::record_const_or_copy_raw): New member function.
31887 * tree-ssa-scopedtables.c
31888 (const_and_copies::record_const_or_copy_raw): New, factored out of
31889 (const_and_copies::record_const_or_copy): Call new member function.
31890
31891 2016-02-05 Jeff Law <law@redhat.com>
31892
31893 PR tree-optimization/68541
31894 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
31895 (count_stmts_in_block): New function.
31896 (poor_ifcvt_candidate_code): Likewise.
31897 (is_feasible_trace): Add some heuristics to determine when path
31898 splitting is profitable.
31899 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
31900 is a diamond with a single exit.
31901
31902 2016-02-05 Martin Sebor <msebor@redhat.com>
31903
31904 PR c++/69662
31905 * doc/invoke.texi: Update -Wplacement-new to take an optional
31906 argument.
31907
31908 2016-02-06 Richard Henderson <rth@redhat.com>
31909
31910 PR c/69643
31911 * tree.c (tree_nop_conversion_p): Do not strip casts into or
31912 out of non-standard address spaces.
31913
31914 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31915
31916 PR rtl-optimization/69691
31917 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
31918
31919 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
31920
31921 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
31922 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
31923 (*ieee128_mfvsrd_64bit): Likewise.
31924 (*ieee128_mfvsrd_32bit): Likewise.
31925
31926 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
31927
31928 PR target/69369
31929 Revert r232560:
31930 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
31931
31932 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
31933 instrumented_version.
31934
31935 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
31936
31937 * doc/invoke.texi (Optimize Options): In table of --param options
31938 rename second occurrence of tracer-min-branch-ratio to
31939 tracer-min-branch-probability, rename
31940 tracer-min-branch-ratio-feedback to
31941 tracer-min-branch-probability-feedback and clarify description,
31942 rename sched-spec-state-edge-prob-cutoff to
31943 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
31944 to selsched-insns-to-rename, rename lto-minpartition to
31945 lto-min-partition, delete reorder-blocks-duplicate and
31946 reorder-blocks-duplicate-feedback.
31947
31948 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31949
31950 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31951 superfluous loops.
31952
31953 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31954
31955 * doc/extend.texi: S/390: Correct some typos.
31956
31957 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31958
31959 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31960
31961 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31962
31963 PR target/69625
31964 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31965 (s390_register_info_gprtofpr): Use new macros above.
31966 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31967 its name.
31968 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31969 its name. Adjust restore and save gpr ranges.
31970 (s390_register_info_set_ranges): New function.
31971 (s390_register_info): Use new macros above. Call
31972 s390_register_info_set_ranges.
31973 (s390_optimize_register_info): Likewise.
31974 (s390_hard_regno_rename_ok): Use new macros.
31975 (s390_hard_regno_scratch_ok): Likewise.
31976 (s390_emit_epilogue): Likewise.
31977 (s390_can_use_return_insn): Likewise.
31978 (s390_optimize_prologue): Likewise.
31979 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31980
31981 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31982
31983 PR bootstrap/69677
31984 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31985 alignment fixes.
31986 (ix86_option_override_internal): Disable TARGET_STV even for
31987 -m{incoming,preferred}-stack-boundary=3.
31988
31989 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31990
31991 * config.gcc: Mark deprecated rtems targets as obsolete.
31992
31993 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31994
31995 PR rtl-optimization/64682
31996 PR rtl-optimization/69567
31997 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31998 before I2 only if the register is both used and set in I2.
31999
32000 2016-02-04 DJ Delorie <dj@redhat.com>
32001
32002 * config/msp430/msp430.c (msp430_start_function): Add function type.
32003
32004 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32005
32006 PR fortran/69368
32007 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32008
32009 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32010
32011 PR rtl-optimization/69577
32012 Revert:
32013 2015-10-29 Richard Henderson <rth@redhat.com>
32014
32015 PR target/68124
32016 PR rtl-opt/67609
32017 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32018 sse check to the exact conditions of PR 67609.
32019
32020 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32021
32022 PR target/69667
32023 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32024 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32025 not allowed into the traditional Altivec registers.
32026 (movtd_64bit_nodm): Likewise.
32027 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32028
32029 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32030
32031 * config/aarch64/cortex-a57-fma-steering.c
32032 (aarch64_register_fma_steering): Remove "static" from arguments
32033 to register_pass.
32034
32035 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32036
32037 PR target/69619
32038 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32039 twice when complex.
32040
32041 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32042
32043 * doc/invoke.texi: Delete -mno-fma4.
32044
32045 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32046
32047 PR rtl-optimization/69577
32048 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32049 (find_subregs_of_mode): Update accordingly. Iterate over partial
32050 definitions.
32051
32052 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32053
32054 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32055 * config/arm/arm.c (neon_reinterpret): Remove.
32056 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32057 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32058 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32059 vreinterpretti): Remove.
32060 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32061 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32062 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32063 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32064 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32065 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32066 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32067 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32068 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32069 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32070 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32071 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32072 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32073 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32074 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32075 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32076 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32077 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32078 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32079 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32080 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32081 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32082 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32083 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32084 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32085 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32086 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32087 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32088 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32089 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32090 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32091 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32092 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32093 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32094 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32095 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32096 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32097 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32098 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32099 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32100 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32101 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32102 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32103 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32104 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32105 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32106 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32107 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32108 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32109 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32110 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32111 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32112 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32113 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32114 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32115 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32116 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32117 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32118 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32119 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32120 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32121 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32122 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32123 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32124 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32125 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32126 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32127 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32128 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32129 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32130 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32131 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32132 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32133 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32134 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32135 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32136 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32137 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32138 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32139 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32140 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32141 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32142 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32143 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32144 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32145 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32146 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32147 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32148 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32149 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32150 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32151 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32152 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32153 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32154 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32155 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32156 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32157 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32158 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32159 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32160 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32161 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32162 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32163
32164 2016-02-04 Martin Liska <mliska@suse.cz>
32165
32166 PR sanitizer/69276
32167 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32168 that are gimple_store_p.
32169 (maybe_instrument_call): Likewise.
32170
32171 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32172
32173 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32174 register scaling out of memory reference and comment why.
32175
32176 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32177
32178 PR target/65932
32179 PR target/67714
32180 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32181 folding the source of a SET.
32182
32183 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32184
32185 PR target/65932
32186 PR target/67714
32187 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32188 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32189
32190 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32191
32192 PR target/65932
32193 PR target/67714
32194 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32195 HImode.
32196
32197 2016-02-04 Christian Bruel <christian.bruel@st.com>
32198
32199 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32200 * config/arm/arm.c (arm_set_current_function): Likewise.
32201
32202 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32203 Ilya Enkovich <enkovich.gnu@gmail.com>
32204 H.J. Lu <hongjiu.lu@intel.com>
32205
32206 PR target/69454
32207 * config/i386/i386.c (convert_scalars_to_vector): Remove
32208 stack alignment fixes.
32209 (ix86_option_override_internal): Disable TARGET_STV if stack
32210 might not be aligned enough.
32211 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32212
32213 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32214
32215 * config/i386/x86-tune.def: Disable default prefetching
32216 for -march=znver1.
32217
32218 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32219 Vladimir Makarov <vmakarov@redhat.com>
32220
32221 PR target/69461
32222 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32223 in validating fused toc addresses.
32224
32225 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32226
32227 PR c/69627
32228 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32229 range->m_caret fields if range->m_show_caret_p is false.
32230
32231 PR target/69644
32232 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32233 Force oldval into register if it does not satisfy reg_or_short_operand
32234 predicate. Fix up formatting.
32235
32236 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32237 Alexandre Oliva <aoliva@redhat.com>
32238
32239 PR target/69461
32240 * lra-constraints.c (simplify_operand_subreg): Check additionally
32241 address validity after potential reloading.
32242 (process_address_1): Check insns validity. In case of failure do
32243 nothing.
32244
32245 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32246
32247 PR target/69118
32248 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32249 Fix target.
32250
32251 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32252
32253 * wide-int.cc (canonize_uhwi): New function.
32254 (wi::divmod_internal): Use it.
32255
32256 2016-02-02 James Norris <jnorris@codesourcery.com>
32257
32258 * gimplify.c (omp_notice_variable): Add usage check.
32259
32260 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32261
32262 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32263 like LE, GE, LT, GT when emitting relational operator.
32264
32265 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32266
32267 * ira-costs.c (find_costs_and_classes): Add extra argument.
32268 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32269 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32270 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32271 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32272 Add best_class parameter, and return it if not ALL_REGS.
32273 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32274 Add parameter.
32275 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32276 Update target hook.
32277
32278 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32279
32280 * config/aarch64/aarch64.c
32281 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32282 (aarch64_ira_change_pseudo_allocno_class): New function.
32283
32284 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32285
32286 PR target/67032
32287 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32288
32289 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32290
32291 * config/avr/avr.c (avr_option_override): Set
32292 PARAM_ALLOW_STORE_DATA_RACES to 1.
32293
32294 2016-02-02 Richard Biener <rguenther@suse.de>
32295
32296 PR tree-optimization/69595
32297 * match.pd: Add range test simplifications to true/false.
32298
32299 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32300
32301 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32302 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32303 instead.
32304
32305 2016-02-02 Richard Biener <rguenther@suse.de>
32306
32307 PR tree-optimization/69606
32308 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32309 info on the result before moving a stmt.
32310
32311 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32312
32313 PR middle-end/68542
32314 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32315 branch with vector comparison.
32316 * config/i386/sse.md (VI48_AVX): New mode iterator.
32317 (define_expand "cbranch<mode>4): Add support for conditional branch
32318 with vector comparison.
32319 * tree-vect-loop.c (optimize_mask_stores): New function.
32320 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32321 has_mask_store field of vect_info.
32322 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32323 vectorized loops having masked stores after vec_info destroy.
32324 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32325 correspondent macros.
32326 (optimize_mask_stores): Add prototype.
32327
32328 2016-02-02 Alan Modra <amodra@gmail.com>
32329
32330 PR target/69548
32331 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32332 allow subregs.
32333
32334 2016-02-02 Alan Modra <amodra@gmail.com>
32335
32336 PR target/68662
32337 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32338 whenever toc_label_name used.
32339 (rs6000_file_start): Don't set up toc section here,
32340 (rs6000_output_function_epilogue): do so here instead,
32341 (rs6000_xcoff_file_start): and here.
32342 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32343 (load_toc_aix_di): Likewise.
32344
32345 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32346
32347 PR rtl-optimization/69592
32348 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32349 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32350 (num_sign_bit_copies_binary_arith_p): New inline function.
32351 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32352
32353 2016-02-01 Jeff Law <law@redhat.com>
32354
32355 PR tree-optimization/69580
32356 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32357 * tree-ssa-threadbackward.c
32358 (fsm_find_control_statement_thread_paths): Do not try to walk
32359 through large PHI nodes.
32360
32361 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32362
32363 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32364 when count is incremented above limit, don't analyze further
32365 insns afterwards.
32366
32367 * omp-low.c (oacc_parse_default_dims): Avoid
32368 -Wsign-compare warning, make sure value fits into int
32369 rather than just unsigned int.
32370
32371 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32372
32373 PR tree-optimization/67921
32374 * fold-const.c (split_tree): New parameters. Convert pointer
32375 type variable part to proper type before negating.
32376 (fold_binary_loc): Pass new arguments to split_tree.
32377
32378 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32379
32380 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32381 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32382 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32383 * doc/tm.texti: Rebuilt.
32384 * doc/invoke.texi (fopenacc-dim): Document.
32385 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32386 (append_compiler_options): Likewise.
32387 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32388 (oacc_parse_default_dims): New.
32389 (oacc_validate_dims): Add USED arg. Select non-unity default when
32390 possible.
32391 (oacc_loop_fixed_partitions): Return mask of used partitions.
32392 (oacc_loop_auto_partitions): Emit dump info.
32393 (oacc_loop_partition): Return mask of used partitions.
32394 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32395 loop partitioning and validation calls.
32396
32397 2016-02-01 Richard Biener <rguenther@suse.de>
32398
32399 PR middle-end/69556
32400 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32401
32402 2016-02-01 Richard Biener <rguenther@suse.de>
32403
32404 PR tree-optimization/69574
32405 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32406 of asserting return chrec_dont_know.
32407
32408 2016-02-01 Martin Liska <mliska@suse.cz>
32409
32410 * mem-stats-traits.h: Add copyright header.
32411 * mem-stats.h: Likewise.
32412
32413 2016-02-01 Richard Biener <rguenther@suse.de>
32414
32415 PR tree-optimization/69579
32416 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32417 Do not propagate through abnormal PHI results.
32418
32419 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32420
32421 * postreload.c (reload_cse_simplify): Remove dead code.
32422
32423 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32424
32425 PR rtl-optimization/69570
32426 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32427 if there is more than one set, not if there is a single set.
32428
32429 2016-02-01 Richard Henderson <rth@redhat.com>
32430
32431 PR rtl-opt/69535
32432 * combine.c (make_compound_operation): When looking through a
32433 subreg, make sure to re-extend to the width of the outer mode.
32434
32435 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32436
32437 PR tree-optimization/69546
32438 * wide-int.cc (wi::divmod_internal): For unsigned division
32439 where both operands fit into uhwi, if o1 is 1 and o0 has
32440 msb set, if divident_prec is larger than bits per hwi,
32441 clear another quotient word and return 2 instead of 1.
32442 Similarly for remainder with msb in HWI set, if dividend_prec
32443 is larger than bits per hwi.
32444
32445 2016-01-29 Martin Jambor <mjambor@suse.cz>
32446
32447 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32448 Use short lowercase names.
32449 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32450 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32451 acq_rel one. Protect warning agains segfaults if
32452 get_memory_order_name returns NULL.
32453 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32454 with release semantics. Do not warn if get_memory_order already did.
32455 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32456 semantics. Fix check for relaxed or acquire semantics. Do not warn
32457 if get_memory_order already did.
32458
32459 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32460
32461 * doc/install.texi: Document that isl-0.16 is supported.
32462
32463 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32464
32465 PR target/69299
32466 * config/i386/constraints.md (Bm): Describe as special memory
32467 constraint.
32468 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32469 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32470 * genpreds.c (struct constraint_data): Add is_special_memory.
32471 (have_special_memory_constraints, special_memory_start): New
32472 static vars.
32473 (special_memory_end): Ditto.
32474 (add_constraint): Add new arg is_special_memory. Add code to
32475 process its true value. Update have_special_memory_constraints.
32476 (process_define_constraint): Pass the new arg.
32477 (process_define_register_constraint): Ditto.
32478 (choose_enum_order): Process special memory.
32479 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32480 function insn_extra_special_memory_constraint.
32481 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32482 * gensupport.c (process_rtx): Process
32483 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32484 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32485 * ira-lives.c (single_reg_class): Use
32486 insn_extra_special_memory_constraint.
32487 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32488 * lra-constraints.c (process_alt_operands): Ditto.
32489 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32490 * recog.c (asm_operand_ok, preprocess_constraints): Process
32491 CT_SPECIAL_MEMORY.
32492 * reload.c (find_reloads): Ditto.
32493 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32494 * stmt.c (parse_input_constraint): Use
32495 insn_extra_special_memory_constraint.
32496
32497 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32498
32499 PR target/69530
32500 * lra-splill.c (lra_final_code_change): Revert r229087 by
32501 removing all sub-registers.
32502
32503 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32504
32505 PR target/65604
32506 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32507
32508 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32509
32510 PR target/69551
32511 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32512 SSE1, copy target into the temporary reg first before recursing
32513 on it.
32514
32515 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32516
32517 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32518 with vm.
32519
32520 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32521
32522 * ginclude/stdarg.h: Test __cplusplus instead of
32523 __GXX_EXPERIMENTAL_CXX0X__.
32524
32525 2016-01-29 Richard Biener <rguenther@suse.de>
32526
32527 PR tree-optimization/69547
32528 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32529 Do not mark clobbers necessary.
32530 (mark_all_reaching_defs_necessary_1): Likewise.
32531
32532 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32533
32534 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32535 declaration name with %qs and print it in both error messages.
32536 Also fix indentation.
32537
32538 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32539
32540 PR other/69006
32541 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32542 trailing blank line from error message.
32543
32544 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32545
32546 PR c++/69462
32547 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32548 for C++-11.
32549
32550 2016-01-29 Richard Biener <rguenther@suse.de>
32551
32552 PR middle-end/69537
32553 * match.pd: Allow all integral types when simplifying a
32554 widening or sign-changing conversion.
32555
32556 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32557
32558 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32559 back to setting codegen_error to fail codegen.
32560
32561 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32562
32563 PR target/69459
32564 * config/i386/constraints.md (C): Only accept constant zero operand.
32565 (BC): New constraint.
32566 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32567 instead of C constraint.
32568 * doc/md.texi (Machine Constraints): Update description
32569 of C constraint.
32570
32571 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32572
32573 PR target/68400
32574 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32575
32576 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32577
32578 PR middle-end/69542
32579 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32580 non-debug insns.
32581
32582 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32583
32584 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32585 branches if using guessed profile.
32586
32587 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32588
32589 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32590
32591 2016-01-28 Richard Henderson <rth@redhat.com>
32592
32593 PR target/69305
32594 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32595 * config/aarch64/aarch64-protos.h: Update.
32596 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32597 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32598 (aarch64_get_condition_code_1): Handle CC_Cmode.
32599 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32600 (*add<mode>3_compareC_cconly_imm): New.
32601 (*add<mode>3_compareC_cconly): New.
32602 (*add<mode>3_compareC_imm): New.
32603 (add<mode>3_compareC): New.
32604 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32605 to be first. Use aarch64_carry_operation.
32606 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32607 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32608 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32609 (subti3): Use subdi3_compare1.
32610 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32611 (sub<mode>3_compare1): New.
32612 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32613 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32614 (*subsi3_carryin_uxtw): Likewise.
32615 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32616 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32617 * config/aarch64/iterators.md (DWI): New.
32618 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32619 (aarch64_borrow_operation): New.
32620
32621 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32622
32623 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32624 message when isl does not return a valid schedule.
32625
32626 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32627
32628 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32629 Remove comments from class declarations: they are already in the code
32630 close by the defs.
32631
32632 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32633
32634 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32635 codegen_error_p.
32636 (ternary_op_to_tree): Same.
32637 (unary_op_to_tree): Same.
32638 (nary_op_to_tree): Same.
32639 (gcc_expression_from_isl_expr_op): Same.
32640 (gcc_expression_from_isl_expression): Same.
32641 (graphite_create_new_loop): Same.
32642 (graphite_create_new_loop_guard): Same.
32643 (build_iv_mapping): Same.
32644 (graphite_create_new_guard): Same.
32645 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32646 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32647
32648 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32649
32650 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32651 instead of setting codegen_error to fail codegen.
32652
32653 2016-01-28 Jason Merrill <jason@redhat.com>
32654
32655 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32656
32657 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32658
32659 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32660 Remove CONST_INT_P check in CCMP cost calculation.
32661
32662 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32663
32664 * config/aarch64/aarch64.c (generic_vector_cost):
32665 Set vec_permute_cost.
32666 (cortexa57_vector_cost): Likewise.
32667 (exynosm1_vector_cost): Likewise.
32668 (xgene1_vector_cost): Likewise.
32669 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32670 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32671 Add vec_permute_cost entry.
32672
32673 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32674
32675 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32676 immediate as %1.
32677 (add<mode>3_compare0): Likewise.
32678 (addsi3_compare0_uxtw): Likewise.
32679 (add<mode>3nr_compare0): Likewise.
32680 (compare_neg<mode>): Likewise.
32681 (<optab><mode>3): Likewise.
32682
32683 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32684
32685 * tree-vect-stmts.c (vectorizable_comparison): Add
32686 NULL check for vectype.
32687
32688 2016-01-28 Richard Biener <rguenther@suse.de>
32689
32690 PR tree-optimization/69466
32691 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32692 Account for PHIs we couldn't duplicate.
32693
32694 2016-01-28 Martin Liska <mliska@suse.cz>
32695
32696 PR pch/68758
32697 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32698 instead of ENABLE_VALGRIND_CHECKING.
32699
32700 2016-01-27 Richard Henderson <rth@redhat.com>
32701
32702 PR rtl-opt/69447
32703 * lra-remat.c (subreg_regs): New.
32704 (dump_candidates_and_remat_bb_data): Dump it.
32705 (operand_to_remat): Reject if operand in subreg_regs.
32706 (set_bb_regs): Collect subreg_regs.
32707 (lra_remat): Init and free subreg_regs. Compute
32708 calculate_local_reg_remat_bb_data before create_cands.
32709
32710 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32711
32712 PR target/68986
32713 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32714 change stack_alignment_needed for __tls_get_addr call.
32715
32716 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32717
32718 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32719
32720 2016-01-27 Jeff Law <law@redhat.com>
32721
32722 PR tree-optimization/68398
32723 PR tree-optimization/69196
32724 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32725 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32726 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32727 Only count PHIs in the last block in the path. The others will
32728 const/copy propagate away. Add heuristic to allow more irreducible
32729 subloops to be created when it is likely profitable to do so.
32730
32731 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32732 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32733 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32734
32735 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32736
32737 PR lto/69254
32738 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32739 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32740 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32741 * tree-streamer-in.c: Include asan.h.
32742 (streamer_get_builtin_tree): For builtins in sanitizer
32743 range call initialize_sanitizer_builtins and retry.
32744
32745 2016-01-27 Ian Lance Taylor <iant@google.com>
32746
32747 * common.opt (fkeep-gc-roots-live): New undocumented option.
32748 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32749 -fkeep-gc-roots-live, skip pointers.
32750 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32751 NULL.
32752
32753 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32754
32755 PR target/69512
32756 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32757 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32758
32759 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32760
32761 PR target/68380
32762 * configure.ac: NetBSD provides SSP in its C library.
32763 * configure: Updated.
32764
32765 2016-01-27 Richard Biener <rguenther@suse.de>
32766
32767 PR tree-optimization/69166
32768 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32769 reduction code for commutativity / associativity.
32770
32771 2016-01-27 Martin Jambor <mjambor@suse.cz>
32772
32773 PR tree-optimization/69355
32774 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32775 total_scalarization fails.
32776
32777 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32778
32779 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32780 power9.
32781
32782 2016-01-27 Christian Bruel <christian.bruel@st.com>
32783
32784 PR target/69245
32785 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32786 Move arm_reset_previous_fndecl and set_target_option_current_node in
32787 the conditional part. Call save_restore_target_globals.
32788 * config/arm/arm.c (arm_set_current_function):
32789 Refactor to better support #pragma target and attribute mix.
32790 Call save_restore_target_globals.
32791 * config/arm/arm-protos.h (save_restore_target_globals): New function.
32792
32793 2016-01-27 Martin Liska <mliska@suse.cz>
32794
32795 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
32796 reference for an HSA kernel and its host function.
32797
32798 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32799
32800 PR tree-optimization/69399
32801 * wide-int.h (wi::lrshift): For larger precisions, only
32802 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
32803
32804 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
32805
32806 * config/arc/predicates.md (proper_comparison_operator): Reject
32807 constant-constant comparison.
32808
32809 2016-01-26 Tom de Vries <tom@codesourcery.com>
32810
32811 PR tree-optimization/69110
32812 * tree-data-ref.c (initialize_data_dependence_relation): Handle
32813 DR_NUM_DIMENSIONS == 0.
32814
32815 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32816 Sebastian Pop <s.pop@samsung.com>
32817
32818 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
32819 isl_ast_op_cond and isl_ast_op_select.
32820 (gcc_expression_from_isl_expr_op): Same.
32821
32822 2016-01-26 Jason Merrill <jason@redhat.com>
32823
32824 PR c++/68782
32825 * tree.c (recompute_constructor_flags): Split out from
32826 build_constructor.
32827 (verify_constructor_flags): New.
32828 * tree.h: Declare them.
32829
32830 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
32831
32832 PR rtl-optimization/69217
32833 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
32834 are no TYPE_FIELDS set for the record type.
32835
32836 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32837
32838 PR target/68662
32839 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
32840 toc_label_name unconditionally.
32841 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
32842 SYMBOL_REF string. Use toc_label_name instead of constructing
32843 LCTOC1.
32844 (rs6000_elf_declare_function_name): Use toc_label_name instead of
32845 constructing LCTOC1.
32846
32847 2016-01-26 Martin Sebor <msebor@redhat.com>
32848
32849 PR other/69477
32850 * doc/extend.texi (Common Type Attributes): Move text that talks about
32851 attribute packed from attribute aligned to the section discussing
32852 the former attribute for clarity.
32853
32854 2016-01-26 Richard Henderson <rth@redhat.com>
32855
32856 PR middle-end/60908
32857 * trans-mem.c (tm_region_init): Mark entry block as visited.
32858
32859 2016-01-26 David Malcolm <dmalcolm@redhat.com>
32860
32861 PR other/69006
32862 * diagnostic-show-locus.c (layout::print_source_line): Replace
32863 call to pp_newline with call to layout::print_newline.
32864 (layout::print_annotation_line): Likewise.
32865 (layout::move_to_column): Likewise.
32866 (layout::print_any_fixits): After printing any fixits, print a
32867 trailing newline, if necessary.
32868 (layout::print_newline): New method, resetting any colorization
32869 before a newline.
32870 (diagnostic_show_locus): Move the pp_newline to before the
32871 early bailout. Remove dummy block enclosing the layout instance.
32872 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
32873 of pp_newline_and_flush with pp_flush.
32874 (diagnostic_append_note): Delete use of pp_newline.
32875 (diagnostic_append_note_at_rich_loc): Delete.
32876 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
32877 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
32878 when newline characters are added to the buffer.
32879
32880 2016-01-26 Michael Matz <matz@suse.de>
32881
32882 * configure.ac (ac_cv_std_swap_in_utility): New test.
32883 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
32884 * configure: Regenerate.
32885 * config.in: Regenerate.
32886
32887 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
32888
32889 * config/arc/arc.md (cstoresi4): Force operand into register.
32890 (arcset<code>): Fix predicate.
32891 (arcsetltu): Likewise.
32892 (arcsetgeu): Likewise.
32893 (arcsethi): Likewise.
32894 (arcsetls): Likewise.
32895
32896 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32897
32898 PR tree-optimization/69483
32899 * gimple-fold.c (canonicalize_constructor_val): Return NULL
32900 if base has error_mark_node type.
32901
32902 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
32903
32904 PR target/68620
32905 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
32906 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
32907 New helper macros.
32908 (vget_lane_f16): Handle big-endian.
32909 (vgetq_lane_f16): Likewise.
32910 (vset_lane_f16): Likewise.
32911 (vsetq_lane_f16): Likewise.
32912 * config/arm/iterators.md (VQXMOV): Add V8HF.
32913 (VDQ): Add V4HF and V8HF.
32914 (V_reg): Handle V4HF and V8HF.
32915 (Is_float_mode): Likewise.
32916 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
32917 neon_vdup_nv8hf): New patterns.
32918 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
32919 Use VD_LANE iterator.
32920 (neon_vld1_dup<mode>): Use VQ2 iterator.
32921
32922 2016-01-26 Nathan Sidwell <nathan@acm.org>
32923
32924 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
32925 (set_oacc_fn_attrib): Add IS_KERNEL arg.
32926 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
32927 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
32928 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
32929 (oacc_validate_dims): Add LEVEL arg, don't return level.
32930 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
32931 oacc_validate_dims.
32932 (execute_oacc_device_lower): Adjust, add more dump output.
32933 * tree-ssa-loop.c (gate_oacc_kernels): Use
32934 oacc_fn_attrib_kernels_p.
32935 * tree-parloops.c (create_parallel_loop): Adjust
32936 set_oacc_fn_attrib call.
32937
32938 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32939
32940 PR lto/69254
32941 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
32942 (append_compiler_options): Handle -fcilkplus.
32943 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
32944
32945 2016-01-26 Nick Clifton <nickc@redhat.com>
32946
32947 PR target/66655
32948 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
32949 been marked as DECL_ONE_ONLY but we do not the means to make it
32950 so, then do not allow it to bind locally.
32951
32952 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32953
32954 PR lto/69254
32955 * opts.h (parse_sanitizer_options): New prototype.
32956 * opts.c (sanitizer_opts): New array.
32957 (parse_sanitizer_options): New function.
32958 (common_handle_option): Use parse_sanitizer_options.
32959
32960 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32961
32962 PR target/68986
32963 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32964 alignment adjustment to ...
32965 (ix86_update_stack_boundary): Here. Don't over-align stack for
32966 __tls_get_addr.
32967 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32968 if __tls_get_addr is called.
32969
32970 2016-01-26 Christian Bruel <christian.bruel@st.com>
32971
32972 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32973
32974 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32975
32976 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32977
32978 2016-01-26 Richard Biener <rguenther@suse.de>
32979
32980 PR middle-end/69467
32981 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32982
32983 2016-01-26 Richard Biener <rguenther@suse.de>
32984
32985 PR tree-optimization/69452
32986 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32987 (move_computations_dom_walker::before_dom_children): Rename
32988 to ...
32989 (move_computations_worker): This.
32990 (move_computations): Perform an RPO rather than a DOM walk.
32991
32992 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32993
32994 PR target/69442
32995 * combine.c (combine_instructions): For REG_EQUAL note with
32996 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32997 to the underlying register.
32998 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32999 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33000
33001 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33002
33003 PR target/67896
33004 * config/aarch64/aarch64-builtins.c
33005 (aarch64_init_simd_builtin_types): Do not set structural
33006 equality to __Poly{8,16,64,128}_t types.
33007
33008 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33009
33010 PR tree-optimization/69400
33011 * wide-int.cc (wi_pack): Take the precision as argument and
33012 perform canonicalization here rather than in the callers.
33013 Use the main loop to handle all full-width HWIs. Add a
33014 zero HWI if in_len isn't a full result.
33015 (wi::divmod_internal): Update accordingly.
33016 (wi::mul_internal): Likewise. Simplify.
33017
33018 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33019 Sebastian Pop <s.pop@samsung.com>
33020
33021 * graphite-poly.c (apply_poly_transforms): Simplify.
33022 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33023 (print_isl_map): Same.
33024 (print_isl_union_map): Same.
33025 (print_isl_schedule): New.
33026 (debug_isl_schedule): New.
33027 * graphite-dependences.c (scop_get_reads): Do not call
33028 isl_union_map_add_map that is undocumented isl functionality.
33029 (scop_get_must_writes): Same.
33030 (scop_get_may_writes): Same.
33031 (scop_get_original_schedule): Remove.
33032 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33033 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33034 (compute_deps): Remove.
33035 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33036 (debug_schedule_ast): New.
33037 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33038 set_separate_option.
33039 (graphite_regenerate_ast_isl): Add dump.
33040 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33041 from scop->transformed_schedule.
33042 (graphite_regenerate_ast_isl): Add more dump.
33043 * graphite-optimize-isl.c (optimize_isl): Set
33044 scop->transformed_schedule. Check whether schedules are equal.
33045 (apply_poly_transforms): Move here.
33046 * graphite-poly.c (apply_poly_transforms): ... from here.
33047 (free_poly_bb): Static.
33048 (free_scop): Static.
33049 (pbb_number_of_iterations_at_time): Remove.
33050 (print_isl_ast): New.
33051 (debug_isl_ast): New.
33052 (debug_scop_pbb): New.
33053 * graphite-scop-detection.c (print_edge): Move.
33054 (print_sese): Move.
33055 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33056 (build_scop_scattering): Remove.
33057 (create_pw_aff_from_tree): Assert instead of bailing out.
33058 (add_condition_to_pbb): Remove unused code, do not fail.
33059 (add_conditions_to_domain): Same.
33060 (add_conditions_to_constraints): Remove.
33061 (build_scop_context): New.
33062 (add_iter_domain_dimension): New.
33063 (build_iteration_domains): Initialize pbb->iterators.
33064 Call add_conditions_to_domain.
33065 (nested_in): New.
33066 (loop_at): New.
33067 (index_outermost_in_loop): New.
33068 (index_pbb_in_loop): New.
33069 (outermost_pbb_in): New.
33070 (add_in_sequence): New.
33071 (add_outer_projection): New.
33072 (outer_projection_mupa): New.
33073 (add_loop_schedule): New.
33074 (build_schedule_pbb): New.
33075 (build_schedule_loop): New.
33076 (embed_in_surrounding_loops): New.
33077 (build_schedule_loop_nest): New.
33078 (build_original_schedule): New.
33079 (build_poly_scop): Call build_original_schedule.
33080 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33081 (free_poly_dr): Remove.
33082 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33083 (free_poly_bb): Remove.
33084 (debug_loop_vec): Remove.
33085 (print_isl_ast): Declare.
33086 (debug_isl_ast): Declare.
33087 (scop_do_interchange): Remove.
33088 (scop_do_strip_mine): Remove.
33089 (scop_do_block): Remove.
33090 (flatten_all_loops): Remove.
33091 (optimize_isl): Remove.
33092 (pbb_number_of_iterations_at_time): Remove.
33093 (debug_scop_pbb): Declare.
33094 (print_schedule_ast): Declare.
33095 (debug_schedule_ast): Declare.
33096 (struct scop): Remove schedule. Add original_schedule,
33097 transformed_schedule.
33098 (free_gimple_poly_bb): Remove.
33099 (print_generated_program): Remove.
33100 (debug_generated_program): Remove.
33101 (unify_scattering_dimensions): Remove.
33102 * sese.c (print_edge): ... here.
33103 (print_sese): ... here.
33104 (debug_edge): ... here.
33105 (debug_sese): ... here.
33106 * sese.h (print_edge): Declare.
33107 (print_sese): Declare.
33108 (dump_edge): Declare.
33109 (dump_sese): Declare.
33110
33111 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33112 Sebastian Pop <s.pop@samsung.com>
33113
33114 * Makefile.in: Set ISLVER in site.exp.
33115
33116 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33117
33118 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33119 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33120 through DECL_VALUE_EXPR for expansion.
33121
33122 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33123
33124 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33125 the frame info after reload completed.
33126
33127 2016-01-25 Jeff Law <law@redhat.com>
33128
33129 PR tree-optimization/69196
33130 PR tree-optimization/68398
33131 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33132 tree-ssa-threadupdate.c.
33133 (determine_bb_domination_status): Prototype
33134 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33135 (determine_bb_domination_status): No longer static.
33136 (valid_jump_thread_path): Remove code to detect characteristics
33137 of the jump thread path not associated with correctness.
33138 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33139 Correct test for thread path length. Count PHIs for real operands as
33140 statements that need to be copied. Do not count ASSERT_EXPRs.
33141 Look at all the blocks in the thread path. Compute and selectively
33142 filter thread paths based on threading through the latch, threading
33143 a multiway branch or crossing a multiway branch.
33144
33145 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33146
33147 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33148 decl with __attribute__ ((unused)) annotation.
33149
33150 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33151
33152 PR target/69421
33153 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33154 of operands is compatible with a statement vectype.
33155
33156 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33157
33158 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33159 improve wording for mixed storage order support.
33160
33161 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33162
33163 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33164 (vcvt_u64_f64): Likewise.
33165 (vcvta_s64_f64): Likewise.
33166 (vcvta_u64_f64): Likewise.
33167 (vcvtm_s64_f64): Likewise.
33168 (vcvtm_u64_f64): Likewise.
33169 (vcvtn_s64_f64): Likewise.
33170 (vcvtn_u64_f64): Likewise.
33171 (vcvtp_s64_f64): Likewise.
33172 (vcvtp_u64_f64): Likewise.
33173
33174 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33175
33176 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33177 (arc_init): Check validity mll64 option.
33178 (arc_save_restore): Use double load/store instruction.
33179 (arc_expand_movmem): Likewise.
33180 (arc_split_move): Don't split if we have double load/store
33181 instructions. Returns a boolean.
33182 (arc_process_double_reg_moves): Change function to return boolean
33183 instead of a sequence of instructions.
33184 (arc_dwarf_register_span): New function.
33185 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33186 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33187 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33188 (*movdf_insn): Likewise.
33189 * config/arc/arc.opt (mll64): New option.
33190 * config/arc/predicates.md (even_register_operand): New predicate.
33191 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33192
33193 2016-01-25 Richard Biener <rguenther@suse.de>
33194
33195 PR lto/69393
33196 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33197 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33198 DECL_NAMELESS.
33199 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33200
33201 2016-01-25 Richard Biener <rguenther@suse.de>
33202
33203 PR tree-optimization/69376
33204 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33205 flag.
33206 (VN_INFO_ANTI_RANGE_P): New inline.
33207 (VN_INFO_RANGE_TYPE): Likewise.
33208 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33209 SSA_NAME_ANTI_RANGE_P.
33210 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33211 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33212 Properly query VN_INFO_RANGE_TYPE.
33213
33214 2016-01-25 Nick Clifton <nickc@redhat.com>
33215
33216 PR target/66655
33217 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33218
33219 2016-01-23 Tom de Vries <tom@codesourcery.com>
33220
33221 PR tree-optimization/69426
33222 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33223 removed clobber.
33224
33225 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33226
33227 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33228 "the the" with "the" in the comments.
33229 * ipa-devirt.c (build_type_inheritance_graph,
33230 update_type_inheritance_graph): Likewise.
33231 * tree.c (build_function_type_list_1): Likewise.
33232 * cfgloopmanip.c (scale_loop_profile): Likewise.
33233 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33234 * gimple-ssa-split-paths.c
33235 (find_block_to_duplicate_for_splitting_paths): Likewise.
33236 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33237 * expr.c (convert_move): Likewise.
33238 * var-tracking.c (vt_stack_adjustments): Likewise.
33239 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33240 * tree-vrp.c (test_for_singularity): Likewise.
33241
33242 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33243 directly instead of building a temporary tree.
33244
33245 PR bootstrap/69434
33246 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33247 remove <algorithm> include.
33248
33249 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33250
33251 PR target/69432
33252 * config/i386/i386.c: Include dojump.h.
33253 (expand_small_movmem_or_setmem,
33254 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33255 fixes.
33256 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33257 if dynamic_check != -1.
33258
33259 2016-01-21 Jeff Law <law@redhat.com>
33260
33261 PR middle-end/69347
33262 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33263 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33264 into dominated_by_p.
33265 (cprop_into_successor_phis): Avoid unnecessary tests.
33266
33267 2016-01-22 Richard Henderson <rth@redhat.com>
33268
33269 PR target/69416
33270 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33271 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33272
33273 2016-01-22 Michael Matz <matz@suse.de>
33274
33275 * system.h (string, algorithm): Include only conditionally.
33276 (new): Include always under C++.
33277 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33278 * final.c (toplevel): Ditto.
33279 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33280 * genconditions.c (write_header): Make gencondmd.c define
33281 INCLUDE_STRING.
33282 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33283
33284 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33285 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33286
33287 2016-01-22 Christian Bruel <christian.bruel@st.com>
33288
33289 PR target/68674
33290 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33291
33292 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33293
33294 PR target/69403
33295 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33296 define_insn_and_split. Ensure operands[1] and operands[0] do not
33297 get assigned the same register.
33298
33299 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33300
33301 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33302
33303 2016-01-22 Christian Bruel <christian.bruel@st.com>
33304
33305 * config/arm/arm-c.c (arm_pragma_target_parse):
33306 Remove warn_builtin_macro_redefined overwrite.
33307
33308 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33309
33310 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33311 flag_non_call_exceptions compatibility.
33312
33313 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33314
33315 PR debug/66668
33316 * dwarf2out.c (add_child_die_after): New function.
33317 (dwarf_qual_info_t): New type.
33318 (dwarf_qual_info): New variable.
33319 (qualified_die_p): New function.
33320 (modified_type_die): For -fdebug-types-section, ensure
33321 canonical order of qualifiers. Put qualified DIEs adjacent
33322 to the corresponding non-qualified type DIE and search there
33323 for existing qualified DIEs.
33324
33325 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33326
33327 * doc/extend.texi (scalar_storage_order type attribute): Document
33328 restriction on type punning and aliasing, and remove future tense.
33329
33330 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33331
33332 PR target/69252
33333 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33334 first stage.
33335
33336 2016-01-21 Jeff Law <law@redhat.com>
33337
33338 PR middle-end/69347
33339 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33340 useless call to record_temporary_equivalences.
33341 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33342 allocate 10 slots in the bb_path vector and let it grow as needed.
33343 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33344 vector.
33345
33346 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33347
33348 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33349 Detangle.
33350 * configure: Regenerate.
33351
33352 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33353
33354 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33355 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33356
33357 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33358
33359 PR middle-end/66178
33360 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33361 drop EXPAND_INITIALIZER.
33362 * rtl.h (contains_symbolic_reference_p): Declare.
33363 * rtlanal.c (contains_symbolic_reference_p): New function.
33364 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33365 a subtraction into a NOT if symbolic constants are involved.
33366
33367 2016-01-21 Anton Blanchard <anton@samba.org>
33368 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33369
33370 PR target/63354
33371 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33372 #define.
33373 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33374 function.
33375
33376 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33377
33378 * config/microblaze/microblaze.c
33379 (get_branch_target): New.
33380 (insert_wic_for_ilb_runout): New.
33381 (insert_wic): New.
33382 (microblaze_machine_dependent_reorg): New.
33383 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33384 * config/microblaze/microblaze.md
33385 (UNSPEC_IPREFETCH): Define.
33386 (iprefetch): New pattern
33387 * config/microblaze/microblaze.opt
33388 (mxl-prefetch): New flag.
33389
33390 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33391
33392 * config/microblaze/microblaze.h
33393 (FIXED_REGISTERS): Update in macro.
33394 (CALL_USED_REGISTERS): Update in macro.
33395
33396 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33397
33398 PR rtl-optimization/68920
33399 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33400 moves.
33401
33402 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33403
33404 PR rtl-optimization/68990
33405 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33406 pseudo instead of inheritance ones.
33407
33408 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33409 Nick Clifton <nickc@redhat.com>
33410
33411 PR target/69129
33412 PR target/69012
33413 * config/mips/mips.c (mips_compute_frame_info): Initialise
33414 args_size and hard_frame_pointer_offset fields of the frame
33415 structure before calling mips_global_pointer.
33416
33417 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33418
33419 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33420 label reference.
33421 * configure: Regenerate.
33422
33423 2016-01-21 Richard Biener <rguenther@suse.de>
33424
33425 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33426
33427 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33428
33429 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33430 to actually emit the .size directive.
33431
33432 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33433 Jakub Jelinek <jakub@redhat.com>
33434
33435 PR target/69187
33436 PR target/65624
33437 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33438 args array size by one to avoid buffer overflow.
33439
33440 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33441
33442 * config/s390/s390.md (pool_section_start): Use switch_to_section
33443 to select proper read-only data section instead of hardcoding
33444 .rodata.
33445 (pool_section_end): Use switch_to_section to match the above.
33446
33447 2016-01-21 Richard Biener <rguenther@suse.de>
33448
33449 PR tree-optimization/69378
33450 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33451 (set_ssa_val_to): Use it for dominance checks taking into
33452 account not executable edges.
33453
33454 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33455
33456 PR c++/69355
33457 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33458 for bitsize instead of GET_MODE_PRECISION (mode).
33459
33460 2016-01-20 Martin Sebor <msebor@redhat.com>
33461
33462 PR c/52291
33463 * extend.texi (__sync Builtins): Clarify the semantics of
33464 __sync_fetch_and_OP built-ins on pointers.
33465 (__atomic Builtins): Same.
33466
33467 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33468 Sebastian Pop <s.pop@samsung.com>
33469
33470 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33471 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33472 (is_valid_rename): Same.
33473 (translate_isl_ast_to_gimple::get_rename): Same.
33474 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33475 (translate_isl_ast_to_gimple::rename_uses): Same.
33476 (get_new_name): Check for close_phi nodes.
33477 (copy_loop_phi_args): Use phi_node_kind.
33478 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33479 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33480
33481 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33482 Sebastian Pop <s.pop@samsung.com>
33483
33484 Revert commit r229783.
33485 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33486 Remove use of parameter_rename_map.
33487 (copy_def): Remove.
33488 (copy_internal_parameters): Remove.
33489 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33490 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33491 (free_sese_info): Do not free parameter_rename_map.
33492 (set_rename): Do not use parameter_rename_map.
33493 (rename_uses): Update call to set_rename.
33494 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33495 * sese.h (parameter_rename_map_t): Remove.
33496 (struct sese_info_t): Remove field parameter_rename_map.
33497
33498 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33499 Sebastian Pop <s.pop@samsung.com>
33500
33501 * graphite-isl-ast-to-gimple.c: Fix comment.
33502 * graphite-scop-detection.c (defined_in_loop_p): New.
33503 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33504 names defined in loop.
33505
33506 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33507 Sebastian Pop <s.pop@samsung.com>
33508
33509 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33510 Discard unstructured if-then-else regions.
33511
33512 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33513 Sebastian Pop <s.pop@samsung.com>
33514
33515 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33516 (cleanup_loop_iter_dom): Remove.
33517 (build_loop_iteration_domains): Remove.
33518 (build_scop_context): Remove.
33519 (build_scop_iteration_domain): Remove.
33520 (add_loop_constraints): New.
33521 (build_iteration_domains): New.
33522 (build_poly_scop): Call build_iteration_domains.
33523
33524 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33525 Sebastian Pop <s.pop@samsung.com>
33526
33527 * graphite-scop-detection.c
33528 (scop_detection::harmful_loop_in_region): Free dom and loops.
33529 (scop_detection::loop_body_is_valid_scop): Free bbs.
33530
33531 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33532 Sebastian Pop <s.pop@samsung.com>
33533
33534 * graphite-scop-detection.c (record_loop_in_sese): New.
33535 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33536 (build_scops): Remove call to build_sese_loop_nests.
33537 * sese.c (sese_record_loop): Remove.
33538 (build_sese_loop_nests): Remove.
33539 (new_sese_info): Remove region->loops.
33540 (free_sese_info): Same.
33541 * sese.h (sese_contains_loop): Same.
33542 (build_sese_loop_nests): Remove.
33543 (sese_contains_loop): Remove.
33544
33545 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33546 Sebastian Pop <s.pop@samsung.com>
33547
33548 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33549 loop_is_valid_in_scop.
33550 (scop_detection::harmful_stmt_in_region): Renamed
33551 harmful_loop_in_region.
33552 Call loop_is_valid_in_scop.
33553
33554 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33555 Sebastian Pop <s.pop@samsung.com>
33556
33557 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33558 isl_ast_node_mark.
33559
33560 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33561 Sebastian Pop <s.pop@samsung.com>
33562
33563 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33564 * graphite.h (struct poly_bb): Remove field is_reduction.
33565 (PBB_IS_REDUCTION): Remove.
33566
33567 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33568 Sebastian Pop <s.pop@samsung.com>
33569
33570 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33571 (add_pdr_constraints): Same.
33572 (scop_get_reads): Same.
33573 (scop_get_must_writes): Same.
33574 (scop_get_may_writes): Same.
33575 (scop_get_original_schedule): Same.
33576 (extend_schedule): Same.
33577 (apply_schedule_on_deps): Same.
33578 (carries_deps): Same.
33579 (compute_deps): Same.
33580 (scop_get_dependences): Same.
33581 * graphite-isl-ast-to-gimple.c
33582 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33583 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33584 (get_schedule_for_band_list): Same.
33585 (get_schedule_map): Same.
33586 (apply_schedule_map_to_scop): Same.
33587 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33588 (build_loop_iteration_domains): Same.
33589 (add_condition_to_pbb): Same.
33590 (add_param_constraints): Same.
33591 (pdr_add_memory_accesses): Same.
33592 (pdr_add_data_dimensions): Same.
33593
33594 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33595
33596 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33597 requirements.
33598
33599 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33600
33601 * common.opt (feliminate-dwarf2-dups): Replace references to
33602 "DWARF 2" with just "DWARF".
33603 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33604 * doc/extend.texi: Likewise.
33605 * doc/cpp.texi: Likewise.
33606 * doc/invoke.texi: Likewise.
33607 (Option Summary): Add -gdwarf to list of Debugging Options.
33608 (Debugging Options): Document -gdwarf.
33609 * doc/contrib.texi: Spell "DWARF" like that.
33610
33611 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33612
33613 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33614 warning. Fix up formatting.
33615
33616 PR middle-end/67653
33617 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33618 attempt to mark memory input operand addressable and
33619 call prepare_gimple_addressable in that case. Don't adjust
33620 input_location for diagnostics, use error_at instead.
33621
33622 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33623
33624 * config/rs6000/ppc-auxv.h: New file.
33625 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33626 (cpu_is): Likewise.
33627 (cpu_supports): Likewise.
33628 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33629 (cpu_is_info): New variable.
33630 (cpu_supports_info): Likewise.
33631 (tcb_verification_symbol): Likewise.
33632 (cpu_builtin_p): Likewise.
33633 (cpu_expand_builtin): New function.
33634 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33635 (rs6000_init_builtins): Likewise.
33636 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33637 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33638 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33639 * configure: Regenerate.
33640 * config.in: Likewise.
33641 * doc/extend.texi (PowerPC Built-in Functions): Document
33642 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33643
33644 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33645
33646 PR target/68609
33647 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33648 domain check.
33649 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33650 for V4SFmode.
33651
33652 2016-01-20 Richard Henderson <rth@redhat.com>
33653
33654 PR bootstrap/69343
33655 PR bootstrap/69339
33656 PR tree-opt/68964
33657 Revert:
33658 * tree.c (tm_define_builtin): New.
33659 (find_tm_vector_type): New.
33660 (build_tm_vector_builtins): New.
33661 (build_common_builtin_nodes): Call it.
33662
33663 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33664
33665 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33666 (arm_fp_ok): Likewise.
33667 (arm_fp): Likewise.
33668 (arm_crypto): Likewise.
33669
33670 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33671 Richard Biener <rguenther@suse.de>
33672
33673 PR tree-optimization/69328
33674 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33675 vectors have same number of elements.
33676 (vectorizable_condition): Fix masked version recognition.
33677
33678 2016-01-20 Richard Biener <rguenther@suse.de>
33679
33680 PR tree-optimization/69345
33681 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33682 (VN_INFO_PTR_INFO): Likewise.
33683 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33684 info when it is equal between non-dominating SSA names.
33685 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33686 Make sure to look at original SSA infos.
33687
33688 2016-01-20 Jeff Law <law@redhat.com>
33689
33690 PR target/25114
33691 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33692 extracted from ...
33693 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33694 (pc_or_label_operand): New predicate.
33695 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33696 tests for small integers that are 2^n - 1.
33697
33698 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33699
33700 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33701
33702 2016-01-19 Jeff Law <law@redhat.com>
33703
33704 PR middle-end/69347
33705 * tree-ssa-threadbackwards.c
33706 (fsm_find_control_statement_thread_paths): Do not try to lookup
33707 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33708
33709 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33710
33711 * doc/lto.texi: Remove text that says only Gold has linker plugin
33712 support.
33713
33714 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33715
33716 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33717 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33718 the DIE accordingly.
33719 (modified_type_die): Add REVERSE parameter and pass it recursively,
33720 as well as to base_type_die. Adjust presence check accordingly.
33721 (base_type_for_mode): Adjust call to modified_type_die.
33722 (add_type_attribute): Add REVERSE parameter and pass it to
33723 modified_type_die.
33724 (generic_parameter_die): Adjust call to add_type_attribute.
33725 (add_scalar_info): Likewise.
33726 (add_subscript_info): Likewise.
33727 (gen_array_type_die): Likewise.
33728 (gen_descr_array_type_die): Likewise.
33729 (gen_entry_point_die): Likewise.
33730 (gen_enumeration_type_die): Likewise.
33731 (gen_formal_parameter_die): Likewise.
33732 (gen_subprogram_die): Likewise.
33733 (gen_variable_die ): Likewise.
33734 (gen_const_die): Likewise.
33735 (gen_field_die): Likewise.
33736 (gen_pointer_type_die): Likewise.
33737 (gen_reference_type_die): Likewise.
33738 (gen_ptr_to_mbr_type_die): Likewise.
33739 (gen_inheritance_die): Likewise.
33740 (gen_subroutine_type_die): Likewise.
33741 (gen_typedef_die): Likewise.
33742 (force_type_die): Adjust call to modified_type_die.
33743
33744 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33745
33746 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33747 flow throughout the file. Fix broken link to Objective-C 2.0
33748 documentation.
33749 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33750 errors.
33751
33752 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33753
33754 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33755
33756 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33757
33758 PR ipa/66223
33759 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33760 (maybe_record_node): Record cxa_pure_virtual as the only possible
33761 target if there are not ohter candidates.
33762 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33763
33764 2016-01-19 Richard Biener <rguenther@suse.de>
33765
33766 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33767 (get_memory_order): Likewise.
33768
33769 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33770
33771 * tree-vect-stmts.c (vectorizable_store): Check
33772 rhs vectype.
33773
33774 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33775
33776 PR jit/68446
33777 * gcc.c (driver::decode_argv): Add call to
33778 init_opts_obstack before init_options_struct.
33779 * opts.c (init_opts_obstack): Remove idempotency.
33780 (init_options_struct): Replace call to init_opts_obstack
33781 with a gcc_assert to verify that it has already been called.
33782 * toplev.c (toplev::main): Add call to init_opts_obstack before
33783 calls to init_options_struct.
33784 (toplev::finalize): Move cleanup of opts_obstack next to
33785 cleanup of save_decoded_options, clearing the latter, and
33786 save_decoded_options_count.
33787
33788 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33789
33790 PR target/69135
33791 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
33792 attribute to unconditional. Remove %? from output template.
33793
33794 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33795 Jiong Wang <jiong.wang@arm.com>
33796
33797 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
33798 generated from different expand order.
33799
33800 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33801
33802 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33803 Add support for CCMP costing.
33804
33805 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33806
33807 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
33808 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
33809 (fccmpe<mode>): Likewise.
33810 (fcmp): Rename to fcmp and globalize pattern.
33811 (fcmpe): Likewise.
33812 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
33813 (aarch64_gen_ccmp_next): Add FP support.
33814
33815 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33816
33817 * target.def (gen_ccmp_first): Update documentation.
33818 (gen_ccmp_next): Likewise.
33819 * doc/tm.texi (gen_ccmp_first): Update documentation.
33820 (gen_ccmp_next): Likewise.
33821 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
33822 expand_ccmp_expr_1. Improve comments.
33823 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
33824 (ccmp_ior<mode>): Remove pattern.
33825 (cmp<mode>): Remove expand.
33826 (cmp): Globalize pattern.
33827 (cstorecc4): Use cc_register.
33828 (mov<mode>cc): Remove ccmp_cc_register check.
33829 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
33830 Simplify after removal of CC_DNE/* modes.
33831 (aarch64_ccmp_mode_to_code): Remove.
33832 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
33833 In 'k' case use integer as condition.
33834 (aarch64_nzcv_codes): Remove inverted cases.
33835 (aarch64_code_to_ccmode): Remove.
33836 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
33837 comparison with CC register to be used in folowing CCMP/branch/CSEL.
33838 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
33839 pattern. Return the comparison with CC register. Invert conditions
33840 when bitcode is OR.
33841 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
33842 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
33843
33844 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33845
33846 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
33847 instrumented_version.
33848
33849 2016-01-19 Richard Biener <rguenther@suse.de>
33850
33851 PR tree-optimization/69336
33852 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
33853 handled components with get_ref_base_and_extent.
33854 (equal_mem_array_ref_p): Adjust.
33855
33856 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33857
33858 PR debug/65779
33859 * shrink-wrap.c: Include valtrack.h.
33860 (move_insn_for_shrink_wrap): Add DEBUG argument. If
33861 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
33862 in between insn and where it will be moved to. Call
33863 dead_debug_insert_temp.
33864 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
33865 first and dead_debug_local_finish at the end.
33866 For uses and defs bitmap, handle all regs in between REGNO and
33867 END_REGNO, not just the first one.
33868
33869 2016-01-19 Richard Biener <rguenther@suse.de>
33870
33871 PR tree-optimization/69352
33872 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
33873 (equal_mem_array_ref_p): Constrain size and max size properly.
33874 Compare the reverse flag.
33875
33876 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
33877
33878 * ira.c (ira): Update regstat data if we deleted insns.
33879
33880 2016-01-19 Jakub Jelinek <jakub@redhat.com>
33881
33882 PR rtl-optimization/68955
33883 PR rtl-optimization/64557
33884 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
33885 here. Fix up formatting.
33886 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
33887
33888 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33889
33890 PR lto/69133
33891 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
33892 assume that the node has body.
33893 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
33894 check.
33895
33896 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33897
33898 * lto-streamer-out.c (lto_output): Do not stream instrumentation
33899 thunks.
33900
33901 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33902
33903 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
33904 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
33905
33906 2016-01-19 Martin Jambor <mjambor@suse.cz>
33907 Martin Liska <mliska@suse.cz>
33908 Michael Matz <matz@suse.de>
33909
33910 * Makefile.in (OBJS): Add new source files.
33911 (GTFILES): Add hsa.c.
33912 * common.opt (disable_hsa): New variable.
33913 (-Whsa): New warning.
33914 * config.in (ENABLE_HSA): New.
33915 * configure.ac: Treat hsa differently from other accelerators.
33916 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
33917 $enable_offloading.
33918 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
33919 * doc/install.texi (Configuration): Document --with-hsa-runtime,
33920 --with-hsa-runtime-include, --with-hsa-runtime-lib and
33921 --with-hsa-kmt-lib.
33922 * doc/invoke.texi (-Whsa): Document.
33923 (hsa-gen-debug-stores): Likewise.
33924 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
33925 to invoke offload compiler for hsa acclerator.
33926 * opts.c (common_handle_option): Determine whether HSA offloading
33927 should be performed.
33928 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
33929 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
33930 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
33931 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
33932 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
33933 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
33934 GF_OMP_FOR_KIND_GRID_LOOP.
33935 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
33936 (pp_gimple_stmt_1): Likewise.
33937 * gimple-walk.c (walk_gimple_stmt): Likewise.
33938 * gimple.c (gimple_build_omp_grid_body): New function.
33939 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
33940 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
33941 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
33942 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
33943 GF_OMP_TEAMS_GRID_PHONY.
33944 (gimple_statement_omp_single_layout): Updated comments.
33945 (gimple_build_omp_grid_body): New function.
33946 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
33947 (gimple_omp_for_grid_phony): New function.
33948 (gimple_omp_for_set_grid_phony): Likewise.
33949 (gimple_omp_parallel_grid_phony): Likewise.
33950 (gimple_omp_parallel_set_grid_phony): Likewise.
33951 (gimple_omp_teams_grid_phony): Likewise.
33952 (gimple_omp_teams_set_grid_phony): Likewise.
33953 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33954 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33955 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33956 (BUILT_IN_GOMP_TARGET): Updated type.
33957 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33958 (adjust_for_condition): New function.
33959 (get_omp_for_step_from_incr): Likewise.
33960 (extract_omp_for_data): Moved parts to adjust_for_condition and
33961 get_omp_for_step_from_incr.
33962 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33963 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33964 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33965 (scan_omp_parallel): Do not create child functions for phony
33966 constructs.
33967 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33968 (scan_omp_1_op): Checking assert we are not remapping to
33969 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33970 (parallel_needs_hsa_kernel_p): New function.
33971 (expand_parallel_call): Register apprpriate parallel child
33972 functions as HSA kernels.
33973 (grid_launch_attributes_trees): New type.
33974 (grid_attr_trees): New variable.
33975 (grid_create_kernel_launch_attr_types): New function.
33976 (grid_insert_store_range_dim): Likewise.
33977 (grid_get_kernel_launch_attributes): Likewise.
33978 (get_target_argument_identifier_1): Likewise.
33979 (get_target_argument_identifier): Likewise.
33980 (get_target_argument_value): Likewise.
33981 (push_target_argument_according_to_value): Likewise.
33982 (get_target_arguments): Likewise.
33983 (expand_omp_target): Call get_target_arguments instead of looking
33984 up for teams and thread limit.
33985 (grid_expand_omp_for_loop): New function.
33986 (grid_arg_decl_map): New type.
33987 (grid_remap_kernel_arg_accesses): New function.
33988 (grid_expand_target_kernel_body): New function.
33989 (expand_omp): Call it.
33990 (lower_omp_for): Do not emit phony constructs.
33991 (lower_omp_taskreg): Do not emit phony constructs but create for them
33992 a temporary variable receiver_decl.
33993 (lower_omp_taskreg): Do not emit phony constructs.
33994 (lower_omp_teams): Likewise.
33995 (lower_omp_grid_body): New function.
33996 (lower_omp_1): Call it.
33997 (grid_reg_assignment_to_local_var_p): New function.
33998 (grid_seq_only_contains_local_assignments): Likewise.
33999 (grid_find_single_omp_among_assignments_1): Likewise.
34000 (grid_find_single_omp_among_assignments): Likewise.
34001 (grid_find_ungridifiable_statement): Likewise.
34002 (grid_target_follows_gridifiable_pattern): Likewise.
34003 (grid_remap_prebody_decls): Likewise.
34004 (grid_copy_leading_local_assignments): Likewise.
34005 (grid_process_kernel_body_copy): Likewise.
34006 (grid_attempt_target_gridification): Likewise.
34007 (grid_gridify_all_targets_stmt): Likewise.
34008 (grid_gridify_all_targets): Likewise.
34009 (execute_lower_omp): Call grid_gridify_all_targets.
34010 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34011 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34012 (tree_omp_clause): Added union field dimension.
34013 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34014 * tree.c (omp_clause_num_ops): Added number of arguments of
34015 OMP_CLAUSE__GRIDDIM_.
34016 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34017 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34018 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34019 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34020 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34021 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34022 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34023 * tree-pass.h (make_pass_gen_hsail): Declare.
34024 (make_pass_ipa_hsa): Likewise.
34025 * ipa-hsa.c: New file.
34026 * lto-section-in.c (lto_section_name): Add hsa section name.
34027 * lto-streamer.h (lto_section_type): Add hsa section.
34028 * timevar.def (TV_IPA_HSA): New.
34029 * hsa-brig-format.h: New file.
34030 * hsa-brig.c: New file.
34031 * hsa-dump.c: Likewise.
34032 * hsa-gen.c: Likewise.
34033 * hsa.c: Likewise.
34034 * hsa.h: Likewise.
34035 * toplev.c (compile_file): Call hsa_output_brig.
34036 * hsa-regalloc.c: New file.
34037
34038 2016-01-18 Jeff Law <law@redhat.com>
34039
34040 PR tree-optimization/69320
34041 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34042 ranged object, do nothing if the RHS constant is not [0..1].
34043 (optimize_stmt): Comparing a boolean ranged object against a
34044 constant outside [0..1] results in a compile-time constant.
34045
34046 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34047 test.
34048
34049 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34050
34051 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34052 (Option Summary): Update to reflect new section and moved options.
34053 (C++ Dialect Options): Move -fstats to new section.
34054 (Debugging Options): Move all dump, statistics, and other GCC
34055 developer options to new section. Rewrite section introduction
34056 and re-order remaining options to put the more basic ones first.
34057 (Optimization Options): Move -fira-verbose and -flto-report* to
34058 new section.
34059 (Developer Options): New section incorporating moved options.
34060 * doc/cppopts.texi (-dM): Update cross-reference.
34061
34062 2016-01-18 Richard Henderson <rth@redhat.com>
34063
34064 PR target/69176
34065 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34066 operands to pseudo only if CSE is expected. Split long immediate
34067 operands only after reload, and for the stack pointer.
34068 (*add<GPI>3_pluslong): Remove.
34069 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34070 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34071 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34072 (*add<GPI>3 peepholes): New.
34073 (*add<GPI>3 splitters): New.
34074 * config/aarch64/constraints.md (Upl): New.
34075 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34076
34077 2016-01-18 Richard Biener <rguenther@suse.de>
34078
34079 PR tree-optimization/69297
34080 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34081 stmt at most once.
34082 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34083
34084 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34085
34086 PR middle-end/68542
34087 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34088 of mixind vector and scalar types.
34089 (fold_relational_const): Add handling of vector
34090 comparison with boolean result.
34091 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34092 comparison of vector operands with boolean result for EQ/NE only.
34093 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34094 (verify_gimple_cond): Likewise.
34095 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34096 valid type of VAL.
34097
34098 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34099
34100 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34101 !TARGET_OCTEON.
34102
34103 2016-01-18 Richard Biener <rguenther@suse.de>
34104
34105 PR middle-end/69308
34106 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34107
34108 2016-01-18 Tom de Vries <tom@codesourcery.com>
34109
34110 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34111
34112 2016-01-18 Tom de Vries <tom@codesourcery.com>
34113
34114 * omp-low.c (set_oacc_fn_attrib): Make extern.
34115 * omp-low.h (set_oacc_fn_attrib): Declare.
34116 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34117 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34118 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34119 Add and handle function parameter oacc_kernels_p.
34120 (find_reduc_addr, get_omp_data_i_param): New function.
34121 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34122 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34123 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34124 Calculate dominance info. Skip loops that are not in a kernels region
34125 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34126 (pass_parallelize_loops::execute): Call parallelize_loops with
34127 oacc_kernels_p argument.
34128 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34129 New member function.
34130 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34131 * passes.def: Add argument to pass_parallelize_loops instantation.
34132
34133 2016-01-18 Tom de Vries <tom@codesourcery.com>
34134
34135 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34136 pass_parallelize_loops to be run outside the loop pipeline.
34137
34138 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34139
34140 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34141 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34142
34143 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34144
34145 PR target/63679
34146 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34147 using get_ref_base_and_extent.
34148 (equal_mem_array_ref_p): New.
34149 (hashable_expr_equal_p): Add call to previous.
34150
34151 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34152
34153 PR target/63679
34154 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34155 (sra_initialize): Allocate disqualified_constants.
34156 (sra_deinitialize): Free disqualified_constants.
34157 (disqualify_candidate): Update disqualified_constants when appropriate.
34158 (create_access): Scan for constant-pool entries as we go along.
34159 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34160 (maybe_add_sra_candidate): Allow constant-pool entries.
34161 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34162 (initialize_constant_pool_replacements): New.
34163 (sra_modify_assign): Avoid mangling assignments created by previous,
34164 and don't generate writes into constant pool.
34165 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34166
34167 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34168
34169 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34170 andnot instruction.
34171 (scalar_chain::convert_op): Likewise.
34172 * config/i386/i386.md (*andndi3_doubleword): New.
34173
34174 2016-01-18 Richard Biener <rguenther@suse.de>
34175
34176 PR tree-optimization/69170
34177 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34178 building a vector from scalar results of a pattern stmt.
34179
34180 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34181
34182 * haifa-sched.c (autopref_multipass_init): Work around
34183 -Wmaybe-uninitialized warning.
34184
34185 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34186
34187 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34188 against the constant 0.
34189
34190 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34191
34192 PR tree-optimization/68799
34193 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34194 look up phi candidates in the statement-candidate map.
34195 (phi_add_costs): Likewise.
34196 (record_phi_increments): Likewise.
34197 (phi_incr_cost): Likewise.
34198 (ncd_with_phi): Likewise.
34199 (all_phi_incrs_profitable): Likewise.
34200
34201 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34202
34203 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34204 -Wmaybe-uninitialized warning.
34205
34206 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34207
34208 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34209 (Option Summary): Update to reflect new section and moved options.
34210 (C++ Dialect Options): Move -fvtable-verify and related options.
34211 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34212 and profiling-related options.
34213 (Optimization Options): Move profile generation options and
34214 -fstack-protector and related options.
34215 (Instrumentation Options): New section incorporating moved options.
34216 (Code Generation Options): Move -finstrument-functions and
34217 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34218
34219 2016-01-16 Tom de Vries <tom@codesourcery.com>
34220
34221 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34222
34223 2016-01-16 Tom de Vries <tom@codesourcery.com>
34224
34225 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34226
34227 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34228
34229 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34230 that checks whether the table is already empty. Rename the
34231 original implementation to...
34232 (hash_table::empty_slot): ...this new private function.
34233
34234 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34235
34236 PR diagnostic/68899
34237 * diagnostic-show-locus.c (layout::print_source_line): Move x
34238 offset of line until after call to
34239 get_line_width_without_trailing_whitespace.
34240
34241 2016-01-15 Jeff Law <law@redhat.com>
34242
34243 PR tree-optimization/69270
34244 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34245 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34246 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34247 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34248 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34249 ssa_name_has_boolean_range and constant_boolean_node.
34250
34251 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34252
34253 PR rtl-optimization/69030
34254 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34255 returning bool.
34256 (spill_pseudos): Delete debug insn for dead pseudo.
34257 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34258
34259 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34260
34261 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34262 New.
34263 (TYPES_UNOPUS): Likewise.
34264 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34265 builtin type, from UNOP to UNOPUS.
34266 (lbtruncuv4sf): Likewise.
34267 (lbtruncuv2df): Likewise.
34268 (lrounduv2sf): Likewise.
34269 (lrounduv4sf): Likewise.
34270 (lrounduv2df): Likewise.
34271 (lroundusf): Likewise.
34272 (lroundusf): Likewise.
34273 (lceiluv2sf): Likewise.
34274 (lceiluv4sf): Likewise.
34275 (lceiluv2df): Likewise.
34276 (lceilusf): Likewise.
34277 (lceiludf): Likewise.
34278 (lflooruv2sf): Likewise.
34279 (lflooruv4sf): Likewise.
34280 (lflooruv2df): Likewise.
34281 (lfloorusf): Likewise.
34282 (lfloorudf): Likewise.
34283 (lfrintnuv2sf): Likewise.
34284 (lfrintnuv4sf): Likewise.
34285 (lfrintnuv2df): Likewise.
34286 (lfrintnusf): Likewise.
34287 (lfrintnudf): Likewise.
34288 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34289 conversion.
34290 (vcvtq_u32_f32): Likewise.
34291 (vcvtq_u64_f64): Likewise.
34292 (vcvta_u32_f32): Likewise.
34293 (vcvtaq_u32_f32): Likewise.
34294 (vcvtaq_u64_f64): Likewise.
34295 (vcvtm_u32_f32): Likewise.
34296 (vcvtmq_u32_f32): Likewise.
34297 (vcvtmq_u64_f64): Likewise.
34298 (vcvtn_u32_f32): Likwise.
34299 (vcvtnq_u32_f32): Likewise.
34300 (vcvtnq_u64_f64): Likewise.
34301 (vcvtp_u32_f32): Likewise.
34302 (vcvtpq_u32_f32): Likewise.
34303 (vcvtpq_u64_f64): Likewise.
34304 (vcvtmd_u64_f64): Likewise.
34305 (vcvtms_u32_f32): Likewise.
34306 (vcvtad_u64_f64): Likewise.
34307 (vcvtas_u32_f32): Likewise.
34308 (vcvtnd_u64_f64): Likewise.
34309 (vcvtns_u32_f32): Likewise.
34310 (vcvtpd_u64_f64): Likewise.
34311 (vcvtps_u32_f32): Likewise.
34312
34313 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34314
34315 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34316 CSEL of zero_extended registers.
34317
34318 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34319
34320 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34321 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34322
34323 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34324
34325 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34326 false when argument string is not found in the attributes table
34327 at all.
34328
34329 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34330
34331 PR target/68609
34332 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34333 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34334 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34335 precision estimate.
34336
34337 2016-01-15 Richard Biener <rguenther@suse.de>
34338
34339 PR tree-optimization/66856
34340 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34341 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34342 (vect_create_new_slp_node): Increment stmt reference count.
34343 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34344 an SLP tree before swapping operands.
34345 (vect_build_slp_tree): Likewise.
34346 (destroy_bb_vec_info): Free stmt info after SLP instances.
34347 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34348 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34349 (STMT_VINFO_NUM_SLP_USES): New macro.
34350
34351 2016-01-15 Richard Biener <rguenther@suse.de>
34352
34353 PR debug/69137
34354 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34355 (add_linkage_name): ... here.
34356 (gen_typedef_die): Use add_linkage_name_raw instead of
34357 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34358 if necessary.
34359
34360 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34361
34362 * gimplify.c (oacc_default_clause): Decode reference and pointer
34363 types for both kernels and parallel regions.
34364
34365 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34366
34367 PR middle-end/69246
34368 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34369
34370 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34371
34372 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34373 (convert_scalars_to_vector): Likewise.
34374
34375 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34376
34377 * doc/extend.texi (Type Traits): Fix grammar.
34378
34379 2016-01-15 Martin Jambor <mjambor@suse.cz>
34380
34381 * tree-inline.c (remap_decl): Use existing dclarations if
34382 remapping a type and prevent_decl_creation_for_types.
34383 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34384 decls first. Do real remapping with
34385 prevent_decl_creation_for_types set.
34386 * tree-inline.h (copy_body_data): New field
34387 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34388 padding.
34389
34390 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34391
34392 * config/s390/s390.opt (mmvcle): More verbose help text.
34393
34394 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34395
34396 * config/s390/s390.opt: Add period to -mzvector option text.
34397
34398 2016-01-15 Richard Biener <rguenther@suse.de>
34399
34400 PR tree-optimization/68961
34401 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34402 of invariants in stores again.
34403
34404 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34405
34406 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34407
34408 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34409
34410 * config/i386/i386.c (ix86_expand_branch): Don't split
34411 DI mode xor instruction to SI mode.
34412
34413 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34414
34415 PR ipa/68148
34416 * ipa-icf.c (sem_function::merge): Virtual functions may become
34417 reachable even if they address is not taken and there are no
34418 idrect calls.
34419
34420 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34421
34422 * lto-streamer-out.c (subtract_estimated_size): New function.
34423 (get_symbol_initial_value): Use it.
34424
34425 2016-01-15 Christian Bruel <christian.bruel@st.com>
34426
34427 PR target/65837
34428 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34429 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34430 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34431 use add_builtin_function_ext_scope instead of add_builtin_function.
34432 (neon_set_p, neon_crypto_set_p): Remove.
34433 (arm_init_builtins): Always call arm_init_neon_builtins and
34434 arm_init_crypto_builtins.
34435 (arm_expand_builtin): Check that builtins are allowed for the arch.
34436 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34437 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34438 arm_init_neon_builtins call.
34439
34440 2016-01-15 Richard Biener <rguenther@suse.de>
34441
34442 PR tree-optimization/69117
34443 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34444 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34445 of the leader conservatively.
34446 (free_scc_vn): Restore original SSA name infos.
34447
34448 2016-01-14 Jeff Law <law@redhat.com>
34449
34450 PR tree-optimization/69270
34451 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34452 single bit of precision, verify it's also unsigned.
34453 (record_edge_info): Use constant_boolean_node rather than fold_convert
34454 to convert boolean_true/boolean_false to the right type.
34455
34456 2016-01-14 Richard Henderson <rth@redhat.com>
34457
34458 PR rtl-opt/69014
34459 * loop-doloop.c (record_reg_sets): New.
34460 (doloop_optimize): Reject the transform if the sequence
34461 clobbers registers live at the end of the loop block.
34462 (doloop_optimize_loops): Enable df_live if needed.
34463
34464 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34465
34466 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34467 * config/rs6000/rs6000.c: Likewise.
34468 * config/rs6000/rs6000.h: Likewise.
34469 * config/rs6000/rs6000.md: Likewise.
34470 * doc/extend.texi: Likewsie.
34471
34472 2016-01-14 Jeff Law <law@redhat.com>
34473
34474 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34475 typo.
34476
34477 2016-01-14 Richard Henderson <rth@redhat.com>
34478
34479 PR c/69272
34480 PR tree-opt/68964
34481 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34482 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34483 instead of builtin_decl_declared_p to test for declaration.
34484
34485 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34486
34487 * doc/loop.texi (Loop Analysis and Representation): Document
34488 loop_depth function.
34489
34490 2016-01-14 Tom de Vries <tom@codesourcery.com>
34491
34492 PR tree-optimization/68773
34493 * omp-low.c (expand_omp_target): Don't set force_output.
34494 * varpool.c (varpool_node::get_create): Same.
34495 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34496 offload_funcs with force_output.
34497
34498 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34499
34500 PR debug/69244
34501 * lra-eliminations.c (move_plus_up): Don't change anything if either
34502 the outer or inner subreg mode is not MODE_INT.
34503 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34504 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34505
34506 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34507
34508 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34509 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34510 reduc_uplus_@var{m}): Remove.
34511 * expr.c (expand_expr_real_2): Remove expansion path for
34512 reduc_[us](min|max|plus) optabs.
34513 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34514 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34515 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34516 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34517 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34518 reduc_[us](min|max|plus) optabs.
34519
34520 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34521
34522 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34523 (reduc_plus_scal_v2sf): New.
34524 (reduc_smax_v2sf): Rename to...
34525 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34526 (reduc_smin_v2sf): Rename to...
34527 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34528
34529 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34530
34531 * alias.c (compare_base_symbol_refs): New function.
34532 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34533 it.
34534
34535 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34536
34537 PR middle-end/68146
34538 PR tree-optimization/69155
34539 * tree-complex.c: Include cfganal.h.
34540 (phis_to_revisit): New variable.
34541 (extract_component): Add phiarg_p argument. Assert that returned
34542 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34543 (update_phi_components): Partly rewrite to use loop over real/imag
34544 components instead of code duplication. If extract_component returns
34545 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34546 create_tmp_reg into the PHI node instead, and mention the phi triplet
34547 in phis_to_revisit.
34548 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34549 in phis_to_revisit at the end.
34550
34551 2016-01-14 Richard Biener <rguenther@suse.de>
34552
34553 PR tree-optimization/68060
34554 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34555 outer loop reduction is only used in the inner loop before
34556 detecting a double reduction.
34557
34558 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34559
34560 PR target/68269
34561 * combine.c (expand_field_assignment): Punt if compute_mode is
34562 unsupported scalar mode.
34563
34564 2016-01-14 Richard Biener <rguenther@suse.de>
34565
34566 PR tree-optimization/66856
34567 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34568 SLP node only if it built successfully.
34569 (vect_analyze_slp_instance): Adjust.
34570
34571 2016-01-14 Jeff Law <law@redhat.com>
34572
34573 PR tree-optimization/69270
34574 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34575 (record_edge_info): Use it. Convert boolean_{true,false}_node
34576 to the type of op0.
34577
34578 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34579
34580 PR ipa/66487
34581 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34582 use block_ultimate_origin
34583 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34584
34585 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34586
34587 * doc/invoke.texi (Submodel Options): Rename section to
34588 "Machine-Dependent Options" to better reflect its content.
34589 Rewrite introductory text to remove archaic CPU names.
34590 Update references.
34591
34592 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34593
34594 * doc/invoke.texi (Code Gen Options): Move section up in file,
34595 before target-specific options. Update menu and option summary
34596 to reflect the new section ordering.
34597
34598 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34599
34600 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34601 (C++ Dialect Options): Add cross-reference to -std option.
34602 * doc/standards.texi (C++ Language): Document C++14 support.
34603
34604 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34605
34606 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34607 for pack/unpack functions for __ibm128.
34608 (PACK_IF): Likewise.
34609 (UNPACK_IF): Likewise.
34610
34611 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34612 support for __ibm128 pack/unpack functions.
34613 (rs6000_invalid_builtin): Likewise.
34614 (rs6000_init_builtins): Likewise.
34615 (rs6000_opt_masks): Likewise.
34616
34617 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34618 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34619 functions
34620 (RS6000_BTM_COMMON): Likewise.
34621
34622 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34623 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34624 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34625 128-bit floating point. Add support for the double values to be
34626 in Altivec registers for TF/IF packing and unpacking, but restrict
34627 TD packing sub-fields to be FPR registers. Don't allow overlapped
34628 register support for packing. Allow pack inputs to be memory
34629 locations. Don't build generator functions for unpack<mode>_dm
34630 and unpack<mode>_nodm.
34631 (unpack<mode>_dm): Likewise.
34632 (unpack<mode>_nodm): Likewise.
34633 (pack<mode>): Likewise.
34634
34635 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34636 built-in functions to pack/unpack explicit __ibm128 values.
34637 (__builtin_unpack_ibm128): Likewise.
34638
34639 * doc/extend.texi (PowerPC Built-in Functions): Document
34640 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34641
34642 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34643
34644 PR c/66208
34645 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34646 Add new arg loc and pass it down as context.
34647 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34648 to the location to use for the warning.
34649 (check_function_arguments): New arg loc. All callers changed. Pass
34650 it to check_function_nonnull.
34651 * c-common.h (check_function_arguments): Adjust declaration.
34652
34653 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34654
34655 PR tree-optimization/69156
34656 * gimple.c (validate_type): Removed.
34657 (gimple_builtin_call_types_compatible_p): Use
34658 useless_type_conversion_p instead of validate_type.
34659 * value-prof.c (gimple_stringop_fixed_value): Fold
34660 icall_size to correct type.
34661
34662 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34663
34664 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34665 effects.
34666
34667 2016-01-13 Richard Henderson <rth@redhat.com>
34668
34669 PR tree-opt/68964
34670 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34671 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34672 (ix86_builtin_tm_store): Remove.
34673 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34674 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34675 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34676 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34677 * doc/tm.texi: Rebuild.
34678
34679 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34680 (BUILT_IN_TM_MEMCPY_RTWN): New.
34681 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34682 fallback from vector to integer helpers.
34683 (build_tm_load): Handle vector types directly, instead of
34684 via target hook.
34685 (build_tm_store): Likewise.
34686 (expand_assign_tm): Prepare for register types not handled by
34687 the above. Copy them to memory and use memcpy.
34688 * tree.c (tm_define_builtin): New.
34689 (find_tm_vector_type): New.
34690 (build_tm_vector_builtins): New.
34691 (build_common_builtin_nodes): Call it.
34692
34693 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34694
34695 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34696 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34697
34698 2016-01-13 Tom de Vries <tom@codesourcery.com>
34699
34700 PR tree-optimization/69169
34701 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34702 handled_struct_type param.
34703 (create_variable_info_for, intra_create_variable_infos): Call
34704 create_variable_info_for_1 with extra arg.
34705
34706 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34707
34708 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34709 and "armv8.1-a+crc" entries.
34710
34711 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34712
34713 PR target/69228
34714 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34715 Change first operand predicate from register_or_constm1_operand
34716 to register_operand.
34717 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34718 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34719 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34720 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34721 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34722 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34723 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34724 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34725 comparison with constm1_rtx from vec_prefetch_gen part.
34726
34727 2016-01-13 Richard Biener <rguenther@suse.de>
34728
34729 PR tree-optimization/69013
34730 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34731 Exchange assert for a test.
34732
34733 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34734
34735 PR target/69247
34736 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34737
34738 2016-01-13 Richard Biener <rguenther@suse.de>
34739
34740 PR tree-optimization/69242
34741 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34742 assert with a check.
34743
34744 2016-01-13 Richard Biener <rguenther@suse.de>
34745
34746 PR tree-optimization/69186
34747 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34748 Properly guard vect_update_misalignment_for_peel call.
34749
34750 2016-01-12 Jeff Law <law@redhat.com>
34751
34752 PR tree-optimization/pr67755
34753 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34754 "need_profile_correction".
34755 (thread_block_1): Initialize new field to false by default. If we
34756 have multiple thread paths through a common joiner to different
34757 final targets, then set new field to true.
34758 (compute_path_counts): Only do count adjustment when it's really
34759 needed.
34760
34761 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34762
34763 * doc/invoke.texi (Spec Files): Move section down in file, past
34764 all command-line option descriptions.
34765
34766 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34767
34768 PR middle-end/54809
34769 * doc/gty.texi: Remove documentation of mark_hook.
34770 * gengtype.c (struct write_types_data): Remove code to support
34771 mark_hook attribute.
34772 (walk_type): Likewise.
34773 (write_func_for_structure): Likewise.
34774
34775 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34776
34777 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34778 Directory Options, and -specs= to Overall Options.
34779 (Overall Options): Adjust similarly. Reorder to group related
34780 options together. Make -specs= cross-reference the spec file details.
34781 (Directory Options): Adjust similarly.
34782
34783 2016-01-12 Jeff Law <law@redhat.com>
34784
34785 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34786
34787 2016-01-12 Olivier Hainque <hainque@adacore.com>
34788
34789 * gcc.c (spec_undefvar_allowed): New global.
34790 (process_command): Set to true when running for --version or --help,
34791 alone or together.
34792 (getenv_spec_function): When the variable is not defined, use the
34793 variable name as the variable value if we're allowed not to issue
34794 a fatal error.
34795
34796 2016-01-12 Bin Cheng <bin.cheng@arm.com>
34797
34798 PR tree-optimization/68911
34799 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
34800 information computed for expression "init + nit * step".
34801
34802 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34803
34804 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
34805 about name of GCC executable. Remove deleted node from menu.
34806 (Directory Options) <-B>: Remove cross-reference to deleted node.
34807 (Target Options): Delete section.
34808
34809 2016-01-12 Christian Bruel <christian.bruel@st.com>
34810
34811 PR target/69180
34812 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
34813 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
34814
34815 2016-01-12 Jakub Jelinek <jakub@redhat.com>
34816
34817 PR target/69198
34818 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
34819 aligned_mem is properly set for AVX512-VL floating point masked
34820 stores.
34821
34822 PR target/69175
34823 * ifcvt.c (cond_exec_process_if_block): When removing the last
34824 insn from then_bb, remove also any possible barriers that follow it.
34825
34826 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
34827
34828 PR target/68456
34829 PR target/69226
34830 * config/i386/iamcu.h (SIZE_TYPE): New macro.
34831 (PTRDIFF_TYPE): Likewise.
34832 (WCHAR_TYPE): Likewise.
34833 (WCHAR_TYPE_SIZE): Likewise.
34834 (STDINT_LONG32): Likewise.
34835
34836 2016-01-12 Richard Biener <rguenther@suse.de>
34837
34838 PR tree-optimization/69053
34839 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
34840 convert initial value for cond reductions.
34841
34842 2016-01-12 Richard Biener <rguenther@suse.de>
34843
34844 PR tree-optimization/69007
34845 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
34846 widen_sum after dot_prod and sad.
34847
34848 2016-01-12 Richard Biener <rguenther@suse.de>
34849
34850 PR tree-optimization/69168
34851 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
34852 pattern stmt SLP type.
34853 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
34854 end up unused so cope with that case.
34855
34856 2016-01-12 Richard Biener <rguenther@suse.de>
34857
34858 PR tree-optimization/69157
34859 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
34860 stmts def type only during analyze phase.
34861 (vectorizable_call): Likewise.
34862 (vectorizable_simd_clone_call): Likewise.
34863 (vectorizable_conversion): Likewise.
34864 (vectorizable_assignment): Likewise.
34865 (vectorizable_shift): Likewise.
34866 (vectorizable_operation): Likewise.
34867 (vectorizable_store): Likewise.
34868 (vectorizable_load): Likewise.
34869
34870 2016-01-12 Richard Biener <rguenther@suse.de>
34871
34872 PR tree-optimization/69174
34873 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
34874 space.
34875 (vectorizable_load): Properly compute the number of loads needed
34876 for permuted strided SLP loads and do not spuriously assign
34877 to SLP_TREE_VEC_STMTS.
34878
34879 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
34880
34881 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
34882 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
34883 (MD_EXEC_PREFIX): Remove.
34884 (MD_STARTFILE_PREFIX) Removee.
34885 (FILE_NAME_ABSOLUTE_P): Remove.
34886 (CPP_SPEC): Do not read macros from sys/version.h.
34887 (LINK_COMMAND_SPEC): Remove.
34888 (LOCAL_INCLUDE_DIR): Remove.
34889 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
34890 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
34891 (POST_LINK_SPEC): Define to invoke stubify after linker
34892 (LIBSTDCXX): Remove define
34893 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
34894 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
34895 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
34896 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
34897 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
34898 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
34899 (i386_djgpp_asm_named_section): Add propotype of new procedure
34900
34901 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
34902 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
34903 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
34904 in config/i386/djgpp.h).
34905 (STANDARD_STARTFILE_PREFIX_2): Define identical to
34906 STANDARD_STARTFILE_PREFIX_1.
34907 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
34908 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
34909 installation errors.
34910 (MAX_OFILE_ALIGNMENT): Define to 128.
34911 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
34912
34913 * config/i386/djgpp.c: New file. Add implementation of
34914 i386_djgpp_asm_named_section.
34915
34916 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
34917
34918 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
34919 Add rule for building djgpp.o.
34920
34921 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34922
34923 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
34924 (rtx_is_swappable_p): Reductions are swappable.
34925 (insn_is_swappable_p): V2DF reductions are swappable.
34926
34927 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
34928
34929 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
34930 reloads for other unsupported memory operands.
34931
34932 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
34933 Jim Wilson <jim.wilson@linaro.org>
34934
34935 PR target/69194
34936 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
34937 copy_to_mode_reg instead of force_reg.
34938
34939 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34940
34941 PR target/69225
34942 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
34943 TARGET_80387 is true.
34944
34945 2016-01-11 Jakub Jelinek <jakub@redhat.com>
34946
34947 PR target/69071
34948 * lra-eliminations.c (move_plus_up): Only move plus up
34949 if subreg of the constant can be simplified into constant
34950 and use the simplified subreg of the constant instead of
34951 the original constant.
34952
34953 * fold-const.c (fold_convertible_p): Don't return true
34954 for conversion of VECTOR_TYPE to same sized integral type.
34955 (fold_convert_loc): Fix up formatting. Fold conversion of
34956 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34957 instead of NOP_EXPR.
34958
34959 PR tree-optimization/69214
34960 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34961 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34962 Formatting fix.
34963
34964 PR tree-optimization/69207
34965 * tree-vect-slp.c (vect_get_constant_vectors): For
34966 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34967 fold_convertible_p to vector_type's element type, and always
34968 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34969
34970 2016-01-11 Richard Biener <rguenther@suse.de>
34971
34972 PR tree-optimization/69173
34973 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34974 fixup the cycle if all stmts are in a pattern.
34975
34976 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34977
34978 PR middle-end/68999
34979 * alias.c (base_alias_check): Move check for addresses with
34980 alignment ANDs before the call for compare_base_decls.
34981 (memrefs_conflict_p): Return -1 for different decls
34982 that went through alignment adjustments.
34983
34984 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34985
34986 PR rtl-optimization/68796
34987 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34988 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34989 and QImode comparisons against zero with CC_NZmode.
34990 * config/aarch64/iterators.md (short_mask): New mode_attr.
34991
34992 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34993
34994 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34995 (<avx512>_store<mode>_mask): Likewise.
34996
34997 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34998 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34999
35000 PR rtl-optimization/68841
35001 * ifcvt.c (struct noce_if_info): Add orig_x field.
35002 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35003 Don't record conflicts on to_rename if it's present.
35004 Allow memory destinations in sets.
35005 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35006 blocks, passing orig_x to the checks.
35007 (noce_process_if_block): Set if_info->orig_x appropriately.
35008
35009 2016-01-11 Tom de Vries <tom@codesourcery.com>
35010
35011 PR tree-optimization/69069
35012 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35013
35014 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35015
35016 PR rtl-optimization/68920
35017 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35018 of conditional moves for RTL if-conversion to 1 for
35019 TARGET_ONE_IF_CONV_INSN.
35020 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35021 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35022 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35023 parameter to restirct number of conditional moves for
35024 RTL if-conversion.
35025 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35026 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35027 conditionl moves.
35028
35029 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35030
35031 PR bootstrap/69123
35032 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35033 onepart vars. Fix typo in comment. Fix reversed condition in
35034 unshare test.
35035 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35036
35037 PR bootstrap/69123
35038 * var-tracking.c (dump_onepart_variable_differences): New.
35039 (dataflow_set_different): If a detailed dump is requested,
35040 delay early returns and dump differences between onepart
35041 variables present before and after, and added variables.
35042
35043 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35044
35045 PR target/69010
35046 * expr.c (expand_expr_real_1): For boolean vector constants
35047 with a scalar mode use const_scalar_mask_from_tree.
35048 (const_scalar_mask_from_tree): New.
35049 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35050 assigned to a mask type to handle constants.
35051
35052 2016-01-11 Martin Jambor <mjambor@suse.cz>
35053
35054 PR ipa/69044
35055 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35056 useless parameters if we cannot change function signature.
35057
35058 2016-01-11 Martin Jambor <mjambor@suse.cz>
35059
35060 PR ipa/66616
35061 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35062 flag.
35063
35064 2016-01-11 Tom de Vries <tom@codesourcery.com>
35065
35066 PR tree-optimization/69109
35067 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35068 latch with phi.
35069
35070 2016-01-11 Tom de Vries <tom@codesourcery.com>
35071
35072 PR tree-optimization/69108
35073 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35074 res is not used in a phi.
35075
35076 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35077
35078 PR 67425
35079 * common.opt (frandom-seed): Fix parameter name.
35080 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35081
35082 2016-01-11 Tom de Vries <tom@codesourcery.com>
35083
35084 PR tree-optimization/69058
35085 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35086 not supported.
35087
35088 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35089
35090 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35091 (mcode-density): Likewise.
35092
35093 2016-01-10 Tom de Vries <tom@codesourcery.com>
35094
35095 PR tree-optimization/69062
35096 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35097 (parallelize_loops): Don't paralelize loop that has phi with address
35098 arg.
35099
35100 2016-01-10 Tom de Vries <tom@codesourcery.com>
35101
35102 PR tree-optimization/69039
35103 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35104 phi for reduction.
35105
35106 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35107
35108 PR middle-end/68743
35109 * match.pd: Require target has function_c99_misc before doing
35110 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35111
35112 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35113
35114 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35115 use GMPINC.
35116 * configure: Regenerate.
35117
35118 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35119
35120 PR middle-end/50865
35121 PR tree-optimization/69097
35122 * fold-const.h (expr_not_equal_to): New prototype.
35123 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35124 (expr_not_equal_to): New function.
35125 * match.pd (X % -Y is the same as X % Y): Don't optimize
35126 unless X is known not to be equal to minimum or Y is known
35127 not to be equal to -1.
35128 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35129 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35130 (simplify_stmt_using_ranges): Adjust caller.
35131 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35132 substitute_and_fold.
35133
35134 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35135
35136 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35137 w/o DECL_NAME.
35138
35139 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35140
35141 PR tree-optimization/69167
35142 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35143 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35144 ops[0] comparison.
35145 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35146
35147 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35148 Richard Biener <rguenther@suse.de>
35149
35150 PR tree-optimization/68707
35151 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35152 instances that can be handled via vect_load_lanes.
35153
35154 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35155
35156 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35157 if we can't determine address equivalence.
35158 * alias.c (compare_base_decl): Update for changed return value of
35159 symtab_node::equal_address_to.
35160
35161 2016-01-08 Jason Merrill <jason@redhat.com>
35162
35163 PR c++/68983
35164 PR c++/67557
35165 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35166 * expr.c (store_field): Not here.
35167 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35168 call with TREE_ADDRESSABLE type.
35169 * tree-cfg.c (verify_gimple_call): Adjust.
35170
35171 2016-01-08 Olivier Hainque <hainque@adacore.com>
35172
35173 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35174 libc_internal.
35175
35176 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35177
35178 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35179 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35180 (reduc_smin_v2sf): Rename to...
35181 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35182 (reduc_splus_v2sf): Rename to...
35183 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35184
35185 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35186
35187 PR tree-optimization/69162
35188 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35189 valist argument in another argument.
35190 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35191 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35192 to determine the va_list type, build a MEM_REF instead of
35193 build_fold_indirect_ref.
35194
35195 PR tree-optimization/69172
35196 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35197 gimple_build.
35198
35199 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35200
35201 PR tree-optimization/67781
35202 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35203 and cmpnop in two steps: first the ones not accessed in original
35204 gimple expression in a endian independent way and then the ones not
35205 accessed in the final result in an endian-specific way.
35206
35207 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35208
35209 PR tree-optimization/69083
35210 * tree-vect-slp.c (vect_get_constant_vectors): For
35211 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35212 element type. If op is fold_convertible_p to vector_type's element
35213 type, use NOP_EXPR instead of VCE.
35214
35215 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35216
35217 PR rtl-optimization/67778
35218 PR rtl-optimization/68634
35219 PR rtl-optimization/68909
35220 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35221 block from the stack until done with it. Remove a superfluous
35222 bitmap set. Remove a superfluous bitmap test.
35223
35224 2016-01-07 Martin Sebor <msebor@redhat.com>
35225
35226 PR c/68966
35227 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35228 constraint on the type of arguments.
35229
35230 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35231
35232 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35233 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35234 unaligned_access on the gcc_options set.
35235 * config/arm/arm.c (arm_option_override_internal): Use
35236 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35237
35238 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35239
35240 PR target/69140
35241 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35242 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35243
35244 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35245
35246 Revert
35247 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35248
35249 PR target/69140
35250 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35251 depending on frame_pointer_needed before remaining integer and SSE
35252 registers are saved.
35253
35254 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35255
35256 PR 1078
35257 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35258
35259 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35260
35261 PR target/69171
35262 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35263 Use the "xBm" constraint.
35264 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35265 Likewise.
35266 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35267 (sse_cvtsi2ssq<round_name>): Likewise.
35268 (sse_cvtss2si<round_name>): Likewise.
35269 (sse_cvtss2siq<round_name>): Likewise.
35270 (sse2_cvtsi2sdq<round_name>): Likewise.
35271 (sse2_cvtsd2si<round_name>): Likewise.
35272 (sse2_cvtsd2siq<round_name>): Likewise.
35273 * config/i386/subst.md (round_nimm_scalar_predicate): New
35274 predicate.
35275
35276 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35277
35278 PR middle-end/67639
35279 * varasm.c (make_decl_rtl): Mark invalid register vars as
35280 DECL_EXTERNAL.
35281
35282 PR rtl-optimization/66206
35283 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35284 All callers changed.
35285
35286 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35287
35288 PR tree-optimization/69141
35289 * tree-ssa-pre.c: Include langhooks.h.
35290 (eliminate_dom_walker::before_dom_children): Use
35291 lang_hooks.decl_printable_name instead of
35292 cgraph_node::get ()->name ().
35293
35294 PR middle-end/68960
35295 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35296 it and DECL_ALIGN too.
35297
35298 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35299
35300 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35301
35302 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35303
35304 PR target/69140
35305 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35306 depending on frame_pointer_needed before remaining integer and SSE
35307 registers are saved.
35308
35309 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35310
35311 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35312 mode iterator with VSX_M2.
35313 (*p9_vecstore_<mode>): Likewise.
35314 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35315 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35316 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35317 (define_split for VSX_LE128 stores): Likewise.
35318 (define_peephole2 for TImode LE swaps): Likewise.
35319 (define_split for VSX_LE128 post-reload stores): Likewise.
35320
35321 2016-01-06 Marek Polacek <polacek@redhat.com>
35322
35323 PR sanitizer/69099
35324 * convert.c (convert_to_integer_1): Adjust call to
35325 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35326 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35327 EXPR instead of ARG.
35328 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35329
35330 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35331
35332 PR 1078
35333 * doc/extend.texi (RL78 Variable Attributes): New section.
35334
35335 2016-01-05 Marek Polacek <polacek@redhat.com>
35336
35337 PR c/69104
35338 * builtins.c (get_memmodel): Use expansion point location rather than
35339 the input location. Call warning_at rather than warning.
35340 (expand_builtin_atomic_compare_exchange): Likewise.
35341 (expand_builtin_atomic_load): Likewise.
35342 (expand_builtin_atomic_store): Likewise.
35343 (expand_builtin_atomic_clear): Likewise.
35344
35345 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35346
35347 PR target/68991
35348 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35349 Replace nonimmediate_operand with vector_operand.
35350 * config/i386/predicates.md (vector_operand): New predicate.
35351 (general_vector_operand): Replace nonimmediate_operand with
35352 vector_operand.
35353 * config/i386/sse.md: Replace nonimmediate_operand with
35354 vector_operand and m constraint with Bm constraint on SSE
35355 patterns with 16-byte memory operand.
35356 * config/i386/subst.md (round_nimm_predicate): Replace
35357 nonimmediate_operand with vector_operand.
35358 (round_saeonly_nimm_predicate): Likewise.
35359 (round_saeonly_nimm_scalar_predicate): New.
35360
35361 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35362
35363 PR target/68991
35364 * config/i386/constraints.md (Bm): New constraint.
35365 * config/i386/predicates.md (vector_memory_operand): New
35366 predicate.
35367 * config/i386/sse.md: Replace xm with xBm in plusminus and
35368 any_logic patterns.
35369
35370 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35371
35372 PR 1078
35373 * doc/extend.texi (V850 Function Attributes): New section.
35374 (V850 Variable Attributes): New section.
35375
35376 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35377
35378 PR 1078
35379 * doc/extend.texi (MicroBlaze Function Attributes): Document
35380 interrupt_handler and fast_interrupt attributes.
35381
35382 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35383
35384 PR other/60465
35385 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35386 for local symbolic operands.
35387 * config/ia64/predicates.md (local_symbolic_operand64): New
35388 predicate.
35389
35390 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35391
35392 PR rtl-optimization/68651
35393 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35394 x << 1.
35395
35396 2016-01-05 Nathan Sidwell <nathan@acm.org>
35397
35398 * alias.c (compare_base_decls): Use symtab_node::get.
35399
35400 2016-01-05 Nick Clifton <nickc@redhat.com>
35401
35402 PR target/68770
35403 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35404 secondary_reload_info structure.
35405
35406 PR target/66655
35407 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35408 decls if weak support is available.
35409
35410 2016-01-04 Martin Sebor <msebor@redhat.com>
35411
35412 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35413
35414 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35415
35416 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35417 OPTION_MASK_P9_DFORM.
35418
35419 * config/rs6000/constraints.md (wo constraint): New constraint for
35420 ISA 3.0 (power9).
35421
35422 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35423 for wo constraint.
35424 (rs6000_init_hard_regno_mode_ok): Likewise.
35425
35426 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35427 wo constraint.
35428
35429 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35430 expanders not to have constraints. Add support for ISA 3.0 xxperm
35431 instruction. Add support for fusing xxlor with xxperm.
35432 (altivec_vperm_<mode>_internal): Likewise.
35433 (altivec_vperm_v8hiv16qi): Likewise.
35434 (altivec_vperm_<mode>v16q): Likewise.
35435 (altivec_vperm_<mode>_uns): Likewise.
35436 (vperm_v8hiv4si): Likewise.
35437 (vperm_v16qiv8hi): Likewise.
35438
35439 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35440
35441 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35442
35443 Update copyright years.
35444
35445 * gcc.c (process_command): Update copyright notice dates.
35446 * gcov-dump.c (print_version): Ditto.
35447 * gcov.c (print_version): Ditto.
35448 * gcov-tool.c (print_version): Ditto.
35449 * gengtype.c (create_file): Ditto.
35450 * doc/cpp.texi: Bump @copying's copyright year.
35451 * doc/cppinternals.texi: Ditto.
35452 * doc/gcc.texi: Ditto.
35453 * doc/gccint.texi: Ditto.
35454 * doc/gcov.texi: Ditto.
35455 * doc/install.texi: Ditto.
35456 * doc/invoke.texi: Ditto.
35457
35458 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35459
35460 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35461 modes larger than TImode as TImode if NEON is not enabled.
35462
35463 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35464
35465 PR target/69100
35466 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35467 mode for %f0-%f31 only if TARGET_FPU.
35468
35469 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35470
35471 PR target/69072
35472 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35473 to compute the PACKED_P predicate.
35474 (function_arg_record_value): Minor tweaks.
35475
35476 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35477
35478 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35479 option for arm*-*-* targets.
35480
35481 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35482
35483 * doc/extend.texi (Common Function Attributes): Move docs for
35484 MSP430-specific attributes to....
35485 (MSP430 Function Attributes): ...here. Delete the redundant
35486 entries and copy-edit the remaining text.
35487 (MSP430 Variable Attributes): Use uniform format for index
35488 entries and add a cross-reference to the corresponding function
35489 attribute docs.
35490
35491 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35492
35493 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35494 -finite-math typo.
35495 (x86 Options): Likewise.
35496
35497 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35498
35499 PR 1078
35500
35501 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35502 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35503 to corresponding attribute.
35504
35505 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35506
35507 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35508 to correct alphabetization of table. Copy-edit and correct
35509 markup.
35510 <stack_protect>: Likewise.
35511 <target_clones>: Likewise.
35512 <simd>: Likewise.
35513 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35514 Correct punctuation.
35515 (Code Gen Options) <-fno-plt>: Copy-edit.
35516
35517 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35518
35519 PR target/68917
35520 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35521 SI values. Explicitly convert SI to DI and vice-versa.
35522
35523 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35524
35525 PR tree-optimization/69070
35526 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35527 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35528
35529 PR sanitizer/69055
35530 * ubsan.c (ubsan_instrument_float_cast): Call
35531 initialize_sanitizer_builtins.
35532
35533 PR target/69015
35534 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35535 \f
35536 Copyright (C) 2016 Free Software Foundation, Inc.
35537
35538 Copying and distribution of this file, with or without modification,
35539 are permitted in any medium without royalty provided the copyright
35540 notice and this notice are preserved.