The negdi2 patterns for ARM and Thumb-2 are duplicated because Thumb-2 doesn't suppor...
[gcc.git] / gcc / ChangeLog
1 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
2
3 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
4 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
5 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
6
7 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
8
9 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
10
11 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
12
13 * config/arc/arc.md (call_prof): Remove.
14 (call_value_prof): Likewise.
15 (sibcall_prof): Likewise.
16 (sibcall_value_prof): Likewise.
17
18 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
19
20 * config/arc/arc.h (LINK_SPEC): Tidy up.
21 (ENDFILE_SPEC): Likewise.
22 (LIB_SPEC): Likewise.
23 (STARTFILE_SPEC): Include gcrt0 when profiling.
24 (FUNCTION_PROFILER): Use __mcount.
25 * config/arc/arc.opt (mucb-mcount): Remove.
26 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
27 * arc/arc-protos.h (arc_profile_call): Remove.
28 * config/arc/arc.c (write_profile_sections): Likewise.
29 (arc_profile_call): Likewise.
30 (unspec_prof_hash): Likewise.
31 (unspec_prof_htab_eq): Likewise.
32 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
33 (arc_reorg): Remove call to write_profile_sections.
34 * config/arc/arc.md (call): Remove call to arc_profile_call.
35 (call_value): Likewise.
36 (sibcall): Likewise.
37 (sibcall_value): Likewise.
38 (define_constants): Remove UNSPEC_PROF.
39
40 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
41
42 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
43 generate new mul64 insn for core multiplication work.
44 (umulsidi_600): Likewise, but use mulu64 insn.
45 (mul64): New pattern, content taken from old mulsidi_600 insn
46 pattern.
47 (mulu64): Likewise, but using umulsidi_600.
48 (mulsidi3): Remove move to destination, this is now handled by
49 mulsidi_600 insn_and_split.
50 (umulsidi3): Likewise, but using umulsidi_600.
51
52 2016-12-16 Richard Biener <rguenther@suse.de>
53
54 PR c++/71694
55 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
56 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
57 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
58 * langhooks.h (struct lang_hooks_for_types): Add
59 unit_size_without_reusable_padding.
60 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
61 * stor-layout.c (finish_bitfield_representative): Use
62 unit_size_without_reusable_padding langhook to decide on the
63 last representatives size.
64
65 2016-12-16 Richard Biener <rguenther@suse.de>
66
67 PR middle-end/71632
68 * expr.c (expand_cond_expr_using_cmove): Bail out early if
69 we end up recursing via TER.
70
71 2016-12-15 Martin Sebor <msebor@redhat.com>
72
73 PR bootstrap/78817
74 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
75 a pointer is non-null.
76
77 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
78
79 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
80 * config/i386/avx512dqintrin.h: Ditto.
81 * config/i386/avx512fintrin.h: Ditto.
82 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
83 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
84 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
85 * config/i386/sse.md (kmov<mskmodesuffix>): New.
86
87 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
88
89 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
90 for TARGET_BMI.
91 (ffssi2_no_cmove): Ditto.
92 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
93 (*tzcnt<mode>_1_falsedep): New insn pattern.
94
95 (LT_ZCNT): New mode iterator.
96 (lt_zcnt): New mode attribute.
97 (lt_zcnt_type): New mode attribute.
98 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
99 lzcnt_<mode> using LT_ZCNT mode iterator.
100 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
101 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
102 using LT_ZCNT mode iterator.
103 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
104 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
105 using LT_ZCNT mode iterator.
106 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
107 and *lzcnt_<mode> using LT_ZCNT mode iterator.
108 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
109 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
110 Update for rename.
111
112 2016-12-15 Jakub Jelinek <jakub@redhat.com>
113
114 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
115 (print_ipcp_constant_value): Likewise.
116 (ipcp_cloning_candidate_p): Likewise.
117 (ipcp_bits_lattice::get_value_and_mask): Likewise.
118 (ipcp_bits_lattice::meet_with_1): Likewise.
119 (ipcp_bits_lattice::meet_with): Likewise.
120 (initialize_node_lattices): Likewise.
121 (ipcp_lattice::add_value): Likewise.
122 (propagate_vals_accross_pass_through): Renamed to ...
123 (propagate_vals_across_pass_through): ... this function.
124 (propagate_vals_accross_ancestor): Renamed to ...
125 (propagate_vals_across_ancestor): ... this.
126 (propagate_scalar_accross_jump_function): Renamed to ...
127 (propagate_scalar_across_jump_function): ... this.
128 Adjust calls to above functions.
129 (propagate_context_accross_jump_function): Renamed to ...
130 (propagate_context_across_jump_function): ... this.
131 (propagate_bits_accross_jump_function): Renamed to ...
132 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
133 (propagate_vr_accross_jump_function): Renamed to ...
134 (propagate_vr_across_jump_function): ... this.
135 (merge_agg_lats_step): Formatting fixes.
136 (propagate_constants_accross_call): Renamed to ...
137 (propagate_constants_across_call): ... this. Adjust calls to above
138 functions.
139 (ipa_get_indirect_edge_target_1): Formatting fixes.
140 (gather_context_independent_values): Likewise.
141 (estimate_local_effects): Likewise.
142 (add_all_node_vals_to_toposort): Likewise.
143 (propagate_constants_topo): Adjust calls to above functions.
144 (get_replacement_map): Formatting fixes.
145 (dump_profile_updates): Likewise.
146 (update_profiling_info): Likewise.
147 (update_specialized_profile): Likewise.
148 (create_specialized_node): Likewise.
149 (find_more_contexts_for_caller_subset): Likewise.
150 (decide_whether_version_node): Likewise.
151 (identify_dead_nodes): Likewise.
152 (ipcp_decision_stage): Likewise.
153 (ipcp_store_bits_results): Likewise.
154 (ipcp_store_vr_results): Likewise.
155 (ipcp_driver): Likewise.
156
157 2016-12-15 David Malcolm <dmalcolm@redhat.com>
158
159 PR preprocessor/78680
160 PR preprocessor/78811
161 * input.c (struct selftest::lexer_test): Add field
162 m_implicitly_expect_EOF.
163 (selftest::lexer_error_sink): New class.
164 (selftest::lexer_error_sink::s_singleton): New global.
165 (selftest::lexer_test::lexer_test): Initialize new field
166 "m_implicitly_expect_EOF".
167 (selftest::lexer_test::~lexer_test): Conditionalize the
168 check for the EOF token on the new field.
169 (selftest::test_lexer_string_locations_raw_string_unterminated):
170 New function.
171 (selftest::input_c_tests): Call the new test.
172
173 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
174
175 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
176 * config/arm/arm.c (arm_option_check_internal): Improve comment.
177 (thumb_force_lr_save): Use crtl->is_leaf.
178 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
179 (thumb_far_jump_used_p): Remove comment.
180 (arm_frame_pointer_required): Use crtl->is_leaf.
181
182 2016-12-15 Jakub Jelinek <jakub@redhat.com>
183
184 * doc/extend.texi: Clean up @xref{...} uses.
185 * doc/invoke.texi: Likewise.
186
187 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
188
189 * arm-fpus.def: Add CNAME field to all FPU definitions.
190 * genopt.sh: Use explicit enumeration tags for FPU entries.
191 * arm-tables.opt: Regenerated.
192 * arm.opt (mfpu): Provide initial value.
193 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
194 available FPUs. Add 'auto' entry on the end.
195 * arm.c (arm_configure_build_target): Only do explicit configuration
196 of the FPU features if the selected FPU is not 'auto'.
197 (arm_option_override): Adjust initialization of arm_fpu_index.
198 Emit an error if we have a hard float ABI request, but the processor
199 does not support floating-point.
200 (arm_option_print): Handle -mfpu=auto.
201 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
202 or function attributes.
203 (arm_identify_fpu_from_isa): Handle effective soft-float when
204 the FPU is automatically detected.
205 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
206 (arm1176jzf-s): Likewise.
207 (mpcore): Likewise.
208 (arm1156t2f-s): Likewise.
209
210 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
211
212 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
213 * arm.h (arm_fpu_feature_set): Delete typedef.
214 (FPU_FL_NONE): Delete.
215 (FPU_FL_NEON): Delete.
216 (FPU_FL_FP16): Delete.
217 (FPU_FL_CRYPTO): Delete.
218 (FPU_FL_DBL): Delete.
219 (FPU_FL_D32): Delete.
220 (FPU_FL_VFPv2): Delete.
221 (FPU_FL_VFPv3): Delete.
222 (FPU_FL_VFPv4): Delete.
223 (FPU_FL_VFPv5): Delete.
224 (FPU_FL_AMRv8): Delete.
225 (FPU_VFPv2): Delete.
226 (FPU_VFPv3): Delete.
227 (FPU_VFPv4): Delete.
228 (FPU_VFPv5): Delete.
229 (FPU_ARMv8): Delete.
230 (FPU_DBL): Delete.
231 (FPU_D32): Delete.
232 (FPU_NEON): Delete.
233 (FPU_CRYPTO): Delete.
234 (FPU_FP16): Delete.
235 (arm_fpu_desc): Delete features field.
236 * arm.c (all_fpus): Don't initialize feature field.
237
238 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
239
240 * arm.c (arm_can_inline_p): Use ISA features for determining
241 inlinability.
242
243 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
244
245 * arm-protos.h (arm_configure_build_target): Change second argument
246 to cl_target_options.
247 * arm.c (arm_configure_build_target): Likewise.
248 (arm_option_restore): Update accordingly.
249 (arm_option_override): Create the target_option_default_node before
250 calling arm_configure_build_target. Use it in call of latter.
251 Resynchronize after all other overrides have been calculated.
252 (arm_valid_target_attribute_tree): Use the target options for
253 reconfiguration. Resynchronize after performing override checks.
254 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
255 to reconfigure the build target.
256
257 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
258
259 * arm.h (TARGET_VFPD32): Use arm_active_target.
260 (TARGET_VFP3): Likewise.
261 (TARGET_VFP5): Likewise.
262 (TARGET_VFP_SINGLE): Likewise.
263 (TARGET_VFP_DOUBLE): Likewise.
264 (TARGET_NEON_FP16): Likewise.
265 (TARGET_FP16): Likewise.
266 (TARGET_FMA): Likewise.
267 (TARGET_FPU_ARMV8): Likewise.
268 (TARGET_CRYPTO): Likewise.
269 (TARGET_NEON): Likewise.
270 (TARGET_FPU_FEATURES): Delete.
271 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
272 Neon using arm_active_target.
273
274 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
275
276 * arm.h (TARGET_FPU_NAME): Delete.
277 * arm.c (arm_identify_fpu_from_isa): New function.
278 (arm_declare_function_name): Use it to get the name for the FPU.
279
280 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
281
282 * arm-protos.h: Include sbitmap.h
283 (arm_configure_build_target): Make public.
284 * arm.c (arm_configure_build_target): Now not static.
285 (arm_valid_target_attribute_rec): Move internal option check to...
286 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
287 active target.
288 (arm_override_options_after_change): Call arm_configure_build_target.
289 (isa_all_fpubits): Renamed from isa_fpubits.
290 (arm_option_restore): New function.
291 (TARGET_OPTION_RESTORE): Register it.
292 (arm_configure_build_target): Initialize the FPU capability bits in
293 the isa.
294 (arm_option_override): Move the code that forces the setting of the
295 FPU option before the call to arm_configure_build_target.
296 * arm.opt (march): Mark as Save.
297 (mcpu, mtune): Likewise.
298 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
299 after pragmas change the target options.
300
301 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
302
303 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
304 fP_dbl, fp_d32 and fp_crypto.
305 (ISA_ALL_FPU): Add all the new bits.
306 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
307 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
308 * arm-fpus.def: Add ISA features to all FPUs.
309 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
310 * arm.c (all_fpus): Initialize it.
311 * arm-tables.opt: Regenerated.
312
313 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
314
315 * arm.h (FPU_FL_VFPv2) New feature bit.
316 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
317 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
318 macros.
319 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
320 (TARGET_FPU_REV): Delete.
321 (TARGET_VFP3): Use feature bits.
322 (TARGET_VFP5): Likewise.
323 (TARGET_FMA): Likewise.
324 (TARGET_FPU_ARMV8): Likewise.
325 (struct arm_fpu_desc): Delete rev field.
326 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
327 * arm.c (all_fpus): Delete rev field.
328
329 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
330
331 * arm.h (vfp_reg_type): Delete.
332 (TARGET_FPU_REGS): Delete.
333 (arm_fpu_desc): Delete regs field.
334 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
335 values.
336 (FPU_FL_DBL, FPU_FL_D32): Define.
337 (TARGET_VFPD32): Use feature test.
338 (TARGET_VFP_SINGLE): Likewise.
339 (TARGET_VFP_DOUBLE): Likewise.
340 * arm-fpus.def: Update all entries for new feature bits.
341 * arm.c (all_fpus): Update initializer macro.
342 (arm_can_inline_p): Remove test on fpu regs.
343
344 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
345
346 * arm.h (arm_fp_model): Delete.
347
348 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
349
350 * arm-cores.def: Remove FLAGS field from all core definitions.
351 * arm-arches.def: Likewise.
352 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
353 ARM_CORES macro.
354 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
355 * arm-protos.h (FL_*): Delete.
356 (arm_feature_set): Delete.
357 (ARM_FSET_*): Delete.
358 * arm.c (struct processors): Delete flags field.
359 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
360 (all architectures): Likewise.
361
362 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
363
364 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
365 Initialize it.
366 (arm_arch_core_flag): Delete flags field.
367 (arm_arch_core_flags): Don't initialize flags field.
368 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
369 (arm_target_thumb_only): Use new isa bits arrays.
370
371 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
372
373 * arm-protos.h (insn_flags): Delete declaration.
374 (arm_arch7ve): Declare.
375 * arm.c (insn_flags): Delete.
376 (arm_arch7ve): New variable.
377 (arm_selected_cpu): Delete.
378 (arm_option_check_internal): Use new ISA bitmap.
379 (arm_option_override_internal): Likewise.
380 (arm_configure_build_target): Declare arm_selected_cpu locally.
381 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
382 Rearrange variable intialization by general function.
383 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
384
385 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
386
387 * arm-builtins.c: Include sbitmap.h.
388 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
389 available features in the current target.
390 (struct builtin_description): Change type of feature field.
391 (IWMMXT_BUILTIN): Use the isa_features types.
392 (IWMMXT2_BUILTIN): Likewise.
393 (IWMMXT_BUILTIN2): Likewise.
394 (IWMMXT2_BUILTIN2): Likewise.
395 (CRC32_BUILTIN): Likewise.
396 (CRYPTO_BUILTIN): Likewise.
397 (iwmmx_builtin): Likewise.
398 (iwmmx2_builtin): Likewise.
399 (arm_iwmmxt_builtin): Check for specific feature bits.
400
401 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
402
403 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
404 (ISA_ALL_QUIRKS): New macro.
405 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
406 * arm.c (isa_quirkbits): New feature-list bitmap.
407 (arm_configure_build_target): Ignore quirk bits when comparing an
408 architecture feature list with a CPU feature list.
409 (arm_option_override): Initialize_isa_quirkbits. If the user has
410 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
411 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
412
413 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
414
415 * arm.c (arm_option_override): Use arm_active_target as source of
416 information for arm_base_arch and arm_arch_name.
417 * (arm_file_start): Use arm_active_target for core name.
418
419 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
420
421 * arm.c (arm_selected_tune): Delete static variable.
422 (arm_selected_arch): Likewise.
423 (arm_configure_build_target): Declare local versions of arm_selected
424 target and arm_selected_arch. Initialize more fields in target
425 data structure.
426 (arm_option_override): Use arm_active_target instead of
427 arm_selected_tune and arm_selected_arch.
428 (asm_file_start): Use arm_active_target.
429
430 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
431
432 * arm-protos.h (arm_build_target): New structure.
433 (arm_active_target): Declare it.
434 * arm.c (arm_active_target): New variable.
435 (bitmap_popcount): New function.
436 (feature_count): Delete.
437 (arm_initialize_isa): New function.
438 isa_fpubits): New variable.
439 (arm_configure_build_target): New function.
440 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
441 Use arm_configure_build_target.
442
443 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
444
445 * arm-isa.h: New file.
446 * arm-protos.h: Include it.
447 * arm-arches.def: Add new ISA field to all entries. Drop bogus
448 armv8.1-a+crc architecture.
449 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
450 * arm-opts.h (enum processor_type): Adjust for new field.
451 * arm.c (struct processors): New field 'isa_bits'.
452 (all_cores, all_architectures): Initialize new field.
453 * arm-tables.opt: Regenerated.
454 * arm-tune.md: Regenerated.
455
456 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
457
458 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
459 tuning properties from architectural FLAGS field.
460 * arm-cores.def (ARM_CORE): Likewise.
461 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
462 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
463 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
464 (FL_TUNE): Remove deleted elements.
465 (tune_flags): Convert type to unsigned int.
466 * arm.c (struct processors): Add new field tune_flags.
467 (all_cores, all_arches): Initialize it.
468 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
469 for deciding when we should have slow multiply operations.
470
471 2016-12-14 Martin Sebor <msebor@redhat.com>
472
473 PR middle-end/78519
474 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
475 (format_directive): Diagnose null pointer arguments.
476 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
477 pointers. Correct location of null format string in diagnostics.
478
479 2016-12-14 David Malcolm <dmalcolm@redhat.com>
480
481 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
482 (s-selftest): Add dependency on the selftests data directory.
483 * common.opt (fself-test): Rename to...
484 (fself-test=): ...this, documenting the meaning of the argument.
485 * selftest-run-tests.c (along): Likewise.
486 * selftest-run-tests.c: Include "options.h".
487 (selftest::run_tests): Initialize selftest::path_to_selftest_files
488 from flag_self_test.
489 * selftest.c (selftest::path_to_selftest_files): New global.
490 (selftest::locate_file): New function.
491 (selftest::test_locate_file): New function.
492 (selftest_c_tests): Likewise.
493 (selftest::selftest_c_tests): Call test_locate_file.
494 * selftest.h (selftest::locate_file): New decl.
495 (selftest::path_to_selftest_files): New decl.
496
497 2016-12-14 Andrew Pinski <apinski@cavium.com>
498
499 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
500 of the cores.
501 (thunderx): Update to include LSE by default.
502 (thunderxt88p1): New core.
503 (thunderxt88): New core.
504 (thunderxt81): New core.
505 (thunderxt83): New core.
506 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
507 Add variant field.
508 (ALL_VARIANTS): New define.
509 (AARCH64_CORE): Support VARIANT operand.
510 (cpu_data): Likewise.
511 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
512 Combine the arch and single core case and support variant searching.
513 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
514 Add VARIANT operand.
515 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
516 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
517 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
518 * config/aarch64/aarch64-tune.md: Regenerate.
519 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
520 thunderxt88p1, thunderxt81, thunderxt83 as available options.
521
522 2016-12-14 Martin Jambor <mjambor@suse.cz>
523
524 * omp-offload.c: Fix coding style.
525 * omp-expand.c: Likewise.
526 * omp-general.c: Likewise.
527 * omp-grid.c: Likewise.
528 * omp-low.c: Fix coding style of parts touched by the
529 previous splitting patch.
530
531 2016-12-14 Martin Jambor <mjambor@suse.cz>
532
533 * omp-general.h: New file.
534 * omp-general.c: New file.
535 * omp-expand.h: Likewise.
536 * omp-expand.c: Likewise.
537 * omp-offload.h: Likewise.
538 * omp-offload.c: Likewise.
539 * omp-grid.c: Likewise.
540 * omp-grid.c: Likewise.
541 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
542 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
543 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
544 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
545 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
546 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
547 (omp_find_combined_for): Declare.
548 (find_omp_clause): Renamed to omp_find_clause and moved to
549 omp-general.h.
550 (free_omp_regions): Renamed to omp_free_regions and moved to
551 omp-expand.h.
552 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
553 to omp-general.h.
554 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
555 omp-general.h.
556 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
557 moved to omp-general.h.
558 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
559 omp-general.h.
560 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
561 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
562 omp-general.c.
563 (omp_expand_local): Moved to omp-expand.h.
564 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
565 omp-expand.h.
566 (omp_finish_file): Moved to omp-offload.h.
567 (default_goacc_validate_dims): Renamed to
568 oacc_default_goacc_validate_dims and moved to omp-offload.h.
569 (offload_funcs, offload_vars): Moved to omp-offload.h.
570 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
571 (omp_region): Moved to omp-expand.c.
572 (omp_for_data_loop): Moved to omp-general.h.
573 (omp_for_data): Likewise.
574 (oacc_loop): Moved to omp-offload.c.
575 (oacc_loop_flags): Moved to omp-general.h.
576 (offload_funcs, offload_vars): Moved to omp-offload.c.
577 (root_omp_region): Moved to omp-expand.c.
578 (omp_any_child_fn_dumped): Likewise.
579 (find_omp_clause): Renamed to omp_find_clause and moved to
580 omp-general.c.
581 (is_combined_parallel): Moved to omp-expand.c.
582 (is_reference): Renamed to omp_is_reference and and moved to
583 omp-general.c.
584 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
585 to omp-general.c.
586 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
587 and moved to omp-general.c.
588 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
589 omp-general.c.
590 (workshare_safe_to_combine_p): Moved to omp-expand.c.
591 (omp_adjust_chunk_size): Likewise.
592 (get_ws_args_for): Likewise.
593 (get_base_type): Removed.
594 (dump_omp_region): Moved to omp-expand.c.
595 (debug_omp_region): Likewise.
596 (debug_all_omp_regions): Likewise.
597 (new_omp_region): Likewise.
598 (free_omp_region_1): Likewise.
599 (free_omp_regions): Renamed to omp_free_regions and moved to
600 omp-expand.c.
601 (find_combined_for): Renamed to omp_find_combined_for, made global.
602 (build_omp_barrier): Renamed to omp_build_barrier and moved to
603 omp-general.c.
604 (omp_max_vf): Moved to omp-general.c.
605 (omp_max_simt_vf): Likewise.
606 (gimple_build_cond_empty): Moved to omp-expand.c.
607 (parallel_needs_hsa_kernel_p): Likewise.
608 (expand_omp_build_assign): Moved declaration to omp-expand.c.
609 (expand_parallel_call): Moved to omp-expand.c.
610 (expand_cilk_for_call): Likewise.
611 (expand_task_call): Likewise.
612 (vec2chain): Likewise.
613 (remove_exit_barrier): Likewise.
614 (remove_exit_barriers): Likewise.
615 (optimize_omp_library_calls): Likewise.
616 (expand_omp_regimplify_p): Likewise.
617 (expand_omp_build_assign): Likewise.
618 (expand_omp_taskreg): Likewise.
619 (oacc_collapse): Likewise.
620 (expand_oacc_collapse_init): Likewise.
621 (expand_oacc_collapse_vars): Likewise.
622 (expand_omp_for_init_counts): Likewise.
623 (expand_omp_for_init_vars): Likewise.
624 (extract_omp_for_update_vars): Likewise.
625 (expand_omp_ordered_source): Likewise.
626 (expand_omp_ordered_sink): Likewise.
627 (expand_omp_ordered_source_sink): Likewise.
628 (expand_omp_for_ordered_loops): Likewise.
629 (expand_omp_for_generic): Likewise.
630 (expand_omp_for_static_nochunk): Likewise.
631 (find_phi_with_arg_on_edge): Likewise.
632 (expand_omp_for_static_chunk): Likewise.
633 (expand_cilk_for): Likewise.
634 (expand_omp_simd): Likewise.
635 (expand_omp_taskloop_for_outer): Likewise.
636 (expand_omp_taskloop_for_inner): Likewise.
637 (expand_oacc_for): Likewise.
638 (expand_omp_for): Likewise.
639 (expand_omp_sections): Likewise.
640 (expand_omp_single): Likewise.
641 (expand_omp_synch): Likewise.
642 (expand_omp_atomic_load): Likewise.
643 (expand_omp_atomic_store): Likewise.
644 (expand_omp_atomic_fetch_op): Likewise.
645 (expand_omp_atomic_pipeline): Likewise.
646 (expand_omp_atomic_mutex): Likewise.
647 (expand_omp_atomic): Likewise.
648 (oacc_launch_pack): and moved to omp-general.c, made public.
649 (OACC_FN_ATTRIB): Likewise.
650 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
651 to omp-general.c.
652 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
653 omp-general.c.
654 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
655 moved to omp-general.c.
656 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
657 omp-general.c.
658 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
659 (oacc_fn_attrib_level): Moved to omp-offload.c.
660 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
661 omp-general.c.
662 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
663 omp-general.c.
664 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
665 (grid_launch_attributes_trees): Likewise.
666 (grid_attr_trees): Likewise.
667 (grid_create_kernel_launch_attr_types): Likewise.
668 (grid_insert_store_range_dim): Likewise.
669 (grid_get_kernel_launch_attributes): Likewise.
670 (get_target_argument_identifier_1): Likewise.
671 (get_target_argument_identifier): Likewise.
672 (get_target_argument_value): Likewise.
673 (push_target_argument_according_to_value): Likewise.
674 (get_target_arguments): Likewise.
675 (expand_omp_target): Likewise.
676 (grid_expand_omp_for_loop): Moved to omp-grid.c.
677 (grid_arg_decl_map): Likewise.
678 (grid_remap_kernel_arg_accesses): Likewise.
679 (grid_expand_target_grid_body): Likewise.
680 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
681 (build_omp_regions_1): Moved to omp-expand.c.
682 (build_omp_regions_root): Likewise.
683 (omp_expand_local): Likewise.
684 (build_omp_regions): Likewise.
685 (execute_expand_omp): Likewise.
686 (pass_data_expand_omp): Likewise.
687 (pass_expand_omp): Likewise.
688 (make_pass_expand_omp): Likewise.
689 (pass_data_expand_omp_ssa): Likewise.
690 (pass_expand_omp_ssa): Likewise.
691 (make_pass_expand_omp_ssa): Likewise.
692 (grid_lastprivate_predicate): Renamed to
693 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
694 (grid_prop): Moved to omp-grid.c.
695 (GRID_MISSED_MSG_PREFIX): Likewise.
696 (grid_safe_assignment_p): Likewise.
697 (grid_seq_only_contains_local_assignments): Likewise.
698 (grid_find_single_omp_among_assignments_1): Likewise.
699 (grid_find_single_omp_among_assignments): Likewise.
700 (grid_find_ungridifiable_statement): Likewise.
701 (grid_parallel_clauses_gridifiable): Likewise.
702 (grid_inner_loop_gridifiable_p): Likewise.
703 (grid_dist_follows_simple_pattern): Likewise.
704 (grid_gfor_follows_tiling_pattern): Likewise.
705 (grid_call_permissible_in_distribute_p): Likewise.
706 (grid_handle_call_in_distribute): Likewise.
707 (grid_dist_follows_tiling_pattern): Likewise.
708 (grid_target_follows_gridifiable_pattern): Likewise.
709 (grid_remap_prebody_decls): Likewise.
710 (grid_var_segment): Likewise.
711 (grid_mark_variable_segment): Likewise.
712 (grid_copy_leading_local_assignments): Likewise.
713 (grid_process_grid_body): Likewise.
714 (grid_eliminate_combined_simd_part): Likewise.
715 (grid_mark_tiling_loops): Likewise.
716 (grid_mark_tiling_parallels_and_loops): Likewise.
717 (grid_process_kernel_body_copy): Likewise.
718 (grid_attempt_target_gridification): Likewise.
719 (grid_gridify_all_targets_stmt): Likewise.
720 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
721 and moved to omp-grid.c, made public.
722 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
723 omp-expand.c.
724 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
725 (omp_finish_file): Likewise.
726 (oacc_thread_numbers): Likewise.
727 (oacc_xform_loop): Likewise.
728 (oacc_default_dims, oacc_min_dims): Likewise.
729 (oacc_parse_default_dims): Likewise.
730 (oacc_validate_dims): Likewise.
731 (new_oacc_loop_raw): Likewise.
732 (new_oacc_loop_outer): Likewise.
733 (new_oacc_loop): Likewise.
734 (new_oacc_loop_routine): Likewise.
735 (finish_oacc_loop): Likewise.
736 (free_oacc_loop): Likewise.
737 (dump_oacc_loop_part): Likewise.
738 (dump_oacc_loop): Likewise.
739 (debug_oacc_loop): Likewise.
740 (oacc_loop_discover_walk): Likewise.
741 (oacc_loop_sibling_nreverse): Likewise.
742 (oacc_loop_discovery): Likewise.
743 (oacc_loop_xform_head_tail): Likewise.
744 (oacc_loop_xform_loop): Likewise.
745 (oacc_loop_process): Likewise.
746 (oacc_loop_fixed_partitions): Likewise.
747 (oacc_loop_auto_partitions): Likewise.
748 (oacc_loop_partition): Likewise.
749 (default_goacc_fork_join): Likewise.
750 (default_goacc_reduction): Likewise.
751 (execute_oacc_device_lower): Likewise.
752 (default_goacc_validate_dims): Likewise.
753 (default_goacc_dim_limit): Likewise.
754 (pass_data_oacc_device_lower): Likewise.
755 (pass_oacc_device_lower): Likewise.
756 (make_pass_oacc_device_lower): Likewise.
757 (execute_omp_device_lower): Likewise.
758 (pass_data_omp_device_lower): Likewise.
759 (pass_omp_device_lower): Likewise.
760 (make_pass_omp_device_lower): Likewise.
761 (pass_data_omp_target_link): Likewise.
762 (pass_omp_target_link): Likewise.
763 (find_link_var_op): Likewise.
764 (pass_omp_target_link::execute): Likewise.
765 (make_pass_omp_target_link): Likewise.
766 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
767 and omp-grid.o.
768 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
769 omp-low.h.
770 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
771 (fold_internal_goacc_dim): Adjusted calls to
772 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
773 * gimplify.c: Include omp-low.h.
774 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
775 its new name.
776 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
777 name.
778 (gimplify_omp_for): Likewise.
779 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
780 * toplev.c: Include omp-offload.h instead of omp-low.h.
781 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
782 include omp-expand.h.
783 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
784 new name.
785 (make_edges): Adjust the call to free_omp_regions to use its new name.
786 * tree-parloops.c: Include omp-general.h.
787 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
788 its new name.
789 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
790 its new name.
791 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
792 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
793 its new name.
794 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
795 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
796 get_oacc_fn_dim_size to use their new names.
797 * varpool.c: Include omp-offload.h instead of omp-low.h.
798 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
799 ifiles.
800 * config/nvptx/nvptx.c: Include omp-general.c.
801 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
802 its new name.
803 (nvptx_reorg): Likewise.
804 (nvptx_record_offload_symbol): Likewise.
805
806 2016-12-14 Martin Sebor <msebor@redhat.com>
807
808 PR middle-end/78786
809 * gimple-ssa-sprintf.c (target_dir_max): New macro.
810 (get_mpfr_format_length): New function.
811 (format_integer): Use HOST_WIDE_INT instead of int.
812 (format_floating_max): Same.
813 (format_floating): Call get_mpfr_format_length.
814 (format_directive): Use target_dir_max.
815
816 2016-12-14 Jakub Jelinek <jakub@redhat.com>
817
818 PR target/78791
819 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
820 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
821 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
822 SLOT_TEMP.
823
824 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
825
826 PR target/59874
827 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
828 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
829 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
830 (*clzhi2): Ditto.
831
832 2016-12-14 Jakub Jelinek <jakub@redhat.com>
833
834 PR debug/77844
835 * valtrack.c: Include rtl-iter.h.
836 (struct rtx_subst_pair): Add insn field.
837 (propagate_for_debug_subst): If pair->to contains at least 2
838 regs, create a DEBUG_INSN with a debug temp before pair->insn
839 and replace from with the debug temp instead of pair->to.
840 (propagate_for_debug): Initialize p.insn.
841 * combine.c (insn_uid_check): New inline function.
842 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
843 (find_single_use, combine_instructions,
844 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
845 INSN_P.
846
847 2016-12-14 Martin Sebor <msebor@redhat.com>
848
849 PR c/17308
850 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
851 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
852 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
853 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
854 (ATTR_NOTHROW_NONNULL_1_5): Same.
855 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
856 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
857 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
858 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
859 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
860 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
861 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
862 * builtins.c (validate_arg): Add argument. Treat null pointers
863 passed to nonnull arguments as invalid.
864 (validate_arglist): Same.
865 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
866 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
867 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
868 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
869 (initialize_argument_information): Diagnose null pointers passed to
870 arguments declared nonnull.
871 * calls.h (get_nonnull_args): Declared.
872
873 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
874
875 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
876 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
877 instructions.
878 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
879 type constraint registers.
880 (VSr3): Likewise.
881 (FL_CONV): New mode iterator for binary floating types that have a
882 direct conversion from 64-bit integer to floating point.
883 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
884 VEXTU{B,H,W}{L,R}X extract instructions.
885 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
886 extract byte position into the GPR if we are using the
887 VEXTU{B,H,W}{L,R}X extract instructions.
888 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
889 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
890 we can use reg+offset address instructions.
891 (vsx_extract_<mode>_var): Support extracts to GPRs.
892 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
893 insn to combine vector extracts with zero_extend.
894 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
895 extracting a small integer vector element and converting it to a
896 floating point type.
897 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
898 (UNSPEC_XXEXTRACTUW): New unspec.
899 (UNSPEC_XXINSERTW): Likewise.
900 (vextract4b): Add support for the vec_vextract4b built-in
901 function.
902 (vextract4b_internal): Likewise.
903 (vinsert4b): Add support for the vec_insert4b built-in function.
904 Include both a version that inserts element 1 from a V4SI object
905 and one that inserts a DI object.
906 (vinsert4b_internal): Likewise.
907 (vinsert4b_di): Likewise.
908 (vinsert4b_di_internal): Likewise.
909 * config/rs6000/predicates.md (const_0_to_11_operand): New
910 predicate, match 0..11.
911 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
912 type to ternary, not binary.
913 (BU_P9V_64BIT_VSX_3): Likewise.
914 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
915 vec_extract4b non-overloaded built-in functions.
916 (P9V_BUILTIN_VINSERT4B): Likewise.
917 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
918 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
919 3.0 built-in functions.
920 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
921 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
922 vec_insert4b and vec_extract4 built-in functions.
923 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
924 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
925 overloaded support for vec_vinsert4b and vec_extract4b.
926 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
927 the vec_insert4b and vec_extract4b byte number being a constant in
928 the range 0..11.
929 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
930 and vec_extract4b built-in functions.
931 * doc/extend.doc (PowerPC VSX built-in functions): Document
932 vec_insert4b and vec_extract4b.
933
934 2016-12-14 Martin Liska <mliska@suse.cz>
935
936 * gimple-pretty-print.c (dump_probability): New function.
937 (dump_edge_probability): Use the function.
938 (dump_gimple_label): Likewise.
939 (dump_gimple_bb_header): Likewise.
940
941 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
942 Jakub Jelinek <jakub@redhat.com>
943
944 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
945 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
946
947 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
948
949 * lra-constraints.c (process_address_1): Do not attempt to decompose
950 addresses for MEMs that satisfy fixed-form constraints.
951
952 2016-12-14 Richard Biener <rguenther@suse.de>
953
954 PR tree-optimization/78788
955 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
956 (set_and_canonicalize_value_range): Do not drop the above to
957 VARYING.
958
959 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
960
961 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
962 Adjust unaligned load cost.
963
964 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
965
966 PR target/78794
967 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
968 Calculate additional gain for andnot for targets without BMI.
969
970 2016-12-13 Carl Love <cel@us.ibm.com>
971
972 * config/rs6000/rs6000-c.c: Add built-in support for
973 vector float vec_pack (vector double, vector double)
974 vector double vec_sld (vector double, vector double)
975 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
976 4-bit unsigned literal.
977 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
978 * doc/extend.texi: Update the built-in documentation file for the
979 new powerpc vec_pack and vec_sld built-ins.
980
981 2016-12-13 Martin Liska <mliska@suse.cz>
982
983 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
984 (sanopt_optimize): Add new argument.
985 (sanitize_asan_mark_unpoison): New function.
986 (maybe_contains_asan_check): Likewise.
987 (sanitize_asan_mark_poison): Likewise.
988 (pass_sanopt::execute): Call the new functions.
989
990 2016-12-13 Martin Liska <mliska@suse.cz>
991
992 PR tree-optimization/78428
993 * expr.c (store_constructor_field): Add new arguments to the function.
994 (store_constructor): Set up bitregion_end and add gcc_unreachable to
995 fields that have either non-constant size or (and) offset.
996
997 2016-12-13 Marek Polacek <polacek@redhat.com>
998
999 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1000 parameters' type from int to HOST_WIDE_INT.
1001 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1002 int to HOST_WIDE_INT.
1003 (build_classic_dist_vector_1): Likewise.
1004 (add_multivariate_self_dist): Likewise.
1005
1006 2016-12-13 Michael Matz <matz@suse.de>
1007
1008 PR tree-optimization/78725
1009 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1010 at correct use point.
1011
1012 2016-12-13 Martin Liska <mliska@suse.cz>
1013
1014 * asan.c (asan_expand_mark_ifn): Use renamed
1015 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1016 * sanitizer.def: Likewise.
1017
1018 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1019
1020 * doc/extend.texi (Half-Precision): Update to document current
1021 compiler behaviour.
1022
1023 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1024
1025 * doc/extend.texi (Floating Types): Document availability of
1026 _Float16 on ARM/AArch64.
1027
1028 2016-12-13 Richard Biener <rguenther@suse.de>
1029
1030 PR tree-optimization/78699
1031 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1032 group size.
1033
1034 2016-12-13 Richard Biener <rguenther@suse.de>
1035
1036 PR middle-end/78742
1037 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1038 * tree-object-size.c (compute_builtin_object_size): Use
1039 tree_fits_shwi_p.
1040 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1041
1042 2016-12-13 Martin Liska <mliska@suse.cz>
1043
1044 * asan.c (asan_mark_poison_p): Remove.
1045 (asan_mark_p): New function.
1046 (transform_statements): Use the function.
1047 (asan_expand_mark_ifn): Do not use masked enum.
1048 * asan.h (enum asan_mark_flags): Declare it via a macro.
1049 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1050 argument of ASAN_MARK.
1051 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1052 (asan_poison_variable): Likewise.
1053
1054 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1055
1056 PR ipa/77905
1057 * ipa-pure-const.c (cdtor_p): Return true for
1058 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1059 DECL_LOOPING_CONST_OR_PURE_P.
1060
1061 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1062
1063 PR tree-optimization/78777
1064 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1065 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1066
1067 PR other/78766
1068 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1069 Formatting fix.
1070
1071 2016-12-12 Martin Sebor <msebor@redhat.com>
1072
1073 PR middle-end/78622
1074 PR middle-end78606
1075 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1076 rather than res.bounded.
1077 (get_width_and_precision): Set precision to -1 when negative.
1078 (adjust_range_for_overflow): New function.
1079 (format_integer): Correct the handling of the space, plus, and pound
1080 flags, and the special case of zero precision.
1081 Always set res.bounded to true unless either precision or width
1082 is specified and unknown.
1083 Call adjust_range_for_overflow.
1084 Avoid use zero as the shortest value when precision is specified
1085 but unknown.
1086 (format_directive): Remove vestigial quoting. Always inform of
1087 argument value or range when it's available.
1088 (add_bytes): Correct the computation of boundrange used to
1089 decide whether a warning is of a "maybe" or "defnitely" kind.
1090
1091 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1092
1093 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1094
1095 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1096
1097 PR target/78738
1098 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1099 flag_unsafe_math_optimizations.
1100 (X87_ENABLE_FLOAT): Ditto.
1101
1102 2016-12-12 Marek Polacek <polacek@redhat.com>
1103
1104 PR middle-end/78716
1105 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1106 Case 1; check POINTER_TYPE_P instead.
1107
1108 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1109
1110 PR rtl-optimization/78669
1111 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1112 replace flag for all used regs in that insn.
1113
1114 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1115
1116 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1117 arm_arch_core_flags to ...
1118 * common/config/arm/arm-common.c: There.
1119
1120 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1121
1122 * config/sparc/constraints.md (T): Use special memory constraint.
1123 (U): Minor tweak.
1124 (W): Add TARGET_ARCH64 test.
1125 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1126 (*movdf_insn_sp32): Likewise.
1127 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1128 conjunction with offsettable memory references.
1129
1130 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1131
1132 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1133 to avoid shared structure error.
1134
1135 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1136
1137 PR target/78695
1138 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1139 consideration any artificial definition.
1140
1141 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1142
1143 * configure.ac (CROSS directory tests): Remove the assumption that
1144 Darwin hosts contain suitable target sysroots in "/".
1145 * configure: Regenerate.
1146
1147 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1148
1149 PR rtl-optimization/71496
1150 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1151 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1152 reload_macho_picbase_di): Likewise.
1153
1154 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1155
1156 * config/pa/pa.c (pa_callee_copies): New function.
1157 * config/pa/pa.opt (mcaller-copies): New option.
1158 * doc/invoke.texi (mcaller-copies): Document option.
1159
1160 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1161
1162 PR target/70799
1163 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1164 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1165 Add FIXME comment.
1166 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1167 constant shifts larger or equal than 32.
1168
1169 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1170
1171 * config/i386/x86-64.h: Append --32 to the assembler options when
1172 -m16 is used on non-glibc systems as well.
1173
1174 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1175
1176 PR target/70118
1177 * config/i386/mmintrin.h (__m64_u): New type
1178 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1179 Make the allowed unaligned memory access explicit.
1180
1181 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1182
1183 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1184 Generally use cpu generic.
1185
1186 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1187 Marc Glisse <marc.glisse@inria.fr>
1188
1189 PR tree-optimization/78720
1190 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1191 is negative, sign extend to @1's type and than AND with C.
1192
1193 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1194
1195 PR fortran/78758
1196 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1197 non-zero low bound or non-standard element sizes.
1198
1199 PR sanitizer/78708
1200 * lto-streamer-in.c (input_function): In addition to debug stmts
1201 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1202 bit is not enabled.
1203
1204 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1205
1206 * config/rs6000/rs6000-passes.def: New file.
1207 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1208 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1209 registration of machine-specific passes.
1210 (pass_analyze_swaps::clone): New function.
1211 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1212
1213 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1214
1215 PR ipa/78721
1216 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1217 drop_tree_overflow after fold_convert.
1218
1219 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR target/72742
1222 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1223 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1224 condition.
1225
1226 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1227
1228 PR target/78683
1229 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1230 GET_MODE_BITSIZE. Return 2.
1231 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1232 TARGET_POPCNTD the same as TARGET_CTZ.
1233 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1234 (ffs<mode>2): Reimplement.
1235
1236 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1237
1238 PR rtl-optimization/78255
1239 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1240 NO_FUNCTION_CSE is true.
1241
1242 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1243
1244 PR ipa/78027
1245 * ipa-icf.c (sem_function::parse): Don't process functions with
1246 oacc decl attributes, as they may be OpenACC routines.
1247
1248 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1249
1250 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1251 pointer.
1252
1253 2016-12-09 Nathan Sidwell <nathan@acm.org>
1254
1255 PR C++/78550
1256 * convert.c (convert_to_integer_1): Maybe fold conversions to
1257 integral types with fewer bits than its mode.
1258
1259 2016-12-09 Martin Liska <mliska@suse.cz>
1260
1261 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1262 chars in strings.
1263
1264 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR tree-optimization/78726
1267 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1268 argument. For lhs uses in debug stmts, don't replace lhs with
1269 new_lhs, but with a debug temp set to new_lhs opcode op.
1270 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1271 OP down to make_new_ssa_for_def.
1272 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1273 stmts_to_fix is empty, if *def has not changed yet. Pass
1274 OPCODE to make_new_ssa_for_all_defs.
1275
1276 2016-12-08 Martin Sebor <msebor@redhat.com>
1277
1278 PR c/78284
1279 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1280 identifier tree nodes.
1281 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1282 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1283 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1284 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1285 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1286 * builtins.c (expand_builtin_alloca): Call
1287 maybe_warn_alloc_args_overflow.
1288 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1289 Add attribute alloc_size.
1290 (alloca): Add attribute alloc_size and returns_nonnull.
1291 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1292 * calls.c (alloc_max_size, operand_signed_p): New functions.
1293 (maybe_warn_alloc_args_overflow): Define.
1294 (initialize_argument_information): Diagnose overflow in functions
1295 declared with attaribute alloc_size.
1296 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1297 -Walloc-size-larger-than.
1298
1299 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1300
1301 PR rtl-optimization/78671
1302 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1303 allocno class.
1304
1305 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1306
1307 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1308 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1309
1310 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1311
1312 PR target/78733
1313 * config/aarch64/aarch64.c (aarch64_classify_address):
1314 Set load_store_pair_p for TImode and TFmode.
1315
1316 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1317
1318 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1319 regno_reg_rtx resizing logic to...
1320 (emit_status::ensure_regno_capacity): ...this new method,
1321 and ensure that the buffers are large enough.
1322 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1323 rather than ggc_vec_alloc.
1324 * function.h (emit_status::ensure_regno_capacity): New method.
1325
1326 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1327
1328 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1329 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1330 * doc/invoke.texi (-fsanitize=kernel-address):
1331 Don't say that it enables -fsanitize-address-use-after-scope.
1332
1333 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1334
1335 PR middle-end/78684
1336 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1337 sign bit for index step of data reference.
1338
1339 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1340
1341 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1342 Handle SYMBOL_SMALL_TLSGD for ILP32.
1343 * config/aarch64/aarch64.md : tlsgd_small modified into
1344 tlsgd_small_<mode> to support SImode and DImode.
1345 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1346 DImode.
1347
1348 2016-12-08 Andrew Pinski <apinski@cavium.com>
1349
1350 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1351 Access the lower part of RTX appropriately.
1352
1353 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1354
1355 * genpreds.c (write_tm_constrs_h): Update for renaming of
1356 rtx_reader_ptr to md_reader_ptr.
1357 (write_tm_preds_h): Likewise.
1358 (write_insn_preds_c): Likewise.
1359 * read-md.c (rtx_reader_ptr): Rename to...
1360 (md_reader_ptr): ...this, and convert from an
1361 rtx_reader * to a md_reader *.
1362 (rtx_reader::set_md_ptr_loc): Rename to...
1363 (md_reader::set_md_ptr_loc): ...this.
1364 (rtx_reader::get_md_ptr_loc): Rename to...
1365 (md_reader::get_md_ptr_loc): ...this.
1366 (rtx_reader::copy_md_ptr_loc): Rename to...
1367 (md_reader::copy_md_ptr_loc): ...this.
1368 (rtx_reader::fprint_md_ptr_loc): Rename to...
1369 (md_reader::fprint_md_ptr_loc): ...this.
1370 (rtx_reader::print_md_ptr_loc): Rename to...
1371 (md_reader::print_md_ptr_loc): ...this.
1372 (rtx_reader::join_c_conditions): Rename to...
1373 (md_reader::join_c_conditions): ...this.
1374 (rtx_reader::fprint_c_condition): ...this.
1375 (rtx_reader::print_c_condition): Rename to...
1376 (md_reader::print_c_condition): ...this.
1377 (fatal_with_file_and_line): Update for renaming of
1378 rtx_reader_ptr to md_reader_ptr.
1379 (rtx_reader::require_char): Rename to...
1380 (md_reader::require_char): ...this.
1381 (rtx_reader::require_char_ws): Rename to...
1382 (md_reader::require_char_ws): ...this.
1383 (rtx_reader::require_word_ws): Rename to...
1384 (md_reader::require_word_ws): ...this.
1385 (rtx_reader::read_char): Rename to...
1386 (md_reader::read_char): ...this.
1387 (rtx_reader::unread_char): Rename to...
1388 (md_reader::unread_char): ...this.
1389 (rtx_reader::peek_char): Rename to...
1390 (md_reader::peek_char): ...this.
1391 (rtx_reader::read_name): Rename to...
1392 (md_reader::read_name): ...this.
1393 (rtx_reader::read_escape): Rename to...
1394 (md_reader::read_escape): ...this.
1395 (rtx_reader::read_quoted_string): Rename to...
1396 (md_reader::read_quoted_string): ...this.
1397 (rtx_reader::read_braced_string): Rename to...
1398 (md_reader::read_braced_string): ...this.
1399 (rtx_reader::read_string): Rename to...
1400 (md_reader::read_string): ...this.
1401 (rtx_reader::read_skip_construct): Rename to...
1402 (md_reader::read_skip_construct): ...this.
1403 (rtx_reader::handle_constants): Rename to...
1404 (md_reader::handle_constants): ...this.
1405 (rtx_reader::traverse_md_constants): Rename to...
1406 (md_reader::traverse_md_constants): ...this.
1407 (rtx_reader::handle_enum): Rename to...
1408 (md_reader::handle_enum): ...this.
1409 (rtx_reader::lookup_enum_type): Rename to...
1410 (md_reader::lookup_enum_type): ...this.
1411 (rtx_reader::traverse_enum_types): Rename to...
1412 (md_reader::traverse_enum_types): ...this.
1413 (rtx_reader::rtx_reader): Rename to...
1414 (md_reader::md_reader): ...this, and update for renaming of
1415 rtx_reader_ptr to md_reader_ptr.
1416 (rtx_reader::~rtx_reader): Rename to...
1417 (md_reader::~md_reader): ...this, and update for renaming of
1418 rtx_reader_ptr to md_reader_ptr.
1419 (rtx_reader::handle_include): Rename to...
1420 (md_reader::handle_include): ...this.
1421 (rtx_reader::handle_file): Rename to...
1422 (md_reader::handle_file): ...this.
1423 (rtx_reader::handle_toplevel_file): Rename to...
1424 (md_reader::handle_toplevel_file): ...this.
1425 (rtx_reader::get_current_location): Rename to...
1426 (md_reader::get_current_location): ...this.
1427 (rtx_reader::add_include_path): Rename to...
1428 (md_reader::add_include_path): ...this.
1429 (rtx_reader::read_md_files): Rename to...
1430 (md_reader::read_md_files): ...this.
1431 * read-md.h (class rtx_reader): Split into...
1432 (class md_reader): ...new class.
1433 (rtx_reader_ptr): Rename to...
1434 (md_reader_ptr): ...this, and convert to a md_reader *.
1435 (class noop_reader): Update base class to be md_reader.
1436 (class rtx_reader): Reintroduce as a subclass of md_reader.
1437 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1438 (read_char): Update for renaming of rtx_reader_ptr to
1439 md_reader_ptr.
1440 (unread_char): Likewise.
1441 * read-rtl.c (rtx_reader_ptr): New global.
1442 (rtx_reader::apply_iterator_to_string): Rename to...
1443 (md_reader::apply_iterator_to_string): ...this.
1444 (rtx_reader::copy_rtx_for_iterators): Rename to...
1445 (md_reader::copy_rtx_for_iterators): ...this.
1446 (rtx_reader::read_conditions): Rename to...
1447 (md_reader::read_conditions): ...this.
1448 (rtx_reader::record_potential_iterator_use): Rename to...
1449 (md_reader::record_potential_iterator_use): ...this.
1450 (rtx_reader::read_mapping): Rename to...
1451 (md_reader::read_mapping): ...this.
1452 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1453 read_rtx_code.
1454 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1455 than directly accessing m_string_obstack.
1456 (rtx_reader::rtx_reader): New ctor.
1457 (rtx_reader::~rtx_reader): New dtor.
1458
1459 2016-12-07 Martin Sebor <msebor@redhat.com>
1460
1461 PR middle-end/77784
1462 PR middle-end/78149
1463 PR middle-end/78138
1464
1465 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1466 functions.
1467 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1468 (check_memop_sizes): Same.
1469 (expand_builtin_memcpy): Call check memop_sizes.
1470 (expand_builtin_mempcpy): Same.
1471 (expand_builtin_memset): Same,
1472 (expand_builtin_bzero): Same.
1473 (expand_builtin_memory_chk): Call check_sizes.
1474 (expand_builtin_strcpy): Same.
1475 (expand_builtin_strncpy): Same.
1476 (maybe_emit_sprintf_chk_warning): Same.
1477 (expand_builtin): Handle strcat and strncat.
1478 (fini_object_sizes): Reset pointers.
1479 (compute_object_size): New function.
1480 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1481 Avoid issuing warnings also issued during built-in expansion.
1482 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1483
1484 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1485
1486 PR target/72717
1487 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1488 V2DImode elements are SUBREG's convert the result into DImode
1489 rather than failing in emit_move_insn.
1490
1491 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1492
1493 * builtins.c (fold_builtin_strstr): Removed.
1494 (fold_builtin_2): Don't call fold_builtin_strstr.
1495 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1496 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1497 (gimple_fold_builtin_strstr): New function.
1498 (gimple_fold_builtin): Call it.
1499 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1500
1501 PR c++/78692
1502 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1503 var to lhs of new_stmt right before noreturn handling rather than to
1504 lhs of e->call_stmt early.
1505
1506 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1507
1508 * read-md.c (rtx_reader::require_char): New method.
1509 (require_char_ws): Convert from function to...
1510 (rtx_reader::require_char_ws): ...method.
1511 (rtx_reader::require_word_ws): New method.
1512 * read-md.h (rtx_reader::require_char): New method decl.
1513 (require_char_ws): Remove global decl in favor of...
1514 (rtx_reader::require_char_ws): ...new method decl.
1515 (rtx_reader::require_word_ws): New method decl.
1516 (rtx_reader::peek_char): New method decl.
1517
1518 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1519
1520 PR rtl-optimization/78617
1521 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1522 registers, also setting hard registers mapped to pseudo registers.
1523
1524 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1525
1526 * cfgexpand.c (pass_expand::execute): Move stack initializations
1527 to rtl_data::init_stack_alignment and call it.
1528 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1529 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1530
1531 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1532
1533 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1534 (ira): Move initialization of crtl->is_leaf earlier.
1535
1536 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1537
1538 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1539 (movtf_aarch64): Likewise.
1540 * config/aarch64/aarch64.c (aarch64_classify_address):
1541 Use correct intersection of offsets.
1542 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1543 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1544 Use 7-bit signed scaled mode for modes > 16 bytes.
1545
1546 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1547
1548 PR rtl-optimization/78561
1549 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1550 constant_pool_empty_p in place of get_pool_size_upper_bound.
1551 (rs6000_stack_info): Likewise.
1552 (rs6000_emit_prologue): Likewise.
1553 (rs6000_elf_declare_function_name): Likewise.
1554 (rs6000_set_up_by_prologue): Likewise.
1555 (rs6000_can_eliminate): Likewise.
1556 * output.h (get_pool_size_upper_bound): Delete.
1557 (constant_pool_empty_p): New.
1558 * varasm.c (get_pool_size_upper_bound): Delete
1559 (constant_pool_empty_p): New.
1560
1561 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1562
1563 PR tree-optimization/78691
1564 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1565 Require integral type for the outer expression.
1566
1567 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1568
1569 * config/aarch64/aarch64.c
1570 (aarch64_builtin_support_vector_misalignment): New.
1571 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1572
1573 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1574
1575 PR bootstrap/78705
1576 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1577 Conditionalize the string comparison on Pmode == DImode.
1578
1579 2016-12-06 Tom de Vries <tom@codesourcery.com>
1580
1581 PR tree-optimization/67955
1582 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1583 (stmt_kills_ref_p): Use it.
1584
1585 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1586
1587 PR middle-end/78700
1588 * calls.c (expand_call): Move back call to prepare_call_address.
1589
1590 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1591
1592 PR target/78658
1593 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1594 ?* constraints for the ISA 3.0 patterns, so the register allocator
1595 is more likely to allocate QImode/HImode to vector registers for
1596 conversion to floating point unless a reload is needed.
1597 (zero_extendhi<mode>2): Likewise.
1598 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1599 first alternative which is converting QImode/HImode to floating
1600 point and the QImode/HImode value is in a vector register, and
1601 does not allocate the second pseudo register. Remove zero
1602 extending into traditional floating point registers, since the
1603 instruction used only works on traditional altivec registers.
1604 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1605
1606 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1607
1608 * config/i386/i386.c: Include print-rtl.h.
1609 (selftest::ix86_test_dumping_memory_blockage): New function.
1610 (selftest::ix86_run_selftests): Call it.
1611 * print-rtl-function.c (print_rtx_function): Create an
1612 rtx_reuse_manager and use it.
1613 * print-rtl.c: Include "rtl-iter.h".
1614 (rtx_writer::rtx_writer): Add reuse_manager param.
1615 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1616 (uses_rtx_reuse_p): New function.
1617 (rtx_reuse_manager::preprocess): New function.
1618 (rtx_reuse_manager::has_reuse_id): New function.
1619 (rtx_reuse_manager::seen_def_p): New function.
1620 (rtx_reuse_manager::set_seen_def): New function.
1621 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1622 prefix the first time in_rtx is seen, and print reuse_rtx
1623 subsequently.
1624 (print_inline_rtx): Supply NULL for new reuse_manager param.
1625 (debug_rtx): Likewise.
1626 (print_rtl): Likewise.
1627 (print_rtl_single): Likewise.
1628 (rtx_writer::print_rtl_single_with_indent): Likewise.
1629 * print-rtl.h: Include bitmap.h when building for host.
1630 (rtx_writer::rtx_writer): Add reuse_manager param.
1631 (rtx_writer::m_rtx_reuse_manager): New field.
1632 (class rtx_reuse_manager): New class.
1633 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1634 param and use it when constructing rtx_writer.
1635 (selftest::test_dumping_rtx_reuse): New function.
1636 (selftest::rtl_tests_c_tests): Call it.
1637 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1638 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1639 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1640 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1641
1642 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1643
1644 PR target/77761
1645 * lra-lives.c (process_bb_lives): Update biggest mode for
1646 implicitly used hard reg.
1647
1648 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1649
1650 * config/i386/predicates.md (general_gr_operand): New predicate.
1651 * config/i386/i386.md (TImode and DImode push_operand splitter):
1652 Use general_gr_operand. Macroize using DWI mode macro.
1653 (TImode and DImode nonimmediate_operand splitter): Use
1654 nonimmediate_gr_operand and general_gr_operand. Macroize using
1655 DWI mode macro.
1656 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1657 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1658 and general_gr_operand.
1659 (XFmode nonimmediate_operand splitter): Ditto.
1660 (DFmode nonimmediate_operand splitter): Ditto.
1661 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1662
1663 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1664
1665 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1666 alphabetical order with respect to other ARMv8 processors.
1667 * config/arm/arm-tables.opt: Regenerate.
1668 * config/arm/arm-tune.md: Likewise.
1669
1670 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1671
1672 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1673 ranges of literal integer arguments.
1674
1675 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1676
1677 PR middle-end/78548
1678 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1679 destroy_predicate_vecs.
1680 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1681
1682 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1683
1684 PR middle-end/78566
1685 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1686 argument type to a pred_chain.
1687 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1688 worklist.
1689 (flatten_out_predicate_chains): Remove.
1690 (uninit_uses_cannot_happen): Rename from
1691 uninit_ops_invalidate_phi_use.
1692 Change logic so that we are checking that the PHI use will
1693 invalidate _ALL_ possibly uninitialized operands.
1694 (is_use_properly_guarded): Rename call to
1695 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1696
1697 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1698
1699 * gcc/config/aarch64/arm_neon.h
1700 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1701 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1702 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1703 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1704 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1705 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1706 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1707 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1708 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1709 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1710 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1711 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1712 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1713 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1714
1715 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1716
1717 PR c++/71537
1718 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1719 plus offset is non-zero. For maybe_nonzero_address decl base0,
1720 require indirect_base0.
1721
1722 PR c++/71537
1723 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1724 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1725 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1726 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1727 and arguments have no side-effects, return 0.
1728 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1729
1730 PR c++/71537
1731 * fold-const-call.c (fold_const_call): Handle
1732 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1733
1734 PR tree-optimization/78675
1735 * tree-vect-loop.c (vectorizable_live_operation): For
1736 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1737 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1738
1739 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1740
1741 PR middle-end/78642
1742 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1743 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1744 (copy_insn_1) <CLOBBER>: Likewise.
1745
1746 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1747
1748 PR target/78688
1749 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1750 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1751 comparing signed to unsigned values.
1752 (FUNCTION_ARG_REGNO_P): Likewise.
1753
1754 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1755 Stefan Freudenberger <stefan@reservoir.com>
1756
1757 PR tree-optimization/78646
1758 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1759 addition used for the memory base expression should have the type
1760 of the candidate.
1761
1762 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1763
1764 PR target/71721
1765 * config.gcc (*-*-uclinux*): Enable posix threads.
1766
1767 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1768
1769 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1770 * config/i386/avx512dqintrin.h: Ditto.
1771 * config/i386/avx512fintrin.h: Ditto.
1772 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1773 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1774 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1775 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1776 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1777 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1778 function types.
1779 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1780 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1781 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1782 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1783 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1784 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1785 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1786 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1787 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1788
1789 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1790
1791 * combine.c: Revert r243162.
1792
1793 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1794
1795 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1796 X tests a single bit.
1797
1798 2016-12-05 Nathan Sidwell <nathan@acm.org>
1799
1800 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1801 (diagnostic_action_after_output): ... here.
1802 (diagnostic_report_diagnostic): Call it for non-notes.
1803 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1804 (diagnostic_check_max_errors): Declare.
1805
1806 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1807
1808 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1809 (ENDFILE_SPEC): Likewise.
1810
1811 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1812
1813 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1814 * config/arc/arc.c (arc_unspec_offset): New function.
1815 (arc_finalize_pic): Change.
1816 (arc_emit_call_tls_get_addr): Likewise.
1817 (arc_legitimize_tls_address): Likewise.
1818 (arc_legitimize_pic_address): Likewise.
1819 (insn_is_tls_gd_dispatch): Remove.
1820 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1821 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1822 (tls_gd_dispatch): Likewise.
1823
1824 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1825
1826 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1827 location.
1828
1829 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1830
1831 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1832 (sparc_split_reg_mem_legitimate): ...this.
1833 (sparc_split_reg_mem): Declare.
1834 (sparc_split_mem_reg): Likewise.
1835 (sparc_split_regreg_legitimate): Rename to...
1836 (sparc_split_reg_reg_legitimate): ...this.
1837 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1838 (sparc_split_reg_mem_legitimate): ...this.
1839 (sparc_split_reg_mem): New function.
1840 (sparc_split_mem_reg): Likewise.
1841 (sparc_split_regreg_legitimate): Rename to...
1842 (sparc_split_reg_reg_legitimate): ...this.
1843 (sparc_split_reg_reg): New function.
1844 * config/sparc/sparc.md (lra): Remove "none" value.
1845 (enabled): Adjust to above change.
1846 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1847 (DImode splitters): Adjust to above renamings and use new functions.
1848 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1849 (DFmode splitters): Adjust to above renamings and use new functions.
1850 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1851 constraint in conjunction with e.
1852 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1853 alternative and reorder others.
1854 (VM64:mode splitters): Adjust to above renamings and use new functions.
1855
1856 2016-12-04 Martin Sebor <msebor@redhat.com>
1857
1858 PR c/78668
1859 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1860 identifier tree nodes.
1861 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1862 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1863 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1864 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1865 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1866 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1867 Add attribute alloc_size.
1868 (alloca): Add attribute alloc_size and returns_nonnull.
1869
1870 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
1871
1872 PR target/70322
1873 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
1874 (dimode_scalar_chain::compute_convert_gain): Ditto.
1875 (dimode_scalar_chain::convert_insn): Ditto.
1876
1877 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1878
1879 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
1880 cases to build a lowpart SUBREG.
1881
1882 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
1883 David S. Miller <davem@davemloft.net>
1884
1885 * config/sparc/constraints.md (U): Adjust comment.
1886 * config/sparc/sparc.md (lra): New attribute.
1887 (enabled): For base instructions, if the lra attribute is set,
1888 return 1 if it is in keeping with TARGET_LRA.
1889 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
1890 constraint and duplicate them with U replaced by r.
1891 (*movdf_insn_sp32): Likewise.
1892 (*mov<VM64:mode>_insn_sp32): Likewise.
1893 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
1894
1895 2016-12-02 Jeff Law <law@redhat.com>
1896
1897 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
1898 variable main_variant.
1899
1900 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1901
1902 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
1903 default on PowerPC linux systems.
1904
1905 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1906
1907 PR rtl-optimization/78638
1908 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
1909 GET_MODE (op). Fix this.
1910
1911 2016-12-02 David Malcolm <dmalcolm@redhat.com>
1912
1913 PR bootstrap/78616
1914 * selftest.c (selftest::assert_strndup_eq): Rename to...
1915 (selftest::assert_xstrndup_eq): ...this, and remove call to
1916 strndup.
1917 (selftest::test_strndup): Rename to...
1918 (selftest::test_xstrndup): ...this, updating for above renaming.
1919 (selftest::test_libiberty): Update for renaming.
1920
1921 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1922
1923 PR target/78639
1924 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
1925 subversion id 242679 that causes the wrong store instruction to be
1926 generated if a DImode is in an Altivec register using REG+REG
1927 addressing.
1928
1929 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1930
1931 PR target/70322
1932 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
1933 and corresponding post-reload splitter.
1934
1935 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1936
1937 * config/aarch64/aarch64.h (machine_function): Add
1938 reg_is_wrapped_separately field.
1939 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
1940 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
1941 rtx_insn *.
1942 (aarch64_save_callee_saves): Don't save registers that are wrapped
1943 separately.
1944 (aarch64_restore_callee_saves): Don't restore registers that are
1945 wrapped separately.
1946 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
1947 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
1948 (aarch64_get_separate_components): New function.
1949 (aarch64_get_next_set_bit): Likewise.
1950 (aarch64_components_for_bb): Likewise.
1951 (aarch64_disqualify_components): Likewise.
1952 (aarch64_emit_prologue_components): Likewise.
1953 (aarch64_emit_epilogue_components): Likewise.
1954 (aarch64_set_handled_components): Likewise.
1955 (aarch64_process_components): Likewise.
1956 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1957 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1958 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1959 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1960 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1961 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1962
1963 2016-12-02 Martin Jambor <mjambor@suse.cz>
1964
1965 * passes.def: Move pass_rebuild_cgraph_edges to the end of
1966 pass_build_ssa_passes.
1967
1968 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
1969
1970 * config/alpha/alpha.md (exception_receiver): Copy
1971 alpha_gp_ave_rtx return value.
1972
1973 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
1974
1975 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
1976 for several include directories that may be relative to sysroot.
1977 * config/i386/x-mingw32 (gplus_includedir): Define.
1978 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
1979 (native_system_includedir): Likewise.
1980 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
1981 override if TARGET_SYSTEM_ROOT is defined.
1982 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
1983
1984 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1985
1986 PR target/70322
1987 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
1988 (dimode_scalar_chain::compute_convert_gain): Likewise.
1989 (dimode_scalar_chain::convert_insn): Likewise.
1990 * config/i386/i386.md (*one_cmpldi2_doubleword): New
1991 define_insn_and_split.
1992 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
1993
1994 PR target/78614
1995 * rtl.c (copy_rtx): Don't clear used flag here.
1996 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
1997 is shareable.
1998 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
1999 'E' in format, copy all vectors.
2000 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2001 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2002 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2003
2004 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2005 Thomas Preud'homme <thomas.preudhomme@arm.com>
2006
2007 * config/arm/arm-builtins.c (arm_builtins): Define
2008 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2009 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2010 (arm_init_builtins): Handle cmse_nonsecure_caller.
2011 (arm_expand_builtin): Likewise.
2012 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2013
2014 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2015 Thomas Preud'homme <thomas.preudhomme@arm.com>
2016
2017 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2018 (cmse_nonsecure_call_clear_caller_saved): New.
2019 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2020 (arm_function_ok_for_sibcall): Disable sibcalls for
2021 cmse_nonsecure_call.
2022 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2023 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2024 (call_value): Likewise.
2025 (nonsecure_call_internal): New.
2026 (nonsecure_call_value_internal): New.
2027 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2028 (*nonsecure_call_value_reg_thumb1_v5): New.
2029 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2030 (*nonsecure_call_value_reg_thumb2): New.
2031 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2032
2033 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2034 Thomas Preud'homme <thomas.preudhomme@arm.com>
2035
2036 * config/arm/arm.c (gimplify.h): New include.
2037 (arm_handle_cmse_nonsecure_call): New.
2038 (arm_attribute_table): Added cmse_nonsecure_call.
2039 (arm_comp_type_attributes): Deny compatibility of function types
2040 with without the cmse_nonsecure_call attribute.
2041 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2042
2043 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2044 Thomas Preud'homme <thomas.preudhomme@arm.com>
2045
2046 * config/arm/arm.c (output_return_instruction): Clear
2047 registers.
2048 (thumb2_expand_return): Likewise.
2049 (thumb1_expand_epilogue): Likewise.
2050 (thumb_exit): Likewise.
2051 (arm_expand_epilogue): Likewise.
2052 (cmse_nonsecure_entry_clear_before_return): New.
2053 (comp_not_to_clear_mask_str_un): New.
2054 (compute_not_to_clear_mask): New.
2055 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2056 * config/arm/thumb2.md (*thumb2_return): Disable for
2057 cmse_nonsecure_entry functions.
2058 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2059 cmse_nonsecure_entry functions.
2060
2061 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2062 Thomas Preud'homme <thomas.preudhomme@arm.com>
2063
2064 * config/arm/arm.c (use_return_insn): Change to return with bxns
2065 when cmse_nonsecure_entry.
2066 (output_return_instruction): Likewise.
2067 (arm_output_function_prologue): Likewise.
2068 (thumb_pop): Likewise.
2069 (thumb_exit): Likewise.
2070 (thumb2_expand_return): Assert that entry functions always have simple
2071 returns.
2072 (arm_expand_epilogue): Handle entry functions.
2073 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2074 (arm_asm_declare_function_name): New.
2075 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2076 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2077 use arm_asm_declare_function_name.
2078
2079 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2080 Thomas Preud'homme <thomas.preudhomme@arm.com>
2081
2082 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2083 (arm_attribute_table): Added cmse_nonsecure_entry
2084 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2085 (cmse_func_args_or_return_in_stack): New.
2086 (arm_handle_cmse_nonsecure_entry): New.
2087 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2088 (IS_CMSE_ENTRY): Likewise.
2089 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2090
2091 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2092 Thomas Preud'homme <thomas.preudhomme@arm.com>
2093
2094 * config.gcc (extra_headers): Added arm_cmse.h.
2095 * config/arm/arm-arches.def (ARM_ARCH):
2096 (armv8-m): Add FL2_CMSE.
2097 (armv8-m.main): Likewise.
2098 (armv8-m.main+dsp): Likewise.
2099 * config/arm/arm-c.c
2100 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2101 * config/arm/arm-flags.h: Define FL2_CMSE.
2102 * config/arm.c (arm_arch_cmse): New.
2103 (arm_option_override): New error for unsupported cmse target.
2104 * config/arm/arm.h (arm_arch_cmse): New.
2105 * config/arm/arm.opt (mcmse): New.
2106 * config/arm/arm_cmse.h: New file.
2107 * doc/invoke.texi (ARM Options): Add -mcmse.
2108 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2109 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2110
2111 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2112
2113 * config/avr/avr.c: Fix coding rule glitches.
2114
2115 2016-12-02 Martin Jambor <mjambor@suse.cz>
2116
2117 * hsa.c (hsa_callable_function_p): Return false for artificial
2118 functions.
2119
2120 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2121
2122 PR rtl-optimization/78561
2123 * varasm.c (recompute_pool_offsets): New.
2124 (output_constant_pool): Call it.
2125
2126 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2127
2128 PR rtl-optimization/78561
2129 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2130 get_pool_size to get_pool_size_upper_bound.
2131 (rs6000_stack_info): Likewise.
2132 (rs6000_emit_prologue): Likewise.
2133 (rs6000_elf_declare_function_name): Likewise.
2134 (rs6000_set_up_by_prologue): Likewise.
2135 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2136 * output.h (get_pool_size): Rename to...
2137 (get_pool_size_upper_bound): ...This.
2138 * varasm.c (get_pool_size): Rename to...
2139 (get_pool_size_upper_bound): ...This.
2140
2141 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2142
2143 * match.pd: Add new pattern:
2144 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2145
2146 2016-12-02 Nathan Sidwell <nathan@acm.org>
2147
2148 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2149 braces.
2150
2151 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2152
2153 PR middle-end/78328
2154 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2155 VR_ANTI_RANGE.
2156
2157 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2158
2159 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2160 problem.
2161
2162 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2163
2164 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2165 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2166 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2167 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2168 avr_mcu_types.flash_size to compute default value.
2169 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2170 mcu->flash_size to compute value for spec.
2171
2172 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2173
2174 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2175 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2176 about linker description to avoid progmem altogether.
2177 [absdata]: Point to -mabsdata option.
2178
2179 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2180
2181 PR rtl-optimization/78547
2182 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2183 DECL_INCOMING_RTL is not shared.
2184 * config/i386/i386.c (convert_scalars_to_vectors): If any
2185 insns have been converted, adjust all parameter's DEC_RTL and
2186 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2187 TImode.
2188
2189 PR rtl-optimization/78575
2190 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2191 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2192 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2193 affect further iterations.
2194
2195 2016-12-02 Martin Liska <mliska@suse.cz>
2196
2197 PR ipa/78555
2198 * sreal.c (sreal::to_int): Make absolute value before shifting.
2199 (sreal::operator/): Likewise.
2200 (sreal_verify_negative_division): New test.
2201 (void sreal_c_tests): Call the new test.
2202 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2203 SREAL_SIGN macros.
2204 (sreal::normalize_down): Likewise.
2205
2206 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2207
2208 * combine.c (combine_simplify_rtx): Suppress replacement of
2209 "(and (reg) (const_int bit))" with "if_then_else".
2210
2211 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2212
2213 PR target/77822
2214 * config/s390/s390.md ("extzv")
2215 ("*extzv<mode><clobbercc_or_nocc>")
2216 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2217 ("*<risbg_n>_ior_and_sr_ze")
2218 ("*extract1bitdi<clobbercc_or_nocc>")
2219 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2220 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2221 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2222 to validate the arguments of zero_extract and sign_extract.
2223
2224 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2225
2226 PR target/77822
2227 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2228
2229 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2230
2231 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2232 function.
2233 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2234 macro.
2235
2236 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2237
2238 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2239 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2240 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2241 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2242 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2243 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2244 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2245 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2246 ("vec_unpacku_lo_v4si"): New pattern definitions.
2247 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2248 vector.md.
2249
2250 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2251
2252 * config/s390/s390-protos.h (s390_reverse_condition): New
2253 prototype.
2254 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2255 of CC mode values.
2256 (s390_reverse_condition): New function.
2257 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2258 target macros.
2259
2260 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2261
2262 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2263 (CCVHUANY): Remove modes.
2264 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2265 documentation.
2266 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2267 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2268 modes.
2269 (s390_branch_condition_mask): Adjust to use the new cc consumer
2270 modes. The new modes allow for proper reversal in the middle-end.
2271 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2272 consumer modes for a comparison.
2273 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2274 throughout the file.
2275 * config/s390/vx-builtins.md: Likewise.
2276
2277 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2278
2279 * asan.c (asan_global_struct): Refactor.
2280 (create_odr_indicator): New function.
2281 (asan_needs_odr_indicator_p): Likewise.
2282 (is_odr_indicator): Likewise.
2283 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2284 constructor.
2285 (asan_protect_global): Do not protect odr indicators.
2286
2287 2016-12-01 Jeff Law <law@redhat.com>
2288
2289 * tree-ssa-threadedge.c
2290 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2291 propagation of operands if there are no operands.
2292
2293 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2294
2295 PR tree-optimization/78586
2296 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2297 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2298 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2299 type is INTEGER_TYPE or POINTER_TYPE.
2300
2301 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2302
2303 PR target/78577
2304 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2305 (vextuhrx): Likewise.
2306 (vextuwlx): Likewise.
2307 (vextuwrx): Likewise.
2308
2309 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2310
2311 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2312 early_dwarf_finished.
2313
2314 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2315 David S. Miller <davem@davemloft.net>
2316
2317 * config/sparc/sparc.opt (mlra): New target option.
2318 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2319 (sparc_lra_p): ...this. New function.
2320 (D_MODES, DF_MODES): Add missing cast.
2321 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2322 provide these insns when flag_pic.
2323 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2324 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2325 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2326 embmedany_textulo, embmedany_textlo): Likewise.
2327 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2328
2329 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2330
2331 PR debug/66419
2332 PR c++/78235
2333 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2334
2335 2016-12-01 Richard Biener <rguenther@suse.de>
2336 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2337
2338 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2339 memset if len-oldlen != 0.
2340 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2341
2342 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2343
2344 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2345
2346 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2347
2348 * config/avr/avr.c: Fix coding rule glitches.
2349
2350 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2351
2352 PR tree-optimization/78598
2353 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2354 overflows.
2355
2356 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2357
2358 PR rtl-optimization/78596
2359 * combine.c (simplify_comparison): Cast to unsigned to avoid
2360 left shifting of negative value.
2361
2362 2016-12-01 Matthias Klose <doko@ubuntu.com>
2363
2364 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2365
2366 2016-12-01 Richard Biener <rguenther@suse.de>
2367
2368 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2369 treat arrays with same type as objects that cannot overlap.
2370
2371 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2372
2373 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2374 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2375 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2376
2377 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2378
2379 PR debug/78587
2380 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2381 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2382 in unsigned HOST_WIDE_INT type.
2383 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2384
2385 PR target/78614
2386 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2387 set_used_flags (pat) before any simplifications. Clear used flag on
2388 PARALLEL copy. Don't guard add_reg_note call. Call
2389 copy_rtx_if_shared on pat before storing it into
2390 REG_FRAME_RELATED_EXPR.
2391
2392 2016-12-01 Alan Modra <amodra@gmail.com>
2393
2394 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2395 look inside UNSPEC_VSX_XXSPLTW vec.
2396
2397 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2398
2399 PR rtl-optimization/78607
2400 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2401
2402 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2403
2404 PR target/78602
2405 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2406 element is not a constant or in a register, force it to a
2407 register.
2408
2409 PR target/78560
2410 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2411 that will be set to a vector element to be in a register.
2412 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2413 the wrong multiplier to convert the element number to a byte
2414 offset.
2415
2416 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2417
2418 PR tree-optimization/77856
2419 * lra-constraints.c (inherit_in_ebb): Check original regno for
2420 invalid invariant regs too. Set only clobbered hard regs for the
2421 invalid invariant regs.
2422
2423 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2424
2425 Commit files forgotten in r242966.
2426
2427 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2428 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2429 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2430 prefix check to find wrap-around value, instead use MCU flash size.
2431 For 8k flash devices, update link_pmem_wrap spec string to
2432 add --pmem-wrap-around=8k.
2433 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2434 here...
2435 (LINK_SPEC): ...to here.
2436
2437 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2438
2439 PR c/78498
2440 * selftest.c (selftest::assert_strndup_eq): New function.
2441 (selftest::test_strndup): New function.
2442 (selftest::test_libiberty): New function.
2443 (selftest::selftest_c_tests): Call test_libiberty.
2444
2445 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2446
2447 PR rtl-optimization/78610
2448 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2449 instructions.
2450
2451 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2452
2453 PR tree-optimization/78574
2454 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2455 header PHI that doesn't define biv.
2456
2457 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2458
2459 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2460 reset_used_flags.
2461
2462 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2463 sharing the SUBREG rtx between move and following insn.
2464
2465 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2466 for REG_EQUIV argument.
2467
2468 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2469
2470 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2471
2472 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2473
2474 PR ipa/78555
2475 * real.c (real_hash): Add cast to avoid left
2476 shifting of negative values.
2477
2478 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2479
2480 PR target/78362
2481 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2482 from a subreg in operands[1] and don't call REGNO on a non-reg
2483 expression when deciding to force operands[2] into a reg.
2484
2485 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2486 Andrew Burgess <andrew.burgess@embecosm.com>
2487
2488 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2489 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2490 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2491 * config/arc/arc700.md: Add define_bypass for store/load.
2492
2493 2016-11-30 Martin Liska <mliska@suse.cz>
2494
2495 * cgraph.c (symbol_table::initialize): Initialize
2496 ipa_clones_dump_file.
2497 (cgraph_node::remove): Report to ipa_clones_dump_file.
2498 * cgraph.h: Add new argument (suffix) to cloning methods.
2499 * cgraphclones.c (dump_callgraph_transformation): New function.
2500 (cgraph_node::create_clone): New argument.
2501 (cgraph_node::create_virtual_clone): Likewise.
2502 (cgraph_node::create_version_clone): Likewise.
2503 * dumpfile.c: Add .ipa-clones dump file.
2504 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2505 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2506 to dump_callgraph_transformation.
2507
2508 2016-11-30 Martin Liska <mliska@suse.cz>
2509
2510 PR sanitizer/78541
2511 * asan.c (asan_expand_mark_ifn): Properly
2512 select a VAR_DECL from FRAME.* component reference.
2513
2514 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2515
2516 PR rtl-optimization/78583
2517 * simplify-rtx.c (simplify_truncation): Add check missing from the
2518 previous commit.
2519
2520 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2521
2522 PR rtl-optimization/78590
2523 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2524 if the subreg_reg is a scalar integer mode.
2525
2526 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2527
2528 PR tree-optimization/78586
2529 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2530 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2531 Don't build_int_cst min/max twice. Formatting fix.
2532
2533 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2534
2535 PR rtl-optimization/78588
2536 * combine.c (if_then_else_cond): Also guard against BLKmode.
2537 * rtlanal.c (num_sign_bit_copies1): Add assert.
2538
2539 2016-11-29 Jeff Law <law@redhat.com>
2540
2541 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2542 variables.
2543
2544 * lra-constraints.c (check_and_process_move): Constrain the
2545 range of DCLASS and SCLASS to avoid false positive out of bounds
2546 array index warning.
2547
2548 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2549
2550 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2551
2552 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2553
2554 PR preprocessor/78569
2555 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2556 line directives were present.
2557
2558 2016-11-30 Matthias Klose <doko@ubuntu.com>
2559
2560 * doc/install.texi: Document configure options --enable-objc-gc
2561 and --with-target-bdw-gc.
2562
2563 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2564
2565 PR target/78594
2566 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2567 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2568 residing in traditional altivec registers can be stored
2569 correctly.
2570
2571 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2572
2573 PR target/78603
2574 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2575 overhead loop start between a call and its CALL_ARG_LOCATION
2576 note.
2577
2578 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2579
2580 * config/bfin/linux.h (CPP_SPEC): Define.
2581
2582 2016-11-29 Martin Sebor <msebor@redhat.com>
2583
2584 PR tree-optimization/78512
2585 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2586 * config/rs6000/linux.h: Same.
2587 * config/rs6000/linux64.h: Same.
2588 * config/sol2.h: Same.
2589 * config/sol2.c (solaris_printf_pointer_format): Remove.
2590 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2591 * doc/tm.texi: Regenerate.
2592 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2593 (pass_sprintf_length::compute_format_length): Return bool.
2594 (pass_sprintf_length::handle_gimple_call): Adjust.
2595 * target.def (printf_pointer_format): Remove.
2596 * targhooks.c (default_printf_pointer_format): Remove.
2597 (linux_printf_pointer_format): Same.
2598 * targhooks.h (default_printf_pointer_format): Remove.
2599 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2600
2601 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2602
2603 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2604 (mshift): Ditto.
2605 (SWI1248_AVX512BWDQ): Ditto.
2606 (SWI1248_AVX512BW): Ditto.
2607 (k<any_logic:code><mode>): Ditto.
2608 (kandn<mode>): Ditto.
2609 (kxnor<mode>): Ditto.
2610 (knot<mode>): Ditto.
2611 (*k<any_lshift:code><mode>): Ditto.
2612 (kortestzhi, kortestchi): Ditto.
2613 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2614
2615 2016-11-29 Andrew Pinski <apinski@cavium.com>
2616
2617 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2618 for the EQ_EXPR.
2619
2620 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2621
2622 PR target/71331
2623 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2624 to stack before call mcount.
2625 (tilegx_can_use_return_insn_p): Clean up code.
2626
2627 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2628
2629 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2630
2631 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2632
2633 PR c++/72774
2634 PR c++/72786
2635 PR c++/77922
2636 PR c++/78313
2637 * spellcheck.c (selftest::test_find_closest_string): Verify that
2638 we don't offer the goal string as a suggestion.
2639 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2640 offer the goal string as a suggestion.
2641
2642
2643 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2644
2645 * config/arc/arc.c (arc_override_options): Avoid selection of
2646 compact casesi for ARCv2.
2647
2648 2016-11-29 Richard Biener <rguenther@suse.de>
2649
2650 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2651 PHIs after a regular stmt.
2652 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2653 start a new BB.
2654
2655 2016-11-29 Martin Liska <mliska@suse.cz>
2656
2657 PR gcov-profile/78582
2658 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2659 to prevent PHI argument clash.
2660
2661 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2662
2663 * config/arc/arc.opt (marclinux): Fix typo.
2664 (marclinux_prof): Likewise.
2665
2666 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2667
2668 * target.def (stack_protect_runtime_enabled_p): New.
2669 * function.c (expand_function_end): Guard stack_protect_epilogue with
2670 targetm.stack_protect_runtime_enabled_p.
2671 * cfgexpand.c (pass_expand::execute): Likewise.
2672 * calls.c (expand_call): Likewise.
2673 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2674 * doc/tm.texi: Regenerate.
2675
2676 2016-11-29 Richard Biener <rguenther@suse.de>
2677
2678 PR middle-end/78546
2679 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2680
2681 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2682
2683 * doc/contrib.texi: Add a few missing gfortran contributors.
2684
2685 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2686
2687 * combine.c (change_zero_ext): Also handle extends from a subreg
2688 to a mode bigger than that of the operand of the subreg.
2689
2690 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2691
2692 PR target/77687
2693 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2694 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2695 SPE ABIs.
2696 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2697
2698 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2699
2700 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2701 head_components and tail_components.
2702 (spread_components): New algorithm.
2703 (emit_common_tails_for_components): Clear head_components and
2704 tail_components.
2705 (insert_prologue_epilogue_for_components): Write extra output to the
2706 dump file for sibcalls and abnormal exits.
2707
2708 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2709
2710 PR rtl-optimization/78342
2711 * combine.c: Include "cfghooks.h".
2712 (try_combine): If we create an unconditional trap, break the basic
2713 block in two just after it, and remove the edge between; also, set
2714 the *new_direct_jump_p flag so that cleanup_cfg is run.
2715
2716 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2717
2718 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2719 and sign_extract.
2720
2721 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2722
2723 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2724 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2725 output template string.
2726 (*anddi_1): Use multi-line output template string.
2727 (*andqi_1): Ditto.
2728
2729 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2730
2731 PR middle-end/78540
2732 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2733 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2734 note has been removed.
2735 * postreload.c (reload_combine_recognize_pattern): If
2736 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2737
2738 2016-11-28 Martin Sebor <msebor@redhat.com>
2739
2740 PR middle-end/78520
2741 * gimple-ssa-sprintf.c (target_max_value): Remove.
2742 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2743 (get_width_and_precision): New function.
2744 (format_integer, format_floating, get_string_length, format_string):
2745 Correct handling of width and precision with unknown value.
2746 (format_directive): Add warning.
2747 (pass_sprintf_length::compute_format_length): Allow for precision
2748 to consist of a sole period with no asterisk or digits after it.
2749
2750 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2751
2752 PR rtl-optimization/78546
2753 * simplify-rtx.c (neg_const_int): When negating most negative
2754 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2755 simplify_const_unary_operation to produce CONST_DOUBLE or
2756 CONST_WIDE_INT.
2757 (simplify_plus_minus): Handle the case where neg_const_int
2758 doesn't return a CONST_INT.
2759
2760 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2761
2762 PR target/78556
2763 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2764 left shifting of negative values.
2765
2766 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2767
2768 PR fortran/78298
2769 * tree-nested.c (convert_local_reference_stmt): After adding
2770 shared (FRAME.NN) clause to omp parallel, task or target,
2771 add it also to all outer omp parallel, task or target constructs.
2772
2773 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2774
2775 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2776 (UNSPEC_KMOV): Remove.
2777 (kmovw): Expand to plain HImode move.
2778 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2779 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2780 Remove corresponding clobber-removing splitter.
2781 (*anddi_1): Remove mask register alternatives.
2782 (*andsi_1): Ditto.
2783 (*andhi_1): Ditto.
2784 (*andqi_1): Ditto.
2785 (*<any_or:code><mode>_1): Ditto.
2786 (*<any_or:code>qi_1): Ditto.
2787 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2788 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2789 Remove corresponding splitter to operation with general registers.
2790 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2791 (*andn<SWI12:mode>): New pattern.
2792 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2793 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2794 with general registers.
2795 (knot<mode>): New insn pattern.
2796 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2797 (one_cmplqi2_1): Ditto.
2798 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2799 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2800 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2801 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2802 to generate kmaskop shift.
2803 (vec_unpacks_hi_<mode>): Ditto.
2804 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2805 Use CODE_FOR_kandhi.
2806 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2807 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2808 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2809
2810 2016-11-28 Richard Biener <rguenther@suse.de>
2811
2812 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2813 to SSA names via extract_range_from_ssa_name if allowed.
2814
2815 2016-11-28 Richard Biener <rguenther@suse.de>
2816
2817 PR tree-optimization/78542
2818 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2819 if allowed.
2820
2821 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2822
2823 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2824 isolates a single bit, even if the condition involves subregs.
2825
2826 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2827
2828 * config/aarch64/aarch64-simd-builtins.def
2829 (BSL_P): Added di and v2di mode.
2830 * config/aarch64/arm_neon.h
2831 (vsriq_n_p64, vsri_n_p64): Added poly type.
2832 (vextq_p64, vext_p64): Likewise.
2833 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2834
2835 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2836
2837 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2838 (TYPES_GETREGP): Likewise.
2839 (TYPES_SHIFTINSERTP): Likewise.
2840 (TYPES_COMBINEP): Likewise.
2841 (TYPES_STORE1P): Likewise.
2842 * config/aarch64/aarch64-simd-builtins.def
2843 (combine): Added poly generator.
2844 (get_dregoi): Likewise.
2845 (get_dregci): Likewise.
2846 (get_dregxi): Likewise.
2847 (ssli_n): Likewise.
2848 (ld1): Likewise.
2849 (st1): Likewise.
2850 * config/aarch64/arm_neon.h
2851 (poly64x1x2_t, poly64x1x3_t): New.
2852 (poly64x1x4_t, poly64x2x2_t): Likewise.
2853 (poly64x2x3_t, poly64x2x4_t): Likewise.
2854 (poly64x1_t): Likewise.
2855 (vcreate_p64, vcombine_p64): Likewise.
2856 (vdup_n_p64, vdupq_n_p64): Likewise.
2857 (vld2_p64, vld2q_p64): Likewise.
2858 (vld3_p64, vld3q_p64): Likewise.
2859 (vld4_p64, vld4q_p64): Likewise.
2860 (vld2_dup_p64, vld3_dup_p64): Likewise.
2861 (vld4_dup_p64, vsli_n_p64): Likewise.
2862 (vsliq_n_p64, vst1_p64): Likewise.
2863 (vst1q_p64, vst2_p64): Likewise.
2864 (vst3_p64, vst4_p64): Likewise.
2865 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
2866 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
2867 (vget_lane_p64, vgetq_lane_p64): Likewise.
2868 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
2869 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
2870 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
2871 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
2872 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
2873 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
2874 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
2875 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
2876 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
2877 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
2878 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
2879 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
2880 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
2881 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
2882 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
2883 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
2884 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
2885 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
2886 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
2887 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
2888 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
2889 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
2890 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
2891 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
2892 (vset_lane_p64, vsetq_lane_p64): Likewise.
2893 (vget_low_p64, vget_high_p64): Likewise.
2894 (vcombine_p64, vst2_lane_p64): Likewise.
2895 (vst3_lane_p64, vst4_lane_p64): Likewise.
2896 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
2897 (vst4q_lane_p64, vget_lane_p64): Likewise.
2898 (vget_laneq_p64, vset_lane_p64): Likewise.
2899 (vset_laneq_p64, vcopy_lane_p64): Likewise.
2900 (vcopy_laneq_p64, vdup_n_p64): Likewise.
2901 (vdupq_n_p64, vdup_lane_p64): Likewise.
2902 (vdup_laneq_p64, vld1_p64): Likewise.
2903 (vld1q_p64, vld1_dup_p64): Likewise.
2904 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
2905 (vmov_n_p64, vmovq_n_p64): Likewise.
2906 (vst3q_p64, vst4q_p64): Likewise.
2907 (vld1_lane_p64, vld1q_lane_p64): Likewise.
2908 (vst1_lane_p64, vst1q_lane_p64): Likewise.
2909 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
2910 (vdupq_laneq_p64): Likewise.
2911
2912 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2913
2914 * config/arm/arm_neon.h (vget_lane_p64): New.
2915
2916 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2917
2918 PR target/71767
2919 * configure.ac (with_ld64): Use portable method to extract the
2920 major part of the version number.
2921 * configure: Regenerated.
2922
2923 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2924
2925 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
2926 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
2927 intmax_t couldn't be determined.
2928 (format_integer): Make {,u}intmax_type_node no longer static,
2929 initialize them only when needed. For z and t use
2930 signed_or_unsigned_type_for instead of assuming size_t and
2931 ptrdiff_t have the same precision.
2932
2933 PR lto/78211
2934 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
2935 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
2936 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
2937 vector instead of traversing m_classes hash table. Release
2938 m_classes_vec.
2939 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
2940 Formatting fixes.
2941 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
2942 add it also to m_classes_vec vector.
2943 (sem_item_optimizer::remove_symtab_node,
2944 sem_item_optimizer::build_hash_based_classes,
2945 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
2946 (sem_item_optimizer::subdivide_classes_by_equality,
2947 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
2948 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
2949 instead of traversing m_classes hash table. Formatting fixes.
2950 (sem_item_optimizer::traverse_congruence_split,
2951 sem_item_optimizer::do_congruence_step_for_index,
2952 sem_item_optimizer::do_congruence_step): Formatting fixes.
2953 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
2954 vector instead of traversing m_classes hash table.
2955 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
2956 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
2957 instead of traversing m_classes hash table.
2958
2959 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2960
2961 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
2962 X is not unused after.
2963
2964 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
2965
2966 PR rtl-optimization/78120
2967 * rtlanal.c (insn_rtx_cost): Revert previous change.
2968
2969 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
2970
2971 PR 41076
2972 * config/avr/avr.md (SPLIT34): New mode iterator.
2973 (bitop): New code iterator.
2974 (*iorhi3.ashift8-*). New insn-and-split patterns.
2975 (*movhi): Post-reload split reg = 0.
2976 [!MOVW]: Post-reload split reg = reg.
2977 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
2978 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
2979 (iorhi3, iorpsi3, iorsi3): Same.
2980 (xorhi3, xorpsi3, xorsi3): Same.
2981 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
2982 costs to *iorhi3.ashift8-* patterns.
2983
2984 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2985 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2986
2987 PR target/67710
2988 * config.in: Regenerate
2989 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2990 for the assembler.
2991 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2992 * config/darwin.opt(asm_macosx_version_min): New.
2993 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2994 * configure: Regenerate
2995 * configure.ac: Check for mmacosx-version-min handling.
2996
2997 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2998
2999 PR target/57438
3000 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3001 where the function might otherwise appear empty for picbase thunks.
3002 (ix86_output_function_epilogue): If we find a zero-sized function
3003 assume that reaching it is UB and trap. If we find a trailing label
3004 append a nop.
3005 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3006 find a zero-sized function assume that reaching it is UB and trap.
3007 If we find a trailing label, append a nop.
3008
3009 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3010
3011 PR target/71767
3012 * config/darwin-sections.def (picbase_thunk_section): New.
3013 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3014 section. (darwin_rodata_section, darwin_objc2_section,
3015 machopic_select_section, darwin_asm_declare_constant_name,
3016 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3017 coalesced with newer linkers.
3018 (darwin_override_options): Decide on usage of coalesed sections
3019 on the basis of the target linker version.
3020 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3021 * config/darwin.opt (mtarget-linker): New.
3022 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3023 a coalesced section, instead use a thunks section.
3024
3025 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3026
3027 PR target/71767
3028 * configure.ac (with-ld64): New var, set for Darwin, set on
3029 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3030 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3031 * config/darwin10.h(DEF_LD64): Update for this target version.
3032 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3033 (DEF_LD64): Update for this target version.
3034 * configure: Regenerated.
3035 * config.in: Regenerated.
3036
3037 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3038
3039 PR target/71767
3040 * config/darwin.c (imachopic_indirection_name): Make data
3041 section indirections linker-visible.
3042 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3043 constant labels linker-visible.
3044
3045 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3046
3047 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3048 (free_lang_data): Remove assignment to ptrdiff_type_node.
3049
3050 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3051
3052 PR rtl-optimization/78526
3053 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3054 beyond val's precision.
3055
3056 PR rtl-optimization/78527
3057 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3058 out of bounds shift count.
3059
3060 2016-11-25 Martin Liska <mliska@suse.cz>
3061
3062 PR web/71666
3063 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3064 where -fprofile-generate is documented.
3065
3066 2016-11-25 Martin Liska <mliska@suse.cz>
3067
3068 PR gcov-profile/78086
3069 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3070 not supported by a target. Set priority to 100 if possible.
3071 (build_gcov_exit_decl): Likewise.
3072
3073 2016-11-25 Richard Biener <rguenther@suse.de>
3074
3075 PR ipa/78515
3076 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3077 unary, binary and single RHSs.
3078 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3079
3080 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3081
3082 PR middle-end/78507
3083 PR middle-end/78510
3084 PR middle-end/78517
3085 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3086 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3087 and set it to result code if transformation is valid. Use code EQ
3088 directly in last simplification case.
3089
3090 2016-11-25 Richard Biener <rguenther@suse.de>
3091
3092 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3093 before valueizing return stmts.
3094
3095 2016-11-24 Richard Biener <rguenther@suse.de>
3096
3097 PR tree-optimization/78343
3098 * passes.def: Add CD-DCE pass after loop splitting.
3099 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3100 SCEV init/finalize ...
3101 (perform_tree_ssa_dce): ... here. Deal with being
3102 executed inside the loop pipeline in aggressive mode.
3103
3104 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3105
3106 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3107
3108 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3109
3110 PR tree-optimization/77673
3111 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3112 (init_symbolic_number): Initialize src field from src parameter.
3113 (perform_symbolic_merge): Select most dominated statement as the
3114 source statement. Set src field of resulting n structure from the
3115 input src with the lowest address.
3116 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3117 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3118 of load from src field rather than insertion statement. Cancel
3119 optimization if statement analyzed is not dominated by the insertion
3120 statement.
3121 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3122 dominance information.
3123
3124 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3125
3126 PR ada/67205
3127 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3128
3129 2016-11-25 Martin Jambor <mjambor@suse.cz>
3130
3131 PR tree-optimization/70965
3132 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3133
3134 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3135
3136 PR target/78509
3137 * config/i386/i386.c (i386_excess_precision): Do not return
3138 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3139 EXCESS_PRECISION_TYPE_STANDARD.
3140 * target.def (excess_precision): Document that targets should
3141 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3142 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3143 Fix typo in first sentence.
3144 * doc/tm.texi: Regenerate.
3145
3146 2016-11-25 Richard Biener <rguenther@suse.de>
3147
3148 PR tree-optimization/78396
3149 * tree-vectorizer.c (vectorize_loops): When the if-converted
3150 body contains masked loads or stores do not attempt to
3151 basic-block-vectorize it.
3152
3153 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3154 Alan Hayward <alan.hayward@arm.com>
3155 David Sherwood <david.sherwood@arm.com>
3156
3157 * function.h (spill_slot_alignment): Declare.
3158 * function.c (spill_slot_alignment): New function.
3159 * lra-spills.c (slot): Add align and size fields.
3160 (assign_mem_slot): Use them in the call to assign_stack_local.
3161 (add_pseudo_to_slot): Update the fields.
3162 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3163
3164 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3165 Alan Hayward <alan.hayward@arm.com>
3166 David Sherwood <david.sherwood@arm.com>
3167
3168 * stor-layout.c (layout_type): Allow the caller to set the mode of
3169 a float type. Only choose one here if the mode is still VOIDmode.
3170 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3171 floats before calling layout_type.
3172 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3173
3174 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3175
3176 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3177 local variables if all references are known to be direct.
3178
3179 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3180 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3181
3182 PR middle-end/78501
3183 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3184 non null and it's precision matches precision of lhs's type.
3185
3186 2016-11-24 Martin Sebor <msebor@redhat.com>
3187
3188 PR tree-optimization/78476
3189 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3190 Add a member.
3191 (handle_gimple_call): Adjust signature.
3192 (try_substitute_return_value): Remove calls to bounded functions
3193 with zero buffer size whose result is known.
3194 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3195
3196 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3197
3198 * varasm.c (assemble_start_function): Wrap align_log definition in
3199 ASM_OUTPUT_MAX_SKIP_ALIGN.
3200
3201 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3202
3203 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3204 explicit mode macros.
3205 (wide OR insn to QImode splitter): Ditto.
3206
3207 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3208
3209 PR rtl-optimization/77541
3210 * lra-constraints.c (struct input_reload): Add field match_p.
3211 (get_reload_reg): Check modes of input reloads to generate unique
3212 value reload pseudo.
3213 (match_reload): Add input reload pseudo for the current insn.
3214
3215 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3216
3217 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3218 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3219 architecture levels.
3220 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3221 the aarch64_fp16_type_node, not all HFmode types.
3222 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3223 (aarch64_scalar_mode_supported_p): Likewise.
3224 (aarch64_excess_precision): New.
3225 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3226 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3227 (TARGET_C_EXCESS_PRECISION): Likewise.
3228
3229 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3230
3231 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3232 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3233
3234 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3235
3236 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3237 (<optab>dihf2): Likewise.
3238 (aarch64_fp16_<optab><mode>hf2): New.
3239
3240 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3241
3242 PR target/67822
3243 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3244
3245 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3246
3247 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3248 Enable REE at -O2 and higher.
3249 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3250 in 32-bit mode.
3251
3252 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3253
3254 PR target/48863
3255 PR inline-asm/70184
3256 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3257 (new_temp_expr_table): Initialise reg_vars_cnt.
3258 (free_temp_expr_table): Release reg_vars_cnt.
3259 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3260 field of TAB.
3261 (find_replaceable_in_bb): Use the above to record register variable
3262 write occurrences and cancel replacement across them.
3263
3264 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3265
3266 PR rtl-optimization/78437
3267 * ree.c (get_uses): New function.
3268 (combine_reaching_defs): When a copy is needed, return false if any
3269 reaching use of the source register reads it in a mode larger than
3270 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3271
3272 2016-11-24 Martin Liska <mliska@suse.cz>
3273
3274 * gimple-pretty-print.c (dump_edge_probability): New function.
3275 (dump_gimple_switch): Dump label edge probabilities.
3276 (dump_gimple_cond): Likewise.
3277 (dump_gimple_label): Dump
3278 (dump_gimple_bb_header): Dump basic block frequency.
3279 (pp_cfg_jump): Replace e->dest argument with e.
3280 (dump_implicit_edges): Likewise.
3281 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3282 Use gimple_bb (at) instead of at->bb.
3283
3284 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3285
3286 * common.opt (flimit-function-alignment): New.
3287 * doc/invoke.texi (-flimit-function-alignment): Document.
3288 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3289 * final.c (shorten_branches): Set it.
3290 * varasm.c (assemble_start_function): Limit alignment if
3291 requested.
3292
3293 2016-11-24 Richard Biener <rguenther@suse.de>
3294
3295 PR tree-optimization/71595
3296 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3297 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3298 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3299 called functions. Only fix irred flags if the caller didn't
3300 request state.
3301 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3302 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3303 to remove_path.
3304
3305 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3306
3307 PR rtl-optimization/78120
3308 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3309 cases, and additionally test against max_seq_cost for speed
3310 optimization.
3311 (noce_process_if_block): Compute an estimate for the original cost when
3312 optimizing for speed, using the minimum of then and else block costs.
3313
3314 PR rtl-optimization/78120
3315 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3316
3317 PR rtl-optimization/78120
3318 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3319
3320 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3321
3322 * match.pd: Refine type conversion in result expr for below pattern:
3323 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3324
3325 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3326
3327 PR middle-end/78429
3328 * tree.h (wi::fits_to_boolean_p): New predicate.
3329 (wi::fits_to_tree_p): Use it for boolean types.
3330 * tree.c (int_fits_type_p): Likewise.
3331
3332 2016-11-24 Martin Liska <mliska@suse.cz>
3333
3334 * print-tree.c (struct bucket): Remove.
3335 (print_node): Add new argument which drives whether a tree node
3336 is printed briefly or not.
3337 (debug_tree): Replace a custom hash table with hash_set<T>.
3338 * print-tree.h (print_node): Add the argument.
3339
3340 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3341
3342 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3343
3344 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3345
3346 PR target/78458
3347 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3348 if it is at least NREGS wide.
3349
3350 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3351
3352 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3353 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3354 TFmode, IFmode and KFmode.
3355
3356 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3357
3358 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3359 pattern.
3360
3361 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3362
3363 * combine.c (change_zero_ext): Only change the mode of a hard register
3364 destination if can_change_dest_mode holds for that.
3365
3366 2016-11-23 Jeff Law <law@redhat.com>
3367
3368 * varasm.c (assemble_name): Increase buffer size for name.
3369
3370 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3371
3372 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3373
3374 * doc/extend.texi: Constify first argument to __builtin_object_size.
3375
3376 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3377
3378 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3379 to be used. Add brackets around macro argument.
3380
3381 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3382
3383 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3384
3385 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3386
3387 PR sanitizer/69278
3388 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3389 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3390
3391 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3392
3393 PR middle-end/69183
3394 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3395 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3396 on worksharing constructs, treat it like clauses on simd construct.
3397 Formatting fix.
3398 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3399 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3400 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3401 of true as last argument to build_outer_var_ref.
3402
3403 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3404
3405 * config/i386/i386.md (*movqi_internal): Calculate mode
3406 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3407 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3408 (*k<logic><mode>): Calculate mode attribute depending on
3409 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3410 (*andqi_1): Calculate mode attribute of alternative 3 depending
3411 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3412 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3413 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3414 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3415 iterator. Calculate mode attribute of alternative 1 depending
3416 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3417 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3418 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3419
3420 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3421
3422 PR middle-end/78153
3423 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3424 * tree-vrp.c (extract_range_basic): Handle case for
3425 CFN_BUILT_IN_STRLEN.
3426
3427 2016-11-23 Jeff Law <law@redhat.com>
3428
3429 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3430
3431 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3432 in boolean context warning.
3433
3434 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3435
3436 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3437
3438 PR target/63250
3439 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3440 (arm_fp16_type_node): ...This, make visibile.
3441 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3442 arm_fp16_type_node.
3443 (arm_init_simd_builtin_types): Likewise.
3444 (arm_init_fp16_builtins): Likewise.
3445 * config/arm/arm.c (arm_excess_precision): New.
3446 (arm_floatn_mode): Likewise.
3447 (TARGET_C_EXCESS_PRECISION): Likewise.
3448 (TARGET_FLOATN_MODE): Likewise.
3449 (arm_promoted_type): Only promote arm_fp16_type_node.
3450 * config/arm/arm.h (arm_fp16_type_node): Declare.
3451
3452 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3453
3454 * config/arm/arm.c (arm_convert_to_type): Delete.
3455 (TARGET_CONVERT_TO_TYPE): Delete.
3456 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3457 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3458 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3459 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3460 are in fast math mode, and have no single step hardware instruction.
3461 (extendhfdf2): Only expand through SFmode if we don't have a
3462 single-step hardware instruction.
3463 * config/arm/vfp.md (*truncdfhf2): New.
3464 (extendhfdf2): Likewise.
3465
3466 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3467
3468 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3469 provides HFmode.
3470
3471 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3472
3473 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3474 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3475 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3476 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3477 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3478 * doc/tm.texi: Regenerate.
3479 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3480
3481 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3482
3483 * toplev.c (init_excess_precision): Delete most logic.
3484 * tree.c (excess_precision_type): Rewrite to use
3485 TARGET_EXCESS_PRECISION.
3486 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3487 more generic fashion.
3488 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3489 __STDC_WANT_IEC_60559_TYPES_EXT__.
3490
3491 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3492
3493 * common.opt (fpermitted-flt-eval-methods): New.
3494 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3495 * flag_types.h (permitted_flt_eval_methods): New.
3496
3497 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3498
3499 * config/m68k/m68k.c (m68k_excess_precision): New.
3500 (TARGET_C_EXCESS_PRECISION): Define.
3501
3502 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3503
3504 * config/s390/s390.c (s390_excess_precision): New.
3505 (TARGET_C_EXCESS_PRECISION): Define.
3506
3507 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3508
3509 * config/i386/i386.c (ix86_excess_precision): New.
3510 (TARGET_C_EXCESS_PRECISION): Define.
3511
3512 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3513
3514 * target.def (excess_precision): New hook.
3515 * target.h (flt_eval_method): New.
3516 (excess_precision_type): Likewise.
3517 * targhooks.c (default_excess_precision): New.
3518 * targhooks.h (default_excess_precision): New.
3519 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3520 * doc/tm.texi: Regenerate.
3521
3522 2016-11-23 Martin Sebor <msebor@redhat.com>
3523
3524 PR middle-end/78461
3525 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3526 set the minimum number of bytes for an unknown string to zero.
3527
3528 2016-11-23 Martin Jambor <mjambor@suse.cz>
3529 Martin Liska <mliska@suse.cz>
3530
3531 * hsa-builtins.def: New file.
3532 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3533 * builtins.def: Include hsa-builtins.def.
3534 (DEF_HSA_BUILTIN): New macro.
3535 * dumpfile.h (OPTGROUP_OPENMP): Define.
3536 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3537 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3538 GF_OMP_FOR_GRID_GROUP_ITER.
3539 (gimple_omp_for_grid_phony): Added checking assert.
3540 (gimple_omp_for_set_grid_phony): Likewise.
3541 (gimple_omp_for_grid_intra_group): New function.
3542 (gimple_omp_for_set_grid_intra_group): Likewise.
3543 (gimple_omp_for_grid_group_iter): Likewise.
3544 (gimple_omp_for_set_grid_group_iter): Likewise.
3545 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3546 previosuly only distribute loop was permitted.
3547 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3548 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3549 dimensions.
3550 (grid_expand_omp_for_loop): Likewise and also support standalone
3551 distribute constructs. New parameter INTRA_GROUP, updated both users.
3552 (grid_expand_target_grid_body): Support standalone distribute
3553 constructs.
3554 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3555 (pass_data_expand_omp_ssa): Likewise.
3556 (pass_data_omp_device_lower): Likewsie.
3557 (pass_data_lower_omp): Likewise.
3558 (pass_data_diagnose_omp_blocks): Likewise.
3559 (pass_data_oacc_device_lower): Likewise.
3560 (pass_data_omp_target_link): Likewise.
3561 (grid_lastprivate_predicate): New function.
3562 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3563 gridified loops.
3564 (lower_omp_for): Support standalone distribute constructs.
3565 (grid_prop): New type.
3566 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3567 parameter GRID.
3568 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3569 it to callee.
3570 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3571 optimization info messages.
3572 (grid_find_single_omp_among_assignments): Likewise.
3573 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3574 (grid_parallel_clauses_gridifiable): New function.
3575 (grid_inner_loop_gridifiable_p): Likewise.
3576 (grid_dist_follows_simple_pattern): Likewise.
3577 (grid_gfor_follows_tiling_pattern): Likewise.
3578 (grid_call_permissible_in_distribute_p): Likewise.
3579 (grid_handle_call_in_distribute): Likewise.
3580 (grid_dist_follows_tiling_pattern): Likewise.
3581 (grid_target_follows_gridifiable_pattern): Support standalone
3582 distribute constructs.
3583 (grid_var_segment): New enum.
3584 (grid_mark_variable_segment): New function.
3585 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3586 if a new argument says so.
3587 (grid_process_grid_body): New function.
3588 (grid_eliminate_combined_simd_part): Likewise.
3589 (grid_mark_tiling_loops): Likewise.
3590 (grid_mark_tiling_parallels_and_loops): Likewise.
3591 (grid_process_kernel_body_copy): Support standalone distribute
3592 constructs.
3593 (grid_attempt_target_gridification): New grid variable holding overall
3594 gridification state. Support standalone distribute constructs and
3595 collapse clauses.
3596 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3597 * hsa.h (hsa_bb): Add method method append_phi.
3598 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3599 occurences in all files too.
3600 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3601 (is_a_helper <hsa_insn_br *>::test): New function.
3602 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3603 branch instructions.
3604 (hsa_insn_signal): Make a direct descendant of
3605 hsa_insn_basic. Add memorder constructor parameter and
3606 m_memory_order and m_signalop member variables.
3607 (hsa_insn_queue): Changed constructor parameters to common form.
3608 Added m_segment and m_memory_order member variables.
3609 (hsa_summary_t): Add private member function
3610 process_gpu_implementation_attributes.
3611 (hsa_function_summary): Rename m_binded_function to
3612 m_bound_function.
3613 (hsa_insn_basic_p): Remove typedef.
3614 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3615 (hsa_op_reg_p): Remove typedef.
3616 (hsa_function_representation): Change hsa_op_reg_p into plain
3617 pointers.
3618 (hsa_insn_phi): Removed new and delete operators.
3619 (hsa_insn_br): Likewise.
3620 (hsa_insn_cbr): Likewise.
3621 (hsa_insn_sbr): Likewise.
3622 (hsa_insn_cmp): Likewise.
3623 (hsa_insn_mem): Likewise.
3624 (hsa_insn_atomic): Likewise.
3625 (hsa_insn_signal): Likewise.
3626 (hsa_insn_seg): Likewise.
3627 (hsa_insn_call): Likewise.
3628 (hsa_insn_arg_block): Likewise.
3629 (hsa_insn_comment): Likewise.
3630 (hsa_insn_srctype): Likewise.
3631 (hsa_insn_packed): Likewise.
3632 (hsa_insn_cvt): Likewise.
3633 (hsa_insn_alloca): Likewise.
3634 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3635 (process_gpu_implementation_attributes): New function.
3636 (link_functions): Move some functionality into it. Adjust after
3637 renaming m_binded_functions to m_bound_functions.
3638 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3639 to the list of instructions with no output registers.
3640 (get_in_type): Return this if it is a register of
3641 matching size.
3642 (hsa_get_declaration_name): Moved to...
3643 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3644 temporary string on an obstack instead from ggc.
3645 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3646 down to two overloads.
3647 (hsa_allocp_operand_address): Removed.
3648 (hsa_allocp_operand_immed): Likewise.
3649 (hsa_allocp_operand_reg): Likewise.
3650 (hsa_allocp_operand_code_list): Likewise.
3651 (hsa_allocp_operand_operand_list): Likewise.
3652 (hsa_allocp_inst_basic): Likewise.
3653 (hsa_allocp_inst_phi): Likewise.
3654 (hsa_allocp_inst_mem): Likewise.
3655 (hsa_allocp_inst_atomic): Likewise.
3656 (hsa_allocp_inst_signal): Likewise.
3657 (hsa_allocp_inst_seg): Likewise.
3658 (hsa_allocp_inst_cmp): Likewise.
3659 (hsa_allocp_inst_br): Likewise.
3660 (hsa_allocp_inst_sbr): Likewise.
3661 (hsa_allocp_inst_call): Likewise.
3662 (hsa_allocp_inst_arg_block): Likewise.
3663 (hsa_allocp_inst_comment): Likewise.
3664 (hsa_allocp_inst_queue): Likewise.
3665 (hsa_allocp_inst_srctype): Likewise.
3666 (hsa_allocp_inst_packed): Likewise.
3667 (hsa_allocp_inst_cvt): Likewise.
3668 (hsa_allocp_inst_alloca): Likewise.
3669 (hsa_allocp_bb): Likewise.
3670 (hsa_obstack): New.
3671 (hsa_init_data_for_cfun): Initialize obstack.
3672 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3673 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3674 (hsa_op_reg::operator new): Likewise.
3675 (hsa_op_address::operator new): Likewise.
3676 (hsa_op_code_list::operator new): Likewise.
3677 (hsa_op_operand_list::operator new): Likewise.
3678 (hsa_insn_basic::operator new): Likewise.
3679 (hsa_insn_phi::operator new): Likewise.
3680 (hsa_insn_br::operator new): Likewise.
3681 (hsa_insn_sbr::operator new): Likewise.
3682 (hsa_insn_cmp::operator new): Likewise.
3683 (hsa_insn_mem::operator new): Likewise.
3684 (hsa_insn_atomic::operator new): Likewise.
3685 (hsa_insn_signal::operator new): Likewise.
3686 (hsa_insn_seg::operator new): Likewise.
3687 (hsa_insn_call::operator new): Likewise.
3688 (hsa_insn_arg_block::operator new): Likewise.
3689 (hsa_insn_comment::operator new): Likewise.
3690 (hsa_insn_srctype::operator new): Likewise.
3691 (hsa_insn_packed::operator new): Likewise.
3692 (hsa_insn_cvt::operator new): Likewise.
3693 (hsa_insn_alloca::operator new): Likewise.
3694 (hsa_init_new_bb): Likewise.
3695 (hsa_bb::append_phi): New function.
3696 (gen_hsa_phi_from_gimple_phi): Use it.
3697 (get_symbol_for_decl): Fix dinstinguishing between
3698 global and local functions. Put local variables into a segment
3699 according to their attribute or static flag, if there is one.
3700 (hsa_insn_br::hsa_insn_br): New.
3701 (hsa_insn_br::operator new): Likewise.
3702 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3703 (query_hsa_grid_nodim): New function.
3704 (multiply_grid_dim_characteristics): Likewise.
3705 (gen_get_num_threads): Likewise.
3706 (gen_get_num_teams): Reimplemented.
3707 (gen_get_team_num): Likewise.
3708 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3709 helper functions.
3710 (get_memory_order_name): Removed.
3711 (get_memory_order): Likewise.
3712 (hsa_memorder_from_tree): New function.
3713 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3714 gen_hsa_atomic_for_builtin, can also create signals.
3715 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3716 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3717 (hsa_insn_atomic): Fix function comment.
3718 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3719 ancestor constructor and initialization of new member variables.
3720 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3721 member variables.
3722 (hsa_get_host_function): Handle functions with no bound CPU
3723 implementation. Fix binded to bound.
3724 (get_brig_function_name): Likewise.
3725 (HSA_SORRY_ATV): Remove semicolon after macro.
3726 (HSA_SORRY_AT): Likewise.
3727 (omp_simple_builtin::generate): Add missing semicolons.
3728 (hsa_insn_phi::operator new): Removed.
3729 (hsa_insn_br::operator new): Likewise.
3730 (hsa_insn_cbr::operator new): Likewise.
3731 (hsa_insn_sbr::operator new): Likewise.
3732 (hsa_insn_cmp::operator new): Likewise.
3733 (hsa_insn_mem::operator new): Likewise.
3734 (hsa_insn_atomic::operator new): Likewise.
3735 (hsa_insn_signal::operator new): Likewise.
3736 (hsa_insn_seg::operator new): Likewise.
3737 (hsa_insn_call::operator new): Likewise.
3738 (hsa_insn_arg_block::operator new): Likewise.
3739 (hsa_insn_comment::operator new): Likewise.
3740 (hsa_insn_srctype::operator new): Likewise.
3741 (hsa_insn_packed::operator new): Likewise.
3742 (hsa_insn_cvt::operator new): Likewise.
3743 (hsa_insn_alloca::operator new): Likewise.
3744 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3745 readonly segment.
3746 (gen_hsa_addr): Also process CONST_DECLs.
3747 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3748 copies.
3749 (gen_hsa_unary_operation): Make sure the function does
3750 not use bittype source type for firstbit and lastbit operations.
3751 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3752 source type.
3753 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3754 instruction.
3755 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3756 Emit the width stored in the class.
3757 (emit_generic_branch_insn): New function.
3758 (emit_insn): Call emit_generic_branch_insn.
3759 (emit_signal_insn): Remove obsolete comment. Update
3760 member variable name, pick a type according to profile.
3761 (emit_alloca_insn): Remove obsolete comment.
3762 (emit_atomic_insn): Likewise.
3763 (emit_queue_insn): Get segment and memory order from the IR object.
3764 (hsa_brig_section): Make allocate_new_chunk, chunks
3765 and cur_chunk provate, add a default NULL parameter to add method.
3766 (hsa_brig_section::add): Added a new parameter, store pointer to
3767 output data there if it is non-NULL.
3768 (emit_function_directives): Use this new parameter instead of
3769 calculating the pointer itself, fix function comment.
3770 (hsa_brig_emit_function): Add forgotten endian conversion.
3771 (hsa_output_kernels): Remove unnecessary building of
3772 kernel_dependencies_vector_type.
3773 (emit_immediate_operand): Declare.
3774 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3775 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3776 (verify_function_arguments): Properly detect variadic
3777 arguments.
3778 * hsa-dump.c (hsa_width_specifier_name): New function.
3779 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3780 member variable name. Special dumping for queue objects.
3781 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3782 m_binded_functions to m_bound_functions. Copy externally visible flag
3783 to the node.
3784 (ipa_hsa_write_summary): Likewise.
3785 (ipa_hsa_read_section): Likewise.
3786
3787 2016-11-23 Richard Biener <rguenther@suse.de>
3788
3789 PR tree-optimization/78396
3790 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3791 vectorize try vectorizing an if-converted body using BB vectorization.
3792
3793 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3794 Alan Hayward <alan.hayward@arm.com>
3795 David Sherwood <david.sherwood@arm.com>
3796
3797 * rtlanal.c (subreg_get_info): Use more local variables.
3798 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3799 occupies at least one register. Assume that full hard registers
3800 have consistent endianness. Share previously-duplicated if block.
3801 Rework the main handling so that it operates on independently-
3802 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3803 to check lowpart offsets, without trying to find an equivalent
3804 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3805 as a final register-endianness correction.
3806
3807 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3808
3809 PR target/77881
3810 PR bootstrap/78390
3811 PR target/78438
3812 PR bootstrap/78477
3813 * combine.c (make_compound_operation_int): Do not convert a subreg of
3814 a non-constant logical shift right to a zero_extract. Handle the case
3815 where some zero bits have been shifted into the range covered by that
3816 subreg.
3817
3818 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3819 Alan Hayward <alan.hayward@arm.com>
3820 David Sherwood <david.sherwood@arm.com>
3821
3822 * rtl.h (subreg_size_offset_from_lsb): Declare.
3823 (subreg_offset_from_lsb): New function.
3824 (subreg_size_lowpart_offset): Declare.
3825 (subreg_lowpart_offset): Turn into an inline function.
3826 (subreg_size_highpart_offset): Declare.
3827 (subreg_highpart_offset): Turn into an inline function.
3828 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3829 (subreg_size_highpart_offset): Likewise
3830 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3831
3832 2016-11-23 Richard Biener <rguenther@suse.de>
3833
3834 PR tree-optimization/78482
3835 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3836 (remove_forwarder_block_with_phi): When merging with a loop
3837 header creates a new latch reset number of iteration information
3838 of the loop.
3839
3840 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3841
3842 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3843 (*ashrsi3_extend0): ...this. Accept constant integers.
3844 (*ashrsi3_extend2): Rename to...
3845 (*ashrsi3_extend1): ...this.
3846 (*ashrsi3_extend2): New pattern.
3847 (*lshrsi3_extend1): Accept constant integers.
3848 (*lshrsi3_extend2): Fix condition on operand 2.
3849
3850 2016-11-23 Martin Liska <mliska@suse.cz>
3851
3852 * config/i386/i386.c: Initialize function pointer to NULL.
3853
3854 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3855
3856 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3857 for A == C1 ? A : C2 to below.
3858 * match.pd: Move from above to here:
3859 (cond (eq (convert1? x) c1) (convert2? x) c2)
3860 -> (cond (eq x c1) c1 c2).
3861
3862 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3863
3864 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
3865 for A cmp C1 ? A : C2 to below, also simplify remaining code.
3866 * match.pd: Move and extend simplification from above to here:
3867 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3868 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
3869 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
3870
3871 2016-11-23 Martin Liska <mliska@suse.cz>
3872 Martin Jambor <mjambor@suse.cz>
3873
3874 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
3875
3876 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
3877
3878 PR target/78213
3879 * opts.c (finish_options): Set -fsyntax-only if running self tests.
3880
3881 2016-11-23 Richard Biener <rguenther@suse.de>
3882
3883 PR middle-end/71762
3884 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
3885 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
3886
3887 2016-11-23 Richard Biener <rguenther@suse.de>
3888
3889 PR lto/78472
3890 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
3891 fields.
3892
3893 2016-11-23 Richard Biener <rguenther@suse.de>
3894 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
3895
3896 PR tree-optimization/78154
3897 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
3898 returns it's argument and the argument is nonnull.
3899 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
3900 ATT_RETNONNULL_NOTHROW_LEAF.
3901 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
3902 ATTR_RETNONNULL_NOTHROW_LEAF.
3903 (BUILT_IN_STPCPY): Likewise.
3904 (BUILT_IN_STPNCPY): Likewise.
3905 (BUILT_IN_MEMPCPY_CHK): Likewise.
3906 (BUILT_IN_STPCPY_CHK): Likewise.
3907 (BUILT_IN_STPNCPY_CHK): Likewise.
3908 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
3909 (BUILT_IN_STRNCAT): Likewise.
3910 (BUILT_IN_STRNCPY): Likewise.
3911 (BUILT_IN_MEMSET_CHK): Likewise.
3912 (BUILT_IN_STRCAT_CHK): Likewise.
3913 (BUILT_IN_STRCPY_CHK): Likewise.
3914 (BUILT_IN_STRNCAT_CHK): Likewise.
3915 (BUILT_IN_STRNCPY_CHK): Likewise.
3916
3917 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3918
3919 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
3920 * fold-const.h (tree_expr_nonzero_p) : Declare.
3921 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
3922
3923 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
3924
3925 * system.h (HAVE_DESIGNATED_INITIALIZERS,
3926 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
3927 "defined" in macros.
3928 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
3929 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
3930 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
3931
3932 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
3933
3934 PR target/60300
3935 * config/avr/constraints.md (Csp): Widen range to [-11..6].
3936 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
3937 of RCALLs in prologue to 3.
3938
3939 2016-11-22 Michael Collison <michael.collison@arm.com>
3940
3941 * config/aarch64/aarch64-protos.h
3942 (aarch64_and_split_imm1, aarch64_and_split_imm2)
3943 (aarch64_and_bitmask_imm): New prototypes
3944 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
3945 New overloaded function to create bit mask covering the
3946 lowest to highest bits set.
3947 (aarch64_and_split_imm2): New overloaded functions to create bit
3948 mask of zeros between first and last bit set.
3949 (aarch64_and_bitmask_imm): New function to determine if a integer
3950 is a valid two instruction "and" operation.
3951 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
3952 allowing wider range of constants with "and" operations.
3953 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
3954 "and" operator from matching restricted constant range used for
3955 ior and xor operators.
3956 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
3957 for constants in "and" operantions.
3958 (UsP constraint): New DImode constraint for constants
3959 in "and" operations.
3960 * config/aarch64/iterators.md (lconst2): New mode iterator.
3961 (LOGICAL2): New code iterator.
3962 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
3963 predicate.
3964 (aarch64_logical_and_operand): New predicate allowing extended
3965 constants for "and" operations.
3966
3967 2016-11-22 Walter Lee <walt@tilera.com>
3968
3969 * config/tilegx/tilegx.md (trap): New pattern.
3970 * config/tilepro/tilepro.md (trap): Likewise.
3971
3972 2016-11-22 Walter Lee <walt@tilera.com>
3973
3974 * config/tilegx/tilegx.md (*zero_extract): Use
3975 define_insn_and_split instead of define_insn; Handle pos + size >
3976 64.
3977 (*sign_extract): Likewise.
3978
3979 2016-11-22 Marek Polacek <polacek@redhat.com>
3980
3981 PR tree-optimization/78455
3982 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
3983
3984 2016-11-22 Ian Lance Taylor <iant@golang.org>
3985
3986 PR go/78431
3987 PR go/78432
3988 * godump.c (go_format_type): Always pass alignment as 1 when
3989 calling go_append_padding at end of struct/union.
3990
3991 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3992
3993 PR target/78451
3994 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
3995 _mm512_setzero_hi): Removed.
3996 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
3997 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
3998 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
3999 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4000 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4001 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4002 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4003 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4004 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4005 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4006 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4007 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4008 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4009 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4010 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4011 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4012 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4013 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4014 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4015 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4016 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4017 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4018 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4019 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4020 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4021 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4022 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4023 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4024 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4025 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4026 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4027 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4028 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4029 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4030 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4031 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4032 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4033 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4034 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4035 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4036 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4037 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4038 _mm512_setzero_qi or _mm512_setzero_hi.
4039 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4040 _mm512_maskz_dbsad_epu8): Formatting fixes.
4041 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4042 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4043 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4044 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4045 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4046 _mm512_setzero_qi or _mm512_setzero_hi.
4047
4048 2016-11-22 Nathan Sidwell <nathan@acm.org>
4049
4050 * gcc-ar.c (main): Fix indentation.
4051 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4052 * ggc-page.c (move_ptes_to_front): Fix formatting.
4053 * hsa-dump.c (dump_has_cfun): Fix indentation.
4054 * sel-sched-ir.h: Remove trailing blank lines.
4055
4056 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4057 Alexander Monakov <amonakov@ispras.ru>
4058
4059 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4060 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4061 (omp_clause_code_name): Add _simt_ name.
4062 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4063 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4064 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4065 (scan_omp_simd): New function.
4066 (scan_omp_1_stmt): Use it in target regions if needed.
4067 (omp_max_vf): Don't max with omp_max_simt_vf.
4068 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4069 OMP_CLAUSE__SIMT_ is present.
4070 (lower_rec_input_clauses): Compute maybe_simt from presence of
4071 OMP_CLAUSE__SIMT_.
4072 (lower_lastprivate_clauses): Likewise.
4073 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4074 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4075 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4076 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4077
4078 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4079
4080 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4081 (expand_GOMP_SIMT_VF): New.
4082 (expand_GOMP_SIMT_LAST_LANE): New.
4083 (expand_GOMP_SIMT_ORDERED_PRED): New.
4084 (expand_GOMP_SIMT_VOTE_ANY): New.
4085 (expand_GOMP_SIMT_XCHG_BFLY): New.
4086 (expand_GOMP_SIMT_XCHG_IDX): New.
4087 * internal-fn.def (GOMP_SIMT_LANE): New.
4088 (GOMP_SIMT_VF): New.
4089 (GOMP_SIMT_LAST_LANE): New.
4090 (GOMP_SIMT_ORDERED_PRED): New.
4091 (GOMP_SIMT_VOTE_ANY): New.
4092 (GOMP_SIMT_XCHG_BFLY): New.
4093 (GOMP_SIMT_XCHG_IDX): New.
4094 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4095 (create_omp_child_function): ...here. Set "omp target entrypoint"
4096 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4097 (omp_max_simt_vf): New. Use it...
4098 (omp_max_vf): ...here.
4099 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4100 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4101 (lower_omp_ordered): Likewise, for "ordered" lowering.
4102 (expand_omp_simd): Add SIMT transforms.
4103 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4104 (execute_omp_device_lower): New.
4105 (pass_data_omp_device_lower): New.
4106 (pass_omp_device_lower): New pass.
4107 (make_pass_omp_device_lower): New.
4108 * passes.def (pass_omp_device_lower): Position new pass.
4109 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4110 (make_pass_omp_device_lower): Declare.
4111
4112 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4113
4114 PR target/78451
4115 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4116 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4117 _mm_setzero_di.
4118 (_mm_maskz_load_epi64): Likewise.
4119 (_mm_setzero_hi): Removed.
4120 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4121 _mm_setzero_di.
4122 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4123 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4124 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4125 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4126 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4127 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4128 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4129 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4130 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4131 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4132 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4133 Likewise.
4134 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4135 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4136 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4137 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4138 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4139 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4140 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4141 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4142 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4143 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4144 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4145 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4146 instead of _mm_setzero_hi.
4147 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4148 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4149 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4150 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4151 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4152 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4153 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4154 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4155 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4156 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4157 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4158 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4159 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4160 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4161 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4162 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4163 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4164 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4165 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4166 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4167 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4168 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4169 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4170 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4171 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4172 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4173 _mm_setzero_di.
4174 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4175 instead of _mm_setzero_hi.
4176 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4177 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4178 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4179 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4180 _mm_setzero_si128 instead of _mm_setzero_di.
4181 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4182 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4183 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4184 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4185 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4186 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4187 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4188 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4189 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4190 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4191 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4192 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4193 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4194 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4195 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4196 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4197 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4198 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4199 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4200 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4201 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4202 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4203 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4204 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4205 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4206 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4207 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4208 _mm512_maskz_insertf32x8): Formatting fixes.
4209 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4210 _mm_setzero_si128 instead of _mm_setzero_di.
4211 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4212 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4213 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4214 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4215 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4216 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4217 _mm_setzero_si128 instead of _mm_setzero_di.
4218 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4219 Likewise in macros.
4220 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4221 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4222 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4223 _mm_setzero_si128 instead of _mm_setzero_hi.
4224 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4225 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4226 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4227 instead of _mm_setzero_di.
4228 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4229 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4230 _mm_setzero_hi.
4231 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4232 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4233 _mm_setzero_hi.
4234 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4235 _mm_setzero_di.
4236 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4237 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4238 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4239
4240 2016-11-22 Carl Love <cel@us.ibm.com>
4241
4242 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4243 equal and vector compare not equal. The vector compares take two
4244 arguments of type vector bool char, vector bool short, vector bool int,
4245 vector bool long long with the same return type.
4246 * doc/extend.texi: Update built-in documentation file for the new
4247 powerpc built-ins.
4248
4249 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4250
4251 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4252 of -j argument.
4253
4254 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4255
4256 * config.gcc: Allow new rmprofile value for configure option
4257 --with-multilib-list.
4258 * config/arm/t-rmprofile: New file.
4259 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4260 for ARM.
4261
4262 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4263
4264 PR target/78439
4265 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4266 register operand in alternatives 4,5,6.
4267
4268 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4269
4270 PR target/77904
4271 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4272 in save register mask if it is needed.
4273
4274 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4275
4276 PR tree-optimization/78436
4277 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4278 (shift_bytes_in_array, shift_bytes_in_array_right,
4279 merged_store_group::apply_stores): Formatting fixes.
4280 (clear_bit_region): Likewise. Use memset.
4281 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4282 instead of EXPR and inerted instead of inserted. Use memset instead
4283 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4284 if shift_amnt is 0.
4285
4286 PR middle-end/78416
4287 * expmed.c (expand_divmod): Use wide_int for computation of
4288 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4289 Use size <= HOST_BITS_PER_WIDE_INT instead of
4290 HOST_BITS_PER_WIDE_INT >= size.
4291
4292 PR tree-optimization/78445
4293 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4294 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4295 is 1. Formatting fix.
4296
4297 2016-11-22 Martin Liska <mliska@suse.cz>
4298
4299 PR ipa/78309
4300 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4301 (sem_function::get_hash): Use the new field.
4302 (sem_function::parse): Remove an argument from ctor.
4303 (sem_variable::parse): Likewise.
4304 (sem_variable::get_hash): Use the new field.
4305 (sem_item_optimizer::read_section): Use new ctor and set hash.
4306 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4307 sem_variable::sem_variable, sem_function::sem_function.
4308
4309 2016-11-21 Jeff Law <law@redhat.com>
4310
4311 PR target/68538
4312 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4313 can_create_pseudo_p is true.
4314
4315 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4316
4317 PR target/68803
4318 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4319 *rotldi3_insert_7): New define_insns.
4320
4321 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4322
4323 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4324 so that DImode can be allocated to FP/vector registers in more
4325 cases, and we can avoid direct move operations. If the register
4326 needs reloading, prefer GPRs over FP/vector registers. In the
4327 case of FPR vs. Altivec registers, prefer FPR registers unless we
4328 have the ISA 3.0 reg+offset scalar instructions.
4329 (movdi_internal64): Likewise.
4330
4331 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4332
4333 PR middle-end/67335
4334 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4335 for tmp simd array if DECL_NAME (parm) is NULL.
4336
4337 2016-11-20 Jeff Law <law@redhat.com>
4338
4339 PR target/25128
4340 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4341 predicate.
4342 * config/m68k/m68k.md (relational tests against 65535/65536): New
4343 peephole2.
4344
4345 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4346
4347 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4348
4349 2016-11-21 Martin Sebor <msebor@redhat.com>
4350
4351 * doc/invoke.texi (-fprintf-return-value): Document that option
4352 is enabled by default.
4353
4354 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4355
4356 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4357 for-loop declaration of loop variable.
4358 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4359 * config/avr/avr.c (avr_popcount_each_byte)
4360 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4361 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4362 (avr_expand_epilogue, avr_function_arg_advance)
4363 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4364 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4365 (avr_adjust_reg_alloc_order, output_reload_in_const)
4366 (avr_conditional_register_usage, avr_find_unused_d_reg)
4367 (avr_map_decompose, avr_fold_builtin): Same.
4368
4369 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4370
4371 * config/avr/avr.c (avr_popcount): Remove static function.
4372 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4373
4374 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4375
4376 * arm.opt (mapcs-float): Delete option.
4377 * arm.c (arm_option_override): Remove hunk relating to
4378 TARGET_APCS_FLOAT.
4379 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4380
4381 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4382
4383 * tree-tailcall.c (process_assignment): Simplify the check for
4384 a valid copy, allowing the source to be a local variable as
4385 well as an SSA name.
4386 (find_tail_calls): Allow copies between local variables to follow
4387 the call. Allow the result to be stored in any local variable,
4388 even if it's an aggregate.
4389 (eliminate_tail_call): Check whether the result is an SSA name
4390 before updating its SSA_NAME_DEF_STMT.
4391
4392 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4393
4394 PR preprocessor/78324
4395 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4396 -ftrack-macro-expansion has a value other than 2.
4397
4398 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4399
4400 PR rtl-optimization/78400
4401 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4402 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4403 and df_update_exit_block_uses.
4404
4405 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4406
4407 PR c++/71973
4408 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4409 new default-enabled warning..
4410 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4411 (BT_PTR_CONST_STRING): Updated.
4412 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4413 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4414 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4415 (strftime): Update builtin function.
4416 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4417 * tree.h (const_tm_ptr_type_node): New type node.
4418 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4419 const_tm_ptr_type_node.
4420
4421 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4422
4423 PR tree-optimization/78413
4424 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4425 inner and outer loop latches have single predecessors.
4426
4427 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4428
4429 PR target/78093
4430 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4431 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4432
4433 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4434
4435 * rtl.h: Adjust prototype.
4436 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4437 (dead_or_set_regno_p): Likewise.
4438
4439 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4440
4441 * rtl.h: Adjust prototype.
4442 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4443
4444 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4445
4446 * function.c (contains): Change argument type to rtx_insn *.
4447 (prologue_contains): Likewise.
4448 (epilogue_contains): Likewise.
4449 (prologue_epilogue_contains): Likewise.
4450 * function.h: Adjust prototype.
4451
4452 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4453
4454 * optabs.c (emit_libcall_block): Change argument type to
4455 rtx_insn *.
4456 * optabs.h: Adjust prototype.
4457
4458 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4459
4460 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4461 (fixup_reorder_chain): Adjust.
4462 * cfgrtl.h: Adjust prototype.
4463
4464 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4465
4466 * rtl.h: Adjust prototype.
4467 * rtlanal.c (replace_label_in_insn): Change argument type to
4468 rtx_insn *.
4469
4470 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4471
4472 * config/v850/v850.c (expand_prologue): Adjust.
4473 (expand_epilogue): Likewise.
4474 * expr.c (init_expr_target): Likewise.
4475 * genrecog.c (print_subroutine): Always make the argument type
4476 rtx_insn *.
4477 * recog.h: Adjust prototype.
4478
4479 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4480
4481 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4482 up variables to make some rtx_insn *.
4483 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4484 * config/arc/arc.c: Likewise.
4485 * config/arm/arm.c: Likewise.
4486 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4487 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4488 Likewise.
4489 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4490
4491 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4492
4493 * config/arm/arm.c (legitimize_pic_address): Change to use
4494 rtx_insn * as the type of variables.
4495 (arm_pic_static_addr): Likewise.
4496 (arm_emit_movpair): Likewise.
4497 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4498 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4499 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4500 * config/frv/frv.md: Likewise.
4501 * config/i386/i386-protos.h: Likewise.
4502 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4503 (ix86_split_fp_branch): Likewise.
4504 (predict_jump): Likewise.
4505 * config/ia64/ia64.c: Likewise.
4506 * config/mcore/mcore.c: Likewise.
4507 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4508 * config/s390/s390.c: Likewise.
4509 * config/s390/s390.md: Likewise.
4510 * config/spu/spu.md: Likewise.
4511 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4512 * lower-subreg.c (resolve_simple_move): Likewise.
4513
4514 2016-11-20 Jeff Law <law@redhat.com>
4515
4516 PR target/48551
4517 * reload.h (struct target_reload): Make x_double_reg_address_ok
4518 be per-mode rather.
4519 * reload.c (find_reloads_address): Check if double_reg_address_ok
4520 is true for the mode of the memory reference.
4521 * reload1.c (init_reload): Initialize double_reg_address_ok for
4522 each mode.
4523
4524 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4525
4526 PR middle-end/61409
4527 * tree-ssa-uninit.c: Define new global max_phi_args.
4528 (compute_uninit_opnds_pos): Use max_phi_args.
4529 (prune_uninit_phi_opnds): Same.
4530 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4531 missing NUM_PREDS in function comment.
4532 (can_one_predicate_be_invalidated_p): New.
4533 (can_chain_union_be_invalidated_p): New.
4534 (flatten_out_predicate_chains): New.
4535 (uninit_ops_invalidate_phi_use): New.
4536 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4537
4538 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4539
4540 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4541 * match.pd (A /[ex] B CMP C): New simplifications.
4542
4543 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4544
4545 * match.pd (0 / X, X / X, X % X): New simplifications.
4546
4547 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4548
4549 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4550 when checking if callee's isa flags are subset of caller's isa flags.
4551 Fix comment wording.
4552
4553 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4554 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4555 instead and using = 0 instead of &= 0.
4556
4557 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4558 ix86_add_new_builtins): Formatting fixes.
4559 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4560 (ix86_get_builtin): Likewise.
4561
4562 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4563 don't initialize it, don't use it for the case where it isn't
4564 provable %{z} nor using the same argument, instead move merge
4565 argument into a new pseudo and use that as target. Formatting fixes.
4566
4567 2016-11-19 Jeff Law <law@redhat.com>
4568
4569 PR target/25111
4570 * config/m68k/m68k.md (bsetdreg): New pattern.
4571 (bchgdreg, bclrdreg): Likewise.
4572
4573 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4574
4575 PR target/78426
4576 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4577 instead of force_reg.
4578 (sh_expand_setmem): Likewise.
4579
4580 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4581
4582 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4583
4584 2016-11-18 Walter Lee <walt@tilera.com>
4585
4586 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4587 end-of-bundle marker for consecutive barriers.
4588
4589 2016-11-18 Walter Lee <walt@tilera.com>
4590
4591 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4592
4593 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4594
4595 PR middle-end/78419
4596 * multiple_target.c (get_attr_len): Start with argnum and increment
4597 argnum on every arg. Use strchr in a loop instead of counting commas
4598 manually.
4599 (get_attr_str): Increment argnum for every comma in the string.
4600 (separate_attrs): Use for instead of while loop, simplify.
4601 (expand_target_clones): Rename defenition argument to definition.
4602 Free attrs and attr_str even when diagnosing errors. Temporarily
4603 change input_location around targetm.target_option.valid_attribute_p
4604 calls. Don't emit warning or errors if that function fails.
4605
4606 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4607
4608 PR debug/78191
4609 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4610 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4611 abbrev_opt_base_type_end only by increasing die_abbrev, before
4612 any other dies.
4613 (optimize_abbrev_table): Don't change abbrev numbers of
4614 base types and CU or optimize implicit consts in them if
4615 calc_base_type_die_sizes has been called during build_abbrev_table.
4616 (calc_base_type_die_sizes): If abbrev_opt_start, set
4617 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4618
4619 2016-11-18 Jeff Law <law@redhat.com>
4620
4621 PR target/25112
4622 * config/m68k/m68k.c (moveq feeding equality comparison): New
4623 peepholes.
4624 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4625 (equality_comparison_operator): Likewise.
4626
4627 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4628
4629 * rtlanal.c (load_extend_op): Move to...
4630 * rtl.h: ...here and make inline.
4631
4632 2016-11-18 Terry Guo <terry.guo@arm.com>
4633 Thomas Preud'homme <thomas.preudhomme@arm.com>
4634
4635 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4636 * config/arm/arm-opts.h: Include arm-flags.h.
4637 (struct arm_arch_core_flag): Define.
4638 (arm_arch_core_flags): Define.
4639 * config/arm/arm-protos.h: Include arm-flags.h
4640 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4641 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4642 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4643 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4644 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4645 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4646 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4647 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4648 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4649 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4650 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4651 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4652 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4653 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4654 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4655 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4656 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4657 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4658 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4659 ARM_FSET_CPU_SUBSET): Move to ...
4660 * config/arm/arm-flags.h: This new file.
4661 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4662 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4663 (TARGET_MODE_SPECS): Define.
4664 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4665
4666 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4667
4668 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4669 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4670 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4671 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4672 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4673 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4674 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4675 missing and make value unsigned.
4676 (arm_feature_set): Use unsigned entries instead of unsigned long.
4677
4678 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4679
4680 Re-apply after PR bootstrap/77359 is fixed:
4681 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4682
4683 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4684 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4685 size needed.
4686
4687 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4688
4689 PR bootstrap/77359
4690 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4691 variables in functions calling alloca. Also update the ASCII
4692 drawings.
4693 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4694 (STACK_DYNAMIC_OFFSET): Likewise.
4695 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4696 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4697 macros to aix.h.
4698
4699 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4700 Alan Hayward <alan.hayward@arm.com>
4701 David Sherwood <david.sherwood@arm.com>
4702
4703 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4704 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4705 (add_const_value_attribute): Likewise.
4706 * explow.c (plus_constant): Likewise.
4707 * expmed.c (expand_mult, make_tree): Likewise.
4708 * expr.c (convert_modes): Likewise.
4709 * loop-doloop.c (doloop_optimize): Likewise.
4710 * postreload.c (reload_cse_simplify_set): Likewise.
4711 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4712 (simplify_binary_operation_1, simplify_const_binary_operation):
4713 Likewise.
4714 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4715 * wide-int.h: Update documentation to recommend rtx_mode_t
4716 instead of std::make_pair.
4717
4718 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4719 Alan Hayward <alan.hayward@arm.com>
4720 David Sherwood <david.sherwood@arm.com>
4721
4722 * tree.h (SET_DECL_MODE): New macro.
4723 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4724 (expand_gimple_basic_block): Likewise.
4725 * function.c (split_complex_args): Likeise.
4726 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4727 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4728 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4729 (finish_bitfield_representative): Likewise.
4730 * tree.c (make_node_stat): Likewise.
4731 * tree-inline.c (remap_ssa_name): Likewise.
4732 (tree_function_versioning): Likewise.
4733 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4734 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4735 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4736 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4737 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4738 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4739 * varasm.c (make_debug_expr_from_rtl): Likewise.
4740
4741 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4742
4743 PR rtl-optimization/71785
4744 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4745 (duplicate_computed_gotos): New function.
4746 (pass_duplicate_computed_gotos::execute): Rewrite.
4747
4748 2016-11-17 Jeff Law <law@redhat.com>
4749
4750 PR target/47192
4751 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4752 barrier prior to deallocating the stack.
4753
4754 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4757 to make better use of cmem loads in the case where a single bit is
4758 being accessed.
4759 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4760
4761 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4762
4763 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4764 F_AVX5124FMAPS.
4765 (isa_names_table): Handle new features.
4766
4767 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4768 Andrew Senkevich <andrew.senkevich@intel.com>
4769
4770 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4771 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4772 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4773 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4774 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4775 * config/i386/avx5124fmapsintrin.h: New file.
4776 * config/i386/avx5124vnniwintrin.h: Ditto.
4777 * config/i386/constraints.md (h): New constraint.
4778 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4779 * config/i386/driver-i386.c (host_detect_local_cpu):
4780 Detect avx5124fmaps, avx5124vnniw.
4781 * config/i386/i386-builtin-types.def: Add types
4782 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4783 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4784 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4785 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4786 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4787 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4788 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4789 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4790 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4791 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4792 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4793 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4794 __builtin_ia32_vp4dpwssds_mask): New.
4795 * config/i386/i386-c.c (ix86_target_macros_internal):
4796 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4797 * config/i386/i386-modes.def: Fixed comment typos, added new
4798 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4799 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4800 -mavx5124vnniw.
4801 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4802 (ix86_option_override_internal): Handle new options.
4803 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4804 avx5124vnniw.
4805 (ix86_expand_builtin): Handle new builtins.
4806 (ix86_additional_allocno_class_p): New.
4807 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4808 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4809 (reg_class): Add MOD4_SSE_REGS.
4810 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4811 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4812 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4813 avx5124vnniwintrin.h.
4814 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4815 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4816 (define_mode_iterator IMOD4): New.
4817 (define_mode_attr imod4_narrow): Ditto.
4818 (define_insn "mov<mode>"): Ditto.
4819 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4820 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4821 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4822 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4823 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4824 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4825 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4826 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4827 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4828 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4829 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4830 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4831 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4832 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4833 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4834 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4835 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4836 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4837 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4838 * genmodes.c (mode_size_inline): Extend return type.
4839 * machmode.h (mode_size, mode_base_align): Extend type.
4840
4841 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4842
4843 PR target/78101
4844 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4845 the appropriate checks for SFmode/DFmode load/stores in GPR
4846 registers.
4847 (fusion_addis_mem_combo_store): Likewise.
4848 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4849 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4850 d-form instructions for traditional Altivec registers.
4851 (emit_fusion_p9_load): Likewise.
4852 (emit_fusion_p9_store): Likewise.
4853 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4854 early clobber from scratch register. Do not match if the register
4855 being stored is the scratch register.
4856 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
4857 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
4858 instructions for traditional Altivec registers.
4859 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4860 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4861 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4862
4863 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
4864
4865 PR target/77933
4866 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
4867 being live in the function and lr needing to be saved. Distinguish
4868 between already saved pushable registers and registers to push.
4869 Check for LR being an available pushable register.
4870
4871 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4872
4873 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
4874 string input is a string constant.
4875 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
4876 via cmpstrnsi even if neither string is constant.
4877
4878 2016-11-17 Jakub Jelinek <jakub@redhat.com>
4879
4880 PR middle-end/78201
4881 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
4882 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
4883 instead, return false if it is NULL, or doesn't fit into uhwi, or
4884 is larger or equal to targetm.max_anchor_offset.
4885
4886 2016-11-17 Pip Cet <pipcet@gmail.com>
4887 Eric Botcazou <ebotcazou@adacore.com>
4888
4889 PR rtl-optimization/78355
4890 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
4891 needs to deal with unaligned accesses.
4892 * doc/tm.texi: Regenerate.
4893 * lra-constraints.c (simplify_operand_subreg): Only invoke
4894 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
4895
4896 2016-11-17 David Malcolm <dmalcolm@redhat.com>
4897
4898 * input.c (selftest::test_lexer_string_locations_long_line): New
4899 function.
4900 (selftest::test_lexer_string_locations_raw_string_multiline): New
4901 function.
4902 (selftest::input_c_tests): Call the new functions, via
4903 for_each_line_table_case.
4904
4905 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4906
4907 * config/aarch64/aarch64.md (mov<mode>): Call
4908 aarch64_split_dimode_const_store on DImode constant stores.
4909 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
4910 New prototype.
4911 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
4912 function.
4913
4914 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4915 Richard Biener <rguenther@suse.de>
4916
4917 PR tree-optimization/77848
4918 * tree-if-conv.c (tree_if_conversion): Always version loops unless
4919 the user specified -ftree-loop-if-convert.
4920
4921 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4922
4923 PR target/77308
4924 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
4925 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
4926 *thumb2_strd_base_neg): Recognize insn regardless of
4927 current_tune->prefer_ldrd_strd.
4928 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
4929 whenever possible.
4930
4931 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4932
4933 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
4934 instruction type.
4935
4936 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
4937
4938 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
4939 for arcem.
4940 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
4941 * config/arc/arc-cpus.def (quarkse_em): Add.
4942 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
4943 * config/arc/arc-opts.h (FPX_QK): Define.
4944 * config/arc/arc-tables.opt: Regenerate.
4945 * config/arc/arc.c (gen_compare_reg): Change.
4946 (arc_register_move_cost): Avoid Dy,Dx moves.
4947 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
4948 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
4949 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
4950 New expands.
4951 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
4952 (fix_truncsfsi2_fpu): Rename.
4953 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
4954 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
4955 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
4956 * config/arc/t-multilib: Regenerate.
4957
4958 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
4959
4960 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
4961 appropriate.
4962 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
4963 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
4964 (avr_rtx_costs_1, extra_constraint_Q): Same.
4965 (avr_address_cost): Use SUBREG_P if possible.
4966
4967 2016-11-17 Richard Biener <rguenther@suse.de>
4968
4969 PR middle-end/78383
4970 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
4971 non-local goto into CFG.
4972
4973 2016-11-17 Richard Biener <rguenther@suse.de>
4974
4975 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
4976 backward compatibility.
4977 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
4978 * tree-if-conv.c (pass_if_conversion::gate): Do not test
4979 flag_tree_loop_if_convert_stores.
4980 (pass_if_conversion::execute): Likewise.
4981
4982 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4983
4984 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
4985 const_double code before calling aarch64_float_const_zero_rtx_p.
4986
4987 2016-11-17 Richard Biener <rguenther@suse.de>
4988
4989 PR tree-optimization/78306
4990 * ipa-inline-analysis.c (initialize_inline_failed): Do not
4991 inhibit inlining if function calls cilk_spawn.
4992 (can_inline_edge_p): Likewise.
4993
4994 2016-11-17 Richard Biener <rguenther@suse.de>
4995
4996 PR middle-end/78305
4997 * fold-const.c (negate_expr_p): Fix multiplication case.
4998
4999 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5000
5001 PR target/78357
5002 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5003 condition.
5004 (TARGET_INIT_LIBFUNCS): Delete definition and...
5005 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5006 comments.
5007
5008 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5009
5010 * config/netbsd-stdint.h: New.
5011 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5012 (x86_64-*-netbsd*): Likewise.
5013
5014 2016-11-16 Andrew PInski <apinski@cavium.com>
5015
5016 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5017 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5018 flag_aarch64_verbose_cost instead of checking for details dump.
5019 (aarch64_rtx_costs_wrapper): Likewise.
5020
5021 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5022
5023 PR rtl-optimization/78378
5024 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5025 inner only if pos is 0. Fix up formatting.
5026
5027 2016-11-17 Alan Modra <amodra@gmail.com>
5028
5029 PR rtl-optimization/78325
5030 PR rtl-optimization/70890
5031 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5032 for dead regno.
5033
5034 2016-11-16 Jason Merrill <jason@redhat.com>
5035
5036 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5037
5038 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5039 Richard Biener <rguenther@suse.de>
5040
5041 PR tree-optimization/77848
5042 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5043 an outer loop, only save basic block aux information for the inner
5044 loop.
5045 (versionable_outer_loop_p): New function.
5046 (tree_if_conversion): Version the outer loop instead of the inner
5047 one if the pattern will be recognized for outer-loop
5048 vectorization.
5049
5050 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5051
5052 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5053 (pass_partition_blocks::gate): No longer check
5054 user_defined_section_attribute, instead check the function decl
5055 for a section attribute.
5056 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5057 set user_defined_section_attribute.
5058 * gcc/final.c (rest_of_handle_final): Likewise.
5059 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5060 * gcc/toplev.h: Remove declaration of
5061 user_defined_section_attribute.
5062
5063 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5064
5065 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5066 Explicitly switch between JR and JRC for the table jump. Adjust
5067 instruction count.
5068
5069 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5070
5071 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5072 `insn_count' to 11 rather than 16.
5073
5074 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5075
5076 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5077 `ltu' rather than `leu' operation in the RTL pattern
5078
5079 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5080
5081 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5082 missing <d> instruction prefixes throughout. Correct
5083 formatting.
5084
5085 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5086
5087 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5088 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5089 cancel short delay slots in PIC call relaxation.
5090
5091 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5092
5093 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5094 general register with general register or ARM constant into SP
5095 register.
5096
5097 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5098
5099 PR fortran/78299
5100 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5101 that loop->header == body_bb if broken_loop.
5102
5103 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5104
5105 * tree-ssa-math-opts.c (bswap_replace): Remove test
5106 of SLOW_UNALIGNED_ACCESS.
5107
5108 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5109
5110 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5111 is selected. Pass -mgomp to offload compiler in OpenMP case.
5112 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5113 declaration from nvptx.c.
5114 (nvptx_gen_shuffle): Declare.
5115 (nvptx_output_set_softstack): Declare.
5116 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5117 (need_softstack_decl): New variable.
5118 (need_unisimt_decl): New variable.
5119 (diagnose_openacc_conflict): New. Use it...
5120 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5121 (nvptx_encode_section_info): Handle "shared" attribute.
5122 (write_as_kernel): Restrict to OpenACC target regions.
5123 (init_softstack_frame): New.
5124 (nvptx_init_unisimt_predicate): New.
5125 (write_omp_entry): New. Use it...
5126 (nvptx_declare_function_name): ...here to emit OpenMP target region
5127 entrypoints. Handle TARGET_SOFT_STACK. Call
5128 nvptx_init_unisimt_predicate.
5129 (nvptx_output_set_softstack): New.
5130 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5131 (nvptx_gen_shuffle): Export.
5132 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5133 predicate.
5134 (nvptx_print_operand): Fix handling of instruction predicates.
5135 (nvptx_get_unisimt_master): New helper function.
5136 (nvptx_get_unisimt_predicate): Ditto.
5137 (nvptx_call_insn_is_syscall_p): Ditto.
5138 (nvptx_unisimt_handle_set): Ditto.
5139 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5140 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5141 (nvptx_handle_shared_attribute): New. Use it...
5142 (nvptx_attribute_table): ... here (new entry).
5143 (nvptx_record_offload_symbol): Handle NULL attributes.
5144 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5145 (nvptx_simt_vf): New.
5146 (TARGET_SIMT_VF): Define.
5147 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5148 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5149 -muniform-simt option is active.
5150 (STACK_SIZE_MODE): Define.
5151 (FIXED_REGISTERS): Adjust.
5152 (SOFTSTACK_SLOT_REGNUM): New.
5153 (SOFTSTACK_PREV_REGNUM): New.
5154 (REGISTER_NAMES): Adjust.
5155 (struct machine_function): New fields.
5156 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5157 (UNSPEC_VOTE_BALLOT): Ditto.
5158 (UNSPEC_LANEID): Ditto.
5159 (UNSPECV_NOUNROLL): Ditto.
5160 (atomic): New attribute.
5161 (predicable): New attribute. Generate predicated forms via
5162 define_cond_exec.
5163 (br_true): Mark as not predicable.
5164 (br_false): Ditto.
5165 (br_true_uni): Ditto.
5166 (br_false_uni): Ditto.
5167 (return): Ditto.
5168 (trap_if_true): Ditto.
5169 (trap_if_false): Ditto.
5170 (nvptx_fork): Ditto.
5171 (nvptx_forked): Ditto.
5172 (nvptx_joining): Ditto.
5173 (nvptx_join): Ditto.
5174 (nvptx_barsync): Ditto.
5175 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5176 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5177 (allocate_stack_<mode>): Remove unused pattern.
5178 (set_softstack_insn): New pattern.
5179 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5180 (nvptx_vote_ballot): New pattern.
5181 (omp_simt_lane): Ditto.
5182 (omp_simt_last_lane): Ditto.
5183 (omp_simt_ordered): Ditto.
5184 (omp_simt_vote_any): Ditto.
5185 (omp_simt_xchg_bfly): Ditto.
5186 (omp_simt_xchg_idx): Ditto.
5187 (nvptx_nounroll): Ditto.
5188 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5189 (atomic_exchange<mode>): Ditto.
5190 (atomic_fetch_add<mode>): Ditto.
5191 (atomic_fetch_addsf): Ditto.
5192 (atomic_fetch_<logic><mode>): Ditto.
5193 * config/nvptx/nvptx.opt (msoft-stack): New option.
5194 (muniform-simt): Ditto.
5195 (mgomp): Ditto.
5196 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5197 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5198 * doc/invoke.texi (msoft-stack): Document.
5199 (muniform-simt): Document
5200 (mgomp): Document.
5201 * doc/tm.texi: Regenerate.
5202 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5203 * target.def: Define it.
5204 * target-insns.def (omp_simt_lane): New.
5205 (omp_simt_last_lane): New.
5206 (omp_simt_ordered): New.
5207 (omp_simt_vote_any): New.
5208 (omp_simt_xchg_bfly): New.
5209 (omp_simt_xchg_idx): New.
5210
5211 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5212
5213 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5214 prototype.
5215 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5216 (ASM_OUTPUT_CASE_END): Likewise.
5217 * config/mips/mips.c (mips_set_text_contents_type): New function.
5218 (mips16_emit_constants): Record the pool's initial label number
5219 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5220 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5221 for `consttable' insns.
5222 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5223 for `consttable_end' insns.
5224 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5225 (consttable): Add operand.
5226 (consttable_end): New insn.
5227
5228 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5229
5230 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5231 * tree-if-conv.c (tree_if_conversion): Make public.
5232 * * tree-if-conv.h: New file.
5233 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5234 dynamic alias checks for epilogues.
5235 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5236 * tree-vect-loop.c: include tree-if-conv.h.
5237 (new_loop_vec_info): Add zeroing orig_loop_info field.
5238 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5239 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5240 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5241 using passed argument.
5242 (vect_transform_loop): Check if created epilogue should be returned
5243 for further vectorization with less vf. If-convert epilogue if
5244 required. Print vectorization success for epilogue.
5245 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5246 if it is required, pass loop_vinfo produced during vectorization of
5247 loop body to vect_analyze_loop.
5248 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5249 orig_loop_info.
5250 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5251 (LOOP_VINFO_EPILOGUE_P): New.
5252 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5253 (vect_do_peeling): Change prototype to return epilogue.
5254 (vect_analyze_loop): Add argument of loop_vec_info type.
5255 (vect_transform_loop): Return created loop.
5256
5257 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5258
5259 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5260 component as used also if LR_REGNO is a live input to the bb.
5261 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5262 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5263 (df_get_exit_block_use_set): Ditto.
5264 * df.h (df_scan_flags): New enum.
5265 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5266 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5267 df_update_entry_block_defs and df_update_exit_block_uses
5268 at the start; clear the flag and call those functions at the end.
5269
5270 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5271 Alan Hayward <alan.hayward@arm.com>
5272 David Sherwood <david.sherwood@arm.com>
5273
5274 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5275 nb_iterations to the number of latch iterations rather than the
5276 number of loop iterations.
5277
5278 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5279 Alan Hayward <alan.hayward@arm.com>
5280 David Sherwood <david.sherwood@arm.com>
5281
5282 * combine.c (maybe_swap_commutative_operands): New function.
5283 (combine_simplify_rtx): Use it.
5284 (change_zero_ext): Likewise.
5285 (make_compound_operation_int): New function, split out of...
5286 (make_compound_operation): ...here. Use
5287 maybe_swap_commutative_operands for both.
5288
5289 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5290
5291 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5292 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5293 * arm/arm-tables.opt: Regenerated.
5294 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5295 neon-vfpv3.
5296 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5297 and 'neon' are aliases for specific implementations.
5298
5299 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5300 Alan Hayward <alan.hayward@arm.com>
5301 David Sherwood <david.sherwood@arm.com>
5302
5303 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5304 and use it in the final call to gen_rtx_fmt_ee.
5305 (expand_vec_cond_expr): Update accordingly.
5306 (expand_vec_cmp_expr): Likewise.
5307
5308 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5309 Alan Hayward <alan.hayward@arm.com>
5310 David Sherwood <david.sherwood@arm.com>
5311
5312 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5313
5314 2016-11-16 Richard Biener <rguenther@suse.de>
5315
5316 PR middle-end/78333
5317 * gimplify.c (gimplify_function_tree): Do not instrument
5318 GNU extern inline functions.
5319
5320 2016-11-16 Martin Liska <mliska@suse.cz>
5321
5322 PR sanitizer/78270
5323 * gimplify.c (gimplify_switch_expr): Always save previous
5324 gimplify_ctxp->live_switch_vars.
5325
5326 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5329 zero_extract operations to allow a movb to occur.
5330 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5331 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5332 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5333 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5334 little endian arc.
5335
5336 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5337 Alan Hayward <alan.hayward@arm.com>
5338 David Sherwood <david.sherwood@arm.com>
5339
5340 * expr.c (emit_group_load_1): Tighten check for whether an
5341 access involves only one operand of a CONCAT. Use extract_bit_field
5342 for constants if the bit range does span the whole operand.
5343
5344 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5345 Alan Hayward <alan.hayward@arm.com>
5346 David Sherwood <david.sherwood@arm.com>
5347
5348 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5349
5350 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5351 Alan Hayward <alan.hayward@arm.com>
5352 David Sherwood <david.sherwood@arm.com>
5353
5354 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5355 all three iteration counts with an any_* test. Use a single update
5356 for each count. Fix the calculation of nb_iterations_estimate.
5357
5358 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5359
5360 * config/pdp11/pdp11.c: Include dbxout.h.
5361
5362 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5363
5364 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5365
5366 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5367
5368 PR target/78364
5369 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5370 proper ranges for an SBFX instruction.
5371 (extzv_t2): Likewise for UBFX.
5372
5373 2016-11-16 Richard Biener <rguenther@suse.de>
5374
5375 PR tree-optimization/78348
5376 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5377 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5378 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5379 revealed no dependency, PKIND_MEMMOVE otherwise.
5380
5381 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5382
5383 PR sanitizer/77823
5384 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5385 it points to non-NULL tree, use it instead of ubsan_create_data.
5386 (instrument_si_overflow): Handle vector signed integer overflow
5387 checking.
5388 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5389 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5390 vector IFN_UBSAN_CHECK_*.
5391 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5392 pass it through to ubsan_build_overflow_builtin.
5393 (expand_neg_overflow, expand_mul_overflow): Likewise.
5394 (expand_vector_ubsan_overflow): New function.
5395 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5396 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5397 (expand_arith_overflow): Adjust expand_*_overflow callers.
5398
5399 2016-11-16 Matthias Klose <doko@ubuntu.com>
5400
5401 * doc/install.texi: Remove references to java/libjava.
5402
5403 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5404
5405 * tree-ssa-coalesce.c (register_default_def): Remove
5406 register_ssa_partition.
5407 (create_outofssa_var_map): Likewise.
5408 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5409 * tree-ssa-live.h (register_ssa_partition): Likewise.
5410
5411 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5412
5413 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5414 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5415 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5416 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5417 rtx when all sub-rtx are also permanent.
5418 (attr_eq): Simplify.
5419 (attr_copy_rtx): Remove.
5420 (make_canonical, get_attr_value): Use attr_equal_p.
5421 (copy_boolean): Rehash NOT.
5422 (simplify_test_exp_in_temp,
5423 optimize_attrs): Remove call to attr_copy_rtx.
5424 (attr_alt_intersection, attr_alt_union,
5425 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5426 (make_automaton_attrs): Use attr_eq.
5427
5428 2016-11-15 Matthias Klose <doko@ubuntu.com>
5429
5430 * doc/install.texi: Remove references to java/libjava.
5431 * doc/sourcebuild.texi: Likewise.
5432 * doc/invoke.texi: Likewise.
5433 * doc/standards.texi: Likewise.
5434
5435 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5436 Alan Hayward <alan.hayward@arm.com>
5437 David Sherwood <david.sherwood@arm.com>
5438
5439 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5440 of VOIDmode.
5441 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5442 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5443 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5444 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5445 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5446 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5447 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5448
5449 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5450 Alan Hayward <alan.hayward@arm.com>
5451 David Sherwood <david.sherwood@arm.com>
5452
5453 * dce.c (check_argument_store): Pass the size instead of
5454 the memory reference.
5455 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5456
5457 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5458 Alan Hayward <alan.hayward@arm.com>
5459 David Sherwood <david.sherwood@arm.com>
5460
5461 * alias.c (canon_rtx): Use simplify_gen_binary.
5462
5463 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5464 Alan Hayward <alan.hayward@arm.com>
5465 David Sherwood <david.sherwood@arm.com>
5466
5467 * rtl.h (load_extend_op): Declare.
5468 * rtlanal.c (load_extend_op): New function.
5469 (nonzero_bits1): Use it.
5470 (num_sign_bit_copies1): Likewise.
5471 * cse.c (cse_insn): Likewise.
5472 * fold-const.c (fold_single_bit_test): Likewise.
5473 (fold_unary_loc): Likewise.
5474 * fwprop.c (free_load_extend): Likewise.
5475 * postreload.c (reload_cse_simplify_set): Likewise.
5476 (reload_cse_simplify_operands): Likewise.
5477 * combine.c (try_combine): Likewise.
5478 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5479 subreg_lowpart_p checks.
5480
5481 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5482 Alan Hayward <alan.hayward@arm.com>
5483 David Sherwood <david.sherwood@arm.com>
5484
5485 * combine.c (simplify_shift_const_1): Use the number of bits
5486 in the inner mode to determine the range of the shift.
5487 When handling shifts of vectors, skip any rules that apply
5488 only to scalars.
5489
5490 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5491 Alan Hayward <alan.hayward@arm.com>
5492 David Sherwood <david.sherwood@arm.com>
5493
5494 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5495 handling VOIDmode.
5496
5497 2016-11-15 Matthias Klose <doko@ubuntu.com>
5498
5499 * doc/install.texi: Remove references to gcj/libjava.
5500 * doc/invoke.texi: Likewise.
5501
5502 2016-11-15 Jeff Law <law@redhat.com>
5503
5504 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5505 parameter. Callers changed.
5506 (check-subpath_and_update_thread_path): Extracted from
5507 fsm_find_control_statement_thread_paths.
5508 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5509 (handle_phi, handle_assignment): Allow any constant node, not
5510 just INTEGER_CST.
5511
5512 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5513
5514 * config/arc/arc-arch.h: New file.
5515 * config/arc/arc-arches.def: Likewise.
5516 * config/arc/arc-cpus.def: Likewise.
5517 * config/arc/arc-options.def: Likewise.
5518 * config/arc/t-multilib: Likewise.
5519 * config/arc/genmultilib.awk: Likewise.
5520 * config/arc/genoptions.awk: Likewise.
5521 * config/arc/arc-tables.opt: Likewise.
5522 * config/arc/driver-arc.c: Likewise.
5523 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5524 * common/config/arc/arc-common.c (arc_handle_option): Trace
5525 toggled options.
5526 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5527 options; check for supported cpu against arc-cpus.def file.
5528 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5529 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5530 * config/arc/arc-c.def: Add emacs local variables.
5531 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5532 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5533 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5534 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5535 (DEFAULT_arc_fpu_build): Define.
5536 (DEFAULT_arc_mpy_option): Define.
5537 * config/arc/arc-protos.h (arc_init): Delete.
5538 * config/arc/arc.c (arc_cpu_name): New variable.
5539 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5540 (arc_arc700, arc_arc600, arc_arc601): New variable.
5541 (arc_init): Add static; remove selection of default tune value,
5542 cleanup obsolete error messages.
5543 (arc_override_options): Make use of .def files for selecting the
5544 right cpu and option configurations.
5545 * config/arc/arc.h (stdbool.h): Include.
5546 (TARGET_CPU_DEFAULT): Define.
5547 (CPP_SPEC): Remove mcpu=NPS400 handling.
5548 (arc_cpu_to_as): Declare.
5549 (EXTRA_SPEC_FUNCTIONS): Define.
5550 (OPTION_DEFAULT_SPECS): Likewise.
5551 (ASM_DEFAULT): Remove.
5552 (ASM_SPEC): Use arc_cpu_to_as.
5553 (DRIVER_SELF_SPECS): Remove deprecated options.
5554 (arc_base_cpu): Declare.
5555 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5556 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5557 variable.
5558 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5559 * config/arc/arc.md (attr_cpu): Remove.
5560 * config/arc/arc.opt (mno-mpy): Deprecate.
5561 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5562 (mcpu=ARCHS): Remove.
5563 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5564 Deprecate.
5565 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5566 (arc_fpu): Use new defines.
5567 (mpy-option): Change to use numeric or string like inputs.
5568 * config/arc/t-arc (driver-arc.o): New target.
5569 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5570 * config/arc/t-arc-newlib: Delete.
5571 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5572 * doc/invoke.texi (ARC): Update arc options.
5573
5574 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5575
5576 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5577 insn at the beginning of the constant pool.
5578 (mips_insert_insn_pseudos): New function.
5579 (mips_machine_reorg2): Call it.
5580 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5581 UNSPEC_INSN_PSEUDO enum values.
5582 (insn_pseudo, consttable): New insns.
5583
5584 2016-11-15 Michael Matz <matz@suse.de>
5585
5586 PR missed-optimization/77881
5587 * combine.c (simplify_comparison): Remove useless subregs
5588 also inside the loop, not just after it.
5589 (make_compound_operation): Recognize some subregs as being
5590 masking as well.
5591
5592 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5593 Alan Hayward <alan.hayward@arm.com>
5594 David Sherwood <david.sherwood@arm.com>
5595
5596 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5597 GET_MODE_SIZE typo.
5598
5599 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5600
5601 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5602 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5603
5604 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5605 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5606 vinsert{b,h} on ISA 3.0.
5607
5608 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5609
5610 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5611 and cmpnop in two steps: first the ones not accessed in original gimple
5612 expression in a endian independent way and then the ones not accessed
5613 in the final result in an endian-specific way.
5614 (bswap_replace): Stop doing big endian adjustment.
5615
5616 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5617
5618 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5619 (*ashl<mode>3_doubleword): Ditto.
5620
5621 2016-11-14 Martin Liska <mliska@suse.cz>
5622
5623 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5624
5625 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5626 Richard Biener <rguenther@suse.de>
5627
5628 * doc/invoke.texi (fgimple): Document.
5629 * dumpfile.h (TDF_GIMPLE): Add.
5630 * dumpfile.c (dump_options): Add gimple.
5631 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5632 for TDF_GIMPLE.
5633 (dump_gimple_label): Likewise.
5634 (dump_gimple_phi): Likewise.
5635 (dump_gimple_bb_header): Likewise.
5636 (dump_phi_nodes): Likewise.
5637 (pp_cfg_jump): Likewise. Pass in dump flags.
5638 (dump_implicit_edges): Adjust.
5639 * passes.c (pass_init_dump_file): Do not dump function header
5640 for TDF_GIMPLE.
5641 * tree-cfg.c (dump_function_to_file): Dump function return type
5642 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5643 GIMPLE stmts.
5644 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5645 (dump_generic_node): Likewise.
5646 * function.h (struct function): Add pass_startwith member.
5647 * passes.c (execute_one_pass): Implement startwith.
5648 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5649 and assign proper version for parsed ssa names.
5650 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5651 * internal-fn.c (expand_PHI): New function.
5652 * internal-fn.h (expand_PHI): Declared here.
5653 * internal-fn.def: New defination for PHI.
5654 * tree-cfg.c (lower_phi_internal_fn): New function.
5655 (build_gimple_cfg): Call it.
5656 (verify_gimple_call): Condition for passing label as arg in internal
5657 function PHI.
5658 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5659 present PHIs with arguments.
5660
5661 2016-11-14 Martin Liska <mliska@suse.cz>
5662
5663 PR bootstrap/78069
5664 * common.opt: Add prefer-atomic as a new enum value for
5665 -fprofile-update.
5666 * coretypes.h: Likewise.
5667 * doc/invoke.texi: Document the new option value.
5668 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5669 * tree-profile.c (tree_profiling): Select default value
5670 of -fprofile-update when 'prefer-atomic' is selected.
5671
5672 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5673
5674 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5675 (cortex_a57_alu_shift): ...here.
5676
5677 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5678
5679 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5680 Use bfx attribute.
5681 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5682 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5683 (<optab>si3_insn_uxtw): Likewise.
5684 (<optab><mode>3_insn): Likewise.
5685 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5686 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5687 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5688 (<optab><mode>): Likewise.
5689 (insv<mode>): Likewise.
5690 (andim_ashift<mode>_bfiz): Likewise.
5691 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5692 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5693 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5694 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5695 (exynos_m1_alu_p): Likewise.
5696 * config/arm/types.md: Add bfx.
5697 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5698
5699 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5700
5701 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5702 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5703
5704 2016-11-14 Richard Biener <rguenther@suse.de>
5705
5706 PR tree-optimization/78312
5707 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5708 flow-sensitive info.
5709
5710 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5711
5712 PR target/78093
5713 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5714 * config/avr/avr.opt (-mabsdata): New option.
5715 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5716 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5717 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5718 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5719 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5720 spec depending on AVR_ISA_LDS.
5721 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5722
5723 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5724
5725 * match.pd: Don't try to compare addresses of variables with
5726 DECL_VALUE_EXPR.
5727
5728 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5729
5730 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5731 (propagate_vr_accross_jump_function): Handle unary expressions.
5732 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5733 (load_from_param_1): New.
5734 (load_from_unmodified_param): Factor common part into load_from_param_1.
5735 (load_from_param): New.
5736 (compute_complex_assign_jump_func): Handle unary expressions.
5737 (update_jump_functions_after_inlining): Likewise.
5738 (ipa_write_jump_function): Likewise.
5739 (ipa_read_jump_function): Likewise.
5740
5741 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5742
5743 PR c/35503
5744 * doc/invoke.texi: Document Wrestrict.
5745 * pretty-print.c (pp_format): Add case for "Z" specifier.
5746 (test_pp_format): Test "Z" specifier.
5747
5748 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5749
5750 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5751 original function needs a static chain.
5752
5753 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5754
5755 PR target/78336
5756 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5757 ASM_OUTPUT_DEF.
5758
5759 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5760
5761 PR target/77957
5762 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5763 return early if !optional_tbtab.
5764
5765 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5766
5767 PR rtl-optimization/59461
5768 * doc/rtl.texi (paradoxical subregs): Add missing word.
5769 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5770 in modes with precision larger than that of last_set_mode.
5771 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5772 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5773 REGs to paradoxical SUBREGs.
5774 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5775 larger than a word before invoking LOAD_EXTEND_OP on it.
5776
5777 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5778
5779 PR target/78243
5780 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5781 element order for little endian ordering.
5782
5783 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5784 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5785 number.
5786
5787 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5788
5789 PR target/78310
5790 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5791 when calculating operand 2.
5792 (rotate to rotatex zext splitter): Ditto.
5793
5794 2016-11-11 Jeff Law <law@redhat.com>
5795
5796 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5797 function.
5798 (stmt_uses_name_in_undefined_way): New function, extracted from
5799 find_implicit_erroneous_behavior and extended for div/mod case.
5800 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5801 find_explicit_erroneous_behavior and extended for div/mod case.
5802 (find_implicit_erroneous_behavior): Use new helper function.
5803 (find_explicit_erroneous_behavior): Use new helper function.
5804
5805 2016-11-11 Richard Biener <rguenther@suse.de>
5806
5807 PR tree-optimization/71575
5808 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5809 bogus assert.
5810
5811 2016-11-11 Richard Biener <rguenther@suse.de>
5812
5813 PR middle-end/78295
5814 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5815 about uninitialized destination arg of BIT_INSERT_EXPR.
5816
5817 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5818
5819 PR c/37998
5820 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5821 terminology. Expand to remove ambiguity.
5822
5823 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5824
5825 PR rtl-optimization/78232
5826 * combine.c (try_combine): Add a big comment about why reusing i2dest
5827 is undesirable.
5828 (change_zero_ext): Do not call simplify_gen_binary, do the
5829 simplifications manually.
5830
5831 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5832
5833 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5834 enable HImode and QImode to go in vector registers by default if
5835 the -mvsx-small-integer option is enabled.
5836 (rs6000_secondary_reload_simple_move): Likewise.
5837 (rs6000_preferred_reload_class): Don't force integer constants to
5838 be loaded into vector registers that we can easily make into
5839 memory (or being created in the GPRs and moved over with direct move).
5840 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5841 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5842 vector extraction on ISA 3.0 when the scalar integer can be
5843 allocated in vector registers. Generate the VEC_SELECT directy,
5844 and don't use UNSPEC's to avoid having the scalar type in a vector
5845 register. Make the expander target registers, and let the
5846 combiner fold in results storing to memory, if the machine
5847 supports stores.
5848 (vsx_extract_<mode>_di): Likewise.
5849 (vsx_extract_<mode>_p9): Likewise.
5850 (vsx_extract_<mode>_di_p9): Likewise.
5851 (vsx_extract_<mode>_store_p9): Likewise.
5852 (vsx_extract_si): Likewise.
5853 (vsx_extract_<mode>_p8): Likewise.
5854 (p9_lxsi<wd>zx): Delete, no longer used.
5855 (p9_stxsi<wd>x): Likewise.
5856 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
5857 integers in vector registers for ISA 3.0.
5858 (QHI): Update comment.
5859 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
5860 vector extract instructions in sign/zero extend.
5861 (zero_extendhi<mode>): Likewise.
5862 (extendqi<mode>): Likewise.
5863 (extendhi<mode>2): Likewise.
5864 (HImode splitter for load/sign extend in vector register): Likewise.
5865 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
5866 optimizing floating point conversions to/from small data types and
5867 rewrite it to support QImode/HImode being allowed in vector
5868 registers on ISA 3.0.
5869 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5870 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
5871 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
5872 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
5873 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5874 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
5875 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
5876 VSPLITISW on ISA 2.07.
5877 (movhi_internal): Combine movhi_internal and movqi_internal into
5878 one mov<mode>_internal with an iterator. Add support for QImode
5879 and HImode being allowed in vector registers. Make large number
5880 of attributes and constraints easier to read.
5881 (movqi_internal): Likewise.
5882 (mov<mode>_internal): Likewise.
5883 (movdi_internal64): Fix constraint to allow loading -16..15 with
5884 VSPLITISW on ISA 2.07.
5885 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
5886 well as DImode.
5887
5888 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
5889
5890 PR rtl-optimization/78241
5891 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
5892 but emit initial peel copy if niter expr is not reliable.
5893
5894 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5895
5896 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
5897 (maybe_record_trace_start): If the CFI is different on the new and
5898 old paths, print out both to the dump file before ICEing.
5899
5900 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
5901
5902 * target.def (additional_allocno_class_p): New.
5903 * hooks.h (hook_bool_reg_class_t_false): New prototype.
5904 * hooks.c (hook_bool_reg_class_t_false): New.
5905 * ira.c (setup_allocno_and_important_classes): Use the new hook.
5906 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
5907 * doc/tm.texi: Update.
5908
5909 2016-11-10 Jason Merrill <jason@redhat.com>
5910
5911 * gengtype.c (new_structure): Append to structures list.
5912 (find_structure): Likewise.
5913
5914 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
5915
5916 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
5917 this_dir is 2. Check for this_dir non-zero before dir != this_dir
5918 check.
5919
5920 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5921
5922 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
5923 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
5924 TRUNC_DIV_EXPR.
5925 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
5926 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
5927 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
5928 teams distribute parallel for simd even to distribute and teams
5929 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
5930 OMP_CLAUSE_DEPEND_SINK case.
5931 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
5932 (omp_no_lastprivate): Removed.
5933 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
5934 (gimplify_omp_for): Likewise.
5935 (computable_teams_clause): Fail for automatic vars from current
5936 function not yet seen in bind expr.
5937 * langhooks.c (lhd_omp_scalar_p): New function.
5938 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
5939 * varpool.c (varpool_node::get_create): Set node->offloading
5940 even for DECL_EXTERNAL decls.
5941 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
5942 (LANG_HOOKS_OMP_SCALAR_P): Define.
5943 (LANG_HOOKS_DECLS): Use it.
5944
5945 2016-11-10 Martin Liska <mliska@suse.cz>
5946
5947 PR sanitizer/78270
5948 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
5949 only when SWITCH_BODY is a BIND_EXPR.
5950
5951 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
5952
5953 PR debug/78112
5954 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
5955 on the context only when it has no DIE yet.
5956
5957 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
5958
5959 * arm.h (target_cpus): Delete.
5960 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
5961 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
5962 (all_architectures): Likewise.
5963 (arm_option_override): Adjust use of CPU enums.
5964 (arm_sched_reorder): Likewise.
5965 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
5966 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
5967 * arm/genopt.sh (processor_type): Prefix enumeration entries with
5968 TARGET_CPU_.
5969 * arm-tables.opt: Regenerated.
5970
5971 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
5972
5973 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
5974 (falkor): New core.
5975 * config/aarch64/aarch64-tune.md: Regenerated.
5976 * config/arm/arm-cores.def (falkor): New core.
5977 * config/arm/arm-tables.opt: Regenerated.
5978 * config/arm/arm-tune.md: Regenerated.
5979 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
5980 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
5981 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
5982 (ARM Options/-mtune): Likewise.
5983
5984 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5985
5986 Revert
5987 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
5988
5989 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
5990 (propagate_vr_accross_jump_function): Likewise.
5991 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5992 (load_from_param_1): New.
5993 (load_from_unmodified_param): Factor common part into load_from_param_1.
5994 (load_from_param): New.
5995 (compute_complex_assign_jump_func): Handle unary expressions.
5996 (ipa_write_jump_function): Likewise.
5997 (ipa_read_jump_function): Likewise.
5998
5999 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6000
6001 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6002 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6003 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6004 is a const_int.
6005
6006 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6007
6008 * print-rtl-function.c: Include varasm.h.
6009 (print_any_param_name): New function.
6010 (print_param): New function.
6011 (print_rtx_function): Call print_param for each argument.
6012 * print-rtl.c (rtx_writer::finish_directive): New function.
6013 * print-rtl.h (rtx_writer::finish_directive): New decl.
6014
6015 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6016
6017 PR target/78262
6018 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6019 operand 0 as earlyclobber.
6020 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6021
6022 2016-11-09 Martin Liska <mliska@suse.cz>
6023
6024 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6025
6026 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6027
6028 PR target/77718
6029 * builtins.c (expand_builtin_memcmp): Formatting fix.
6030
6031 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6032 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6033 or of them, renumber other enumerators.
6034 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6035 * doc/invoke.texi: Document -fsanitize=shift-base and
6036 -fsanitize-shift-exponent, document -fsanitize=shift as
6037 having those 2 suboptions.
6038
6039 2016-11-09 Richard Biener <rguenther@suse.de>
6040
6041 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6042 * fold-const.c (tree_swap_operands_p): Likewise.
6043 (fold_binary_loc): Adjust.
6044 (fold_ternary_loc): Likewise.
6045 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6046 * gimple-fold.c (fold_stmt_1): Likewise.
6047 * gimple-match-head.c (gimple_resimplify2): Likewise.
6048 (gimple_resimplify3): Likewise.
6049 (gimple_simplify): Likewise.
6050 * tree-ssa-dom.c (record_equality): Likewise.
6051 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6052 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6053 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6054
6055 2016-11-09 Richard Biener <rguenther@suse.de>
6056
6057 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6058 (optimize_stmt): Remove redundant pre-propagation canonicalization
6059 of comparison operand order.
6060
6061 2016-11-09 Martin Liska <mliska@suse.cz>
6062
6063 * fold-const-call.c (fold_const_call): Fix the folding.
6064
6065 2016-11-09 Richard Biener <rguenther@suse.de>
6066
6067 * common.opt (flag_evaluation_order): Remove.
6068 * expr.c (expand_operands): Remove code guarded by
6069 flag_evaluation_order.
6070 * fold-const.c (reorder_operands_p): Remove, it always returns
6071 true.
6072 (negate_expr_p): Remove calls to reorder_operands_p.
6073 (fold_negate_expr): Likewise.
6074 (tree_swap_operands_p): Likewise.
6075 (fold_binary_loc): Likewise.
6076
6077 2016-11-09 Andreas Schwab <schwab@suse.de>
6078
6079 PR target/78254
6080 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6081 insns operating on a register.
6082
6083 2016-11-09 Richard Biener <rguenther@suse.de>
6084
6085 PR tree-optimization/78007
6086 * tree-vect-stmts.c (vectorizable_bswap): New function.
6087 (vectorizable_call): Call vectorizable_bswap for
6088 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6089
6090 2016-11-09 Richard Biener <rguenther@suse.de>
6091
6092 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6093 Look at the DR_BASE_ADDRESS object for forcing alignment.
6094
6095 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6096
6097 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6098 (propagate_vr_accross_jump_function): Likewise.
6099 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6100 (load_from_param_1): New.
6101 (load_from_unmodified_param): Factor common part into load_from_param_1.
6102 (load_from_param): New.
6103 (compute_complex_assign_jump_func): Handle unary expressions.
6104 (ipa_write_jump_function): Likewise.
6105 (ipa_read_jump_function): Likewise.
6106
6107 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6108
6109 PR ipa/78121
6110 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6111 Also fold constant passed as argument while computing value range.
6112 (propagate_constants_accross_call): Pass param type.
6113 * ipa-prop.c: export ipa_get_callee_param_type.
6114 * ipa-prop.h: export ipa_get_callee_param_type.
6115
6116 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6117
6118 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6119 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6120
6121 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6122
6123 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6124 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6125 ASAN_STACK_MAGIC_MIDDLE.
6126 (asan_global_struct): Increase the size of fields.
6127 (asan_add_global): Add new field constructor.
6128 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6129 __asan_version_mismatch_check_v8.
6130
6131 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6132
6133 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6134 at runtime.
6135
6136 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6137
6138 PR target/70799
6139 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6140 Handle ASHIFT and LSHIFTRT.
6141 (dimode_scalar_chain::compute_convert_gain): Ditto.
6142 (dimode_scalar_chain::convert_insn): Ditto.
6143
6144 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6145
6146 * gimple-ssa-store-merging.c: Include selftest.h
6147 (verify_array_eq): New function.
6148 (verify_shift_bytes_in_array): Likewise.
6149 (verify_shift_bytes_in_array_right): Likewise.
6150 (verify_clear_bit_region): Likewise.
6151 (verify_clear_bit_region_be): Likewise.
6152 (store_merging_c_tests): Likewise.
6153 * selftest.h (store_merging_c_tests): Declare prototype.
6154 * selftest-run-tests.c (selftest::run_tests): Run
6155 store_merging_c_tests.
6156
6157 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6158
6159 * config/arm/arm.opt (mold-rtx-costs): Delete.
6160 (mnew-generic-costs): Delete.
6161 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6162 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6163 (arm_size_rtx_costs): Likewise.
6164 (arm_slowmul_rtx_costs): Likewise.
6165 (arm_fastmul_rtx_costs): Likewise.
6166 (arm_xscale_rtx_costs): Likewise.
6167 (arm_9e_rtx_costs): Likewise.
6168 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6169 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6170 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6171 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6172 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6173 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6174 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6175 arm_cortex_m7_tune):
6176 Delete rtx_costs field.
6177 (arm_new_rtx_costs): Rename to...
6178 (arm_rtx_costs_internal): ... This.
6179 (arm_rtx_costs): Remove old way of doing rtx costs.
6180
6181 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6182
6183 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6184 (arm_fastmul_tune): Likewise.
6185 (arm_strongarm_tune): Likewise.
6186 (arm_xscale_tune): Likewise.
6187 (arm_9e_tune): Likewise.
6188 (arm_marvell_pj4_tune): Likewise.
6189 (arm_v6t2_tune): Likewise.
6190 (arm_v6m_tune): Likewise.
6191 (arm_fa726te_tune): Likewise.
6192
6193 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6194
6195 PR tree-optimization/78234
6196 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6197 in start != 0 case.
6198
6199 2016-11-08 Martin Liska <mliska@suse.cz>
6200
6201 PR testsuite/78242
6202 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6203 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6204 with a value expr. Do not add artificial variables to
6205 live_switch_vars. Use the debug counter.
6206 (gimplify_target_expr): Use the debug counter.
6207 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6208 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6209 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6210
6211 2016-11-08 Richard Biener <rguenther@suse.de>
6212
6213 * tree-vect-stmts.c (get_group_load_store_type): If the
6214 access is aligned do not trigger peeling for gaps.
6215 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6216 force alignment of vars with DECL_USER_ALIGN.
6217
6218 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6219
6220 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6221
6222 2016-11-08 Richard Biener <rguenther@suse.de>
6223
6224 PR tree-optimization/78205
6225 * tree-vect-stmts.c (vectorizable_load): Move check whether
6226 we may run into gaps when BB vectorizing SLP permutations ...
6227 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6228 here where we can do a more precise check.
6229
6230 2016-11-08 Richard Biener <rguenther@suse.de>
6231
6232 PR tree-optimization/78224
6233 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6234 Split the fallthru edge in case its successor may have PHIs.
6235 Do not free dominance info.
6236
6237 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6238
6239 PR target/78229
6240 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6241 EH info even for bzhi and pdep/pext.
6242
6243 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6244
6245 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6246 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6247
6248 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6249
6250 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6251 if appropriate.
6252 * config/rs6000/vector.md (div<mode>3): Ditto.
6253
6254 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6255
6256 * configure.ac (.hidden): Change to conftest_s string. Provide string
6257 for AIX assembler.
6258 (gcc_cv_ld_hidden): Yes for AIX.
6259 * configure: Regenerate.
6260
6261 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6262
6263 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6264 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6265 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6266 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6267 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6268 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6269 from #if to if.
6270 (rs6000_xcoff_visibility): New.
6271 (rs6000_xcoff_declare_function_name): Add visibility support.
6272 (rs6000_xcoff_asm_globalize_decl_name): New.
6273 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6274 (rs6000_asm_weaken_decl): New.
6275 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6276 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6277 reference function.
6278
6279 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6280
6281 PR driver/78206
6282 * incpath.c (remove_dup): Also silently ignore EPERM.
6283
6284 2016-11-07 Martin Jambor <mjambor@suse.cz>
6285
6286 * tree.c (verify_type_variant): Use pointer comparison to check that
6287 TYPE_SIZE_UNIT match.
6288
6289 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6290
6291 PR target/77834
6292 * dse.c (dse_step5): Call scan_reads even if just
6293 insn_info->frame_read. Improve and fix dump file messages.
6294
6295 PR target/78227
6296 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6297 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6298
6299 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6300
6301 PR middle-end/35691
6302 * match.pd: Add following two patterns:
6303 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6304 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6305
6306 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6307
6308 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6309 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6310 * rtl.h (duplicate_reg_notes): Declare.
6311 * rtlanal.c (duplicate_reg_note): New function.
6312
6313 PR rtl-optimization/77309
6314 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6315 don't assume an equality comparison for plain COMPARE.
6316 (simplify_comparison): Pass a more accurate code to
6317 make_compound_operation.
6318
6319 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6320
6321 * target.def (compute_pressure_classes): New target hook.
6322 * doc/tm.texi.in: Document it.
6323 * doc/tm.texi: Regenerate.
6324 * ira.c (setup_pressure_classes): Call target hook if defined.
6325
6326 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6327
6328 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6329 method.
6330 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6331 that have the default values.
6332 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6333 method.
6334 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6335 label string from expected dump.
6336 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6337 from expected dump.
6338
6339 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6340
6341 PR target/77834
6342 * alias.c (nonoverlapping_memrefs_p): If one decl is
6343 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6344
6345 2016-11-07 Richard Biener <rguenther@suse.de>
6346
6347 PR target/78229
6348 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6349 EH info.
6350
6351 2016-11-07 Richard Biener <rguenther@suse.de>
6352
6353 PR tree-optimization/78218
6354 * gimple-ssa-store-merging.c
6355 (pass_store_merging::terminate_all_aliasing_chains):
6356 Drop unused argument, fix alias check to also consider uses.
6357 (pass_store_merging::execute): Adjust.
6358
6359 2016-11-07 Richard Biener <rguenther@suse.de>
6360
6361 PR tree-optimization/78228
6362 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6363 undefined behavior.
6364
6365 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6366
6367 PR target/77822
6368 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6369 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6370 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6371 to restrict them to an appropriate range and add FAIL check if the
6372 region they specify is out of range. Delete useless constraint
6373 strings.
6374 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6375 2 and 3 to restrict their range and add pattern predicate.
6376
6377 2016-11-07 Martin Liska <mliska@suse.cz>
6378
6379 * asan.c (enum asan_check_flags): Move the enum to header file.
6380 (asan_init_shadow_ptr_types): Make type creation more generic.
6381 (shadow_mem_size): New function.
6382 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6383 Rewritten stack unpoisoning code.
6384 (build_shadow_mem_access): Add new argument return_address.
6385 (instrument_derefs): Instrument local variables if use after scope
6386 sanitization is enabled.
6387 (asan_store_shadow_bytes): New function.
6388 (asan_expand_mark_ifn): Likewise.
6389 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6390 * asan.h (enum asan_mark_flags): Moved here from asan.c
6391 (asan_protect_stack_decl): Protect all declaration that need
6392 to live in memory.
6393 (asan_sanitize_use_after_scope): New function.
6394 (asan_no_sanitize_address_p): Likewise.
6395 * cfgexpand.c (partition_stack_vars): Consider
6396 asan_sanitize_use_after_scope in condition.
6397 (expand_stack_vars): Likewise.
6398 * common.opt (-fsanitize-address-use-after-scope): New option.
6399 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6400 Explain the parameter.
6401 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6402 * gimplify.c (build_asan_poison_call_expr): New function.
6403 (asan_poison_variable): Likewise.
6404 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6405 variables that have address taken.
6406 (gimplify_decl_expr): Likewise.
6407 (gimplify_target_expr): Likewise for C++ temporaries.
6408 (sort_by_decl_uid): New function.
6409 (gimplify_expr): Unpoison all variables for a label we can jump
6410 from outside of a scope.
6411 (gimplify_switch_expr): Unpoison variables defined in the switch
6412 context.
6413 (gimplify_function_tree): Clear asan_poisoned_variables.
6414 (asan_poison_variables): New function.
6415 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6416 * internal-fn.c (expand_ASAN_MARK): New function.
6417 * internal-fn.def (ASAN_MARK): Declare.
6418 * opts.c (finish_options): Handle -fstack-reuse if
6419 -fsanitize-address-use-after-scope is enabled.
6420 (common_handle_option): Enable address sanitization if
6421 -fsanitize-address-use-after-scope is enabled.
6422 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6423 New parameter.
6424 * params.h: Likewise.
6425 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6426 * sanitizer.def: Define __asan_poison_stack_memory and
6427 __asan_unpoison_stack_memory functions.
6428 * asan.c (asan_mark_poison_p): New function.
6429 (transform_statements): Handle asan_mark_poison_p calls.
6430 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6431
6432 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6433
6434 PR driver/78196
6435 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6436
6437 2016-11-07 Martin Liska <mliska@suse.cz>
6438
6439 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6440 to time_profiler_counter_ptr.
6441
6442 2016-11-07 Richard Biener <rguenther@suse.de>
6443
6444 PR tree-optimization/37150
6445 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6446 parameter.
6447 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6448 (vect_analyze_slp_cost_1): Account for the real number of
6449 permutations emitted and for dead loads.
6450 (vect_transform_slp_perm_load): Add n_perms parameter counting
6451 the number of emitted permutations.
6452 * tree-vect-stmts.c (vectorizable_load): Adjust.
6453
6454 2016-11-07 Richard Biener <rguenther@suse.de>
6455
6456 PR tree-optimization/78189
6457 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6458 alignment computation.
6459
6460 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6461
6462 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6463
6464 2016-11-05 Martin Sebor <msebor@redhat.com>
6465
6466 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6467 documentation.
6468
6469 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6470
6471 PR bootstrap/78188
6472 PR c++/71848
6473 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6474
6475 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6476
6477 PR target/77834
6478 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6479 doesn't have rtl set.
6480
6481 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6482
6483 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6484 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6485 rs6000_gimple_fold_builtin.
6486 (rs6000_gimple_fold_builtin): New function. Add handling for
6487 early expansion of vector addition builtins.
6488
6489 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6490
6491 * expr.h (copy_blkmode_from_reg): Delete.
6492 * expr.c (copy_blkmode_from_reg): Make static.
6493
6494 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6495
6496 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6497 * combine.c (LOAD_EXTEND_OP): Delete.
6498 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6499 * cse.c (LOAD_EXTEND_OP): Delete.
6500 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6501 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6502 * postreload.c (LOAD_EXTEND_OP): Delete.
6503 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6504 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6505 (find_reloads): Likewise.
6506 * reload1.c (eliminate_regs_1): Likewise.
6507 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6508 (num_sign_bit_copies1): Likewise.
6509
6510 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6511
6512 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6513 (selftest::ix86_test_dumping_hard_regs): New function.
6514 (selftest::ix86_run_selftests): New function.
6515 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6516 selftest::ix86_run_selftests.
6517 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6518 * doc/tm.texi: Regenerate
6519 * selftest-rtl.h: New file.
6520 * rtl-tests.c: Include "selftest-rtl.h".
6521 (selftest::assert_rtl_dump_eq): Make non-static.
6522 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6523 (selftest::test_dumping_regs): Update comment.
6524 * selftest-run-tests.c: Include "target.h".
6525 (selftest::run_tests): If non-NULL, call
6526 targetm.run_target_selftests.
6527 * target.def (run_target_selftests): New hook.
6528
6529 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6530
6531 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6532 representative core for this architecture.
6533 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6534 * config/arm/arm-tables.opt: Regenerate.
6535 * config/arm/arm-tune.md: Likewise.
6536 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6537 valid -mcpu options.
6538 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6539
6540 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6541
6542 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6543 representative core for this architecture.
6544 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6545 * config/arm/arm-tables.opt: Regenerate.
6546 * config/arm/arm-tune.md: Likewise.
6547 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6548 this tuning parameters apply to in the comment.
6549 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6550 valid -mcpu options.
6551 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6552
6553 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6554
6555 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6556 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6557 where cond_expr can't be a lvalue.
6558
6559 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6560
6561 * config/arc/arc.c (arc_process_double_reg_moves): Use
6562 gen_dexcl_2op call.
6563 * config/arc/arc.md (movsi_insn): Disable unsupported move
6564 instructions for ARCv2 cores.
6565 (movdi): Use prepare_move_operands.
6566 (movsf, movdf): Use move_dest_operand predicate.
6567 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6568 present.
6569 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6570 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6571 also a destination.
6572 (dexcl_3op_peep2_insn_nores): Likewise.
6573 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6574 (LINK_COMMAND_SPEC): Remove.
6575
6576 2016-11-04 Richard Biener <rguenther@suse.de>
6577
6578 PR middle-end/78185
6579 * loop-invariant.c (find_exits): Record entering inner
6580 loops as possibly exiting to handle infinite sub-loops.
6581 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6582 (fill_always_executed_in_1): Honor infinite child loops.
6583
6584 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6585
6586 PR target/78192
6587 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6588 has already been adjusted for endianness, so don't adjust it any
6589 further.
6590
6591 PR target/77993
6592 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6593 ICmode unless we have standard PowerPC floating point.
6594 * config/rs6000/rs6000.md (FP iterator): Likewise.
6595 (FMOVE128 iterator): Likewise.
6596
6597 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6598 Alexandre Oliva <aoliva@redhat.com>
6599 Jason Merrill <jason@redhat.com>
6600
6601 PR debug/28767
6602 PR debug/56974
6603 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6604 langhook.
6605 * langhooks.c (lhd_type_dwarf_attribute): New function.
6606 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6607 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6608 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6609 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6610 (check_qualified_type, check_aligned_type): Call it.
6611 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6612 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6613 check_base_type and check_lang_type.
6614 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6615 return early. For pointer-to-data-member add DW_AT_use_location
6616 attribute.
6617 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6618 if needed.
6619 (gen_type_die_with_usage): Don't use type_main_variant
6620 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6621 check_base_type and check_lang_type. Formatting fixes. Call
6622 get_debug_type langhook.
6623
6624 2016-11-03 Jason Merrill <jason@redhat.com>
6625
6626 * tree.c (check_lang_type): New.
6627 (check_qualified_type): Use it.
6628 (check_aligned_type): Use it.
6629 * tree.h: Declare it.
6630
6631 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6632
6633 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6634 (arm*-freebsd*): Likewise.
6635 (arm*-*-netbsdelf*): Likewise.
6636 (arm*-*-linux*): Likewise.
6637 (arm*-*-uclinux*eabi*): Likewise.
6638 (arm*-*-phoenix*): Likewise.
6639 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6640 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6641 specified. Default to arm6 if target_cpu_cname is not set.
6642 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6643 default cpu has been correctly configured.
6644 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6645 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6646 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6647 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6648 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6649 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6650 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6651
6652 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6653
6654 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6655 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6656 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6657 (output_cfa_loc): Support DW_CFA_val_expression.
6658 (output_cfa_loc_raw): Likewise.
6659 (output_cfi): Likewise.
6660 (output_cfi_directive): Likewise.
6661 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6662 (dw_cfi_oprnd2_desc): Likewise.
6663 (mem_loc_descriptor): Recognize new pattern generated for value
6664 expression.
6665
6666 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6667
6668 PR rtl-optimization/78186
6669 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6670 well, when converting to IOR.
6671
6672 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6673
6674 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6675 (vec_interleave_highv8qi): Likewise.
6676
6677 2016-11-03 Martin Liska <mliska@suse.cz>
6678
6679 * profile.c (instrument_values): Fix coding style.
6680 (branch_prob): Use renamed function.
6681 * tree-profile.c (init_ic_make_global_vars): Likewise.
6682 (gimple_init_edge_profiler): Rename to
6683 gimple_init_gcov_profiler.
6684 tree_time_profiler_counter variable declaration.
6685 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6686 emission.
6687 * value-prof.h: Remove an argument.
6688
6689 2016-11-03 Richard Biener <rguenther@suse.de>
6690
6691 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6692 symtab_node::get_create.
6693
6694 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6695
6696 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6697 Move comments into more natural position.
6698
6699 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6700
6701 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6702 (PTRDIFF_TYPE): Define as int.
6703
6704 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6705
6706 * ccmp.c (expand_ccmp_expr_1): Adjust.
6707 (expand_ccmp_expr): Likewise.
6708 (expand_ccmp_next): Likewise.
6709 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6710 (aarch64_gen_ccmp_first): Likewise.
6711 * doc/tm.texi: Regenerate.
6712 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6713 (gen_ccmp_next): Likewise.
6714
6715 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6716
6717 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6718 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6719
6720 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6721
6722 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6723 darwin_rename_builtins here.
6724 (ix86_expand_divmod_libfunc): New.
6725 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6726 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6727
6728 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6729 Nathan Sidwell <nathan@acm.org>
6730
6731 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6732
6733 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6734
6735 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6736 New function.
6737 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6738 to format MODE_INT and MODE_PARTIAL_INT literals.
6739
6740 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6741
6742 PR target/78168
6743 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6744 NULL if TARGET_SPE_ABI.
6745
6746 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6747
6748 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6749 clear padding bits even when they're less than a byte.
6750
6751 2016-11-02 Richard Biener <rguenther@suse.de>
6752
6753 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6754 (imm_store_chain_info::output_merged_stores): Force base_addr
6755 to be proper GIMPLE for a MEM_REF address.
6756 (pass_store_merging::execute): Restrict negative bitpos
6757 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6758 check. Take into account non-NULL_TREE offset if the base
6759 is already addressable.
6760
6761 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6762
6763 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6764 New pattern.
6765 (aarch64_be_crypto_sha1hv4si): New pattern.
6766
6767 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6768
6769 * config/aarch64/aarch64.md (add<mode>3): Remove
6770 redundant code. Don't split frame based additions.
6771
6772 2016-11-02 Richard Biener <rguenther@suse.de>
6773
6774 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6775 redundant val and dest members.
6776 (store_immediate_info::store_immediate_info): Adjust.
6777 (merged_store_group::merged_store_group): Adjust.
6778 (merged_store_group::apply_stores): Likewise.
6779 (struct imm_store_chain_info): Add base_addr field.
6780 (imm_store_chain_info::imm_store_chain_info): New constructor.
6781 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6782 (imm_store_chain_info::output_merged_store): Likewise. Use
6783 addr_base which is already the address.
6784 (imm_store_chain_info::output_merged_stores): Likewise.
6785 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6786 imm_store_chain_info instead of base. Fix alias check.
6787 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6788 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6789 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6790 use the address of the base and adjust for other changes.
6791
6792 2016-11-02 Martin Liska <mliska@suse.cz>
6793
6794 * fold-const-call.c (host_size_t_cst_p): Test whether
6795 t is convertible to size_t.
6796
6797 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6798
6799 PR tree-optimization/78170
6800 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6801 introduced by native_encode_expr on little-endian as well.
6802
6803 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6804
6805 PR tree-optimization/78162
6806 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6807 as invalid.
6808
6809 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6810
6811 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6812 function comment.
6813 (aarch64_next_callee_save): Likewise.
6814 (aarch64_pushwb_single_reg): Likewise.
6815 (aarch64_gen_storewb_pair): Likewise.
6816 (aarch64_push_regs): Likewise.
6817 (aarch64_gen_loadwb_pair): Likewise.
6818 (aarch64_pop_regs): Likewise.
6819 (aarch64_gen_store_pair): Likewise.
6820 (aarch64_gen_load_pair): Likewise.
6821 (aarch64_save_callee_saves): Likewise.
6822 (aarch64_restore_callee_saves): Likewise.
6823
6824 2016-11-02 Richard Biener <rguenther@suse.de>
6825
6826 PR tree-optimization/78035
6827 PR tree-optimization/77964
6828 * gimple-pretty-print.c (pp_points_to_solution): Print
6829 vars_contains_interposable.
6830 * tree-ssa-alias.c: Include varasm.h.
6831 (ptrs_compare_unequal): Check vars_contains_interposable and
6832 decl_binds_to_current_def_p.
6833 (dump_points_to_solution): Dump vars_contains_interposable.
6834 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6835 flag.
6836 * tree-ssa-structalias.c: Include varasm.h.
6837 (set_uids_in_ptset): Record whether vars contains a
6838 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6839 (ipa_escaped_pt): Update initializer.
6840
6841 2016-11-02 Richard Biener <rguenther@suse.de>
6842
6843 PR tree-optimization/78047
6844 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6845 fake field at offset zero conservatively regarding to may_have_pointers.
6846
6847 2016-11-02 Richard Biener <rguenther@suse.de>
6848
6849 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6850 infer_value_range on stmt ops and update value-ranges.
6851 Dump visited stmts and blocks.
6852 (evrp_dom_walker::push_value_range): Dump changes.
6853 (evrp_dom_walker::pop_value_range): Likewise.
6854 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6855
6856 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6857
6858 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
6859 rtx_insn *.
6860 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
6861
6862 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6863
6864 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
6865 and adjust for that.
6866 * cfgrtl.h (delete_insn_chain): Adjust prototype.
6867
6868 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6869
6870 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
6871 to rtx_insn *.
6872 (transcode_memory_rtx): Likewise.
6873 (move_to_acc): Likewise.
6874 (move_from_acc): Likewise.
6875 (move_acc_to_reg): Likewise.
6876 (move_to_x): Likewise.
6877 (move_to_hl): Likewise.
6878 (move_to_de): Likewise.
6879 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
6880 (rs6000_emit_savres_rtx): Likewise.
6881 (rs6000_emit_prologue): Likewise.
6882 * reorg.c (update_reg_unused_notes): Likewise.
6883 * rtl.h (remove_note): Adjust prototype.
6884 * rtlanal.c (remove_note): Make argument type rtx_insn *.
6885
6886 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6887
6888 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
6889 variables so some can be rtx_insn *.
6890 (alpha_emit_xfloating_libcall): Likewise.
6891 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
6892 (mips_legitimize_tls_address): Likewise.
6893 * optabs.c (expand_binop): Likewise.
6894 * reload1.c (gen_reload): Likewise.
6895
6896 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6897
6898 * reorg.c (relax_delay_slots): Split up the trial variable.
6899
6900 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6901
6902 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
6903 of variables rtx_insn *.
6904 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
6905 (legitimize_tls_address): Likewise.
6906 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6907 (bfin_gen_bundles): Likewise.
6908 * config/c6x/c6x.c (reorg_split_calls): Likewise.
6909 (c6x_reorg): Likewise.
6910 * config/frv/frv.c (frv_reorder_packet): Likewise.
6911 * config/i386/i386.c (ix86_split_idivmod): Likewise.
6912 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
6913 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
6914 * config/mn10300/mn10300.c: Likewise.
6915 * config/rl78/rl78.c: Likewise.
6916 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
6917 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
6918 (sh_expand_cmpnstr): Likewise.
6919 (sh_expand_strlen): Likewise.
6920 (sh_expand_setmem): Likewise.
6921 * config/sh/sh.md: Likewise.
6922 * emit-rtl.c (emit_pattern_before): Likewise.
6923 * except.c: Likewise.
6924 * final.c: Likewise.
6925 * jump.c: Likewise.
6926
6927 2016-11-01 Jason Merrill <jason@redhat.com>
6928
6929 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
6930 a COND_EXPR with constant condition.
6931
6932 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6933
6934 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
6935 and its initialization.
6936
6937 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6938
6939 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
6940 HAVE_AS_LEB128.
6941
6942 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6943
6944 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
6945 argument, don't call add_linkage_name if it is true.
6946 (gen_variable_die): For C++ inline static data members, consider the
6947 initial call when old_die is NULL to be declaration and call
6948 add_name_and_src_coords_attributes in that case with true as
6949 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
6950 (gen_member_die): For C++ inline static data members, emit a
6951 definition DIE right away in DW_TAG_compile_unit context.
6952
6953 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
6954
6955 PR target/78166
6956 * config/pa/pa.md: Add new shift/add patterns to handle
6957 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
6958
6959 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
6960
6961 * config/xtensa/xtensa-protos.h
6962 (xtensa_use_return_instruction_p): New prototype.
6963 * config/xtensa/xtensa.c (xtensa_current_frame_size,
6964 xtensa_callee_save_size): Remove.
6965 (struct machine_function): Add new fields: current_frame_size,
6966 callee_save_size, frame_laid_out and epilogue_done.
6967 (compute_frame_size, xtensa_expand_prologue,
6968 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
6969 cfun->machine->callee_save_size and xtensa_current_frame_size
6970 with cfun->machine->current_frame_size.
6971 (compute_frame_size): Update cfun->machine->frame_laid_out and
6972 don't update frame layout after reload completion.
6973 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
6974 instead of zeroing xtensa_current_frame_size.
6975 (xtensa_use_return_instruction_p): New function.
6976 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
6977 declaration.
6978 (INITIAL_ELIMINATION_OFFSET): Use return value of
6979 compute_frame_size instead of xtensa_current_frame_size value.
6980 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
6981 function xtensa_use_return_instruction_p instead of inline code.
6982
6983 2016-11-01 Jakub Jelinek <jakub@redhat.com>
6984
6985 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
6986 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
6987 * dwarf2out.c (rnglist_idx): New variable.
6988 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
6989 (DEBUG_RNGLISTS_SECTION): Define.
6990 (ranges_base_label): New variable.
6991 (size_of_die) <case dw_val_class_range_list>: If using
6992 DW_FORM_rnglistx, count size of uleb128 of range list index.
6993 (value_format) <case dw_val_class_range_list>: For
6994 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
6995 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
6996 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
6997 (add_ranges_num): Remove useless prototype. Don't multiply
6998 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
6999 for new fields added to dw_ranges struct.
7000 (add_ranges): Add maybe_new_sec argument and pass it
7001 through to add_ranges_num.
7002 (note_rnglist_head): New function.
7003 (add_ranges_by_labels): Pass true as maybe_new_sec to
7004 add_ranges_num, call note_rnglist_head on the head of the list.
7005 (output_ranges): Add function comment. Switch to
7006 .debug_ranges section here and emit .Ldebug_ranges0 label.
7007 (index_rnglists, output_rnglists): New functions.
7008 (gen_subprogram_die): Formatting fixes.
7009 (add_high_low_attributes): Don't divide offsets
7010 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7011 first list element or when pointing into the middle of
7012 a list. Pass true as second argument to add_ranges on the
7013 first block fragment after cold/hot section switch.
7014 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7015 section instead of .debug_ranges. Initialize
7016 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7017 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7018 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7019 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7020 Call output_rnglists for -gdwarf-5.
7021 (dwarf2out_c_finalize): Clear rnglist_idx.
7022
7023 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7024
7025 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7026
7027 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7028 Tamar Christina <tamar.christina@arm.com>
7029
7030 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7031 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7032 (vmaxnmq_f32): Likewise.
7033 (vminnm_f32): Likewise.
7034 (vminnmq_f32): Likewise.
7035 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7036 (vminnm): Likewise.
7037 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7038 expander.
7039
7040 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7041
7042 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7043 binary floating point types supported by the hardware except for
7044 double.
7045 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7046 vector instruction for optimizing extracting a SImode from a
7047 V4SImode vector and converting it to floating point.
7048 (vsx_xvcvuxwdp_df): Likewise.
7049 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7050 registers to be any VSX register. Move stores to the end of the
7051 constraints.
7052 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7053 to optimize extracting a SImode from a V4SImode vector and
7054 converting it to a binary floating point type supported by the
7055 hardware. Use the vector converts instead of extracting the
7056 element, sign extending it, and then converting it to double.
7057 Other floating point types than double first convert to double,
7058 then the double is converted to that type.
7059 (vsx_extract_si_<uns>float_<mode>): Likewise.
7060
7061 2016-10-31 Andrew Pinski <apinski@cavium.com>
7062
7063 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7064 Rewrite handling of part num to handle the case where
7065 multiple implementers share the same part num.
7066
7067 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7068 Jakub Jelinek <jakub@redhat.com>
7069
7070 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7071 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7072
7073 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7074
7075 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7076 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7077 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7078 (is_cu_die, is_unit_die): Likewise.
7079 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7080 comments for DWARF5 DW_UT_type units.
7081 (output_compilation_unit_header): Add UT argument, output
7082 start of DWARF5 .debug_info section header.
7083 (output_comp_unit): Add dwo_id argument. Adjust
7084 output_compilation_unit_header caller, for DW_UT_split_compile
7085 emit dwo_id field, otherwise padding1. Emit padding2 field.
7086 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7087 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7088 (output_skeleton_debug_sections): Add dwo_id argument, for
7089 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7090 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7091 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7092 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7093 DW_TAG_compile_unit for skeleton unit die. Don't add
7094 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7095 address to output_comp_unit and output_skeleton_debug_sections.
7096
7097 * dwarf2out.c (debug_line_str_section): New variable.
7098 (debug_line_str_hash): Likewise.
7099 (DEBUG_LINE_STR_SECTION): Define.
7100 (set_indirect_string): Handle DW_FORM_line_strp like
7101 DW_FORM_strp.
7102 (find_string_form): Fix up formatting.
7103 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7104 Fix up indentation.
7105 (output_die): Handle DW_FORM_line_strp.
7106 (DWARF5_USE_DEBUG_LINE_STR): Define.
7107 (output_line_string): New function.
7108 (output_file_names): Add -gdwarf-5 support.
7109 (output_line_info): Likewise.
7110 (init_sections_and_labels): Initialize debug_line_str_section.
7111 (output_indirect_string): Change 2nd argument from void *
7112 to enum dwarf_form form, compare with form rather than
7113 DW_FORM_strp.
7114 (output_indirect_strings): Pass DW_FORM_strp to
7115 output_indirect_string traversion.
7116 (dwarf2out_finish): Output .debug_line_str strings.
7117 (dwarf2out_c_finalize): Clear debug_line_str_section and
7118 debug_line_str_hash.
7119
7120 2016-10-31 Tom Tromey <tom@tromey.com>
7121
7122 PR debug/77315
7123 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7124 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7125 DW_OP_GNU_push_tls_address case.
7126 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7127
7128 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7129
7130 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7131 for frame_offset_rel bit.
7132 (struct array_descr_info): Add rank field.
7133 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7134 and placeholder_seen fields.
7135 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7136 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7137 DW_OP_pick 1 into DW_OP_over.
7138 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7139 gen_variant_part): Clear placeholder_{arg,seen}.
7140 (loc_list_from_tree_1): Drop const from context argument.
7141 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7142 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7143 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7144 context argument.
7145 (add_scalar_info): Drop const from context argument. Handle
7146 context->placeholder_arg.
7147 (add_bound_info): Drop const from context argument.
7148 (gen_descr_array_type_die): Drop const from ctx variable.
7149 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7150 attribute and use a single DW_TAG_generic_subrange instead of
7151 7 DW_TAG_subrange_type for assumed rank arrays.
7152
7153 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7154 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7155 from bool to 1-bit uchar bitfield. Add num_assigned and
7156 offset_emitted bitfields.
7157 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7158 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7159 dw_val_class_loclistsptr.
7160 (new_addr_loc_descr): Fix up formatting.
7161 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7162 (add_AT_low_high_pc): Fix up formatting.
7163 (add_AT_loclistsptr): New function.
7164 (AT_lbl): Allow dw_val_class_loclistsptr.
7165 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7166 Handle dw_val_class_loclistsptr.
7167 (loc_list_idx): New variable.
7168 (output_loclists_offsets, assign_location_list_indexes): New
7169 functions.
7170 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7171 add size_of_uleb128 of the index. Drop never used
7172 dwarf_split_debug_info AT_index handling. Handle
7173 dw_val_class_loclistsptr.
7174 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7175 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7176 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7177 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7178 DW_FORM_loclistx indexes.
7179 (output_attr_index_or_value): Fix up formatting. Don't handle
7180 dw_val_class_loc_list here.
7181 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7182 For dw_val_class_loc_list call output_loc_list_offset rather than
7183 output_attr_index_or_value.
7184 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7185 or .debug_loclists.dwo section name for debug_loc_section.
7186 (resolve_addr_in_expr): Formatting fix.
7187 (index_location_lists): Likewise.
7188 (dwarf2out_finish): If there are any location lists, for
7189 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7190 index_location_lists only if have_location_lists. Call
7191 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7192 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7193 -gsplit-dwarf also emit offset table.
7194
7195 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7196 (size_of_die, value_format, output_die): Use
7197 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7198 dw_val_class_wide_int.
7199
7200 * dwarf2out.c (dwarf_op): Renamed to ...
7201 (dwarf_OP): ... this.
7202 (convert_descriptor_to_mode, scompare_loc_descriptor,
7203 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7204 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7205 callers.
7206 (dwarf_AT, dwarf_TAG): New functions.
7207 (check_die): Disallow DW_AT_call_all_calls next to
7208 DW_AT_GNU_all_call_sites.
7209 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7210 and attributes instead of the corresponding GNU tag and attributes.
7211 (gen_subprogram_die): Likewise. Emit call site information even
7212 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7213 DW_AT_defaulted in comment.
7214 (resolve_addr): Handle DW_AT_call_origin attribute on
7215 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7216 DW_TAG_GNU_call_site DIE.
7217
7218 * dwarf2out.c (dwarf_op): New function.
7219 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7220 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7221 (output_loc_operands, output_loc_operands_raw): Likewise.
7222 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7223 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7224 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7225 if dwarf_version < 5.
7226 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7227 DW_OP_GNU_xxx.
7228 (scompare_loc_descriptor, ucompare_loc_descriptor,
7229 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7230 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7231 optimize_location_into_implicit_ptr): Likewise. Only punt for
7232 !dwarf_strict if dwarf_version < 5.
7233 (string_cst_pool_decl): Adjust comment.
7234 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7235
7236 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7237 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7238 (struct dw_val_node): Add val_file_implicit field.
7239 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7240 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7241 output_die): Handle dw_val_class_const_implicit,
7242 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7243 (abbrev_die_table): Change into va_gc vec.
7244 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7245 ABBREV_DIE_TABLE_INCREMENT): Remove.
7246 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7247 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7248 variables.
7249 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7250 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7251 vectors.
7252 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7253 functions.
7254 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7255 the implicit value.
7256 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7257 vec.
7258 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7259 unit. Call optimize_abbrev_table.
7260 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7261 abbrev_die_table being a va_gc vec.
7262
7263 PR tree-optimization/77860
7264 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7265 also integral complex and vector constants.
7266
7267 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7268 optimize_macinfo_range, save_macinfo_strings): Replace
7269 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7270 (output_macinfo): Likewise. Emit .debug_macro* rather than
7271 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7272 (init_sections_and_labels): Use .debug_macro* labels rather than
7273 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7274 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7275 or DW_AT_GNU_macros for -gdwarf-5.
7276
7277 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7278
7279 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7280
7281 2016-09-11 Le-Chun Wu <lcwu@google.com>
7282 Mark Wielaard <mjw@redhat.com>
7283
7284 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7285 (Wshadow=local): New option.
7286 (Wshadow-local): Hidden alias for -Wshadow=local.
7287 (Wshadow=compatible-local): New option.
7288 (Wshadow-compatible-local): Hidden alias for
7289 -Wshadow=compatible-local.
7290 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7291 Wshadow=compatible-local.
7292
7293 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7294
7295 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7296 Check slp defs for COND_EXPR by swapping/inverting operands if the
7297 new parameter SWAP indicates so.
7298 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7299 is isomorphic to the first stmt via swapping/inverting. Store swap
7300 information in the new parameter SWAP.
7301 (vect_build_slp_tree): New local array SWAP and pass it to function
7302 vect_build_slp_tree_1. Cleanup result handling code for function
7303 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7304 order of operands has been fixed as indicated by SWAP[i].
7305
7306 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7307
7308 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7309 unnecessary data dependence check after visited store stmt.
7310
7311 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7312
7313 PR tree-optimization/71915
7314 PR tree-optimization/71490
7315 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7316 stride_type field.
7317 (find_basis_for_base_expr): Require stride types to match when
7318 seeking a basis.
7319 (alloc_cand_and_find_basis): Record the stride type.
7320 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7321 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7322 the expressions having those types.
7323 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7324 (create_mul_ssa_cand): Likewise.
7325 (create_mul_imm_cand): Likewise.
7326 (create_add_ssa_cand): Likewise.
7327 (create_add_imm_cand): Likewise.
7328 (legal_cast_p_1): Change interface to accept types rather than the
7329 expressions having those types.
7330 (legal_cast_p): Pass types to legal_cast_p_1.
7331 (slsr_process_cast): Pass stride type to
7332 alloc_cand_and_find_basis.
7333 (slsr_process_copy): Likewise.
7334 (dump_candidate): Display stride type when a cast exists.
7335 (create_add_on_incoming_edge): Introduce a cast when necessary for
7336 the stride type.
7337 (analyze_increments): Change the code checking for invalid casts
7338 to rely on the stride type, and update the documentation and
7339 example. Change the code checking for pointer multiplies to rely
7340 on the stride type.
7341 (insert_initializers): Introduce a cast when necessary for the
7342 stride type. Use the stride type for the type of the initializer.
7343
7344 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7345
7346 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7347
7348 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7349
7350 PR rtl-optimization/77919
7351 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7352 into memory if both modes are complex and their inner modes have the
7353 same precision. If the two modes are different complex modes, convert
7354 each part separately and generate a new CONCAT.
7355
7356 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7357
7358 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7359
7360 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7361
7362 PR target/78148
7363 * gimple-ssa-store-merging.c
7364 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7365 instead of SET_TYPE_ALIGN on shared integral type.
7366
7367 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7368
7369 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7370 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7371 Adjust comment.
7372
7373 2016-10-28 Jeff Law <law@redhat.com>
7374
7375 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7376 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7377
7378 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7379
7380 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7381
7382 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7383
7384 * target.def (min_arithmetic_precision): New hook.
7385 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7386 * doc/tm.texi: Regenerate.
7387 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7388 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7389 * targhooks.c (default_min_arithmetic_precision): New function.
7390 * targhooks.h (default_min_arithmetic_precision): Declare.
7391 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7392 (sparc_min_arithmetic_precision): New function.
7393
7394 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7395
7396 PR target/71847
7397 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7398 Swap commutative operands in new RTL if needed. Handle zero_ext
7399 in the set_dest.
7400 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7401 PATTERN (insn).
7402
7403 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7404 Kugan Vivekanandarajah <kuganv@linaro.org>
7405 Jim Wilson <jim.wilson@linaro.org>
7406
7407 PR tree-optimization/43721
7408 * target.def: New hook expand_divmod_libfunc.
7409 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7410 * doc/tm.texi: Regenerate.
7411 * internal-fn.def: Add new entry for DIVMOD ifn.
7412 * internal-fn.c (expand_DIVMOD): New.
7413 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7414 targhooks.h.
7415 (widen_mul_stats): Add new field divmod_calls_inserted.
7416 (target_supports_divmod_p): New.
7417 (divmod_candidate_p): Likewise.
7418 (convert_to_divmod): Likewise.
7419 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7420 renumber_gimple_stmt_uids at beginning of function. Call
7421 convert_to_divmod and record stats for divmod.
7422 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7423 TARGET_EXPAND_DIVMOD_LIBFUNC.
7424 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7425 divmod_simode.
7426
7427 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7428 Segher Boessenkool <segher@kernel.crashing.org>
7429
7430 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7431 swapping the arms of the branch.
7432 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7433 sequence for the generic signed-signed-signed case.
7434
7435 2016-10-28 Jeff Law <law@redhat.com>
7436
7437 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7438 fallthru comment.
7439 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7440
7441 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7442
7443 PR rtl-optimization/78029
7444 * function.c (prologue_contains, epilogue_contains): New functions.
7445 (record_prologue_seq, record_epilogue_seq): New functions.
7446 * function.h (prologue_contains, epilogue_contains,
7447 record_prologue_seq, record_epilogue_seq): New declarations.
7448 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7449 mixing prologue and epilogue insns.
7450 (init_deps): Initialize the new fields in struct deps_desc.
7451 * sched-int.h (struct deps_desc): New fields last_prologue,
7452 last_epilogue, and last_logue_was_epilogue.
7453 * shrink-wrap.c (emit_common_heads_for_components): Record all
7454 emitted prologue and epilogue insns.
7455 (emit_common_tails_for_components): Ditto.
7456 (insert_prologue_epilogue_for_components): Ditto.
7457
7458 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7459
7460 PR middle-end/22141
7461 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7462 * common.opt (fstore-merging): New Optimization option.
7463 * opts.c (default_options_table): Add entry for
7464 OPT_ftree_store_merging.
7465 * fold-const.h (can_native_encode_type_p): Declare prototype.
7466 * fold-const.c (can_native_encode_type_p): Define.
7467 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7468 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7469 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7470 * passes.def: Insert pass_tree_store_merging.
7471 * tree-pass.h (make_pass_store_merging): Declare extern
7472 prototype.
7473 * gimple-ssa-store-merging.c: New file.
7474 * doc/invoke.texi (Optimization Options): Document
7475 -fstore-merging.
7476 (--param documentation): Document store-merging-allow-unaligned
7477 and max-stores-to-merge.
7478
7479 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7480
7481 PR middle-end/72747
7482 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7483 assignment to earlier in the if/else logic.
7484
7485 2016-10-28 Richard Biener <rguenther@suse.de>
7486
7487 PR middle-end/78128
7488 PR middle-end/71002
7489 * fold-const.c (make_bit_field_ref): Only adjust alias set
7490 when the original alias set was zero.
7491
7492 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7493
7494 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7495 (s390_adjust_loops): New function.
7496 (s390_reorg): Invoke s390_adjust_loops.
7497 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7498 ("osc_break"): New insn definition.
7499
7500 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7501
7502 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7503 * config.gcc: Support alternate archXX cpu levels with
7504 --with-arch= and --with-tune=.
7505 * config/s390/linux.h: Translate new archXX cpu levels to the
7506 original names when calling GAS.
7507 * config/s390/tpf.h: Likewise.
7508 * doc/invoke.texi: Document the alternate cpu level names.
7509
7510 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7511
7512 PR rtl-optimization/77919
7513 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7514 MEM if mode1 is not a complex mode.
7515
7516 PR rtl-optimization/78132
7517 * ree.c (combine_reaching_defs): Give up if copy_needed and
7518 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7519
7520 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7521
7522 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7523
7524 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7525
7526 * config/rs6000/constraints.md (wH constraint): Add new
7527 constraints for allowing 32-bit integers (and eventually 8/16-bit
7528 integers) into the vector registers.
7529 (wI constraint): Likewise.
7530 (wJ constraint): Likewise.
7531 (wK constraint): Likewise.
7532 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7533 -mvsx-small-integer as a default option for ISA 2.07
7534 (i.e. power8).
7535 (POWERPC_MASKS): Likewise.
7536 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7537 switch to turn off small integer support in vector registers.
7538 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7539 test for -mupper-regs-di, since it is already done with the
7540 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7541 -mvsx-small-integer.
7542 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7543 constraints.
7544 (rs6000_setup_reg_addr_masks): Likewise.
7545 (rs6000_init_hard_regno_mode_ok): Likewise.
7546 (rs6000_option_override_internal): Add consistency checks for
7547 -mvsx-small-integer.
7548 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7549 -mvsx-small-integer.
7550 (rs6000_secondary_reload): Use std::swap.
7551 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7552 VSX_REGS for small integers in vector registers, since there is no
7553 D-FORM address mode for such types.
7554 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7555 (rs6000_opt_masks): Add -mvsx-small-integer.
7556 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7557 support.
7558 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7559 extracts can be done on ISA 2.07.
7560 (vsx_extract_<mode>): Add support for small integers in vsx
7561 registers.
7562 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7563 longer support V4SImode in this pattern.
7564 (vsx_extract_si): New insn to support extraction of SImode in ISA
7565 2.07 using either xxextractuw or vspltw.
7566 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7567 longer support V4SImode in this pattern.
7568 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7569 wJ, and wK constraints.
7570 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7571 storing SDmode with VSX instructions.
7572 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7573 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7574 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7575 small integers in vector registers.
7576 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7577 load and before the FPR and VSX loads. Remove ??, ! from the
7578 constraints. Add VEXTSW2D support for small integers in vector
7579 registers.
7580 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7581 integers in vector registers.
7582 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7583 move instead of using an UNSPEC.
7584 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7585 integers in vector registers.
7586 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7587 move instead of using an UNSPEC.
7588 (movsi_internal1): Add support for -mvsx-small-integer. Align
7589 columns so that it is more readable.
7590 (SImode splitter for ISA 3.0 constants): Add splitter for
7591 -128..127 constants that can easily be constructed on ISA 3.0.
7592 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7593 constraints.
7594
7595 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7596
7597 PR middle-end/78025
7598 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7599 functions.
7600
7601 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7602
7603 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7604 PIC_OFFSET_TABLE_REGNUM twice.
7605
7606 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7607
7608 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7609 support for constant operand for OP.
7610
7611 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7612
7613 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7614 splice_child_die if child doesn't have DW_AT_specification attribute.
7615
7616 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7617
7618 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7619 (TARGET_HAVE_LDREXBH): Likewise.
7620 (TARGET_HAVE_LDACQ): Likewise.
7621
7622 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7623
7624 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7625 logic to to decide whether to copy over old value to register for new
7626 value.
7627 * config/arm/sync.md: Add comments explaning why mode and code
7628 attribute are not defined in iterators.md
7629 (thumb1_atomic_op_str): New code attribute.
7630 (thumb1_atomic_newop_str): Likewise.
7631 (thumb1_atomic_fetch_op_str): Likewise.
7632 (thumb1_atomic_fetch_newop_str): Likewise.
7633 (thumb1_atomic_fetch_oldop_str): Likewise.
7634 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7635 mirror the more restrictive constraints of the Thumb-1 insns after
7636 split compared to Thumb-2 counterpart insns.
7637 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7638 in sync with non atomic version.
7639 (atomic_nand<mode>): Likewise.
7640 (atomic_fetch_<sync_optab><mode>): Likewise.
7641 (atomic_fetch_nand<mode>): Likewise.
7642 (atomic_<sync_optab>_fetch<mode>): Likewise.
7643 (atomic_nand_fetch<mode>): Likewise.
7644 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7645 in sync with atomic version.
7646 (thumb1_subsi3_insn): Likewise.
7647 (thumb1_andsi3_insn): Likewise.
7648 (thumb1_iorsi3_insn): Likewise.
7649 (thumb1_xorsi3_insn): Likewise.
7650
7651 2016-10-27 Nick Clifton <nickc@redhat.com>
7652
7653 * plugin.c (register_plugin_info): Produce an error message if the
7654 plugin is not found in the hash table.
7655
7656 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7657
7658 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7659 New pattern.
7660
7661 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7662
7663 PR target/78056
7664 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7665 define builtin functions from the bdesc_spe_predicates or
7666 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7667 the current compiler configuration.
7668 (paired_init_builtins): Modify loop to not define define builtin
7669 functions from the bdesc_paried_preds array if the builtin mask is
7670 not compatible with the current compiler configuration.
7671 (altivec_init_builtins): Modify loops to not define the
7672 __builtin_altivec_stxvl function nor the builtin functions from
7673 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7674 builtin mask is not compatible with the current compiler
7675 configuration.
7676
7677 2016-10-26 Jeff Law <law@redhat.com>
7678
7679 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7680 (gen_shl_and): Likewise.
7681 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7682
7683 * config/mips/mips.c (mips16_constant_cost): Add missing
7684 fallthru comments.
7685 (mips16_build_call_stub): Increase buffer size. Adjust
7686 fallthru comment.
7687
7688 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7689
7690 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7691 INSN_UIDs for all insns in compact mode.
7692 (rtx_writer::print_rtx): Likewise.
7693 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7694 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7695 output to include INSN_UID.
7696 (selftest::test_uncond_jump): Likewise.
7697
7698 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7699
7700 * haifa-sched.c (call_used_regs_num): Rename to...
7701 (call_saved_regs_num): ...this.
7702 (fixed_regs_num): New variable.
7703 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7704 regs not call_used.
7705 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7706
7707 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7708
7709 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7710 class rtx_writer.
7711 * print-rtl.c (outfile): Delete global.
7712 (sawclose): Likewise.
7713 (indent): Likewise.
7714 (in_call_function_usage): Likewise.
7715 (flag_compact): Likewise.
7716 (flag_simple): Likewise.
7717 (rtx_writer::rtx_writer): New ctor.
7718 (print_rtx_operand_code_0): Convert to...
7719 (rtx_writer::print_rtx_operand_code_0): ...this.
7720 (print_rtx_operand_code_e): Convert to...
7721 (rtx_writer::print_rtx_operand_code_e): ...this.
7722 (print_rtx_operand_codes_E_and_V): Convert to...
7723 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7724 (print_rtx_operand_code_i): Convert to...
7725 (rtx_writer::print_rtx_operand_code_i): ...this.
7726 (print_rtx_operand_code_r): Convert to...
7727 (rtx_writer::print_rtx_operand_code_r): ...this.
7728 (print_rtx_operand_code_u): Convert to...
7729 (rtx_writer::print_rtx_operand_code_u): ...this.
7730 (print_rtx_operand): Convert to...
7731 (rtx_writer::print_rtx_operand): ...this.
7732 (print_rtx): Convert to...
7733 (rtx_writer::print_rtx): ...this.
7734 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7735 (debug_rtx): Likewise.
7736 (print_rtl): Convert to...
7737 (rtx_writer::print_rtl): ...this.
7738 (print_rtl): Reimplement in terms of class rtx_writer.
7739 (print_rtl_single): Rewrite in terms of class rtx_writer.
7740 (print_rtl_single_with_indent): Convert to..
7741 (rtx_writer::print_rtl_single_with_indent): ...this.
7742 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7743 * print-rtl.h (flag_compact): Delete decl.
7744 (class rtx_writer): New class.
7745 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7746 class rtx_writer.
7747
7748 2016-10-26 Jeff Law <law@redhat.com>
7749
7750 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7751 fallthru.
7752
7753 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7754 (check_if_valid_sleep_operand): Add missing fallthru comment.
7755 (arc_register_move_cost): Increase buffer size.
7756 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7757 comment.
7758 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7759
7760 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7761 comment. Add gcc_unreachable for path that should never happen.
7762
7763 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7764 fallthru comment.
7765
7766 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7767 Martin Liska <mliska@suse.cz>
7768
7769 PR fortran/77973
7770 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7771 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7772 on outer context if any.
7773
7774 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7775
7776 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7777 by increment rather than double it.
7778 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7779 emit a space before args[4].
7780 (END): Don't emit a space before with_arg.
7781
7782 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7783
7784 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7785 Baseline only alternatives to (i) hold store atomic success value in a
7786 return register rather than a scratch register, (ii) use a low register
7787 for it and to (iii) ensure the cbranchsi insn generated by the split
7788 respect the constraints of Thumb-1 cbranchsi4_insn and
7789 cbranchsi4_scratch.
7790 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7791 constraints must match those in atomic_compare_and_swap.
7792 (cbranchsi4_scratch): Likewise.
7793
7794 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7795
7796 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7797 variable. Add the new parameter to the insn generator. Set that
7798 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7799 return value from the negation of that parameter for Thumb-1, keeping
7800 the logic unchanged otherwise except for using bdst as the destination
7801 register of the compare_and_swap insn.
7802 (arm_split_compare_and_swap): Add explanation about how is the value
7803 returned to the function comment. Rename scratch variable to
7804 neg_bval. Adapt initialization of variables holding operands to the
7805 new operand numbers. Use return register to hold result of store
7806 exclusive for Thumb-1, scratch register otherwise. Construct the
7807 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7808 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7809 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7810 for strongly ordered compare_and_swap.
7811 * config/arm/predicates.md (cc_register_operand): New predicate.
7812 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7813 match_operand with the new predicate to accept either the CC flag or a
7814 destination register for the boolean return value, restricting it to
7815 CC flag only via constraint. Adapt operand numbers accordingly.
7816
7817 2016-10-26 Jeff Law <law@redhat.com>
7818
7819 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7820
7821 * config/frv/frv.c (comparison_string): Do not fall through after
7822 an error.
7823
7824 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7825 comment.
7826 (expand_one_builtin): Add missing break.
7827
7828 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7829 (m32c_legitimate_address_p): Likewise.
7830
7831 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7832
7833 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7834
7835 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7836 fallthru comment.
7837
7838 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7839 fallthru comment.
7840
7841 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7842
7843 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7844 comment.
7845 (rl78_asm_ctor_dtor): Increase buffer size.
7846
7847 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7848 buffer size.
7849 (xstormy16_asm_output_constructor): Likewise.
7850
7851 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7852 size.
7853
7854 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7855 comment to silence warning.
7856
7857 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
7858 (spu_legitimate_address_p): Fix logic error and add missing fallthru
7859 comment.
7860
7861 2016-10-26 Michael Matz <matz@suse.de>
7862
7863 PR tree-optimization/78060
7864 PR tree-optimization/78061
7865 PR tree-optimization/78088
7866 * tree-ssa-loop-split.c (easy_exit_values): New function.
7867 (tree_ssa_split_loops): Use it.
7868 (compute_new_first_bound): Change order of operations,
7869 fix invalid use of types.
7870
7871 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
7872
7873 gen-pass-instances.awk is sensitive to the order in which
7874 passes are added; passes that appear later have to be added first.
7875
7876 PR target/71676
7877 PR target/71678
7878 * config/avr/avr-passes.def: Swap order of directives for
7879 gen-pass-instances.awk.
7880
7881 2016-10-25 Jeff Law <law@redhat.com>
7882
7883 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
7884 (vax_notice_update_cc): Likewise.
7885
7886 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7887
7888 * config.gcc (sparc*-*-solaris2*): Adjust.
7889 (sparc64-*-linux*): Likewise.
7890 * config/sparc/default-64.h: Rename to...
7891 * config/sparc/default64.h: ...this.
7892 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
7893 with TARGET_ARCH64.
7894 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
7895 * config/sparc/sparc.h: Minor tweaks.
7896 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
7897 TARGET_ARCH32 throughout. Minor various tweaks throughout.
7898
7899 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7900
7901 * input.c (fcache::file_patch): Add comment about lifetime.
7902 (selftest::cpp_reader_ptr): New class.
7903 (selftest::lexer_test): Convert m_parser from cpp_reader *
7904 to a cpp_reader_ptr, and move m_tempfile to after it.
7905 (selftest::lexer_test::lexer_test): Update for above reordering.
7906 (lexer_test::~lexer_test): Move cleanup of m_parser to
7907 cpp_reader_ptr's dtor.
7908
7909 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7910
7911 * toplev.c (toplev::main): Remove call to
7912 location_adhoc_data_fini.
7913
7914 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
7915
7916 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
7917 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
7918
7919 2016-10-25 David Malcolm <dmalcolm@redhat.com>
7920
7921 * ggc-tests.c (forcibly_ggc_collect): Rename to...
7922 (selftest::forcibly_ggc_collect): ...this, and remove "static".
7923 (test_basic_struct): Update for above renaming.
7924 (test_length): Likewise.
7925 (test_union): Likewise.
7926 (test_finalization): Likewise.
7927 (test_deletable_global): Likewise.
7928 (test_inheritance): Likewise.
7929 (test_chain_next): Likewise.
7930 (test_user_struct): Likewise.
7931 (test_tree_marking): Likewise.
7932 * selftest-run-tests.c (selftest::run_tests): Call
7933 selftest::forcibly_ggc_collect at the end of the selftests.
7934 * selftest.h (selftest::forcibly_ggc_collect): New decl.
7935
7936 2016-10-25 Jakub Jelinek <jakub@redhat.com>
7937
7938 PR target/78102
7939 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
7940 * optabs.c (expand_vec_cond_expr): For comparison codes
7941 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
7942 (expand_vec_cmp_expr): For comparison codes
7943 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
7944 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
7945 Add enum tree_code argument.
7946 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
7947 inline functions.
7948 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
7949 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
7950 fallback.
7951 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
7952 NE_EXPR, attempt to use vcondeq_optab as fallback.
7953 * tree-vect-generic.c (expand_vector_comparison,
7954 expand_vector_divmod, expand_vector_condition): Adjust
7955 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
7956 * tree-vect-stmts.c (vectorizable_condition,
7957 vectorizable_comparison): Likewise.
7958 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
7959 check_bool_pattern, search_type_for_mask_1): Likewise.
7960 * expr.c (do_store_flag): Likewise.
7961 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
7962 @code{vcondeq@var{m}@var{n}}): Document.
7963 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
7964 New expanders.
7965
7966 2016-10-25 Jeff Law <law@redhat.com>
7967
7968 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
7969 comment.
7970 (v850_output_aligned_bss): Add missing break.
7971
7972 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
7973
7974 2016-10-25 Martin Liska <mliska@suse.cz>
7975
7976 PR sanitizer/78106
7977 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
7978 statements as they can also contain possibly a freeing call.
7979
7980 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
7981 Martin Liska <mliska@suse.cz>
7982
7983 PR ipa/78099
7984 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
7985 * ipa-icf.c (sem_function::get_hash): Add target optimization
7986 node to hash.
7987
7988 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
7989
7990 PR target/78041
7991 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
7992 Remove partial overlap check for shift by 1.
7993 (ashldi3_neon): Likewise.
7994
7995 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7996
7997 * config/arm/constraints.md (Q constraint): Document its use for
7998 Thumb-1.
7999 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8000 models.
8001 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8002 alternatives to allow any register when memory model matches Pf and
8003 thus lda is used, but only low registers otherwise. Use unpredicated
8004 output template for Thumb-1 targets.
8005 (atomic_store<mode>): Likewise for stl.
8006 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8007 whose output template does not have predication.
8008 (arm_load_acquire_exclusive<mode>): Likewise.
8009 (arm_load_exclusivesi): Likewise.
8010 (arm_load_acquire_exclusivesi): Likewise.
8011 (arm_store_release_exclusive<mode>): Likewise.
8012 (arm_store_exclusive<mode>): Use unpredicated output template for
8013 Thumb-1 targets.
8014
8015 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8016
8017 * internal-fn.def (LAUNDER): New internal function.
8018 * internal-fn.c (expand_LAUNDER): New function.
8019
8020 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8021 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8022
8023 New avr target pass to work around performance loss by PR fix.
8024
8025 PR target/71676
8026 PR target/71678
8027 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8028 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8029 * config/avr/predicates.md (extend_operator): New.
8030 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8031 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8032 (make_avr_pass_casesi): New prototypes.
8033 * config/avr/avr.c (print-rtl.h): Include it.
8034 (pass_data avr_pass_data_casesi): Data for new pass.
8035 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8036 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8037 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8038 (avr_optimize_casesi): New functions.
8039
8040 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8041 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8042
8043 PR target/71676
8044 PR target/71678
8045 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8046
8047 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8048
8049 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8050 DW_AT_rvalue_reference attributes.
8051
8052 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8053
8054 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8055 * value-prof.c (stringop_block_profile): Fix a warning.
8056
8057 2016-10-24 Martin Sebor <msebor@redhat.com>
8058
8059 PR middle-end/77735
8060 * builtins.c (string_length): New function.
8061 (c_strlen): Use string_length. Correctly handle wide strings.
8062 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8063 functions.
8064 (target_int_max): Call target_max_value.
8065 (format_result::knownrange): New data member.
8066 (fmtresult::fmtresult): Define default constructor.
8067 (format_integer): Use it and set format_result::knownrange.
8068 Handle global constants.
8069 (format_floating_max): Add third argument.
8070 (format_floating): Recompute maximum value for %a for each argument.
8071 (get_string_length): Use fmtresult default ctor.
8072 (format_string): Set format_result::knownrange.
8073 (format_directive): Check format_result::knownrange.
8074 (add_bytes): Same. Correct caret placement in diagnostics.
8075 (pass_sprintf_length::compute_format_length): Set
8076 format_result::knownrange.
8077 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8078
8079 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8080
8081 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8082 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8083
8084 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8085
8086 PR debug/77985
8087 * dwarf2out.c (file_table_relative_p): Remove.
8088 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8089 also for absolute paths.
8090 * doc/tm.texi: Update.
8091 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8092 * target.def (force_at_comp_dir): Remove hook.
8093 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8094
8095 2016-10-24 Richard Biener <rguenther@suse.de>
8096
8097 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8098 backedges when identifying the single predecessor to take
8099 conditional info from. Use SCEV to get at ranges for loop IVs.
8100 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8101 avoid false warning.
8102
8103 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8104
8105 PR target/78093
8106 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8107 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8108 (avr_address_tiny_absdata_p): New static function.
8109 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8110 it to determine validity of constant addresses.
8111 (avr_attribute_table) [absdata]: New variable attribute...
8112 (avr_handle_absdata_attribute): ...and handler.
8113 (avr_decl_absdata_p): New static function.
8114 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8115 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8116 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8117
8118 2016-10-24 Richard Biener <rguenther@suse.de>
8119
8120 PR tree-optimization/78076
8121 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8122 also on the loop tree root.
8123
8124 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8125
8126 * config/i386/i386.c (ix86_fold_builtin): Handle
8127 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8128 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8129 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8130 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8131
8132 2016-10-24 Martin Liska <mliska@suse.cz>
8133
8134 PR sanitizer/77966
8135 * opts.c (finish_options): Skip conditionally.
8136
8137 2016-10-23 Martin Sebor <msebor@redhat.com>
8138
8139 PR target/77837
8140 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8141 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8142
8143 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8144
8145 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8146 (enabled): Likewise.
8147 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8148 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8149 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8150 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8151 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8152 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8153
8154 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8155
8156 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8157 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8158
8159 2016-10-21 Andrew Pinski <apinski@cavium.com>
8160
8161 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8162 integer constants.
8163 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8164 implementer_id to unsigned char.
8165 Change part_no to unsigned int.
8166 (AARCH64_BIG_LITTLE): New define.
8167 (INVALID_IMP): New define.
8168 (INVALID_CORE): New define.
8169 (cpu_data): Change the last element's implementer_id and part_no to
8170 integers.
8171 (valid_bL_string_p): Rewrite to ..
8172 (valid_bL_core_p): this for integers instead of strings.
8173 (parse_field): New function.
8174 (contains_string_p): Rewrite to ...
8175 (contains_core_p): this for integers and only for the part_no.
8176 (host_detect_local_cpu): Rewrite handling of implementation and
8177 par num to be integers; simplifying the code.
8178
8179 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8180
8181 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8182 value range for pointers in more cases.
8183
8184 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8185
8186 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8187 Add extra argument to allow emitting the move immediate.
8188 Use add/sub with positive immediate.
8189 (aarch64_add_constant): Add inline function.
8190 (aarch64_add_sp): Likewise.
8191 (aarch64_sub_sp): Likewise.
8192 (aarch64_expand_prologue): Call aarch64_sub_sp.
8193 (aarch64_expand_epilogue): Call aarch64_add_sp.
8194 Decide when to leave out move.
8195 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8196
8197 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8198
8199 * config/aarch64/aarch64.c (aarch64_layout_frame):
8200 Align FP callee-saves.
8201
8202 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8203
8204 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8205 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8206 Formatting fixes.
8207 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8208 _rdseed64_step): Likewise.
8209 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8210
8211 PR target/78057
8212 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8213 and tree-ssanames.h.
8214 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8215 with INTEGER_CST argument.
8216 (ix86_gimple_fold_builtin): New function.
8217 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8218
8219 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8220 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8221 (ranges_table_allocated, ranges_table_in_use,
8222 ranges_by_label_allocated, ranges_by_label_in_use,
8223 RANGES_TABLE_INCREMENT): Removed.
8224 (add_ranges_num): Use vec_safe_push into ranges_table.
8225 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8226 (output_ranges): Adjust for ranges_table and ranges_by_label
8227 conversion from arrays to vec.
8228 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8229 conversion from arrays to vec.
8230 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8231 ranges_table_in_use, ranges_by_label_allocated and
8232 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8233
8234 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8235 if needed. Re-add origin_die variable and its initialization.
8236
8237 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8238 even for -fstack-reuse=none, or for volatile vars etc.
8239
8240 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8241
8242 * print-rtl-function.c (flag_compact): Move extern decl to...
8243 * print-rtl.h (flag_compact): ...here.
8244 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8245 (ASSERT_RTL_DUMP_EQ): New macro.
8246 (selftest::test_dumping_regs): New function.
8247 (selftest::test_dumping_insns): New function.
8248 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8249 the insns.
8250 (selftest::rtl_tests_c_tests): Call the new test functions.
8251
8252 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8253
8254 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8255 (outgoing_edges_match): Likewise.
8256 (try_crossjump_to_edge): Likewise.
8257 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8258 (rtl_tidy_fallthru_edge): Likewise.
8259 * rtl.h (tablejump_p): Adjust prototype.
8260 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8261
8262 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8263
8264 * rtl.h (label_ref_label): New function.
8265 (set_label_ref_label): New function.
8266 (LABEL_REF_LABEL): Delete.
8267 * alias.c (rtx_equal_for_memref_p): Adjust.
8268 * cfgbuild.c (make_edges): Likewise.
8269 (purge_dead_tablejump_edges): Likewise.
8270 * cfgexpand.c (convert_debug_memory_address): Likewise.
8271 * cfgrtl.c (patch_jump_insn): Likewise.
8272 * combine.c (distribute_notes): Likewise.
8273 * cse.c (hash_rtx_cb): Likewise.
8274 (exp_equiv_p): Likewise.
8275 (fold_rtx): Likewise.
8276 (check_for_label_ref): Likewise.
8277 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8278 (cselib_hash_rtx): Likewise.
8279 * emit-rtl.c (mark_label_nuses): Likewise.
8280 * explow.c (convert_memory_address_addr_space_1): Likewise.
8281 * final.c (output_asm_label): Likewise.
8282 (output_addr_const): Likewise.
8283 * gcse.c (add_label_notes): Likewise.
8284 * genconfig.c (walk_insn_part): Likewise.
8285 * genrecog.c (validate_pattern): Likewise.
8286 * ifcvt.c (cond_exec_get_condition): Likewise.
8287 (noce_emit_store_flag): Likewise.
8288 (noce_get_alt_condition): Likewise.
8289 (noce_get_condition): Likewise.
8290 * jump.c (maybe_propagate_label_ref): Likewise.
8291 (mark_jump_label_1): Likewise.
8292 (redirect_exp_1): Likewise.
8293 (rtx_renumbered_equal_p): Likewise.
8294 * lra-constraints.c (operands_match_p): Likewise.
8295 * print-rtl.c (print_value): Likewise.
8296 * reload.c (find_reloads): Likewise.
8297 * reload1.c (set_label_offsets): Likewise.
8298 * reorg.c (get_branch_condition): Likewise.
8299 * rtl-tests.c (test_uncond_jump): Likewise.
8300 * rtl.c (rtx_equal_p_cb): Likewise.
8301 (rtx_equal_p): Likewise.
8302 * rtlanal.c (reg_mentioned_p): Likewise.
8303 (rtx_referenced_p): Likewise.
8304 (get_condition): Likewise.
8305 * varasm.c (const_hash_1): Likewise.
8306 (compare_constant): Likewise.
8307 (const_rtx_hash_1): Likewise.
8308 (output_constant_pool_1): Likewise.
8309
8310 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8311
8312 PR target/71627
8313 * reload.c (find_valid_class_1): Allow regclass if atleast one
8314 regno in regclass is ok. Compute and use rclass size based on
8315 actually available regnos for mode in rclass.
8316
8317 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8318
8319 * config/sparc/sparc-modes.def (CCV): New.
8320 (CCXV): Likewise.
8321 * config/sparc/predicates.md (v_comparison_operator): New.
8322 (icc_comparison_operator): Add support for CCV/CCXV.
8323 (xcc_comparison_operator): Likewise.
8324 * config/sparc/sparc.c (output_cbranch): Likewise.
8325 (sparc_print_operand): Likewise.
8326 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8327 (uaddvdi4): New expander.
8328 (addvdi4): Likewise.
8329 (uaddvdi4_sp32): New instruction.
8330 (addvdi4_sp32): Likewise.
8331 (uaddvsi4): New expander.
8332 (addvsi4): Likewise.
8333 (cmp_ccc_plus_sltu_set): New instruction.
8334 (cmp_ccv_plus): Likewise.
8335 (cmp_ccxv_plus): Likewise.
8336 (cmp_ccv_plus_set): Likewise.
8337 (cmp_ccxv_plus_set): Likewise.
8338 (cmp_ccv_plus_sltu_set): Likewise.
8339 (uaddvdi4): New expander.
8340 (subvdi4): Likewise.
8341 (usubdi4_sp32): New instruction.
8342 (subvdi4_sp32): Likewise.
8343 (usubvsi4): New expander.
8344 (subvsi4): Likewise.
8345 (cmpsi_minus_sltu_set): New instruction.
8346 (cmp_ccv_minus): Likewise.
8347 (cmp_ccxv_minus): Likewise.
8348 (cmp_ccv_minus_set): Likewise.
8349 (cmp_ccxv_minus_set): Likewise.
8350 (cmp_ccv_minus_sltu_set): Likewise.
8351 (unegvdi3): New expander.
8352 (negvdi3): Likewise.
8353 (unegdi3_sp32): New instruction.
8354 (negvdi3_sp32): Likewise.
8355 (unegvsi3): New expander.
8356 (negvsi3): Likewise.
8357 (cmp_ccc_neg_sltu_set): New instruction.
8358 (cmp_ccv_neg): Likewise.
8359 (cmp_ccxv_neg): Likewise.
8360 (cmp_ccv_neg_set): Likewise.
8361 (cmp_ccxv_neg_set): Likewise.
8362 (cmp_ccv_neg_sltu_set): Likewise.
8363
8364 * tree-ssa-loop-split.c: Remove trailing spaces.
8365 * match.pd: Likewise.
8366
8367 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8368
8369 PR rtl-optimization/78038
8370 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8371 be deduced to set REG through the RTL structure.
8372 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8373
8374 2016-10-21 Richard Biener <rguenther@suse.de>
8375
8376 PR tree-optimization/78051
8377 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8378 and mark replaced if folding did something.
8379
8380 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8381
8382 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8383 and "protected" in visibility types.
8384 (rs6000_xcoff_declare_function_name): Fix formatting.
8385 (rs6000_xcoff_declare_object_name): Fix formatting.
8386
8387 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8388
8389 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8390 and IX86_BUILTIN_HUGE_VALQ here ...
8391 (ix86_expand_builtin): ... not here.
8392
8393 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8394
8395 * doc/gty.texi (for_user): Use @item next to @findex.
8396
8397 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8398
8399 PR target/78037
8400 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8401 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8402 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8403 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8404 __builtin_ia32_lzcnt_u16.
8405 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8406 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8407 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8408 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8409 (bmi_tzcnt_<mode>): New expander.
8410 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8411 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8412 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8413 (lzcnt_<mode>): New expander.
8414 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8415 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8416 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8417 (UINT64_FTYPE_UINT64): New.
8418 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8419 (__builtin_ia32_lzcnt_u16): New description.
8420 (__builtin_ia32_lzcnt_u32): Ditto.
8421 (__builtin_ia32_lzcnt_u64): Ditto.
8422 (__builtin_ctzs): Remove description.
8423 (__builtin_ia32_tzcnt_u16): New description.
8424 (__builtin_ia32_tzcnt_u32): Ditto.
8425 (__builtin_ia32_tzcnt_u64): Ditto.
8426 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8427 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8428
8429 2016-10-20 Martin Liska <mliska@suse.cz>
8430
8431 PR lto/78049
8432 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8433 comparison with STMT_UID_NOT_IN_RANGE.
8434 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8435 LTRANS.
8436
8437 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8438
8439 * compare-elim.c (conforming_compare): Accept UNSPECs.
8440 (find_comparison_dom_walker::before_dom_children): Deal with
8441 instructions both using and killing the flags register.
8442 (equivalent_reg_at_start): New function extracted from...
8443 (try_eliminate_compare): ...here. Use it and add support for
8444 registers and UNSPECs as second operand of the compare.
8445 * config/visium/visium-modes.def (CCV): New.
8446 * config/visium/predicates.md (visium_v_comparison_operator): New.
8447 (visium_branch_operator): Deal with CCV mode.
8448 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8449 (output_cbranch): Likewise.
8450 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8451 (uaddv<mode>4): New expander.
8452 (addv<mode>4): Likewise.
8453 (add<mode>3_insn_set_carry): New instruction.
8454 (add<mode>3_insn_set_overflow): Likewise.
8455 (addsi3_insn_set_overflow): Likewise.
8456 (usubv<mode>4): New expander.
8457 (subv<mode>4): Likewise.
8458 (sub<mode>3_insn_set_carry): New instruction.
8459 (sub<mode>3_insn_set_overflow): Likewise.
8460 (subsi3_insn_set_overflow): Likewise.
8461 (unegv<mode>3): New expander.
8462 (negv<mode>3): Likewise.
8463 (neg<mode>2_insn_set_overflow): New instruction.
8464 (addv_tst<mode>): Likewise.
8465 (subv_tst<mode>): Likewise.
8466 (negv_tst<mode>): Likewise.
8467 (cbranch<mode>4_addv_insn): New splitter and instruction.
8468 (cbranch<mode>4_subv_insn): Likewise.
8469 (cbranch<mode>4_negv_insn): Likewise.
8470
8471 2016-10-20 Richard Biener <rguenther@suse.de>
8472
8473 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8474 Handle decls possibly not bound.
8475 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8476 nothing_id for decls that might not be bound if we are interested
8477 for the address.
8478 (get_constraint_for_component_ref): Deal with that.
8479
8480 2016-10-20 Michael Matz <matz@suse.de>
8481
8482 Loop splitting.
8483 * common.opt (-fsplit-loops): New flag.
8484 * passes.def (pass_loop_split): Add.
8485 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8486 (enable_fdo_optimizations): Add loop splitting.
8487 * timevar.def (TV_LOOP_SPLIT): Add.
8488 * tree-pass.h (make_pass_loop_split): Declare.
8489 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8490 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8491 * tree-ssa-loop-split.c: New file.
8492 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8493 * doc/invoke.texi (fsplit-loops): Document.
8494 * doc/passes.texi (Loop optimization): Add paragraph about loop
8495 splitting.
8496
8497 2016-10-20 Richard Biener <rguenther@suse.de>
8498
8499 * cgraphunit.c (analyze_functions): Set node->definition to
8500 false to signal symbol removal to debug_hooks->late_global_decl.
8501 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8502 WPA signal symbol removal to the debuginfo machinery.
8503 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8504 using early_finised to guard the we're called for symbol
8505 removal case look at the symtabs definition flag.
8506 (gen_variable_die): Remove redundant check.
8507
8508 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8509
8510 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8511
8512 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8513
8514 PR tree-optimization/53979
8515 * match.pd ((a ^ b) | a -> a | b): New pattern.
8516
8517 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8518
8519 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8520 config/pa/pa64-hpux-lib.h.
8521 (PA_CRTBEGIN_HACK): Likewise.
8522 (DTOR_LIST_BEGIN): Likewise.
8523
8524 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8525
8526 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8527 register only if "in" and "out" are different registers.
8528
8529 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8530
8531 * omp-low.c (pass_oacc_device_lower::gate): New method.
8532 (execute): Always call execute_oacc_device_lower.
8533
8534 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8535
8536 PR tree-optimization/77916
8537 PR tree-optimization/77937
8538 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8539 stopgap fix.
8540 (insert_initializers): Requirement of initializer for -1 should be
8541 based on pointer-typedness of the candidate basis.
8542
8543 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8544
8545 PR tree-optimization/78005
8546 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8547 upper (included) bound for niters of prolog loop.
8548 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8549 Compute niters of scalar loop above which vectorized loop is
8550 preferred, as well as the upper (included) bound for the niters.
8551 (vect_do_peeling): Record niter bound for loops accordingly.
8552
8553 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8554
8555 PR lto/77458
8556 * tree-core.h (enum tree_index): Put the complex types after their
8557 component types.
8558 * tree-streamer.c (verify_common_node_recorded): New function.
8559 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8560
8561 2016-10-19 Martin Liska <mliska@suse.cz>
8562
8563 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8564 Replace NULL with false as a return value.
8565
8566 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8567
8568 PR tree-optimization/78024
8569 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8570 don't clear BB_VISITED after processing.
8571
8572 2016-10-19 Richard Biener <rguenther@suse.de>
8573
8574 * domwalk.c (dom_walker::walk): Use RPO order.
8575
8576 2016-10-19 Richard Biener <rguenther@suse.de>
8577
8578 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8579 stmts_to_remove.
8580 (evrp_dom_walker::~evrp_dom_walker): Free it.
8581 (evrp_dom_walker::stmts_to_remove): Add.
8582 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8583 whose output we fully propagate for removal. Propagate
8584 into BB destination PHI arguments.
8585 (execute_early_vrp): Remove queued stmts. Dump value ranges
8586 before stmt removal.
8587
8588 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8589
8590 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8591 * passes.def: Add two instances of pass_walloca.
8592 * tree-pass.h (make_pass_walloca): New.
8593 * gimple-ssa-warn-alloca.c: New file.
8594 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8595 -Wvla-larger-than= options.
8596
8597 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8598
8599 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8600 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8601
8602 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8603
8604 * config/rs6000/altivec.h (vec_xl_len): New macro.
8605 (vec_xst_len): New macro.
8606 (vec_cmpnez): New macro.
8607 (vec_cntlz_lsbb): New macro.
8608 (vec_cnttz_lsbb): New macro.
8609 (vec_xlx): New macro.
8610 (vec_xrx): New macro.
8611 (vec_all_nez): New C++ predicate template.
8612 (vec_any_eqz): New C++ predicate template.
8613 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8614 conditional compilation.
8615 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8616 conditional compilation.
8617 (vec_all_nez): New macro.
8618 (vec_any_eqz): New macro.
8619 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8620 compilation.
8621 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8622 compilation.
8623 * config/rs6000/vector.md (VI): Moved this mode iterator
8624 definition from altivec.md to vector.md.
8625 (UNSPEC_NEZ_P): New value.
8626 (vector_ne_<mode>_p): New expansion for implementation of
8627 vec_all_ne and vec_any_eq built-in functions.
8628 (vector_nez_<mode>_p): New expansion for implementation of
8629 vec_all_nez and vec_any_eqz built-in functions.
8630 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8631 and vec_any_eq built-in function.
8632 (cr6_test_for_zero): New commentary to explain this expansion.
8633 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8634 (cr6_test_for_lt): New commentary to explain this expansion.
8635 (cr6_test_for_lt_reverse): New commentary to explain this
8636 expansion.
8637 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8638 overloaded function prototypes for vec_all_ne, vec_all_nez,
8639 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8640 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8641 built-in functions.
8642 (altivec_resolve_overloaded_builtin): Modify the handling of
8643 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8644 the compiler is configured to support TARGET_P9_VECTOR.
8645 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8646 to explain the special processing that is given to predicate
8647 built-ins introduced using this macro.
8648 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8649 the special processing given to predicate built-ins introduced
8650 using this macro.
8651 (BU_VSX_P): Likewise.
8652 (BU_P8V_AV_P): Likewise.
8653 (BU_P9V_AV_P): Likewise.
8654 (BU_P9V_AV_X): New macro.
8655 (BU_P9V_64BIT_AV_X): New macro.
8656 (BU_P9V_VSX_3): New macro.
8657 (BU_P9V_OVERLOAD_P): New macro.
8658 (LXVL): New BU_P9V_64BIT_VSX_2.
8659 (VEXTUBLX): New BU_P9V_AV_2.
8660 (VEXTUBRX): Likewise.
8661 (VEXTUHLX): Likewise.
8662 (VEXTUHRX): Likewise.
8663 (VEXTUWLX): Likewise.
8664 (VEXTUWRX): Likewise.
8665 (STXVL): New BU_P9V_64BIT_AV_X.
8666 (VCLZLSBB): New BU_P9V_AV_1.
8667 (VCTZLSBB): Likewise.
8668 (CMPNEB): New BU_P9V_AV_2.
8669 (CMPNEH): Likewise.
8670 (CMPNEW): Likewise.
8671 (CMPNEF): Likewise.
8672 (CMPNED): Likewise.
8673 (VCMPNEB_P): New BU_P9V_AV_P.
8674 (VCMPNEH_P): Likewise.
8675 (VCMPNEW_P): Likewise.
8676 (VCMPNED_P): Likewise.
8677 (VCMPNEFP_P): Likewise.
8678 (VCMPNEDP_P): Likewise.
8679 (CMPNEZB): New BU_P9V_AV_2.
8680 (CMPNEZH): Likewise.
8681 (CMPNEZW): Likewise.
8682 (VCMPNEZB_P): New BU_P9V_AV_P.
8683 (VCMPNEZH_P): Likewise.
8684 (VCMPNEZW_P): Likewise.
8685 (LXVL): New BU_P9V_OVERLOAD_2.
8686 (STXVL): New BU_P9V_OVERLOAD_3.
8687 (VEXTULX): New BU_P9V_OVERLOAD_2.
8688 (VEXTURX): Likewise.
8689 (CMPNEZ): Likewise.
8690 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8691 (VCMPNE_P): Likewise.
8692 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8693 (VCTZLSBB): Likewise.
8694 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8695 comment to explain mode used for scratch register.
8696 (altivec_expand_stxvl_builtin): New function.
8697 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8698 (altivec_init_builtins): Add initialized variable
8699 void_ftype_v16qi_pvoid_long and use this type to define the
8700 built-in function __builtin_altivec_stxvl.
8701 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8702 (UNSPEC_STXVL): New value.
8703 (UNSPEC_VCLZLSBB): New value.
8704 (UNSPEC_VCTZLSBB): New value.
8705 (UNSPEC_VEXTUBLX): New value.
8706 (UNSPEC_VEXTUHLX): New value.
8707 (UNSPEC_VEXTUWLX): New value.
8708 (UNSPEC_VEXTUBRX): New value.
8709 (UNSPEC_VEXTUHRX): New value.
8710 (UNSPEC_VEXTUWRX): New value.
8711 (UNSPEC_VCMPNEB): New value.
8712 (UNSPEC_VCMPNEZB): New value.
8713 (UNSPEC_VCMPNEH): New value.
8714 (UNSPEC_VCMPNEZH): New value.
8715 (UNSPEC_VCMPNEW): New value.
8716 (UNSPEC_VCMPNEZW): New value.
8717 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8718 vector of integer modes.
8719 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8720 vector of float or double modes.
8721 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8722 zero.
8723 (lxvl): New expand for load VSX vector with length.
8724 (*lxvl): New insn for load VSX vector with length.
8725 (stxvl): New expand for store VSX vector with length.
8726 (*stxvl): New insn for store VSX vector with length.
8727 (vcmpneb): New insn for vector of byte compare not equal.
8728 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8729 (vcmpneh): New insn for vector of half word compare not equal.
8730 (vcmpnezh): New insn for vector of half word compare not equal or
8731 zero.
8732 (vcmpnew): New insn for vector of word compare not equal.
8733 (vcmpne<VSs>): New insn for vector of float or double compare not
8734 equal.
8735 (vcmpnezw): New insn for vector of word compare not equal or zero.
8736 (vclzlsbb): New insn for vector count leading zero
8737 least-significant bits byte.
8738 (vctzlsbb): New insn for vector count trailing zero least
8739 signficant bits byte.
8740 (vextublx): New insn for vector extract unsigned byte left
8741 indexed.
8742 (vextubrx): New insn for vector extract unsigned byte right
8743 indexed.
8744 (vextuhlx): New insn for vector extract unsigned half word left
8745 indexed.
8746 (vextuhrx): New insn for vector extract unsigned half word right
8747 indexed.
8748 (vextuwlx): New insn for vector extract unsigned word left
8749 indexed.
8750 (vextuwrx): New insn for vector extract unsigned word right
8751 indexed.
8752 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8753 clarify intent of this constant.
8754 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8755 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8756 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8757 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8758 and vec_xrx functions.
8759
8760 2016-10-18 Andrew Pinski <apinski@cavium.com>
8761
8762 PR tree-opt/65950
8763 * predict.c (is_exit_with_zero_arg): New function.
8764 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8765 as nottaken.
8766
8767 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8768
8769 PR target/77991
8770 * config/i386/i386.c (legitimize_tls_address)
8771 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8772 convert dest to Pmode if different than Pmode.
8773
8774 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8775
8776 PR tree-optimization/77916
8777 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8778 stopgap fix, as pointers with -1 increment are still broken.
8779
8780 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8781
8782 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8783 mapping class decoration from here...
8784 (rs6000_xcoff_encode_section): ...to here.
8785
8786 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8787 if shrink-wrapping and optimizing for speed.
8788
8789 2016-10-18 Richard Biener <rguenther@suse.de>
8790
8791 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8792 not visited but non-executable predecessors. Return taken edge.
8793 Simplify conditions and refactor propagation vs. folding step.
8794
8795 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8796
8797 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8798 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8799 (rs6000_get_separate_components): Assert we do not have those
8800 strategies selected.
8801
8802 2016-10-18 Richard Biener <rguenther@suse.de>
8803
8804 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8805 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8806 clearing.
8807 (substitute_and_fold_dom_walker): Adjust constructor.
8808 (substitute_and_fold_dom_walker::before_dom_children): Remove
8809 do_dce flag and handling (always true).
8810 (substitute_and_fold): Likewise.
8811 * tree-vrp.c (vrp_finalize): Adjust.
8812 (execute_early_vrp): Remove final BB_VISITED clearing.
8813 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8814 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8815 * ira.c (ira): Call clear_bb_flags.
8816
8817 2016-10-18 Richard Biener <rguenther@suse.de>
8818
8819 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8820 get at the operand to look at with TREE_OPERAND for generic
8821 sub-nodes.
8822
8823 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8824
8825 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8826 copy_md_ptr_loc.
8827 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8828 (write_test_expr): Use rtx_reader_ptr for calls to
8829 fprint_c_condition.
8830 (write_attr_value): Likewise.
8831 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8832 call to print_md_ptr_loc.
8833 (write_one_condition): Likewise for calls to print_c_condition.
8834 * genconstants.c: Include "statistics.h" and "vec.h".
8835 (main): Update for conversion to member functions.
8836 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8837 call to print_md_ptr_loc.
8838 * genenums.c: Include "statistics.h" and "vec.h".
8839 (main): Update for conversion of traverse_enum_types to a method.
8840 * genmddeps.c: Include "statistics.h" and "vec.h".
8841 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8842 print_md_ptr_loc.
8843 * genpreds.c (write_predicate_subfunction): Likewise.
8844 (write_predicate_expr): Likewise for calls to print_c_condition.
8845 * genrecog.c (print_test): Likewise.
8846 * gensupport.c (process_rtx): Likewise for calls to
8847 copy_md_ptr_loc and join_c_conditions.
8848 (alter_test_for_insn): Likewise for call to join_c_conditions.
8849 (process_substs_on_one_elem): Likewise.
8850 (gen_mnemonic_setattr): Update for move of string_obstack to a
8851 field of rtx_reader.
8852 (mnemonic_htab_callback): Likewise. Fix formatting.
8853 (gen_mnemonic_attr): Likewise.
8854 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8855 to print_c_condition.
8856 * read-md.c: Include "statistics.h" and "vec.h".
8857 (string_obstack): Convert this global to field "m_string_obstack"
8858 of class rtx_reader.
8859 (ptr_locs): Likewise, as "m_ptr_locs".
8860 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
8861 (joined_conditions): Likewise, as "m_joined_conditions".
8862 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
8863 (md_constants): Likewise, as "m_md_constants".
8864 (enum_types): Likewise, as "m_enum_types".
8865 (set_md_ptr_loc): Convert to...
8866 (rtx_reader::set_md_ptr_loc): ...member function.
8867 (get_md_ptr_loc): Convert to...
8868 (rtx_reader::get_md_ptr_loc): ...member function.
8869 (copy_md_ptr_loc): Convert to...
8870 (rtx_reader::copy_md_ptr_loc): ...member function.
8871 (fprint_md_ptr_loc): Convert to...
8872 (rtx_reader::fprint_md_ptr_loc): ...member function.
8873 (print_md_ptr_loc): Convert to...
8874 (rtx_reader::print_md_ptr_loc): ...member function.
8875 (join_c_conditions): Convert to...
8876 (rtx_reader::join_c_conditions): ...member function.
8877 (fprint_c_condition): Convert to...
8878 (rtx_reader::fprint_c_condition): ...member function.
8879 (print_c_condition): Convert to...
8880 (rtx_reader::print_c_condition): ...member function.
8881 (read_name): Convert to...
8882 (rtx_reader::read_name): ...member function.
8883 (read_escape): Convert to...
8884 (rtx_reader::read_escape): ...member function.
8885 (read_quoted_string): Convert to...
8886 (rtx_reader::read_quoted_string): ...member function.
8887 (read_braced_string): Convert to...
8888 (rtx_reader::read_braced_string): ...member function.
8889 (read_string): Convert to...
8890 (rtx_reader::read_string): ...member function.
8891 (read_skip_construct): Convert to...
8892 (rtx_reader::read_skip_construct): ...member function.
8893 (handle_constants): Convert to...
8894 (rtx_reader::handle_constants): ...member function.
8895 (traverse_md_constants): Convert to...
8896 (rtx_reader::traverse_md_constants): ...member function.
8897 (handle_enum): Convert to...
8898 (rtx_reader::handle_enum): ...member function.
8899 (lookup_enum_type): Convert to...
8900 (rtx_reader::lookup_enum_type): ...member function.
8901 (traverse_enum_types): Convert to...
8902 (rtx_reader::traverse_enum_types): ...member function.
8903 (rtx_reader::rtx_reader): Move initializations
8904 of various former global data from rtx_reader::read_md_files to
8905 here, as fields, along with the call to unlock_std_streams.
8906 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
8907 the new fields.
8908 (rtx_reader::read_md_files): Move initializations of various
8909 global data from here to the ctor.
8910 * read-md.h (read_name): Convert to...
8911 (rtx_reader::read_name): ...member function.
8912 (rtx_reader::read_escape): New method decl.
8913 (read_quoted_string): Convert to...
8914 (rtx_reader::read_quoted_string): ...member function.
8915 (rtx_reader::read_braced_string): New method decl.
8916 (read_string): Convert to...
8917 (rtx_reader::read_string): ...member function.
8918 (rtx_reader::read_skip_construct): New method decl.
8919 (rtx_reader::set_md_ptr_loc): New method decl.
8920 (rtx_reader::get_md_ptr_loc): New method decl.
8921 (copy_md_ptr_loc): Convert to...
8922 (rtx_reader::copy_md_ptr_loc): ...member function.
8923 (fprint_md_ptr_loc): Convert to...
8924 (rtx_reader::fprint_md_ptr_loc): ...member function.
8925 (print_md_ptr_loc): Convert to...
8926 (rtx_reader::print_md_ptr_loc): ...member function.
8927 (rtx_reader::lookup_enum_type): New method decl.
8928 (rtx_reader::traverse_enum_types): New method decl.
8929 (rtx_reader::handle_constants): New method decl.
8930 (traverse_md_constants): Convert to...
8931 (rtx_reader::traverse_md_constants): ...member function.
8932 (rtx_reader::handle_enum): New method decl.
8933 (rtx_reader::join_c_conditions): New method decl.
8934 (fprint_c_condition): Convert to...
8935 (rtx_reader::fprint_c_condition): ...member function.
8936 (print_c_condition): Convert to...
8937 (rtx_reader::print_c_condition): ...member function.
8938 (rtx_reader::apply_iterator_to_string): New method decl.
8939 (rtx_reader::copy_rtx_for_iterators): New method decl.
8940 (rtx_reader::read_conditions): New method decl.
8941 (rtx_reader::record_potential_iterator_use): New method decl.
8942 (rtx_reader::read_mapping): New method decl.
8943 (rtx_reader::read_rtx): New method decl.
8944 (rtx_reader::read_rtx_code): New method decl.
8945 (rtx_reader::read_rtx_operand): New method decl.
8946 (rtx_reader::read_nested_rtx): New method decl.
8947 (rtx_reader::read_rtx_variadic): New method decl.
8948 (rtx_reader::get_string_obstack): New method.
8949 (rtx_reader::get_md_constants): New method.
8950 (string_obstack): Convert global variable decl to...
8951 (rtx_reader::m_string_obstack): ...this new field.
8952 (rtx_reader::m_ptr_locs): New field.
8953 (rtx_reader::m_ptr_loc_obstack): New field.
8954 (rtx_reader::m_joined_conditions): New field.
8955 (rtx_reader::m_joined_conditions_obstack): New field.
8956 (rtx_reader::m_md_constants): New field.
8957 (rtx_reader::m_enum_types): New field.
8958 * read-rtl.c (apply_iterator_to_string): Convert to...
8959 (rtx_reader::apply_iterator_to_string): ...member function.
8960 (copy_rtx_for_iterators): Convert to...
8961 (rtx_reader::copy_rtx_for_iterators): ...member function.
8962 (add_condition_to_string): Use rtx_reader_ptr for
8963 calls join_c_conditions.
8964 (apply_iterators): Use rtx_reader_ptr for calls to
8965 join_c_conditions and copy_rtx_for_iterators.
8966 (read_conditions): Convert to...
8967 (rtx_reader::read_conditions): ...member function.
8968 (record_potential_iterator_use): Convert to...
8969 (rtx_reader::record_potential_iterator_use): ...member function.
8970 (read_mapping): Convert to...
8971 (rtx_reader::read_mapping): ...member function.
8972 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
8973 (read_rtx): Convert to...
8974 (rtx_reader::read_rtx): ...member function.
8975 (read_rtx_code): Convert to...
8976 (rtx_reader::read_rtx_code): ...member function.
8977 (read_rtx_operand): Convert to...
8978 (rtx_reader::read_rtx_operand): ...member function. Update for move
8979 of string_obstack to a field.
8980 (read_nested_rtx): Convert to..
8981 (rtx_reader::read_nested_rtx): ...member function.
8982 (read_rtx_variadic): Convert to..
8983 (rtx_reader::read_rtx_variadic): ...member function.
8984
8985 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8986
8987 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
8988
8989 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8990
8991 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
8992 for pointer type too.
8993 (ipcp_update_vr): set_ptr_nonnull for pointer.
8994
8995 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
8996
8997 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
8998 pt_solution_singleton_p.
8999 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9000 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9001 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9002 pointer nonnull computed by VRP.
9003 Also Conservatively set pt.null to 1.
9004 (pt_solution_reset): Conservatively set pt.null to 1.
9005 (pt_solution_singleton_or_null_p): Renamed from
9006 pt_solution_singleton_p.
9007 * tree-ssanames.h (set_ptr_nonnull): Declare.
9008 (get_ptr_nonnull): Likewise.
9009 * tree-ssanames.c (set_ptr_nonnull): New.
9010 (get_ptr_nonnull): Likewise.
9011 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9012 (evrp_dom_walker::before_dom_children): Likewise.
9013
9014 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9015
9016 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9017 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9018 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9019 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9020 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9021 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9022 (rs6000_option_override_internal): Clear it if ABI_AIX.
9023 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9024 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9025
9026 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9027
9028 * gimple-ssa-strength-reduction.c (record_increment): Remove
9029 garbage comment.
9030
9031 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9032
9033 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9034 that the result is non-zero if it is true.
9035 (maybe_expand_shift): New wrapper around expand_shift_1.
9036 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9037
9038 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9039
9040 PR tree-optimization/77916
9041 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9042 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9043 or unknown strides.
9044 (record_increment): Increments of -1 for unknown strides just use
9045 a multiply initializer like other negative values.
9046 (analyze_increments): Remove stopgap solution for -1 increment
9047 applied to pointer arithmetic.
9048
9049 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9050
9051 * dominance.c (dom_info::dom_info): Add new constructor for region
9052 which is vector of basic blocks.
9053 (dom_init): New method to initialize members common for both
9054 constructors.
9055 (dom_info::dom_info): Invoke dom_init for partial initialization.
9056 (dom_info::get_idom): Add check to corner cases on basic blocks which
9057 are not in region.
9058 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9059 to detect unreachable bbs.
9060 (dom_info::calc_idoms): Likewise.
9061 (compute_dom_fast_query_in_region): New function.
9062 (calculate_dominance_info_for_region): Likewise.
9063 (free_dominance_info_for_region): Likewise.
9064 * dominance.h: Add prototypes for introduced region-based functions
9065 * tree-if-conv.c (build_region): New function.
9066 (if_convertible_loop_p_1): Invoke local version of post-dominators
9067 calculation before basic block predication with subsequent freeing
9068 post-dominator info.
9069 (tree_if_conversion): Remove free of post-dominator info
9070 (pass_if_conversion::execute): Delete detection of infinite loops
9071 and fake edges to exit block since post-dominator calculation is
9072 performed per if-converted loop only.
9073
9074 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9075
9076 PR target/77308
9077 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9078 register explicitly.
9079 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9080 optimizing for size.
9081
9082 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9083
9084 * config/aarch64/aarch64.c: Delete inclusion of
9085 cortex-a57-fma-steering.h.
9086 (aarch64_override_options): Delete call
9087 to aarch64_register_fma_steering.
9088 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9089 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9090 * config/aarch64/aarch64-passes.def: New file.
9091 * config/aarch64/cortex-a57-fma-steering.c
9092 (aarch64_register_fma_steering): Delete definition.
9093 (make_pass_fma_steering): Remove static qualifier.
9094 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9095 (cortex-a57-fma-steering.o): Remove dependency on
9096 cortex-a57-fma-steering.h.
9097
9098 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9099
9100 * explow.c (validize_mem): Do not modify the argument in-place.
9101
9102 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9103
9104 * tree-streamer.c (record_common_node): Explicitly list expected
9105 tree codes.
9106
9107 2016-10-17 Richard Biener <rguenther@suse.de>
9108
9109 PR tree-optimization/77988
9110 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9111
9112 2016-10-17 Marek Polacek <polacek@redhat.com>
9113
9114 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9115
9116 2016-10-17 Richard Biener <rguenther@suse.de>
9117
9118 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9119 before using it.
9120
9121 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9122
9123 PR tree-optimization/71636
9124 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9125
9126 2016-10-17 Richard Biener <rguenther@suse.de>
9127
9128 * gimplify.c (gimplify_function_tree): Do not move the outer
9129 binds block.
9130
9131 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9132
9133 * langhooks.h (struct lang_hooks_for_decls): Remove
9134 function_decl_explicit_p, function_decl_deleted_p and
9135 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9136 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9137 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9138 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9139 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9140 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9141 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9142 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9143 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9144 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9145 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9146 * dwarf2out.c (gen_subprogram_die): Use
9147 lang_hooks.decls.decl_dwarf_attribute instead of
9148 lang_hooks.decls.function_decl_*.
9149
9150 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9151
9152 PR ada/37139
9153 PR ada/67205
9154 * common.opt (-ftrampolines): New option.
9155 * doc/invoke.texi (Code Gen Options): Document it.
9156 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9157 * doc/tm.texi: Regenerate.
9158 * builtins.def: Add init_descriptor and adjust_descriptor.
9159 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9160 on platforms with descriptors.
9161 (expand_builtin_init_descriptor): New function.
9162 (expand_builtin_adjust_descriptor): Likewise.
9163 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9164 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9165 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9166 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9167 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9168 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9169 (expand_call): Likewise. Move around call to prepare_call_address
9170 and pass all flags to it.
9171 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9172 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9173 (gimple_call_set_by_descriptor): New setter.
9174 (gimple_call_by_descriptor_p): New getter.
9175 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9176 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9177 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9178 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9179 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9180 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9181 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9182 * target.def (custom_function_descriptors): New POD hook.
9183 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9184 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9185 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9186 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9187 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9188 (build_common_builtin_nodes): Initialize init_descriptor and
9189 adjust_descriptor.
9190 * tree-nested.c: Include target.h.
9191 (struct nesting_info): Add 'any_descr_created' field.
9192 (get_descriptor_type): New function.
9193 (lookup_element_for_decl): New function extracted from...
9194 (create_field_for_decl): Likewise.
9195 (lookup_tramp_for_decl): ...here. Adjust.
9196 (lookup_descr_for_decl): New function.
9197 (convert_tramp_reference_op): Deal with descriptors.
9198 (build_init_call_stmt): New function extracted from...
9199 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9200 * defaults.h (FUNCTION_ALIGNMENT): Define.
9201 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9202 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9203 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9204 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9205 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9206
9207 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9208
9209 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9210 constants in CONST_VECTORs.
9211
9212 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9213
9214 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9215 register as destination of bmask.
9216 (vector_init_bshuffle): Likewise.
9217 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9218 (bmaskdi_vis): Enable only in 64-bit mode.
9219
9220 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9221
9222 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9223 make LR a separately shrink-wrapped component unless savres_strategy
9224 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9225 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9226 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9227
9228 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9229
9230 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9231 and keep looping on failure.
9232
9233 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9234
9235 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9236 set.
9237 (print_rtx_function): Update example in comment for...
9238 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9239 non-virtual pseudos with a '%' sigil followed by the regno, offset
9240 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9241 pseudo is dumped as "%0".
9242
9243 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9244
9245 PR middle-end/77959
9246 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9247 return a MEM.
9248
9249 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9250
9251 * config/sparc/sparc-passes.def: New file.
9252 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9253 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9254 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9255
9256 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9257
9258 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9259 loop peel to loops with exit test at the beginning.
9260
9261 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9262
9263 PR rtl-optimization/68212
9264 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9265 frequency when computing scale factor for peeled copies.
9266 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9267 values for switch/peel blocks/edges.
9268
9269 2016-10-14 Pedro Alves <palves@redhat.com>
9270
9271 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9272
9273 2016-10-14 Catherine Moore <clm@codesourcery.com>
9274
9275 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9276 micromips_globals to zero.
9277
9278 2016-10-14 Richard Biener <rguenther@suse.de>
9279
9280 PR tree-optimization/77979
9281 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9282 in the equivalency sets.
9283 (compare_names): Likewise.
9284
9285 2016-10-14 Martin Liska <mliska@suse.cz>
9286
9287 * builtins.h(target_char_cst_p): Declare the function.
9288 * builtins.c (fold_builtin_memchr): Remove.
9289 (target_char_cst_p): Move the function from gimple-fold.c.
9290 (fold_builtin_3): Do not call the function.
9291 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9292 (gimple_fold_builtin): Call the function.
9293 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9294
9295 2016-10-14 Martin Liska <mliska@suse.cz>
9296
9297 * builtins.c (fold_builtin_strcmp): Remove function.
9298 (fold_builtin_strncmp): Likewise.
9299 (fold_builtin_2): Remove call of the function.
9300 (fold_builtin_3): Likewise.
9301 * fold-const-call.c (fold_const_call): Add constant folding
9302 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9303 * fold-const-call.h (build_cmp_result): Declare the function.
9304 * gimple-fold.c (gimple_load_first_char): New function.
9305 (gimple_fold_builtin_string_compare): Likewise.
9306 (gimple_fold_builtin): Call the function.
9307
9308 2016-10-14 Nathan Sidwell <nathan@acm.org>
9309
9310 * gcov-io.c (gcov_open): Deconstify 'mode'.
9311
9312 2016-10-14 Martin Liska <mliska@suse.cz>
9313
9314 * fold-const.c (c_getstr): Support of properly \0-terminated
9315 string constants. New argument is added.
9316 * fold-const.h: New argument is added.
9317
9318 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9319
9320 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9321 New function.
9322 (aarch64_print_hint_for_core): Likewise.
9323 (aarch64_print_hint_for_arch): Likewise.
9324 (aarch64_validate_march): Use it. Fix indentation in type signature.
9325 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9326 (aarch64_validate_mtune): Likewise.
9327 (aarch64_handle_attr_arch): Likewise.
9328 (aarch64_handle_attr_cpu): Likewise.
9329 (aarch64_handle_attr_tune): Likewise.
9330
9331 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9332
9333 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9334 and udivmod_optab.
9335
9336 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9337
9338 * config/m68k/m68k.c (m68k_option_override): Check
9339 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9340 instead of stack_limit_rtx.
9341
9342 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9343
9344 * dwarf2out.c (gen_member_die): Handle inline static data member
9345 definitions.
9346
9347 2016-10-13 Nathan Sidwell <nathan@acm.org>
9348
9349 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9350 gcov_var.mode. Remove unnecessary fstat.
9351
9352 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9353
9354 PR bootstrap/77962
9355 * function.c (thread_prologue_and_epilogue_insns): Call all
9356 make_*logue_seq in the same order as traditional. Call them
9357 all a second time if shrink_wrapped_separate.
9358
9359 2016-10-13 Marek Polacek <polacek@redhat.com>
9360
9361 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9362 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9363 use -Wno-error.
9364
9365 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9366
9367 PR tree-optimization/77937
9368 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9369 to infinite when we have a pointer with an increment of -1.
9370
9371 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9372
9373 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9374 into ...
9375 * memmodel.h: This file.
9376 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9377 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9378 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9379 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9380 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9381 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9382 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9383 compare-elim.c, config/aarch64/aarch64-builtins.c,
9384 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9385 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9386 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9387 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9388 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9389 config/darwin.c, config/epiphany/epiphany.c,
9390 config/epiphany/mode-switch-use.c,
9391 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9392 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9393 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9394 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9395 config/m68k/m68k.c, config/mcore/mcore.c,
9396 config/microblaze/microblaze.c, config/mmix/mmix.c,
9397 config/mn10300/mn10300.c, config/moxie/moxie.c,
9398 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9399 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9400 config/nds32/nds32-memory-manipulation.c,
9401 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9402 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9403 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9404 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9405 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9406 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9407 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9408 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9409 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9410 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9411 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9412 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9413 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9414 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9415 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9416 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9417 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9418 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9419 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9420 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9421 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9422 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9423 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9424 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9425 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9426 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9427 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9428 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9429 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9430 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9431 var-tracking.c, varasm.c: Include memmodel.h.
9432 * genattrtab.c (write_header): Include memmodel.h in generated file.
9433 * genautomata.c (main): Likewise.
9434 * gengtype.c (open_base_files): Likewise.
9435 * genopinit.c (main): Likewise.
9436 * genconditions.c (write_header): Include memmodel.h earlier in
9437 generated file.
9438 * genemit.c (main): Likewise.
9439 * genoutput.c (output_prologue): Likewise.
9440 * genpeep.c (main): Likewise.
9441 * genpreds.c (write_insn_preds_c): Likewise.
9442 * genrecog.c (write_header): Likewise.
9443 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9444
9445 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9446
9447 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9448 for new "compact" param of print_rtx_function. Check for "cinsn"
9449 rather than "insn".
9450 * print-rtl-function.c (flag_compact): New decl.
9451 (print_rtx_function): Add param "compact" and use it to set
9452 flag_compact, adding a description of the effect to the leading
9453 comment, and updating the example output.
9454 * print-rtl.c (flag_compact): New variable.
9455 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9456 mode.
9457 (print_rtx_operand_code_i): When printing source locations, wrap
9458 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9459 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9460 virtuals in compact mode.
9461 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9462 apart from in LABEL_REFs.
9463 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9464 Don't print basic block ids in compact mode.
9465 (print_rtx): In compact mode, prefix the code of insns with "c",
9466 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9467 * print-rtl.h (print_rtx_function): Add "compact" param.
9468
9469 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9470
9471 * arm.h (TARGET_VFP): Delete.
9472 (TARGET_VFPD32): Remove references to TARGET_VFP.
9473 (TARGET_VFP3, TARGET_VFP5): Likewise.
9474 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9475 (TARGET_NEON_FP16): Likewise.
9476 (TARGET_FMA): Likewise.
9477 (TARGET_CRYPTO): Likewise.
9478 (TARGET_NEON): Likewise.
9479 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9480 (FUNCTION_ARG_REGNO_P): Likewise.
9481 * arm.c (arm_option_check_internal): Likewise.
9482 (arm_option_override): Likewise.
9483 (use_return_insn): Likewise.
9484 (arm_function_value_regno_p): Likewise.
9485 (arm_apply_result_size): Likewise.
9486 (use_vfp_abi): Likewise.
9487 (arm_legitimate_address_outer_p): Likewise.
9488 (thumb2_legitimate_address_p): Likewise.
9489 (arm_legitimate_index_p): Likewise.
9490 (thumb2_legitimate_index_p): Likewise.
9491 (arm_legitimate_address): Likewise.
9492 (arm_get_vfp_saved_size): Likewise.
9493 (arm_emit_vfp_multi_reg_pop): Likewise.
9494 (arm_get_frame_offsets): Likewise.
9495 (arm_save_coproc_regs): Likewise.
9496 (arm_hard_regno_mode_ok): Likewise.
9497 (arm_expand_epilogue_apcs_frame): Likewise.
9498 (arm_expand_epilogue): Likewise.
9499 (arm_file_start): Likewise.
9500 (arm_conditional_register_usage): Likewise.
9501 (arm_validize_comparison): Use vfp_compare_operand directly.
9502 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9503 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9504 unsupported usage.
9505 (arm_atomic_assign_expand_fenv): Likewise.
9506 * arm.md (divsf3): Likewise.
9507 (arm_negsi2): Likewise.
9508 (absdf2): Likewise.
9509 (arm_movdi): Likewise.
9510 (arm_movt): Likewise.
9511 (cbranchsf4): Change predicate to vfp_compare_operand.
9512 (cbranchdf4): Change predicate to vfp_compare_operand.
9513 (cstorehf4): Change predicate to vfp_compare_operand.
9514 (cstoresf4): Change predicate to vfp_compare_operand.
9515 (cstoredf4): Change predicate to vfp_compare_operand.
9516 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9517 (movhi_insn_arch4, movhi_bytes): Likewise.
9518 * constraints.md (Dt): Likewise.
9519 (Dp): Likewise.
9520 * iterators.md (SDF): Likewise.
9521 * predicates.md (arm_float_compare_operand): Delete.
9522 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9523 TARGET_VFP.
9524 (const_double_vcvt_power_of_two): Likewise.
9525 * thumb2.md thumb2_movsi_insn): Likewise.
9526 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9527 (movhf_vfp): Likewise.
9528 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9529 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9530 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9531 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9532 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9533 (subsf3_vfp, divsf3_vfp): Likewise.
9534 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9535 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9536 (mulsf3negsfsubsf_vfp): Likewise.
9537 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9538 (floatunssisf2, sqrtsf2_vfp): Likewise.
9539 (movcc_vfp): Likewise.
9540 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9541 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9542 (push_multi_vfp): Likewise.
9543 (set_fpscr, get_fpscr): Likewise.
9544 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9545
9546 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9547
9548 * arm.h (TARGET_VFP): Unconditionally define to 1.
9549 (arm_fpu_desc): Remove 'model' field.
9550 (TARGET_FPU_MODEL): Delete.
9551 * arm.c (all_fpus): Don't initialize the model field.
9552 (arm_can_inline_p): Don't check the FPU model.
9553 * arm-fpus.def: Remove redundant model field from all FPU
9554 descriptions.
9555
9556 2016-10-13 Richard Biener <rguenther@suse.de>
9557
9558 PR middle-end/77826
9559 * genmatch.c (struct capture): Add value_match member.
9560 (commutate): Preserve value_match.
9561 (lower_opt_convert): Likewise.
9562 (lower_cond): Likewise.
9563 (replace_id): Likewise.
9564 (struct dt_operand): Add value_match member.
9565 (decision_tree::cmp_node): Compare it.
9566 (decision_tree::insert_operand): Honor it when finding and
9567 when appending a DT_MATCH.
9568 (dt_operand::gen_match_op): Generate a type check after
9569 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9570 (parser::get_internal_capture_id): New helper.
9571 (parser::finish_match_operand): New function lowering @@<id>.
9572 (parser::parse_capture): Parse @@<id> as value-match.
9573 (parser::parse_expr): Use get_internal_capture_id.
9574 (parser::parse_simplify): Call finish_match_operand.
9575 (walk_captures): New helper.
9576 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9577 of operand_equal_p.
9578 ((X /[ex] A) * A -> X): Likewise.
9579 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9580 convert[12] and value-matching.
9581 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9582 ((X | Y) | Y -> X | Y): Likewise.
9583 ((X ^ Y) ^ Y -> X): Likewise.
9584 (A - (A & B) -> ~B & A): Likewise.
9585 ((T)(P + A) - (T)P -> (T) A): Likewise.
9586 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9587 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9588 * doc/match-and-simplify.texi: Amend capture section.
9589
9590 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9591
9592 * config/arc/arc.md (umul_600): Remove predicated variant.
9593 (umul64_600): Likewise.
9594
9595 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9596
9597 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9598
9599 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9600
9601 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9602 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9603 no-overflow information to vect_do_peeling_for_loop_bound and
9604 vect_gen_vector_loop_niters.
9605
9606 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9607
9608 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9609 iterates 1 time.
9610
9611 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9612
9613 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9614 adjust_vec automatically.
9615 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9616 param exit_bb to guard_to.
9617 (slpeel_checking_verify_cfg_after_peeling):
9618 (set_prologue_iterations):
9619 (create_lcssa_for_virtual_phi): New func which is factored out from
9620 slpeel_tree_peel_loop_to_edge.
9621 (slpeel_tree_peel_loop_to_edge):
9622 (iv_phi_p): New func.
9623 (vect_can_advance_ivs_p): Call iv_phi_p.
9624 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9625 new gimple stmts in basic block.
9626 (vect_gen_niters_for_prolog_loop): Rename to...
9627 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9628 adjust implementation.
9629 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9630 sizetype if necessary.
9631 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9632 it to external function.
9633 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9634 (vect_gen_vector_loop_niters_mult_vf): New.
9635 (slpeel_update_phi_nodes_for_loops): New.
9636 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9637 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9638 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9639 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9640 tree-vect-loop-manip.c
9641 (vect_generate_tmps_on_preheader): Delete.
9642 (vect_transform_loop): Rename vectorization_factor to vf. Call
9643 vect_do_peeling instead of vect_do_peeling-* functions.
9644 * tree-vectorizer.h (vect_do_peeling): New decl.
9645 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9646 (vect_do_peeling_for_loop_bound): Delete.
9647 (vect_do_peeling_for_alignment): Delete.
9648
9649 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9650
9651 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9652 duplicated loop after its preheader and after the original loop.
9653
9654 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9655
9656 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9657 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9658
9659 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9660
9661 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9662 for live variable outside loop but not in lcssa form.
9663
9664 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9665
9666 * cfg.c (reset_original_copy_tables): New func.
9667 * cfg.h (reset_original_copy_tables): New decl.
9668
9669 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR c/77946
9672 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9673 public_flag.
9674 * varasm.c (default_binds_local_p_3): Formatting fix.
9675
9676 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9677
9678 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9679 style issue.
9680 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9681 Remove useless code.
9682
9683 2016-10-13 Martin Liska <mliska@suse.cz>
9684
9685 PR tree-optimization/77943
9686 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9687 a different EH landing pads.
9688
9689 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9690
9691 PR target/77957
9692 * hooks.h (hook_tree_void_null): Declare.
9693 * hooks.c (hook_tree_void_null): New function.
9694 * langhooks.c (lhd_return_null_tree_v): Remove.
9695 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9696 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9697 set y to const0_rtx.
9698 * function.c (stack_protect_epilogue): Likewise.
9699 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9700 if TARGET_THREAD_SSP_OFFSET is defined.
9701 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9702 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9703 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9704 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9705 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9706 (ix86_stack_protect_guard): New function.
9707
9708 2016-10-13 Richard Biener <rguenther@suse.de>
9709
9710 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9711 rtl_for_decl_init during early phase.
9712 (gen_variable_die): Do not create locations during early phase.
9713 (gen_label_die): Likewise.
9714 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9715 twice.
9716
9717 2016-10-12 Richard Biener <rguenther@suse.de>
9718
9719 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9720 try_add_new_range and made to eturn new range.
9721 (evrp_dom_walker::before_dom_children): Push op1 value range before
9722 pushing op0 value range.
9723
9724 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9725
9726 PR tree-optimization/77937
9727 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9728 POINTER_TYPE_P on the candidate type to determine whether
9729 candidates in this chain require pointer arithmetic.
9730
9731 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9732
9733 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9734 correction if the type is smaller than a word.
9735 (visium_select_cc_mode): Add ... fall through ... comment.
9736
9737 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9738
9739 * config/rs6000/rs6000.c (machine_function): Add new fields
9740 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9741 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9742 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9743 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9744 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9745 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9746 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9747 (rs6000_get_separate_components): New function.
9748 (rs6000_components_for_bb): New function.
9749 (rs6000_disqualify_components): New function.
9750 (rs6000_emit_prologue_components): New function.
9751 (rs6000_emit_epilogue_components): New function.
9752 (rs6000_set_handled_components): New function.
9753 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9754 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9755 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9756 (rs6000_emit_epilogue): Don't emit GPR restores if
9757 gpr_is_wrapped_separately for that register. Don't make a
9758 REG_CFA_RESTORE note for registers we did not restore, either.
9759
9760 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9761
9762 * function.c (thread_prologue_and_epilogue_insns): Call
9763 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9764 if it has possibly changed. Compute the split_prologue_seq and
9765 epilogue_seq later, too.
9766 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9767 (dump_components): New function.
9768 (struct sw): New struct.
9769 (SW): New function.
9770 (init_separate_shrink_wrap): New function.
9771 (fini_separate_shrink_wrap): New function.
9772 (place_prologue_for_one_component): New function.
9773 (spread_components): New function.
9774 (disqualify_problematic_components): New function.
9775 (emit_common_heads_for_components): New function.
9776 (emit_common_tails_for_components): New function.
9777 (insert_prologue_epilogue_for_components): New function.
9778 (try_shrink_wrapping_separate): New function.
9779 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9780
9781 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9782
9783 * regrename.c (build_def_use): Invalidate chains that have a
9784 REG_CFA_RESTORE on some instruction.
9785
9786 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9787
9788 * dce.c (delete_unmarked_insns): Don't delete instructions with
9789 a REG_CFA_RESTORE note.
9790
9791 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9792
9793 * common.opt (-fshrink-wrap-separate): New flag.
9794 * doc/invoke.texi: Document it.
9795 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9796 * doc/tm.texi: Regenerate.
9797 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9798 * target.def (shrink_wrap): New hook vector.
9799 (get_separate_components, components_for_bb, disqualify_components,
9800 emit_prologue_components, emit_epilogue_components,
9801 set_handled_components): New hooks.
9802
9803 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9804
9805 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9806 vector return by reference only if -Wpsabi.
9807 (rs6000_pass_by_reference): Similarly, for argument passing.
9808
9809 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9810
9811 * function-tests.c: Include "print-rtl.h".
9812 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9813 function, and verify what is dumped.
9814 * print-rtl-function.c (print_edge): New function.
9815 (begin_any_block): New function.
9816 (end_any_block): New function.
9817 (can_have_basic_block_p): New function.
9818 (print_rtx_function): Track the basic blocks of insns in the
9819 chain, wrapping those that are within blocks within "(block)"
9820 directives. Remove the "(cfg)" directive.
9821
9822 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9823
9824 * selftest.c (selftest::read_file): New function.
9825 (selftest::test_read_file): New function.
9826 (selftest::selftest_c_tests): Call test_read_file.
9827 * selftest.h (selftest::read_file): New decl.
9828
9829 2016-10-12 Richard Biener <rguenther@suse.de>
9830
9831 PR debug/77947
9832 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9833 function context.
9834
9835 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9836
9837 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9838
9839 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9840 dwarf2out_assembly_start.
9841
9842 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9843
9844 * Makefile.in (SELFTEST_FLAGS): New variable.
9845 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9846
9847 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9848 early_finish hook.
9849
9850 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9851
9852 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9853 dumped in RTL dumps.
9854
9855 2016-10-12 Martin Liska <mliska@suse.cz>
9856
9857 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
9858 (gimple_fold_builtin_memory_op): Use the function.
9859 (gimple_fold_builtin_strchr): Likewise.
9860 (gimple_fold_builtin_strcat): Likewise.
9861 (gimple_build): Likewise.
9862
9863 2016-10-12 Nathan Sidwell <nathan@acm.org>
9864
9865 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
9866
9867 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9868
9869 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
9870 equivalent 32-bit constant (modulo 2**32) when that yields
9871 smaller instructions.
9872 (size_of_int_loc_descriptor): Update accordingly.
9873
9874 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
9875
9876 * dwarf2out.c (dwarf2out_early_global_decl): For nested
9877 functions, call dwarf2out_decl on the parent function first.
9878
9879 2016-10-12 Richard Biener <rguenther@suse.de>
9880
9881 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
9882 on the conversion.
9883
9884 2016-10-12 Richard Biener <rguenther@suse.de>
9885
9886 * tree-ssa-propagate.c
9887 (substitute_and_fold_dom_walker::before_dom_children): Do not
9888 ignore ASSERT_EXPRs but only preserve them.
9889 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
9890 that have been propagated into.
9891 (vrp_finalize): Enable DCE for substitute_and_fold.
9892
9893 2016-10-12 Richard Biener <rguenther@suse.de>
9894
9895 PR tree-optimization/77920
9896 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
9897 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
9898 (simplify_abs_using_ranges): Likewise.
9899 (simplify_conversion_using_ranges): Likewise.
9900 (simplify_stmt_using_ranges): Adjust.
9901
9902 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9903
9904 PR tree-optimization/77929
9905 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
9906 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
9907
9908 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9909
9910 PR target/77934
9911 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
9912 needs a base register for arg 1.
9913
9914 2016-10-12 Jakub Jelinek <jakub@redhat.com>
9915
9916 * common.opt (Wimplicit-fallthrough) Turn into alias to
9917 -Wimplicit-fallthrough=3. Remove EnabledBy.
9918 (Wimplicit-fallthrough=): New option.
9919 * gimplify.c (warn_implicit_fallthrough_r): Use
9920 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
9921 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
9922 to -Wimplicit-fallthrough=3.
9923 (-Wimplicit-fallthrough=): Document.
9924
9925 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
9926
9927 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
9928 and GEU in DImode if TARGET_SUBXC.
9929 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
9930 (seqdi<W:mode>_zero_subxc): Delete.
9931 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
9932 (neg_seqdi<W:mode>_zero_vis3): Delete.
9933 (plus_seqdi<W:mode>_zero): Likewise.
9934 (minus_seqdi<W:mode>_zero): Likewise.
9935 (plus_plus_sltu<W:mode>): Accept only register.
9936 (addx<W:mode>): Likewise.
9937 (plus_sltu<W:mode>_vis3): Likewise.
9938 (plus_plus_sltu<W:mode>_vis3): Likewise.
9939 (neg_sgeu<W:mode>_vis3): Delete.
9940 (minus_sgeu<W:mode>_vis3): Likewise.
9941 (addxc<W:mode>): Accept only registers.
9942 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9943 (minus_neg_sltu<W:mode>_subxc): Accept only register.
9944 (neg_plus_sltu<W:mode>_subxc): Likewise.
9945 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
9946 (minus_minus_sltu<W:mode>_subxc): Accept only register.
9947 (sgeu<W:mode>_insn_subxc): Delete.
9948 (plus_sgeu<W:mode>_subxc): Likewise.
9949 (subxc<W:mode>): Accept only register.
9950 (scc splitter): Split always GEU again.
9951
9952 2016-10-11 Jeff Law <law@redhat.com>
9953
9954 PR tree-optimization/77424
9955 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
9956 dead conditionals. Assert that all e->aux fields are NULL.
9957
9958 2016-10-11 David Malcolm <dmalcolm@redhat.com>
9959
9960 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
9961 operand-printing "switch" statement into...
9962 (print_rtx_operand_code_0): ...this new function, ...
9963 (print_rtx_operand_code_e): ...this new function, ...
9964 (print_rtx_operand_codes_E_and_V): ...this new function, ...
9965 (print_rtx_operand_code_i): ...this new function, ...
9966 (print_rtx_operand_code_r): ...this new function, ...
9967 (print_rtx_operand_code_u): ...this new function, ...
9968 (print_rtx_operand): ...and this new function.
9969
9970 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
9971
9972 * config/alpha/alpha-passes.def: New file.
9973 * config/alpha/t-alpha: New file.
9974 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
9975 (make_pass_handle_trap_shadows): New prototype.
9976 (make_pass_align_insns): Ditto.
9977 * config/alpha/alpha.c (alpha_option_override): Don't register
9978 passes here.
9979 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
9980
9981 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9982
9983 PR target/77924
9984 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
9985 distinct __ibm128 IBM extended double type if long doubles are
9986 128-bits and the default format for long double is IEEE 128-bit.
9987
9988 2016-10-11 Richard Biener <rguenther@suse.de>
9989
9990 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
9991 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
9992 (verify_die): New function.
9993 (dwarf2out_finish): Call it.
9994 (output_line_info): Handle case of -gsplit-dwarf without
9995 DWARF2_ASM_LINE_DEBUG_INFO.
9996
9997 2016-10-11 Richard Biener <rguenther@suse.de>
9998
9999 PR debug/77931
10000 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10001 sub-chains of BLOCK_VARS and gimple_bind_vars.
10002
10003 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10004
10005 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10006
10007 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10008
10009 * config/sparc/sparc.opt (msubxc): New option.
10010 * doc/invoke.texi (SPARC options): Document it and tidy up.
10011 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10012 * doc/tm.texi: Regenerate.
10013 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10014 (CCNZ): ...this.
10015 (CCX_NOOV): Rename into...
10016 (CCXNZ): ...this.
10017 (CCC): New.
10018 (CCXC): Likewise.
10019 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10020 (fcc0_register_operand): Likewise.
10021 (icc_register_operand): New.
10022 (icc_or_fcc_register_operand): Simplify.
10023 (nz_comparison_operator): New.
10024 (c_comparison_operator): Likewise.
10025 (noov_compare_operator): Rename into...
10026 (icc_comparison_operator): ...this. Use above predicates.
10027 (noov_compare64_operator): Rename into...
10028 (v9_comparison_operator): ...this and tidy up.
10029 (fcc_comparison_operator): New.
10030 (icc_or_fcc_comparison_operator): Likewise.
10031 (v9_register_compare_operator): Rename info...
10032 (v9_register_comparison_operator): ...this.
10033 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10034 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10035 for Niagara-7.
10036 (sparc_fixed_condition_code_regs): New function.
10037 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10038 renaming and add support for CCC/CCXC.
10039 (output_cbranch): Likewise.
10040 (sparc_print_operand): Likewise.
10041 (gen_v9_scc): Remove obsolete assertion.
10042 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10043 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10044 (output_cbcond): Remove bogus handling of CC modes.
10045 (sparc_register_move_cost): Return 100 for NO_REGS.
10046 * config/sparc/sparc.md (W): New mode iterator.
10047 (length): Adjust for noov_compare64_operator renaming.
10048 (cmpsi_sne): New instruction.
10049 (cmpdi_sne): Likewise.
10050 (seqdi_special): Delete.
10051 (seqdi_special): Likewise.
10052 (snesi<P:mode>_special): Likewise.
10053 (snedi_special): Likewise.
10054 (snedi_special_vis3): Likewise.
10055 (snesi patterns): Use W iterator.
10056 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10057 (sltu patterns): Likewise.
10058 (sgeu patterns): Likewise.
10059 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10060 (normal_branch): Use icc_comparison_operator predicate.
10061 (inverted_branch): Likewise.
10062 (cbcond_sp32): Use comparison_operator predicate.
10063 (cbcond_sp64): Likewise.
10064 (normal_int_branch_sp64): Adjust for renaming
10065 (inverted_int_branch_sp64): Likewise.
10066 (mov<I:mode>_cc_reg_sp64): Likewise.
10067 (movsf_cc_reg_sp6): Likewise.
10068 (movdf_cc_reg_sp64): Likewise.
10069 (movtf_cc_reg_hq_sp64): Likewise.
10070 (movtf_cc_reg_sp64): Likewise.
10071 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10072 (movsf_cc_v9): Likewise.
10073 (movdf_cc_v9): Likewise.
10074 (movtf_cc_hq_v9): Likewise.
10075 (movtf_cc_v9): Likewise.
10076 (adddi3): Call gen_adddi3_sp32.
10077 (adddi3_insn_sp32): Rename to...
10078 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10079 and use CCCmode for the carry.
10080 (addx_extend_sp32): Use CCCmode for the carry.
10081 (addx_extend_sp64): Delete.
10082 (adddi3_extend_sp32): Use CCCmode for the carry.
10083 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10084 (subdi3): Call gen_subdi3_sp32.
10085 (subdi3_insn_sp32): Rename to...
10086 (subdi3_sp32): ...this and use CCmode for the carry.
10087 (subx_extend_sp32): Use CCCmode for the carry.
10088 (subx_extend_sp64): Delete.
10089 (subdi3_extend_sp32): Use CCmode for the carry.
10090 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10091 (negdi3): Call gen_negdi3_sp32.
10092 (negdi3_sp32): Use CCCmode for the carry.
10093 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10094 (cmp_nz_ashift_1): Use CCNZ mode.
10095 (cmp_nz_set_ashift_1): Likewise.
10096 (ctrapsi4): Use comparison_operator predicate.
10097 (ctrapdi4): Likewise.
10098 (trapsi_insn): Use icc_comparison_operator predicate.
10099 (trapdi_insn): Likewise.
10100 (edge8 patterns): Use CCNZmode.
10101 (edge16 patterns): Likewise.
10102 (edge32 patterns): Likewise.
10103
10104 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10105
10106 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10107 (CCNZ): ...this.
10108 (CC_BTST): Rename into...
10109 (CCC): ...this.
10110 * config/visium/predicates.md (real_add_operand): New.
10111 (visium_btst_operator): Rename into...
10112 (visium_equality_comparison_operator): ...this.
10113 (visium_noov_operator): Rename into...
10114 (visium_nz_comparison_operator): ...this.
10115 (visium_c_comparison_operator): New.
10116 (visium_branch_operator): Adjust and deal with all CC modes.
10117 * config/visium/visium.c (visium_adjust_cost): Adjust.
10118 (visium_split_double_add): Use the *_set_carry patterns.
10119 (visium_select_cc_mode): Add support for CCC mode and adjust.
10120 (output_cbranch): Adjust and use the carry-based operators for
10121 floating-point comparisons.
10122 * config/visium/visium.md (flags_subst_arith): Adjust.
10123 (addsi3_insn_set_carry): New instruction.
10124 (subsi3_insn_set_carry): Likewise.
10125 (negsi2_insn_set_carry): Likewise.
10126 (btst): Adjust.
10127 (cmp<mode>_sne): Likewise.
10128 (cbranch<mode>4): Use ordered_comparison_operator.
10129 (cbranch<mode>4_insn): Likewise.
10130 (cbranchsi4_btst_insn): Adjust.
10131
10132 2016-10-11 Tom de Vries <tom@codesourcery.com>
10133
10134 PR middle-end/77558
10135 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10136 special-casing.
10137
10138 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10139
10140 * tree.h (build_complex_type): Add second parameter with default.
10141 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10142 recursive call. Create a TYPE_DECL only if NAMED is true.
10143 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10144
10145 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10146
10147 New avr-passes.def to register AVR specific passes.
10148
10149 * config/avr/avr-passes.def: New file.
10150 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10151 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10152 (make_avr_pass_recompute_note): New proto.
10153 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10154 (avr_pass_recompute_notes): Use anonymous namespace.
10155 (avr_register_passes): Remove function...
10156 (avr_option_override): ...and its call.
10157
10158 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10159
10160 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10161 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10162 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10163 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10164 flags.
10165 * config/mips/mips.c (mips_option_override): Enable the branch
10166 likely depending on the tune flags and optimization level.
10167 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10168 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10169 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10170 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10171
10172 2016-10-11 Richard Biener <rguenther@suse.de>
10173
10174 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10175 (output_function): Properly stream the whole block tree.
10176 * lto-streamer-in.c (input_function): Likewise.
10177
10178 2016-10-11 Marek Polacek <polacek@redhat.com>
10179
10180 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10181
10182 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10183
10184 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10185 (evrp_dom_walker::before_dom_children): Infer and push new value
10186 ranges for x in y < x.
10187
10188 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10189
10190 PR target/77586
10191 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10192 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10193 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10194 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10195 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10196 (IA64_NO_LIBGCC_TFMODE): Likewise.
10197
10198 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10199
10200 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10201 copying.
10202
10203 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10204
10205 * config.gcc: Add aarch64-*-freebsd* support.
10206 * config.host: Likewise.
10207 * config/aarch64/aarch64-freebsd.h: New file.
10208 * config/aarch64/t-aarch64-freebsd: Ditto.
10209
10210 2016-10-10 Jeff Law <law@redhat.com>
10211
10212 PR tree-optimization/71947
10213 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10214 B with A within a single statement.
10215
10216 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10217
10218 PR tree-optimization/77824
10219 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10220 zero cost for copies.
10221 (find_candidates_dom_walker::before_dom_children): Replace
10222 MODIFY_EXPR with SSA_NAME.
10223 (replace_mult_candidate): Likewise.
10224 (replace_profitable_candidates): Likewise.
10225
10226 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10227
10228 * config/s390/s390.h: Wrap more macros args in brackets and fix
10229
10230 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10231
10232 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10233
10234 2016-10-10 Andreas Schwab <schwab@suse.de>
10235
10236 PR target/77738
10237 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10238 pseudo is not DImode.
10239
10240 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10241
10242 * common/config/arc/arc-common.c (arc_option_optimization_table):
10243 Remove compact casesi option.
10244 * config/arc/arc.c (arc_override_options): Use compact casesi
10245 option only for pre-ARCv2 cores.
10246 * doc/invoke.texi (mcompact-casesi): Update text.
10247
10248 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10249
10250 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10251 Add macro to say we can efficiently handle overlapping unaligned
10252 loads.
10253 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10254 poor code for processors older than p8.
10255
10256 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10257
10258 * gen-pass-instances.awk: Remove GNUism.
10259
10260 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10261
10262 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10263 NULL of (*ipcp_transformations)][node->uid].
10264
10265 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10266
10267 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10268 (MALLOC_ABI_ALIGNMENT): Define.
10269
10270 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10271
10272 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10273 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10274 VAR_OR_FUNCTION_DECL_P macros.
10275 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10276 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10277 chkp_find_bounds_1): Likewise.
10278 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10279 * hsa-gen.c (get_symbol_for_decl): Likewise.
10280 * cgraphunit.c (check_global_declaration, analyze_functions,
10281 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10282 Likewise.
10283 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10284 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10285 Likewise.
10286 * tree.c (set_decl_section_name, copy_node_stat,
10287 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10288 merge_dllimport_decl_attributes, handle_dll_attribute,
10289 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10290 verify_type): Likewise.
10291 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10292 find_explicit_erroneous_behavior): Likewise.
10293 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10294 * ipa.c (process_references): Likewise.
10295 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10296 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10297 notice_global_symbol, assemble_variable, mark_decl_referenced,
10298 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10299 make_decl_one_only, default_section_type_flags,
10300 categorize_decl_for_section, default_encode_section_info): Likewise.
10301 * trans-mem.c (requires_barrier): Likewise.
10302 * gimple-expr.c (mark_addressable): Likewise.
10303 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10304 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10305 expand_debug_expr): Likewise.
10306 * tree-dump.c (dequeue_and_dump): Likewise.
10307 * ubsan.c (instrument_bool_enum_load): Likewise.
10308 * tree-pretty-print.c (print_declaration): Likewise.
10309 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10310 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10311 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10312 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10313 pass_build_ssa::execute): Likewise.
10314 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10315 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10316 Likewise.
10317 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10318 Likewise.
10319 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10320 can_be_nonlocal, remap_decls, copy_debug_stmt,
10321 initialize_inlined_parameters, add_local_variables,
10322 reset_debug_binding, replace_locals_op): Likewise.
10323 * dse.c (can_escape): Likewise.
10324 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10325 Likewise.
10326 * tree-diagnostic.c (default_tree_printer): Likewise.
10327 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10328 unpack_ts_decl_with_vis_value_fields,
10329 lto_input_ts_decl_common_tree_pointers): Likewise.
10330 * builtins.c (builtin_save_expr, fold_builtin_expect,
10331 readonly_data_expr): Likewise.
10332 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10333 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10334 Likewise.
10335 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10336 * gimplify.c (force_constant_size, gimplify_bind_expr,
10337 gimplify_decl_expr, gimplify_var_or_parm_decl,
10338 gimplify_compound_lval, gimplify_init_constructor,
10339 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10340 gimplify_type_sizes): Likewise.
10341 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10342 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10343 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10344 remove_unused_locals): Likewise.
10345 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10346 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10347 * function.c (instantiate_expr, instantiate_decls_1,
10348 setjmp_vars_warning, add_local_decl): Likewise.
10349 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10350 Likewise.
10351 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10352 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10353 optimize_va_list_gpr_fpr_size): Likewise.
10354 * tree-nrv.c (pass_nrv::execute): Likewise.
10355 * tsan.c (instrument_expr): Likewise.
10356 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10357 * vtable-verify.c (verify_bb_vtables): Likewise.
10358 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10359 get_ref_base_and_extent): Likewise.
10360 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10361 Likewise.
10362 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10363 analyze_all_variable_accesses): Likewise.
10364 * tree-nested.c (get_nonlocal_debug_decl,
10365 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10366 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10367 get_local_debug_decl, convert_local_omp_clauses,
10368 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10369 Likewise.
10370 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10371 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10372 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10373 dbxout_symbol, dbxout_common_check): Likewise.
10374 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10375 string_constant): Likewise.
10376 * hsa.c (hsa_get_declaration_name): Likewise.
10377 * passes.c (rest_of_decl_compilation): Likewise.
10378 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10379 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10380 pack_ts_decl_with_vis_value_fields,
10381 write_ts_decl_common_tree_pointers): Likewise.
10382 * stor-layout.c (place_field): Likewise.
10383 * symtab.c (symtab_node::maybe_create_reference,
10384 symtab_node::verify_base, symtab_node::make_decl_local,
10385 symtab_node::copy_visibility_from,
10386 symtab_node::can_increase_alignment_p): Likewise.
10387 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10388 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10389 fortran_common, add_location_or_const_value_attribute,
10390 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10391 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10392 optimize_one_addr_into_implicit_ptr,
10393 optimize_location_into_implicit_ptr): Likewise.
10394 * gimple-low.c (record_vars_into): Likewise.
10395 * ipa-visibility.c (update_vtable_references): Likewise.
10396 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10397 Likewise.
10398 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10399 DFS::DFS_write_tree_body, write_symbol): Likewise.
10400 * langhooks.c (lhd_warn_unused_global_decl,
10401 lhd_set_decl_assembler_name): Likewise.
10402 * attribs.c (decl_attributes): Likewise.
10403 * except.c (output_ttype): Likewise.
10404 * varpool.c (varpool_node::get_create, ctor_for_folding,
10405 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10406 * fold-const.c (fold_unary_loc): Likewise.
10407 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10408 ipa_find_agg_cst_from_init): Likewise.
10409 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10410 expand_omp_target, lower_omp_regimplify_p,
10411 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10412 find_link_var_op): Likewise.
10413 * tree-chrec.c (chrec_contains_symbols): Likewise.
10414 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10415 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10416 execute_fixup_cfg): Likewise.
10417
10418 PR tree-optimization/77901
10419 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10420 if ranges[i].exp is SSA_NAME when looking for >= and only when
10421 ranges[i].exp is NULL or SSA_NAME when looking for the other
10422 comparison.
10423
10424 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10425
10426 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10427 (ipcp_param_lattices): Remove field alignment.
10428 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10429 (set_all_contains_variable): Remove call to
10430 ipcp_alignment_lattice::set_to_bottom.
10431 (initialize_node_lattices): Likewise.
10432 (propagate_alignment_accross_jump_function): Remove.
10433 (propagate_constants_accross_call): Remove call to
10434 propagate_alignment_accross_jump_function.
10435 (ipcp_store_alignment_results): Remove.
10436 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10437 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10438 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10439 pretty-printing of alignment jump function.
10440 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10441 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10442 alignments and remove computing ipa_alignment jump function.
10443 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10444 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10445 (ipa_read_jump_function): Remove reading of ipa_alignment.
10446 (write_ipcp_transformation_info): Remove streaming for alignment
10447 propagation summary.
10448 (read_ipcp_transformation_info): Remove reading of alignment
10449 propagation summary.
10450 (ipcp_update_alignments): Remove.
10451 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10452 type.
10453 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10454 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10455 * ipa-prop.h (ipa_alignment): Remove.
10456 (ipa_jump_func): Remove field alignment.
10457 (ipcp_transformation_summary): Remove field alignments.
10458 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10459 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10460 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10461
10462 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10463
10464 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10465
10466 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10467 change.
10468 (visium_expand_fp_cstore): Likewise.
10469
10470 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10471
10472 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10473 * diagnostic.c (warning_at_rich_loc_n): New function.
10474 (diagnostic_n_impl_richloc): Likewise.
10475 (diagnostic_n_impl): Move most of the function to
10476 diagnostic_n_impl_richloc and call it.
10477
10478 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10479
10480 * gen-pass-instances.awk: Rewritten.
10481 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10482 $(PASSES_EXTRA) after passes.def to the script.
10483 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10484 * config/i386/i386-passes.def: New file.
10485 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10486 make_pass_stv): Declare.
10487 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10488 false.
10489 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10490 or !TARGET_64BIT.
10491 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10492 (pass_stv::timode_p): New non-static data member.
10493 (ix86_option_override): Don't register passes here.
10494
10495 * doc/invoke.texi: Document accepting Else, fallthrough.
10496
10497 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10498 style changes.
10499
10500 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10501 FALLTHRU comment styles.
10502
10503 2016-10-07 Andrew Pinski <apinski@cavium.com>
10504
10505 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10506 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10507 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10508 Likewise.
10509 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10510 Likewise.
10511 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10512 Likewise.
10513 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10514 (AARCH64_ARCH): Likewise.
10515 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10516 Likewise.
10517 (AARCH64_CORE): Likewise.
10518 (AARCH64_ARCH): Likewise.
10519 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10520 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10521 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10522 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10523 (AARCH64_ARCH): Likewise.
10524 (AARCH64_CORE): Likewise.
10525 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10526 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10527 (AARCH64_CORE): Likewise.
10528 (AARCH64_ARCH): Likewise.
10529
10530 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10531
10532 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10533 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10534 floating point type infrastructre, and -mfloat128 that enables the
10535 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10536 if -mfloat128-type. Define __ibm128 to be long double by default.
10537 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10538 the IEEE 128-bit floating point type infrastructure should
10539 automatically be enabled.
10540 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10541 instead of -mfloat128 to enable KFmode.
10542 (rs6000_option_override_internal): Split the option -mfloat128
10543 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10544 systems, automatically set -mfloat128-type, but don't enable it on
10545 other operating systems. Move setting the long double size and
10546 IEEE quad support before the IEEE 128-bit floating point changes.
10547 (rs6000_init_builtins): Do not create a unique type for __ibm128
10548 if long double is IBM extended double, instead rely on __ibm128
10549 being defined as 'long double'. If -mfloat128-type and not
10550 -mfloat128, create the KFmode type with an undocumented __ieee128
10551 keyword.
10552 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10553 -mfloat128 for tests about the types, but keep tests for
10554 -mfloat128 to enable the keyword support.
10555 (rs6000_complex_function_value): Likewise.
10556 (rs6000_scalar_mode_supported_p): Likewise.
10557 (rs6000_floatn_mode): Likewise.
10558 (rs6000_c_mode_for_suffix): Likewise.
10559 (rs6000_opt_masks): Add -mfloat128-type.
10560 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10561 -mfloat128-type being split from -mfloat128. Add
10562 -mfloat128-hardware, which was missing.
10563 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10564 -mfloat128 and -mfloat128-type:
10565 (-mfloat128-type): Likewise.
10566 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10567 that 64-bit Linux systems with enable -mfloat128-type by default
10568 on VSX systems.
10569 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10570 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10571 -mfloat128-type instead of -mfloat128.
10572 (FLOAT128_2REG_P): Likewise.
10573 (MASK_FLOAT128_TYPE): Likewise.
10574 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10575 (RS6000_BTM_FLOAT128): Likewise.
10576 (TARGET_FLOAT128): Poison old identifiers.
10577 (OPTION_MASK_FLOAT128): Likewise.
10578 (MASK_FLOAT128): Likewise.
10579 * config/rs6000/rs6000.md (FP): Likewise.
10580 (FLOAT128): Likewise.
10581 (fix_trunc<mode>di2): Likewise.
10582 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10583 (floatdi<mode>2): Likewise.
10584 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10585 (neg<mode>2, FLOAT128 iterator): Likewise.
10586 (abs<mode>2, FLOAT128 iterator): Likewise.
10587 (ieee_128bit_negative_zero): Likewise.
10588 (ieee_128bit_vsx_neg<mode>2): Likewise.
10589 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10590 (ieee_128bit_vsx_abs<mode>2): Likewise.
10591 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10592 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10593 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10594 (extendiftf2): Likewise.
10595 (extendifkf2): Likewise.
10596 (extendtfkf2): Likewise.
10597 (trunciftf2): Likewise.
10598 (truncifkf2): Likewise.
10599 (trunckftf2): Likewise.
10600 (trunctfif2): Likewise.
10601 (extendkftf2): Likewise.
10602 (trunctfkf2): Likewise.
10603
10604 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10605
10606 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10607 before merging in bytes to pass down to real_from_target.
10608
10609 2016-10-07 Richard Biener <rguenther@suse.de>
10610
10611 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10612 required hack.
10613 (substitute_and_fold_dom_walker::before_dom_children):
10614 Substitute and fold before pass specific folding to avoid
10615 feeding that with SSA names that will be later released.
10616 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10617 introduced by folding and visited by evaluate_stmt called during
10618 ccp_fold_stmt.
10619 (likely_value): Likewise.
10620 (evaluate_stmt): Likewise.
10621 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10622 (simplify_div_or_mod_using_ranges): Likewise.
10623 (simplify_min_or_max_using_ranges): Likewise.
10624 (simplify_abs_using_ranges): Likewise.
10625 (simplify_conversion_using_ranges): Likewise.
10626 (simplify_float_conversion_using_ranges): Likewise.
10627 (simplify_stmt_using_ranges): Likewise.
10628
10629 2016-10-07 Marek Polacek <polacek@redhat.com>
10630
10631 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10632 FALLTHROUGH_LABEL_P here...
10633 (warn_implicit_fallthrough_r): ...not here.
10634
10635 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10636
10637 PR tree-optimization/77880
10638 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10639 necessary.
10640
10641 2016-10-07 Marek Polacek <polacek@redhat.com>
10642
10643 PR c++/77803
10644 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10645
10646 2016-10-07 Richard Biener <rguenther@suse.de>
10647
10648 * bitmap.h: Document constraints on bitmap modification while
10649 iterating over it.
10650
10651 2016-10-07 Richard Biener <rguenther@suse.de>
10652
10653 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10654 * bitmap.h (bmp_iter_set): When advancing to the next element
10655 check that we didn't remove the current one.
10656 (bmp_iter_and): Likewise.
10657 (bmp_iter_and_compl): Likewise.
10658 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10659 we currently iterate on but keep a one-level queue.
10660 * sched-deps.c (remove_from_deps): Do not clear current bit
10661 but keep a one-level queue.
10662
10663 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10664
10665 PR tree-optimization/77664
10666 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10667 for the other ranges.
10668 (optimize_range_tests_diff): Fix up formatting.
10669 (optimize_range_tests_var_bound): New function.
10670 (optimize_range_tests): Use it.
10671
10672 2016-10-07 Martin Liska <mliska@suse.cz>
10673
10674 * coverage.c (build_gcov_exit_decl): Fix priority what
10675 should be really 99.
10676
10677 2016-10-07 Richard Biener <rguenther@suse.de>
10678
10679 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10680 vars in gimple_bind_vars but not in BLOCK_VARS.
10681
10682 2016-10-07 Richard Biener <rguenther@suse.de>
10683
10684 PR tree-optimization/77879
10685 * tree-ssa-structalias.c (handle_const_call): Properly handle
10686 NRV return slots.
10687 (handle_pure_call): Likewise.
10688
10689 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10690
10691 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10692 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10693 possible overflow.
10694
10695 2016-10-06 Andrew Pinski <apinski@cavium.com>
10696
10697 * config/aarch64/aarch64-cores.def: Add a comment before each
10698 set of cores.
10699
10700 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10701
10702 PR tree-optimization/77862
10703 * tree-vrp.c (add_equivalence): Use get_value_range so that
10704 num_vr_values is checked before accessing vr_values.
10705
10706 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10707
10708 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10709 POINTER_TYPE_P.
10710
10711 2016-10-05 Jeff Law <law@redhat.com>
10712
10713 PR tree-optimization/71661
10714 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10715 removal of a forwarder exposes a new natural loop.
10716
10717 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10718
10719 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10720 Introduce ssesuffix variable.
10721 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10722 (*<code><mode>3): Ditto.
10723
10724 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10725
10726 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10727 noop move.
10728
10729 2016-10-06 Richard Biener <rguenther@suse.de>
10730
10731 PR tree-optimization/77855
10732 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10733 instead of removing the current item while iterating over the set
10734 which is not safe.
10735
10736 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10737 Eric Botcazou <ebotcazou@adacore.com>
10738
10739 PR target/77759
10740 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10741 (classify_registers): Don't set it
10742 (function_arg_slotno): Don't initialize and test it. Tidy up.
10743
10744 2016-10-06 Richard Biener <rguenther@suse.de>
10745
10746 PR tree-optimization/77839
10747 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10748 lattice transition.
10749
10750 2016-10-06 Martin Liska <mliska@suse.cz>
10751
10752 * gcc.c: Set -fprofile-update=atomic when profiling is
10753 enabled and -pthread is set. Warn when one combines
10754 -pthread and -fprofile-update=single for an app using
10755 profiling code.
10756
10757 2016-10-06 Martin Liska <mliska@suse.cz>
10758
10759 PR bootstrap/77788
10760 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10761 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10762 Initialize a pointer to NULL.
10763 (slsr_process_copy): Likewise.
10764 * input.c (location_get_source_line): Likewise.
10765 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10766
10767 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10768
10769 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10770 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10771 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10772 * config.gcc: Deleted pcommitintrin.h
10773 * config/i386/pcommitintrin.h: Deleted file.
10774 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10775 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10776 detection.
10777 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10778 __PCOMMIT__.
10779 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10780 (PTA_PCOMMIT): Deleted define.
10781 (ix86_option_override_internal): Deleted handle of option.
10782 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10783 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10784 __builtin_ia32_pcommit): Deleted.
10785 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10786 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10787 (pcommit): Deleted instruction.
10788 * config/i386/i386.opt: Mention -mpcommit deprecation.
10789 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10790
10791 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10792
10793 PR target/77874
10794 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10795 Remove wrong assert.
10796 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10797 Use <round_constraint> as operand 1 constraint.
10798
10799 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10800
10801 PR sanitizer/66343
10802 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10803 (ubsan_instrument_float_cast): And not here.
10804
10805 PR sanitizer/66343
10806 * ubsan.c (ubsan_ids): New GTY(()) array.
10807 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10808 instead of static local counters.
10809
10810 2016-10-05 Martin Sebor <msebor@redhat.com>
10811
10812 PR bootstrap/77819
10813 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10814 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10815 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10816 (default_printf_pointer_format): Define function.
10817 * targhooks.c (linux_printf_pointer_format): Define new function.
10818 * targhooks.h (linux_printf_pointer_format): Declare.
10819 (gnu_libc_printf_pointer_format): Remove declaration.
10820
10821 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10822
10823 * fold-const.c (native_encode_real): Fix logic for selecting offset
10824 to write to when BYTES_BIG_ENDIAN.
10825
10826 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10827
10828 * builtins.c (fold_builtin_strchr): Remove function.
10829 (fold_builtin_strrchr): Likewise.
10830 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10831 * gimple-fold.c (target_char_cst_p): New function.
10832 (gimple_fold_builtin_strchr) Add more foldings.
10833 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10834
10835 2016-10-05 Richard Biener <rguenther@suse.de>
10836
10837 PR middle-end/77863
10838 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10839 capture ids in c-exprs.
10840
10841 2016-10-05 Richard Biener <rguenther@suse.de>
10842
10843 PR middle-end/77826
10844 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10845 with types_match for GIMPLE code gen to handle type mismatched
10846 constants properly.
10847 (dt_operand::gen): Adjust.
10848 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10849 and constant A.
10850
10851 2016-10-05 Richard Biener <rguenther@suse.de>
10852
10853 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10854
10855 2016-10-05 Richard Biener <rguenther@suse.de>
10856
10857 PR middle-end/77842
10858 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
10859
10860 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
10861
10862 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
10863 version check to protect only DW_TAG_imported_module generation.
10864
10865 2016-10-05 Richard Biener <rguenther@suse.de>
10866
10867 PR middle-end/55152
10868 * match.pd (min(a,-a) -> -abs(a)): New pattern.
10869
10870 2016-10-04 Ian Lance Taylor <iant@golang.org>
10871
10872 * explow.c (allocate_dynamic_stack_space): Call
10873 do_pending_stack_adjust before handling flag_split_stack.
10874
10875 2016-10-04 David Malcolm <dmalcolm@redhat.com>
10876
10877 * genattrtab.c (make_internal_attr): Supply dummy column number to
10878 file_location ctor.
10879 (main): Likewise.
10880 * genoutput.c (init_insn_for_nothing): Likewise.
10881 * gensupport.c (add_define_attr): Likewise.
10882 * read-md.c (message_at_1): Print column number.
10883 (fatal_with_file_and_line): Likewise.
10884 (rtx_reader::read_char): Track column numbers.
10885 (rtx_reader::unread_char): Likewise.
10886 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
10887 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
10888 (rtx_reader::handle_file): Initialize m_read_md_colno.
10889 (rtx_reader::get_current_location): Supply column number to
10890 file_location ctor.
10891 * read-md.h (struct file_location): Add field "colno".
10892 (file_location::file_location): Likewise.
10893 (rtx_reader::get_colno): New accessor.
10894 (rtx_reader::m_read_md_colno): New field.
10895 (rtx_reader::m_last_line_colno): New field.
10896
10897 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10898
10899 * doc/extend.texi (Java Exceptions): Remove.
10900 (java_interface): Remove.
10901
10902 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
10903
10904 PR tree-optimization/77808
10905 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
10906 and addr are different before copying points-to information.
10907
10908 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
10909
10910 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
10911 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
10912 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
10913 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
10914
10915 2016-10-04 Richard Biener <rguenther@suse.de>
10916
10917 PR tree-optimization/77399
10918 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
10919 verify the target can convert.
10920
10921 2016-10-04 Richard Biener <rguenther@suse.de>
10922
10923 PR middle-end/77833
10924 * explow.c (plus_constant): Verify the mode of the constant
10925 pool offset before calling plus_constant.
10926
10927 2016-10-04 Richard Biener <rguenther@suse.de>
10928
10929 PR middle-end/77407
10930 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
10931 type support, mark with :C.
10932 (X / -X -> -1): Mark with :C.
10933
10934 2016-10-04 Jakub Jelinek <jakub@redhat.com>
10935
10936 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
10937 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
10938 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
10939 * doc/tm.texi: Regenerated.
10940 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
10941 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
10942 * config/darwin.h (JCR_SECTION_NAME): Remove.
10943 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
10944 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
10945 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
10946 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
10947 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
10948 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
10949
10950 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10951
10952 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
10953 between "because" and "param" in dump message in call to fprintf.
10954
10955 2016-10-03 Jeff Law <law@redhat.com>
10956
10957 PR tree-optimization/71550
10958 PR tree-optimization/71403
10959 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
10960 (profitable_jump_thread_path): Also return boolean indicating if
10961 the realized path will create an irreducible loop.
10962 Remove loop depth tests from 71403.
10963 (fsm_find_control_statement_thread_paths): Remove loop depth tests
10964 from 71403. If threading will create an irreducible loop, then
10965 throw away loop iteration and related information.
10966
10967 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
10968
10969 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
10970 -Woverloaded-virtual checks for warning options.
10971 * configure: Regenerate.
10972
10973 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10974
10975 PR preprocessor/77699
10976 * input.c (maybe_grow): Don't allocate one byte extra headroom.
10977 (get_next_line): Return false on error.
10978 (read_next_line): Removed, use get_next_line instead.
10979 (read_line_num): Don't copy the line.
10980 (location_get_source_line): Don't use static data.
10981 (selftest::test_reading_source_line): Add more test cases.
10982
10983 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10984
10985 Revert
10986 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10987
10988 * ifcvt.c (noce_try_avoid_const_materialization): New function.
10989 (noce_process_if_block): Use it.
10990
10991 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10992
10993 * doc/invoke.texi: Update -Wint-in-bool-context.
10994
10995 2016-10-02 Jakub Jelinek <jakub@redhat.com>
10996
10997 * dwarf2out.c (output_fde, output_call_frame_info,
10998 dwarf2out_do_cfi_startproc, set_indirect_string,
10999 gen_internal_sym, output_die, output_line_info): Use
11000 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11001 ASM_GENERATE_INTERNAL_LABEL output.
11002
11003 2016-10-01 Richard Biener <rguenther@suse.de>
11004
11005 PR middle-end/77798
11006 * genmatch.c (get_operand_type): Add operand position arg
11007 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11008 (expr::gen_transform): Adjust.
11009 (dt_simplify::gen_1): Likewise.
11010
11011 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11012
11013 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11014 comments. Simplify asserts, remove unnecessary conditions.
11015 Formatting fixes.
11016 (*<code><mode>3): Likewise.
11017
11018 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11019
11020 * doc/invoke.texi (-Wregister): Document.
11021
11022 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11023
11024 * configure.ac: Split CHECKING_P into CHECKING_P and
11025 ENABLE_EXTRA_CHECKING.
11026 * configure: Regenerated.
11027 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11028 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11029
11030 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11031
11032 PR other/31566
11033 * gcc.c (process_command): For @filename handling, output
11034 the correct name if the file does not exist.
11035
11036 2016-09-30 Marek Polacek <polacek@redhat.com>
11037
11038 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11039 * config/alpha/predicates.md: Likewise.
11040
11041 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11042
11043 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11044 (noce_process_if_block): Use it.
11045
11046 2016-09-30 Martin Liska <mliska@suse.cz>
11047
11048 * doc/invoke.texi: Document asan-use-after-return that
11049 it's disabled by default in runtime.
11050
11051 2016-09-30 Richard Biener <rguenther@suse.de>
11052
11053 * tree-vrp.c (intersect_ranges): If we failed to handle
11054 the intersection choose a constant singleton range if available.
11055
11056 2016-09-30 Richard Biener <rguenther@suse.de>
11057
11058 PR tree-optimization/77399
11059 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11060 float <-> int conversions.
11061
11062 2016-09-30 Alan Modra <amodra@gmail.com>
11063
11064 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11065
11066 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11067
11068 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11069 ext_level before calling CPUID with 0x80000008.
11070 Simplify xgetbv checks.
11071
11072 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11073
11074 * Makefile.in (OBJS): Add print-rtl-function.o.
11075 * print-rtl-function.c: New file.
11076 * print-rtl.h (print_rtx_function): New decl.
11077
11078 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11079
11080 PR target/77756
11081 * config/i386/cpuid.h (__get_cpuid_count): New.
11082 (__get_cpuid): Rename __level to __leaf.
11083
11084 2016-09-29 Marek Polacek <polacek@redhat.com>
11085
11086 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11087
11088 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11089
11090 PR target/77718
11091 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11092 result is only being compared with zero.
11093
11094 2016-09-29 Marek Polacek <polacek@redhat.com>
11095
11096 * dwarf2out.c (loc_descriptor): Add fall through comment.
11097 (add_const_value_attribute): Likewise.
11098
11099 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11100
11101 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11102 with "v6t2". Move "arch" attribute above "pool_range".
11103 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11104 with "v6t2".
11105 (*thumb2_movhi_vfp): Likewise.
11106 (*arm_movhi_fp16): Likewise.
11107 (*thumb2_movhi_fp16): Likewise.
11108 (*arm_movsi_vfp): Remove "arch" attribute.
11109 (*thumb2_movsi_vfp): Likewise.
11110
11111 2016-09-29 Martin Liska <mliska@suse.cz>
11112
11113 * doc/extend.texi: Remove limitation of Objective C for
11114 __attribute__((constructor)) and __attribute__((destructor)).
11115
11116 2016-09-29 Richard Biener <rguenther@suse.de>
11117
11118 PR tree-optimization/77768
11119 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11120 Handle stores to readonly memory when removing redundant stores.
11121
11122 2016-09-29 Richard Biener <rguenther@suse.de>
11123
11124 PR middle-end/77407
11125 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11126 X / -X -> -1 simplifications.
11127
11128 2016-09-29 Richard Biener <rguenther@suse.de>
11129
11130 PR middle-end/55152
11131 * match.pd: Add max(a,-a) -> abs(a) pattern.
11132 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11133 HONOR_SIGNED_ZEROS types.
11134
11135 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11136
11137 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11138 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11139
11140 2016-09-29 Richard Biener <rguenther@suse.de>
11141
11142 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11143 writing to vr_const_varying.
11144 (vrp_initialize): Call it.
11145 (vrp_visit_stmt): Likewise.
11146 (evrp_dom_walker::before_dom_children): Likewise.
11147
11148 2016-09-29 Richard Biener <rguenther@suse.de>
11149
11150 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11151 constructors with vector elements.
11152
11153 2016-09-29 Richard Biener <rguenther@suse.de>
11154
11155 PR tree-optimization/77768
11156 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11157 with stores to a place we know has a constant value.
11158
11159 2016-09-29 Alan Modra <amodra@gmail.com>
11160
11161 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11162 * doc/invoke.texi: Document it.
11163 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11164 (rs6000_passes_float): Comment.
11165 (rs6000_passes_long_double): New static var.
11166 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11167 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11168 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11169 to include fp values returned in vectors.
11170 Set rs6000_passes_long_double.
11171 (rs6000_function_arg_advance_1): Likewise for function args.
11172 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11173 and SPE. Emit long double tag value too.
11174 (rs6000_opt_vars): Add gnu-attr.
11175 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11176 * configure: Regenerate.
11177 * config.in: Regenerate.
11178
11179 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11180
11181 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11182 of 0 < x.
11183 (format_floating, format_string, format_directive,
11184 get_destination_size, pass_sprintf_length::handle_gimple_call):
11185 Likewise.
11186
11187 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11188
11189 * gimple-ssa-sprintf.c: Fix comment formatting.
11190 (format_integer): Use is_gimple_assign.
11191 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11192 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11193 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11194 (pass_sprintf_length::execute): Use is_gimple_call.
11195
11196 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11197
11198 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11199 strchr, also try the generic folding.
11200
11201 2016-09-28 Martin Sebor <msebor@redhat.com>
11202
11203 PR c/77762
11204 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11205 Fix typos.
11206
11207 2016-09-28 Martin Sebor <msebor@redhat.com>
11208
11209 PR middle-end/77683
11210 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11211 length modifier is not expected.
11212 (format_floating): Ignore l length modifier and fail gracefuly
11213 when it isn't one of the other expected ones.
11214
11215 2016-09-28 Martin Sebor <msebor@redhat.com>
11216
11217 PR bootstrap/77753
11218 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11219
11220 2016-09-27 Richard Biener <rguenther@suse.de>
11221
11222 * dwarf2out.c (cu_die_list): New global.
11223 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11224 main_comp_unit_die to cu_die_list if we created it.
11225 Move break_out_includes ...
11226 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11227 the cu_die_list.
11228
11229 2016-09-28 Richard Biener <rguenther@suse.de>
11230
11231 * dwarf2out.c (struct die_struct): Add removed flag.
11232 (lookup_type_die): If the DIE is marked as removed, clear
11233 TYPE_SYMTAB_DIE and return NULL.
11234 (lookup_decl_die): If the DIE is marked as removed, remove it
11235 from the hash and return NULL.
11236 (mark_removed): New helper.
11237 (prune_unused_types_prune): Call it for removed DIEs.
11238 (gen_subprogram_die): Move the premark_used_types call to after
11239 DIEs for the functions scopes are generated.
11240 (process_scope_var): Do not re-create pruned types or type decls.
11241 Make sure to also re-parent type decls.
11242 (dwarf2out_finish): Move unused type pruning and debug_types
11243 handling ...
11244 (dwarf2out_early_finish): ... here.
11245
11246 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11247
11248 * config/arc/arc-c.c: New file.
11249 * config/arc/arc-c.def: Likewise.
11250 * config/arc/t-arc: Likewise.
11251 * config.gcc: Include arc-c.o as c and cpp object.
11252 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11253 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11254 arc_cpu_cpp_builtins.
11255
11256 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11257
11258 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11259 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11260
11261 2016-09-28 Nathan Sidwell <nathan@acm.org>
11262
11263 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11264 printing.
11265
11266 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11267
11268 PR tree-optimization/61056
11269 * gimple-fold.c (gimple_fold_builtin_strchr):
11270 New function to optimize strchr (s, 0) to strlen.
11271 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11272
11273 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11274
11275 PR tree-optimization/77724
11276 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11277 Add tree_fits_shwi_p check.
11278
11279 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11280
11281 * auto-inc-dec.c (try_merge): Remove break after return.
11282 * cselib.c (autoinc_split): Likewise.
11283 * explow.c (promote_mode): Likewise.
11284 * fixed-value.c (fixed_arithmetic): Likewise.
11285 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11286 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11287 * trans-mem.c (get_attrs_for): Likewise.
11288 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11289 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11290 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11291 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11292 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11293 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11294 * config/cris/cris.c (cris_op_str): Likewise.
11295 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11296 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11297
11298 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11299
11300 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11301 IFN_GOACC_REDUCTION_CODES): New.
11302 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11303 ifn_goacc_reduction_kind): Use them.
11304 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11305 of internal functions, when applicable.
11306
11307 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11308
11309 * config/mips/constraints.md (d): Fix documentation.
11310 * doc/md.texi (Machine Constraints): Update accordingly.
11311
11312 2016-09-27 Richard Biener <rguenther@suse.de>
11313
11314 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11315 cur_line_info_table initialization ...
11316 (dwarf2out_assembly_start): ... here.
11317
11318 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11319
11320 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11321 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11322 (*thumb2_movhi_vfp): Likewise.
11323 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11324 template. Expand predicable attribute to mark VMOV.F16 as not
11325 predicable. Add "arch" attribute.
11326 (*thumb2_movhi_fp16): Likewise.
11327 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11328 (*thumb2_movsi_vfp): Add "arch" attribute.
11329
11330 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11331
11332 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11333 VAR_DECL string.
11334
11335 2016-09-27 Marek Polacek <polacek@redhat.com>
11336
11337 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11338 comment.
11339
11340 * config/c6x/c6x.h: Adjust fall through comment.
11341 * config/sh/sh.c (final_prescan_insn): Likewise.
11342 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11343 (visium_expand_fp_cstore): Likewise.
11344
11345 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11346
11347 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11348 expected by -Wimplicit-fallthrough.
11349 (thumb1_size_rtx_costs): Likewise.
11350 (thumb2_reorg): Likewise.
11351 (tls_mentioned_p): Add "Fall through" comment.
11352 (thumb2_reorg): Likewise.
11353 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11354 comment form expected by -Wimplicit-fallthrough.
11355
11356 2016-09-27 Martin Liska <mliska@suse.cz>
11357
11358 PR gcov-profile/46266
11359 * input.h (RESERVED_LOCATION_P): New macro.
11360 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11361 instread of comparison with UNKNOWN_LOCATION.
11362
11363 2016-09-27 Richard Biener <rguenther@suse.de>
11364
11365 PR tree-optimization/77745
11366 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11367 When removing redundant stores make sure to check compatibility
11368 of the TBAA state for downstream accesses.
11369 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11370 value-numbering virtual operands for store matches.
11371
11372 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11373
11374 PR target/51244
11375 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11376 movrt patterns. Match them before anything else in the SET case.
11377
11378 2016-09-27 Martin Liska <mliska@suse.cz>
11379
11380 PR gcov-profile/7970
11381 PR gcov-profile/16855
11382 PR gcov-profile/44779
11383 * coverage.c (build_gcov_exit_decl): New function.
11384 (coverage_obj_init): Call the function and generate __gcov_exit
11385 destructor.
11386 * doc/gcov.texi: Document when __gcov_exit function is called.
11387
11388 2016-09-27 Marek Polacek <polacek@redhat.com>
11389
11390 PR bootstrap/77751
11391 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11392 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11393 -Wno-error instead of -Wno-implicit-fallthrough.
11394
11395 2016-09-27 Martin Liska <mliska@suse.cz>
11396
11397 PR bootstrap/77749
11398 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11399
11400 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11401
11402 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11403 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11404 comments. Remove break after return.
11405 (ix86_fp_compare_code_to_integer, has_dispatch,
11406 ix86_simd_clone_usable): Remove break after return.
11407
11408 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11409
11410 PR rlt-optimization/77714
11411 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11412 REG_EQUAL note.
11413
11414 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11415
11416 PR ipa/77677
11417 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11418 extract_range_from_unary_expr to convert value_range.
11419 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11420 (extract_range_from_unary_expr): This.
11421 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11422
11423 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11424
11425 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11426
11427 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11428
11429 * config/i386/i386.c (ix86_print_operand)
11430 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11431 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11432 (epilogue_renumber): Likewise.
11433
11434 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11435
11436 PR middle-end/77719
11437 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11438 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11439
11440 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11441
11442 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11443 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11444 is_mm_seq_cst, is_mm_sync): Move to ...
11445 * memmodel.h: This. New file.
11446 * builtins.c: Include memmodel.h.
11447 * optabs.c: Likewise.
11448 * tsan.c: Likewise.
11449 * config/aarch64/aarch64.c: Likewise.
11450 * config/alpha/alpha.c: Likewise.
11451 * config/arm/arm.c: Likewise.
11452 * config/i386/i386.c: Likewise.
11453 * config/ia64/ia64.c: Likewise.
11454 * config/mips/mips.c: Likewise.
11455 * config/rs6000/rs6000.c: Likewise.
11456 * config/sparc/sparc.c: Likewise.
11457 * genconditions.c: Include memmodel.h in generated file.
11458 * genemit.c: Likewise.
11459 * genoutput.c: Likewise.
11460 * genpeep.c: Likewise.
11461 * genpreds.c: Likewise.
11462 * genrecog.c: Likewise.
11463
11464 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11465
11466 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11467 "c" instead when parsing characters. Move operand parsing into...
11468 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11469 and tightening the scope of various locals.
11470
11471 2016-09-26 Liu Hao <lh_mouse@126.com>
11472
11473 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11474
11475 2016-09-26 Marek Polacek <polacek@redhat.com>
11476
11477 * system.h: Use __has_attribute to check whether the fallthrough
11478 attribute is supported.
11479
11480 2016-09-26 Marek Polacek <polacek@redhat.com>
11481
11482 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11483 gimple_call_internal_p.
11484 * ipa-split.c (find_return_bb): Likewise.
11485 (execute_split_functions): Likewise.
11486 * omp-low.c (dump_oacc_loop_part): Likewise.
11487 (oacc_loop_xform_head_tail): Likewise.
11488 * predict.c (predict_loops): Likewise.
11489 * sanopt.c (pass_sanopt::execute): Likewise.
11490 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11491 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11492 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11493 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11494 (expand_ifn_va_arg): Likewise.
11495 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11496 (optimize_mask_stores): Likewise.
11497 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11498 (vect_transform_stmt): Likewise.
11499 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11500 * tsan.c (instrument_memory_accesses): Likewise.
11501
11502 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11503 Alexander Monakov <amonakov@ispras.ru>
11504
11505 * regrename.c (rename_chains): Check
11506 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11507 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11508 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11509
11510 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11511
11512 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11513 (s390_sched_score): Likewise.
11514
11515 2016-09-26 Martin Liska <mliska@suse.cz>
11516
11517 * doc/gcov.texi: Update program output of gcov tool.
11518
11519 2016-09-26 Martin Liska <mliska@suse.cz>
11520
11521 PR gcov-profile/23332
11522 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11523 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11524 * value-prof.c (dump_histogram_value): Do not handle
11525 HIST_TYPE_CONST_DELTA.
11526 (stream_in_histogram_value): Likewise.
11527 (gimple_find_values_to_profile): Likewise.
11528 * value-prof.h (enum hist_type): Likewise.
11529
11530 2016-09-26 Martin Liska <mliska@suse.cz>
11531
11532 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11533 from default sanitize recover values.
11534 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11535 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11536 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11537 consistent.
11538 * opts.c (finish_options): Do a generic loop over options
11539 that can be recovered.
11540 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11541 SANITIZE_RETURN.
11542 (common_handle_option): Likewise.
11543 * opts.h: Declare can_recover to sanitizer_opts_s.
11544
11545 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11546
11547 * target.def(elf_flags_numeric): Change documentation to present tense.
11548 * doc/tm.texi: Regenerate.
11549
11550 2016-09-26 Marek Polacek <polacek@redhat.com>
11551
11552 PR c/7652
11553 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11554 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11555 -Wno-switch-fallthrough.
11556 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11557 (expand_builtin): Likewise.
11558 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11559 * convert.c (convert_to_real_1): Likewise.
11560 (convert_to_integer_1): Likewise.
11561 * final.c (output_alternate_entry_point): Likewise.
11562 * genattrtab.c (make_canonical): Likewise.
11563 (write_test_expr): Likewise.
11564 * genpreds.c (validate_exp): Likewise.
11565 * gimple-ssa-strength-reduction.c
11566 (find_candidates_dom_walker::before_dom_children): Likewise.
11567 * godump.c (go_format_type): Likewise.
11568 * reload1.c (elimination_effects): Likewise.
11569 * resource.c (mark_referenced_resources): Likewise.
11570 (mark_set_resources): Likewise.
11571 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11572 * varasm.c (output_addressed_constants): Likewise.
11573
11574 2016-09-26 Marek Polacek <polacek@redhat.com>
11575
11576 PR c/7652
11577 * common.opt (Wimplicit-fallthrough): New option.
11578 * doc/extend.texi: Document statement attributes and the fallthrough
11579 attribute.
11580 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11581 * gimple.h (gimple_call_internal_p): New function.
11582 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11583 (struct label_entry): New struct.
11584 (find_label_entry): New function.
11585 (case_label_p): New function.
11586 (collect_fallthrough_labels): New function.
11587 (last_stmt_in_scope): New function.
11588 (should_warn_for_implicit_fallthrough): New function.
11589 (warn_implicit_fallthrough_r): New function.
11590 (maybe_warn_implicit_fallthrough): New function.
11591 (expand_FALLTHROUGH_r): New function.
11592 (expand_FALLTHROUGH): New function.
11593 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11594 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11595 (gimplify_label_expr): New function.
11596 (gimplify_case_label_expr): Set location.
11597 (gimplify_expr): Call gimplify_label_expr.
11598 * internal-fn.c (expand_FALLTHROUGH): New function.
11599 * internal-fn.def (FALLTHROUGH): New internal function.
11600 * langhooks.c (lang_GNU_OBJC): New function.
11601 * langhooks.h (lang_GNU_OBJC): Declare.
11602 * system.h (gcc_fallthrough): Define.
11603 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11604 * tree.h (FALLTHROUGH_LABEL_P): Define.
11605
11606 2016-09-26 Richard Biener <rguenther@suse.de>
11607
11608 * dwarf2out.c (stripattributes): Remove unused function.
11609 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11610 Push dwarf_split_debug_info handling into init_sections_and_labels.
11611 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11612 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11613 (debug_macinfo_section_name): New global.
11614 (output_macinfo): Use debug_macinfo_section_name.
11615 (init_sections_and_labels): Split out section and label generation
11616 from dwarf2out_init. Set debug_macinfo_section_name.
11617 (dwarf2out_init): Move text section label generation and emission
11618 to ...
11619 (dwarf2out_assembly_start): ... here.
11620 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11621 output starts.
11622
11623 2016-09-26 Richard Biener <rguenther@suse.de>
11624
11625 PR debug/77692
11626 * cgraphunit.c (analyze_functions): Before early removing
11627 global vars calls the late_global_decl debug handler mark
11628 the variable as readonly.
11629
11630 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11631
11632 PR target/51244
11633 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11634 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11635 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11636 declare new overloads.
11637 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11638 operand.
11639
11640 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11641
11642 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11643 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11644
11645 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11646
11647 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11648 * configure: Regenerate.
11649
11650 2016-09-24 Marek Polacek <polacek@redhat.com>
11651
11652 PR c/77490
11653 * doc/invoke.texi: Document -Wbool-operation.
11654
11655 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11656
11657 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11658 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11659 cmpmemsi pattern to do builtin expansion of memcmp ().
11660 (compute_current_alignment): Add helper function for
11661 expand_block_compare used to compute alignment as the compare proceeds.
11662 (select_block_compare_mode): Used by expand_block_compare to select
11663 the mode used for reading the next chunk of bytes in the compare.
11664 (do_load_for_compare): Used by expand_block_compare to emit the load
11665 insns for the compare.
11666 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11667 reference from expand_block_compare ().
11668 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11669 prototype for this function.
11670 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11671 target option for controlling how much code inline expansion of
11672 memcmp() will be allowed to generate.
11673
11674 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11675
11676 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11677 hook_bool_mode_false, hook_bool_mode_true,
11678 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11679 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11680 hook_bool_const_rtx_insn_const_rtx_insn_true,
11681 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11682 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11683 hook_bool_const_tree_hwi_hwi_const_tree_false,
11684 hook_bool_const_tree_hwi_hwi_const_tree_true,
11685 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11686 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11687 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11688 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11689 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11690 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11691 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11692 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11693 hook_bool_uintp_uintp_false,
11694 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11695 hook_rtx_tree_int_null, hook_uint_mode_0,
11696 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11697 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11698 hook_constcharptr_const_rtx_insn_null,
11699 hook_constcharptr_const_tree_const_tree_null,
11700 hook_constcharptr_int_const_tree_null,
11701 hook_constcharptr_int_const_tree_const_tree_null,
11702 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11703 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11704 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11705
11706 * vec.h (vNULL): Extend comment to say = vNULL initialization
11707 isn't needed for static vars.
11708
11709 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11710 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11711 = vNULL initialization of file scope vec.
11712 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11713 disabled_pass_uid_range_tab): Likewise.
11714 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11715 * tree-chkp-opt.c (check_infos): Likewise.
11716 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11717
11718 * vec.h (vnull::operator vec): Add constexpr keyword for
11719 C++11 and later.
11720
11721 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11722
11723 PR tree-optimization/77654
11724 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11725 to duplicate_ssa_name_ptr_info.
11726
11727 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11728
11729 PR preprocessor/77672
11730 * input.c (selftest::test_lexer_string_locations_simple): Update
11731 test to expect location information of the terminator character
11732 at the location of the final closing quote.
11733 (selftest::test_lexer_string_locations_hex): Likewise.
11734 (selftest::test_lexer_string_locations_oct): Likewise.
11735 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11736 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11737 (selftest::test_lexer_string_locations_ucn4): Likewise.
11738 (selftest::test_lexer_string_locations_ucn8): Likewise.
11739 (selftest::test_lexer_string_locations_u8): Likewise.
11740 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11741 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11742 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11743 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11744 (selftest::test_lexer_string_locations_macro): Likewise.
11745 (selftest::test_lexer_string_locations_long_line): Likewise.
11746
11747 2016-09-23 Richard Biener <rguenther@suse.de>
11748
11749 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11750 virtual definition to virtual use if the call devirtualizes
11751 to a const or pure function.
11752 (visit_use): Also visit calls we can devirtualize to a
11753 const or pure function.
11754
11755 2016-09-23 Richard Biener <rguenther@suse.de>
11756
11757 PR tree-optimization/77697
11758 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11759 signal error if we have sth ternary or unhandled.
11760
11761 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11762
11763 * config/arm/arm_neon.h (vabd_f16): New.
11764 (vabdq_f16): New.
11765 (vabs_f16): New.
11766 (vabsq_f16): New.
11767 (vadd_f16): New.
11768 (vaddq_f16): New.
11769 (vcage_f16): New.
11770 (vcageq_f16): New.
11771 (vcagt_f16): New.
11772 (vcagtq_f16): New.
11773 (vcale_f16): New.
11774 (vcaleq_f16): New.
11775 (vcalt_f16): New.
11776 (vcaltq_f16): New.
11777 (vceq_f16): New.
11778 (vceqq_f16): New.
11779 (vceqz_f16): New.
11780 (vceqzq_f16): New.
11781 (vcge_f16): New.
11782 (vcgeq_f16): New.
11783 (vcgez_f16): New.
11784 (vcgezq_f16): New.
11785 (vcgt_f16): New.
11786 (vcgtq_f16): New.
11787 (vcgtz_f16): New.
11788 (vcgtzq_f16): New.
11789 (vcle_f16): New.
11790 (vcleq_f16): New.
11791 (vclez_f16): New.
11792 (vclezq_f16): New.
11793 (vclt_f16): New.
11794 (vcltq_f16): New.
11795 (vcltz_f16): New.
11796 (vcltzq_f16): New.
11797 (vcvt_f16_s16): New.
11798 (vcvt_f16_u16): New.
11799 (vcvt_s16_f16): New.
11800 (vcvt_u16_f16): New.
11801 (vcvtq_f16_s16): New.
11802 (vcvtq_f16_u16): New.
11803 (vcvtq_s16_f16): New.
11804 (vcvtq_u16_f16): New.
11805 (vcvta_s16_f16): New.
11806 (vcvta_u16_f16): New.
11807 (vcvtaq_s16_f16): New.
11808 (vcvtaq_u16_f16): New.
11809 (vcvtm_s16_f16): New.
11810 (vcvtm_u16_f16): New.
11811 (vcvtmq_s16_f16): New.
11812 (vcvtmq_u16_f16): New.
11813 (vcvtn_s16_f16): New.
11814 (vcvtn_u16_f16): New.
11815 (vcvtnq_s16_f16): New.
11816 (vcvtnq_u16_f16): New.
11817 (vcvtp_s16_f16): New.
11818 (vcvtp_u16_f16): New.
11819 (vcvtpq_s16_f16): New.
11820 (vcvtpq_u16_f16): New.
11821 (vcvt_n_f16_s16): New.
11822 (vcvt_n_f16_u16): New.
11823 (vcvtq_n_f16_s16): New.
11824 (vcvtq_n_f16_u16): New.
11825 (vcvt_n_s16_f16): New.
11826 (vcvt_n_u16_f16): New.
11827 (vcvtq_n_s16_f16): New.
11828 (vcvtq_n_u16_f16): New.
11829 (vfma_f16): New.
11830 (vfmaq_f16): New.
11831 (vfms_f16): New.
11832 (vfmsq_f16): New.
11833 (vmax_f16): New.
11834 (vmaxq_f16): New.
11835 (vmaxnm_f16): New.
11836 (vmaxnmq_f16): New.
11837 (vmin_f16): New.
11838 (vminq_f16): New.
11839 (vminnm_f16): New.
11840 (vminnmq_f16): New.
11841 (vmul_f16): New.
11842 (vmul_lane_f16): New.
11843 (vmul_n_f16): New.
11844 (vmulq_f16): New.
11845 (vmulq_lane_f16): New.
11846 (vmulq_n_f16): New.
11847 (vneg_f16): New.
11848 (vnegq_f16): New.
11849 (vpadd_f16): New.
11850 (vpmax_f16): New.
11851 (vpmin_f16): New.
11852 (vrecpe_f16): New.
11853 (vrecpeq_f16): New.
11854 (vrnd_f16): New.
11855 (vrndq_f16): New.
11856 (vrnda_f16): New.
11857 (vrndaq_f16): New.
11858 (vrndm_f16): New.
11859 (vrndmq_f16): New.
11860 (vrndn_f16): New.
11861 (vrndnq_f16): New.
11862 (vrndp_f16): New.
11863 (vrndpq_f16): New.
11864 (vrndx_f16): New.
11865 (vrndxq_f16): New.
11866 (vrsqrte_f16): New.
11867 (vrsqrteq_f16): New.
11868 (vrecps_f16): New.
11869 (vrecpsq_f16): New.
11870 (vrsqrts_f16): New.
11871 (vrsqrtsq_f16): New.
11872 (vsub_f16): New.
11873 (vsubq_f16): New.
11874
11875 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11876
11877 * config.gcc (extra_headers): Add arm_fp16.h
11878 * config/arm/arm_fp16.h: New.
11879 * config/arm/arm_neon.h: Include "arm_fp16.h".
11880
11881 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11882
11883 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
11884 variants).
11885 (vmulf): New (v8hf, v4hf variants).
11886 (vfma): New (v8hf, v4hf variants).
11887 (vfms): New (v8hf, v4hf variants).
11888 (vsub): New (v8hf, v4hf variants).
11889 (vcage): New (v8hf, v4hf variants).
11890 (vcagt): New (v8hf, v4hf variants).
11891 (vcale): New (v8hf, v4hf variants).
11892 (vcalt): New (v8hf, v4hf variants).
11893 (vceq): New (v8hf, v4hf variants).
11894 (vcgt): New (v8hf, v4hf variants).
11895 (vcge): New (v8hf, v4hf variants).
11896 (vcle): New (v8hf, v4hf variants).
11897 (vclt): New (v8hf, v4hf variants).
11898 (vceqz): New (v8hf, v4hf variants).
11899 (vcgez): New (v8hf, v4hf variants).
11900 (vcgtz): New (v8hf, v4hf variants).
11901 (vcltz): New (v8hf, v4hf variants).
11902 (vclez): New (v8hf, v4hf variants).
11903 (vabd): New (v8hf, v4hf variants).
11904 (vmaxf): New (v8hf, v4hf variants).
11905 (vmaxnm): New (v8hf, v4hf variants).
11906 (vminf): New (v8hf, v4hf variants).
11907 (vminnm): New (v8hf, v4hf variants).
11908 (vpmaxf): New (v4hf variant).
11909 (vpminf): New (v4hf variant).
11910 (vpadd): New (v4hf variant).
11911 (vrecps): New (v8hf, v4hf variants).
11912 (vrsqrts): New (v8hf, v4hf variants).
11913 (vabs): New (v8hf, v4hf variants).
11914 (vneg): New (v8hf, v4hf variants).
11915 (vrecpe): New (v8hf, v4hf variants).
11916 (vrnd): New (v8hf, v4hf variants).
11917 (vrnda): New (v8hf, v4hf variants).
11918 (vrndm): New (v8hf, v4hf variants).
11919 (vrndn): New (v8hf, v4hf variants).
11920 (vrndp): New (v8hf, v4hf variants).
11921 (vrndx): New (v8hf, v4hf variants).
11922 (vrsqrte): New (v8hf, v4hf variants).
11923 (vmul_lane): Add v4hf and v8hf variants.
11924 (vmul_n): Add v4hf and v8hf variants.
11925 (vext): New (v8hf, v4hf variants).
11926 (vcvts): New (v8hi, v4hi variants).
11927 (vcvts): New (v8hf, v4hf variants).
11928 (vcvtu): New (v8hi, v4hi variants).
11929 (vcvtu): New (v8hf, v4hf variants).
11930 (vcvts_n): New (v8hf, v4hf variants).
11931 (vcvtu_n): New (v8hi, v4hi variants).
11932 (vcvts_n): New (v8hi, v4hi variants).
11933 (vcvtu_n): New (v8hf, v4hf variants).
11934 (vbsl): New (v8hf, v4hf variants).
11935 (vcvtas): New (v8hf, v4hf variants).
11936 (vcvtau): New (v8hf, v4hf variants).
11937 (vcvtms): New (v8hf, v4hf variants).
11938 (vcvtmu): New (v8hf, v4hf variants).
11939 (vcvtns): New (v8hf, v4hf variants).
11940 (vcvtnu): New (v8hf, v4hf variants).
11941 (vcvtps): New (v8hf, v4hf variants).
11942 (vcvtpu): New (v8hf, v4hf variants).
11943
11944 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11945
11946 * config/arm/arm-builtins.c (hf_UP): New.
11947 (si_UP): New.
11948 (vfp_builtin_data): New. Update comment.
11949 (enum arm_builtins): Include "arm_vfp_builtins.def".
11950 (ARM_BUILTIN_VFP_PATTERN_START): New.
11951 (arm_init_vfp_builtins): New.
11952 (arm_init_builtins): Add arm_init_vfp_builtins.
11953 (arm_expand_vfp_builtin): New.
11954 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
11955 long line.
11956 * config/arm/arm_vfp_builtins.def: New file.
11957 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
11958 (arm-builtins.o): Likewise.
11959
11960 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11961
11962 PR ipa/77677
11963 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
11964 from constant while creating value range.
11965
11966 2016-09-23 Renlin Li <renlin.li@arm.com>
11967
11968 * ira.c (ira): Move ira_use_lra_p initialization code to ...
11969 (ira_init_once): Here.
11970
11971 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
11972 Jakub Jelinek <jakub@redhat.com>
11973
11974 * hooks.h (hook_uint_uintp_false): Rename to...
11975 (hook_bool_uint_uintp_false): ... this.
11976 * hooks.c (hook_uint_uintp_false): Rename to...
11977 (hook_bool_uint_uintp_false): ... this.
11978 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
11979 instead of hook_uint_uintp_false.
11980
11981 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11982
11983 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
11984 (arm_init_builtins): Move body of a loop to the standalone
11985 function arm_init_neon_builtin.
11986 (arm_expand_neon_builtin_1): New. Update comment. Function body
11987 moved from arm_neon_builtin with some white-space fixes.
11988 (arm_expand_neon_builtin): Move code into the standalone function
11989 arm_expand_neon_builtin_1.
11990
11991 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11992
11993 * config/arm/iterators.md (VCVTHI): New.
11994 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
11995 (NEON_VAGLTE): New.
11996 (VFM_LANE_AS): New.
11997 (VH_CVTTO): New.
11998 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
11999 (V_HALF): Add V4HF. Fix white-space.
12000 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12001 (V_s_elem): Likewise.
12002 (V_sz_elem): Fix white-space.
12003 (V_elem_ch): Likewise.
12004 (VH_elem_ch): New.
12005 (scalar_mul_constraint): Add V8HF and V4HF.
12006 (Is_float_mode): Fix white-space.
12007 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12008 (q): Add HF. Fix white-space.
12009 (float_sup): New.
12010 (float_SUP): New.
12011 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12012 (neon_vfm_lane_as): New.
12013 * config/arm/neon.md (add<mode>3_fp16): New.
12014 (sub<mode>3_fp16): New.
12015 (mul<mode>3add<mode>_neon): New.
12016 (fma<VH:mode>4_intrinsic): New.
12017 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12018 (fmsub<VH:mode>4_intrinsic): New.
12019 (<absneg_str><mode>2): New.
12020 (neon_v<absneg_str><mode>): New.
12021 (neon_v<fp16_rnd_str><mode>): New.
12022 (neon_vrsqrte<mode>): New.
12023 (neon_vpaddv4hf): New.
12024 (neon_vadd<mode>): New.
12025 (neon_vsub<mode>): New.
12026 (neon_vmulf<mode>): New.
12027 (neon_vfma<VH:mode>): New.
12028 (neon_vfms<VH:mode>): New.
12029 (neon_vc<cmp_op><mode>): New.
12030 (neon_vc<cmp_op><mode>_fp16insn): New
12031 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12032 (neon_vca<cmp_op><mode>): New.
12033 (neon_vca<cmp_op><mode>_fp16insn): New.
12034 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12035 (neon_vc<cmp_op>z<mode>): New.
12036 (neon_vabd<mode>): New.
12037 (neon_v<maxmin>f<mode>): New.
12038 (neon_vp<maxmin>fv4hf: New.
12039 (neon_<fmaxmin_op><mode>): New.
12040 (neon_vrecps<mode>): New.
12041 (neon_vrsqrts<mode>): New.
12042 (neon_vrecpe<mode>): New (VH variant).
12043 (neon_vdup_lane<mode>_internal): New.
12044 (neon_vdup_lane<mode>): New.
12045 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12046 (neon_vcvt<sup><mode>): New (VH variant).
12047 (neon_vcvt<sup>_n<mode>): New (VH variant).
12048 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12049 (neon_vcvt<vcvth_op><sup><mode>): New.
12050 (neon_vmul_lane<mode>): New.
12051 (neon_vmul_n<mode>): New.
12052 * config/arm/unspecs.md (UNSPEC_VCALE): New
12053 (UNSPEC_VCALT): New.
12054 (UNSPEC_VFMA_LANE): New.
12055 (UNSPECS_VFMS_LANE): New.
12056
12057 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12058
12059 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12060 ("*extzv<mode><clobbercc_or_nocc>"):
12061 Correct a typo in a comment.
12062 Merged patterns.
12063 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12064 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12065 ("*insv<mode>_zEC12_appendbitsleft")
12066 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12067 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12068 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12069 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12070 Provide pattern with operands switched.
12071 ("*pre_z10_extv<mode>"):
12072 Use new subst patterns.
12073 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12074 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12075 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12076 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12077 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12078 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12079 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12080 New patterns.
12081 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12082 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12083 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12084 on zEC12.
12085 ("SINT"): New mode_iterator with SI, HI, QI.
12086 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12087 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12088 duplication.
12089
12090 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12091
12092 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12093 new interface of s390_contiguous_bitmask_p.
12094 ("contiguous_bitmask_nowrap_operand"): New predicate.
12095 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12096 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12097 of s390_contiguous_bitmask_p.
12098 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12099 ("NxxSw"): New constraint.
12100 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12101 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12102 interface.
12103 (s390_contiguous_bitmask_nowrap_p): Export.
12104 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12105 former s390_contiguous_bitmask_p.
12106 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12107 detect contiguous bit ranges with wraparound. Change signature to
12108 return START and END position instead of POS and LENGTH.
12109 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12110 ranges with wraparound.
12111 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12112 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12113 Adapt to new signature of s390_contiguous_bitmask_p.
12114
12115 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12116
12117 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12118 (create_intersect_range_checks): New.
12119 (vect_create_cond_for_alias_checks): Call above function.
12120
12121 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12122
12123 * config/arm/iterators.md (Code iterators): Fix some white-space
12124 in the comments.
12125 (GLTE): New.
12126 (ABSNEG): New
12127 (FCVT): Moved from vfp.md.
12128 (VCVT_HF_US_N): New.
12129 (VCVT_SI_US_N): New.
12130 (VCVT_HF_US): New.
12131 (VCVTH_US): New.
12132 (FP16_RND): New.
12133 (absneg_str): New.
12134 (FCVTI32typename): Moved from vfp.md.
12135 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12136 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12137 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12138 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12139 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12140 (vcvth_op): New.
12141 (fp16_rnd_str): New.
12142 (fp16_rnd_insn): New.
12143 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12144 (UNSPEC_VCVT_HF_U_N): New.
12145 (UNSPEC_VCVT_SI_S_N): New.
12146 (UNSPEC_VCVT_SI_U_N): New.
12147 (UNSPEC_VCVTH_S): New.
12148 (UNSPEC_VCVTH_U): New.
12149 (UNSPEC_VCVTA_S): New.
12150 (UNSPEC_VCVTA_U): New.
12151 (UNSPEC_VCVTM_S): New.
12152 (UNSPEC_VCVTM_U): New.
12153 (UNSPEC_VCVTN_S): New.
12154 (UNSPEC_VCVTN_U): New.
12155 (UNSPEC_VCVTP_S): New.
12156 (UNSPEC_VCVTP_U): New.
12157 (UNSPEC_VCVTP_S): New.
12158 (UNSPEC_VCVTP_U): New.
12159 (UNSPEC_VRND): New.
12160 (UNSPEC_VRNDA): New.
12161 (UNSPEC_VRNDI): New.
12162 (UNSPEC_VRNDM): New.
12163 (UNSPEC_VRNDN): New.
12164 (UNSPEC_VRNDP): New.
12165 (UNSPEC_VRNDX): New.
12166 * config/arm/vfp.md (<absneg_str>hf2): New.
12167 (neon_vabshf): New.
12168 (neon_v<fp16_rnd_str>hf): New.
12169 (neon_vrndihf): New.
12170 (addhf3): New.
12171 (subhf3): New.
12172 (divhf3): New.
12173 (mulhf3): New.
12174 (*mulsf3neghf_vfp): New.
12175 (*negmulhf3_vfp): New.
12176 (*mulsf3addhf_vfp): New.
12177 (*mulhf3subhf_vfp): New.
12178 (*mulhf3neghfaddhf_vfp): New.
12179 (*mulhf3neghfsubhf_vfp): New.
12180 (fmahf4): New.
12181 (neon_vfmahf): New.
12182 (fmsubhf4_fp16): New.
12183 (neon_vfmshf): New.
12184 (*fnmsubhf4): New.
12185 (*fnmaddhf4): New.
12186 (neon_vsqrthf): New.
12187 (neon_vrsqrtshf): New.
12188 (FCVT): Move to iterators.md.
12189 (FCVTI32typename): Likewise.
12190 (neon_vcvth<sup>hf): New.
12191 (neon_vcvth<sup>si): New.
12192 (neon_vcvth<sup>_nhf_unspec): New.
12193 (neon_vcvth<sup>_nhf): New.
12194 (neon_vcvth<sup>_nsi_unspec): New.
12195 (neon_vcvth<sup>_nsi): New.
12196 (neon_vcvt<vcvth_op>h<sup>si): New.
12197 (neon_<fmaxmin_op>hf): New.
12198
12199 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12200
12201 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12202 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12203 ("*insv<mode>_zEC12_appendbitsleft")
12204 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12205 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12206
12207 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12208
12209 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12210 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12211 construct values without normalization.
12212 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12213 static local lhs_ops to vNULL.
12214
12215 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12216 Jiong Wang <jiong.wang@arm.com>
12217
12218 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12219 available when FP16 instructions are available.
12220 (output_move_vfp): Add support for 16-bit data moves.
12221 (arm_validize_comparison): Fix some white-space. Support HFmode
12222 by conversion to SFmode.
12223 * config/arm/arm.md (truncdfhf2): Fix a comment.
12224 (extendhfdf2): Likewise.
12225 (cstorehf4): New.
12226 (movsicc): Fix some white-space.
12227 (movhfcc): New.
12228 (movsfcc): Fix some white-space.
12229 (*cmovhf): New.
12230 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12231 instructions are available.
12232 (*thumb2_movhi_vfp): Likewise.
12233 (*arm_movhi_fp16): New.
12234 (*thumb2_movhi_fp16): New.
12235 (*movhf_vfp_fp16): New.
12236 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12237 (*movhf_vfp): Likewise.
12238 (extendhfsf2): Enable when VFP FP16 instructions are available.
12239 (truncsfhf2): Enable when VFP FP16 instructions are available.
12240
12241 2016-09-23 Martin Liska <mliska@suse.cz>
12242
12243 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12244
12245 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12246
12247 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12248 V4HF modes.
12249 (arm_evpc_neon_vtrn): Likewise.
12250 (arm_evpc_neon_vrev): Likewise.
12251 (arm_evpc_neon_vext): Likewise.
12252 * config/arm/arm_neon.h (vbsl_f16): New.
12253 (vbslq_f16): New.
12254 (vdup_n_f16): New.
12255 (vdupq_n_f16): New.
12256 (vdup_lane_f16): New.
12257 (vdupq_lane_f16): New.
12258 (vext_f16): New.
12259 (vextq_f16): New.
12260 (vmov_n_f16): New.
12261 (vmovq_n_f16): New.
12262 (vrev64_f16): New.
12263 (vrev64q_f16): New.
12264 (vtrn_f16): New.
12265 (vtrnq_f16): New.
12266 (vuzp_f16): New.
12267 (vuzpq_f16): New.
12268 (vzip_f16): New.
12269 (vzipq_f16): New.
12270 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12271 (vdup_lane): New (v8hf, v4hf variants).
12272 (vext): New (v8hf, v4hf variants).
12273 (vbsl): New (v8hf, v4hf variants).
12274 * config/arm/iterators.md (VDQWH): New.
12275 (VH): New.
12276 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12277 (Scalar_mul_8_16): Fix white-space.
12278 (Is_d_reg): Add V4HF and V8HF.
12279 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12280 (neon_vdup_lane<mode>): New.
12281 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12282 (*neon_vtrn<mode>_insn): Likewise.
12283 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12284 (*neon_vzip<mode>_insn): Likewise
12285 (neon_vuzp<mode>_internal): Likewise.
12286 (*neon_vuzp<mode>_insn): Likewise
12287 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12288
12289 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12290 Matthew Wahab <matthew.wahab@arm.com>
12291
12292 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12293 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12294 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12295 available. Also fix some white-space.
12296 * config/arm/vfp.md (*arm_movhi_vfp): New.
12297 (*thumb2_movhi_vfp): New.
12298
12299 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12300
12301 * config/arm/arm-c.c (arm_cpu_builtins): Define
12302 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12303 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12304
12305 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12306
12307 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12308 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12309 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12310 arm_v8_2a_fp16_neon_hw.
12311 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12312 arm_v8_2a_neon.
12313
12314 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12315
12316 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12317 arm_fp16_alternative_ok and arm_fp16_none_ok.
12318
12319 2016-09-23 Martin Liska <mliska@suse.cz>
12320
12321 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12322
12323 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12324
12325 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12326 ("armv8.2-a"): New.
12327 ("armv8.2-a+fp16"): New.
12328 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12329 (FL2_FP16INST): New.
12330 (FL2_FOR_ARCH8_2A): New.
12331 * config/arm/arm-tables.opt: Regenerate.
12332 * config/arm/arm.c (arm_arch8_2): New.
12333 (arm_fp16_inst): New.
12334 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12335 for incompatible fp16-format settings.
12336 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12337 (TARGET_NEON_FP16INST): New.
12338 (arm_arch8_2): Declare.
12339 (arm_fp16_inst): Declare.
12340 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12341 march=armv8.2-a and march=armv8.2-a+fp16.
12342 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12343 and armv8.2-a+fp16.
12344 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12345 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12346
12347 2016-09-23 Martin Liska <mliska@suse.cz>
12348
12349 * doc/extend.texi: Remove fused-madd from i386 target options.
12350
12351 2016-09-23 Martin Liska <mliska@suse.cz>
12352
12353 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12354 Handle movbe.
12355
12356 2016-09-23 Martin Liska <mliska@suse.cz>
12357
12358 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12359 Handle crc32.
12360
12361 2016-09-23 Martin Liska <mliska@suse.cz>
12362
12363 PR target/71652
12364 * config/i386/i386.c (ix86_option_override_internal): Change
12365 signature and return false when there's an error related to
12366 arch string.
12367 (release_options_strings): New function.
12368 (ix86_valid_target_attribute_tree): Call the function.
12369
12370 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12371
12372 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12373 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12374 (gen_hsa_ctor_assignment): Likewise.
12375 * print-tree.c (print_node): Likewise.
12376 * tree-dump.c (dequeue_and_dump): Likewise.
12377 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12378 * expr.c (store_constructor): Likewise.
12379 * fold-const.c (operand_equal_p): Likewise.
12380 * tree-pretty-print.c (dump_generic_node): Likewise.
12381 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12382 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12383
12384 2016-09-23 Richard Biener <rguenther@suse.de>
12385
12386 * hooks.h (hook_uint_uintp_false): Declare.
12387
12388 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12389
12390 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12391 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12392
12393 2016-09-22 Martin Sebor <msebor@redhat.com>
12394
12395 PR target/77676
12396 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12397 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12398 (target_int_min): Correct computation.
12399 (format_integer): Use long long as the argument for the ll length
12400 modifier.
12401 (format_floating): Use target_int_max().
12402 (get_string_length): Same.
12403 (format_string): Avoid setting the bounded flag for strings
12404 of unknown length.
12405 (try_substitute_return_value): Avoid setting range info when
12406 the result isn't bounded.
12407 * varasm.c (assemble_name): Increase buffer size.
12408
12409 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12410 Terry Guo <terry.guo@arm.com>
12411
12412 * target.def (elf_flags_numeric): New target hook.
12413 * targhooks.h (default_asm_elf_flags_numeric): New.
12414 * varasm.c (default_asm_elf_flags_numeric): New.
12415 (default_elf_asm_named_section): Use new target hook.
12416 * config/arm/arm.opt (mpure-code): New.
12417 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12418 * config/arm/arm.c (arm_asm_init_sections): Add section
12419 attribute to default text section if -mpure-code.
12420 (arm_option_check_internal): Diagnose use of option with
12421 non supported targets and/or options.
12422 (arm_asm_elf_flags_numeric): New.
12423 (arm_function_section): New.
12424 (arm_elf_section_type_flags): New.
12425 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12426 for -mpure-code.
12427 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12428 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12429
12430 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12431
12432 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12433
12434 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12435
12436 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12437 * rtl.h: Adjust prototype.
12438
12439 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12440
12441 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12442 (prev_active_insn): Likewise.
12443 (active_insn_p): Likewise.
12444 * rtl.h: Adjust prototypes.
12445 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12446 * config/arc/arc.md: Likewise.
12447 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12448 (branch_needs_nop_p): Likewise.
12449 (use_skip_p): Likewise.
12450 * config/sh/sh.c (gen_block_redirect): Likewise.
12451 (split_branches): Likewise.
12452 * reorg.c (optimize_skip): Likewise.
12453 (fill_simple_delay_slots): Likewise.
12454 (fill_slots_from_thread): Likewise.
12455 (relax_delay_slots): Likewise.
12456 * resource.c (mark_target_live_regs): Likewise.
12457
12458 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12459
12460 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12461 type to rtx_insn *.
12462 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12463 (prev_nonnote_nondebug_insn): Likewise.
12464 * config/cris/cris-protos.h: Adjust prototype.
12465 * rtl.h: Likewise.
12466 * jump.c (rtx_renumbered_equal_p): Adjust.
12467
12468 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12469
12470 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12471 * rtl.h: Adjust prototype.
12472 * config/sh/sh.md: Adjust.
12473 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12474
12475 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12476
12477 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12478 (prev_nondebug_insn): Likewise.
12479 * loop-doloop.c (doloop_condition_get): Likewise.
12480 * rtl.h: Adjust prototype.
12481 * cfgloop.h: Likewise.
12482
12483 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12484
12485 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12486 (prev_nonnote_insn): Likewise.
12487 * jump.c (reversed_comparison_code_parts): Likewise.
12488 (reversed_comparison): Likewise.
12489 * rtl.h: Adjust prototypes.
12490 * config/arc/arc.md: Adjust.
12491 * cse.c (find_comparison_args): Likewise.
12492 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12493 (fix_reg_dead_note): Change argument type to rtx_insn *.
12494 (delete_prior_computation): Likewise.
12495 (delete_computation): Likewise.
12496 (fill_slots_from_thread): Adjust.
12497 (relax_delay_slots): Likewise.
12498 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12499 (simplify_relational_operation_1): Likewise.
12500 (simplify_ternary_operation): Likewise.
12501
12502 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12503
12504 * config/arc/arc-protos.h (arc_label_align): Change type of
12505 variables from rtx to rtx_insn *.
12506 * config/arc/arc.c (arc_label_align): Likewise.
12507 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12508 * config/bfin/bfin.c (workaround_speculation): Likewise.
12509 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12510 (find_last_same_clock): Likewise.
12511 (reorg_split_calls): Likewise.
12512 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12513 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12514 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12515 (same_cmp_following_p): Likewise.
12516 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12517 (same_cmp_following_p): Likwise.
12518 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12519 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12520 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12521 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12522 (rl78_alloc_physical_registers_cmp): Likewise.
12523 (rl78_alloc_physical_registers_umul): Likewise.
12524 (rl78_calculate_death_notes): Likewise.
12525 * config/s390/s390-protos.h (s390_label_align): Likewise.
12526 * config/s390/s390.c (s390_label_align): Likewise.
12527 * config/sh/sh.c (barrier_align): Likewise.
12528 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12529 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12530 (emit_cbcond_nop): Likewise.
12531
12532 2016-09-22 Martin Liska <mliska@suse.cz>
12533
12534 PR ipa/77653
12535 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12536 alias address matters, not necessarily address of original.
12537
12538 2016-09-22 Richard Biener <rguenther@suse.de>
12539
12540 PR middle-end/77697
12541 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12542 fold fails.
12543
12544 2016-09-22 Richard Biener <rguenther@suse.de>
12545
12546 PR middle-end/77677
12547 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12548 from constant folding results.
12549 (gimple_resimplify2): Likewise.
12550 (gimple_resimplify3): Likewise.
12551
12552 2016-09-22 Richard Biener <rguenther@suse.de>
12553
12554 PR middle-end/77678
12555 * expr.c (expand_expr_real_1): Guard array access against negative
12556 offset.
12557
12558 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12559
12560 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12561 of MPFR_RNDN.
12562 (format_floating): Likewise.
12563
12564 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12565
12566 PR fortran/77665
12567 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12568 for all IFN_GOMP_SIMD_* internal fns, not just for
12569 IFN_GOMP_SIMD_ORDERED_*.
12570
12571 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12572
12573 PR target/77670
12574 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12575 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12576 instructions when you want to invert the test.
12577 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12578 correct order for XXSEL.
12579 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12580 for using XSCMP{EQ,GT,GE}DP.
12581
12582 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12583
12584 * genconstants.c (main): Introduce noop_reader and convert call
12585 to read_md_files to a method call.
12586 * genenums.c (main): Likewise.
12587 * genmddeps.c (main): Likewise.
12588 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12589 rtx_reader_ptr->get_top_level_filename ().
12590 (write_tm_preds_h): Likewise.
12591 (write_insn_preds_c): Likewise.
12592 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12593 (rtx_handle_directive): Convert to...
12594 (gen_reader::handle_unknown_directive): ...this.
12595 (init_rtx_reader_args_cb): Convert return type from bool to
12596 rtx_reader *. Create a gen_reader instance, using it for the
12597 call to read_md_files. Return it if no errors occur.
12598 (init_rtx_reader_args): Convert return type from bool to
12599 rtx_reader *.
12600 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12601 (init_rtx_reader_args_cb): Likewise.
12602 * read-md.c (struct file_name_list): Move to class rtx_reader.
12603 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12604 (read_md_filename): Delete in favor of
12605 rtx_reader::m_read_md_filename.
12606 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12607 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12608 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12609 (first_dir_md_include): Delete in favor of
12610 rtx_reader::m_first_dir_md_include.
12611 (last_dir_md_include_ptr): Delete in favor of
12612 rtx_reader::m_last_dir_md_include_ptr.
12613 (max_include_len): Delete.
12614 (rtx_reader_ptr): New.
12615 (fatal_with_file_and_line): Use get_filename and get_lineno
12616 accessors of rtx_reader_ptr.
12617 (require_char_ws): Likewise.
12618 (rtx_reader::read_char): New method, based on ::read_char.
12619 (rtx_reader::unread_char): New method, based on ::unread_char.
12620 (read_escape): Use get_filename and get_lineno accessors of
12621 rtx_reader_ptr.
12622 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12623 (read_string): Use get_filename and get_lineno accessors of
12624 rtx_reader_ptr.
12625 (rtx_reader::rtx_reader): New ctor.
12626 (rtx_reader::~rtx_reader): New dtor.
12627 (handle_include): Convert from a function to...
12628 (rtx_reader::handle_include): ...this method, converting
12629 handle_directive from a callback to a virtual function.
12630 (handle_file): Likewise, converting to...
12631 (rtx_reader::handle_file): ...this method.
12632 (handle_toplevel_file): Likewise, converting to...
12633 (rtx_reader::handle_toplevel_file): ...this method.
12634 (rtx_reader::get_current_location): New method.
12635 (parse_include): Convert from a function to...
12636 (rtx_reader::add_include_path): ...this method, dropping redundant
12637 update to unused max_include_len.
12638 (read_md_files): Convert from a function to...
12639 (rtx_reader::read_md_files): ...this method, converting
12640 handle_directive from a callback to a virtual function.
12641 (noop_reader::handle_unknown_directive): New method.
12642 * read-md.h (directive_handler_t): Delete this typedef.
12643 (in_fname): Delete.
12644 (read_md_file): Delete.
12645 (read_md_lineno): Delete.
12646 (read_md_filename): Delete.
12647 (class rtx_reader): New class.
12648 (rtx_reader_ptr): New decl.
12649 (class noop_reader): New subclass of rtx_reader.
12650 (read_char): Reimplement in terms of rtx_reader::read_char.
12651 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12652 (read_md_files): Delete.
12653 * read-rtl.c (read_rtx_code): Update for deletion of globals
12654 read_md_filename and read_md_lineno.
12655
12656 2016-09-21 Jason Merrill <jason@redhat.com>
12657
12658 * input.h (from_macro_definition_at): New.
12659
12660 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12661
12662 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12663
12664 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12665
12666 PR tree-optimization/77550
12667 * tree-vect-stmts.c (create_array_ref): Change parameters.
12668 (get_group_alias_ptr_type): New function.
12669 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12670
12671 2016-09-21 Marek Polacek <polacek@redhat.com>
12672
12673 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12674 Add falls through comment.
12675
12676 2016-09-21 Richard Biener <rguenther@suse.de>
12677
12678 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12679 (replace_child): Likewise.
12680 (remove_child_TAG): Adjust.
12681 (move_marked_base_types): Likewise.
12682 (prune_unused_types_prune): Clear die_sib of removed children.
12683
12684 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12685
12686 PR target/77326
12687 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12688 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12689
12690 2016-09-21 Richard Biener <rguenther@suse.de>
12691
12692 PR tree-optimization/77648
12693 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12694 with complex RHS.
12695 (make_transitive_closure_constraints): Adjust comment.
12696 (make_any_offset_constraints): New function.
12697 (handle_rhs_call): Make sure to first expand a pointer to all
12698 subfields before transitively closing it.
12699 (handle_const_call): Likewise. Properly expand returned
12700 pointers as well.
12701 (handle_pure_call): Likewise.
12702
12703 2016-09-21 Richard Biener <rguenther@suse.de>
12704 Jakub Jelinek <jakub@redhat.com>
12705
12706 PR tree-optimization/77621
12707 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12708 group at non-vectorizable stmts.
12709
12710 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12711
12712 PR tree-optimization/72835
12713 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12714 (make_new_ssa_for_all_defs): Likewise.
12715 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12716
12717 2016-09-20 Martin Sebor <msebor@redhat.com>
12718
12719 PR middle-end/49905
12720 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12721 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12722 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12723 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12724 * config/sol2.c (solaris_printf_pointer_format): New function.
12725 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12726 options.
12727 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12728 * doc/tm.texi: Regenerate.
12729 * gimple-fold.h (get_range_strlen): New function.
12730 (get_maxval_strlen): Declare existing function.
12731 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12732 maximum and minimum.
12733 (get_range_strlen): Define overload.
12734 (get_maxval_strlen): Adjust.
12735 * gimple-ssa-sprintf.c: New file and pass.
12736 * passes.def (pass_sprintf_length): Add new pass.
12737 * targhooks.h (default_printf_pointer_format): Declare new function.
12738 (gnu_libc_printf_pointer_format): Same.
12739 (solaris_libc_printf_pointer_format): Same.
12740 * targhooks.c (default_printf_pointer_format): Define new function.
12741 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12742 * print-tree.c: Increase buffer size.
12743
12744 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12745
12746 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12747
12748 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12749
12750 * common.opt: New option -fipa-vrp.
12751 * ipa-cp.c (ipa_get_vr_lat): New.
12752 (ipcp_vr_lattice::print): Likewise.
12753 (print_all_lattices): Call ipcp_vr_lattice::print.
12754 (ipcp_vr_lattice::meet_with): New.
12755 (ipcp_vr_lattice::meet_with_1): Likewise.
12756 (ipcp_vr_lattice::top_p): Likewise.
12757 (ipcp_vr_lattice::bottom_p): Likewsie.
12758 (ipcp_vr_lattice::set_to_bottom): Likewise.
12759 (set_all_contains_variable): Call VR set_to_bottom.
12760 (initialize_node_lattices): Init VR lattices.
12761 (propagate_vr_accross_jump_function): New.
12762 (propagate_constants_accross_call): Call
12763 propagate_vr_accross_jump_function.
12764 (ipcp_store_vr_results): New.
12765 (ipcp_driver): Handle VR.
12766 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12767 (ipa_set_jf_unknown): Likewise.
12768 (ipa_compute_jump_functions_for_edge): Likewise.
12769 (ipa_node_params_t::duplicate): Likewise.
12770 (ipa_write_jump_function): Likewise.
12771 (ipa_read_jump_function): Likewise.
12772 (write_ipcp_transformation_info): Likewise.
12773 (read_ipcp_transformation_info): Likewise.
12774 (ipcp_update_vr): New.
12775 (ipcp_transform_function): Handle VR.
12776 * ipa-prop.h (struct ipa_vr): New.
12777 * cgraph.c: Include tree-vrp.h.
12778 * cgraphunit.c: Likewise.
12779 * ipa-utils.c: Likewise.
12780 * ipa.c: Likewise.
12781 * opts.c: Likewise.
12782 * toplev.c: Likewise.
12783 * ipa-devirt.c: Likewise.
12784 * ipa-inline-transform.c: Likewise.
12785 * ipa-inline.c: Likewise.
12786 * ipa-profile.c: Likewise.
12787
12788 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12789
12790 * doc/invoke.texi: Document -fdump-tree-evrp.
12791 * passes.def: Define new pass_early_vrp.
12792 * timevar.def: Define new TV_TREE_EARLY_VRP.
12793 * tree-pass.h (make_pass_early_vrp): New.
12794 * tree-ssa-propagate.c: Make replace_uses_in non static.
12795 * tree-ssa-propagate.h: Export replace_uses_in.
12796 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12797 (extract_range_from_assert): Factor out
12798 extract_range_for_var_from_comparison_expr.
12799 (vrp_initialize_lattice): New.
12800 (vrp_initialize): Factor out vrp_initialize_lattice.
12801 (vrp_valueize): Fix it to reject complex value ranges.
12802 (vrp_free_lattice): New.
12803 (evrp_dom_walker::before_dom_children): Likewise.
12804 (evrp_dom_walker::after_dom_children): Likewise.
12805 (evrp_dom_walker::push_value_range): Likewise.
12806 (evrp_dom_walker::pop_value_range): Likewise.
12807 (execute_early_vrp): Likewise.
12808 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12809 (make_pass_early_vrp): New.
12810
12811 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12812
12813 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12814 instead of exact_log2.
12815
12816 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12817
12818 PR target/77621
12819 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12820 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12821 (ix86_add_stmt_cost): Penalize DFmode vector operations
12822 for !TARGET_VECTORIZE_DOUBLE.
12823
12824 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12825
12826 * doc/invoke.texi (Warning Options): Simplify language.
12827 (Optimize Options): Complete sentence.
12828
12829 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12830
12831 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12832 early_finish hook.
12833
12834 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12835
12836 PR target/71395
12837 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12838 inits on power8 and above, use the VMRGEW instruction instead of a
12839 permute.
12840
12841 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12842 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12843 initialization.
12844
12845 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12846
12847 * config/aarch64/arm_neon.h
12848 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12849 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12850 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12851
12852 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12853
12854 * config/var/vax.h (ELIMINABLE_REGS): Define.
12855 (INITIAL_ELIMINATION_OFFSET): Define.
12856
12857 2016-09-20 Jakub Jelinek <jakub@redhat.com>
12858
12859 PR middle-end/77624
12860 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
12861 cast to void * if the cast is from some other pointer type.
12862
12863 2016-09-20 Richard Biener <rguenther@suse.de>
12864
12865 PR tree-optimization/77646
12866 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
12867 a VDEF.
12868
12869 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12870
12871 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
12872 attributes to all inlined functions and make them extern.
12873
12874 2016-09-20 Richard Biener <rguenther@suse.de>
12875
12876 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
12877 hook.
12878 * debug.c (do_nothing_debug_hooks): Adjust.
12879 * dbxout.c (dbx_debug_hooks): Likewise.
12880 * sdbout.c (sdb_debug_hooks): Likewise.
12881 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12882 (dwarf2out_finish): Move producer, filename and
12883 path annotation ...
12884 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
12885 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
12886
12887 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
12888
12889 PR c++/77434
12890 * doc/invoke.texi: Document -Wint-in-bool-context.
12891
12892 PR middle-end/77421
12893 * dwarf2out.c (output_loc_operands): Fix an assertion.
12894
12895 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12896
12897 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
12898 (CR_DECIMAL_DIG): New macro.
12899
12900 2016-09-19 Joseph Myers <joseph@codesourcery.com>
12901
12902 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
12903 element.
12904
12905 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
12906
12907 PR rtl-optimization/77416
12908 * lra-remat.c (operand_to_remat): Process hard coded insn
12909 registers.
12910
12911 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12912
12913 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
12914 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
12915
12916 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
12917
12918 * target.def (lra_p): Wordsmithing.
12919 * doc/tm.texi: Regenerate.
12920
12921 2016-09-19 Jakub Jelinek <jakub@redhat.com>
12922 Jan Hubicka <jh@suse.cz>
12923
12924 PR target/77587
12925 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
12926 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
12927 Call ultimate_alias_target just once, not up to 4 times.
12928
12929 2016-09-19 Richard Biener <rguenther@suse.de>
12930
12931 * dwarf2out.c (early_dwarf_finished): New global.
12932 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
12933 is false.
12934 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
12935 if called from LTO exit early.
12936 (dwarf2out_late_global_decl): When being during the early
12937 debug phase do not add locations but only const value attributes.
12938 Adjust the way we generate early DIEs for LTO.
12939
12940 2016-09-19 Richard Biener <rguenther@suse.de>
12941
12942 PR middle-end/77605
12943 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
12944 proper niter to bound the loops.
12945
12946 2016-09-19 Richard Biener <rguenther@suse.de>
12947
12948 PR tree-optimization/77514
12949 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
12950 search for folded stmt.
12951
12952 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
12953
12954 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
12955 * tree-pass.h (make_pass_early_thread_jumps): Declare.
12956 * tree-ssa-threadbackward.c (fsm_find_thread_path,
12957 fsm_find_thread_path, profitable_jump_thread_path,
12958 fsm_find_control_statement_thread_paths,
12959 find_jump_threads_backwards): Add speed_p parameter.
12960 (pass_data_early_thread_jumps): New pass.
12961 (make_pass_early_thread_jumps): New function.
12962
12963 2016-09-17 Andreas Schwab <schwab@suse.de>
12964
12965 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
12966 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
12967
12968 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
12969
12970 * recog.c (rest_of_handle_split_after_reload): Delete.
12971 (pass_split_after_reload::gate): New method.
12972 (pass_split_after_reload::execute): Call split_all_insns directly.
12973
12974 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
12975
12976 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
12977 parameters for functions taking long long arguments.
12978
12979 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12980
12981 PR target/77613
12982 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
12983 splat with truncate.
12984
12985 2016-09-16 Jason Merrill <jason@redhat.com>
12986
12987 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
12988 New.
12989 * hwint.c (exact_log2): Use pow2p_hwi.
12990 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
12991 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
12992 * builtins.c (get_object_alignment_2, get_object_alignment)
12993 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
12994 least_bit_hwi.
12995 * calls.c (compute_argument_addresses, store_one_arg): Use
12996 least_bit_hwi.
12997 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
12998 * combine.c (force_to_mode): Use least_bit_hwi.
12999 (contains_muldiv, find_split_point, combine_simplify_rtx)
13000 (simplify_if_then_else, simplify_set, force_to_mode)
13001 (if_then_else_cond, simplify_and_const_int_1)
13002 (simplify_compare_const): Use pow2p_hwi.
13003 * cse.c (fold_rtx): Use pow2p_hwi.
13004 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13005 Use least_bit_hwi.
13006 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13007 (init_expmed_one_conv): Use pow2p_hwi.
13008 * expr.c (is_aligning_offset): Use pow2p_hwi.
13009 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13010 (fold_binary_loc): Use pow2p_hwi.
13011 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13012 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13013 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13014 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13015 Use least_bit_hwi.
13016 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13017 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13018 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13019 * omp-low.c (oacc_loop_fixed_partitions)
13020 (oacc_loop_auto_partitions): Use least_bit_hwi.
13021 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13022 * stor-layout.c (place_field): Use least_bit_hwi.
13023 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13024 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13025 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13026 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13027 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13028 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13029 (vect_grouped_store_supported, vect_grouped_load_supported)
13030 (vect_permute_load_chain, vect_shift_permute_load_chain)
13031 (vect_transform_grouped_load): Use pow2p_hwi.
13032 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13033 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13034 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13035 least_bit_hwi.
13036 * tsan.c (instrument_expr): Use least_bit_hwi.
13037 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13038
13039 2016-09-16 Andreas Schwab <schwab@suse.de>
13040
13041 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13042 OFFSET, not offset.
13043 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13044
13045 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13046
13047 PR target/77526
13048 * combine.c (rest_of_handle_combine): If any edges have been purged,
13049 free dominators if available.
13050
13051 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13052 Eric Botcazou <ebotcazou@adacore.com>
13053
13054 PR middle-end/77594
13055 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13056 through into expand_addsub_overflow after expand_neg_overflow.
13057
13058 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13059
13060 * diagnostic-show-locus.c
13061 (selftest::test_fixit_insert_containing_newline): New function.
13062 (selftest::test_fixit_replace_containing_newline): New function.
13063 (selftest::diagnostic_show_locus_c_tests): Call the above.
13064
13065 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13066
13067 PR tree-optimization/77503
13068 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13069 code for CONST_COND_REDUCTION at analysis stage and use it at
13070 transform stage.
13071 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13072 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13073 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13074 field.
13075
13076 2016-09-15 Richard Biener <rguenther@suse.de>
13077
13078 PR middle-end/77544
13079 * fold-const.c (split_tree): Do not split constant ~X.
13080
13081 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13082
13083 PR rtl-optimization/77425
13084 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13085 is NULL.
13086
13087 PR middle-end/77475
13088 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13089 use %qs instead of %s where desirable, use argument instead of arg in
13090 the diagnostic wording, add list of supported strategies and
13091 spellcheck hint.
13092 (ix86_option_override_internal): Emit target("m...") instead of
13093 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13094 -march/-mtune option diagnostic. Add list of supported arches/tunings
13095 and spellcheck hint. Remove prefix, suffix and sw variables, use
13096 main_args_p ? "..." : "..." in diagnostics to make translation
13097 possible.
13098
13099 2016-09-15 Richard Biener <rguenther@suse.de>
13100
13101 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13102 extra offset argument.
13103 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13104 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13105 to reflect new offset parameter.
13106 * doc/tm.texi: Regenerate.
13107 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13108 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13109 offset argument.
13110 (darwin_asm_output_dwarf_offset): Likewise.
13111 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13112 argument.
13113 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13114 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13115 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13116
13117 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13118
13119 PR fortran/72743
13120 * ipa-icf.c (set_alias_uids): New function.
13121 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13122 all the merged variable's referring aliases.
13123
13124 2016-09-15 Richard Biener <rguenther@suse.de>
13125
13126 PR tree-optimization/77514
13127 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13128 only forced_stmts sequence.
13129
13130 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13131
13132 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13133 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13134 FOR_EACH_SSA_NAME to iterate over SSA variables.
13135 (pass_expand::execute): Likewise.
13136 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13137 * tree-cfg.c (dump_function_to_file): Likewise.
13138 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13139 (update_ssa): Likewise.
13140 * tree-ssa-alias.c (dump_alias_info): Likewise.
13141 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13142 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13143 (create_outofssa_var_map): Likewise.
13144 (coalesce_ssa_name): Likewise.
13145 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13146 * tree-ssa-pre.c (compute_avail): Likewise.
13147 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13148 (scc_vn_restore_ssa_info): Likewise.
13149 (free_scc_vn): Likwise.
13150 (run_scc_vn): Likewise.
13151 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13152 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13153 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13154 * tree-ssa.c (verify_ssa): Likewise.
13155
13156 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13157
13158 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13159 and mips64r2 as default 32-bit and 64-bit architectures.
13160 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13161 as default 32-bit and 64-bit architectures.
13162
13163 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13164
13165 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13166 of succ edge.
13167
13168 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13169
13170 * target.def (lra_p): Change commentary (for the manual) for the
13171 new default.
13172 * doc/tm.texi: Regenerate.
13173
13174 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13175
13176 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13177 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13178 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13179 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13180
13181 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13182
13183 * targhooks.c (default_lra_p): Return true instead of false.
13184
13185 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13186
13187 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13188 hook_bool_void_false.
13189 * config/avr/avr.c: Ditto.
13190 * config/bfin/bfin.c: Ditto.
13191 * config/c6x/c6x.c: Ditto.
13192 * config/cr16/cr16.c: Ditto.
13193 * config/cris/cris.c: Ditto.
13194 * config/epiphany/epiphany.c: Ditto.
13195 * config/fr30/fr30.c: Ditto.
13196 * config/frv/frv.c: Ditto.
13197 * config/h8300/h8300.c: Ditto.
13198 * config/ia64/ia64.c: Ditto.
13199 * config/iq2000/iq2000.c: Ditto.
13200 * config/lm32/lm32.c: Ditto.
13201 * config/m32c/m32c.c: Ditto.
13202 * config/m32r/m32r.c: Ditto.
13203 * config/m68k/m68k.c: Ditto.
13204 * config/mcore/mcore.c: Ditto.
13205 * config/microblaze/microblaze.c: Ditto.
13206 * config/mmix/mmix.c: Ditto.
13207 * config/mn10300/mn10300.c: Ditto.
13208 * config/moxie/moxie.c: Ditto.
13209 * config/msp430/msp430.c: Ditto.
13210 * config/nios2/nios2.c: Ditto.
13211 * config/nvptx/nvptx.c: Ditto.
13212 * config/pa/pa.c: Ditto.
13213 * config/pdp11/pdp11.c: Ditto.
13214 * config/rl78/rl78.c: Ditto.
13215 * config/sparc/sparc.c: Ditto.
13216 * config/spu/spu.c: Ditto.
13217 * config/stormy16/stormy16.c: Ditto.
13218 * config/tilegx/tilegx.c: Ditto.
13219 * config/tilepro/tilepro.c: Ditto.
13220 * config/v850/v850.c: Ditto.
13221 * config/vax/vax.c: Ditto.
13222 * config/visium/visium.c: Ditto.
13223 * config/xtensa/xtensa.c: Ditto.
13224
13225 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR sanitizer/68260
13228 * tsan.c: Include target.h.
13229 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13230 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13231 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13232 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13233 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13234
13235 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13236 Martin Liska <mliska@suse.cz>
13237
13238 PR middle-end/77574
13239 * predict.c (force_edge_cold): Add braces to a condition.
13240
13241 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13242
13243 PR rtl-optimization/77289
13244 * lra-constraints.c (get_final_hard_regno): Removed.
13245 (get_hard_regno): Add new parameter final_p.
13246 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13247 (operands_match_p): Adjust call to get_hard_regno.
13248 (uses_hard_regs_p): Likewise.
13249 (process_alt_operands): Likewise.
13250
13251 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13252
13253 PR target/70713
13254 * config/msp430/msp430.c (msp430_start_function): Emit an error
13255 if a function is both weak and specifies an interrupt number.
13256
13257 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13258
13259 PR tree-optimization/77454
13260 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13261 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13262 Formatting fix.
13263
13264 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13265
13266 * config/aarch64/aarch64-builtins.c
13267 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13268
13269 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13270
13271 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13272 SFmode and SCmode arguments by reference.
13273
13274 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13275
13276 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13277 Rename to...
13278 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13279 for renaming of add_fixit_insert to add_fixit_insert_before.
13280 (selftest::test_one_liner_fixit_insert_after): New function.
13281 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13282 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13283 (selftest::test_one_liner_many_fixits): Likewise.
13284 (selftest::test_diagnostic_show_locus_one_liner): Update for
13285 renaming, call new test function.
13286 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13287 renaming of add_fixit_insert to add_fixit_insert_before.
13288 (selftest::test_fixit_consolidation): Likewise.
13289 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13290 Likewise.
13291 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13292 (selftest::test_applying_fixits_insert_before): ...this.
13293 (selftest::test_applying_fixits_insert): Update for renaming of
13294 add_fixit_insert to add_fixit_insert_before.
13295 (selftest::test_applying_fixits_insert_after): New function.
13296 (selftest::test_applying_fixits_insert_after_at_line_end): New
13297 function.
13298 (selftest::test_applying_fixits_insert_after_failure): New function.
13299 (selftest::test_applying_fixits_multiple): Update for renaming of
13300 add_fixit_insert to add_fixit_insert_before.
13301 (selftest::change_line): Likewise.
13302 (selftest::test_applying_fixits_unreadable_file): Likewise.
13303 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13304 (selftest::test_applying_fixits_column_validation): Likewise.
13305 (selftest::test_applying_fixits_column_validation): Likewise.
13306 (selftest::edit_context_c_tests): Update for renamed test function;
13307 call new test functions.
13308
13309 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13310
13311 PR tree-optimization/77536
13312 PR rtl-optimization/68212
13313 * config/rs6000/rs6000.md (div->recip splitter): Remove
13314 optimize_insn_for_speed_p condition.
13315
13316 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13317
13318 * optabs.c (prepare_cmp_insn): Update documentation comment.
13319
13320 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13321 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13322
13323 PR middle-end/77475
13324 * opts.h (candidates_list_and_hint): Declare.
13325 * opts-common.c (candidates_list_and_hint): New function.
13326 (cmdline_handle_error): Use it.
13327
13328 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13329
13330 * edit-context.c (edited_line::get_len): New accessor.
13331 (edited_file::print_diff): Split out hunk-printing into...
13332 (edited_file::print_diff_hunk): New method.
13333 (edited_file::print_diff_line): New method.
13334
13335 2016-09-12 Andrew Pinski <apinski@cavium.com>
13336
13337 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13338 New tuning option.
13339 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13340 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13341 (aarch64_operands_ok_for_ldpstp): Return false if
13342 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13343 was SImode and the alignment is less than 8 byte.
13344 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13345
13346 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13347
13348 PR target/77570
13349 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13350
13351 2016-09-12 Marek Polacek <polacek@redhat.com>
13352
13353 * doc/extend.texi: Use lowercase "boolean".
13354 * doc/invoke.texi: Likewise.
13355 * doc/md.texi: Likewise.
13356 * target.def: Likewise.
13357 * doc/tm.texi: Regenerated.
13358
13359 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13360
13361 PR middle-end/77426
13362 * expmed.c (synth_mult): Delete duplicate mode check.
13363
13364 2016-09-10 Tom de Vries <tom@codesourcery.com>
13365
13366 PR C/71602
13367 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13368 va_list type only.
13369 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13370 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13371
13372 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13373
13374 PR rtl-optimization/77289
13375 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13376 register numbers. Remove support for subregs.
13377 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13378 (get_reg_class): Delete removed get_final_hard_regno() argument.
13379 (uses_hard_regs_p): Call get_final_hard_regno().
13380
13381 2016-09-09 Martin Sebor <msebor@redhat.com>
13382
13383 PR c/77520
13384 PR c/77521
13385 * pretty-print.c (pp_quoted_string): New function.
13386 (pp_format): Call it for %c and %s directives.
13387
13388 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13389
13390 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13391 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13392 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13393 * target.def (frame_pointer_required, can_eliminate): Likewise.
13394 * doc/tm.texi: Regenerated.
13395 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13396 ELIMINABLE_REGS.
13397 * df-scan.c (df_hard_reg_init): Likewise.
13398 * ira.c (ira_setup_eliminable_regset): Likewise.
13399 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13400 init_elim_table): Likewise.
13401 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13402 set_initial_elim_offsets, update_eliminables,
13403 init_elim_table): Likewise.
13404 * rtlanal.c (get_initial_register_offset): Likewise.
13405 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13406 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13407 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13408 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13409 * config/fr30/fr30.h: Fix comment.
13410 * config/frv/frv.c: Likewise.
13411 * config/frv/frv.h: Likewise.
13412 * config/ft32/ft32.h: Likewise.
13413 * config/visium/visium.h: Likewise.
13414 * config/pa/pa64-linux.h: Likewise.
13415 * config/v850/v850.h: Likewise.
13416 * config/cris/cris.c: Likewise.
13417 * config/ia64/ia64.h: Likewise.
13418 * config/moxie/moxie.h: Likewise.
13419 * config/m32r/m32r.h: Likewise.
13420
13421 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13422
13423 PR target/77267
13424 * config.in: Regenerate.
13425 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13426 New macro.
13427 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13428 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13429 static-libmpxwrappers case.
13430 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13431 MPX_LD_AS_NEEDED_GUARD_POP.
13432 * configure: Regenerate.
13433 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13434 defined if linker support "--push-state"/"--pop-state".
13435
13436 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13437
13438 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13439
13440 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13441
13442 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13443 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13444 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13445 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13446 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13447 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13448 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13449 Document.
13450 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13451 width macros from TS 18661-1.
13452 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13453
13454 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13455
13456 PR fortran/77516
13457 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13458 OMP_CLAUSE_SAFELEN_EXPR.
13459
13460 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13461
13462 * Makefile.in (OBJS): Add substring-locations.o.
13463 * langhooks-def.h (class substring_loc): New forward decl.
13464 (lhd_get_substring_location): New decl.
13465 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13466 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13467 * langhooks.c (lhd_get_substring_location): New function.
13468 * langhooks.h (class substring_loc): New forward decl.
13469 (struct lang_hooks): Add field get_substring_location.
13470 * substring-locations.c: New file, taking definition of
13471 format_warning_va and format_warning_at_substring from
13472 c-family/c-format.c, making them non-static.
13473 * substring-locations.h (class substring_loc): Move class here
13474 from c-family/c-common.h. Add and rewrite comments.
13475 (format_warning_va): New decl.
13476 (format_warning_at_substring): New decl.
13477 (get_source_location_for_substring): Add comment.
13478
13479 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13480
13481 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13482 to avoid -Wnarrowing warning.
13483 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13484 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13485
13486 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13487
13488 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13489 Avoid use of base_offset if offset already in range.
13490
13491 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13492
13493 * config/sh/sh-protos.h (struct sh_atomic_model,
13494 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13495 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13496 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13497 * config/sh/sh.h (struct sh_atomic_model,
13498 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13499 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13500 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13501 Guard with __cplusplus.
13502
13503 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13504
13505 PR target/69255
13506 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13507 unsupported or unknown ISA, use expand_call.
13508
13509 2016-09-06 Martin Liska <mliska@suse.cz>
13510
13511 PR gcov-profile/77378
13512 PR gcov-profile/77466
13513 * tree-profile.c (tree_profiling): Detect whether target can use
13514 -fprofile-update=atomic.
13515
13516 2016-09-06 Richard Biener <rguenther@suse.de>
13517
13518 PR tree-optimization/77479
13519 * tree-vrp.c (update_value_range): Extend overflow handling to
13520 VARYING.
13521
13522 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13523
13524 PR target/77476
13525 * config/i386/i386.md (isa): Add x64_avx512bw.
13526 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13527 (kmov_isa): New mode attr.
13528 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13529 (*zero_extend<mode>si2): Likewise.
13530 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13531
13532 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13533
13534 * doc/invoke.texi (SPU Options): nops -> NOPs.
13535 (x86 Options): Ditto.
13536
13537 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13538
13539 PR middle-end/77475
13540 * toplev.c (process_options): Temporarily set input_location
13541 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13542
13543 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13544
13545 PR rtl-optimization/77452
13546 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13547 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13548
13549 2016-09-05 Marek Polacek <polacek@redhat.com>
13550
13551 PR c/77423
13552 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13553
13554 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13555
13556 PR other/77421
13557 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13558 *insn_out == '*' test. Don't copy unnecessary to yet another
13559 memory buffer, and don't leak it.
13560
13561 PR rtl-optimization/77425
13562 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13563
13564 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13565
13566 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13567
13568 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13569
13570 * common.opt (fdiagnostics-generate-patch): New option.
13571 * diagnostic.c: Include "edit-context.h".
13572 (diagnostic_initialize): Initialize context->edit_context_ptr.
13573 (diagnostic_finish): Delete context->edit_context_ptr.
13574 (diagnostic_report_diagnostic): Add fix-it hints from the
13575 diagnostic to context->edit_context_ptr, if any.
13576 * diagnostic.h (class edit_context): Add forward decl.
13577 (struct diagnostic_context): Add field "edit_context_ptr".
13578 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13579 -fdiagnostics-generate-patch.
13580 (-fdiagnostics-generate-patch): New item.
13581 * toplev.c: Include "edit-context.h".
13582 (process_options): Set global_dc->edit_context_ptr to a new
13583 edit_context if the options need one.
13584 (toplev::main): Handle -fdiagnostics-generate-patch by using
13585 global_dc->edit_context_ptr.
13586
13587 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13588
13589 PR c/65467
13590 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13591 map and firstprivate clauses on target construct for _Atomic
13592 qualified decls.
13593 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13594 on target construct for _Atomic qualified decls.
13595 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13596 decls.
13597 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13598 _Atomic qualified arguments not mentioned in uniform clause.
13599
13600 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13601
13602 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13603 * diagnostic-color.c (color_dict): Add "diff-filename",
13604 "diff-hunk", "diff-delete", and "diff-insert".
13605 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13606 to reflect above changes.
13607 * doc/invoke.texi (-fdiagnostics-color): Update description of
13608 default GCC_COLORS, and of the supported capabilities.
13609 * edit-context.c: New file.
13610 * edit-context.h: New file.
13611 * input.c (struct fcache): Add field "missing_trailing_newline".
13612 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13613 true.
13614 (add_file_to_cache_tab): Likewise.
13615 (fcache::fcache): Likewise.
13616 (get_next_line): Update c->missing_trailing_newline.
13617 (location_missing_trailing_newline): New function.
13618 * input.h (location_missing_trailing_newline): New decl.
13619 * selftest-run-tests.c (selftest::run_tests): Call
13620 edit_context_c_tests.
13621 * selftest.h (edit_context_c_tests): New decl.
13622
13623 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13624 Richard Biener <rguenth@suse.de>
13625
13626 PR tree-optimization/77444
13627 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13628 as steptype, remove redundant initialization.
13629
13630 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13631
13632 PR sanitizer/77396
13633 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13634 (sanopt_optimize_walker): Optimize away
13635 __asan_before_dynamic_init (...) followed by
13636 __asan_after_dynamic_init () without intervening memory loads/stores.
13637 * ipa-pure-const.c (special_builtin_state): Handle
13638 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13639 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13640
13641 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13642
13643 * cfg.c (free_original_copy_tables): Replace second assignment of
13644 bb_copy = NULL by bb_original = NULL.
13645
13646 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13647
13648 PR other/77421
13649 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13650 assignment added in r216794.
13651
13652 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13653
13654 * Makefile.in (OBJS): Add typed-splay-tree.o.
13655 * selftest-run-tests.c (selftest::run_tests): Call
13656 typed_splay_tree_c_tests.
13657 * selftest.h (typed_splay_tree_c_tests): New decl.
13658 * typed-splay-tree.c: New file.
13659 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13660 (typed_splay_tree::max): New method.
13661 (typed_splay_tree::min): New method.
13662 (typed_splay_tree::foreach): New method.
13663 (typed_splay_tree::closure): New struct.
13664 (typed_splay_tree::inner_foreach_fn): New function.
13665
13666 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13667
13668 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13669 -fipa-cp-bit to -fipa-bit-cp.
13670
13671 2016-09-01 Martin Sebor <msebor@redhat.com>
13672
13673 PR tree-optimization/71831
13674 * tree-object-size.h: Return bool instead of the size and add
13675 argument for the size.
13676 * tree-object-size.c (compute_object_offset): Update signature.
13677 (addr_object_size): Same.
13678 (compute_builtin_object_size): Return bool instead of the size
13679 and add argument for the size. Handle POINTER_PLUS_EXPR when
13680 optimization is disabled.
13681 (expr_object_size): Adjust.
13682 (plus_stmt_object_size): Adjust.
13683 (pass_object_sizes::execute): Adjust.
13684 * builtins.c (fold_builtin_object_size): Adjust.
13685 * doc/extend.texi (Object Size Checking): Update.
13686 * ubsan.c (instrument_object_size): Adjust.
13687
13688 2016-09-01 Martin Sebor <msebor@redhat.com>
13689
13690 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13691 it fits the output of the formatted function regardless of its
13692 arguments.
13693 * genmodes.c (parser::parse_expr): Same.
13694 * gimplify.c (gimplify_asm_expr): Same.
13695 * passes.c (pass_manager::register_one_dump_file): Same.
13696 * print-tree.c (print_node): Same.
13697
13698 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13699
13700 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13701
13702 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13703
13704 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13705
13706 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13707
13708 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13709 * config/rs6000/vector.md: Ditto.
13710 * config/rs6000/vsx.md: Ditto.
13711
13712 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13713
13714 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13715 first in all cases.
13716
13717 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13718
13719 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13720 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13721 *return_and_restore_gpregs_<mode>_r11,
13722 *return_and_restore_gpregs_<mode>_r12,
13723 *return_and_restore_gpregs_<mode>_r1,
13724 *return_and_restore_fpregs_<mode>_r11,
13725 *return_and_restore_fpregs_<mode>_r12,
13726 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13727 directly instead of via the "l" constraint. Renumber operands.
13728 Fix whitespace.
13729
13730 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13731
13732 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13733 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13734 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13735 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13736 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13737 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13738 *call_value_nonlocal_darwin64, reload_macho_picbase,
13739 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13740 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13741 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13742 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13743 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13744 *save_fpregs_<mode>_r1): Ditto.
13745 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13746 *return_and_restore_gpregs_spe): Ditto.
13747
13748 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13749
13750 * config/rs6000/rs6000.md
13751 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13752 the use of the link register.
13753 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13754
13755 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13756 Michael Meissner <meissner@linux.vnet.ibm.com>
13757
13758 PR target/72827
13759 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13760 reg+reg addressing for TImode.
13761 (rs6000_legitimate_address_p): Only allow register indirect
13762 addressing for TImode, even without TARGET_QUAD_MEMORY.
13763
13764 2016-09-01 Richard Biener <rguenther@suse.de>
13765
13766 PR middle-end/77436
13767 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13768 check whether the result fits the desired result type.
13769
13770 2016-09-01 Nathan Sidwell <nathan@acm.org>
13771
13772 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13773
13774 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13775
13776 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13777 New function.
13778 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13779
13780 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13781
13782 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13783 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13784 for comparisons of integer ZERO_EXTEND against zero.
13785
13786 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13787
13788 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13789 STV pass if -mstackrealign is enabled.
13790
13791 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13792
13793 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13794 AVX512IFMA.
13795
13796 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13797
13798 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13799 (layout_range::intersects_line_p): New method.
13800 (test_range_contains_point_for_single_point): Rename to...
13801 (test_layout_range_for_single_point): ...this, and add testing
13802 for layout_range::intersects_line_p.
13803 (test_range_contains_point_for_single_line): Rename to...
13804 (test_layout_range_for_single_line): ...this, and add testing
13805 for layout_range::intersects_line_p.
13806 (test_range_contains_point_for_multiple_lines): Rename to...
13807 (test_layout_range_for_multiple_lines): ...this, and add testing
13808 for layout_range::intersects_line_p.
13809 (layout::layout): Populate m_fixit_hints.
13810 (layout::get_expanded_location): Handle the case of a line-span
13811 for a fix-it hint.
13812 (layout::validate_fixit_hint_p): New method.
13813 (get_line_span_for_fixit_hint): New function.
13814 (layout::calculate_line_spans): Add spans for fixit-hints.
13815 (layout::should_print_annotation_line_p): New method.
13816 (layout::print_any_fixits): Drop param "richloc", instead using
13817 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13818 (diagnostic_show_locus): Avoid printing blank annotation lines.
13819 (selftest::test_diagnostic_context::test_diagnostic_context):
13820 Initialize show_column and start_span.
13821 (selftest::test_diagnostic_context::start_span_cb): New static
13822 function.
13823 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13824 (selftest::diagnostic_show_locus_c_tests): Update for function
13825 renamings. Call test_diagnostic_show_locus_fixit_lines.
13826
13827 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13828
13829 PR tree-optimization/73714
13830 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13831
13832 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13833
13834 * selftest.c: Move "namespace selftest {" to top of file,
13835 removing explicit "selftest::" qualifiers throughout.
13836
13837 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13838
13839 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13840 New types.
13841 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13842 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13843 Replace builtin with vector extension.
13844 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13845 New types.
13846 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13847 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13848 Replace builtin with vector extension.
13849 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13850 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13851 Replace builtin with vector extension.
13852 * config/i386/xmmintrin.h (__m128_u): New type.
13853 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13854 (_mm_load_ps, _mm_store_ps): Simplify.
13855
13856 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
13857
13858 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
13859
13860 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13861
13862 * diagnostic-show-locus.c (colorizer::begin_state): Support more
13863 than 3 ranges per diagnostic by alternating between color 1 and
13864 color 2.
13865 (layout::layout): Replace use of rich_location::MAX_RANGES
13866 with richloc->get_num_locations ().
13867 (layout::calculate_line_spans): Replace use of
13868 rich_location::MAX_RANGES with m_layout_ranges.length ().
13869 (layout::print_annotation_line): Handle arbitrary numbers of
13870 ranges in caret-printing by defaulting to '^'.
13871 (selftest::test_one_liner_many_fixits): New function.
13872 (test_diagnostic_show_locus_one_liner): Call it.
13873 * diagnostic.c (diagnostic_initialize): Update for renaming
13874 of rich_location::MAX_RANGES to
13875 rich_location::STATICALLY_ALLOCATED_RANGES.
13876 * diagnostic.h (struct diagnostic_context): Likewise.
13877
13878 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13879
13880 * selftest.c (selftest::named_temp_file::named_temp_file): New
13881 ctor.
13882 (selftest::temp_source_file::~temp_source_file): Move to...
13883 (selftest::named_temp_file::~named_temp_file): ...here.
13884 (selftest::test_named_temp_file): New function.
13885 (selftest::selftest_c_tests): Call test_named_temp_file.
13886 * selftest.h (class named_temp_file): New class.
13887 (class temp_source_file): Convert to a subclass of named_temp_file.
13888
13889 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
13890
13891 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
13892 USEs of LR_REGNO in returns and sibcalls.
13893 (rs6000_output_mi_thunk): Similar.
13894 (rs6000_sibcall_aix): Similar.
13895 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
13896 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
13897 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
13898 Remove the USE of LR_REGNO from the patterns as well. Delete an
13899 obsolete comment.
13900 (return_internal_<mode>): Delete.
13901
13902 2016-08-30 Tamar Christina <tamar.christina@arm.com>
13903
13904 * config/aarch64/aarch64-simd.md
13905 (aarch64_ld2<mode>_dreg_le): New.
13906 (aarch64_ld2<mode>_dreg_be): New.
13907 (aarch64_ld2<mode>_dreg): Removed.
13908 (aarch64_ld3<mode>_dreg_le): New.
13909 (aarch64_ld3<mode>_dreg_be): New.
13910 (aarch64_ld3<mode>_dreg): Removed.
13911 (aarch64_ld4<mode>_dreg_le): New.
13912 (aarch64_ld4<mode>_dreg_be): New.
13913 (aarch64_ld4<mode>_dreg): Removed.
13914 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
13915
13916 2016-08-30 David Malcolm <dmalcolm@redhat.com>
13917
13918 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
13919 redundant location param.
13920 (test_one_liner_fixit_remove): Likewise.
13921 (test_one_liner_fixit_replace): Likewise.
13922 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
13923 * gcc-rich-location.c
13924 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
13925 get_range_from_loc. Drop overload taking a const char *.
13926 * gcc-rich-location.h
13927 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
13928 a const char *.
13929
13930 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13931
13932 * config/linux.c (linux_libc_has_function): Return true on musl.
13933
13934 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13935
13936 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
13937
13938 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
13939
13940 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
13941 used for abnormal egdes.
13942
13943 2016-08-30 Jakub Jelinek <jakub@redhat.com>
13944
13945 PR tree-optimization/72866
13946 * tree-vect-patterns.c (search_type_for_mask): Turn into
13947 a small wrapper, move all code to ...
13948 (search_type_for_mask_1): ... this new function. Add caching
13949 and adjust recursive calls.
13950
13951 PR debug/77363
13952 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
13953 instead of lookup_type_die (type_main_variant (type)) even for array
13954 types.
13955
13956 PR middle-end/77377
13957 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
13958 constant pool reference return x instead of c.
13959
13960 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
13961
13962 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
13963 include MQ.
13964
13965 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13966
13967 * input.c
13968 (selftest::test_make_location_nonpure_range_endpoints): Fix
13969 header comment.
13970
13971 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13972
13973 * diagnostic-show-locus.c
13974 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
13975 function.
13976 (selftest::test_diagnostic_show_locus_one_liner): Call it.
13977 * input.c (get_pure_location): Move to libcpp/line-map.c.
13978 * input.h (get_pure_location): Convert decl to an inline function
13979 calling implementation in libcpp.
13980
13981 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
13982
13983 PR target/77403
13984 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
13985 template for intel asm dialect.
13986 (vec_set_hi_<mode><mask_name>): Ditto.
13987
13988 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13989
13990 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
13991 (selftest::fail_formatted): Likewise.
13992
13993 2016-08-29 David Malcolm <dmalcolm@redhat.com>
13994
13995 * input.c (make_location): Call get_start and get_finish
13996 on the endpoints to avoid storing packed ranges or ad-hoc
13997 ranges in them.
13998 (selftest::test_make_location_nonpure_range_endpoints): New function.
13999 (selftest::input_c_tests): Call it.
14000 * input.h (get_start): New inline function.
14001
14002 2016-08-29 Tom de Vries <tom@codesourcery.com>
14003
14004 PR c/77398
14005 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14006 with assert.
14007
14008 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14009
14010 * Makefile.in (gcov-iov.h): Add dummy recipe.
14011
14012 2016-08-29 Nathan Sidwell <nathan@acm.org>
14013
14014 * config/nvptx/nvptx.c: #include tree-vrp.h.
14015
14016 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14017
14018 PR target/77324
14019 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14020 HIGH+LO construct during reload.
14021
14022 2016-08-28 Tom de Vries <tom@codesourcery.com>
14023
14024 PR lto/70955
14025 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14026 'sysv_abi va_list' attribute.
14027 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14028 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14029 attributes.
14030
14031 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14032
14033 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14034 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14035 (unshare_all_rtl_again): Likewise.
14036 * function.c (assign_stack_local_1): Likewise.
14037 (assign_stack_temp_for_type): Likewise.
14038
14039 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14040
14041 * cfgbuild.c (make_edges): Adjust.
14042 * cfgrtl.c (can_delete_label_p): Likewise.
14043 * dwarf2cfi.c (create_trace_edges): Likewise.
14044 * except.c (sjlj_emit_dispatch_table): Likewise.
14045 * function.h (struct expr_status): make x_forced_labels a vector.
14046 * jump.c (rebuild_jump_labels_1): Adjust.
14047 * reload1.c (set_initial_label_offsets): Likewise.
14048 * stmt.c (force_label_rtx): Likewise.
14049 (expand_label): Likewise.
14050
14051 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14052
14053 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14054
14055 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14056
14057 PR tree-optimization/71077
14058 PR tree-optimization/68542
14059 * fold-const.c (fold_relational_const): Fix folding of
14060 VECTOR_CST comparisons that have a scalar boolean result type.
14061 (selftest::test_vector_folding): New static function.
14062 (selftest::fold_const_c_tests): Call it.
14063
14064 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14065
14066 * doc/extend.texi (SPU Built-in Functions): Remove stale
14067 references to material formerly at IBM and Sony.
14068
14069 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14070
14071 PR target/77349
14072 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14073
14074 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14075
14076 * diagnostic-show-locus.c
14077 (selftest::test_fixit_consolidation): New function.
14078 (selftest::diagnostic_show_locus_c_tests): Call it.
14079 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14080 constructor based on source_range.
14081
14082 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14083
14084 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14085 "fixit-delete".
14086 (parse_gcc_colors): Update description of default GCC_COLORS.
14087 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14088 (colorizer::set_fixit_insert): New method.
14089 (colorizer::set_fixit_delete): New method.
14090 (colorizer::get_color_by_name): New method.
14091 (colorizer::STATE_FIXIT_INSERT): New constant.
14092 (colorizer::STATE_FIXIT_DELETE): New constant.
14093 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14094 fields in favor of new field "m_stop_color". Add fields
14095 "m_fixit_insert" and "m_fixit_delete".
14096 (colorizer::colorizer): Update for above changes. Replace
14097 colorize_start calls with calls to get_color_by_name.
14098 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14099 STATE_FIXIT_DELETE. Update for field renamings.
14100 (colorizer::finish_state): Simplify by using m_stop_color,
14101 rather than multiple identical "*_ce" fields.
14102 (colorizer::get_color_by_name): New method.
14103 (layout::print_any_fixits): Print insertions and replacements
14104 using the "fixit-insert" color, and deletions using the
14105 "fixit-delete" color.
14106 * doc/invoke.texi (-fdiagnostics-color): Update description of
14107 default GCC_COLORS, and of the supported capabilities.
14108
14109 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14110
14111 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14112 current_function_static_stack_size variable with the static
14113 stack frame size of the current function when
14114 flag_stack_usage_info is enabled.
14115
14116 2016-08-26 Nathan Sidwell <nathan@acm.org>
14117
14118 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14119 assignment inside if condition.
14120
14121 2016-08-26 Richard Biener <rguenther@suse.de>
14122
14123 PR tree-optimization/69047
14124 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14125 extracts similar to what FRE does.
14126 (non_rewritable_mem_ref_base): Likewise.
14127
14128 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14129
14130 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14131 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14132 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14133 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14134 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14135 Likewise.
14136 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14137 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14138 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14139 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14140 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14141
14142 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14143
14144 PR target/70473
14145 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14146 reservation duration to 15 cycles.
14147 (cortex_a8_vfp_macs): Likewise.
14148 (cortex_a8_vfp_macd): Likewise.
14149 (cortex_a8_vfp_divs): Likewise.
14150 (cortex_a8_vfp_divd): Likewise.
14151
14152 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14153
14154 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14155 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14156
14157 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14158 Martin Jambhor <mjambor@suse.cz>
14159
14160 * common.opt: New option -fipa-bit-cp.
14161 * doc/invoke.texi: Document -fipa-bit-cp.
14162 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14163 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14164 * tree-ssa-ccp.h: New header file.
14165 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14166 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14167 Replace all occurences of tree parameter by two new params: signop, int.
14168 (bit_value_unop_1): Change to bit_value_unop and export it.
14169 Replace all occurences of tree parameter by two new params: signop,
14170 int.
14171 (bit_value_binop): Change call from bit_value_binop_1 to
14172 bit_value_binop.
14173 (bit_value_assume_aligned): Likewise.
14174 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14175 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14176 to ccp_finalize.
14177 (ccp_finalize): Skip processing if val->mask == 0.
14178 * ipa-cp.c: Include tree-ssa-ccp.h
14179 (ipcp_bits_lattice): New class.
14180 (ipcp_param_lattice (bits_lattice): New member.
14181 (print_all_lattices): Call ipcp_bits_lattice::print.
14182 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14183 (initialize_node_lattices): Likewise.
14184 (propagate_bits_accross_jump_function): New function.
14185 (propagate_constants_accross_call): Call
14186 propagate_bits_accross_jump_function.
14187 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14188 (ipcp_store_bits_results): New function.
14189 (ipcp_driver): Call ipcp_store_bits_results.
14190 * ipa-prop.h (ipa_bits): New struct.
14191 (ipa_jump_func): Add new member bits of type ipa_bits.
14192 (ipa_param_descriptor): Change decl to decl_or_type.
14193 (ipa_get_param): Change decl to decl_or_type and assert on
14194 PARM_DECL.
14195 (ipa_get_type): New function.
14196 (ipcp_transformation_summary): New member bits.
14197 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14198 (ipa_populate_param_decls): Likewise.
14199 (ipa_dump_param): Likewise.
14200 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14201 function.
14202 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14203 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14204 propagation.
14205 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14206 (ipa_write_jump_function): Add streaming for ipa_bits.
14207 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14208 (write_ipcp_transformation_info): Add streaming for ipa_bits
14209 summary for ltrans.
14210 (read_ipcp_transfomration_info): Add support for reading streamed
14211 ipa_bits.
14212 (ipcp_update_bits): New function.
14213 (ipcp_transform_function): Call ipcp_update_bits.
14214
14215 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14216
14217 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14218 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14219
14220 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14221
14222 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14223
14224 2016-08-25 Richard Biener <rguenther@suse.de>
14225
14226 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14227 Only add locations in late dwarf.
14228 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14229 (dwarf2out_early_finish): But do it here.
14230
14231 2016-08-24 Michael Collison <michael.collison@linaro.org>
14232 Michael Collison <michael.collison@arm.com>
14233
14234 * config/arm/arm-modes.def: Add new condition code mode CC_V
14235 to represent the overflow bit.
14236 * config/arm/arm.c (maybe_get_arm_condition_code):
14237 Add support for CC_Vmode.
14238 (arm_gen_unlikely_cbranch): New function to generate common
14239 rtl conditional branches for overflow patterns.
14240 * config/arm/arm-protos.h: Add prototype for
14241 arm_gen_unlikely_cbranch.
14242 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14243 addsi3_compareV_upper): New patterns to support signed
14244 builtin overflow add operations.
14245 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14246 New patterns to support unsigned builtin add overflow operations.
14247 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14248 builtin overflow subtract operations,
14249 (usubv<mode>4): New patterns to support unsigned builtin subtract
14250 overflow operations.
14251 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14252 to support builtin overflow negate operations.
14253
14254 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14255
14256 Revert
14257 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14258
14259 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14260 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14261 needed.
14262
14263 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14264
14265 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14266 MULTILIB_OPTIONS should be used. Small wording fixes.
14267 * genmultilib: Memorize set of all option combinations in
14268 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14269 found in MULTILIB_OPTIONS by checking if option set is listed in
14270 combination_space. Output new and existing error message to stderr.
14271
14272 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14273
14274 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14275 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14276 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14277 (MULTILIB_REUSE): Remove reuse rules for option set including
14278 -mfpu=fp-armv8 and -mfpu=vfpv4
14279
14280 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14281
14282 * config/arm/t-rtems: Add vfp multilib.
14283
14284 2016-08-23 Ian Lance Taylor <iant@golang.org>
14285
14286 * config/s390/s390.c (s390_asm_file_start): Call
14287 default_file_start.
14288
14289 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14290
14291 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14292 initialization of all 0's to the 0 constant, instead of directly
14293 generating XOR. Add support for V4SImode vector initialization on
14294 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14295 initialization. Change variables used in V4SFmode vector
14296 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14297 any memory addresses are in index form. Add support for using
14298 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14299 with all of the same element.
14300 (regno_or_subregno): New helper function to return a register
14301 number for either REG or SUBREG.
14302 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14303 Use regno_or_subregno where possible.
14304 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14305 DImode value from two SImode values in order to generate V4SImode
14306 vector initialization on 64-bit systems with direct move.
14307 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14308 initialization.
14309 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14310 swappable.
14311 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14312 declaration.
14313 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14314 attributes to initialize V8HImode and V16QImode vectors with the
14315 same element.
14316 (VSX_SPLAT_COUNT): Likewise.
14317 (VSX_SPLAT_SUFFIX): Likewise.
14318 (UNSPEC_VSX_VEC_INIT): New unspec.
14319 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14320 Allow SFmode values to come from Altivec registers.
14321 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14322 on 64-bit systems with direct move.
14323 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14324 vector initializations, to allow V4SImode vector initializations
14325 on 64-bit systems with direct move.
14326 (vsx_splat_v4si): Likewise.
14327 (vsx_splat_v4si_di): Likewise.
14328 (vsx_splat_v4sf): Likewise.
14329 (vsx_splat_v4sf_internal): Likewise.
14330 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14331 register classes.
14332 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14333 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14334 initializing V8HImode and V16QImode vectors with the same
14335 element.
14336 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14337 optimization if -maltivec=be.
14338
14339 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14340
14341 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14342 attribute for alternatives 3 and 4.
14343
14344 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14345
14346 * selftest.c (selftest::assert_str_contains): New function.
14347 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14348 * selftest.h (selftest::assert_str_contains): New decl.
14349 (ASSERT_STR_CONTAINS): New macro.
14350
14351 2016-08-23 Richard Biener <rguenther@suse.de>
14352
14353 PR tree-optimization/77286
14354 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14355 the CFG here.
14356 (vect_transform_loop): Split exit edges of loop and scalar
14357 loop if required and at the appropriate time.
14358
14359 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14360
14361 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14362 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14363 needed.
14364 Correct a typo in a comment.
14365
14366 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14367
14368 * config/s390/s390.md ("*andc_split"): New splitter for and with
14369 complement.
14370
14371 2016-08-23 Richard Biener <rguenther@suse.de>
14372
14373 PR tree-optimization/27336
14374 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14375 by looking for a non-EH edge.
14376 (process_assert_insertions_for): Likewise.
14377
14378 2016-08-23 Richard Biener <rguenther@suse.de>
14379
14380 PR middle-end/77305
14381 * statistics.c (statistics_counter_event): Robustify against
14382 NULL current_pass.
14383
14384 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14385
14386 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14387 for targets amdfam10 and barcelona.
14388
14389 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14390
14391 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14392 (zero_extend<mode>di2): Ditto.
14393 (*zero_extend<mode>si2): Ditto.
14394 (*zero_extendqihi2): Ditto.
14395
14396 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14397
14398 PR middle-end/77269
14399 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14400 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14401
14402 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14403
14404 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14405 identical consecutive elements.
14406 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14407 the node's def stmt, avoid printing an unwanted trailing newline by
14408 replacing the call to print_gimple_stmt() with its inlined body and
14409 adjusting it to not set pp_needs_newline and to call pp_flush()
14410 instead of pp_newline_and_flush().
14411
14412 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14413
14414 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14415 (float32_type_node, float64_type_node, float32x_type_node)
14416 (float128x_type_node): New macros.
14417 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14418 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14419 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14420 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14421 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14422 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14423 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14424 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14425 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14426 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14427 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14428 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14429 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14430 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14431 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14432 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14433 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14434 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14435 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14436 and copysign.
14437 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14438 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14439 * doc/extend.texi (Other Builtins): Document these built-in
14440 functions.
14441 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14442 for nan and nans.
14443
14444 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14445
14446 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14447
14448 2016-08-22 Richard Biener <rguenther@suse.de>
14449
14450 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14451
14452 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14453
14454 PR target/77270
14455 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14456 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14457 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14458
14459 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14460
14461 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14462 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14463 (vrp_visit_switch_stmt): Likewise.
14464 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14465 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14466 (vrp_visit_stmt): Use extract_range_from_stmt.
14467 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14468
14469 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14470
14471 * Makefile.in: Add tree-vrp.h to GTFILES.
14472 * gengtype.c (open_base_files): Add tree-vrp.h.
14473 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14474 * builtins.c: Likewise.
14475 * fold-const.c: Likewise.
14476 * gimple-builder.c: Likewise.
14477 * gimple-laddress.c: Likewise.
14478 * hsa-gen.c: Likewise.
14479 * internal-fn.c: Likewise.
14480 * ssa.h: Likewise.
14481 * targhooks.c: Liewise,
14482 * tree-ssa-address.c: Likewise.
14483 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14484 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14485 * tree-vrp.h: New file.
14486
14487 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14488
14489 PR tree-optimization/61839
14490 * tree-vrp.c (two_valued_val_range_p): New.
14491 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14492 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14493 Also Convert VAR BINOP CST where VAR is two-valued to
14494 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14495
14496 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14497
14498 * diagnostic-show-locus.c
14499 (layout::annotation_line_showed_range_p): New method.
14500 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14501 Reimplement case fixit_hint::REPLACE to cover removals, and
14502 replacements where the range of the replacement isn't one
14503 of the ranges in the rich_location.
14504 (test_one_liner_fixit_replace): Likewise.
14505 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14506 function.
14507 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14508 New function.
14509 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14510 functions.
14511 * diagnostic.c (print_parseable_fixits): Remove case
14512 fixit_hint::REMOVE.
14513
14514 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14515
14516 PR target/77270
14517 * config/i386/i386.c (ix86_option_override_internal): Remove
14518 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14519 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14520 Do not try to enable TARGET_PRFCHW ISA flag here.
14521 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14522 Rewrite expander function body.
14523 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14524
14525 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14526
14527 PR c/32187
14528 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14529 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14530 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14531 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14532 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14533 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14534 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14535 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14536 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14537 tree_index values.
14538 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14539 macros.
14540 (struct floatn_type_info): New structure type.
14541 (floatn_nx_types): New variable declaration.
14542 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14543 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14544 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14545 * tree.c (floatn_nx_types): New variable.
14546 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14547 corresponding complex types.
14548 * target.def (floatn_mode): New hook.
14549 * targhooks.c: Include "real.h".
14550 (default_floatn_mode): New function.
14551 * targhooks.h (default_floatn_mode): New prototype.
14552 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14553 types.
14554 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14555 effective-target and dg-add-options keywords.
14556 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14557 Document new effective-target keywords.
14558 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14559 * doc/tm.texi: Regenerate.
14560 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14561 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14562 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14563 18661-3.
14564 * real.h (struct real_format): Add field ieee_bits.
14565 * real.c (ieee_single_format, mips_single_format)
14566 (motorola_single_format, spu_single_format, ieee_double_format)
14567 (mips_double_format, motorola_double_format)
14568 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14569 (ieee_extended_intel_128_format)
14570 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14571 (mips_extended_format, ieee_quad_format, mips_quad_format)
14572 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14573 (decimal_double_format, decimal_quad_format, ieee_half_format)
14574 (arm_half_format, real_internal_format: Initialize ieee_bits
14575 field.
14576 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14577 float128_type_node. Set float80_type_node to float64x_type_node
14578 if appropriate and long_double_type_node not appropriate.
14579 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14580 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14581 Initialize ieee_bits field.
14582 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14583 (rs6000_init_builtins): Set ieee128_float_type_node to
14584 float128_type_node.
14585 (rs6000_floatn_mode): New function.
14586
14587 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14588
14589 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14590 _rdseed64_step): Uglify argument names and/or local variable names
14591 in inline functions.
14592 * config/i386/rtmintrin.h (_xabort): Likewise.
14593 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14594 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14595 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14596 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14597 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14598 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14599 _mm_maskz_ternarylogic_epi32): Likewise.
14600 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14601 __lwpins32, __lwpins64): Likewise.
14602 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14603 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14604 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14605 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14606 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14607 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14608 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14609 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14610 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14611 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14612 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14613 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14614 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14615 _mm256_mask_i64gather_epi32): Likewise.
14616 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14617 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14618 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14619 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14620 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14621 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14622 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14623 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14624 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14625 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14626 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14627 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14628 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14629 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14630 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14631 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14632 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14633 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14634
14635 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14636 returning void.
14637 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14638 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14639 Likewise.
14640 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14641 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14642 function name.
14643 (_rdpkru_u32): Add space after function name.
14644
14645 * config/i386/t-i386 (i386-c.o): Don't depend on
14646 i386-builtin-types.inc.
14647 (i386.o): Depend on i386-builtin-types.inc.
14648
14649 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14650
14651 PR target/77281
14652 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14653 Use const_vec_duplicate to check for duplicated elements.
14654
14655 2016-08-19 Richard Biener <rguenther@suse.de>
14656
14657 PR tree-optimization/77290
14658 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14659 Fix flag_tree_parallelize_loops check.
14660
14661 2016-08-19 Richard Biener <rguenther@suse.de>
14662
14663 * match.pd (x | 0 -> x): Add.
14664
14665 2016-08-19 Richard Biener <rguenther@suse.de>
14666
14667 PR tree-optimization/77286
14668 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14669 Deal with virtual PHIs being out-of-order.
14670
14671 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14672
14673 * doc/invoke.texi (fverbose-asm): Note that source code lines
14674 are emitted, and provide an example.
14675 * final.c (asm_show_source): New function.
14676 (final_scan_insn): Call asm_show_source.
14677
14678 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14679
14680 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14681 param with diagnostic_kind.
14682 (class colorizer): Similarly replace field m_diagnostic with
14683 m_diagnostic_kind.
14684 (colorizer::colorizer): Replace diagnostic
14685 param with diagnostic_kind.
14686 (colorizer::begin_state): Update for above field change.
14687 (layout::layout): Replace diagnostic param with rich_location *
14688 and diagnostic_kind.
14689 (diagnostic_show_locus): Replace diagnostic param with richloc
14690 and diagnostic_kind.
14691 (class selftest::test_diagnostic_context): New class.
14692 (selftest::test_diagnostic_show_locus_unknown_location): New
14693 function.
14694 (selftest::test_one_liner_simple_caret): New function.
14695 (selftest::test_one_liner_caret_and_range): New function.
14696 (selftest::test_one_liner_multiple_carets_and_ranges): New
14697 function.
14698 (selftest::test_one_liner_fixit_remove): New function.
14699 (selftest::test_one_liner_fixit_replace): New function.
14700 (selftest::test_diagnostic_show_locus_one_liner): New function.
14701 (selftest::diagnostic_show_locus_c_tests): Call the new test
14702 functions.
14703 * diagnostic.c (diagnostic_initialize): Initialize
14704 colorize_source_p, show_ruler_p and parseable_fixits_p.
14705 (default_diagnostic_finalizer): Update for change to
14706 diagnostic_show_locus.
14707 (diagnostic_append_note): Likewise.
14708 * diagnostic.h (diagnostic_show_locus): Replace
14709 const diagnostic_info * param with location * and diagnostic_t.
14710
14711 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14712
14713 * input.c (saved_line_table): New global.
14714 (class selftest::temp_line_table): Rename to line_table_test and
14715 move declaration to selftest.h, and drop field m_old_line_table.
14716 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14717 (selftest::line_table_test::line_table_test): ...this. Add a
14718 default ctor. Store current value of line_table within
14719 saved_line_table.
14720 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14721 (selftest::line_table_test::~line_table_test): ...this, and
14722 restore line_table from the saved_line_table, rather than
14723 m_old_line_table.
14724 (selftest::test_accessing_ordinary_linemaps): Update for above
14725 renaming.
14726 (selftest::test_lexer): Likewise.
14727 (struct selftest::lexer_test): Likewise.
14728 (selftest::lexer_test::lexer_test): Likewise.
14729 (selftest::input_c_tests): Move the looping over test cases from
14730 here into...
14731 (selftest::for_each_line_table_case): New function.
14732 * input.h (saved_line_table): New decl.
14733 * selftest.h (struct selftest::line_table_case): New forward decl.
14734 (class selftest::line_table_test): New class, moved here from
14735 selftest::temp_line_table in input.c, and renamed.
14736 (selftest::for_each_line_table_case): New decl.
14737
14738 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14739
14740 PR target/72839
14741 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14742
14743 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14744
14745 PR middle-end/70895
14746 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14747 enclosing parallel construct for reduction variables on OpenACC loop
14748 directives.
14749
14750 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14751
14752 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14753 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14754 -gdwarf-3.
14755 (function_to_dwarf_procedure): Update comment.
14756
14757 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14758
14759 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14760 function.
14761 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14762 declaration.
14763 * selftest.c (selftest::temp_source_file::~temp_source_file):
14764 Evict m_filename from the diagnostic file cache.
14765
14766 2016-08-18 Richard Biener <rguenther@suse.de>
14767
14768 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14769 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14770 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14771 clone materialization.
14772 * passes.def (all_late_ipa_passes): Start with
14773 pass_materialize_all_clones.
14774 * cgraphunit.c (symbol_table::compile): Remove call to
14775 materialize_all_clones.
14776 * tree-into-ssa.c: Include statistics.h.
14777 (update_ssa): Count number of times we do incremental/rewrite
14778 SSA update.
14779
14780 2016-08-18 Richard Biener <rguenther@suse.de>
14781
14782 PR tree-optimization/77282
14783 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14784 When doing auto-parallelizing also prevent use of PHIs that
14785 carry dependences across loop backedges.
14786
14787 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14788 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14789
14790 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14791
14792 2016-08-18 Richard Biener <rguenther@suse.de>
14793
14794 * ssa-iterators.h (ssa_vuse_operand): New inline.
14795 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14796 (predicate_all_scalar_phis): Use remove_phi_node to remove
14797 phi nodes predicated. Delay removing virtual PHIs.
14798 (predicate_mem_writes): Update virtual operands.
14799 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14800 (tree_if_conversion): Do not rewrite virtual SSA form.
14801 * tree-phinodes.c (release_phi_node): Make static.
14802 * tree-phinodes.h (release_phi_node): Remove.
14803
14804 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14805
14806 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14807 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14808 twice to define those.
14809 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14810 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14811 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14812 * config/i386/i386-builtin.def: New file.
14813
14814 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14815
14816 * input.c (get_source_range_for_char): Rename to...
14817 (selftest::get_source_range_for_char): ...this, and move within
14818 the #if CHECKING_P guard.
14819 (get_num_source_ranges_for_substring): Rename to...
14820 (selftest::get_num_source_ranges_for_substring): ...this, move
14821 within the #if CHECKING_P guard, and make static.
14822 (selftest::assert_num_substring_ranges): Initialize
14823 actual_num_ranges.
14824
14825 2016-08-18 Alan Modra <amodra@gmail.com>
14826
14827 PR rtl-optimization/72771
14828 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14829 when find_reloads_toplev returns address_reloaded==-1.
14830 (alternative_allows_const_pool_ref): Update comment.
14831
14832 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14833
14834 PR tree-optimization/71752
14835 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14836 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14837
14838 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14839
14840 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14841 instead of testing ECF_NORETURN bit in gimple_call_flags.
14842 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14843 * predict.c (tree_bb_level_predictions): Likewise.
14844 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14845
14846 PR middle-end/77259
14847 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14848 turning a call into __builtin_unreachable-like noreturn call, adjust
14849 gimple_call_set_fntype.
14850 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14851 gimple_call_fntype has void return type.
14852
14853 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14854
14855 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
14856 maybe_lookup_decl, to handle nested acc loop directives.
14857
14858 2016-08-17 Richard Biener <rguenther@suse.de>
14859
14860 PR tree-optimization/76490
14861 * tree-vrp.c (update_value_range): Preserve overflow infinities
14862 when intersecting with ranges from get_range_info.
14863 (operand_less_p): Handle overflow infinities correctly.
14864 (value_range_constant_singleton): Use vrp_operand_equal_p
14865 to handle overflow max/min correctly.
14866 (vrp_valueize): Likewise.
14867 (union_ranges): Likewise.
14868 (intersect_ranges): Likewise.
14869 (vrp_visit_phi_node): Improve iteration limitation to only
14870 apply when we'll possibly re-visit the PHI via a changed argument
14871 on the backedge.
14872
14873 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
14874
14875 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
14876 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
14877 rather than those that should not be built.
14878
14879 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
14880
14881 PR target/66488
14882 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
14883
14884 2016-08-17 Richard Biener <rguenther@suse.de>
14885
14886 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
14887 (verify_vssa): New function verifying virtual SSA form.
14888 (verify_ssa): Call it.
14889 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
14890 Do not apply loop-closed SSA handling to virtuals.
14891 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
14892 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
14893 when rewriting their symbol.
14894 (prepare_def_site_for): Likewise.
14895 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
14896 operands of moved stmts.
14897
14898 2016-08-17 Richard Biener <rguenther@suse.de>
14899
14900 PR tree-optimization/23855
14901 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
14902 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
14903 find guards to hoist. Do not update SSA form but rewrite virtuals
14904 into loop closed SSA.
14905 (find_loop_guard): Adjust to skip already hoisted guards. Do
14906 not mark virtuals for renaming or update SSA form.
14907
14908 2016-08-17 Martin Liska <mliska@suse.cz>
14909
14910 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
14911 a LONG_LONG_TYPE_SIZE comparison.
14912 * gcov-io.h: Remove macro definitions.
14913 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
14914 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
14915 comparison.
14916
14917 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14918
14919 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
14920 that builtins not mentioned in bdesc_* arrays come first, then
14921 the ones mentioned in bdesc_* arrays in the order they appear in
14922 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
14923 IX86_BUILTIN__BDESC_*_LAST enumerator.
14924 (bdesc_mpx): Fix up a comment typo.
14925 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
14926 __builtin_ia32_vpcomneu[bwdq] builtins.
14927 (BDESC_VERIFY, BDESC_VERIFYS): Define.
14928 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
14929 enum ix86_builtins ordering.
14930 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
14931 for direct bdesc_* array member access instead of searching all the
14932 arrays until an fcode match is found.
14933
14934 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
14935
14936 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
14937 pattern as define_insn_and_split. Split insn before reload to
14938 ashl<mode>3_1.
14939 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
14940 <shift_insn><mode>3_1.
14941 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
14942 <rotate_insn><mode>3_1.
14943
14944 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14945
14946 PR c/72857
14947 * input.c (get_source_range_for_substring): Rename to...
14948 (get_source_location_for_substring): ...this, adding param
14949 "caret_idx", and converting output param from source_range * to
14950 location_t *.
14951 (get_source_range_for_char): New function.
14952 (get_num_source_ranges_for_substring): Update comment to reflect
14953 above renaming.
14954 (assert_char_at_range): Update to use get_source_range_for_char
14955 rather than get_source_range_for_substring.
14956 (test_lexer_string_locations_concatenation_2): Likewise.
14957 * substring-locations.h (get_source_range_for_substring): Rename
14958 to...
14959 (get_source_location_for_substring): ...this, and adding param
14960 "caret_idx", and converting output param from source_range * to
14961 location_t *.
14962
14963 2016-08-16 David Malcolm <dmalcolm@redhat.com>
14964
14965 * input.c (class selftest::temp_source_file): Move to
14966 selftest.h.
14967 (selftest::temp_source_file::temp_source_file): Move to
14968 selftest.c.
14969 (selftest::temp_source_file::~temp_source_file): Likewise.
14970 * selftest.c (selftest::temp_source_file::temp_source_file): Move
14971 here from input.c.
14972 (selftest::temp_source_file::~temp_source_file): Likewise.
14973 * selftest.h (class selftest::temp_source_file): Move here from
14974 input.c
14975
14976 2016-08-16 Jakub Jelinek <jakub@redhat.com>
14977
14978 PR target/71910
14979 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
14980 inlining, add cgraph edge for the added __builtin_unreachable call.
14981
14982 PR middle-end/67485
14983 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
14984 only cast it to SHWI for the final comparison.
14985
14986 2016-08-16 Martin Liska <mliska@suse.cz>
14987
14988 PR gcov-profile/36412
14989 * doc/gcov.texi: Document --hash-filenames(-x).
14990 * gcov.c (print_usage): Add the option.
14991 (process_args): Process the option, sort options alphabetically.
14992 (md5sum_to_hex): New function.
14993 (make_gcov_file_name): Do the md5sum and append it to a
14994 filename.
14995
14996 2016-08-16 Bin Cheng <bin.cheng@arm.com>
14997
14998 PR tree-optimization/69848
14999 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15000 and swtich operands to avoid additional NOT instruction.
15001 (vcond<v_cmp_mixed><mode>): Ditto.
15002 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15003
15004 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15005
15006 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15007
15008 2016-08-16 Richard Biener <rguenther@suse.de>
15009
15010 PR tree-optimization/76783
15011 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15012 BB visited flags at start.
15013
15014 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15015
15016 PR tree-optimization/72817
15017 PR tree-optimization/73450
15018 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15019 multiple_of_p for adjusted IV.base.
15020
15021 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15022
15023 PR target/72867
15024 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15025 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15026 for !flag_finite_math_only or flag_signed_zeros.
15027 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15028 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15029 depend on flag_finite_math_only.
15030 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15031 New insn pattern.
15032 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15033 (*ieee_smin<mode>3): Ditto.
15034 (*ieee_smax<mode>3): Ditto.
15035 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15036 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15037 flag_signed_zeros.
15038 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15039 depend on flag_finite_math_only.
15040 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15041 (*mmx_<code>v2sf3): Remove.
15042 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15043 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15044 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15045
15046 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15047
15048 PR rtl-optimization/73650
15049 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15050 it is not a simple move.
15051
15052 2016-08-15 Martin Liska <mliska@suse.cz>
15053
15054 PR driver/72765
15055 * gcc.c (do_spec_1): Call save_string with the right size.
15056 (save_string): Do an assert about string we copy.
15057
15058 2016-08-15 Richard Biener <rguenther@suse.de>
15059
15060 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15061 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15062 TV_MACH_DEP.
15063 (pass_data_stv): Likewise.
15064
15065 2016-08-15 Richard Biener <rguenther@suse.de>
15066
15067 PR tree-optimization/73434
15068 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15069 TBAA info on the base when forwarding a non-invariant address.
15070
15071 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15072
15073 * dwarf2out.c (struct checksum_attributes): Add
15074 at_string_length_bit_size and at_string_length_byte_size fields.
15075 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15076 and DW_AT_string_length_byte_size.
15077 (die_checksum_ordered): Handle at_string_length_bit_size and
15078 at_string_length_byte_size.
15079 (gen_array_type_die): For dwarf_version >= 5 emit
15080 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15081 (adjust_string_types): For dwarf_version >= 5 remove
15082 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15083 (resolve_addr): Likewise.
15084
15085 PR debug/71906
15086 * dwarf2out.c (string_types): New variable.
15087 (gen_array_type_die): Change early_dwarf handling of
15088 DW_AT_string_length, create DW_OP_call4 referencing the
15089 length var temporarily. Handle parameters that are pointers
15090 to string length.
15091 (adjust_string_types): New function.
15092 (gen_subprogram_die): Temporarily set string_types to local var,
15093 call adjust_string_types if needed.
15094 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15095 New functions.
15096 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15097
15098 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15099
15100 * doc/install.texi (*-*-solaris2*): Fix version number and document
15101 requirement on GNU make for building libjava with the Solaris linker.
15102
15103 2016-08-15 Martin Liska <mliska@suse.cz>
15104 Jakub Jelinek <jakub@redhat.com>
15105
15106 PR tree-optimization/72824
15107 * tree-loop-distribution.c (const_with_all_bytes_same)
15108 <case VECTOR_CST>: Fix a typo.
15109
15110 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15111
15112 PR target/76342
15113 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15114 Renamed from _mm512_undefined_si512.
15115 (_mm_undefined_si512): New definition.
15116
15117 2016-08-13 Richard Biener <rguenther@suse.de>
15118
15119 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15120 into PHIs and update the lattice for its def.
15121
15122 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15123
15124 PR c/71512
15125 * ubsan.c (instrument_si_overflow): Pass true instead of false
15126 to gsi_replace.
15127 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15128 of bbs. Return TODO_cleanup_cfg if any returned true.
15129
15130 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15131
15132 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15133 ISA 3.0 MTVSRDD instruction.
15134 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15135 vecperm.
15136
15137 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15138
15139 PR tree-optimization/71083
15140 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15141 bitfield access when possible.
15142
15143 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15144
15145 PR middle-end/71654
15146 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15147 sign-changing cast from a shorter unsigned type to a wider
15148 signed type.
15149
15150 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15151
15152 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15153 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15154 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15155
15156 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15157
15158 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15159 Correct costs for vec_construct.
15160
15161 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15162
15163 PR tree-optimization/69848
15164 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15165 type CONST_COND_REDUCTION.
15166 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15167 reudction type CONST_COND_REDUCTION.
15168
15169 2016-08-12 Richard Biener <rguenther@suse.de>
15170
15171 PR tree-optimization/57326
15172 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15173 returning an SSA name.
15174 (phi_translate_1): When fully_constant_expression returns a NAME
15175 make sure we have a leader for it.
15176
15177 2016-08-12 Martin Liska <mliska@suse.cz>
15178 Adam Fineman <afineman@afineman.com>
15179
15180 * gcov.c (process_file): Create .gcov file when .gcda
15181 file is missing.
15182
15183 2016-08-12 Marek Polacek <polacek@redhat.com>
15184
15185 PR c/7652
15186 * alias.c (find_base_value): Adjust fall through comment.
15187 * cfgexpand.c (expand_debug_expr): Likewise.
15188 * combine.c (find_split_point): Likewise.
15189 (expand_compound_operation): Likewise. Add FALLTHRU.
15190 (make_compound_operation): Adjust fall through comment.
15191 (canon_reg_for_combine): Add FALLTHRU.
15192 (force_to_mode): Adjust fall through comment.
15193 (simplify_shift_const_1): Likewise.
15194 (simplify_comparison): Likewise.
15195 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15196 FALLTHRU.
15197 * config/aarch64/predicates.md: Likewise.
15198 * config/i386/i386.c (function_arg_advance_32): Likewise.
15199 (ix86_gimplify_va_arg): Likewise.
15200 (print_reg): Likewise.
15201 (ix86_print_operand): Likewise.
15202 (ix86_build_const_vector): Likewise.
15203 (ix86_expand_branch): Likewise.
15204 (ix86_sched_init_global): Adjust fall through comment.
15205 (ix86_expand_args_builtin): Add FALLTHRU.
15206 (ix86_expand_builtin): Likewise.
15207 (ix86_expand_vector_init_one_var): Likewise.
15208 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15209 (rs6000_adjust_cost): Likewise.
15210 (insn_must_be_first_in_group): Likewise.
15211 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15212 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15213 * df-scan.c (df_uses_record): Likewise.
15214 * dojump.c (do_jump): Add FALLTHRU.
15215 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15216 comment.
15217 (resolve_args_picking_1): Adjust fall through comment.
15218 (loc_list_from_tree_1): Likewise.
15219 * expmed.c (make_tree): Likewise.
15220 * expr.c (expand_expr_real_2): Add FALLTHRU.
15221 (expand_expr_real_1): Likewise. Adjust fall through comment.
15222 * fold-const.c (const_binop): Adjust fall through comment.
15223 (fold_truth_not_expr): Likewise.
15224 (fold_cond_expr_with_comparison): Add FALLTHRU.
15225 (fold_binary_loc): Likewise.
15226 (contains_label_1): Adjust fall through comment.
15227 (multiple_of_p): Likewise.
15228 * gcov-tool.c (process_args): Add FALLTHRU.
15229 * genattrtab.c (check_attr_test): Likewise.
15230 (write_test_expr): Likewise.
15231 * genconfig.c (walk_insn_part): Likewise.
15232 * genpreds.c (validate_exp): Adjust fall through comment.
15233 (needs_variable): Likewise.
15234 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15235 (subst_dup): Likewise.
15236 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15237 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15238 (gimplify_scan_omp_clauses): Add FALLTHRU.
15239 (goa_stabilize_expr): Likewise.
15240 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15241 through comment.
15242 * hsa-gen.c (get_address_from_value): Likewise.
15243 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15244 * ira.c (ira_setup_alts): Add FALLTHRU.
15245 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15246 comment.
15247 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15248 * opts.c (common_handle_option): Likewise.
15249 * read-rtl.c (read_rtx_code): Likewise.
15250 * real.c (round_for_format): Likewise.
15251 * recog.c (asm_operand_ok): Likewise.
15252 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15253 * reload1.c (set_label_offsets): Likewise.
15254 (eliminate_regs_1): Likewise.
15255 (reload_reg_reaches_end_p): Likewise.
15256 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15257 (rtx_cost): Likewise.
15258 * sched-rgn.c (is_exception_free): Likewise.
15259 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15260 * stor-layout.c (int_mode_for_mode): Likewise.
15261 * toplev.c (print_to_asm_out_file): Likewise.
15262 (print_to_stderr): Likewise.
15263 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15264 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15265 (chrec_fold_multiply): Likewise.
15266 (evolution_function_is_invariant_rec_p): Likewise.
15267 (for_each_scev_op): Likewise.
15268 * tree-data-ref.c (siv_subscript_p): Likewise.
15269 (get_references_in_stmt): Likewise.
15270 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15271 (substitute_in_expr): Likewise.
15272 (type_cache_hasher::equal): Likewise.
15273 (walk_type_fields): Likewise.
15274 * var-tracking.c (adjust_mems): Add FALLTHRU.
15275 (set_dv_changed): Adjust fall through comment.
15276 * varasm.c (default_function_section): Add FALLTHRU.
15277
15278 2016-08-12 Marek Polacek <polacek@redhat.com>
15279
15280 PR c/7652
15281 * tree-complex.c (expand_complex_division): Add missing break.
15282
15283 2016-08-12 Richard Biener <rguenther@suse.de>
15284
15285 * passes.c (execute_todo): Do not push/pop TV_TODO.
15286 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15287 (execute_one_pass): Likewise.
15288 * common.opt (ftime-report-details): New switch.
15289 * doc/invoke.texi (ftime-report-details): Document.
15290 * timevar.h (timer::print_row): Adjust signature.
15291 (timer::all_zero): New static helper.
15292 (timer::child_map_t): New typedef.
15293 (timer::time_var_def): Add children field.
15294 * timevar.c (timer::named_items::print): Adjust.
15295 (timer::~timer): Free timevar recorded children.
15296 (timer::pop_internal): When -ftime-report-details record
15297 time spent in sub-timevars.
15298 (timer::print_row): Adjust.
15299 (timer::print): Print sub-timevar stats, use all_zero.
15300 * timevar.def (TV_TODO): Remove.
15301
15302 2016-08-12 Richard Biener <rguenther@suse.de>
15303
15304 PR tree-optimization/72851
15305 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15306 worklists to use bitmaps indexed in execution order.
15307 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15308 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15309 (cfg_blocks): Make a bitmap.
15310 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15311 New globals.
15312 (cfg_blocks_empty_p): Adjust.
15313 (cfg_blocks_add): Likewise.
15314 (cfg_blocks_get): Likewise.
15315 (add_ssa_edge): Likewise.
15316 (add_control_edge): Likewise.
15317 (simulate_stmt): Likewise.
15318 (process_ssa_edge_worklist): Likewise.
15319 (simulate_block): Likewise.
15320 (ssa_prop_init): Compute PRE order and stmt UIDs.
15321 (ssa_prop_fini): Adjust.
15322 (ssa_propagate): Adjust.
15323
15324 2016-08-12 Richard Biener <rguenther@suse.de>
15325
15326 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15327 the currently executable edges have fixed ranges. Always
15328 go through update_value_range.
15329
15330 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15331
15332 PR debug/63240
15333 * langhooks-def.h
15334 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15335 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15336 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15337 (LANG_HOOKS_DECLS): Add it.
15338 * langhooks.h (struct lang_hooks_for_decls): Add
15339 function_decl_defaulted. Const_tree-ify
15340 function_decl_explicit_p and function_decl_deleted_p.
15341 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15342 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15343 also at strict DWARF v5.
15344
15345 PR debug/55641
15346 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15347 TYPE_QUAL_CONST in reference-typed decls.
15348
15349 PR debug/49366
15350 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15351 in DW_OP_pieces, just enough to handle pointers to member
15352 functions.
15353 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15354 expression on DWARFv5 if a constant value doesn't work.
15355
15356 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15357
15358 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15359 * selftest.c (selftest::test_assertions): New function.
15360 (selftest::selftest_c_tests): New function.
15361 * selftest.h (selftest::selftest_c_tests): New declaration.
15362
15363 2016-08-11 Richard Biener <rguenther@suse.de>
15364 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15365
15366 PR rtl-optimization/72855
15367 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15368
15369 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15370
15371 PR target/72863
15372 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15373 (vsx_store_<mode>): Likewise.
15374
15375 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15376
15377 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15378 TImode CONST_WIDE_INT store.
15379 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15380
15381 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15382
15383 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15384 mode if unaligned SSE load and store are optimal.
15385
15386 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15387
15388 PR tree-optimization/71083
15389 * tree-predcom.c (ref_at_iteration): Correctly align the
15390 reference type.
15391
15392 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15393
15394 * config/s390/s390-builtin-types.def: Add INT128 types.
15395 * config/s390/s390-builtins.def: Add INT128 variants for the add
15396 sub low-level builtins dealing with TImode.
15397 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15398 via subreg when expanding a builtin.
15399 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15400 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15401 Fix comment.
15402 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15403 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15404 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15405 "vacc<bhfgq>_<mode>".
15406 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15407 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15408 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15409 "vscbi<bhfgq>_<mode>".
15410 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15411 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15412
15413 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15414
15415 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15416
15417 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15418
15419 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15420 unused declaration.
15421 (vcond<v_cmp_mixed><mode>): Ditto.
15422 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15423
15424 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15425
15426 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15427 variable explicitly, also assert on it before use.
15428
15429 2016-08-11 Richard Biener <rguenther@suse.de>
15430
15431 PR tree-optimization/72772
15432 * cfgloopmanip.c (create_preheader): Use split_edge if there
15433 is a single loop entry, avoiding degenerate PHIs.
15434
15435 2016-08-11 Richard Biener <rguenther@suse.de>
15436
15437 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15438 unconditional TODO_cleanup_cfg.
15439 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15440 cleanup only if we threaded a jump.
15441
15442 2016-08-11 Alan Modra <amodra@gmail.com>
15443
15444 PR target/71680
15445 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15446 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15447 slow. Emit two reloads for slow mem case, first loading in
15448 fast innermode, then converting to required mode.
15449
15450 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15451
15452 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15453 (vec_extract_sig): New macro.
15454 (vec_insert_exp): New macro.
15455 (vec_test_data_class): New macro.
15456 (scalar_extract_exp): New macro.
15457 (scalar_extract_sig): New macro.
15458 (scalar_insert_exp): New macro.
15459 (scalar_test_data_class): New macro.
15460 (scalar_test_neg): New macro.
15461 (scalar_cmp_exp_gt): New macro.
15462 (scalar_cmp_exp_lt): New macro.
15463 (scalar_cmp_exp_eq): New macro.
15464 (scalar_cmp_exp_unordered): New macro.
15465 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15466 to enforce constraint that operand is a 7-bit unsigned literal.
15467 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15468 for power9 built-ins.
15469 (BU_P9V_VSX_2): Likewise.
15470 (BU_P9V_64BIT_VSX_2): Likewise.
15471 (VSEEDP): Add scalar extract exponent support.
15472 (VSEESP): Add scalar extract signature support.
15473 (VSTDCNDP): Add scalar test negative support.
15474 (VSTDCNSP): Likewise.
15475 (VSIEDP): Add scalar insert exponent support.
15476 (VSCEDPGT): Add scalar compare exponent greater than support.
15477 (VSCEDPLT): Add scalar compare exponent less than support.
15478 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15479 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15480 (VSTDCDP): Add scalar test data class support.
15481 (VSTDCSP): Likewise.
15482 (VSEEDP): Add overload support for scalar extract exponent
15483 operation.
15484 (VSESDP): Add overload support for scalar extract signature
15485 operation.
15486 (VSTDCN): Add overload support for scalar test negative
15487 operation.
15488 (VSTDCNDP): Add overload support for scalar test negative
15489 operation.
15490 (VSTDCNSP): Add overload support for scalar test negative
15491 operation.
15492 (VSIEDP): Add overload support for scalar insert exponent
15493 operation.
15494 (VSTDC): Add overload support for scalar test data class
15495 operation.
15496 (VSTDCDP): Add overload support for scalar test data class
15497 operation.
15498 (VSTDCSP): Add overload support for scalar test data class
15499 opreation.
15500 (VSCEDPGT): Add overload support for scalar compare exponent
15501 greater than operation.
15502 (VSCEDPLT): Add overload support for scalar compare exponent
15503 less than operation.
15504 (VSCEDPEQ): Add overload support for scalar compare exponent
15505 test-for-equality operation.
15506 (VSCEDPUO): Add overload support for scalar compare exponent
15507 test-for-unordered operation.
15508 (VEEDP): Add vector extract exponent support.
15509 (VEESP): Likewise.
15510 (VESDP): Add vector extract significand support.
15511 (VESSP): Likewise.
15512 (VIEDP): Add vector insert exponent support.
15513 (VIESP): Likewise.
15514 (VTDCDP): Add vector test data class support.
15515 (VTDCSP): Likewise.
15516 (VES): Add overload support for vector extract significand operation.
15517 (VESDP): Likewise.
15518 (VESSP): Likewise
15519 (VEE): Add overload support for vector extract exponent operation.
15520 (VEEDP): Likewise.
15521 (VEESP): Likewise.
15522 (VTDC): Add overload support for vector test data class operation.
15523 (VTDCDP): Likewise.
15524 (VTDCSP): Likewise.
15525 (VIE): Add overload support for vector insert exponent operation.
15526 (VIEDP): Likewise.
15527 (VIESP): Likewise.
15528 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15529 overloaded binary floating point functions.
15530 (altivec_resolve_overloaded_builtin): Improve error messages to
15531 distinguish between functions not supported in the current
15532 compiler configuration and functions that were invoked with an
15533 invalid parameter combination, and include the built-in function
15534 name in both error messages.
15535 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15536 New prototype.
15537 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15538 function.
15539 (rs6000_expand_binop_builtin): Add check to enforce that argument
15540 2 of the test data class operations is a 7-bit unsigned literal.
15541 (rs6000_invalid_builtin): Add code to issue an error message if a
15542 built-in function that requires the power9_vector and -m32
15543 command-line options is compiled without these options.
15544 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15545 (UNSPEC_VSX_SXSIGDP): New value.
15546 (UNSPEC_VSX_SXSIGPDP): New value.
15547 (UNSPEC_VSX_SIEXPDP): New value.
15548 (UNSPEC_VSX_SCMPEXPDP): New value.
15549 (UNSPEC_VSX_STSTDC): New value.
15550 (UNSPEC_VSX_VXEXP): New value.
15551 (UNSPEC_VSX_VXSIG): New value.
15552 (UNSPEC_VSX_VIEXP): New value.
15553 (UNSPEC_VSX_VTSTDC): New value.
15554 (xsxexpdp): New insn for scalar extract exponent.
15555 (xsxsigdp): New insn for scalar extract significand.
15556 (xsiexpdp): New insn for scalar insert exponent.
15557 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15558 (*xscmpexpdp): New insn for scalar compare exponents.
15559 (xststdc<Fvsx): New expansion for both single- and
15560 double-precision scalar test data class operations.
15561 (xststdcneg<Fvsx>): New expansion for both single- and
15562 double-precision scalar test for negative value operations.
15563 (*xststdc<Fvsx>): New insn for scalar test data class
15564 operation.
15565 (xvxexp<VSs>): New insn for single- and double-precision
15566 vector extract exponent operation.
15567 (xvxsig<VSs>): New insn for single- and double-precision
15568 vector extract significand operation.
15569 (xviexp<VSs>): New insn for single- and double-precision
15570 vector insert exponent operation.
15571 (xvtstdc<VSs>): New insn for single- and double-precision
15572 vector test data class operation.
15573 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15574 built-in functions to represent the Power9 binary floating-point
15575 support instructions.
15576
15577 2016-08-10 bin cheng <bin.cheng@arm.com>
15578
15579 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15580
15581 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15582 Renlin Li <renlin.li@arm.com>
15583 Bin Cheng <bin.cheng@arm.com>
15584
15585 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15586 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15587 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15588 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15589 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15590 (vcond<v_cmp_result><mode>): Ditto.
15591 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15592 (vcondu<mode><mode>): Ditto.
15593 (vcond<v_cmp_mixed><mode>): New pattern.
15594 (vcondu<mode><v_cmp_mixed>): New pattern.
15595 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15596 of aarch64_vcond_internal.
15597
15598 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15599 Renlin Li <renlin.li@arm.com>
15600 Bin Cheng <bin.cheng@arm.com>
15601
15602 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15603 (vec_cmp<mode><v_cmp_result>): New pattern.
15604 (vec_cmpu<mode><mode>): New pattern.
15605 (vcond_mask_<mode><v_cmp_result>): New pattern.
15606
15607 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15608
15609 PR tree-optimization/71734
15610 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15611 REF_LOOP, invoke ref_indep_loop_p_1.
15612 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15613 to ref_indep_loop_p.
15614 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15615 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15616 is inside LOOP, do not cache dpendence value for loops with
15617 non-zero SAFELEN.
15618 (ref_indep_loop_p_2): Delete function.
15619 (can_sm_ref_p): Pass LOOP as additional argument to
15620 ref_indep_loop_p.
15621
15622 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15623
15624 PR target/72853
15625 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15626 being an offsettable address.
15627
15628 2016-08-10 Martin Liska <mliska@suse.cz>
15629
15630 PR gcov-profile/58306
15631 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15632 atomic variants of profile update functions.
15633
15634 2016-08-10 Martin Liska <mliska@suse.cz>
15635
15636 Cherry picked (and modified) from google-4_7 branch
15637 2012-12-26 Rong Xu <xur@google.com>
15638 * common.opt (fprofile-update): Add new flag.
15639 * coretypes.h: Define enum profile_update.
15640 * doc/invoke.texi: Document -fprofile-update.
15641 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15642 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15643 * tree-profile.c (gimple_init_edge_profiler): Generate
15644 also atomic profiler update.
15645 (gimple_gen_edge_profiler): Likewise.
15646
15647 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15648
15649 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15650 stack_usage_file to NULL after fclose calls.
15651
15652 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15653
15654 PR target/71873
15655 * reload.c (push_reload): Compute subreg_in_class for
15656 subregs of constants and plus expressions. Remove special
15657 handling of SYMBOL_REFs.
15658
15659 2016-08-10 Alan Modra <amodra@gmail.com>
15660
15661 PR target/71680
15662 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15663 SImode for TARGET_E500_DOUBLE when given SImode.
15664
15665 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15666
15667 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15668 unused variable __O.
15669
15670 2016-08-09 Martin Liska <mliska@suse.cz>
15671
15672 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15673 _gcov_reset to __gcov_reset.
15674 * doc/gcov-tool.texi: Fix typo.
15675
15676 2016-08-09 Martin Liska <mliska@suse.cz>
15677
15678 * value-prof.c (gimple_divmod_values_to_profile): Do not
15679 instrument MOD histogram if a value is not a SSA name.
15680
15681 2016-08-09 Martin Liska <mliska@suse.cz>
15682
15683 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15684 values.
15685
15686 2016-08-09 Renlin Li <renlin.li@arm.com>
15687
15688 PR middle-end/64971
15689 * calls.c (prepare_call_address): Convert funexp to Pmode when
15690 necessary.
15691 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15692 (sibcall_value): Likewise.
15693
15694 2016-08-09 Marek Polacek <polacek@redhat.com>
15695
15696 PR c/7652
15697 * cselib.c (cselib_expand_value_rtx_1): Add return.
15698 * gengtype.c (dbgprint_count_type_at): Likewise.
15699 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15700 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15701
15702 2016-08-09 Martin Jambor <mjambor@suse.cz>
15703
15704 PR ipa/71981
15705 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15706 if instance is a MEM_REF.
15707
15708 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15709
15710 PR target/72843
15711 * config/i386/i386.md (*movtf_internal): Use
15712 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15713 in the insn constraint.
15714 (*movxf_internal): Ditto.
15715 (*movdf_internal): Ditto.
15716 (*movsf_internal): Ditto.
15717
15718 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15719
15720 PR tree-optimization/72772
15721 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15722 for expanded base.
15723
15724 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15725
15726 PR tree-optimization/72772
15727 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15728 parameter STOP.
15729 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15730 parameter STOP and update calls. Move expand_simple_operations
15731 function call from here...
15732 (simplify_using_initial_conditions): ...to here. Delete parameter
15733 STOP.
15734 (tree_simplify_using_condition): Delete parameter STOP.
15735 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15736 simplify_using_initial_conditions.
15737
15738 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15739
15740 PR c/65345
15741 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15742 Use create_tmp_var_raw instead of create_tmp_var.
15743
15744 2016-08-09 Richard Biener <rguenther@suse.de>
15745
15746 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15747 Treat same SSA names related.
15748
15749 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15750
15751 PR tree-optimization/72824
15752 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15753 real_zerop is not negative.
15754
15755 2016-08-09 Richard Biener <rguenther@suse.de>
15756
15757 PR tree-optimization/71802
15758 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15759 all merge opportunities with the predecessor.
15760
15761 2016-08-09 Richard Biener <rguenther@suse.de>
15762
15763 PR ipa/68273
15764 * ipa-prop.c (ipa_modify_formal_parameters): Build
15765 parameter types with natural alignment also for the
15766 over-aligned case.
15767
15768 2016-08-08 Andi Kleen <ak@linux.intel.com>
15769
15770 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15771
15772 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15773
15774 PR c/64955
15775 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15776 do-nothing langhook.
15777 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15778 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15779 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15780 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15781
15782 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15783
15784 PR bootstrap/72844
15785 * input.c: Ensure that HAVE_ICONV is defined.
15786
15787 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15788
15789 PR middle-end/72781
15790 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15791 private vars for lastprivate and for linear iterator.
15792
15793 PR middle-end/68762
15794 * omp-simd-clone.c: Include varasm.h.
15795 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15796 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15797 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15798 update function name.
15799
15800 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15801
15802 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15803 (avr_diagnose_devicespecs_error): Remove.
15804 (avr_devicespecs_file): Remove composing absolute path for specfile
15805 and its verbose info. Remove conditions to check specs-file,
15806
15807 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15808
15809 PR rtl-optimization/72821
15810 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15811 just return false for them.
15812
15813 2016-08-08 Alan Modra <amodra@gmail.com>
15814
15815 PR target/72771
15816 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15817 toc refs created during reload. Update function comment.
15818
15819 2016-08-08 Alan Modra <amodra@gmail.com>
15820
15821 PR target/72802
15822 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15823 alternatives. Put loads first, then stores, and reg/reg moves
15824 within same class later. Delete attr length.
15825
15826 2016-08-08 Alan Modra <amodra@gmail.com>
15827
15828 PR target/72802
15829 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15830 (mem_operand_ds_form): New predicate.
15831 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15832 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15833 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15834 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15835 (extendsfdf2_fpr): Replace o constraint with wY.
15836
15837 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15838
15839 * tree-ssa-threadbackward.c: Include tree-inline.h
15840 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15841 size of copied block; for cold paths reduce duplication.
15842 (find_jump_threads_backwards): Remove redundant tests.
15843 (pass_thread_jumps::gate): Enable for -Os.
15844
15845 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15846
15847 PR c/72816
15848 * stor-layout.c (layout_decl): Fix up formatting.
15849 (relayout_decl): Allow DECL to be FIELD_DECL.
15850
15851 2016-08-07 Alan Modra <amodra@gmail.com>
15852
15853 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15854
15855 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15856
15857 * data-streamer-in.c (streamer_read_wide_int): New.
15858 (streamer_read_widest_int): Renamed function.
15859 * data-streamer-out.c (streamer_write_wide_int): New
15860 (streamer_write_widest_int): Renamed function.
15861 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
15862 data-stream-in.c.
15863 (input_cfg): Call renamed function.
15864 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
15865 data-stream-out.c.
15866 (output_cfg): Call renamed function.
15867 * data-streamer.h: Add declarations.
15868
15869 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15870
15871 * tree-ssa-ccp.c (extend_mask): New param sgn.
15872 Remove ORing with wi::mask.
15873 (get_default_value): Adjust call to extend_mask to pass sign.
15874 (evaluate_stmt): Likewise.
15875
15876 2016-08-06 Jakub Jelinek <jakub@redhat.com>
15877
15878 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
15879 INT64_MAX.
15880
15881 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15882
15883 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
15884 transform if operand's type is pointer to function or method.
15885
15886 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15887
15888 PR tree-optimization/18046
15889 * tree-ssa-threadedge.c: Include cfganal.h.
15890 (simplify_control_statement_condition): If simplifying a
15891 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
15892 with the dominating ASSERT_EXPR before handing it off to VRP.
15893 Mention that a CASE_LABEL_EXPR may be returned.
15894 (thread_around_empty_blocks): Adjust to handle
15895 simplify_control_statement_condition() returning a
15896 CASE_LABEL_EXPR.
15897 (thread_through_normal_block): Likewise.
15898 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
15899 a switch statement by trying to determine which case label
15900 will be taken.
15901
15902 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
15903
15904 PR rtl-optimization/69847
15905 * lra-constraints.c (process_invariant_for_inheritance): Save
15906 pattern instead of src.
15907 (remove_inheritance_pseudos): Use the pattern. Add assert.
15908
15909 2016-08-05 David Malcolm <dmalcolm@redhat.com>
15910
15911 * input.c (string_concat::string_concat): New constructor.
15912 (string_concat_db::string_concat_db): New constructor.
15913 (string_concat_db::record_string_concatenation): New method.
15914 (string_concat_db::get_string_concatenation): New method.
15915 (string_concat_db::get_key_loc): New method.
15916 (class auto_cpp_string_vec): New class.
15917 (get_substring_ranges_for_loc): New function.
15918 (get_source_range_for_substring): New function.
15919 (get_num_source_ranges_for_substring): New function.
15920 (class selftest::lexer_test_options): New class.
15921 (struct selftest::lexer_test): New struct.
15922 (class selftest::ebcdic_execution_charset): New class.
15923 (selftest::ebcdic_execution_charset::s_singleton): New variable.
15924 (selftest::lexer_test::lexer_test): New constructor.
15925 (selftest::lexer_test::~lexer_test): New destructor.
15926 (selftest::lexer_test::get_token): New method.
15927 (selftest::assert_char_at_range): New function.
15928 (ASSERT_CHAR_AT_RANGE): New macro.
15929 (selftest::assert_num_substring_ranges): New function.
15930 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
15931 (selftest::assert_has_no_substring_ranges): New function.
15932 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
15933 (selftest::test_lexer_string_locations_simple): New function.
15934 (selftest::test_lexer_string_locations_ebcdic): New function.
15935 (selftest::test_lexer_string_locations_hex): New function.
15936 (selftest::test_lexer_string_locations_oct): New function.
15937 (selftest::test_lexer_string_locations_letter_escape_1): New function.
15938 (selftest::test_lexer_string_locations_letter_escape_2): New function.
15939 (selftest::test_lexer_string_locations_ucn4): New function.
15940 (selftest::test_lexer_string_locations_ucn8): New function.
15941 (selftest::uint32_from_big_endian): New function.
15942 (selftest::test_lexer_string_locations_wide_string): New function.
15943 (selftest::uint16_from_big_endian): New function.
15944 (selftest::test_lexer_string_locations_string16): New function.
15945 (selftest::test_lexer_string_locations_string32): New function.
15946 (selftest::test_lexer_string_locations_u8): New function.
15947 (selftest::test_lexer_string_locations_utf8_source): New function.
15948 (selftest::test_lexer_string_locations_concatenation_1): New
15949 function.
15950 (selftest::test_lexer_string_locations_concatenation_2): New
15951 function.
15952 (selftest::test_lexer_string_locations_concatenation_3): New
15953 function.
15954 (selftest::test_lexer_string_locations_macro): New function.
15955 (selftest::test_lexer_string_locations_stringified_macro_argument):
15956 New function.
15957 (selftest::test_lexer_string_locations_non_string): New function.
15958 (selftest::test_lexer_string_locations_long_line): New function.
15959 (selftest::test_lexer_char_constants): New function.
15960 (selftest::input_c_tests): Call the new test functions once per
15961 case within the line_table test matrix.
15962 * input.h (struct string_concat): New struct.
15963 (struct location_hash): New struct.
15964 (class string_concat_db): New class.
15965 * substring-locations.h: New header.
15966
15967 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
15968
15969 PR tree-optimization/72810
15970 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
15971 the type of the case labels when truncating.
15972
15973 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
15974
15975 PR Target/72819
15976 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
15977 (aarch64_fp16_ptr_type_node): Likewise.
15978 * config/aarch64/aarch64-simd-builtins.c
15979 (aarch64_fp16_ptr_type_node): Define.
15980 (aarch64_init_fp16_types): New, refactored out of...
15981 (aarch64_init_builtins): ...here, update to call
15982 aarch64_init_fp16_types.
15983 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
15984 HFmode.
15985 (aapcs_vfp_sub_candidate): Likewise.
15986
15987 2016-08-05 Martin Liska <mliska@suse.cz>
15988 Joshua Cranmer <Pidgeot18@gmail.com>
15989
15990 * gcov.c (line_t::has_block): New function.
15991 (enum loop_type): New enum.
15992 (handle_cycle): New function.
15993 (unblock): Likewise.
15994 (circuit): Likewise.
15995 (get_cycles_count): Likewise.
15996 (accumulate_line_counts): Use new loop detection algorithm.
15997
15998 2016-08-05 Martin Liska <mliska@suse.cz>
15999
16000 * gcov.c (output_intermediate_file): Rename
16001 function_info::line_next to next_file_fn.
16002 (process_file): Likewise.
16003 (read_graph_file): Likewise.
16004 (accumulate_line_counts): Likewise.
16005 (output_lines): Likewise.
16006
16007 2016-08-05 Richard Biener <rguenther@suse.de>
16008
16009 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16010 restriction on threading to a loop header.
16011
16012 2016-08-05 Richard Biener <rguenther@suse.de>
16013
16014 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16015 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16016 adjust loop info accordingly.
16017
16018 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16019
16020 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16021 before folding call to __builtin_constant_p with parameters to false.
16022
16023 2016-08-05 Alan Modra <amodra@gmail.com>
16024
16025 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16026 code accidentally committed 2016-05-02 providing class when given
16027 NO_REGS.
16028
16029 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16030
16031 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16032 the case label ranges that partially overlap with OP's value
16033 range.
16034
16035 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16036
16037 PR target/72805
16038 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16039 Cast builtin function result to __mmask16 instead of __mmask8.
16040 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16041 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16042 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16043
16044 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16045
16046 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16047 (ASSERT_TRUE_AT): New macro.
16048 (ASSERT_FALSE): Reimplement in terms of...
16049 (ASSERT_FALSE_AT): New macro.
16050 (ASSERT_STREQ_AT): Fix typo in comment.
16051
16052 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16053
16054 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16055 labels are exhaustive, designate the label with the widest
16056 range to be the default label.
16057
16058 2016-08-04 Andrew Pinski <apinski@cavium.com>
16059
16060 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16061 (thunderx_tunings): Use thunderx_vector_cost instead of
16062 generic_vector_cost.
16063
16064 2016-08-04 Martin Liska <mliska@suse.cz>
16065
16066 * gcov.c (main): Fix GNU coding style.
16067 (output_intermediate_file): Likewise.
16068 (process_file): Likewise.
16069 (generate_results): Likewise.
16070 (release_structures): Likewise.
16071 (create_file_names): Likewise.
16072 (find_source): Likewise.
16073 (read_graph_file): Likewise.
16074 (find_exception_blocks): Likewise.
16075 (canonicalize_name): Likewise.
16076 (make_gcov_file_name): Likewise.
16077 (mangle_name): Likewise.
16078 (accumulate_line_counts): Likewise.
16079 (output_branch_count): Likewise.
16080 (read_line): Likewise.
16081
16082 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16083
16084 PR rtl-optimization/71779
16085 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16086 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16087 or if it was truncated.
16088
16089 PR rtl-optimization/70903
16090 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16091
16092 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16093
16094 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16095 accessing SSA_NAME_PTR_INFO.
16096
16097 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16098
16099 PR 70677
16100 * common/config/avr/avr-common.c (avr_option_optimization_table)
16101 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16102
16103 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16104
16105 PR 55181
16106 * config/avr/avr.md: New pattern to work around do_store_flag
16107 generating shift instructions for bit extractions.
16108
16109 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16110
16111 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16112 BITMAP_ALLOC.
16113 (add_equivalence): Likewise.
16114 (get_value_range): Allocate value range with vrp_value_range_pool.
16115 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16116 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16117
16118 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16119
16120 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16121 the default for the rs6000 port.
16122
16123 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16124
16125 PR middle-end/71876
16126 * calls.c (special_function_p): Remove special handling of
16127 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16128 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16129 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16130
16131 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16132
16133 PR middle-end/72778
16134 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16135 Don't stop on regular insns.
16136
16137 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16138
16139 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16140 size to DImode boundary.
16141 (nvptx_propagate): Likewise.
16142
16143 2016-08-03 Alan Modra <amodra@gmail.com>
16144
16145 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16146 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16147 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16148 from -mefficient-unaligned-vector. Note that this affects fp too.
16149
16150 2016-08-03 Alan Modra <amodra@gmail.com>
16151
16152 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16153 cost more.
16154
16155 2016-08-03 Alan Modra <amodra@gmail.com>
16156
16157 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16158 to a reg. Localize vars.
16159
16160 2016-08-03 Alan Modra <amodra@gmail.com>
16161
16162 * config/rs6000/rs6000.opt: Remove negatives from help strings
16163 and comments.
16164
16165 2016-08-03 Alan Modra <amodra@gmail.com>
16166
16167 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16168 Delete duplicated code.
16169
16170 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16171
16172 PR middle-end/72778
16173 * lra-spills.c (regno_in_use_p): New.
16174 (lra_final_code_change): Use it.
16175
16176 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16177
16178 PR rtl-optimization/69847
16179 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16180 restore_regno.
16181 (lra_rtx_hash): New.
16182 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16183 of restore_regno.
16184 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16185 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16186 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16187 next insn is USE with the same reg as the current insn source.
16188 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16189 of restore_regno.
16190 (lra_constraints_init): Call initiate_invariants.
16191 (lra_constraints_finish): Call finish_invariants.
16192 (struct invariant, invariant_t, invariant_ptr_t): New.
16193 (const_invariant_ptr_t, invariants, invariants_pool): New.
16194 (invariant_table, invariant_hash, invariant_eq_p): New.
16195 (insert_invariant, initiate_invariants, finish_invariants): New.
16196 (clear_invariants, invalid_invariant_regs): New.
16197 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16198 instead of restore_regno.
16199 (invariant_p, process_invariant_for_inheritance): New.
16200 (inherit_in_ebb): Implement invariant inheritance.
16201 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16202 (remove_inheritance_pseudos): Implement undoing invariant
16203 inheritance.
16204 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16205 instead of restore_regno.
16206 * lra-assigns.c (regno_live_length): New.
16207 (reload_pseudo_compare_func): Use regno_live_length.
16208 (assign_by_spills): Use restore_rtx instead of restore_regno.
16209 (lra_assign): Ditto. Initiate regno_live_length.
16210
16211 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16212
16213 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16214 __builtin_aarch64_fmindf.
16215
16216 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16217
16218 PR tree-optimization/34114
16219 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16220 information for more control IVs.
16221
16222 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16223
16224 PR tree-optimization/34114
16225 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16226 PLUS_EXPR case. Handle SSA_NAME case.
16227
16228 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16229
16230 * config/aarch64/aarch64-simd-builtins.def
16231 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16232 (__builtin_aarch64_fmaxdf): Likewise.
16233 (__builtin_aarch64_smin_nandf): Likewise.
16234 (__builtin_aarch64_smax_nandf): Likewise.
16235 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16236 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16237 (<fmaxmin><mode>3): ...this.
16238 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16239 (vminnm_f64): Likewise.
16240 (vmin_f64): Likewise.
16241 (vmax_f64): Likewise.
16242 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16243 (FMAXMIN_UNS): ...this.
16244 (fmaxmin): Merged with
16245 (fmaxmin_op): ...this...
16246 (maxmin_uns_op): ...in to this.
16247
16248 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16249
16250 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16251 Add support for vec_extract on vector float, vector int, vector
16252 short, and vector char vector types.
16253 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16254 vector float, vector int, vector short, and vector char
16255 optimizations on 64-bit ISA 2.07 systems for both constant and
16256 variable element numbers.
16257 (rs6000_split_vec_extract_var): Likewise.
16258 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16259 Altivec registers on ISA 2.07 and above.
16260 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16261 which never was matched due to the split occuring before register
16262 allocation (and the code would not have worked on little endian
16263 systems if it did match). Allow extracts to go to the Altivec
16264 registers if ISA 2.07 (power8). Change from using "" around the
16265 C++ code to using {}'s.
16266 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16267 vec_extracts when the vector is in memory.
16268 (vsx_extract_v4sf_var): New insn to optimize vector float
16269 vec_extracts when the element number is variable on 64-bit ISA
16270 2.07 systems.
16271 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16272 for 64-bit ISA 2.07 as well as ISA 3.0.
16273 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16274 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16275 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16276 optimize vector int, vector short, and vector char vec_extracts
16277 when the vector is in memory.
16278 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16279 optimize vector int, vector short, and vector char vec_extracts
16280 when the element number is variable.
16281
16282 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16283
16284 PR target/71948
16285 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16286 does not overlap with other symbol flags.
16287
16288 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16289
16290 * config/aarch64/aarch64.h (aarch64_frame):
16291 Remove padding0 and hardfp_offset. Add locals_offset,
16292 initial_adjust, callee_adjust, callee_offset and final_adjust.
16293 * config/aarch64/aarch64.c (aarch64_layout_frame):
16294 Remove unused padding0 and hardfp_offset initializations.
16295 Choose frame layout and set frame variables accordingly.
16296 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16297 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16298 (aarch64_pop_regs): Likewise.
16299 (aarch64_expand_prologue): Remove all decision code, just emit
16300 prolog according to frame variables.
16301 (aarch64_expand_epilogue): Remove all decision code, just emit
16302 epilog according to frame variables.
16303 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16304
16305 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16306
16307 PR target/72748
16308 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16309 fix_debug_reg_uses after changing source register mode to
16310 V1TImode if source register is undefined.
16311
16312 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16313
16314 PR tree-optimization/71818
16315 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16316 with non invariant evolutions
16317
16318 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16319
16320 PR target/72767
16321 * config/avr/avr.md (length) [branch]: Correct insn length
16322 attribute for forward branches.
16323
16324 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16325
16326 * doc/extend.texi (AVR Built-in Functions): Document
16327 __builtin_avr_nops.
16328 * config/avr/builtins.def (NOPS): New.
16329 * config/avr/avr.c (avr_expand_nops): New static function.
16330 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16331
16332 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16333
16334 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16335 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16336 addresses.
16337
16338 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16339
16340 * config/aarch64/aarch64.c (vulcan_tunings): Update
16341 vulcan L1 cache_line_size.
16342
16343 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16344
16345 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16346 function that takes a vector memory address, a hard register, an
16347 element number and a temporary base register, and recreates an
16348 address that points to the appropriate element within the vector.
16349 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16350 (rs6000_split_vec_extract_var): Add support for the target of a
16351 vec_extract with variable element number being a scalar memory
16352 location.
16353 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16354 swappable.
16355 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16356 vsx_extract_<mode>_load insn with a new insn that optimizes
16357 storing either element to a memory location, using scratch
16358 registers to pick apart the vector and reconstruct the address.
16359 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16360 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16361 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16362 store instruction.
16363 (vsx_extract_<mode>_var): Add support for extracting a variable
16364 element number from memory.
16365
16366 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16367
16368 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16369 when testing for compares against constants of the form 0xabab.
16370
16371 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16372
16373 PR tree-optimization/57558
16374 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16375 function.
16376 (vect_loop_versioning): Support versioning with niter assumptions.
16377 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16378 (vect_get_loop_niters): New parameter. Reimplement to support
16379 assumptions in loop niter info.
16380 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16381 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16382 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16383 Support loop versioning for niters.
16384 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16385 (vect_free_loop_info_assumptions): New function.
16386 (vectorize_loops): Free loop niter info for loops with flag
16387 LOOP_F_ASSUMPTIONS set if vectorization failed.
16388 * tree-vectorizer.h (struct _loop_vec_info): New field
16389 num_iters_assumptions.
16390 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16391 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16392 (LOOP_REQUIRES_VERSIONING): New macro.
16393 (vect_free_loop_info_assumptions): New decl.
16394
16395 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16396
16397 * cfgloop.h (struct loop): New field constraints.
16398 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16399 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16400 functions.
16401 * cfgloop.c (alloc_loop): Initialize new field.
16402 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16403 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16404 Adjust niter analysis wrto loop constraints.
16405 * doc/loop.texi (@node Number of iterations): Add description for loop
16406 constraints.
16407
16408 2016-07-29 Marek Polacek <polacek@redhat.com>
16409
16410 PR c/7652
16411 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16412 (ix86_expand_round_builtin): Likewise.
16413
16414 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16415 Georg-Johann Lay <avr@gjlay.de>
16416
16417 PR rtl-optimization/71976
16418 * combine.c (get_last_value): Return 0 if the argument for which
16419 the function is called has a wider mode than the recorded value.
16420
16421 2016-07-29 Marek Polacek <polacek@redhat.com>
16422
16423 PR c/7652
16424 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16425 (altivec_expand_st_builtin): Likewise.
16426
16427 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16428
16429 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16430 introduced in r238381.
16431
16432 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16433
16434 PR middle-end/68217
16435 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16436 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16437
16438 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16439
16440 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16441 New declaration.
16442 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16443 Add support for vec_extract of vector double or vector long having
16444 a variable element number on 64-bit ISA 2.07 systems or newer.
16445 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16446 Likewise.
16447 (rs6000_split_vec_extract_var): New function to split a
16448 vec_extract built-in function with variable element number.
16449 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16450 swappable.
16451 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16452 (UNSPEC_VSX_EXTRACT): Likewise.
16453 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16454 direct move instructions to be generated on 64-bit ISA 2.07
16455 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16456 instruction.
16457 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16458 arguments for vec_extract variable element.
16459 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16460 vec_extract with variable element on V2DFmode and V2DImode
16461 vectors.
16462 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16463 -mupper-regs-df requirement, since it isn't needed.
16464 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16465 do direct moves on 64-bit systems, which allows optimization of
16466 vec_extract on 64-bit ISA 2.07 systems and newer.
16467
16468 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16469 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16470
16471 * config/aarch64/aarch64.md
16472 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16473 statement and type.
16474 (<optab>qihi2_aarch64): Likewise, and split into two.
16475 (extendqihi2_aarch64): New.
16476 (zero_extendqihi2_aarch64): New.
16477 * config/aarch64/iterators.md (ldrxt): Remove.
16478 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16479 uxtb/uxth.
16480
16481 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16482
16483 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16484
16485 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16486
16487 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16488 (aarch64_push_reg): New function to push 1 or 2 registers.
16489 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16490 (aarch64_expand_prologue): Use aarch64_push_regs.
16491 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16492
16493 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16494
16495 PR tree-optimization/71734
16496 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16497 attribute instead of REF_LOOP and use it.
16498 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16499 set it for Loops having non-zero safelen attribute.
16500 (ref_indep_loop_p): Pass zero as initial value for safelen.
16501
16502 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16503
16504 PR middle-end/72657
16505 PR target/72683
16506 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16507 call using chkp_gimple_call_builtin_p.
16508 (chkp_copy_bounds_for_assign): Likewise.
16509
16510 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16511
16512 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16513 * config/arm/arm-protos.h (struct tune_params): Likewise.
16514 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16515 (cortex_a9_sched_adjust_cost): Likewise.
16516 (fa726te_sched_adjust_cost): Likewise.
16517 (arm_adjust_cost): Likewise.
16518 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16519 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16520 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16521 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16522 * config/ia64/ia64.c: Likewise.
16523 * config/m68k/m68k.c: Likewise.
16524 * config/mep/mep.c (mep_adjust_cost): Likewise.
16525 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16526 * Likewise.
16527 * config/mips/mips.c (mips_adjust_cost): Likewise.
16528 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16529 * Likewise.
16530 * config/pa/pa.c (pa_adjust_cost): Likewise.
16531 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16532 (rs6000_debug_adjust_cost): Likewise.
16533 * config/sh/sh.c (sh_adjust_cost): Likewise.
16534 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16535 (hypersparc_adjust_cost): Likewise.
16536 (sparc_adjust_cost): Likewise.
16537 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16538 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16539 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16540 * Likewise.
16541 * config/visium/visium.c (visium_adjust_cost): Likewise.
16542 * doc/tm.texi: Regenerate.
16543 * haifa-sched.c (dep_cost_1): Adjust.
16544 * target.def: Merge adjust_cost and adjust_cost_2.
16545
16546 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16547
16548 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16549
16550 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16551
16552 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16553 (extract_mentioned_regs): Append to a vector instead of
16554 returning a rtx_expr_list.
16555 (st_expr_entry): Adjust.
16556 (free_st_expr_entry): Likewise.
16557 (store_ops_ok): Likewise.
16558 (store_killed_in_insn): Likewise.
16559 (find_moveable_store): Likewise.
16560
16561 2016-07-28 Martin Liska <mliska@suse.cz>
16562
16563 PR gcov-profile/68025
16564 * tree-profile.c (tree_profiling): Respect
16565 no_profile_instrument_function attribute.
16566 * doc/extend.texi: Document no_profile_instrument_function
16567 attribute.
16568
16569 2016-07-28 Martin Liska <mliska@suse.cz>
16570
16571 PR rtl-optimization/70944
16572 * combine.c (make_compound_operation):
16573 Do not allow make_compound_operation for vector mode
16574
16575 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16576
16577 PR middle-end/71994
16578 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16579 before calling get_ops.
16580
16581 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16582
16583 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16584 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16585 (BITS_PER_UNIT_LOG): Remove.
16586 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16587 * expr.c (expand_assignment): Likewise.
16588 * stor-layout.c (initialize_sizetypes): Likewise.
16589
16590 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16591
16592 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16593 signature of rs6000_expand_vector_extract so that the element
16594 number is a RTX instead of a constant integer.
16595 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16596 Likewise.
16597 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16598 (altivec_expand_vec_ext_builtin): Likewise.
16599 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16600 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16601 MFVSRLD instruction.
16602
16603 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16604
16605 * input.c (get_pure_location): Move here from tree.c.
16606 (make_location): Likewise. Add header comment.
16607 (selftest::test_accessing_ordinary_linemaps): Verify
16608 pure_location_p, make_location, get_location_from_adhoc_loc and
16609 get_range_from_loc.
16610 * input.h (get_pure_location): Move declaration here from tree.h.
16611 (get_finish): Likewise for inline function.
16612 (make_location): Likewise for declaration.
16613 * tree.c (get_pure_location): Move to input.c.
16614 (make_location): Likewise.
16615 * tree.h (get_pure_location): Move declaration to tree.h.
16616 (get_finish): Likewise for inline function.
16617 (make_location): Likewise for declaration.
16618
16619 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16620
16621 PR middle-end/71078
16622 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16623
16624 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16625
16626 * system.h (STATIC_ASSERT): Use static_assert if building
16627 with C++11 onwards.
16628
16629 2016-07-27 Richard Biener <rguenther@suse.de>
16630
16631 PR tree-optimization/72517
16632 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16633 Revert change to not compute read-read dependences.
16634
16635 2016-07-27 Richard Biener <rguenther@suse.de>
16636
16637 * predict.c (set_even_probabilities): Make nedges unsigned.
16638
16639 2016-07-27 Martin Liska <mliska@suse.cz>
16640
16641 * predict.c (set_even_probabilities): Handle unlikely edges.
16642 (combine_predictions_for_bb): Likewise.
16643
16644 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16645
16646 PR target/71869
16647 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16648 __float128 support when we don't have hardware support, so that
16649 the IEEE built-in functions like isgreater, first call __unordkf3
16650 to make sure neither operand is a NaN, and if both operands are
16651 ordered, do the normal comparison.
16652
16653 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16654
16655 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16656 name.
16657 (extract_code_and_val_from_cond_with_ops): Verify that name is
16658 either cond_op0 or cond_op1.
16659
16660 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16661
16662 PR tree-optimization/18046
16663 * genmodes.c (emit_mode_size_inline): Emit an assert that
16664 verifies that mode is a valid array index.
16665 (emit_mode_nuinits_inline): Likewise.
16666 (emit_mode_inner_inline): Likewise.
16667 (emit_mode_unit_size_inline): Likewise.
16668 (emit_mode_unit_precision_inline): Likewise.
16669 * tree-vrp.c: Include params.h.
16670 (find_switch_asserts): Register edge assertions for the default
16671 label which correspond to the anti-ranges of each case label.
16672 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16673 * doc/invoke.texi: Document it.
16674
16675 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16676
16677 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16678 and unnecessary call to gimple_bb.
16679
16680 2016-07-26 Richard Biener <rguenther@suse.de>
16681
16682 PR rtl-optimization/71984
16683 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16684 for VOIDmode.
16685
16686 2016-07-26 Richard Biener <rguenther@suse.de>
16687
16688 PR middle-end/72517
16689 * expmed.c (extract_bit_field_1): Constrain the vector mode
16690 with element size matching the extraction mode size when
16691 choosing a better vector mode to do the extraction from.
16692
16693 2016-07-26 Richard Biener <rguenther@suse.de>
16694 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16695
16696 PR middle-end/70920
16697 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16698 pattern.
16699
16700 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16701
16702 * tree-ssa-structalias.c (struct scc_info): Change types of
16703 members to auto_sbitmap and auto_vec.
16704 (scc_info::scc_info): New constructor.
16705 (scc_info::~scc_info): New destructor.
16706 (init_scc_info): Remove.
16707 (free_scc_info): Remove.
16708 (find_indirect_cycles): Adjust.
16709 (perform_var_substitution): Likewise.
16710 (free_var_substitution_info): Likewise.
16711
16712 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16713
16714 * tree-outof-ssa.c (struct elim_graph): Change type of members
16715 to auto_vec and auto_sbitmap.
16716 (elim_graph::elim_graph): New constructor.
16717 (delete_elim_graph): Remove.
16718 (expand_phi_nodes): Adjust.
16719
16720 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16721
16722 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16723 (new_elim_graph): Adjust.
16724 (clear_elim_graph): Likewise.
16725 (delete_elim_graph): Likewise.
16726 (elim_graph_size): Likewise.
16727 (elim_graph_add_node): Likewise.
16728 (elim_graph_add_edge): Likewise.
16729 (elim_graph_remove_succ_edge): Likewise.
16730 (eliminate_name): Likewise.
16731 (eliminate_build): Likewise.
16732 (elim_forward): Likewise.
16733 (elim_unvisited_predecessor): Likewise.
16734 (elim_backward): Likewise.
16735 (elim_create): Likewise.
16736 (eliminate_phi): Likewise.
16737 (expand_phi_nodes): Likewise.
16738
16739 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16740
16741 * bt-load.c (compute_out): Use auto_sbitmap class.
16742 (link_btr_uses): Likewise.
16743 * cfganal.c (mark_dfs_back_edges): Likewise.
16744 (post_order_compute): Likewise.
16745 (inverted_post_order_compute): Likewise.
16746 (pre_and_rev_post_order_compute_fn): Likewise.
16747 (single_pred_before_succ_order): Likewise.
16748 * cfgexpand.c (pass_expand::execute): Likewise.
16749 * cfgloop.c (verify_loop_structure): Likewise.
16750 * cfgloopmanip.c (fix_bb_placements): Likewise.
16751 (remove_path): Likewise.
16752 (update_dominators_in_loop): Likewise.
16753 * cfgrtl.c (break_superblocks): Likewise.
16754 * ddg.c (check_sccs): Likewise.
16755 (create_ddg_all_sccs): Likewise.
16756 * df-core.c (df_worklist_dataflow): Likewise.
16757 * dse.c (dse_step3): Likewise.
16758 * except.c (eh_region_outermost): Likewise.
16759 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16760 * gcse.c (prune_expressions): Likewise.
16761 (prune_insertions_deletions): Likewise.
16762 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16763 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16764 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16765 * lcm.c (compute_earliest): Likewise.
16766 (compute_farthest): Likewise.
16767 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16768 (unroll_loop_runtime_iterations): Likewise.
16769 (unroll_loop_stupid): Likewise.
16770 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16771 * lra-lives.c: Likewise.
16772 * lra.c (lra): Likewise.
16773 * modulo-sched.c (schedule_reg_moves): Likewise.
16774 (optimize_sc): Likewise.
16775 (get_sched_window): Likewise.
16776 (sms_schedule_by_order): Likewise.
16777 (check_nodes_order): Likewise.
16778 (order_nodes_of_sccs): Likewise.
16779 (order_nodes_in_scc): Likewise.
16780 * recog.c (split_all_insns): Likewise.
16781 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16782 * reload1.c (reload): Likewise.
16783 * sched-rgn.c (haifa_find_rgns): Likewise.
16784 (split_edges): Likewise.
16785 (compute_trg_info): Likewise.
16786 * sel-sched.c (init_seqno): Likewise.
16787 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16788 * tree-into-ssa.c (update_ssa): Likewise.
16789 * tree-ssa-live.c (live_worklist): Likewise.
16790 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16791 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16792 * Likewise.
16793 (try_peel_loop): Likewise.
16794 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16795 * Likewise.
16796 * tree-ssa-pre.c (compute_antic): Likewise.
16797 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16798 * tree-stdarg.c (reachable_at_most_once): Likewise.
16799 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16800 * var-tracking.c (vt_find_locations): Likewise.
16801
16802 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16803
16804 * sbitmap.h (auto_sbitmap): New class.
16805
16806 2016-07-26 Alan Modra <amodra@gmail.com>
16807
16808 PR target/72103
16809 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16810 sri->t_icode.
16811
16812 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16813
16814 * input.c (selftest::temp_source_file::temp_source_file): Fix
16815 missing "%s" in fprintf.
16816
16817 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16818
16819 PR middle-end/71732
16820 * cselib.c (cselib_process_insn): Invalidate argument slots for
16821 const/pure calls.
16822
16823 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16824
16825 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16826 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16827 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16828
16829 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16830
16831 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16832 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16833 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16834
16835 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16836
16837 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16838 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16839 New.
16840 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16841 (add<mode>3): Likewise.
16842 (sub<mode>3): Likewise.
16843 (mul<mode>3): Likewise.
16844 (div<mode>3): Likewise.
16845 (*div<mode>3): Likewise.
16846 (<fmaxmin><mode>3): Extend to HF.
16847 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16848 (fabd<mode>3): Likewise.
16849 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16850 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16851 (aarch64_fmulx<mode>): Likewise.
16852 (aarch64_fac<optab><mode>): Likewise.
16853 (aarch64_frecps<mode>): Likewise.
16854 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16855 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
16856 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
16857 (VSDQ_HSDI): Support HI.
16858 (fcvt_target, FCVT_TARGET): Likewise.
16859 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
16860 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
16861 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
16862 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
16863 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
16864 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
16865 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
16866 vrsqrtsh_f16): New.
16867
16868 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16869
16870 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
16871 * config/aarch64/aarch64-builtins.c (hi_UP): New.
16872 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16873 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
16874 mode.
16875 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
16876 (aarch64_cm<optab><mode>): Likewise.
16877 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
16878 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
16879 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
16880 (sqrt<mode>2): Likewise.
16881 (*sqrt<mode>2): Likewise.
16882 (abs<mode>2): Likewise.
16883 (<optab><mode>hf2): New pattern for HF mode.
16884 (<optab>hihf2): Likewise.
16885 * config/aarch64/arm_neon.h: Include arm_fp16.h.
16886 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
16887 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
16888 Support HF mode.
16889 * config/aarch64/arm_fp16.h: New file.
16890 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
16891 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
16892 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
16893 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
16894 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
16895 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
16896 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
16897 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
16898 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
16899 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
16900 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
16901 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
16902 vsqrth_f16): New.
16903
16904 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16905
16906 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
16907 reduc_smin_scal_): Use VDQIF_F16.
16908 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
16909 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
16910 Use VHSDF.
16911 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
16912 * config/aarch64/iterators.md (VDQIF_F16): New.
16913 (vp): Support HF modes.
16914 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
16915 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
16916
16917 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16918
16919 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
16920 "*aarch64_mulx_elt_from_dup<mode>".
16921 (*aarch64_mul3_elt<mode>): Update schedule type.
16922 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
16923 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
16924 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
16925 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
16926 (f, fp): Support HF modes.
16927 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
16928 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
16929 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
16930 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
16931 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
16932 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
16933
16934 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16935
16936 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16937 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
16938 modes.
16939 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
16940 vfmsq_f16): New.
16941
16942 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16943
16944 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16945 * config/aarch64/aarch64-simd.md
16946 (aarch64_rsqrts<mode>): Extend to HF modes.
16947 (fabd<mode>3): Likewise.
16948 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
16949 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
16950 (aarch64_<maxmin_uns>p<mode>): Likewise.
16951 (<su><maxmin><mode>3): Likewise.
16952 (<maxmin_uns><mode>3): Likewise.
16953 (<fmaxmin><mode>3): Likewise.
16954 (aarch64_faddp<mode>): Likewise.
16955 (aarch64_fmulx<mode>): Likewise.
16956 (aarch64_frecps<mode>): Likewise.
16957 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
16958 (add<mode>3): Extend to HF modes.
16959 (sub<mode>3): Likewise.
16960 (mul<mode>3): Likewise.
16961 (div<mode>3): Likewise.
16962 (*div<mode>3): Likewise.
16963 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
16964 HF, V4HF and V8HF.
16965 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
16966 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
16967 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
16968 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
16969 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
16970 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
16971 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
16972 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
16973 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
16974 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
16975 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
16976 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
16977 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
16978 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
16979
16980 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16981
16982 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
16983 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16984 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
16985 (neg<mode>2): Likewise.
16986 (abs<mode>2): Likewise.
16987 (<frint_pattern><mode>2): Likewise.
16988 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
16989 (<optab><VDQF:mode><fcvt_target>2): Likewise.
16990 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
16991 (ftrunc<VDQF:mode>2): Likewise.
16992 (<optab><fcvt_target><VDQF:mode>2): Likewise.
16993 (sqrt<mode>2): Likewise.
16994 (*sqrt<mode>2): Likewise.
16995 (aarch64_frecpe<mode>): Likewise.
16996 (aarch64_cm<optab><mode>): Likewise.
16997 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
16998 HF, V4HF and V8HF.
16999 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17000 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17001 (stype): New.
17002 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17003 (vdupq_n_f16): Likewise.
17004 (vld1_dup_f16): Use vdup_n_f16.
17005 (vld1q_dup_f16): Use vdupq_n_f16.
17006 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17007 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17008 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17009 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17010 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17011 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17012 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17013 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17014 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17015 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17016 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17017 vsqrt_f16, vsqrtq_f16): New.
17018
17019 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17020
17021 * config/aarch64/aarch64-simd.md
17022 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17023 (aarch64_ext<mode>): Likewise.
17024 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17025 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17026 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17027 and V8HFmode.
17028 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17029 float16x8_t.
17030 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17031 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17032 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17033 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17034 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17035 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17036 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17037 New.
17038 (vmov_n_f16): Reimplement using vdup_n_f16.
17039 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17040
17041 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17042
17043 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17044 "frame_related_p". Generate CFA annotation when it's necessary.
17045 (aarch64_expand_prologue): Use aarch64_add_constant.
17046 (aarch64_expand_epilogue): Likewise.
17047 (aarch64_output_mi_thunk): Pass "false" when calling
17048 aarch64_add_constant.
17049
17050 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17051
17052 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17053 sequences.
17054
17055 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17056
17057 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17058 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17059 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17060 (aarch64_build_constant): Delete.
17061
17062 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17063
17064 Revert
17065 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17066
17067 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17068 flag_toplevel_reorder.
17069
17070 2016-07-25 Richard Biener <rguenther@suse.de>
17071
17072 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17073 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17074 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17075 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17076 (streamer_get_builtin_tree): Likewise.
17077 (streamer_write_builtin): Likewise.
17078 * lto-streamer.h (LTO_builtin_decl): Remove.
17079 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17080 (lto_input_scc): Remove LTO_builtin_decl handling.
17081 (lto_input_tree_1): Liekwise.
17082 * lto-streamer-out.c (lto_output_tree_1): Remove special
17083 handling of builtins.
17084 (DFS::DFS): Likewise.
17085 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17086 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17087 assert.
17088 (streamer_write_builtin): Remove.
17089
17090 2016-07-25 Martin Liska <mliska@suse.cz>
17091
17092 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17093 if flag_auto_profile is set to true.
17094
17095 2016-07-25 Martin Liska <mliska@suse.cz>
17096
17097 PR gcov-profile/71868
17098 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17099 have a function with multiple latches, count them all.
17100
17101 2016-07-25 Martin Liska <mliska@suse.cz>
17102
17103 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17104
17105 2016-07-25 Martin Liska <mliska@suse.cz>
17106
17107 PR tree-optimization/71987
17108 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17109 just for SSA_NAMEs. Fix GNU coding style.
17110
17111 2016-07-25 Martin Liska <mliska@suse.cz>
17112
17113 PR gcov-profile/64874
17114 * gcov-io.h: Update command about file format.
17115 * gcov-iov.c (main): Adapt the numbering scheme.
17116
17117 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17118
17119 PR middle-end/66726
17120 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17121 whose result is used in PHI.
17122 (final_range_test_p): Likewise.
17123 (maybe_optimize_range_tests): Likewise.
17124
17125 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17126
17127 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17128 Reformat two multi-line strings.
17129
17130 2016-07-22 Martin Sebor <msebor@redhat.com>
17131
17132 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17133
17134 2016-07-22 Martin Sebor <msebor@redhat.com>
17135
17136 PR c/71560
17137 * doc/extend.texi (Compound Literals): Correct and clarify.
17138 (Cast to Union): Same.
17139
17140 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17141
17142 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17143 comments to explain why certain error messages make mention of
17144 undocumented options.
17145 (rs6000_invalid_builtin): Change error messages to replace mention
17146 of undocumented options with mention of the -mcpu=power9 option
17147 that enables those undocumented options.
17148 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17149 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17150 definition of this macro to correct an existing error.
17151 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17152 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17153 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17154 descriptions of built-in functions so that they depend on
17155 -mcpu=power9 instead of on the corresponding undocumented flags.
17156 * doc/invoke.texi (Option Summary): Remove all mention of newly
17157 undocumented flags.
17158 (IBM RS/6000 and PowerPC Options): Likewise.
17159 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17160 mention of newly undocumented flags.
17161
17162 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17163
17164 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17165 when target_clones attribute is set.
17166
17167 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17168
17169 * common.opt (funsafe-loop-optimizations): Mark ignore.
17170 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17171 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17172 related code.
17173 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17174 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17175
17176 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17177
17178 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17179 Parameter.
17180 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17181 Parameter.
17182 (number_of_iterations_exit): Warn missed loop optimization for
17183 possible infinite loops.
17184
17185 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17186
17187 PR target/71216
17188 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17189 when to emit a ".machine" pseudo-op.
17190
17191 2016-07-22 Martin Liska <mliska@suse.cz>
17192
17193 PR gcov-profile/69028
17194 PR gcov-profile/62047
17195 * coverage.c (coverage_compute_lineno_checksum): Do not
17196 calculate checksum for fns w/o xloc.file.
17197 (coverage_compute_profile_id): Likewise.
17198
17199 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17200
17201 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17202 (avr_secondary_reload): ...and implementation.
17203 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17204 * config/avr/avr.md (reload_in<mode>): Remove insns.
17205 (adjust_len) [lpm]: Remove insn attribute value.
17206 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17207
17208 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17209
17210 PR middle-end/71876
17211 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17212 attribute.
17213 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17214 * calls.c (special_function_p): Remove the special handling of the
17215 "__builtin_" prefix.
17216
17217 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17218
17219 PR middle-end/71876
17220 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17221 if STMT may be an alloca call.
17222 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17223 builtin alloca call.
17224 * calls.h (gimple_maybe_alloca_call_p): New function.
17225 * tree-inline.c (inline_forbidden_p_stmt): Use
17226 gimple_maybe_alloca_call_p here.
17227
17228 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17229
17230 * spellcheck-tree.c (best_macro_match::best_macro_match):
17231 Explictly specify the template arguments when invoking the base
17232 class constructor, to help older C++ compilers.
17233
17234 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17235
17236 PR sanitizer/71953
17237 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17238 before builtin_decl_implicit.
17239
17240 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17241
17242 * optabs.c (emit_condiitonal_move): Short circuit for identical
17243 sources.
17244
17245 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17246
17247 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17248 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17249 (noce_conversion_profitable_p): New.
17250 (noce_try_store_flag_constants): Use it.
17251 (noce_try_addcc): Likewise.
17252 (noce_try_store_flag_mask): Likewise.
17253 (noce_try_cmove): Likewise.
17254 (noce_try_cmove_arith): Likewise.
17255 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17256 overwriting it.
17257 (noce_convert_multiple_sets): Move cost model to here, from...
17258 (bb_ok_for_noce_convert_multiple_sets) ...here.
17259 (noce_process_if_block): Update calls for above changes.
17260 (noce_find_if_block): Record new noce_if_info parameters.
17261
17262 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17263
17264 * target.def (max_noce_ifcvt_seq_cost): New.
17265 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17266 * doc/tm.texi: Regenerate.
17267 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17268 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17269 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17270 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17271 * doc/invoke.texi: Document new params.
17272
17273 2016-07-21 Richard Biener <rguenther@suse.de>
17274
17275 PR tree-optimization/71947
17276 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17277 ranges have useful limit_vr information.
17278
17279 2016-07-21 Richard Biener <rguenther@suse.de>
17280
17281 * function-tests.c (build_trivial_generic_function): Set
17282 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17283 * omp-low.c (create_omp_child_function): Likewise.
17284 (grid_expand_target_grid_body): Likewise.
17285 * cgraphunit.c (init_lowered_empty_function): Likewise.
17286 (cgraph_node::expand_thunk): Likewise.
17287 * tree-parloops.c (create_loop_fn): Likewise.
17288 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17289
17290 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17291
17292 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17293 in comment.
17294
17295 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17296
17297 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17298 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17299 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17300 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17301 values for insn attribute.
17302 * config/avr/avr.c (avr_out_insert_notbit): New function.
17303 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17304 ADJUST_LEN_INSV_NOTBIT_0/_7.
17305 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17306
17307 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17308
17309 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17310 (chrec_convert_1, chrec_convert): Ditto.
17311 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17312 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17313 * tree-vrp.c (adjust_range_with_scev): Ditto.
17314 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17315 (scev_var_range_cant_overflow): New function.
17316 (scev_probably_wraps_p): New parameter. Call above function.
17317 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17318
17319 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17320
17321 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17322 by removing computation of may_be_zero.
17323
17324 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17325
17326 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17327
17328 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17329
17330 Improving concepts performance and diagnostics.
17331 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17332 for constraint satisfaction and subsumption.
17333 * timevar.h (auto_timevar): New constructor that matches the push/pop
17334 pattern of usage in pt.c.
17335
17336 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17337
17338 * hwint.h (HOST_WIDE_INT_0): New define.
17339 (HOST_WIDE_INT_0U): Ditto.
17340 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17341 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17342 * simplify-rtx.c: Ditto.
17343 * tree-object-size.c: Ditto.
17344
17345 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17346
17347 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17348 check.
17349
17350 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17351
17352 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17353 * combine.c: Use HOST_WIDE_INT_M1U instead of
17354 ~(unsigned HOST_WIDE_INT) 0.
17355 * double-int.h: Ditto.
17356 * dse.c: Ditto.
17357 * dwarf2asm.c:Ditto.
17358 * expmed.c: Ditto.
17359 * genmodes.c: Ditto.
17360 * match.pd: Ditto.
17361 * read-rtl.c: Ditto.
17362 * tree-ssa-loop-ivopts.c: Ditto.
17363 * tree-ssa-loop-prefetch.c: Ditto.
17364 * tree-vect-generic.c: Ditto.
17365 * tree-vect-patterns.c: Ditto.
17366 * tree.c: Ditto.
17367
17368 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17369
17370 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17371 constant addresses outside [0,0xc0] into a register.
17372 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17373 cases where the base address register is unused after.
17374 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17375 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17376 (avr_out_store_psi_reg_disp_tiny): Same.
17377
17378 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17379
17380 Implement attribute progmem on reduced Tiny cores by adding
17381 flash offset 0x4000 to respective symbols.
17382
17383 PR target/71948
17384 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17385 documentation how it works on reduced Tiny cores.
17386 (AVR Named Address Spaces): No support for reduced Tiny.
17387 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17388 (avr_address_tiny_pm_p): New static function.
17389 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17390 if the address is in progmem.
17391 (avr_assemble_integer): Same.
17392 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17393 for symbol_ref in progmem.
17394 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17395 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17396 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17397
17398 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17399
17400 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17401 * configure: Regenerate.
17402 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17403 (USE_THIN_ARCHIVES): New variable.
17404 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17405 this archive as a thin archive.
17406
17407 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17408
17409 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17410 same location as last time, don't skip if we have fix-it hints.
17411 Clarify the skipping logic by converting it from one "if" clause
17412 to repeated "if" clauses.
17413 * spellcheck-tree.c: Include "cpplib.h".
17414 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17415 (best_macro_match::best_macro_match): New constructor.
17416 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17417 Move here from c/c-decl.c.
17418 (class best_macro_match): Move here from c/c-decl.c, converting
17419 from a typedef to a subclass, gaining a ctor.
17420
17421 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17422
17423 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17424 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17425 define...
17426 (avr_addr_space_diagnose_usage): ...and implementation.
17427 (avr_addr_space_supported_p): New function.
17428 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17429 report bad address space usage if that space is supported.
17430 (avr_insert_attributes): Same. No more complain about unsupported
17431 address spaces.
17432 * config/avr/avr-c.c (tm_p.h): Include it.
17433 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17434 macro if avr_addr_space_supported_p.
17435
17436 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17437
17438 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17439 flag_toplevel_reorder.
17440
17441 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17442
17443 * gcc-rich-location.c
17444 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17445 a const char *.
17446 * gcc-rich-location.h
17447 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17448
17449 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17450
17451 * target.def (addr_space): Add new diagnose_usage to hook vector.
17452 * targhooks.c (default_addr_space_diagnose_usage): Add default
17453 implementation and...
17454 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17455 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17456 is some address space, call targetm.addr_space.diagnose_usage.
17457 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17458 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17459 * doc/tm.texi: Regenerate.
17460
17461 2016-07-20 Martin Liska <mliska@suse.cz>
17462
17463 PR middle-end/71898
17464 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17465 Properly handly PHI stmts.
17466
17467 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17468
17469 PR tree-optimization/71503
17470 PR tree-optimization/71683
17471 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17472 and break.
17473
17474 2016-07-20 Martin Liska <mliska@suse.cz>
17475
17476 * doc/invoke.texi (-fipa-ra): Document when the option is
17477 disabled. Fix a typo.
17478
17479 2016-07-20 Martin Liska <mliska@suse.cz>
17480
17481 * Makefile.in: Include fibonacci_heap.c
17482 * fibonacci_heap.c: New file.
17483 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17484 (fibonacci_heap::union_with): Fix deletion of the second heap.
17485 * selftest-run-tests.c (selftest::run_tests): Incorporate
17486 fibonacci heap tests.
17487 * selftest.h: Declare fibonacci_heap_c_tests.
17488
17489 2016-07-20 Martin Liska <mliska@suse.cz>
17490
17491 * selftest-run-tests.c (selftest::run_tests): New function.
17492 * selftest.h (sreal_c_tests): Declare.
17493 * sreal.c (sreal_verify_basics): New function.
17494 (verify_aritmetics): Likewise.
17495 (sreal_verify_arithmetics): Likewise.
17496 (verify_shifting): Likewise.
17497 (sreal_verify_shifting): Likewise.
17498 (void sreal_c_tests): Likewise.
17499
17500 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17501
17502 PR rtl-optimization/71916
17503 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17504 bb which have a single succ fake edge.
17505
17506 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17507
17508 PR debug/71855
17509 * dwarf2out.c (gen_subprogram_die): Only call
17510 gen_unspecified_parameters_die while dumping early dwarf.
17511
17512 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17513
17514 PR middle-end/71874
17515 * gimple-fold.c (fold_builtin_memory_op): Use
17516 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17517
17518 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17519
17520 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17521 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17522 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17523 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17524 * combine.c: Ditto.
17525 * cse.c: Ditto.
17526 * dojump.c: Ditto.
17527 * double-int.c: Ditto.
17528 * dse.c: Ditto.
17529 * dwarf2out.c: Ditto.
17530 * expmed.c: Ditto.
17531 * expr.c: Ditto.
17532 * fold-const.c: Ditto.
17533 * function.c: Ditto.
17534 * fwprop.c: Ditto.
17535 * genmodes.c: Ditto.
17536 * hwint.c: Ditto.
17537 * hwint.h: Ditto.
17538 * ifcvt.c: Ditto.
17539 * loop-doloop.c: Ditto.
17540 * loop-invariant.c: Ditto.
17541 * loop-iv.c: Ditto.
17542 * match.pd: Ditto.
17543 * optabs.c: Ditto.
17544 * real.c: Ditto.
17545 * reload.c: Ditto.
17546 * rtlanal.c: Ditto.
17547 * simplify-rtx.c: Ditto.
17548 * stor-layout.c: Ditto.
17549 * toplev.c: Ditto.
17550 * tree-ssa-loop-ivopts.c: Ditto.
17551 * tree-vect-generic.c: Ditto.
17552 * tree-vect-patterns.c: Ditto.
17553 * tree.c: Ditto.
17554 * tree.h: Ditto.
17555 * ubsan.c: Ditto.
17556 * varasm.c: Ditto.
17557 * wide-int-print.cc: Ditto.
17558 * wide-int.cc: Ditto.
17559 * wide-int.h: Ditto.
17560
17561 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17562
17563 * selftest.c (selftest::assert_streq): Handle NULL values of
17564 val_actual and val_expected.
17565
17566 2016-07-19 Martin Jambor <mjambor@suse.cz>
17567
17568 PR fortran/71688
17569 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17570 rather than cgraph_create_node to get a call graph node.
17571
17572 2016-07-19 Richard Biener <rguenther@suse.de>
17573
17574 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17575 handle all tcc_constant bases and valueize SSA names.
17576 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17577 tcc_constant bases.
17578
17579 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17580
17581 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17582 the flags of the exit block and bb2, not just the entry block.
17583
17584 2016-07-19 Richard Biener <rguenther@suse.de>
17585
17586 PR tree-optimization/71901
17587 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17588 align member, group stuff with the bitfield.
17589 (vn_ref_op_align_unit): New inline.
17590 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17591 record element alignment and operand 3 unchanged.
17592 (ao_ref_init_from_vn_reference): Adjust.
17593 (valueize_refs_1): Likewise.
17594 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17595
17596 2016-07-19 Richard Biener <rguenther@suse.de>
17597
17598 PR tree-optimization/71908
17599 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17600 symbolic constants in a more reliable way.
17601
17602 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17603
17604 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17605 comment.
17606 (vect_update_inits_of_drs): Likewise.
17607 (vect_create_cond_for_alias_checks): Likewise.
17608 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17609
17610 2016-07-19 Richard Biener <rguenther@suse.de>
17611
17612 PR lto/71907
17613 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17614 with an abstract origin that is not an inlined function outer
17615 scope add a self-reference as abstract origin.
17616 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17617
17618 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17619
17620 PR target/71493
17621 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17622 unintentional System V.4 structure return breakage for structures
17623 with a single floating point element.
17624
17625 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17626
17627 PR tree-optimization/71734
17628 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17629 contains REF, use it to check safelen, assume that safelen value
17630 must be greater 1, fix style.
17631 (ref_indep_loop_p_2): Add REF_LOOP argument.
17632 (ref_indep_loop_p): Pass LOOP as additional argument to
17633 ref_indep_loop_p_2.
17634
17635 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17636
17637 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17638 allocation in the prologue.
17639 * explow.c (get_dynamic_stack_base): New function to return an address
17640 expression for the dynamic stack base.
17641 (get_dynamic_stack_size): New function to do the required dynamic stack
17642 space size calculations.
17643 (allocate_dynamic_stack_space): Use new functions.
17644 (align_dynamic_address): Move some code from
17645 allocate_dynamic_stack_space to new function.
17646 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17647
17648 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17649
17650 * config/s390/s390.c (s390_encode_section_info): Always set
17651 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17652 found.
17653
17654 2016-07-18 Richard Biener <rguenther@suse.de>
17655
17656 PR tree-optimization/71893
17657 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17658 for sizetype cast added by array_ref_element_size.
17659 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17660
17661 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17662
17663 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17664 register parameters. Remove code to initialize argument pointer
17665 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17666 using a pc-relative branch. Cleanup conditional code.
17667 * config/pa/pa.md (call_mcount): New expander.
17668 (call_mcount_nonpic): New insn.
17669 (call_mcount_pic): New insn and split.
17670 (call_mcount_pic_post_reload): New insn.
17671 (call_mcount_64bit): New insn and split.
17672 (call_mcount_64bit_post_reload): New insn.
17673
17674 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17675
17676 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17677 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17678 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17679 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17680 (*usum_widenqihi3, *udiff_widenqihi3)
17681 (*addhi3_zero_extend.const): New combiner insns.
17682 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17683 just 1 bit is affected.
17684 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17685 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17686
17687 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17688
17689 * omp-low.c (lower_omp_target): Mark data clauses with
17690 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17691 zero-length subarrays.
17692
17693 2016-07-15 Richard Biener <rguenther@suse.de>
17694
17695 PR tree-optimization/71881
17696 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17697 reverse DOM order to make debug temp generation happy.
17698
17699 2016-07-15 Richard Biener <rguenther@suse.de>
17700
17701 PR tree-optimization/71887
17702 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17703 verify it is not zero for division / modulo handling.
17704 (value_replacement): Adjust.
17705
17706 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17707 Julian Brown <julian@codesourcery.com>
17708
17709 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17710 * config/aarch64/aarch64-cost-tables.h
17711 (vulcan_extra_costs): New variable.
17712 * config/aarch64/aarch64.c
17713 (vulcan_addrcost_table): Likewise.
17714 (vulcan_regmove_cost): Likewise.
17715 (vulcan_vector_cost): Likewise.
17716 (vulcan_branch_cost): Likewise.
17717 (vulcan_tunings): Likewise.
17718
17719 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17720
17721 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17722 (output_in_order): Loop over undefined variables too. Output them
17723 via assemble_undefined_decl. Skip variables that correspond to hard
17724 registers or have value-exprs.
17725 * varpool.c (symbol_table::output_variables): Handle undefined
17726 variables together with defined ones.
17727
17728 2016-07-15 Richard Biener <rguenther@suse.de>
17729
17730 * tree-ssa-pre.c (get_representative_for): Make sure to return
17731 the value number of SSA names.
17732 (phi_translate_1): get_representative_for cannot return NULL.
17733 (do_pre_regular_insertion): Remove redundant call to
17734 fully_constant_expression.
17735 (do_pre_partial_partial_insertion): Likewise.
17736
17737 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17738
17739 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17740 (derive_simple_iv_with_niters): New function.
17741 (simple_iv): Rewrite using simple_iv_with_niters.
17742 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17743 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17744 function.
17745 (number_of_iterations_exit): Rewrite using above function.
17746 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17747 Decl.
17748
17749 2016-07-15 Richard Biener <rguenther@suse.de>
17750
17751 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17752 vec_construct cost.
17753
17754 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17755
17756 PR tree-optimization/71872
17757 * tree-data-ref.c (get_references_in_stmt): Ignore references
17758 with is_gimple_constant get_base_address.
17759
17760 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17761
17762 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17763 (TARGET_HAVE_LDACQD): New macro.
17764 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17765 than TARGET_HAVE_LDACQ.
17766 (arm_load_acquire_exclusivedi): Likewise.
17767 (arm_store_release_exclusivedi): Likewise.
17768
17769 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17770
17771 PR rtl-optimization/71878
17772 * lra-constraints.c (match_reload): Pass information about other
17773 output operands. Create new unique register value if matching input
17774 operand shares same register value as output operand being considered.
17775 (curr_insn_transform): Record output operands already processed.
17776
17777 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17778
17779 PR target/65951
17780 PR tree-optimization/70923
17781 * tree-vect-patterns.c: Include mult-synthesis.h.
17782 (target_supports_mult_synth_alg): New function.
17783 (synth_lshift_by_additions): Likewise.
17784 (apply_binop_and_append_stmt): Likewise.
17785 (vect_synth_mult_by_constant): Likewise.
17786 (target_has_vecop_for_code): Likewise.
17787 (vect_recog_mult_pattern): Use above functions to synthesize vector
17788 multiplication by integer constants.
17789
17790 2016-07-14 Alan Modra <amodra@gmail.com>
17791
17792 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17793 gpr alternatives. Correct '*' placement on Y,r alternative.
17794 Add '*' on operand 1 of r,r alternative.
17795
17796 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17797
17798 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17799 * expmed.h: ... Here.
17800
17801 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17802
17803 * gimple.h (stmt_can_terminate_bb_p): New function.
17804 * tree-cfg.c (need_fake_edge_p): Rename to ...
17805 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17806 throw external; handle const and pure calls.
17807 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17808
17809 2016-07-14 Richard Biener <rguenther@suse.de>
17810
17811 PR tree-optimization/71866
17812 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17813 (do_hoist_insertion): Avoid endless recursion when we
17814 didn't insert anything because we managed to simplify
17815 things down to a constant or SSA name.
17816 (fully_constant_expression): Re-write in terms of ...
17817 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17818 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17819 vn_nary_build_or_lookup_1.
17820 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17821 (vn_nary_build_or_lookup): ... this which now wraps it.
17822
17823 2016-07-14 Alan Modra <amodra@gmail.com>
17824
17825 PR target/71733
17826 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17827 with p9_vector override before power9-dform override.
17828
17829 2016-07-13 Andi Kleen <ak@linux.intel.com>
17830
17831 * value-prof.c (gimple_value_profile_transformations): Don't run
17832 when auto_profile is on.
17833
17834 2016-07-13 Andi Kleen <ak@linux.intel.com>
17835
17836 * auto-profile.c (update_inlined_ind_target,
17837 afdo_indirect_call): Print information to dump file.
17838
17839 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17840
17841 * genrecog.c (special_predicate_operand_p): New function.
17842 (predicate_name): Move function.
17843 (validate_pattern): Don't warn about missing mode for all
17844 define_special_predicate predicates.
17845
17846 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17847
17848 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17849 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17850 resolve alias checks which are known at compilation time.
17851 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17852 alias checks are resolved. Move dump info for too many runtime
17853 alias checks to here...
17854 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17855
17856 2016-07-13 Richard Biener <rguenther@suse.de>
17857
17858 PR tree-optimization/24574
17859 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
17860 position and add shift, rotate, divison and modulo support
17861 for left zero.
17862 (value_replacement): Pass in argument position to absorbing_element_p.
17863
17864 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
17865
17866 PR ipa/71633
17867 * ipa-inline-transform.c (inline_call): Support
17868 instrumented thunks.
17869
17870 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17871
17872 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
17873 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
17874 divide feature.
17875 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
17876 Baseline. Make initial alternative TARGET_32BIT only.
17877 (udivsi3): Likewise.
17878 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
17879 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
17880 target.
17881
17882 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17883
17884 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
17885 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
17886 availability with TARGET_HAVE_MOVT.
17887 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
17888 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
17889 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
17890 UINTVAL.
17891 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
17892 extra instruction if MOVW is available. Use a cost variable
17893 incremented by COSTS_N_INSNS (1) when the condition match rather than
17894 returning an arithmetic expression based on COSTS_N_INSNS. Make
17895 constant with bottom half word zero cost 2 instruction if MOVW is
17896 available.
17897 * config/arm/arm.md (define_attr "arch"): Add v8mb.
17898 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
17899 target is ARMv8-M Baseline.
17900 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
17901 (arm_movtas_ze): Likewise.
17902 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
17903 alternative for constants satisfying j constraint.
17904 (thumb1_movsi_insn): Likewise.
17905 (movsi splitter for K alternative): Tighten condition to not trigger
17906 if movt is available and j constraint is satisfied.
17907 (Pe immediate splitter): Likewise.
17908 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
17909 constant fitting in an halfword to use MOVW.
17910 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
17911 effective target.
17912
17913 2016-07-13 Richard Biener <rguenther@suse.de>
17914
17915 PR middle-end/71104
17916 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
17917 gimplifying the LHS. Make sure to gimplify a returning twice
17918 call LHS without using SSA names.
17919
17920 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17921
17922 * tree-data-ref.c (find_data_references_in_stmt): Remove
17923 unnecessary call to vec::release.
17924 (graphite_find_data_references_in_stmt): Likewise.
17925 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
17926 * tree-vect-stmts.c (vectorizable_condition): Likewise.
17927
17928 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17929
17930 * cfgexpand.c (expand_used_vars): Make the type of a local
17931 variable auto_vec.
17932 * genmatch.c (lower_for): Likewise.
17933 * haifa-sched.c (haifa_sched_init): Likewise.
17934 (add_to_speculative_block): Likewise.
17935 (create_check_block_twin): Likewise.
17936 * predict.c (handle_missing_profiles): Likewise.
17937 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
17938 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
17939 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
17940 Likewise.
17941 (maybe_lower_iteration_bound): Likewise.
17942 * tree-ssa-sccvn.c (DFS): Likewise.
17943 * tree-stdarg.c (reachable_at_most_once): Likewise.
17944 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
17945 (vectorizable_store): Likewise.
17946
17947 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17948
17949 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
17950 (sccvn_dom_walker): make cond_stack an auto_vec.
17951
17952 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17953
17954 * ree.c (struct ext_state): Make type of members auto_vec.
17955 (find_and_remove_re): Adjust.
17956
17957 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17958
17959 * cfgexpand.c (struct stack_vars_data): Make type of fields
17960 auto_vec.
17961 (expand_used_vars): Adjust.
17962
17963 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17964
17965 * ipa.c (record_cdtor_fn): Adjust.
17966 (build_cdtor_fns): Likewise.
17967 (ipa_cdtor_merge): Make static_ctors and static_dtors local
17968 variables.
17969
17970 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17971
17972 * genextract.c (struct accum_extract): Add constructor and make
17973 members auto_vec.
17974 (gen_insn): Adjust.
17975
17976 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17977
17978 * tree.c (struct free_lang_data_d): Add constructor and change
17979 types of members to ones that automatically manage resources.
17980 (fld_worklist_push): Adjust.
17981 (find_decls_types): Likewise.
17982 (find_decls_types_in_eh_region): Likewise.
17983 (free_lang_data_in_cgraph): Stop manually creating and
17984 destroying members of free_lang_data_d.
17985
17986 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
17987
17988 PR rtl-optimization/68961
17989 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
17990 peephole variant. Use sse_reg_operand predicates.
17991
17992 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
17993
17994 * config/i386/predicates.md (x86_64_immediate_operand)
17995 <case CONST_INT>: Remove unneeded truncation to DImode.
17996 <case CONST>: Ditto.
17997 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
17998
17999 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18000
18001 PR target/71805
18002 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18003 The xxperm and xxpermr instructions require that the 2nd input
18004 operand overlap with the output operand, and not the 1st.
18005 (altivec_vperm_v8hiv16qi): Likewise.
18006 (altivec_vperm_<mode>_uns_internal): Likewise.
18007 (altivec_vpermr_<mode>_internal): Likewise.
18008 (vperm_v8hiv4si): Likewise.
18009 (vperm_v16qiv8hi): Likewise.
18010
18011 2016-07-12 Nathan Sidwell <nathan@acm.org>
18012
18013 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18014 when -mno-pic-data-is-text-relative is in effect, by default.
18015 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18016 behavior and clarify.
18017
18018 2016-07-12 Martin Liska <mliska@suse.cz>
18019
18020 * params.def: Add avg-loop niter.
18021 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18022 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18023 * doc/invoke.texi: Document the new parameter.
18024
18025 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18026
18027 PR middle-end/71700
18028 * expr.c (store_constructor): Mask sign-extended bits when widening
18029 sub-word constructor element at the start of a word.
18030
18031 2016-07-12 Martin Liska <mliska@suse.cz>
18032
18033 * Makefile.in: Append rule for params-options.h.
18034 * params-options.h: New file.
18035
18036 2016-07-12 Martin Liska <mliska@suse.cz>
18037
18038 * ira-build.c (mark_loops_for_removal): Properly iterate
18039 loops.
18040
18041 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18042 Richard Biener <rguenther@suse.de>
18043
18044 PR tree-optimization/23286
18045 PR tree-optimization/70159
18046 * doc/invoke.texi: Document -fcode-hoisting.
18047 * common.opt (fcode-hoisting): New flag.
18048 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18049 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18050 (do_regular_insertion): Rename to ...
18051 (do_pre_regular_insertion): ... this and amend general comments
18052 on insertion strathegy.
18053 (do_partial_partial_insertion): Rename to ...
18054 (do_pre_partial_partial_insertion): ... this.
18055 (do_hoist_insertion): New function.
18056 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18057 and call do_hoist_insertion properly.
18058 (insert): Adjust.
18059 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18060 (pass_pre::execute): Register hoist_insert stats.
18061
18062 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18063
18064 PR middle-end/71716
18065 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18066 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18067 is different from mode's bitsize. Small cleanup.
18068
18069 2016-07-12 Richard Biener <rguenther@suse.de>
18070
18071 PR rtl-optimization/68961
18072 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18073 to simplify to a non-constant.
18074
18075 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18076
18077 PR middle-end/71758
18078 * omp-low.c (expand_omp_target): Gimplify device.
18079
18080 PR tree-optimization/71823
18081 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18082 to get vec_oprnds2 from op2.
18083
18084 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18085
18086 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18087 Hoist common subexpressions.
18088 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18089
18090 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18091
18092 PR target/71800
18093 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18094 prevent generation of 'stxsiwx' on pre Power8 hardware.
18095
18096 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18097
18098 * input.c: Include cpplib.h.
18099 (selftest::temp_source_file): New class.
18100 (selftest::temp_source_file::temp_source_file): New ctor.
18101 (selftest::temp_source_file::~temp_source_file): New dtor.
18102 (selftest::should_have_column_data_p): New function.
18103 (selftest::test_should_have_column_data_p): New function.
18104 (selftest::temp_line_table): New class.
18105 (selftest::temp_line_table::temp_line_table): New ctor.
18106 (selftest::temp_line_table::~temp_line_table): New dtor.
18107 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18108 it to create a temp_line_table.
18109 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18110 locations that are known to have column data.
18111 (selftest::line_table_case): New struct.
18112 (selftest::test_reading_source_line): Move tempfile handling
18113 to class temp_source_file.
18114 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18115 (selftest::assert_token_loc_eq): New function.
18116 (ASSERT_TOKEN_LOC_EQ): New macro.
18117 (selftest::test_lexer): New function.
18118 (selftest::boundary_locations): New array.
18119 (selftest::input_c_tests): Call test_should_have_column_data_p.
18120 Loop over a test matrix of interesting values of location and
18121 default_range_bits, calling test_lexer on each case in the matrix.
18122 Move call to test_accessing_ordinary_linemaps into the matrix.
18123 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18124 (ASSERT_EQ_AT): New macro.
18125
18126 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18127
18128 PR target/71801
18129 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18130 Don't convert TImode in debug insn.
18131
18132 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18133
18134 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18135 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18136 (tree_type_common::lang_flag_7): New.
18137 (tree_type_common::spare): Reduce size.
18138 * tree.h (TYPE_ALIGN_OK): Remove.
18139 (TYPE_LANG_FLAG_7): New.
18140 (get_inner_reference): Adjust header.
18141 * print-tree.c (print_node): Adjust.
18142 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18143 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18144 calls to get_inner_reference.
18145 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18146 handling of TYPE_ALIGN_OK.
18147 * builtins.c (get_object_alignment_2): Adjust call to
18148 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18149 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18150 TYPE_ALIGN_OK.
18151 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18152 * cfgexpand.c (expand_debug_expr): Likewise.
18153 * dbxout.c (dbxout_expand_expr): Likewise.
18154 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18155 loc_list_from_tree, fortran_common): Likewise.
18156 * fold-const.c (optimize_bit_field_compare,
18157 decode_field_reference, fold_unary_loc, fold_comparison,
18158 split_address_to_core_and_offset): Likewise.
18159 * gimple-laddress.c (execute): Likewise.
18160 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18161 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18162 * hsa-gen.c (gen_hsa_addr): Likewise.
18163 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18164 * tsan.c (instrument_expr): Likewise.
18165 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18166 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18167 * tree-affine.c (tree_to_aff_combination,
18168 get_inner_reference_aff): Adjust calls to get_inner_reference.
18169 * tree-data-ref.c (split_constant_offset_1,
18170 dr_analyze_innermost): Likewise.
18171 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18172 * tree-sra.c (ipa_sra_check_caller): Likewise.
18173 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18174 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18175 bswap_replace): Likewise.
18176 * tree-vect-data-refs.c (vect_check_gather,
18177 vect_analyze_data_refs): Likewise.
18178 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18179 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18180 TYPE_ALIGN_OK.
18181
18182 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18183
18184 * Makefile.in (selftest-valgrind): New phony target.
18185 * function-tests.c (selftest::build_cfg): Delete pass instances
18186 created by the test.
18187 (selftest::convert_to_ssa): Likewise.
18188 (selftest::test_expansion_to_rtl): Likewise.
18189 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18190 vectors.
18191 (selftest::test_diamond): Likewise.
18192
18193 2016-07-11 Richard Biener <rguenther@suse.de>
18194
18195 PR tree-optimization/71816
18196 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18197 than replacing all of its operands.
18198
18199 2016-07-11 Alan Modra <amodra@gmail.com>
18200
18201 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18202 (ctr<mode>): Add unspec.
18203 (ctr<mode>_internal*): Likewise.
18204
18205 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18206
18207 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18208 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18209
18210 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18211
18212 PR rtl-optimization/71621
18213 * lra-constraints.c (process_alt_operands): Check combination of
18214 reg class and mode.
18215
18216 2016-07-08 Jason Merrill <jason@redhat.com>
18217 Richard Biener <rguenther@suse.de>
18218
18219 P0145: Refining Expression Order for C++.
18220 * gimplify.c (initial_rhs_predicate_for): New.
18221 (gimplfy_modify_expr): Gimplify RHS before LHS.
18222
18223 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18224
18225 PR target/71297
18226 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18227 Allow standard error handling to take over when a wrong number
18228 of arguments is presented to __builtin_vec_ld () or
18229 __builtin_vec_st ().
18230
18231 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18232
18233 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18234 variants.
18235 (smin): Likewise.
18236 (fmax): New entry.
18237 (fmin): Likewise.
18238 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18239 __builtin_aarch64_fmaxv2sf.
18240 (vmaxnmq_f32): Likewise.
18241 (vmaxnmq_f64): Likewise.
18242 (vminnm_f32): Likewise.
18243 (vminnmq_f32): Likewise.
18244 (vminnmq_f64): Likewise.
18245
18246 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18247
18248 PR target/71806
18249 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18250 enable -mfloat128-hardware by default.
18251 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18252 that IEEE 128-bit hardware support needs.
18253 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18254 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18255 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18256 floating point requires.
18257 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18258 -mfloat128 and -mfloat128-hardware changes.
18259
18260 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18261
18262 PR tree-optimization/71667
18263 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18264
18265 2016-07-08 Martin Liska <mliska@suse.cz>
18266
18267 PR middle-end/71606
18268 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18269 folding produces SAVE_EXPRs, thus return false for the type.
18270
18271 2016-07-07 Martin Liska <mliska@suse.cz>
18272
18273 * file-find.c (remove_prefix): New function.
18274 * file-find.h (remove_prefix): Declare the function.
18275 * gcc-ar.c (main): Skip a folder of the wrapper if
18276 a wrapped binary would point to the same file.
18277
18278 2016-07-07 Jan Hubicka <jh@suse.cz>
18279
18280 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18281 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18282 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18283
18284 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18285
18286 PR ipa/71624
18287 * ipa-inline-analysis.c (compute_inline_parameters): Set
18288 local.can_change_signature to false for intrumentation
18289 thunk callees.
18290
18291 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18292
18293 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18294 with TARGET_HAVE_MOVT.
18295 (TARGET_HAVE_MOVT): Define.
18296 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18297 availability with TARGET_HAVE_MOVT.
18298 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18299 availability.
18300 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18301 TARGET_THUMB2.
18302 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18303 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18304 * config/arm/constraints.md (define_constraint "j"): Use
18305 TARGET_HAVE_MOVT to check MOVT availability.
18306
18307 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18308
18309 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18310
18311 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18312
18313 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18314 (armv8-m.main): Likewise.
18315 (armv8-m.main+dsp): Likewise.
18316 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18317 (FL_FOR_ARCH8M_MAIN): Likewise.
18318 * config/arm/arm-tables.opt: Regenerate.
18319 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18320 armv8-m.main+dsp to BE8_LINK_SPEC.
18321 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18322 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18323 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18324 Baseline and Mainline.
18325 (arm_option_override_internal): Also disable arm_restrict_it when
18326 !arm_arch_notm. Update comment for -munaligned-access to also cover
18327 ARMv8-M Baseline.
18328 (arm_file_start): Increase buffer size for printing architecture name.
18329 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18330 and armv8-m.main+dsp.
18331 (mno-unaligned-access): Clarify that this is disabled by default for
18332 ARMv8-M Baseline architectures as well.
18333
18334 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18335
18336 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18337 decide whether to prevent some libgcc routines being included for some
18338 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18339 link between this condition and the one in
18340 libgcc/config/arm/lib1func.S.
18341
18342 2016-07-07 Richard Biener <rguenther@suse.de>
18343
18344 * tree-ssa-pre.c: Include alias.h.
18345 (compute_avail): If we have multiple VN_REFERENCEs with the
18346 same hashtable entry adjust that to make it a valid replacement
18347 for all of them with respect to alignment and aliasing
18348 when doing insertion.
18349 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18350 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18351
18352 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18353
18354 PR target/70098
18355 PR target/71763
18356 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18357 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18358 constraint.
18359
18360 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18361
18362 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18363 (adjust_mems): Adjust.
18364 (adjust_insn): Likewise.
18365 (prepare_call_arguments): Likewise.
18366
18367 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18368
18369 * gcse.c (struct ls_expr): Make stores field a vector.
18370 (ldst_entry): Adjust.
18371 (free_ldst_entry): Likewise.
18372 (print_ldst_list): Likewise.
18373 (compute_ld_motion_mems): Likewise.
18374 (update_ld_motion_stores): Likewise.
18375
18376 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18377
18378 * gcse.c (struct ls_expr): Remove loads field.
18379 (ldst_entry): Adjust.
18380 (free_ldst_entry): Likewise.
18381 (print_ldst_list): Likewise.
18382 (compute_ld_motion_mems): Likewise.
18383
18384 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18385
18386 * store-motion.c (struct st_expr): Make antic_stores a vector.
18387 (st_expr_entry): Adjust.
18388 (free_st_expr_entry): Likewise.
18389 (print_store_motion_mems): Likewise.
18390 (find_moveable_store): Likewise.
18391 (compute_store_table): Likewise.
18392 (remove_reachable_equiv_notes): Likewise.
18393 (replace_store_insn): Likewise.
18394 (build_store_vectors): Likewise.
18395
18396 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18397
18398 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18399 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18400
18401 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18402
18403 PR tree-optimization/71518
18404 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18405 misalign also for outer loops with negative step.
18406
18407 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18408
18409 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18410 (cortex_a53_shift): Add mov_shift.
18411 (cortex_a53_shift_reg): Add new reservation for register shifts.
18412 (cortex_a53_alu): Remove bfm.
18413 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18414 (cortex_a53_alu_extr): Add new reservation for EXTR.
18415 (bypasses): Improve bypass modelling.
18416
18417 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18418
18419 PR target/50739
18420 * config/avr/avr.c (avr_asm_select_section): Strip off
18421 SECTION_DECLARED from flags when calling get_section.
18422
18423 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18424
18425 * tree-vectorizer.h (vect_memory_access_type): Add
18426 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18427 * tree-vect-stmts.c (compare_step_with_zero): New function.
18428 (perm_mask_for_reverse): Move further up file.
18429 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18430 step is negative.
18431 (get_negative_load_store_type): New function.
18432 (get_load_store_type): Call it. Add an ncopies argument.
18433 (vectorizable_mask_load_store): Update call accordingly and
18434 remove tests for negative steps.
18435 (vectorizable_store, vectorizable_load): Likewise. Handle new
18436 memory_access_types.
18437
18438 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18439
18440 * tree-vectorizer.h (vect_memory_access_type): New enum.
18441 (_stmt_vec_info): Add a memory_access_type field.
18442 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18443 (vect_model_store_cost): Take an access type instead of a boolean.
18444 (vect_model_load_cost): Likewise.
18445 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18446 vect_model_store_cost and vect_model_load_cost.
18447 * tree-vect-stmts.c (vec_load_store_type): New enum.
18448 (vect_model_store_cost): Take an access type instead of a
18449 store_lanes_p boolean. Simplify tests.
18450 (vect_model_load_cost): Likewise, but for load_lanes_p.
18451 (get_group_load_store_type, get_load_store_type): New functions.
18452 (vectorizable_store): Use get_load_store_type. Record the access
18453 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18454 (vectorizable_load): Likewise.
18455 (vectorizable_mask_load_store): Likewise. Replace is_store
18456 variable with vls_type.
18457
18458 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18459
18460 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18461 single_element_p parameter.
18462 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18463 Check the PR65518 case here rather than in vectorizable_load.
18464 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18465 * tree-vect-stmts.c (vectorizable_load): Likewise.
18466
18467 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18468
18469 * tree-vectorizer.h (gather_scatter_info): New structure.
18470 (vect_check_gather_scatter): Return a bool rather than a decl.
18471 Replace return-by-pointer arguments with a single
18472 gather_scatter_info *.
18473 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18474 (vect_analyze_data_refs): Update call accordingly.
18475 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18476 (vectorizable_mask_load_store): Likewise. Also record the
18477 offset dt and vectype in the gather_scatter_info.
18478 (vectorizable_store): Likewise.
18479 (vectorizable_load): Likewise.
18480
18481 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18482
18483 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18484 strided groups, use the cost of N scalar accesses instead
18485 of ncopies vector accesses.
18486 (vect_model_load_cost): Likewise.
18487
18488 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18489
18490 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18491 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18492 variable to indicate when once-per-group costs are being used.
18493 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18494
18495 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18496
18497 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18498 peeling-for-gaps condition.
18499
18500 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18501
18502 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18503 element to register if it doesn't match general_operand.
18504
18505 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18506 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18507
18508 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18509 prototype.
18510 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18511 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18512 (SIGNBIT): New mode iterator.
18513 (Fsignbit): New mode attribute.
18514 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18515 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18516 when direct moves are available.
18517 (signbit<mode>2_dm): New define_insn_and_split).
18518 (signbit<mode>2_dm2): New define_insn.
18519
18520 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18521
18522 PR rtl-optimization/71594
18523 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18524 into subregs of appropriate mode before trying to emit a conditional
18525 move.
18526
18527 2016-07-05 Jan Hubicka <jh@suse.cz>
18528
18529 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18530 (simple_iv): Use it.
18531
18532 2016-07-05 Jan Hubicka <jh@suse.cz>
18533
18534 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18535
18536 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18537
18538 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18539 "offmemok".
18540
18541 2016-07-05 Jan Hubicka <jh@suse.cz>
18542
18543 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18544 IV can overflow.
18545
18546 2016-07-05 Richard Biener <rguenther@suse.de>
18547
18548 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18549 Handle empty else block.
18550 (is_feasible_trace): Likewise.
18551 (split_paths): Likewise.
18552
18553 2016-07-05 Richard Biener <rguenther@suse.de>
18554
18555 * tree-loop-distribution.c (distribute_loop): Fix issue with
18556 the cost model loop.
18557
18558 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18559
18560 * config/arm/neon-testgen.ml: Delete.
18561 * config/arm/neon.ml: Delete.
18562
18563 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18564
18565 PR c++/71739
18566 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18567 directly using TREE_PURPOSE.
18568
18569 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18570
18571 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18572 * config/aarch64/aarch64_neon.h: Likewise.
18573 * config/aarch64/arm_neon.h: Likewise.
18574 * config/aarch64/atomics.md: Likewise.
18575 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18576 * doc/invoke.texi: Likewise.
18577
18578 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18579
18580 * config/s390/s390.md: Add "z13" cpu_facility.
18581 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18582 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18583 condition" type instructions.
18584
18585 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18586 Jeff Law <law@redhat.com>
18587
18588 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18589 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18590
18591 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18592
18593 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18594 permutation for TARGET_AVX512F.
18595 (ix86_expand_vec_one_operand_perm_avx512): New function.
18596 (expand_vec_perm_1): Invoke introduced function.
18597 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18598 it may be not valid after vectorization.
18599
18600 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18601
18602 PR target/63874
18603 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18604 typo in comment. Only force to memory if it is a weak
18605 external reference.
18606
18607 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18608 Jiong Wang <jiong.wang@arm.com>
18609
18610 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18611 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18612 (AARCH64_FL_F16): New.
18613 (AARCH64_FL_FOR_ARCH8_2): New.
18614 (AARCH64_ISA_8_2): New.
18615 (AARCH64_ISA_F16): New.
18616 (TARGET_FP_F16INST): New.
18617 (TARGET_SIMD_F16INST): New.
18618 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18619 ("fp"): Disabling "fp" also disables "fp16".
18620 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18621 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18622 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18623 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18624
18625 2016-07-04 Jan Beulich <jbeulich@suse.com>
18626
18627 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18628
18629 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18630
18631 PR target/71720
18632 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18633 the insns, use an insn form that does not adjust the offset on
18634 little endian systems.
18635
18636 2016-07-01 Jan Beulich <jbeulich@suse.com>
18637
18638 * varasm.c (get_variable_section): Validate initializer in
18639 named .bss-like sections.
18640
18641 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18642
18643 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18644 Exchange the order of the second and third operands in the vpermr
18645 instruction tmeplate.
18646
18647 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18648
18649 PR target/71698
18650 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18651 Disallow TDmode values.
18652
18653 2016-07-01 Alan Modra <amodra@gmail.com>
18654
18655 PR rtl-optimization/71709
18656 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18657 being set, not referenced.
18658
18659 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18660
18661 PR tree-optimization/70729
18662 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18663 of loop since it can be not valid after transformation.
18664
18665 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18666
18667 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18668 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18669
18670 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18671
18672 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18673 for NULL decl.
18674
18675 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18676
18677 PR target/71677
18678 * config/rs6000/constraints.md (wY constraint): New constraint to
18679 match the requirements for the LXSD and STXSD instructions.
18680 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18681 predicate to match the requirements for the LXSD and STXSD
18682 instructions.
18683 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18684 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18685 to make sure that the bottom 2 bits of offset are 0, the address
18686 form is offsettable, and no updating is done in the address mode.
18687 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18688 (movdi_internal32): Likewise
18689 (movdi_internal64): Likewise.
18690
18691 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18692
18693 PR tree-optimization/71707
18694 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18695 strinfo even for ADDR_EXPR ptr.
18696
18697 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18698
18699 * config/rs6000/altivec.md (darn_32): Change the condition to
18700 TARGET_P9_MISC instead of TARGET_MODULO.
18701 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18702 condition expression.
18703 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18704 condition expression.
18705 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18706 (DFP_TEST): New code iterator.
18707 (dfptstsfi_<code>_mode>): New define_expand.
18708 (*dfp_sgnfcnc_<mode>): New define_insn.
18709 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18710 definition next to BU_P9_MISC_1 definition and change the MASK
18711 value to RS6000_BTM_P9_MISC.
18712 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18713 (BU_P9_64BIT_MISC_0): Likewise.
18714 (BU_P9_DFP_MISC_0): New macro definition.
18715 (BU_P9_DFP_MISC_1): New macro definition.
18716 (BU_P9_DFP_MISC_2): New macro definition.
18717 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18718 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18719 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18720 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18721 (TSTSFI_LT_TD): Likewise.
18722 (TSTSFI_EQ_DD): Likewise.
18723 (TSTSFI_EQ_TD): Likewise.
18724 (TSTSFI_GT_DD): Likewise.
18725 (TSTSFI_GT_TD): Likewise.
18726 (TSTSFI_OV_DD): Likewise.
18727 (TSTSFI_OV_TD): Likewise.
18728 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18729 (TSTSFI_LT_DD): Likewise.
18730 (TSTSFI_LT_TD): Likewise.
18731 (TSTSFI_EQ): Likewise.
18732 (TSTSFI_EQ_DD): Likewise.
18733 (TSTSFI_EQ_TD): Likewise.
18734 (TSTSFI_GT): Likewise.
18735 (TSTSFI_GT_DD): Likewise.
18736 (TSTSFI_GT_TD): Likewise.
18737 (TSTSFI_OV): Likewise.
18738 (TSTSFI_OV_DD): Likewise.
18739 (TSTSFI_OV_TD): Likewise.
18740 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18741 overloaded test significance functions.
18742 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18743 OPTION_MASK_P9_MISC into the representation of this mask.
18744 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18745 of this mask.
18746 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18747 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18748 non-zero.
18749 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18750 argument is a 6-bit unsigned literal value if the icode argument
18751 represents a DFP test significance built-in call.
18752 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18753 flag used independently and in combination with the
18754 RS6000_BTM_64BIT flag.
18755 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18756 (rs6000_builtin_mask_names): Add entry for power9-misc
18757 command-line option.
18758 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18759 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18760 RS6000_BTM_P9_MISC macros.
18761 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18762 option and change the description of the -mpower9-vector option to
18763 enable only vector instructions, removing its erroneously claimed
18764 support for scalar instructions.
18765 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18766 the ISA 3.0 digital floating point test significance built-in
18767 functions.
18768
18769 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18770
18771 * config/aarch64/aarch64.c (cortexa35_tunings):
18772 Enable AES fusion. Use cortexa57_branch_cost.
18773 (cortexa53_tunings): Use cortexa57_branch_cost.
18774 (cortexa72_tunings): Use cortexa57_branch_cost.
18775 Use AUTOPREFETCHER_WEAK.
18776 (cortexa73_tunings): Use cortexa57_branch_cost.
18777
18778 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18779 James Greenhalgh <james.greenhalgh@arm.com>
18780
18781 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18782 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18783 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18784 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18785 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18786 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18787 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18788 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18789 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18790 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18791 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18792 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18793 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18794 New intrinsics.
18795
18796 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18797 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18798
18799 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18800 New define_insn.
18801 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18802
18803 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18804
18805 PR driver/71651
18806 * gcc.c (driver::build_option_suggestions): Pass "option" to
18807 add_misspelling_candidates.
18808 * opts-common.c (add_misspelling_candidates): Add "option" param;
18809 use it to avoid adding negated forms for options marked with
18810 RejectNegative.
18811 * opts.h (add_misspelling_candidates): Add "option" param.
18812
18813 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18814
18815 PR middle-end/71693
18816 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18817 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18818 first when permuting bitwise operation with rotate. Cast
18819 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18820
18821 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18822
18823 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18824 for misspelled param names.
18825 * params.c: Include spellcheck.h.
18826 (find_param_fuzzy): New function.
18827 * params.h (find_param_fuzzy): New prototype.
18828 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18829 * spellcheck.h (struct edit_distance_traits<const char *>):
18830 ...here.
18831
18832 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18833
18834 * config/rs6000/predicates.md (const_0_to_7_operand): New
18835 predicate, recognize 0..7.
18836 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18837 support for doing extracts from V16QImode, V8HImode, V4SImode
18838 under ISA 3.0.
18839 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18840 vector extract support.
18841 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18842 for ISA 3.0 vector extract.
18843 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18844 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18845 extracts of a constant element number from small integer vectors
18846 on 64-bit ISA 3.0 systems.
18847 (vsx_extract_<mode>_di): Likewise.
18848 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18849 say when we can do ISA 3.0 vector extracts.
18850 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18851 registers, using the stxsiwx instruction.
18852
18853 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18854
18855 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
18856 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
18857 qdf24xx_regmove_cost, qdf24xx_tunings): New.
18858 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
18859 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
18860 * config/arm/arm.c (arm_qdf24xx_tune): New.
18861
18862 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
18863
18864 * config/aarch64/aarch64.c (cortexa53_tunings):
18865 Increase loop alignment to 8. Set function alignment to 16.
18866 (cortexa35_tunings): Likewise.
18867 (cortexa57_tunings): Increase loop alignment to 8.
18868 (cortexa72_tunings): Likewise.
18869 (cortexa73_tunings): Likewise.
18870
18871 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
18872
18873 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
18874 for arm_fp16_ok and arm_fp16_hw.
18875 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
18876 arm_fp16_alternative.
18877
18878 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
18879
18880 PR tree-optimization/71655
18881 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
18882 types when swapping operands.
18883
18884 2016-06-29 Martin Liska <mliska@suse.cz>
18885
18886 PR middle-end/71585
18887 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
18888 * ipa-inline-transform.c (inline_call): Remove unnecessary call
18889 of build_optimization_node.
18890
18891 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
18892
18893 PR tree-optimization/70729
18894 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
18895 independent in loops having positive safelen value.
18896 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18897 it may be not valid after vectorization.
18898
18899 2016-06-29 Jakub Jelinek <jakub@redhat.com>
18900
18901 PR tree-optimization/71625
18902 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
18903 is sorted by ascending list->offset. If PTR is non-NULL and there is
18904 previous strinfo, call get_stridx_plus_constant.
18905 (get_stridx): Pass exp as second argument to get_addr_stridx.
18906 (addr_stridxptr): Add missing list = list->next, so that there can be
18907 more than one entries in the list. Bump limit from 16 to 32. Ensure
18908 the list is sorted by ascending list->offset.
18909 (get_stridx_plus_constant): Adjust so that it can be also called with
18910 ADDR_EXPR instead of SSA_NAME as PTR.
18911 (handle_char_store): Pass NULL_TREE as second argument to
18912 get_addr_stridx.
18913
18914 2016-06-29 Richard Biener <rguenther@suse.de>
18915
18916 PR rtl-optimization/68961
18917 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
18918
18919 2016-06-29 Richard Biener <rguenther@suse.de>
18920
18921 PR middle-end/71002
18922 * alias.c (component_uses_parent_alias_set_from): Handle
18923 type punning through union accesses by using the union alias set.
18924 * gimple.c (gimple_get_alias_set): Remove union type punning case.
18925
18926 2016-07-29 Richard Biener <rguenther@suse.de>
18927
18928 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
18929 precision not matching mode precision.
18930
18931 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
18932
18933 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
18934 pa_output_arg_descriptor.
18935 (call_val_symref_64bit_post_reload): Likewise.
18936 (call_val_powf_64bit_post_reload): Likewise.
18937 (sibcall_internal_symref_64bit): Likewise.
18938 (sibcall_value_internal_symref_64bit): Likewise.
18939
18940 2016-06-28 Jakub Jelinek <jakub@redhat.com>
18941
18942 PR middle-end/71626
18943 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
18944 a constant, force its SUBREG_REG into memory or register instead
18945 of whole op1.
18946
18947 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18948
18949 PR target/58655
18950 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
18951 * doc/invoke.texi (AVR Options): Document it.
18952
18953 2016-06-28 Walter Lee <walt@tilera.com>
18954
18955 * config/tilegx/linux.h: Do not include arch/icache.h
18956 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18957 * config/tilepro/linux.h: Do not include arch/icache.h
18958 (CLEAR_INSN_CACHE): Provide inlined definition directly.
18959
18960 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
18961
18962 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
18963 for big-endian BIT_FIELD_REF.
18964
18965 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
18966
18967 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
18968 ('size' attribute): Add '128'.
18969 Include power9.md.
18970 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
18971 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
18972 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
18973 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
18974 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
18975 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
18976 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
18977 *trunc<mode>df2_odd): Set size attribute to '128'.
18978 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
18979 * config/rs6000/power6.md (power6-fp): Include dfp type.
18980 * config/rs6000/power7.md (power7-fp): Likewise.
18981 * config/rs6000/power8.md (power8-fp): Likewise.
18982 * config/rs6000/power9.md: New file.
18983 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
18984 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
18985 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
18986 htmsimple.
18987 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
18988 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18989 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
18990 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
18991 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
18992 dfp_dscri_<mode>): Change type attribute to dfp.
18993 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
18994 attribute to vecsimple.
18995 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
18996 and prefetch streams.
18997 (rs6000_option_override_internal): Remove temporary code setting
18998 tuning to power8. Don't set rs6000_sched_groups for power9.
18999 (last_scheduled_insn): Change to rtx_insn *.
19000 (divide_cnt, vec_load_pendulum): New variables.
19001 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19002 (rs6000_issue_rate): Set issue rate for Power9.
19003 (is_power9_pairable_vec_type): New.
19004 (power9_sched_reorder2): New.
19005 (rs6000_sched_reorder2): Call new function for Power9 specific
19006 reordering.
19007 (insn_must_be_first_in_group): Remove Power9.
19008 (insn_must_be_last_in_group): Likewise.
19009 (force_new_group): Likewise.
19010 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19011 Initialize divide_cnt/vec_load_pendulum.
19012 (_rs6000_sched_context, rs6000_init_sched_context,
19013 rs6000_set_sched_context): Handle context save/restore of new
19014 variables.
19015
19016 2016-06-28 Richard Biener <rguenther@suse.de>
19017
19018 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19019 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19020 COMPONENT_REF operand.
19021 (nonoverlapping_component_refs_p): Likewise.
19022 * stor-layout.c (start_bitfield_representative): Mark
19023 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19024
19025 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19026
19027 * Makefile.in: Don't cat ../stage_current if it does not exist.
19028
19029 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19030 last argument is a bit-field.
19031
19032 PR rtl-optimization/71673
19033 * internal-fn.c (expand_arith_overflow_result_store): Use
19034 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19035 expand_simple_binop.
19036
19037 PR middle-end/66867
19038 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19039 expand_ifn_atomic_compare_exchange): New functions.
19040 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19041 * tree.h (build_call_expr_internal_loc): Rename to ...
19042 (build_call_expr_internal_loc_array): ... this. Fix up type of
19043 last argument.
19044 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19045 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19046 ATOMIC_COMPARE_EXCHANGE result.
19047 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19048 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19049 fold_builtin_atomic_compare_exchange): New prototypes.
19050 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19051 fold_builtin_atomic_compare_exchange): New functions..
19052 * tree-ssa.c (execute_update_addresses_taken): If
19053 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19054 of call when finding addressable vars, and if such var becomes
19055 non-addressable, call fold_builtin_atomic_compare_exchange.
19056
19057 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19058
19059 PR target/71670
19060 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19061 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19062
19063 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19064
19065 * config/rs6000/rs6000.md ('type' attribute): Add
19066 veclogical,veccmpfx,vecexts,vecmove insn types.
19067 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19068 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19069 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19070 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19071 *nabs<mode>2_hw): Change type to vecmove.
19072 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19073 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19074 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19075 *ieee_128bit_vsx_abs<mode>2_internal,
19076 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19077 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19078 *ieee128_mtvsrd_32bit): Change type to veclogical.
19079 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19080 *movdi_internal32, *movdi_internal64): Update insn types.
19081 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19082 vsx_extract_<mode>): Change type to veclogical.
19083 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19084 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19085 *vsx_sign_extend_si_v2di): Change type to vecexts.
19086 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19087 type to veclogical.
19088 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19089 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19090 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19091 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19092 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19093 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19094 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19095 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19096 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19097 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19098 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19099 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19100 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19101 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19102 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19103 (ppc7450-vecsimple): Add veclogical, vecmove.
19104 (ppc7450-veccmp): Add veccmpfx.
19105 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19106 vecmove.
19107 (ppc8540_vector_compare): Add veccmpfx.
19108 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19109 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19110 (cell-vecsimple): Add veclogical, vecmove.
19111 (cell-veccmp): Add veccmpfx.
19112 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19113 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19114 veccmpfx.
19115 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19116 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19117 (power4-vecsimple): Add veclogical, vecmove.
19118 (power4-veccmp): Add veccmpfx.
19119 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19120 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19121 (power6-vecsimple): Add veclogical, vecmove.
19122 (power6-veccmp): Add veccmpfx.
19123 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19124 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19125 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19126 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19127 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19128 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19129 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19130 fpsimple.
19131 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19132
19133 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19134
19135 PR target/71656
19136 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19137 OPTION_MASK_P9_DFORM_VECTOR.
19138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19139 disable -mpower9-dform-vector when using reload.
19140 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19141 New 'strict' argument. Update all callers. Add strict addressing
19142 support.
19143 (rs6000_legitimate_offset_address_p): Remove call to
19144 virtual_stack_registers_memory_p.
19145 (rs6000_legitimize_reload_address): Add quad address support.
19146 (rs6000_legitimate_address_p): Move call to quad_address_p above
19147 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19148 to account for new strict usage.
19149 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19150 for new strict usage.
19151 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19152
19153 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19154
19155 PR target/70902
19156 PR target/71453
19157 PR target/71555
19158 PR target/71596
19159 PR target/71657
19160 * config/i386/i386.c (ix86_spill_class): Disable condition to
19161 always return NO_REGS.
19162
19163 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19164
19165 * predict.c: Include gimple-pretty-print.h
19166 (predicted_by_loop_heuristics_p): Check also
19167 PRED_LOOP_EXIT_WITH_RECURSION
19168 (predict_loops): Find self recursive calls and use special purpose
19169 predictors for them; dump log about decisions.
19170 (pass_profile::execute): Dump info about #of iterations.
19171 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19172 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19173
19174 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19175
19176 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19177 output_asm_insn calls and shorten long lines. Output .CALL
19178 argument descriptor using pa_output_arg_descriptor. Add various
19179 inline $$dyncall and other optimizations.
19180 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19181
19182 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19183
19184 PR tree-optimization/71643
19185 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19186 EH preds.
19187
19188 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19189 leak a bitmap if dep_bb is NULL.
19190
19191 PR tree-optimization/71631
19192 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19193 to rewrite_expr_tree even if negate_result, move new_lhs var
19194 declaration and initialization earlier, for powi_result set afterwards
19195 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19196 if new_lhs != lhs, and don't shadow gsi var.
19197
19198 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19199
19200 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19201 Add in_loop parameter.
19202 (predict_loops): Add loop guard heuristics.
19203 * predict.def (PRED_LOOP_GUARD): New heuristics.
19204
19205 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19206
19207 * predict.c: Include ipa-utils.h
19208 (tree_bb_level_prediction): Predict recursive calls.
19209 (tree_estimate_probability_bb): Skip inexpensive calls for call
19210 predictor.
19211 * predict.def (PRED_RECURSIVE_CALL): New.
19212
19213 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19214
19215 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19216 (BU_FLOAT128_1): Likewise.
19217 (FABSQ): Likewise.
19218 (COPYSIGNQ): Likewise.
19219 (RS6000_BUILTIN_NANQ): Likewise.
19220 (RS6000_BUILTIN_NANSQ): Likewise.
19221 (RS6000_BUILTIN_INFQ): Likewise.
19222 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19223 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19224 (TARGET_FOLD_BUILTIN): New #define.
19225 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19226 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19227 (rs6000_fold_builtin): New target hook implementation, handling
19228 folding of 128-bit NaNs and infinities.
19229 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19230 entries are filled in to avoid problems during bootstrap
19231 self-test; define builtins for 128-bit NaNs and infinities.
19232 (rs6000_opt_mask): Add entry for float128.
19233 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19234 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19235 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19236 (const_str_type_node): New #define.
19237 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19238 to a define_expand that dispatches to either copysign<mode>3_soft
19239 or copysign<mode>3_hard.
19240 (copysign<mode>3_hard): Rename from copysign<mode>3.
19241 (copysign<mode>3_soft): New define_insn.
19242 * doc/extend.texi: Document new builtins.
19243
19244 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19245
19246 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19247 PRIu64 instead of lu.
19248
19249 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19250
19251 PR debug/71642
19252 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19253 copy the type name.
19254
19255 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19256
19257 PR tree-optimization/71647
19258 * omp-low.c (lower_rec_input_clauses): Convert
19259 omp_clause_aligned_alignment (c) to size_type_node for the
19260 last argument of __builtin_assume_aligned.
19261
19262 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19263
19264 * configure.ac (calling ___tls_get_addr via GOT): New
19265 assembler/linker check.
19266 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19267 assembler and linker supports calling ___tls_get_addr via GOT.
19268 Otherise, defined to 0.
19269 * config.in: Regenerated.
19270 * configure: Likewise.
19271 * config/i386/constraints.md (Yb): New constraint.
19272 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19273 (REG_CLASS_NAMES): Likewise.
19274 (REG_CLASS_CONTENTS): Likewise.
19275 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19276 the b constraint with the Yb constraint. Call ___tls_get_addr
19277 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19278 is 1.
19279 (*tls_local_dynamic_base_32_gnu): Likewise.
19280 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19281 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19282 (*tls_local_dynamic_base_64_<mode>): Likewise.
19283
19284 2016-06-24 Martin Liska <mliska@suse.cz>
19285
19286 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19287 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19288 few functions.
19289 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19290 argument to true if the expected number of iterations is
19291 loop-based.
19292
19293 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19294
19295 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19296 assemble for 32bit target.
19297 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19298 and $ld_ix86_gld_32_opt to link for 32bit target.
19299 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19300 * configure: Regenerate.
19301
19302 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19303
19304 * config/arm/arm.c (int_log2): Delete definition and prototype.
19305 (shift_op): Use exact_log2 instead of int_log2.
19306 (vfp3_const_double_for_fract_bits): Likewise.
19307
19308 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19309
19310 * internal-fn.c (expand_arith_set_overflow): New function.
19311 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19312 Use it.
19313 (expand_arith_overflow_result_store): Likewise. Handle precision
19314 smaller than mode precision.
19315 * tree-vrp.c (extract_range_basic): For imag part, handle
19316 properly signed 1-bit precision result.
19317 * doc/extend.texi (__builtin_add_overflow): Document that last
19318 argument can't be pointer to enumerated or boolean type.
19319 (__builtin_add_overflow_p): Document that last argument can't
19320 have enumerated or boolean type.
19321
19322 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19323 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19324
19325 * config/rs6000/predicates.md (splat_input_operand): Rework.
19326 Don't allow constants, since the insns that use this predicate
19327 don't support constants. Constants are handled by other insns
19328 that are created via combine. During and after register
19329 allocation, only allow indexed or indirect addresses, and not
19330 general addresses. Only allow modes supported by the hardware.
19331 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19332 comment. Move check for using VSPLTIS<x> to a common location,
19333 instead of doing it in two different places.
19334
19335 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19336
19337 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19338 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19339 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19340 signature_CENTAUR_ebx.
19341
19342 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19343
19344 PR target/66232
19345 PR target/67400
19346 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19347 (as_ix86_gas_32_opt): This.
19348 (ld_ix86_tls_ldm_opt): Renamed to ...
19349 (ld_ix86_gld_32_opt): This.
19350 (R_386_TLS_LDM reloc): Updated.
19351 (R_386_GOT32X reloc): New assembler/linker check.
19352 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19353 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19354 defined to 0.
19355 * config.in: Regenerated.
19356 * configure: Likewise.
19357 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19358 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19359 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19360 if ix86_force_load_from_GOT_p returns true.
19361 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19362 ix86_force_load_from_GOT_p returns true.
19363 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19364 the external function address via the GOT slot.
19365 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19366 HAVE_AS_IX86_GOT32X before returning false.
19367 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19368 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19369
19370 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19371
19372 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19373
19374 2016-06-23 Andi Kleen <ak@linux.intel.com>
19375
19376 * Makefile.in: Regenerate.
19377 * doc/install.texi: Document autoprofiledbootstrap.
19378
19379 2016-06-23 Andi Kleen <ak@linux.intel.com>
19380
19381 * config/i386/gcc-auto-profile: New file.
19382
19383 2016-06-23 Martin Liska <mliska@suse.cz>
19384
19385 PR middle-end/71619
19386 * predict.c (predict_loops): Revert the hunk that was removed
19387 in r237103.
19388
19389 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19390
19391 * config.gcc: Add support for arm*-*-phoenix* targets.
19392 * config/arm/t-phoenix: New.
19393 * config/phoenix.h: New.
19394
19395 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19396 H.J. Lu <hongjiu.lu@intel.com>
19397
19398 PR target/67400
19399 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19400 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19401 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19402 ix86_force_load_from_GOT_p returns true.
19403 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19404 ix86_force_load_from_GOT_p returns true.
19405 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19406 ix86_force_load_from_GOT_p returns true.
19407 (ix86_expand_move): Load the external function address via the
19408 GOT slot if ix86_force_load_from_GOT_p returns true.
19409 * config/i386/predicates.md (x86_64_immediate_operand): Return
19410 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19411 (x86_64_zext_immediate_operand): Ditto.
19412
19413 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19414
19415 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19416
19417 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19418
19419 PR c/70339
19420 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19421 * diagnostic.c (pedwarn_at_rich_loc): New function.
19422 * spellcheck.h (best_match::best_match): Add a
19423 "best_distance_so_far" optional parameter.
19424 (best_match::set_best_so_far): New method.
19425 (best_match::get_best_distance): New accessor.
19426 (best_match::get_best_candidate_length): New accessor.
19427
19428 2016-06-22 Nick Clifton <nickc@redhat.com>
19429
19430 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19431 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19432 modes are accepted as well.
19433 (ucompare_loc_descriptor): Likewise.
19434 (minmax_loc_descriptor): Likewise.
19435 (clz_loc_descriptor): Likewise.
19436 (popcount_loc_descriptor): Likewise.
19437 (bswap_loc_descriptor): Likewise.
19438 (rotate_loc_descriptor): Likewise.
19439 (mem_loc_descriptor): Likewise.
19440 (loc_descriptor): Likewise.
19441
19442 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19443
19444 * common.opt (fdiagnostics-parseable-fixits): New option.
19445 * diagnostic.c: Include "selftest.h".
19446 (print_escaped_string): New function.
19447 (print_parseable_fixits): New function.
19448 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19449 (selftest::assert_print_escaped_string): New function.
19450 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19451 (selftest::test_print_escaped_string): New function.
19452 (selftest::test_print_parseable_fixits_none): New function.
19453 (selftest::test_print_parseable_fixits_insert): New function.
19454 (selftest::test_print_parseable_fixits_remove): New function.
19455 (selftest::test_print_parseable_fixits_replace): New function.
19456 (selftest::diagnostic_c_tests): New function.
19457 * diagnostic.h (struct diagnostic_context): Add field
19458 "parseable_fixits_p".
19459 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19460 -fdiagnostics-parseable-fixits.
19461 (-fdiagnostics-parseable-fixits): New option.
19462 * opts.c (common_handle_option): Handle
19463 -fdiagnostics-parseable-fixits.
19464 * selftest-run-tests.c (selftest::run_tests): Call
19465 selftest::diagnostic_c_tests.
19466 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19467
19468 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19469
19470 PR tree-optimization/71488
19471 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19472 comparison of boolean vectors.
19473 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19474 of boolean vectors using bitwise operations.
19475
19476 2016-06-22 Andreas Schwab <schwab@suse.de>
19477
19478 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19479 Remove declaration.
19480
19481 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19482
19483 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19484
19485 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19486
19487 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19488 print FLAGS_REG.
19489
19490 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19491
19492 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19493 * config/arm/arm-cores.def (cortex-a73): New entry.
19494 (cortex-a73.cortex-a35): Likewise.
19495 (cortex-a73.cortex-a53): Likewise.
19496 * config/arm/arm-tables.opt: Regenerate.
19497 * config/arm/arm-tune.md: Likewise.
19498 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19499 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19500 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19501 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19502 * doc/invoke.texi (ARM Options): Document cortex-a73,
19503 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19504
19505 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19506
19507 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19508 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19509 (cortex-a73.cortex-a35): Likewise.
19510 (cortex-a73.cortex-a53): Likewise.
19511 * config/aarch64/aarch64-tune.md: Regenerate.
19512 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19513 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19514 -mcpu and -mtune.
19515
19516 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19517
19518 * configure.ac (gcc_cv_as_compress_debug): Remove
19519 --compress-debug-sections as extra as switch.
19520 Handle gas --compress-debug-sections=type.
19521 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19522 Handle gld --compress-debug-sections=type.
19523 * configure: Regenerate.
19524
19525 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19526
19527 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19528
19529 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19530
19531 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19532 (do_rewrite): likewise.
19533
19534 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19535
19536 * common/config/mep/mep-common.c: Remove.
19537 * config.gcc: Remove mep-* support.
19538 * config/mep/constraints.md: Remove.
19539 * config/mep/default.h: Remove.
19540 * config/mep/intrinsics.h: Remove.
19541 * config/mep/intrinsics.md: Remove.
19542 * config/mep/ivc2-template.h: Remove.
19543 * config/mep/mep-c5.cpu: Remove.
19544 * config/mep/mep-core.cpu: Remove.
19545 * config/mep/mep-default.cpu: Remove.
19546 * config/mep/mep-ext-cop.cpu: Remove.
19547 * config/mep/mep-intrin.h: Remove.
19548 * config/mep/mep-ivc2.cpu: Remove.
19549 * config/mep/mep-pragma.c: Remove.
19550 * config/mep/mep-protos.h: Remove.
19551 * config/mep/mep.c: Remove.
19552 * config/mep/mep.cpu: Remove.
19553 * config/mep/mep.h: Remove.
19554 * config/mep/mep.md: Remove.
19555 * config/mep/mep.opt: Remove.
19556 * config/mep/predicates.md: Remove.
19557 * config/mep/t-mep: Remove.
19558 * doc/install.texi: Remove mep-* documentation.
19559 * doc/md.texi: Likewise.
19560
19561 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19562
19563 * config.gcc: Remove support for avr-rtems.
19564 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19565 * config/avr/rtems.h: Remove.
19566 * config/avr/t-rtems: Remove.
19567
19568 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19569
19570 * config.gcc: Remove m32r-rtems support.
19571 * config/m32r/rtems.h: Remove.
19572
19573 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19574
19575 * config.gcc: Remove h8300-rtems support.
19576 * config/h8300/rtems.h: Remove.
19577 * config/h8300/t-rtems: Remove.
19578
19579 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19580
19581 * config.gcc: Remove support for knetbsd.
19582 * configure.ac: Likewise.
19583 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19584 * config/knetbsd-gnu.h: Remove.
19585 * configure: Regenerate.
19586
19587 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19588
19589 * config.gcc: Remove support for openbsd 2 and 3.
19590 * config/openbsd-oldgas.h: Remove.
19591
19592 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19593
19594 * config.gcc: Remove interix support.
19595 * config/i386/i386-interix.h: Remove.
19596 * config/i386/interix.opt: Remove.
19597 * config/i386/t-interix: Remove.
19598 * configure: Regenerate.
19599 * configure.ac: Remove interix support.
19600 * doc/install.texi: Remove interix documentation.
19601
19602 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19603
19604 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19605 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19606 not defined.
19607
19608 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19609
19610 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19611 they are both PLACEHOLDER_EXPRs.
19612
19613 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19614
19615 * stor-layout.c (layout_type): Move setting complex MODE to
19616 layout_type, instead of setting it ahead of time by the caller.
19617 * tree.c (build_complex_type): Likewise.
19618
19619 2016-06-21 Martin Liska <mliska@suse.cz>
19620
19621 * predict.c (force_edge_cold): Replace imposisble with
19622 impossible.
19623
19624 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19625
19626 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19627 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19628
19629 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19630
19631 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19632
19633 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19634 Ilya Enkovich <ilya.enkovich@intel.com>
19635
19636 PR target/71549
19637 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19638 New member function to convert V1TImode register to SUBREG
19639 TImode in debug insn.
19640 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19641 after changing register mode to V1TImode.
19642
19643 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19644
19645 * config/aarch64/aarch64-cores.def (vulcan): New core.
19646 * config/aarch64/aarch64-tune.md: Regenerate.
19647 * doc/invoke.texi: Document vulcan as an available option.
19648
19649 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19650
19651 * cse.c (canon_asm_operands): New function extracted from...
19652 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19653 either standalone or member of a PARALLEL.
19654
19655 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19656
19657 PR target/30417
19658 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19659 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19660 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19661
19662 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19663
19664 PR target/71103
19665 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19666 constant addresses if can_create_pseudo_p.
19667
19668 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19669
19670 PR tree-optimization/71588
19671 * tree-ssa-strlen.c (valid_builtin_call): New function.
19672 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19673 it.
19674
19675 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19676
19677 PR middle-end/71581
19678 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19679 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19680 for conversion of scalar user var to complex type and use the
19681 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19682 punt.
19683
19684 PR rtl-optimization/71591
19685 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19686 don't run any tests.
19687
19688 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19689
19690 PR target/71571
19691 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19692 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19693 space for PIC with non-v32 and the common non-PIC "jump".
19694
19695 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19696
19697 PR target/71559
19698 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19699 returned values and add UN*/LTGT/*ORDERED cases with values matching
19700 D operand modifier on vcmp for AVX.
19701
19702 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19703
19704 * config/aarch64/aarch64.opt
19705 (mpc-relative-literal-loads): Rename internal option name.
19706 * config/aarch64/aarch64.c
19707 (aarch64_nopcrelative_literal_loads): Rename to
19708 aarch64_pcrelative_literal_loads.
19709 (aarch64_expand_mov_immediate): Likewise.
19710 (aarch64_secondary_reload): Likewise.
19711 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19712 (aarch64_override_options_after_change_1): Rename and simplify logic.
19713 (aarch64_classify_symbol): Merge large model checks into switch,
19714 remove pc-relative load check.
19715
19716 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19717
19718 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19719 costs relative to the cost of a register move.
19720
19721 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19722
19723 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19724 (vcvt_n_f64_u64): Likewise.
19725 (vcvt_n_s64_f64): Likewise.
19726 (vcvt_n_u64_f64): Likewise.
19727 (vcvt_f64_s64): Likewise.
19728 (vrecpe_f64): Likewise.
19729 (vcvt_f64_u64): Likewise.
19730 (vrecps_f64): Likewise.
19731
19732 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19733
19734 * config/aarch64/aarch64.md
19735 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19736 iterators.
19737 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19738 attributes.
19739 * config/aarch64/aarch64-builtins.c
19740 (aarch64_types_binop_uss_qualifiers): Delete.
19741 (TYPES_BINOP_USS): Likewise.
19742 (aarch64_types_binop_sus_qualifiers): Likewise.
19743 (TYPES_BINOP_SUS): Likewise.
19744 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19745 (TYPES_FCVTIMM_SUS): Likewise.
19746 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19747 rather than BINOP.
19748 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19749 (fcvtzs): Use SHIFTIMM rather than BINOP.
19750 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19751
19752 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19753
19754 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19755 costs relative to the cost of a register move.
19756
19757 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19758
19759 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19760 Allow scalar/single vector modes to be tieable.
19761
19762 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19763
19764 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19765
19766 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19767
19768 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19769 "alignement".
19770 * tree.h (TYPE_ALIGN): Likewise.
19771
19772 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19773
19774 PR target/71103
19775 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19776
19777 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19778
19779 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19780 literal" build warnings.
19781 (avr_print_operand_address): Dito.
19782
19783 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19784
19785 PR target/71375
19786 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19787 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19788
19789 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19790
19791 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19792
19793 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19794
19795 PR bootstrap/71435
19796 * reload1.c (reload): Pass 0 to finish_spills when called because
19797 update_eliminables_and_spill returns true and remove did_spill.
19798 (finish_spills): Adjust comment and document GLOBAL parameter.
19799
19800 2016-06-17 DJ Delorie <dj@redhat.com>
19801
19802 PR target/71338
19803 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19804 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19805 (umulqihi3_virt): Likewise.
19806 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19807 (umulqihi3_real): Likewise.
19808
19809 2016-06-17 Martin Liska <mliska@suse.cz>
19810
19811 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19812
19813 2016-06-17 Martin Liska <mliska@suse.cz>
19814
19815 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19816
19817 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19818
19819 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19820 __FAST_MATH__.
19821 (vaddq_f32): Likewise.
19822 (vmul_f32): Likewise.
19823 (vmulq_f32): Likewise.
19824 (vsub_f32): Likewise.
19825 (vsubq_f32): Likewise.
19826
19827 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19828
19829 PR tree-optimization/71347
19830 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19831 cost for all uses in group.
19832
19833 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19834
19835 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19836 insert gimple seq if it's not empty.
19837
19838 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19839
19840 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19841 member OFFSET.
19842 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19843 rather than OFFSET.
19844 (comp_dr_with_seg_len_pair): Ditto.
19845 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19846 struct dr_with_seg_len_pair against DR_OFFSET.
19847 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19848 DR_OFFSET directly.
19849
19850 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19851
19852 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19853
19854 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19855
19856 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
19857 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
19858 (pa_output_millicode_call): Likewise.
19859 (pa_output_call): Likewise.
19860 (pa_output_indirect_call): Likewise.
19861 (pa_asm_output_mi_thunk): Likewise.
19862
19863 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19864
19865 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
19866
19867 2016-06-16 Martin Liska <mliska@suse.cz>
19868
19869 * predict.c (combine_predictions_for_insn): When we find a first
19870 match predictor, we should consider just predictors with
19871 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
19872 DS theory predictor.
19873 (combine_predictions_for_bb): Likewise.
19874
19875 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19876
19877 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
19878 with base of reference to struct.
19879
19880 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19881
19882 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
19883
19884 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
19885
19886 PR target/71151
19887 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
19888 progmem_swtable_section.
19889 (progmem_swtable_section): Remove.
19890 (avr_asm_function_rodata_section): Remove.
19891 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
19892 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
19893
19894 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
19895
19896 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19897 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
19898 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
19899 signature_CENTAUR_ebx.
19900 * config/i386/i386.c (ix86_option_override_internal): Add
19901 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
19902 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
19903 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
19904
19905 2016-06-16 Martin Liska <mliska@suse.cz>
19906
19907 * predict.def: Add fortran loop preheader predictor.
19908 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
19909 fold IFN_BUILTIN_EXPECT with a known constant argument.
19910
19911 2016-06-16 Martin Liska <mliska@suse.cz>
19912
19913 * predict.def: Add 'Fortran' to display text of all
19914 PRED_FORTRAN_* predictors.
19915
19916 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
19917
19918 PR target/71242
19919 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
19920 [IA64_BUILTIN_NANSQ]: Ditto.
19921 (ia64_fold_builtin): New function.
19922 (TARGET_FOLD_BUILTIN): New define.
19923 (ia64_init_builtins) Declare const_string_type node.
19924 Add __builtin_nanq and __builtin_nansq builtin functions.
19925 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
19926
19927 2016-06-16 Nick Clifton <nickc@redhat.com>
19928
19929 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
19930 MSP430_HWMULT_ prefix to enum values.
19931 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
19932 * config/msp430/msp430.c: Update use of enum values.
19933 * config/msp430/msp430.md: Likewise.
19934 * config/msp430/msp430.opt: Likewise.
19935
19936 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
19937
19938 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
19939 of comparsions in the last iteration.
19940
19941 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19942 Joern Rennecke <joern.rennecke@embecosm.com>
19943
19944 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
19945 addresses.
19946 (arc_needs_pcl_p): Add GOTOFFPC.
19947 (arc_legitimate_pic_addr_p): Likewise.
19948 (arc_output_pic_addr_const): Likewise.
19949 (arc_legitimize_pic_address): Generate a pc-relative address using
19950 GOTOFFPC.
19951 (arc_output_libcall): Use @pcl syntax.
19952 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
19953 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
19954 (*movsi_insn): Use @pcl syntax.
19955 (doloop_begin_i): Likewise.
19956
19957 2016-06-16 Martin Liska <mliska@suse.cz>
19958
19959 * predict.def: Define a new predictor.
19960
19961 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
19962
19963 * config/arc/arc.opt (mtp-regno): Update text.
19964
19965 2016-06-16 Renlin Li <renlin.li@arm.com>
19966
19967 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
19968
19969 2016-06-16 Jakub Jelinek <jakub@redhat.com>
19970
19971 PR target/71554
19972 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
19973 (setcc + and peephole2): Likewise.
19974
19975 PR rtl-optimization/71532
19976 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
19977 memory slots.
19978
19979 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
19980
19981 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
19982 DImode constants with XXSPLTIB in vector registers.
19983 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
19984 vsx_extract_<mode>_internal{1,2} into a single insn that handles
19985 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
19986 extraction of the element at the top of the register as a scalar
19987 value.
19988 (vsx_extract_<mode>_internal1): Likewise.
19989 (vsx_extract_<mode>_internal2): Likewise.
19990 * config/rs6000/constraints.md (wi constraint): Remove a comment
19991 about DImode not being allowed in Altivec registers.
19992 (wB constraint): New constraint for constants that can be
19993 generated in Altivec registers with VSPLTISW/VUPKHSW.
19994 * config/rs6000/predicates.md (xxspltib_constant_split): Update
19995 comments.
19996 (xxspltib_constant_nosplit): Likewise.
19997 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
19998 support for -mupper-regs-di to enable DImode to go into Altivec
19999 registers.
20000 (POWERPC_MASKS): Likewise.
20001 (power7 cpu): Likewise.
20002 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20003 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20004 for DImode being allowed in Altivec registers. Update wi/wj
20005 constraints. Set scalar_in_vmx_p flag.
20006 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20007 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20008 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20009 (rs6000_opt_masks): Add -mupper-regs-di.
20010 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20011 direct move to use wi and not wj.
20012 (lfiwzx): Likewise.
20013 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20014 alternative.
20015 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20016 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20017 any VSX register, instead of just Altivec registers, to allow
20018 either operand to be an Altivec register or both.
20019 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20020 (movdi_internal32): Add support for -mupper-regs-di. Add support
20021 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20022 the alternatives and attributes to be lined up to be easier to
20023 read.
20024 (movdi_internal64): Likewise.
20025 (64-bit DImode splitters): Change predicates to only split loading
20026 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20027 load constants in ISA 3.0 or ISA 2.07 respectively.
20028 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20029 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20030 mention -mcpu=power9 sets these options.
20031 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20032 wB constraint.
20033
20034 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20035
20036 PR target/67353
20037 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20038 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20039 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20040 by default to warn misspelled interrupt/ signal handler.
20041 * doc/invoke.texi (AVR Options): Document it. Update description
20042 for -nodevicelib option.
20043
20044 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20045
20046 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20047 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20048 (aarch64_<sur>shll2_n<mode>): Likewise.
20049
20050 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20051
20052 PR middle-end/71529
20053 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20054 DECL_CONTEXT for copied arguments.
20055
20056 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20057
20058 PR tree-optimization/71483
20059 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20060 for slp
20061
20062 2016-06-15 Martin Liska <mliska@suse.cz>
20063
20064 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20065 instead of predict_edge w/o a probability.
20066
20067 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20068
20069 PR tree-optimization/71439
20070 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20071 live PHIs.
20072
20073 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20074
20075 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20076 register subregs in SET_SRC.
20077
20078 2016-06-15 Richard Biener <rguenther@suse.de>
20079
20080 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20081 store restrictions.
20082
20083 2016-06-15 Richard Biener <rguenther@suse.de>
20084
20085 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20086 not consider dependences between accesses that belong to the
20087 same group.
20088 (vect_analyze_data_ref_dependences): Do not analyze read-read
20089 or self-dependences.
20090
20091 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20092
20093 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20094 spellcheck.h.
20095 (find_closest_identifier): Reimplement in terms of
20096 best_match<tree,tree>.
20097 * spellcheck-tree.h: New file.
20098 * spellcheck.c (struct edit_distance_traits<const char *>): New
20099 struct.
20100 (find_closest_string): Reimplement in terms of
20101 best_match<const char *, const char *>.
20102 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20103 overload to spellcheck-tree.h.
20104 (find_closest_identifier): Likewise.
20105 (struct edit_distance_traits<T>): New template.
20106 (class best_match): New class.
20107
20108 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20109
20110 * selftest-run-tests.c (selftest::run_tests): Call
20111 selftest::spellcheck_tree_c_tests.
20112 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20113 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20114 (selftest::test_find_closest_identifier): New function.
20115 (selftest::spellcheck_tree_c_tests): New function.
20116 * spellcheck.c (selftest::test_find_closest_string): Verify that
20117 the order of the vec does not affect the results for this case.
20118 (selftest::test_data): New array.
20119 (selftest::test_metric_conditions): New function.
20120 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20121 Call selftest::test_metric_conditions.
20122
20123 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20124
20125 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20126 (BU_P9_MISC_1): Likewise.
20127 (BU_P9_64BIT_MISC_0): Likewise.
20128 (BU_P9_MISC_0): Likewise.
20129
20130 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20131
20132 * gcc-rich-location.c
20133 (gcc_rich_location::add_fixit_misspelled_id): New method.
20134 * gcc-rich-location.h
20135 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20136
20137 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20138
20139 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20140 FreeBSD 11 and above.
20141
20142 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20143
20144 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20145
20146 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20147
20148 * expmed.h: Close parenthesis in "at your option" in copyright
20149 boilerplate.
20150 * lower-subreg.h: Likewise.
20151
20152 2016-06-14 Richard Biener <rguenther@suse.de>
20153
20154 PR middle-end/71526
20155 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20156 if available.
20157
20158 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20159
20160 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20161 New function.
20162 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20163 mask+shift version.
20164 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20165 New prototype.
20166 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20167 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20168
20169 2016-06-14 Richard Biener <rguenther@suse.de>
20170
20171 PR tree-optimization/71522
20172 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20173 copying into float copying.
20174
20175 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20176
20177 PR tree-optimization/71520
20178 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20179 (replace_block_by): Move user labels from bb1 to bb2.
20180
20181 2016-06-14 Richard Biener <rguenther@suse.de>
20182
20183 PR middle-end/71310
20184 PR bootstrap/71510
20185 * expr.h (get_bit_range): Declare.
20186 * expr.c (get_bit_range): Export.
20187 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20188 word_mode again to constrain the bitfield access.
20189
20190 2016-06-14 Richard Biener <rguenther@suse.de>
20191
20192 PR tree-optimization/71521
20193 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20194 division int_const_binop against zero divisor.
20195
20196 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20197
20198 * config/i386/i386.md (signbittf2): New expander.
20199 * config/i386/sse.md (ptesttf2): New insn pattern.
20200
20201 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20202
20203 PR bootstrap/71481
20204 * input.c (selftest::test_reading_source_line): Avoid reading from
20205 __FILE__ by creating a tempfile with known content and reading
20206 from that instead.
20207
20208 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20209
20210 * pretty-print.c (assert_pp_format_colored): Skip the test if
20211 GCC_COLORS is set.
20212 (test_pp_format): Remove comment about GCC_COLORS.
20213
20214 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20215
20216 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20217 * pretty-print.c (assert_pp_format_va): Add location param and use
20218 it with ASSERT_STREQ_AT.
20219 (assert_pp_format): Add location param and pass it to
20220 assert_pp_format_va.
20221 (assert_pp_format_colored): Likewise.
20222 (ASSERT_PP_FORMAT_1): New.
20223 (ASSERT_PP_FORMAT_2): New.
20224 (ASSERT_PP_FORMAT_3): New.
20225 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20226 explicitly, or implicitly via the above macros.
20227 * selftest.c (selftest::pass): Use a selftest::location rather
20228 than file and line.
20229 (selftest::fail): Likewise. Print the function name.
20230 (selftest::fail_formatted): Likewise.
20231 (selftest::assert_streq): Use a selftest::location rather than
20232 file and line.
20233 * selftest.h (selftest::location): New struct.
20234 (SELFTEST_LOCATION): New macro.
20235 (selftest::pass): Accept a const location & rather than file
20236 and line.
20237 (selftest::fail): Likewise.
20238 (selftest::fail_formatted): Likewise.
20239 (selftest::assert_streq): Likewise.
20240 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20241 (ASSERT_FALSE): Likewise.
20242 (ASSERT_EQ): Likewise.
20243 (ASSERT_NE): Likewise.
20244 (ASSERT_STREQ): Likewise.
20245 (ASSERT_PRED1): Likewise.
20246 (ASSERT_STREQ_AT): New macro.
20247
20248 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20249
20250 * selftest.c (selftest::fail_formatted): New function.
20251 (selftest::assert_streq): New function.
20252 * selftest.h (selftests::fail_formatted): New decl.
20253 (selftest::assert_streq): New decl.
20254 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20255
20256 2016-06-13 Jeff Law <law@redhat.com>
20257
20258 PR tree-optimization/71403
20259 * tree-ssa-threadbackward.c
20260 (convert_and_register_jump_thread_path): No longer accept reference
20261 to path. Do not pop items off the path anymore.
20262 (fsm_find_control_statement_thread_paths): Do not allow threading
20263 to a deeper loop nest. Pop the last item off the path here rather
20264 than in convert_and_register_jump_thread_path.
20265
20266 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20267 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20268
20269 [AArch64] Emit division using the Newton series
20270
20271 * config/aarch64/aarch64-protos.h
20272 (cpu_approx_modes): Add new member "division".
20273 (aarch64_emit_approx_div): Declare new function.
20274 * config/aarch64/aarch64.c
20275 (generic_approx_modes): New member "division".
20276 (exynosm1_approx_modes): Likewise.
20277 (xgene1_approx_modes): Likewise.
20278 (aarch64_emit_approx_div): Define new function.
20279 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20280 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20281 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20282 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20283
20284 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20285 Wilco Dijkstra <wilco.dijkstra@arm.com>
20286
20287 [AArch64] Emit square root using the Newton series
20288
20289 * config/aarch64/aarch64-protos.h
20290 (aarch64_emit_approx_rsqrt): Replace with new function
20291 "aarch64_emit_approx_sqrt".
20292 (cpu_approx_modes): New member "sqrt".
20293 * config/aarch64/aarch64.c
20294 (generic_approx_modes): New member "sqrt".
20295 (exynosm1_approx_modes): Likewise.
20296 (xgene1_approx_modes): Likewise.
20297 (aarch64_emit_approx_rsqrt): Replace with new function
20298 "aarch64_emit_approx_sqrt".
20299 (aarch64_override_options_after_change_1): Handle new option.
20300 * config/aarch64/aarch64-simd.md
20301 (rsqrt<mode>2): Use new function instead.
20302 (sqrt<mode>2): New expansion and insn definitions.
20303 * config/aarch64/aarch64.md: Likewise.
20304 * config/aarch64/aarch64.opt
20305 (mlow-precision-sqrt): Add new option description.
20306 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20307
20308 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20309
20310 [AArch64] Add more choices for the reciprocal square root approximation
20311
20312 Allow a target to prefer such operation depending on the operation mode.
20313
20314 * config/aarch64/aarch64-protos.h
20315 (AARCH64_APPROX_MODE): New macro.
20316 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20317 (cpu_approx_modes): New structure.
20318 (tune_params): New member "approx_modes".
20319 * config/aarch64/aarch64-tuning-flags.def
20320 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20321 * config/aarch64/aarch64.c
20322 (generic_approx_modes): New core "cpu_approx_modes" structure.
20323 (exynosm1_approx_modes): Likewise.
20324 (xgene1_approx_modes): Likewise.
20325 (generic_tunings): New member "approx_modes".
20326 (cortexa35_tunings): Likewise.
20327 (cortexa53_tunings): Likewise.
20328 (cortexa57_tunings): Likewise.
20329 (cortexa72_tunings): Likewise.
20330 (exynosm1_tunings): Likewise.
20331 (thunderx_tunings): Likewise.
20332 (xgene1_tunings): Likewise.
20333 (use_rsqrt_p): New argument for the mode and use new member from
20334 "tune_params".
20335 (aarch64_builtin_reciprocal): Devise mode from builtin.
20336 (aarch64_optab_supported_p): New argument for the mode.
20337 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20338
20339 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20340
20341 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20342 RS6000_BTM_MODULO flag into the set of flags that are considered
20343 to be part of the common configuration.
20344
20345 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20346
20347 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20348 difference unsigned.
20349 (vec_absdb): New macro for vector absolute difference unsigned
20350 byte.
20351 (vec_absdh): New macro for vector absolute difference unsigned
20352 half-word.
20353 (vec_absdw): New macro for vector absolute difference unsigned word.
20354 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20355 (vadu<mode>3): New insn.
20356 (*p9_vadu<mode>3): New insn.
20357 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20358 definition.
20359 (vaduh): New built-in definition.
20360 (vaduw): New built-in definition.
20361 (vadu): New overloaded built-in definition.
20362 (vadub): New overloaded built-in definition.
20363 (vaduh): New overloaded built-in definition.
20364 (vaduw): New overloaded built-in definition.
20365 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20366 overloaded vector absolute difference unsigned functions.
20367 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20368 the ISA 3.0 vector absolute difference unsigned built-in functions.
20369
20370 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20371
20372 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20373 update shared_lookup_references only once after changing operands.
20374
20375 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20376
20377 PR middle-end/71373
20378 * tree-nested.c (convert_nonlocal_omp_clauses)
20379 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20380
20381 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20382 * tree.def (CASE_LABEL_EXPR): Likewise.
20383
20384 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20385
20386 PR bootstrap/71481
20387 * input.c (test_builtins): Fix an assertion.
20388
20389 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20390
20391 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20392 (paritysi2): Ditto.
20393 (isinfxf2): Ditto.
20394 (isinf<mode>2): Ditto.
20395
20396 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20397
20398 * ggc-tests.c (test_finalization): Only test need_finalization_p
20399 for GCC_VERSION >= 4003.
20400
20401 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20402
20403 * config/s390/vecintrin.h: Fix file description in comment.
20404
20405 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20406
20407 * config/s390/s390-builtin-types.def: Change builtin type naming
20408 scheme to match builtin-types.def.
20409
20410 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20411
20412 * fold-const.c (optimize_minmax_comparison): Remove.
20413 (fold_comparison): Remove call to the above.
20414 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20415 New transformations.
20416
20417 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20418
20419 PR tree-optimization/71416
20420 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20421 multiple entries
20422
20423 2016-06-13 Martin Liska <mliska@suse.cz>
20424
20425 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20426 (combine_predictions_for_insn): Likewise.
20427 (prune_predictions_for_bb): Likewise.
20428 (combine_predictions_for_bb): Likewise.
20429
20430 2016-06-13 Richard Biener <rguenther@suse.de>
20431
20432 PR tree-optimization/71505
20433 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20434 assert match comment.
20435
20436 2016-06-13 Marek Polacek <polacek@redhat.com>
20437
20438 PR middle-end/71476
20439 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20440 gimplify_switch_expr.
20441 (warn_switch_unreachable_r): New function.
20442
20443 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20444
20445 PR target/71379
20446 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20447 one.
20448
20449 2016-06-13 Richard Biener <rguenther@suse.de>
20450
20451 PR middle-end/64516
20452 * fold-const.c (fold_unary_loc): Preserve alignment when
20453 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20454
20455 2016-06-13 Martin Liska <mliska@suse.cz>
20456
20457 PR sanitizer/71458
20458 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20459 w/ -fsanitize=bounds.
20460
20461 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20462
20463 * config/i386/i386.c (ix86_init_builtins): Calculate
20464 FLOAT128_FTYPE_CONST_STRING function type only once.
20465 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20466 built-in functions are available for x86-32 and x86-64 targets.
20467
20468 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20469
20470 PR target/71241
20471 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20472 New primitive type.
20473 (FLOAT128_FTYPE_CONST_STRING): New function type.
20474 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20475 [IX86_BUILTIN_NANSQ]: Ditto.
20476 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20477 (ix86_init_builtin_types): Declare const_string_type_node.
20478 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20479 builtin functions.
20480 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20481 * doc/extend.texi (x86 Built-in Functions): Document
20482 __builtin_nanq and __builtin_nansq.
20483
20484 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20485
20486 PR target/71061
20487 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20488 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20489 length for pop patterns.
20490 (arm_attr_length_push_multi): Update comments.
20491 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20492 attribute.
20493 (*pop_multiple_with_writeback_and_return): Likewise.
20494 (*pop_multiple_with_return): Likewise.
20495
20496 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20497
20498 PR middle-end/71310
20499 * fold-const.c (optimize_bit_field_compare): Don't try to use
20500 word_mode unconditionally for reading the bit field, look at
20501 DECL_BIT_FIELD_REPRESENTATIVE instead.
20502
20503 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20504
20505 PR middle-end/71478
20506 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20507 vector integer type.
20508
20509 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20510
20511 PR middle-end/71494
20512 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20513 without LABEL_DECL, set *handled_ops_p to false instead of true.
20514
20515 2016-06-10 Martin Sebor <msebor@redhat.com>
20516
20517 PR c/71392
20518 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20519 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20520 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20521 them.
20522 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20523 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20524 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20525 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20526 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20527 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20528 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20529 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20530
20531 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20532
20533 * config/arm/arm.h (pool_vector_label,
20534 return_used_this_function): Remove.
20535
20536 2016-06-10 Jeff Law <law@redhat.com>
20537
20538 PR tree-optimization/71335
20539 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20540 zero length paths here.
20541 (convert_and_register_jump_thread_path): Remove hacks related to
20542 duplicated blocks in the jump thread path.
20543 (fsm_find_control_statement_thread_paths): Avoid putting the same
20544 block on the thread path twice, but ensure the thread path is
20545 unchanged from the caller's point of view.
20546
20547 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20548
20549 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20550 * predict.def (PRED_LOOP_BRANCH): Remove.
20551
20552 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20553
20554 * Makefile.in (OBJS): Add ggc-tests.o.
20555 (GTFILES): Add ggc-tests.c.
20556 * ggc-tests.c: New file.
20557 * selftest-run-tests.c (selftest::run_tests): Call
20558 selftest::ggc_tests_c_tests.
20559 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20560
20561 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20562
20563 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20564
20565 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20566
20567 PR sanitizer/71480
20568 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20569 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20570
20571 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20572
20573 * profile.c: Include cfgloop.h.
20574 (branch_prob): Compute estimated number of iterations.
20575 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20576 recompute estimate number of iterations from profile.
20577
20578 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20579
20580 PR inline-asm/68843
20581 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20582 must be grouped on top of stack. Don't force early clobber
20583 on ordinary reg outputs.
20584
20585 2016-06-10 Richard Biener <rguenther@suse.de>
20586
20587 * targhooks.c (default_builtin_vectorization_cost): Adjust
20588 vec_construct cost.
20589
20590 2016-06-10 Richard Biener <rguenther@suse.de>
20591
20592 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20593 to fold the RHS to a constant if possible.
20594
20595 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20596
20597 PR middle-end/71373
20598 * tree-nested.c (convert_nonlocal_omp_clauses)
20599 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20600 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20601 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20602
20603 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20604 OMP_CLAUSE_TILE.
20605 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20606
20607 * omp-low.c (scan_sharing_clauses): Don't expect
20608 OMP_CLAUSE__CACHE_.
20609
20610 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20611
20612 PR tree-optimization/71407
20613 PR tree-optimization/71416
20614 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20615 BIT_FIELD_REF type.
20616
20617 2016-06-10 Richard Biener <rguenther@suse.de>
20618
20619 PR middle-end/71477
20620 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20621
20622 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20623
20624 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20625
20626 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20627 Jiong Wang <jiong.wang@arm.com>
20628
20629 PR rtl-optimization/70751
20630 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20631 spilled into memory.
20632
20633 2016-06-09 Jonathan Yong <10walls@gmail.com>
20634
20635 Revert:
20636 2015-09-21 Jonathan Yong <10walls@gmail.com>
20637
20638 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20639 sysroot/usr/lib/32api for additional win32 libraries,
20640 fixes failing Cygwin bootstrapping.
20641
20642 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20643
20644 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20645 Delete.
20646
20647 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20648
20649 PR bootstrap/71471
20650 * pretty-print.c (pp_indent): Specify that %p is printed in a
20651 host-dependent manner.
20652 (test_pp_format): Remove the test for %p.
20653
20654 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20655
20656 * config/mips/mips.c (mips_output_jump): Fix formatting.
20657
20658 2016-06-09 Richard Biener <rguenther@suse.de>
20659
20660 PR tree-optimization/71462
20661 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20662 removed blocks.
20663
20664 2016-06-09 Martin Liska <mliska@suse.cz>
20665
20666 * predict.c (dump_prediction): Add new argument.
20667 (enum predictor_reason): New enum.
20668 (struct predictor_hash): New struct.
20669 (predictor_hash::hash): New function.
20670 (predictor_hash::equal): Likewise.
20671 (not_removed_prediction_p): New function.
20672 (prune_predictions_for_bb): Likewise.
20673 (combine_predictions_for_bb): Prune predictions.
20674
20675 2016-06-09 Martin Liska <mliska@suse.cz>
20676
20677 * predict.c (filter_predictions): New function.
20678 (remove_predictions_associated_with_edge): Use the filter
20679 function.
20680 (equal_edge_p): New function.
20681
20682 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20683
20684 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20685 Correct usage of @samp vs @option, add @samp where appropriate.
20686 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20687 Add armv6s-m and document it, as it is no official ARM name.
20688
20689 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20690
20691 * ifcvt.c (struct noce_if_info): Add transform_name field.
20692 (noce_try_move): Set if_info->transform_name to the function name.
20693 (noce_try_ifelse_collapse): Likewise.
20694 (noce_try_store_flag): Likewise.
20695 (noce_try_inverse_constants): Likewise.
20696 (noce_try_store_flag_constants): Likewise.
20697 (noce_try_addcc): Likewise.
20698 (noce_try_store_flag_mask): Likewise.
20699 (noce_try_cmove): Likewise.
20700 (noce_try_cmove_arith): Likewise.
20701 (noce_try_minmax): Likewise.
20702 (noce_try_abs): Likewise.
20703 (noce_try_sign_mask): Likewise.
20704 (noce_try_bitop): Likewise.
20705 (noce_convert_multiple_sets): Likewise.
20706 (noce_process_if_block): Print if_info->transform_name to
20707 dump_file if transformation succeeded.
20708
20709 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20710
20711 * config/arm/cortex-a57.md (cortex_a57_alu):
20712 Handle csel type.
20713
20714 2016-06-08 Martin Sebor <msebor@redhat.com>
20715 Jakub Jelinek <jakub@redhat.com>
20716
20717 PR c++/70507
20718 PR c/68120
20719 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20720 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20721 * builtins.c: Include gimple-fold.h.
20722 (fold_builtin_arith_overflow): Handle
20723 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20724 (fold_builtin_3): Likewise.
20725 * doc/extend.texi (Integer Overflow Builtins): Document
20726 __builtin_{add,sub,mul}_overflow_p.
20727
20728 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20729
20730 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20731 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20732
20733 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20734
20735 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20736 Rewrite, looking one level down for records and arrays.
20737
20738 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20739
20740 * pretty-print.c: Include "selftest.h".
20741 (pp_format): Fix comment.
20742 (identifier_to_locale): Likewise.
20743 (selftest::test_basic_printing): New function.
20744 (selftest::assert_pp_format): New function.
20745 (selftest::test_pp_format): New function.
20746 (selftest::pretty_print_c_tests): New function.
20747 * selftest-run-tests.c (selftest::run_tests): Call
20748 selftest::pretty_print_c_tests.
20749 * selftest.h (pretty_print_c_tests): New declaration.
20750
20751 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20752
20753 * invoke.texi (max-loop-headers-insns): Document.
20754 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20755 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20756 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20757
20758 2016-06-08 Richard Biener <rguenther@suse.de>
20759
20760 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20761 on strided SLP loads and fall back to scalar loads in case
20762 we can't chunk them.
20763
20764 2016-06-08 Richard Biener <rguenther@suse.de>
20765
20766 PR tree-optimization/71452
20767 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20768 type used for the SSA rewrite has enough precision to cover
20769 the dynamic type of the location.
20770
20771 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20772 Richard Biener <rguenther@suse.de>
20773
20774 PR c++/71448
20775 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20776 the same as DECL_P (base0) for indirect_base0. Use equality_code
20777 in one further place.
20778
20779 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20780
20781 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20782 to one word if the field is known to overlap other words.
20783 (extract_bit_field_1): Likewise.
20784 (store_split_bit_field): Remove compensating code.
20785 (extract_split_bit_field): Likewise.
20786
20787 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20788
20789 PR debug/71432
20790 PR ada/71413
20791 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20792
20793 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20794
20795 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20796 VDQF.
20797 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20798 (arch64_addpv4sf): Delete.
20799 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20800 "gen_aarch64_addpv4sf".
20801 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20802 builtin.
20803 (vpadds_f32): Likewise.
20804 (vpaddq_f32): Likewise.
20805 (vpaddq_f64): Likewise.
20806
20807 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20808
20809 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20810 VALLF.
20811 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20812 to VALLF. Rename to "fabd<mode>3".
20813 "*fabd_scalar<mode>3): Delete.
20814 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20815 Use builtin.
20816 (vabdd_f64): Likewise.
20817 (vabd_f32): Likewise.
20818 (vabd_f64): Likewise.
20819 (vabdq_f32): Likewise.
20820 (vabdq_f64): Likewise.
20821
20822 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20823
20824 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20825 VALLF.
20826 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20827 "aarch64_rsqrts<mode>".
20828 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20829 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20830 builtin.
20831 (vrsqrtsd_f64): Likewise.
20832 (vrsqrts_f32): Likewise.
20833 (vrsqrts_f64): Likewise.
20834 (vrsqrtsq_f32): Likewise.
20835 (vrsqrtsq_f64): Likewise.
20836
20837 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20838
20839 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20840 VALLF.
20841 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20842 "aarch64_rsqrte<mode>".
20843 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20844 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20845 builtin.
20846 (vrsqrted_f64): Likewise.
20847 (vrsqrte_f32): Likewise.
20848 (vrsqrte_f64): Likewise.
20849 (vrsqrteq_f32): Likewise.
20850 (vrsqrteq_f64): Likewise.
20851
20852 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20853
20854 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20855 (ucvtf): Likewise.
20856 (fcvtzs): Likewise.
20857 (fcvtzu): Likewise.
20858 * config/aarch64/aarch64-simd.md
20859 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
20860 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
20861 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
20862 Use builtin.
20863 (vcvt_n_f32_u32): Likewise.
20864 (vcvt_n_s32_f32): Likewise.
20865 (vcvt_n_u32_f32): Likewise.
20866 (vcvtq_n_f32_s32): Likewise.
20867 (vcvtq_n_f32_u32): Likewise.
20868 (vcvtq_n_f64_s64): Likewise.
20869 (vcvtq_n_f64_u64): Likewise.
20870 (vcvtq_n_s32_f32): Likewise.
20871 (vcvtq_n_s64_f64): Likewise.
20872 (vcvtq_n_u32_f32): Likewise.
20873 (vcvtq_n_u64_f64): Likewise.
20874 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
20875 (VSDQ_SDI): Likewise.
20876 (fcvt_target): Support V4DI, V4SI and V2SI.
20877 (FCVT_TARGET): Likewise.
20878
20879 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20880
20881 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
20882 (TYPES_BINOP_SUS): Likewise.
20883 (aarch64_simd_builtin_data): Update include file name.
20884 (aarch64_builtins): Likewise.
20885 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
20886 for conversion between scalar float-point and fixed-point.
20887 (ucvtf): Likewise.
20888 (fcvtzs): Likewise.
20889 (fcvtzu): Likewise.
20890 * config/aarch64/aarch64.md
20891 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
20892 pattern for conversion between scalar float to fixed-pointer.
20893 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
20894 (UNSPEC_FCVTZS): New UNSPEC enumeration.
20895 (UNSPEC_FCVTZU): Likewise.
20896 (UNSPEC_SCVTF): Likewise.
20897 (UNSPEC_UCVTF): Likewise.
20898 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
20899 Use builtin.
20900 (vcvtd_n_f64_u64): Likewise.
20901 (vcvtd_n_s64_f64): Likewise.
20902 (vcvtd_n_u64_f64): Likewise.
20903 (vcvtd_n_f32_s32): Likewise.
20904 (vcvts_n_f32_u32): Likewise.
20905 (vcvtd_n_s32_f32): Likewise.
20906 (vcvts_n_u32_f32): Likewise.
20907 * config/aarch64/iterators.md (fcvt_target): Support integer to float
20908 mapping.
20909 (FCVT_TARGET): Likewise.
20910 (FCVT_FIXED2F): New iterator.
20911 (FCVT_F2FIXED): Likewise.
20912 (fcvt_fixed_insn): New define_int_attr.
20913
20914 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20915
20916 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
20917 some statements was removed.
20918
20919 2016-06-08 Alan Hayward <alan.hayward@arm.com>
20920
20921 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
20922 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
20923 (vect_can_advance_ivs_p): likewise.
20924 (vect_update_ivs_after_vectorizer): likewise.
20925 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
20926 (vect_analyze_scalar_cycles_1): likewise.
20927 (vect_analyze_loop_operations): likewise.
20928 (report_vect_op): likewise.
20929 (vect_is_slp_reduction): likewise.
20930 (vect_is_simple_reduction): likewise.
20931 (get_initial_def_for_induction): likewise.
20932 (vect_transform_loop): likewise.
20933 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
20934 (vect_recog_sad_pattern): likewise.
20935 (vect_recog_widen_sum_pattern): likewise.
20936 (vect_recog_widening_pattern): likewise.
20937 (vect_recog_divmod_pattern): likewise.
20938 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
20939 (vect_analyze_slp_instance): likewise.
20940 (vect_transform_slp_perm_load): likewise.
20941 (vect_schedule_slp_instance): likewise.
20942
20943 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20944
20945 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
20946 (return_prediction): PRED_CONST_RETURN predict return as not taken.
20947 * predict.def (PRED_CONTINUE): Change hitrate 50->67
20948 (PRED_LOOP_BRANCH): Document predictor as broken.
20949 (PRED_LOOP_EXIT): Change hitrate 91->92.
20950 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
20951 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
20952 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
20953 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
20954 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
20955 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
20956 (PRED_CALL): Chane hitrate 71->67.
20957 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
20958 (PRED_GOTO): Document as unused right now.
20959 (PRED_CONST_RETURN): Change hitrate 67->69
20960 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
20961 (PRED_NULL_RETURN): Change hitrate 91->90.
20962 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
20963 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
20964 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
20965
20966 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
20967
20968 * config/rs6000/altivec.h: Add __builtin_vec_mul.
20969 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
20970 special case Altivec builtin.
20971 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
20972 VSX_BUILTIN_VEC_MUL (replaced with special case code).
20973 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
20974 code for ALTIVEC_BUILTIN_VEC_MUL.
20975 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
20976 for __builtin_vec_mul.
20977
20978 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
20979
20980 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
20981 -mno-htm.
20982
20983 2016-06-07 David Malcolm <dmalcolm@redhat.com>
20984
20985 * spellcheck.c (selftest::test_find_closest_string): New function.
20986 (spellcheck_c_tests): Call the above.
20987
20988 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20989
20990 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
20991
20992 2016-06-07 Jakub Jelinek <jakub@redhat.com>
20993
20994 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
20995 Yv=Yv,C alternatives.
20996
20997 2016-06-07 Richard Biener <rguenther@suse.de>
20998
20999 PR c/61564
21000 * common.opt (ffast-math): Make Optimization.
21001
21002 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21003 Prachi Godbole <prachi.godbole@imgtec.com>
21004
21005 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21006 `fabs' and `fneg' type attributes.
21007 (p5600_fpu_fabs): Add `fmove' to the comment.
21008
21009 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21010
21011 * gimple.c: Include builtins.h
21012 (gimple_inexpensive_call_p): New function.
21013 * gimple.h (gimple_inexpensive_call_p): Declare.
21014 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21015 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21016 fix formatting.
21017
21018 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21019
21020 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21021 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21022 warning_at_rich_loc, warning_n, pedwarn, permerror,
21023 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21024 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21025 Use the above.
21026
21027 2016-06-07 Richard Biener <rguenther@suse.de>
21028
21029 PR tree-optimization/71428
21030 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21031 BIT_FIELD_REF op vs. load.
21032
21033 2016-06-07 Richard Biener <rguenther@suse.de>
21034
21035 PR middle-end/71423
21036 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21037 for signed ops.
21038
21039 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21040
21041 * config/pa/pa.md (call): Generate indirect long calls to non-local
21042 functions on TARGET_64BIT.
21043 (call_value): Likewise.
21044
21045 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21046
21047 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21048 pattern and subsequent splitters.
21049 (call_val_reg_64bit_post_reload): Likewise.
21050
21051 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21052
21053 PR middle-end/71408
21054 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21055 propagate_op_to_single_use.
21056
21057 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21058
21059 PR middle-end/71281
21060 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21061
21062 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21063
21064 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21065 (enum x86_dirflag_state): New enum.
21066 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21067 (machine_function): Remove needs_cld.
21068 (ix86_current_function_needs_cld): Remove.
21069 * config/i386/i386.c (ix86_set_func_type): Set
21070 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21071 (ix86_expand_prologue): Do not emit CLD here.
21072 (ix86_dirflag_mode_needed): New function.
21073 (ix86_dirflag_mode_entry): Ditto.
21074 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21075 (ix86_mode_after): Ditto.
21076 (ix86_mode_entry): Ditto.
21077 (ix86_mode_exit): Ditto.
21078 (ix86_emit_mode_set): Ditto.
21079 * config/i386/i386.md (strmov_singleop): Set
21080 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21081 Do not set ix86_current_function_needs_cld.
21082 (rep_mov): Ditto.
21083 (strset_singleop): Ditto.
21084 (rep_stos): Ditto.
21085 (cmpstrnqi_nz_1): Ditto.
21086 (cmpstrnqi_1): Ditto.
21087 (strlenqi_1): Ditto.
21088
21089 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21090
21091 PR tree-optimization/71259
21092 * tree-vect-slp.c (vect_get_constant_vectors): For
21093 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21094 one for constant op, and use COND_EXPR for non-constant.
21095
21096 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21097
21098 * Makefile.in (OBJS): Add function-tests.o,
21099 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21100 selftest-run-tests.o.
21101 (OBJS-libcommon): Add selftest.o.
21102 (OBJS-libcommon-target): Add selftest.o.
21103 (all.internal): Add "selftest".
21104 (all.cross): Likewise.
21105 (selftest): New phony target.
21106 (s-selftest): New target.
21107 (selftest-gdb): New phony target.
21108 (COLLECT2_OBJS): Add selftest.o.
21109 * bitmap.c: Include "selftest.h".
21110 (selftest::test_gc_alloc): New function.
21111 (selftest::test_set_range): New function.
21112 (selftest::test_clear_bit_in_middle): New function.
21113 (selftest::test_copying): New function.
21114 (selftest::test_bitmap_single_bit_set_p): New function.
21115 (selftest::bitmap_c_tests): New function.
21116 * common.opt (fself-test): New.
21117 * diagnostic-show-locus.c: Include "selftest.h".
21118 (make_range): New function.
21119 (test_range_contains_point_for_single_point): New function.
21120 (test_range_contains_point_for_single_line): New function.
21121 (test_range_contains_point_for_multiple_lines): New function.
21122 (assert_eq): New function.
21123 (test_get_line_width_without_trailing_whitespace): New function.
21124 (selftest::diagnostic_show_locus_c_tests): New function.
21125 * et-forest.c: Include "selftest.h".
21126 (selftest::test_single_node): New function.
21127 (selftest::test_simple_tree): New function.
21128 (selftest::test_disconnected_nodes): New function.
21129 (selftest::et_forest_c_tests): New function.
21130 * fold-const.c: Include "selftest.h".
21131 (selftest::assert_binop_folds_to_const): New function.
21132 (selftest::assert_binop_folds_to_nonlvalue): New function.
21133 (selftest::test_arithmetic_folding): New function.
21134 (selftest::fold_const_c_tests): New function.
21135 * function-tests.c: New file.
21136 * gimple.c: Include "selftest.h".
21137 Include "gimple-pretty-print.h".
21138 (selftest::verify_gimple_pp): New function.
21139 (selftest::test_assign_single): New function.
21140 (selftest::test_assign_binop): New function.
21141 (selftest::test_nop_stmt): New function.
21142 (selftest::test_return_stmt): New function.
21143 (selftest::test_return_without_value): New function.
21144 (selftest::gimple_c_tests): New function.
21145 * hash-map-tests.c: New file.
21146 * hash-set-tests.c: New file.
21147 * input.c: Include "selftest.h".
21148 (selftest::assert_loceq): New function.
21149 (selftest::test_accessing_ordinary_linemaps): New function.
21150 (selftest::test_unknown_location): New function.
21151 (selftest::test_builtins): New function.
21152 (selftest::test_reading_source_line): New function.
21153 (selftest::input_c_tests): New function.
21154 * rtl-tests.c: New file.
21155 * selftest-run-tests.c: New file.
21156 * selftest.c: New file.
21157 * selftest.h: New file.
21158 * spellcheck.c: Include "selftest.h".
21159 (selftest::levenshtein_distance_unit_test_oneway): New function,
21160 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21161 (selftest::levenshtein_distance_unit_test): Likewise.
21162 (selftest::spellcheck_c_tests): Likewise.
21163 * toplev.c: Include selftest.h.
21164 (toplev::run_self_tests): New.
21165 (toplev::main): Handle -fself-test.
21166 * toplev.h (toplev::run_self_tests): New.
21167 * tree.c: Include "selftest.h".
21168 (selftest::test_integer_constants): New function.
21169 (selftest::test_identifiers): New function.
21170 (selftest::test_labels): New function.
21171 (selftest::tree_c_tests): New function.
21172 * tree-cfg.c: Include "selftest.h".
21173 (selftest::push_fndecl): New function.
21174 (selftest::test_linear_chain): New function.
21175 (selftest::test_diamond): New function.
21176 (selftest::test_fully_connected): New function.
21177 (selftest::tree_cfg_c_tests): New function.
21178 * vec.c: Include "selftest.h".
21179 (selftest::safe_push_range): New function.
21180 (selftest::test_quick_push): New function.
21181 (selftest::test_safe_push): New function.
21182 (selftest::test_truncate): New function.
21183 (selftest::test_safe_grow_cleared): New function.
21184 (selftest::test_pop): New function.
21185 (selftest::test_safe_insert): New function.
21186 (selftest::test_ordered_remove): New function.
21187 (selftest::test_unordered_remove): New function.
21188 (selftest::test_block_remove): New function.
21189 (selftest::reverse_cmp): New function.
21190 (selftest::test_qsort): New function.
21191 (selftest::vec_c_tests): New function.c.
21192 * wide-int.cc: Include selftest.h and wide-int-print.h.
21193 (selftest::from_int <wide_int>): New function.
21194 (selftest::from_int <offset_int>): New function.
21195 (selftest::from_int <widest_int>): New function.
21196 (selftest::assert_deceq): New function.
21197 (selftest::assert_hexeq): New function.
21198 (selftest::test_printing <VALUE_TYPE>): New function template.
21199 (selftest::test_ops <VALUE_TYPE>): New function template.
21200 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21201 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21202 template.
21203 (selftest::wide_int_cc_tests): New function.
21204
21205 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21206
21207 PR middle-end/37780
21208 * ifcvt.c (noce_try_ifelse_collapse): New function.
21209 Declare prototype.
21210 (noce_process_if_block): Call noce_try_ifelse_collapse.
21211 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21212 (simplify_ternary_operation): Use the above to simplify
21213 conditional CLZ/CTZ expressions.
21214
21215 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21216
21217 PR middle-end/37780
21218 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21219 define_insn_and_split.
21220
21221 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21222
21223 PR middle-end/37780
21224 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21225
21226 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21227
21228 PR c/24414
21229 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21230 Implicitly clobber memory for basic asm with non-empty assembler
21231 string. Use targetm.md_asm_adjust also here.
21232 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21233 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21234 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21235 non-empty assembler string.
21236 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21237 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21238 (decode_asm_operands): Handle basic asm in PARALLEL block.
21239 (extract_insn): Handle basic asm in PARALLEL block.
21240 * doc/extend.texi: Mention new behavior of basic asm.
21241 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21242 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21243 branch_needs_nop_p): Use asm_noperands.
21244
21245 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21246
21247 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21248 Include the M7 SPARC DFA scheduler.
21249 New attribute v3pipe.
21250 Annotate insns with v3pipe where appropriate.
21251 Define cpu_feature vis4.
21252 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21253 Add (V8QI "8") to vbits.
21254 Add insns {add,sub}v8qi3
21255 Add insns ss{add,sub}v8qi3
21256 Add insns us{add,sub}{v8qi,v4hi}3
21257 Add insns {min,max}{v8qi,v4hi,v2si}3
21258 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21259 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21260 * config/sparc/niagara4.md: Add a comment explaining the
21261 discrepancy between the documented latenty numbers and the
21262 implemented ones.
21263 * config/sparc/niagara7.md: New file.
21264 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21265 supports SPARC5 and VIS 4.0 instructions.
21266 * configure: Regenerate.
21267 * config.in: Likewise.
21268 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21269 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21270 TARGET_CPU_niagara7.
21271 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21272 (CPP_CPU_SPEC): Handle niagara7.
21273 (ASM_CPU_SPEC): Likewise.
21274 * config/sparc/sparc-opts.h (processor_type): Add
21275 PROCESSOR_NIAGARA7.
21276 (mvis4): New option.
21277 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21278 (AS_NIAGARA7_FLAG): Define.
21279 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21280 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21281 (CPP_CPU_SPEC): Handle niagara7.
21282 (ASM_CPU_SPEC): Likewise.
21283 * config/sparc/sparc.c (niagara7_costs): Define.
21284 (sparc_option_override): Handle niagara7 and adjust cache-related
21285 parameters with better values for niagara cpus. Also support VIS4.
21286 (sparc32_initialize_trampoline): Likewise.
21287 (sparc_use_sched_lookahead): Likewise.
21288 (sparc_issue_rate): Likewise.
21289 (sparc_register_move_cost): Likewise.
21290 (dump_target_flag_bits): Support VIS4.
21291 (sparc_vis_init_builtins): Likewise.
21292 (sparc_builtins): Likewise.
21293 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21294 VIS4 4.0.
21295 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21296 UltraSparc M7.
21297 * config/sparc/sparc.opt (sparc_processor_type): New value
21298 niagara7.
21299 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21300 VIS4 builtins.
21301 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21302 -mvis4.
21303 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21304 VIS4 builtins.
21305
21306 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21307
21308 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21309
21310 2016-06-06 Richard Biener <rguenther@suse.de>
21311
21312 PR tree-optimization/71398
21313 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21314 remove edges.
21315
21316 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21317
21318 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21319 ft32_expand_prolog, ft32_expand_epilogue):
21320 Handle pretend_args.
21321 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21322 * config/ft32/ft32.md: Add pretend_returner.
21323
21324 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21325
21326 PR target/71389
21327 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21328 Copy op1 RTX to avoid invalid sharing.
21329 (ix86_expand_vector_move_misalign): Ditto.
21330
21331 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21332
21333 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21334 ATTRIBUTE_UNUSED.
21335
21336 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21337
21338 * predict.c (predicted_by_loop_heuristics_p): New function.
21339 (predict_iv_comparison): Use it.
21340 (predict_loops): Walk from innermost loops; do not predict edges
21341 leaving multiple loops multiple times; implement
21342 PRED_LOOP_ITERATIONS_MAX heuristics.
21343 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21344
21345 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21346
21347 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21348 only edges out of BB are EH edges.
21349
21350 2016-06-04 Martin Sebor <msebor@redhat.com>
21351 Marcin Baczyński <marbacz@gmail.com>
21352
21353 PR c/48116
21354 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21355 a void expression in a void function.
21356
21357 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21358
21359 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21360 aux; dump reasons of decisions.
21361 (should_duplicate_loop_header_p): Likewise.
21362 (do_while_loop_p): Likewise.
21363 (ch_base::copy_headers): Dump asi num insns duplicated.
21364
21365 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21366
21367 PR tree-optimization/71405
21368 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21369 incompatible type, build a new clobber with the right type instead
21370 of building a VIEW_CONVERT_EXPR around it.
21371
21372 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21373
21374 PR tree-optimization/52171
21375 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21376 by_pieces_ninsns instead of move_by_pieces_ninsns.
21377
21378 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21379
21380 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21381 for reg+reg addressing mode.
21382
21383 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21384
21385 * rs6000-c.c (c/c-tree.h): Add #include.
21386 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21387 in C++ when found in the base position of vec_ld or vec_st.
21388
21389 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21390
21391 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21392 use of profile unless profile status is PROFILE_READ.
21393 * profile.c (compute_branch_probabilities): Set profile status
21394 only after reporting predictor hitrates.
21395
21396 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21397
21398 PR target/71276
21399 PR target/71277
21400 * common.opt (ffp-int-builtin-inexact): New option.
21401 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21402 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21403 (ceil@var{m}2): Document dependence on this option.
21404 * ipa-inline-transform.c (inline_call): Handle
21405 flag_fp_int_builtin_inexact.
21406 * ipa-inline.c (can_inline_edge_p): Likewise.
21407 * config/i386/i386.md (rintxf2): Do not test
21408 flag_unsafe_math_optimizations.
21409 (rint<mode>2_frndint): New define_insn.
21410 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21411 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21412 for 387 instead of extending and truncating.
21413 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21414 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21415 Change to frndint<mode>2_<rounding>.
21416 (frndintxf2_<rounding>_i387): Likewise. Change to
21417 frndint<mode>2_<rounding>_i387.
21418 (<rounding_insn>xf2): Likewise.
21419 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21420 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21421 x87. Test TARGET_ROUND || !flag_trapping_math ||
21422 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21423 SSE. Use ROUND_NO_EXC in constant operand of
21424 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21425 for 387 instead of extending and truncating.
21426
21427 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21428 Julia Koval <julia.koval@intel.com>
21429
21430 PR target/66960
21431 PR target/67630
21432 PR target/67634
21433 PR target/67841
21434 PR target/68037
21435 PR target/68618
21436 PR target/68661
21437 PR target/69575
21438 PR target/69596
21439 PR target/69734
21440 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21441 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21442 all registers, except for function return registers if there are
21443 no caller-saved registers.
21444 (ix86_set_func_type): New function.
21445 (ix86_set_current_function): Call ix86_set_func_type to set
21446 no_caller_saved_registers and func_type. Call reinit_regs if
21447 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21448 nor x87 instructions in interrupt handler nor function with
21449 no_caller_saved_registers attribute.
21450 (ix86_function_ok_for_sibcall): Return false if there are no
21451 caller-saved registers.
21452 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21453 handler.
21454 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21455 (ix86_function_arg): Return special arguments in interrupt handler.
21456 (ix86_promote_function_mode): Promote pointer to word_mode only
21457 for normal functions.
21458 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21459 interrupt handler.
21460 (ix86_epilogue_uses): New function.
21461 (ix86_hard_regno_scratch_ok): Likewise.
21462 (ix86_save_reg): Preserve all registers in interrupt handler
21463 after reload. Preserve all registers, except for function return
21464 registers, if there are no caller-saved registers after reload.
21465 (find_drap_reg): Always use callee-saved register if there are
21466 no caller-saved registers.
21467 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21468 for interrupt handler.
21469 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21470 Emit cld instruction if stringops are used in interrupt handler
21471 or interrupt handler isn't a leaf function.
21472 (ix86_expand_epilogue): Generate interrupt return for interrupt
21473 handler and pop the 'ERROR_CODE' off the stack before interrupt
21474 return in exception handler.
21475 (ix86_expand_call): Disallow calling interrupt handler directly.
21476 If there are no caller-saved registers, mark all registers that
21477 are clobbered by the call which returns as clobbered.
21478 (ix86_handle_no_caller_saved_registers_attribute): New function.
21479 (ix86_handle_interrupt_attribute): Likewise.
21480 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21481 attributes.
21482 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21483 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21484 accumulation in interrupt function if stack may be realigned to
21485 avoid DRAP.
21486 (EPILOGUE_USES): New.
21487 (function_type): New enum.
21488 (machine_function): Add func_type and no_caller_saved_registers.
21489 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21490 (interrupt_return): New pattern.
21491 * doc/extend.texi: Document x86 interrupt and
21492 no_caller_saved_registers attributes.
21493
21494 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21495
21496 PR tree-optimization/52171
21497 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21498 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21499 Look for constant strings. Move some code to emit_block_cmp_hints
21500 and use it.
21501 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21502 * defaults.h (COMPARE_MAX_PIECES): New macro.
21503 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21504 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21505 (clear_by_pieces_1): Don't declare. Move definition before use.
21506 (can_do_by_pieces): New static function.
21507 (can_move_by_pieces): Use it. Return bool.
21508 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21509 OP. All callers changed. Handle COMPARE_BY_PIECES.
21510 (class pieces_addr); New.
21511 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21512 pieces_addr::adjust, pieces_addr::increment_address,
21513 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21514 functions for it.
21515 (class op_by_pieces_d): New.
21516 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21517 functions for it.
21518 (class move_by_pieces_d, class compare_by_pieces_d,
21519 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21520 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21521 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21522 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21523 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21524 compare_by_pieces_d::finish_mode): New member functions.
21525 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21526 functions.
21527 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21528 (emit_block_cmp_hints): New function.
21529 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21530 use the newly defined classes.
21531 * expr.h (by_pieces_constfn): New typedef.
21532 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21533 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21534 (move_by_pieces_ninsns): Don't declare.
21535 (can_move_by_pieces): Change return value to bool.
21536 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21537 (compare_by_pieces_branch_ratio): New hook.
21538 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21539 (by_pieces_ninsns): Declare.
21540 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21541 COMPARE_BY_PIECES.
21542 (default_compare_by_pieces_branch_ratio): New function.
21543 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21544 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21545 * doc/tm.texi: Regenerate.
21546 * tree-ssa-strlen.c: Include "builtins.h".
21547 (handle_builtin_memcmp): New static function.
21548 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21549 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21550
21551 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21552
21553 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21554 relevant stmts which are simple and invariant.
21555 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21556 instead of simple and invariant
21557
21558 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21559
21560 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21561 (vectorizable_reduction): Check for new relevant state.
21562 (vectorizable_live_operation): vectorize live stmts using
21563 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21564 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21565 (vect_stmt_relevant_p): Check for stmts which are only used live.
21566 (process_use): Use of a stmt does not inherit it's live value.
21567 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21568 (vect_analyze_stmt): Check for new relevant state.
21569 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21570 outside the loop, but not inside it.
21571
21572 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21573
21574 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21575 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21576 (vect_get_vec_def_for_operand): Split out code.
21577
21578 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21579
21580 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21581
21582 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21583
21584 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21585
21586 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21587
21588 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21589
21590 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21591
21592 PR middle-end/71387
21593 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21594 to noreturn e->callee->decl that has void return type and void
21595 arguments, adjust gimple_call_fntype and remove lhs even if it had
21596 previously addressable type.
21597
21598 2016-06-02 Jeff Law <law@redhat.com>
21599
21600 PR tree-optimization/71328
21601 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21602 error when checking for a jump back onto the copied path.
21603
21604 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21605
21606 * config/microblaze/microblaze.c (get_branch_target): Add return
21607 NULL_RTX for the non-CALL_P case.
21608 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21609 (insert_wic): Remove unused local "j".
21610
21611 2016-06-02 Martin Liska <mliska@suse.cz>
21612
21613 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21614
21615 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21616 Julia Koval <julia.koval@intel.com>
21617
21618 * function.c (assign_parm_setup_stack): Force source into a
21619 register if needed.
21620 * target.def (function_incoming_arg): Update documentation to
21621 allow arbitrary address computation based on hard register.
21622 * doc/tm.texi: Regenerated.
21623
21624 2016-06-02 Martin Liska <mliska@suse.cz>
21625
21626 * predict.c (combine_predictions_for_bb): Fix first match in
21627 cases where a first predictor contains more than one occurence
21628 in list of predictors. Take the best value in such case.
21629
21630 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21631
21632 PR rtl-optimization/71295
21633 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21634 offset would go over the size of the inner mode reject it.
21635
21636 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21637
21638 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21639 x=x,x and v=v,m instead of x=x,m.
21640
21641 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21642 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21643 alternative to v=rm,C.
21644
21645 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21646 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21647 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21648 instead of vex for the last two above mentioned alternatives.
21649
21650 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21651
21652 PR target/70830
21653 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21654
21655 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21656
21657 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21658
21659 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21660
21661 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21662 from int to unsigned.
21663
21664 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21665
21666 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21667 alternatives, eliminating preferred register class. Add support
21668 for the MTVSRDD instruction in ISA 3.0.
21669 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21670 reg_or_indexed_operand.
21671 (vsx_splat_v4sf_internal): Likewise.
21672
21673 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21674
21675 PR target/71186
21676 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21677 for loading up all 0's or all 1's.
21678
21679 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21680
21681 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21682
21683 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21684
21685 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21686 extension.
21687 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21688 * gcc.c (set_source_date_epoch_envvar): New function, sets
21689 the SOURCE_DATE_EPOCH environment variable to the current time.
21690
21691 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21692
21693 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21694 the factor for live Phi nodes.
21695
21696 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21697
21698 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21699 * tree-parloops.c (parallelize_loops): likewise.
21700 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21701 tree_unswitch_outer_loop): likewise.
21702
21703 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21704
21705 PR middle-end/71371
21706 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21707 around creation of the temporary.
21708
21709 2016-06-01 Richard Biener <rguenther@suse.de>
21710
21711 PR tree-optimization/71366
21712 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21713 (unloop_loops): Move removing edges here ...
21714 (try_unroll_loop_completely): ... from here.
21715 (try_peel_loop): ... and here.
21716 (tree_unroll_loops_completely_1): Track parent loops via
21717 bitmap of header BBs.
21718 (tree_unroll_loops_completely): Adjust for that.
21719
21720 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21721
21722 * config/rs6000/altivec.h (vec_slv): New macro.
21723 (vec_srv): New macro.
21724 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21725 (UNSPEC_VSRV): New value.
21726 (vslv): New insn.
21727 (vsrv): New insn.
21728 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21729 (vsrv): New builtin definition.
21730 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21731 define argument types for new builtin.
21732 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21733 new builtin.
21734 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21735 functions.
21736
21737 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21738 Jocelyn Mayer <l_indien@magic.fr>
21739
21740 PR target/67310
21741 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21742 detect processor family for signature_CENTAUR_ebx.
21743 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21744 signature_CENTAUR_ebx.
21745 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21746 <default>: Pass x86-64 for has_longmode.
21747
21748 2016-06-01 Nathan Sidwell <nathan@acm.org>
21749
21750 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21751 undefined weak.
21752
21753 2016-06-01 Richard Biener <rguenther@suse.de>
21754
21755 PR tree-optimization/71261
21756 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21757 of stmts successfully put in the bool pattern. Remove
21758 single-use restriction.
21759 (adjust_bool_pattern_cast): Add cast at the use site via the
21760 pattern def sequence.
21761 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21762 of patterned defs. Use the pattern def seqence instead of
21763 multiple independent patterns.
21764 (sort_after_uid): New qsort compare function.
21765 (adjust_bool_stmts): New function to process stmts in the bool
21766 pattern in IL order.
21767 (vect_recog_bool_pattern): Adjust.
21768 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21769 (ifcvt_walk_pattern_tree): Likewise.
21770 (stmt_is_root_of_bool_pattern): Likewise.
21771 (ifcvt_repair_bool_pattern): Likewise.
21772 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21773
21774 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21775
21776 * loop-unroll.c (decide_unroll_constant_iterations,
21777 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21778 likely upper bounds.
21779 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21780
21781 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21782
21783 * tree-core.h (enum omp_clause_code): Remove
21784 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21785
21786 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21787
21788 * config/arm/sync.md (arm_store_exclusive<mode>):
21789 Use 'H' output modifier on operands[2] rather than creating a new
21790 entry in out-of-bounds memory of the operands array.
21791 (arm_store_release_exclusivedi): Likewise.
21792
21793 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21794
21795 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21796 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21797 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21798 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21799
21800 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21801
21802 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21803 into account live statements for mask producers.
21804
21805 2016-06-01 Richard Biener <rguenther@suse.de>
21806
21807 PR tree-optimization/71311
21808 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21809 restrict to non-INTEGER_CST @0.
21810
21811 2016-06-01 Richard Biener <rguenther@suse.de>
21812
21813 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21814 (relational patterns): Use :c to avoid pattern duplications.
21815
21816 2016-06-01 Richard Biener <rguenther@suse.de>
21817
21818 * genmatch.c (comparison_code_p): New predicate.
21819 (swap_tree_comparison): New function.
21820 (commutate): Add for_vec parameter to append new for entries.
21821 Support commutating relational operators by swapping it alongside
21822 operands.
21823 (lower_commutative): Adjust.
21824 (dt_simplify::gen): Do not pass artificial operators to gen
21825 functions.
21826 (decision_tree::gen): Do not add artificial operators as parameters.
21827 (parser::parse_expr): Verify operator commutativity when :c is
21828 applied. Allow :C to override this.
21829 * match.pd: Adjust patterns to use :C instead of :c where required.
21830
21831 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21832
21833 PR tree-optimization/71077
21834 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21835 the combining step, use boolean_false_node and boolean_true_node
21836 as the designated false/true return values.
21837
21838 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21839
21840 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21841 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21842 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21843 PRED_LOOP_EXIT.
21844
21845 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21846
21847 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21848 of flags impliying the register renaming.
21849 * toplev.c (process_options): Do not imply flag_rename_registers with
21850 loop peeling.
21851
21852 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21853
21854 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21855 default implementation.
21856
21857 2016-05-31 Nathan Sidwell <nathan@acm.org>
21858
21859 * dwarf2out.c (cur_line_info_table): Add GTY marker.
21860
21861 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21862
21863 * config/sh/constraints.md (b): Remove constraint.
21864 * config/sh/predicates.md (arith_reg_operand): Remove
21865 TARGET_REGISTER_P.
21866 * config/sh/sh-modes.def (PDI): Remove.
21867 * config/sh/sh.c (sh_target_reg_class,
21868 sh_optimize_target_register_callee_saved): Remove functions.
21869 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
21870 (sh_expand_epilogue): Update comment.
21871 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
21872 sh_secondary_reload): Remove TARGET_REGS related code.
21873 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
21874 TARGET_REGISTER_P): Remove macros.
21875 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
21876 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
21877 TR1_REG, TR2_REG): Remove constants.
21878 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
21879
21880 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21881
21882 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
21883 define_expand patterns.
21884 (adddi3_compact): Rename to adddi3.
21885 (subdi3_compact): Rename to subdi3.
21886 (*negdi2): Rename to negdi2.
21887 (*abs<mode>2): Rename to abs<mode>2.
21888
21889 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21890
21891 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
21892 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
21893 (atomic_sub_fetchsi): ... this new pattern.
21894 (mvtc): Add CC_REG clobber.
21895
21896 2016-05-31 Marek Polacek <polacek@redhat.com>
21897
21898 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
21899
21900 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21901
21902 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
21903 aarch64_fusion_enabled_p to check for fusion capabilities.
21904
21905 2016-05-31 Richard Biener <rguenther@suse.de>
21906
21907 PR tree-optimization/71352
21908 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
21909 minus one and a negate.
21910
21911 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21912
21913 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
21914 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
21915 Delete prototype.
21916 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
21917 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
21918 Remove use of aarch64_simd_attr_length_move, set length attribute
21919 directly.
21920 (*aarch64_be_movoi): Likewise.
21921 (*aarch64_be_movci): Likewise.
21922 (*aarch64_be_movxi): Likewise.
21923
21924 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21925
21926 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
21927 It no longer does that.
21928 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
21929
21930 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
21931
21932 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
21933 attribute __unused__.
21934
21935 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
21936
21937 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
21938 * config/arm/arm.c (arm_arch_thumb1): Define.
21939 (arm_option_override): Initialize arm_arch_thumb1.
21940 * config/arm/arm.h (arm_arch_thumb1): Declare.
21941 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
21942 support Thumb-1 ISA.
21943
21944 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
21945
21946 PR target/71346
21947 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
21948 `Yv' for scalar operand.
21949
21950 2016-05-31 Tom de Vries <tom@codesourcery.com>
21951
21952 PR tree-optimization/69068
21953 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
21954 phis with more than two args.
21955
21956 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
21957
21958 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
21959 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
21960 target.
21961
21962 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
21963
21964 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
21965 tune_64.
21966 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
21967 support on SPARC.
21968 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
21969 cpu_32, cpu_64, tune_32 and tune_64.
21970 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
21971
21972 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
21973
21974 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
21975
21976 2016-05-30 Andi Kleen <ak@linux.intel.com>
21977
21978 * auto-profile.c (read_profile): Replace asserts with errors
21979 when file does not exist.
21980 * gcov-io.c (gcov_read_words): Dito.
21981
21982 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21983
21984 * tree-cfg.c (print_loop): Print likely upper bounds.
21985
21986 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
21987
21988 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
21989 * opts.c (default_options): Enable peel loops at -O3.
21990 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
21991 (try_peel_loop): Do not re-peel already peeled loops;
21992 use likely upper bounds; fix profile updating.
21993 (pass_complete_unroll::execute): Initialize peeled_loops.
21994
21995 2016-05-30 Martin Liska <mliska@suse.cz>
21996
21997 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
21998 computed costs by frequency of BB they belong to.
21999 (get_scaled_computation_cost_at): New function.
22000
22001 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22002 Marc Glisse <marc.glisse@inria.fr>
22003
22004 PR tree-optimization/71289
22005 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22006
22007 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22008
22009 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22010
22011 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22012
22013 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22014 for peeled copies; avoid underflow when updating estimates; correctly
22015 scale loop profile.
22016
22017 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22018
22019 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22020 r236875. Corrected oe3 to oe2 as obvious.
22021
22022 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22023
22024 PR middle-end/71269
22025 PR middle-end/71252
22026 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22027 that inserted stmt will not dominate stmts that defines its operand.
22028 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22029 (rewrite_expr_tree_parallel): Likewise.
22030
22031 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22032
22033 PR middle-end/71252
22034 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22035 all fields including stmt_to_insert are swapped.
22036
22037 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22038
22039 * predict.h (force_edge_cold): Declare.
22040 * predict.c (force_edge_cold): New function.
22041 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22042 updating.
22043 (canonicalize_loop_induction_variables): Fix formating.
22044
22045 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22046
22047 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22048 (visium_expand_copysign): Use gen_int_mode directly.
22049 (visium_compute_frame_size): Minor tweaks.
22050
22051 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22052
22053 * tree-vect-loop.c (vect_analyze_loop_2): Use
22054 likely_max_stmt_executions_int.
22055
22056 2016-05-30 Tom de Vries <tom@codesourcery.com>
22057
22058 PR tree-optimization/69067
22059 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22060
22061 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22062
22063 PR target/71245
22064 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22065 New peepholes to remove unneeded fild/fistp pairs.
22066 (define_peephole2 atomic_loaddi_fpu): Ditto.
22067
22068 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22069
22070 * predict.c (maybe_hot_frequency_p): Avoid division.
22071
22072 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22073
22074 * doc/install.texi: Use https for shop.fsf.org.
22075
22076 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22077
22078 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22079 likely_max_stmt_executions_int.
22080
22081 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22082
22083 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22084 likely_max_stmt_executions_int.
22085
22086 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22087
22088 * profile.c (compute_branch_probabilities): Do not report hitrates
22089 here.
22090 (branch_prob): Report hitrates here.
22091 * predict.c (gimple_predict_edge): Do not assert profile status;
22092 fix formatting issues.
22093
22094 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22095
22096 * predict.c (edge_predicted_by_p): New function.
22097 (predict_paths_for_bb): Do not put multiple predictions of the same type
22098 on one edge.
22099
22100 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22101
22102 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22103 commit.
22104
22105 2016-05-28 Alan Modra <amodra@gmail.com>
22106
22107 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22108
22109 2016-05-28 Alan Modra <amodra@gmail.com>
22110
22111 PR rtl-optimization/71275
22112 * ira.c (ira): Free dominance info.
22113
22114 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22115
22116 * doc/sourcebuild.texi: New address for upstream Go repository.
22117
22118 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22119
22120 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22121 (TARGET_ARM_V7M): Likewise.
22122
22123 2016-05-26 Jeff Law <law@redhat.com>
22124
22125 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22126 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22127 * passes.def: Add jump threading passes before DOM/VRP.
22128 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22129 argument to a basic block from an edge. Remove tests which are
22130 handled elsewhere.
22131 (pass_data_thread_jumps, class pass_thread_jumps): New.
22132 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22133 (make_pass_thread_jumps): Likewise.
22134 * tree-pass.h (make_pass_thread_jumps): Declare.
22135
22136 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22137
22138 * config/visium/visium-protos.h (split_double_move): Rename into...
22139 (visium_split_double_move): ...this.
22140 (visium_split_double_add): Declare.
22141 * config/visium/visium.c (split_double_move): Rename into...
22142 (visium_split_double_move): ...this.
22143 (visium_split_double_add): New function.
22144 (visium_expand_copysign): Renumber operands for consistency.
22145 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22146 (DFmode move splitter): Likewise.
22147 (*addi3_insn): Split by means of visium_split_double_add.
22148 (*adddi3_insn_flags): Delete.
22149 (*plus_plus_sltu<subst_arith>): New insn.
22150 (*subdi3_insn): Split by means of visium_split_double_add.
22151 (subdi3_insn_flags): Delete.
22152 (*minus_minus_sltu<subst_arith>): New insn.
22153 (*negdi2_insn): Split by means of visium_split_double_add.
22154 (*negdi2_insn_flags): Delete.
22155
22156 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22157
22158 * configure.ac: Treat a --with-headers option without argument
22159 the same as the default (i.e. consult sys-include directory).
22160 * configure: Regenerate.
22161
22162 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22163
22164 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22165 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22166 prototype.
22167 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22168 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22169
22170 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22171
22172 PR target/63596
22173 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22174 tree-stdarg analysis results.
22175 (aarch64_setup_incoming_varargs): Likewise.
22176
22177 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22178
22179 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22180 va_list_gpr_counter_field and va_list_fpr_counter_field.
22181
22182 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22183
22184 PR67609
22185 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22186 * config/aarch64/aarch64.c
22187 (aarch64_cannot_change_mode_class): Remove function.
22188 * config/aarch64/aarch64-protos.h
22189 (aarch64_cannot_change_mode_class): Remove.
22190
22191 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22192
22193 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22194 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22195 get_likely_max_loop_iterations_int): New.
22196 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22197 any_likely_upper_bound.
22198 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22199 Declare.
22200 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22201 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22202 upper bound.
22203 (unroll_loop_constant_iterations): Likewise.
22204 (unroll_loop_runtime_iterations): Likewise.
22205 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22206 * lto-streamer-out.c (output_cfg): Likewise.
22207 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22208 bounds.
22209 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22210 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22211 (likely_max_loop_iterations): New.
22212 (likely_max_loop_iterations_int): New.
22213 (likely_max_stmt_executions): New.
22214 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22215 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22216 likely_max_stmt_executions): Declare.
22217
22218 2016-05-27 Marek Polacek <polacek@redhat.com>
22219
22220 PR middle-end/71308
22221 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22222
22223 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22224
22225 * config/s390/s390.md (2x risbg splitters): Use
22226 reg_overlap_mentioned_p instead of rtx_equal_p.
22227
22228 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22229
22230 * combine.c (make_compound_operation): Take known zero bits into
22231 account when checking for possible zero_extend.
22232
22233 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22234
22235 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22236 Use const_int_operand for operand 2 predicate. Simplify expand code
22237 as a result.
22238
22239 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22240
22241 PR middle-end/71279
22242 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22243 into comparison.
22244
22245 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22246
22247 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22248 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22249 that returns CC_SESWPmode and CC_ZESWPmode.
22250 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22251 and CC_SESWPmode.
22252 (aarch64_rtx_costs): Likewise.
22253
22254 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22255
22256 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22257 for ISA 3.0 min/max support.
22258 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22259 conditional move support.
22260 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22261 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22262 available.
22263 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22264 conditional moves where the comparison type is different from move
22265 type.
22266 (fp_minmax): New code iterator for smin/smax.
22267 (minmax): New code attributes for min/max.
22268 (SMINMAX): Likewise.
22269 (smax<mode>3): Combine min, max insns into one insn using the
22270 fp_minmax code iterator. Add support for ISA 3.0 min/max
22271 instructions that don't need -ffast-math.
22272 (s<minmax><mode>3): Likewise.
22273 (smax<mode>3_vsx): Likewise.
22274 (smin<mode>3): Likewise.
22275 (s<minmax><mode>3_vsx): Likewise.
22276 (smin<mode>3_vsx): Likewise.
22277 (pre-VSX min/max splitters): Likewise.
22278 (s<minmax><mode>3_fpr): Likewise.
22279 (movsfcc): Rewrite floating point conditional moves to combine
22280 SFmode/DFmode into a single insn.
22281 (mov<mode>cc): Likewise.
22282 (movdfcc): Likewise.
22283 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22284 SFDF2 iterators to handle all combinations.
22285 (fseldfsf4): Likewise.
22286 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22287 (fseldfdf4): Likewise.
22288 (fselsfdf4): Likewise.
22289 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22290 comparison instructions that set a 0/-1 mask, and use it for
22291 floating point conditional move via XXSEL.
22292 (fpmask<mode>): Likewise.
22293 (xxsel<mode>): Likewise.
22294 * config/rs6000/predicates.md (min_max_operator): Delete, no
22295 longer used.
22296 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22297 instructions that generate a 0/-1 mask for use with XXSEL.
22298 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22299 say whether floating point min/max is available, either through
22300 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22301 (TARGET_MINMAX_DF): Likewise.
22302
22303 2016-05-27 Alan Modra <amodra@gmail.com>
22304
22305 PR rtl-optimization/71275
22306 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22307 for update_equiv_regs and combine_and_move_insns.
22308
22309 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22310
22311 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22312 if_then_else or cond RTXes to calculate attribute value.
22313 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22314 <attr "length_immediate>: Ditto.
22315 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22316 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22317 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22318 <attr "type">: Ditto.
22319 <attr "prefix_data16">: Ditto.
22320 <attr "prefix_extra">: Ditto.
22321 <attr "length_immediate">: Ditto.
22322 <attr "prefix">: Ditto.
22323 (vec_set<mode>_0) <attr "isa">: Ditto.
22324 <attr "prefix_extra">: Ditto.
22325 <attr "length_immediate">: Ditto.
22326 <attr "prefix">: Ditto.
22327 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22328 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22329 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22330 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22331 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22332 <attr "length_immediate">: Ditto.
22333 <attr "prefix">: Ditto.
22334 (sse2_movsd) <attr "length_immediate">: Ditto.
22335 <attr "prefix">: Ditto.
22336 (vec_concatv2df) <attr "isa">: Ditto.
22337 <attr "prefix">: Ditto.
22338 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22339 (*vec_extractv2di_1) <attr "isa">: Ditto.
22340 <attr "type">: Ditto.
22341 <attr "length_immediate">: Ditto.
22342 <attr "prefix_rex">: Ditto.
22343 <attr "prefix_extra">: Ditto.
22344 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22345 <attr "prefix_extra">: Ditto.
22346 <attr "length_immediate">: Ditto.
22347 (vec_concatv2di) <attr "isa">: Ditto.
22348 <attr "prefix_extra">: Ditto.
22349 <attr "length_immediate">: Ditto.
22350 <attr "prefix">: Ditto.
22351
22352 2016-05-26 Martin Liska <mliska@suse.cz>
22353
22354 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22355 function.
22356 (operator+): Likewise.
22357 (operator-): Likewise.
22358 (comp_cost::operator+=): Likewise.
22359 (comp_cost::operator-=): Likewise.
22360 (comp_cost::operator/=): Likewise.
22361 (comp_cost::operator*=): Likewise.
22362 (operator<): Likewise.
22363 (operator==): Likewise.
22364 (operator<=): Likewise.
22365 (new_cost): Remove.
22366 (infinite_cost_p): Likewise.
22367 (add_costs): Likewise.
22368 (sub_costs): Likewise.
22369 (compare_costs): Likewise.
22370 (set_group_iv_cost): Use the newly introduced functions.
22371 (get_address_cost): Likewise.
22372 (get_shiftadd_cost): Likewise.
22373 (force_expr_to_var_cost): Likewise.
22374 (split_address_cost): Likewise.
22375 (ptr_difference_cost): Likewise.
22376 (difference_cost): Likewise.
22377 (get_computation_cost_at): Likewise.
22378 (determine_group_iv_cost_generic): Likewise.
22379 (determine_group_iv_cost_address): Likewise.
22380 (determine_group_iv_cost_cond): Likewise.
22381 (autoinc_possible_for_pair): Likewise.
22382 (determine_group_iv_costs): Likewise.
22383 (cheaper_cost_pair): Likewise.
22384 (iv_ca_recount_cost): Likewise.
22385 (iv_ca_set_no_cp): Likewise.
22386 (iv_ca_set_cp): Likewise.
22387 (iv_ca_cost): Likewise.
22388 (iv_ca_new): Likewise.
22389 (iv_ca_dump): Likewise.
22390 (iv_ca_narrow): Likewise.
22391 (iv_ca_prune): Likewise.
22392 (iv_ca_replace): Likewise.
22393 (try_add_cand_for): Likewise.
22394 (try_improve_iv_set): Likewise.
22395 (find_optimal_iv_set): Likewise.
22396
22397 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22398
22399 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22400 that internal functions will clobber all caller-saved registers.
22401
22402 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22403
22404 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22405 Return a better case_values_threshold when optimizing.
22406
22407 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22408
22409 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22410 Add ? to integer variant.
22411 (aarch64_combinez_be): Likewise.
22412
22413 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22414
22415 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22416 instead of x constraint.
22417 (vcvtps2ph256<mask_name>): Likewise.
22418
22419 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22420 alternative. Formatting fix.
22421
22422 * config/i386/sse.md
22423 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22424 to ...
22425 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22426 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22427 maybe_evex prefix instead of vex.
22428 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22429 EXT_REX_SSE_REG_P (op0) case in the splitter.
22430
22431 2016-05-25 Jeff Law <law@redhat.com>
22432
22433 PR tree-optimization/71272
22434 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22435 Update comments. Add test for empty path.
22436
22437 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22438
22439 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22440 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22441 special case builtin.
22442 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22443 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22444 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22445 for __builtin_vec_cmpne.
22446
22447 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22448
22449 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22450 redundant test and bail out if the type of the new operand is not
22451 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22452
22453 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22454
22455 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22456 (x_ix86_target_flags_explicit): Remove.
22457 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22458 x_ix86_target_flags_explicit.
22459 (ix86_function_specific_restore): Ditto.
22460
22461 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22462 H.J. Lu <hongjiu.lu@intel.com>
22463
22464 PR target/70738
22465 * common/config/i386/i386-common.c
22466 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22467 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22468 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22469 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22470 (-mgeneral-regs-only): Add new option.
22471 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22472 x87 instructions if only general registers are allowed.
22473 (ix86_target_string): Add ix86_flags argument. Handle additional
22474 flags options through ix86_flags argument. Update all callers.
22475 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22476
22477 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22478
22479 PR rtl-optimization/66940
22480 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22481 decrementing desired_val will not overflow before performing these
22482 operations.
22483
22484 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22485
22486 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22487 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22488 * config/i386/i386.c (enum ix86_builtins): Add
22489 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22490 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22491 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22492 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22493 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22494 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22495 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22496 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22497 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22498 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22499 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22500 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22501 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22502 __builtin_ia32_cvtps2dq512_mask.
22503 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22504 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22505 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22506 * config/i386/sse.md
22507 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22508 Rename to ...
22509 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22510 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22511 to ...
22512 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22513 (avx512f_vec_pack_sfix_v8df): New define_expand.
22514 (avx512f_roundpd512): Rename to ...
22515 (avx512f_round<castmode>512): ... this. Change iterator.
22516 (avx512f_roundps512_sfix): New define_expand.
22517 (round<mode>2_sfix): Change iterator.
22518
22519 2016-05-25 Nick Clifton <nickc@redhat.com>
22520
22521 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22522 static interrupt handler is detected.
22523 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22524 default linker script.
22525 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22526 the low part of a symbolic pointer.
22527
22528 2016-05-25 Richard Biener <rguenther@suse.de>
22529
22530 PR tree-optimization/71261
22531 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22532 interesting stmt instead of immediate uses when looking
22533 for the use operand to replace.
22534
22535 2016-05-25 Martin Liska <mliska@suse.cz>
22536
22537 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22538
22539 2016-05-25 Richard Biener <rguenther@suse.de>
22540
22541 PR tree-optimization/71264
22542 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22543 vector type val.
22544
22545 2016-05-25 Martin Liska <mliska@suse.cz>
22546
22547 PR tree-optimization/71239
22548 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22549 if DECL_SIZE is NULL.
22550
22551 2016-05-25 Richard Biener <rguenther@suse.de>
22552
22553 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22554 * tree-if-conv.c (pass_data_if_conversion): Use it.
22555
22556 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22557
22558 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22559 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22560 * varpool.c (varpool_node::get_availability): Likewise.
22561
22562 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22563
22564 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22565 VNEGW/VNEGD instructions.
22566 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22567 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22568 support for ISA 3.0 VNEGW/VNEGD instructions.
22569
22570 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22571
22572 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22573 pointers inside OACC_DATA regions.
22574 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22575 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22576 (gimplify_adjust_omp_clauses): Fix typo in comment.
22577
22578 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22579
22580 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22581 parity built-in functions.
22582 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22583 zeros.
22584 (p9v_parity<mode>2): Likewise.
22585 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22586 parity.
22587 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22588 (parity<mode>2): ISA 3.0 expander for vector parity.
22589 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22590 power9 built-ins.
22591 (BU_P9_64BIT_MISC_0): Likewise.
22592 (BU_P9_MISC_0): Likewise.
22593 (BU_P9V_AV_1): Likewise.
22594 (BU_P9V_AV_2): Likewise.
22595 (BU_P9V_AV_3): Likewise.
22596 (BU_P9V_AV_P): Likewise.
22597 (BU_P9V_VSX_1): Likewise.
22598 (BU_P9V_OVERLOAD_1): Likewise.
22599 (BU_P9V_OVERLOAD_2): Likewise.
22600 (BU_P9V_OVERLOAD_3): Likewise.
22601 (VCTZB): Add vector count trailing zeros support.
22602 (VCTZH): Likewise.
22603 (VCTZW): Likewise.
22604 (VCTZD): Likewise.
22605 (VPRTYBD): Add vector parity support.
22606 (VPRTYBQ): Likewise.
22607 (VPRTYBW): Likewise.
22608 (VCTZ): Add overloaded vector count trailing zeros support.
22609 (VPRTYB): Add overloaded vector parity support.
22610 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22611 overloaded vector count trailing zeros and parity instructions.
22612 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22613 vector parity support.
22614 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22615 trailing zeros support.
22616 (vec_cntlz): Likewise.
22617 (vec_vctzb): Likewise.
22618 (vec_vctzd): Likewise.
22619 (vec_vctzh): Likewise.
22620 (vec_vctzw): Likewise.
22621 (vec_vprtyb): Add ISA 3.0 vector parity support.
22622 (vec_vprtybd): Likewise.
22623 (vec_vprtybw): Likewise.
22624 (vec_vprtybq): Likewise.
22625 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22626 the ISA 3.0 vector count trailing zeros and vector parity built-in
22627 functions.
22628
22629 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22630
22631 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22632 when there is stmt_to_insert.
22633
22634 2016-05-24 Martin Sebor <msebor@redhat.com>
22635
22636 PR c++/71147
22637 * tree.h (complete_or_array_type_p): New inline function.
22638
22639 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22640
22641 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22642 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22643 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22644
22645 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22646 Limit 1st alternative to noavx isa, split 2nd alternative into one
22647 noavx and one avx alternative, use *x and Bm in the former and
22648 x and m in the latter.
22649
22650 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22651 of sse4 for the first alternative, drop %v from the template
22652 and d operand modifier. Split second alternative into one sse4_noavx
22653 and one avx alternative, use *x instead of *v in the former and v
22654 instead of *v in the latter.
22655 (*sse4_1_extractps): Use noavx isa instead of * for the first
22656 alternative, drop %v from the template. Split second alternative into
22657 one noavx and one avx alternative, use *x instead of *v in the
22658 former and v instead of *v in the latter.
22659 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22660 with noavx and the last one with avx.
22661 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22662 split the second one into one noavx and one avx alternative,
22663 use *x and Bm in the former and x and m in the latter one.
22664 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22665 alternatives.
22666
22667 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22668 first two alternatives to noavx, use *x instead of *v in the second
22669 one, add avx alternative without *.
22670 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22671 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22672 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22673
22674 2016-05-24 Jeff Law <law@redhat.com>
22675
22676 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22677 New function, extracted from...
22678 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22679 Allow simple copies and constant initializations in the SSA chain.
22680
22681 2016-05-24 Marek Polacek <polacek@redhat.com>
22682
22683 PR c/71249
22684 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22685 scope.
22686
22687 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22688
22689 PR c++/71257
22690 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22691 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22692 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22693 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22694 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22695
22696 2016-05-24 Richard Biener <rguenther@suse.de>
22697
22698 PR tree-optimization/71240
22699 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22700 has integral type.
22701
22702 2016-05-24 Richard Biener <rguenther@suse.de>
22703
22704 PR tree-optimization/71230
22705 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22706
22707 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22708
22709 * tree-vectorizer.h (vectorizable_comparison): Delete.
22710 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22711 PURE_SLP_STMT check.
22712 * tree-vect-stmts.c (vectorizable_call): Likewise.
22713 (vectorizable_simd_clone_call): Likewise.
22714 (vectorizable_conversion): Likewise.
22715 (vectorizable_assignment): Likewise.
22716 (vectorizable_shift): Likewise.
22717 (vectorizable_operation): Likewise.
22718 (vectorizable_load): Likewise.
22719 (vectorizable_condition): Likewise.
22720 (vectorizable_store): Likewise. Assert that we don't have
22721 hybrid SLP.
22722 (vectorizable_comparison): Make static. Remove redundant
22723 PURE_SLP_STMT check.
22724 (vect_transform_stmt): Assert that we always have an slp_node
22725 if PURE_SLP_STMT.
22726
22727 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22728
22729 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22730 operands[2] against 1 with comparison against CONST1_RTX.
22731 (<shift>di3_neon): Likewise.
22732 * config/arm/predicates.md (const0_operand): Replace with comparison
22733 against CONST0_RTX.
22734
22735 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22736
22737 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22738 operands[2] against 1 with comparison against CONST1_RTX.
22739 (ashrdi3): Likewise.
22740 (lshrdi3): Likewise.
22741 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22742 UINTVAL.
22743 (ashrsi3): Likewise.
22744 (lshrsi3): Likewise.
22745 (rotrsi3): Likewise.
22746 (define_split above *compareqi_eq0): Likewise.
22747 (define_split above "prologue"): Likewise.
22748 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22749 * config/arm/predicates.md (shift_operator): Likewise.
22750 (shift_nomul_operator): Likewise.
22751 (sat_shift_operator): Likewise.
22752 (thumb1_cmp_operand): Likewise.
22753 (const_neon_scalar_shift_amount_operand): Replace manual range
22754 check with IN_RANGE.
22755 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22756 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22757
22758 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22759
22760 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22761 with HOST_WIDE_INT_1.
22762 (insv): Likewise.
22763 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22764 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22765 (arm_canonicalize_comparison): Likewise.
22766 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22767 HOST_WIDE_INT_1.
22768 (thumb1_size_rtx_costs): Likewise.
22769 (vfp_const_double_index): Replace cast of 1 to unsigned
22770 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22771 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22772 HOST_WIDE_INT_1.
22773 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22774 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22775 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22776 HOST_WIDE_INT with HOST_WIDE_INT_1.
22777
22778 2016-05-24 Marek Polacek <polacek@redhat.com>
22779
22780 * tree-cfg.h (should_remove_lhs_p): New predicate.
22781 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22782 * gimplify.c (gimplify_modify_expr): Likewise.
22783 * tree-cfg.c (verify_gimple_call): Likewise.
22784 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22785 * gimple-fold.c: Include "tree-cfg.h".
22786 (gimple_fold_call): Use should_remove_lhs_p.
22787
22788 2016-05-24 Richard Biener <rguenther@suse.de>
22789
22790 PR tree-optimization/71253
22791 * cfganal.h (control_dependences): Make robust against edge
22792 and BB removal.
22793 (control_dependences::control_dependences): Remove edge_list argument.
22794 (control_dependences::get_edge): Remove.
22795 (control_dependences::get_edge_src): Add.
22796 (control_dependences::get_edge_dest): Likewise.
22797 (control_dependences::m_el): Make a vector of edge src/dest index.
22798 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22799 (control_dependences::control_dependences): Likewise.
22800 (control_dependences::~control_dependence): Likewise.
22801 (control_dependences::get_edge): Remove.
22802 (control_dependences::get_edge_src): Add.
22803 (control_dependences::get_edge_dest): Likewise.
22804 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22805 get_edge_src.
22806 (perform_tree_ssa_dce): Adjust.
22807 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22808 get_edge_src.
22809 (pass_loop_distribution::execute): Adjust. Do loop destroying
22810 conditional on changed.
22811
22812 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22813
22814 PR target/69857
22815 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22816 return. Reindent transformation comment and mention the ARM state
22817 behavior.
22818
22819 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22820
22821 PR middle-end/71252
22822 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22823 after build_and_add_sum creates new use stmt.
22824
22825 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22826
22827 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22828 load_lanes/grouped_load classification comes first. Don't check
22829 whether the vectorization factor is a multiple of the group size
22830 for load_lanes.
22831
22832 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22833
22834 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22835 GROUP_GAP for single-element interleaving.
22836 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22837 variable.
22838
22839 2016-05-24 Richard Biener <rguenther@suse.de>
22840
22841 PR middle-end/70434
22842 PR c/69504
22843 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22844 bases which are accessed with non-invariant indices.
22845 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22846 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22847
22848 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22849
22850 PR middle-end/71170
22851 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22852 (add_to_ops_vec): Add stmt_to_insert.
22853 (add_repeat_to_ops_vec): Init stmt_to_insert.
22854 (insert_stmt_before_use): New.
22855 (transform_add_to_multiply): Remove mult_stmt insertion and add it
22856 to ops vector.
22857 (get_ops): Init stmt_to_insert.
22858 (maybe_optimize_range_tests): Likewise.
22859 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
22860 (rewrite_expr_tree_parallel): Likewise.
22861 (reassociate_bb): Likewise.
22862
22863 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22864
22865 PR target/71201
22866 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
22867 ISA 3.0 xxperm fusion alternative.
22868 (altivec_vperm_v8hiv16qi): Likewise.
22869 (altivec_vperm_<mode>_uns_internal): Likewise.
22870 (vperm_v8hiv4si): Likewise.
22871 (vperm_v16qiv8hi): Likewise.
22872
22873 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
22874 Kelvin Nilsen <kelvin@gcc.gnu.org>
22875
22876 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
22877 vpermr/xxpermr on ISA 3.0.
22878 (altivec_expand_vec_perm_le): Likewise.
22879 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
22880 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
22881 ISA 3.0.
22882
22883 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
22884
22885 * config/i386/i386.h (IS_STACK_MODE): Enable for
22886 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
22887 SSE_FLOAT_MODE_P macros.
22888 * config/i386/i386.c (ix86_preferred_reload_class): Use
22889 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
22890 Cleanup regclass processing for CONST_DOUBLE_P.
22891 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
22892 (ix86_rtx_costs): Remove redundant TARGET_80387 check
22893 with IS_STACK_MODE macro.
22894 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
22895 with TARGET_SSE2.
22896 (*movdf_internal): Use IS_STACK_MODE macro.
22897 (*movsf_internal): Ditto.
22898
22899 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
22900
22901 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
22902 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
22903
22904 2016-05-23 Jeff Law <law@redhat.com>
22905
22906 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
22907 extracted from ...
22908 (fsm_find_control_statement_thread_paths): Call it.
22909
22910 2016-05-23 Martin Jambor <mjambor@suse.cz>
22911
22912 PR ipa/71234
22913 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
22914 from_global_constant if t is not NULL.
22915
22916 2016-05-23 Marek Polacek <polacek@redhat.com>
22917
22918 PR c/49859
22919 * common.opt (Wswitch-unreachable): New option.
22920 * doc/invoke.texi: Document -Wswitch-unreachable.
22921 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
22922 warning.
22923
22924 2016-05-23 Bin Cheng <bin.cheng@arm.com>
22925
22926 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
22927 TMR_INDEX is non-NULL.
22928
22929 2016-05-23 Richard Biener <rguenther@suse.de>
22930
22931 PR tree-optimization/71230
22932 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
22933 (try_special_add_to_ops): ... here. Always test for single-use.
22934
22935 2016-05-23 Martin Jambor <mjambor@suse.cz>
22936
22937 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
22938 default block if a PHI node in the original one would be resized.
22939
22940 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22941
22942 PR tree-optimization/58135
22943 * tree-vect-slp.c: When group size is not multiple
22944 of vector size, allow splitting of store group at
22945 vector boundary.
22946
22947 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
22948
22949 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
22950
22951 2016-05-22 Jakub Jelinek <jakub@redhat.com>
22952
22953 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22954 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
22955 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
22956 of 64x2.
22957
22958 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
22959 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
22960 v constraint instead of x and vinserti32x4 insn.
22961
22962 * config/i386/sse.md (i128vldq): New mode iterator.
22963 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
22964 avx512dq and avx512vl alternatives.
22965
22966 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
22967 constraint, use maybe_evex prefix instead of vex.
22968 (vec_dupv4sf): Use v constraint instead of x for output
22969 operand except for noavx alternative, use Yv constraint
22970 instead of x for input. Use maybe_evex prefix instead of vex.
22971 (*vec_dupv4si): Likewise.
22972 (*vec_dupv2di): Likewise.
22973
22974 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22975
22976 PR middle-end/40921
22977 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
22978 (linearize_expr_tree): Call try_special_add_to_ops.
22979 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
22980
22981 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22982
22983 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
22984 to computed stack_usage.
22985
22986 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22987
22988 PR target/71103
22989 * config/avr/avr.md (define_expand "mov<mode>"): If the source
22990 operand is subreg (symbol_ref) then move the symbol ref to register.
22991
22992 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
22993
22994 * tree.c (array_at_struct_end_p): Look through MEM_REF.
22995
22996 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
22997
22998 PR middle-end/71179
22999 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23000 VECTOR type.
23001
23002 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23003
23004 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23005 ranges by calling get_single_symbol and tidy up. Look more closely
23006 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23007
23008 2016-05-20 Jeff Law <law@redhat.com>
23009
23010 * bitmap.c (bitmap_find_bit): Remove useless test.
23011
23012 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23013
23014 * function.c (thread_prologue_and_epilogue_insns): Commit the
23015 insertion of the epilogue.
23016
23017 2016-05-20 Martin Jambor <mjambor@suse.cz>
23018
23019 PR tree-optimization/70884
23020 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23021 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23022 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23023 of constant pool data as a reason for scalarization.
23024
23025 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23026
23027 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23028 for naked functions.
23029 (thumb1_expand_prologue): Likewise.
23030
23031 2016-05-20 Nathan Sidwell <nathan@acm.org>
23032
23033 * config/nvptx/nptx.c (nvptx_option_override): Only set
23034 flag_toplevel_reorder, if not explicitly specified. Set
23035 flag_no_common, unless explicitly specified.
23036
23037 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23038
23039 * calls.c (can_implement_as_sibling_call_p): Mark param
23040 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23041
23042 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23043
23044 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23045 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23046 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23047 constants.
23048 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23049 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23050 and CASE_CONST_ANY.
23051
23052 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23053
23054 * config/nvptx/nvptx.md (sincossf3): New pattern.
23055
23056 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23057
23058 * calls.c (maybe_complain_about_tail_call): New function.
23059 (initialize_argument_information): Call
23060 maybe_complain_about_tail_call when clearing *may_tailcall.
23061 (can_implement_as_sibling_call_p): Call
23062 maybe_complain_about_tail_call when returning false.
23063 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23064 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23065 if tail-call optimization fails.
23066 * cfgexpand.c (expand_call_stmt): Initialize
23067 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23068 * gimple-pretty-print.c (dump_gimple_call): Dump
23069 gimple_call_must_tail_p.
23070 * gimple.c (gimple_build_call_from_tree): Call
23071 gimple_call_set_must_tail with the value of
23072 CALL_EXPR_MUST_TAIL_CALL.
23073 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23074 (gimple_call_set_must_tail): New function.
23075 (gimple_call_must_tail_p): New function.
23076 * print-tree.c (print_node): Update printing of TREE_STATIC
23077 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23078 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23079 trailing comment listing applicable flags.
23080 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23081
23082 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23083
23084 * calls.c (expand_call): Move "Rest of purposes for tail call
23085 optimizations to fail" to...
23086 (can_implement_as_sibling_call_p): ...this new function, and
23087 split into multiple "if" statements.
23088
23089 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23090
23091 * cfgloop.h (expected_loop_iterations_unbounded,
23092 expected_loop_iterations): Unconstify.
23093 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23094 profile with known upper bound; return 3 when profile is absent.
23095 (expected_loop_iterations): Update.
23096
23097 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23098
23099 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23100 and get_max_loop_iterations_int.
23101
23102 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23103
23104 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23105 realistic upper bounds here.
23106
23107 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23108
23109 PR c++/71210
23110 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23111 calls if the LHS is variable length or has addressable type.
23112 If targets[0]->decl is a noreturn call with void return type and
23113 zero arguments, adjust fntype and remove lhs in that case.
23114
23115 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23116
23117 PR tree-optimization/71079
23118 PR tree-optimization/71206
23119 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23120
23121 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23122
23123 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23124 (get_vec_alignment_for_array_decl): Likewise.
23125 (get_vec_alignment_for_record_decl): Likewise.
23126 (increase_alignment::execute): Move code to find alignment to
23127 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23128 (type_align_map): New hash_map.
23129
23130 2016-05-20 Richard Guenther <rguenther@suse.de>
23131
23132 PR tree-optimization/29756
23133 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23134 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23135 * fold-const.c (operand_equal_p): Likewise.
23136 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23137 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23138 * tree-inline.c (estimate_operator_cost): Likewise.
23139 * tree-pretty-print.c (dump_generic_node): Likewise.
23140 * tree-ssa-operands.c (get_expr_operands): Likewise.
23141 * cfgexpand.c (expand_debug_expr): Likewise.
23142 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23143 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23144 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23145 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23146 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23147 (execute_update_addresses_taken): Do it.
23148
23149 2016-05-20 Richard Biener <rguenther@suse.de>
23150
23151 PR tree-optimization/71185
23152 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23153 register operations.
23154
23155 2016-05-20 Richard Biener <rguenther@suse.de>
23156
23157 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23158 gimple_seq_add_seq_without_update.
23159 (release_bb_predicate): Assert we have no operands to free.
23160 (if_convertible_loop_p_1): Calculate post dominators later.
23161 Do not free BB predicates here.
23162 (combine_blocks): Do not recompute BB predicates.
23163 (version_loop_for_if_conversion): Save BB predicates around
23164 loop versioning.
23165
23166 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23167
23168 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23169 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23170 code. Ignore sibcalls on EDGE_IGNORE edges.
23171 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23172 on edges for sibcalls that run without prologue. The rest of the
23173 function is combined from...
23174 (fix_fake_fallthrough_edge): ... this, and ...
23175 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23176 function argument, make it a local variable.
23177
23178 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23179
23180 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23181 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23182 for 32-bit mode and SEH for 64-bit.
23183 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23184 TARGET_64BIT_DEFAULT.
23185
23186 2016-05-19 Ryan Burn <contact@rnburn.com>
23187
23188 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23189 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23190
23191 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23192
23193 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23194 force pending loads from memory.
23195
23196 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23197
23198 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23199 (UNSPEC_DARN_32): New unspec constant.
23200 (UNSPEC_DARN_RAW): New unspec constant.
23201 (darn_32): New instruction.
23202 (darn_raw): New instruction.
23203 (darn): New instruction.
23204 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23205 support and documentation for this macro.
23206 (BU_P9_MISC_1): New macro definition.
23207 (BU_P9_64BIT_MISC_0): New macro definition.
23208 (BU_P9_MISC_0): New macro definition.
23209 (darn_32): New builtin definition.
23210 (darn_raw): New builtin definition.
23211 (darn): New builtin definition.
23212 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23213 RS6000_BUILTIN_0 directives to surround each occurrence of
23214 #include "rs6000-builtin.def".
23215 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23216 RS6000_BTM_64BIT flags to the returned mask, depending on
23217 configuration.
23218 (def_builtin): Correct an error in the assignments made to the
23219 debugging variable attr_string.
23220 (rs6000_expand_builtin): Add support for no-operand built-in
23221 functions.
23222 (builtin_function_type): Remove fatal_error assertion that is no
23223 longer valid.
23224 (rs6000_common_init_builtins): Add support for no-operand built-in
23225 functions.
23226 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23227 definition.
23228 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23229 definition.
23230 (RS6000_BTM_64BIT): New macro definition.
23231 * doc/extend.texi: Document __builtin_darn (void),
23232 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23233 functions.
23234
23235 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23236
23237 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23238 max_loop_iterations_int.
23239
23240 2016-05-19 Marek Polacek <polacek@redhat.com>
23241
23242 PR tree-optimization/71031
23243 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23244 condition and adjust the code a bit.
23245
23246 2016-05-19 Martin Liska <mliska@suse.cz>
23247
23248 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23249 auto_vec instead of vec.
23250
23251 2016-05-19 Martin Liska <mliska@suse.cz>
23252
23253 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23254
23255 2016-05-19 Martin Liska <mliska@suse.cz>
23256
23257 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23258
23259 2016-05-19 Martin Liska <mliska@suse.cz>
23260
23261 * ipa-pure-const.c (set_function_state): Remove an existing
23262 funct_state.
23263 (remove_node_data): Do not free it as it's released
23264 in set_function_state.
23265
23266 2016-05-19 Martin Liska <mliska@suse.cz>
23267
23268 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23269 bitmap.
23270
23271 2016-05-19 Martin Liska <mliska@suse.cz>
23272
23273 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23274
23275 2016-05-19 Martin Liska <mliska@suse.cz>
23276
23277 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23278 an auto_vec instead of re-creating it.
23279
23280 2016-05-19 Martin Liska <mliska@suse.cz>
23281
23282 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23283 auto_vec instead of vec.
23284
23285 2016-05-19 Martin Liska <mliska@suse.cz>
23286
23287 * lto-section-in.c (lto_get_section_data): Call
23288 lto_check_version with additional argument.
23289 * lto-streamer.c (lto_check_version): Add new argument.
23290 * lto-streamer.h (lto_check_version): Likewise.
23291
23292 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23293
23294 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23295 Don't add cost of inner memory when handling sign-extended loads.
23296
23297 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23298
23299 PR rtl-optimization/71148
23300 * cse.c (cse_main): Free dominance info.
23301 (rest_of_handle_cse): Don't free dominance info.
23302 (rest_of_handle_cse2): Likewise.
23303 (rest_of_handle_cse_after_global_opts): Likewise.
23304
23305 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23306
23307 PR target/71056
23308 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23309 NULL_TREE early if NEON is not available. Remove now redundant check
23310 in ARM_CHECK_BUILTIN_MODE.
23311
23312 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23313
23314 PR sanitizer/64354
23315 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23316 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23317 * doc/cpp.texi: Document new macros.
23318
23319 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23320
23321 PR tree-optimization/69848
23322 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23323 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23324
23325 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23326
23327 * function.c (thread_prologue_and_epilogue_insn): Move the
23328 "goto epilogue_done" one block later.
23329
23330 2016-05-19 Richard Biener <rguenther@suse.de>
23331
23332 PR tree-optimization/70729
23333 * passes.def: Move LIM pass before PRE. Remove no longer
23334 required copyprop and move first DCE out of the loop pipeline.
23335
23336 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23337
23338 PR driver/69265
23339 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23340 (OBJS-libcommon-target): ...here.
23341 * opts-common.c: Include spellcheck.h.
23342 (cmdline_handle_error): Build a vec of valid options and use it
23343 to suggest provide hints for misspelled arguments.
23344
23345 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23346
23347 PR c++/71100
23348 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23349 lhs if it has TREE_ADDRESSABLE type.
23350
23351 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23352
23353 PR target/71145
23354 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23355 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23356
23357 2016-05-18 Martin Jambor <mjambor@suse.cz>
23358
23359 PR ipa/69708
23360 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23361 input for NOP_EXPR pass-through functions.
23362 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23363 aggregate global constant VAR_DECLs in constant jump functions.
23364
23365 2016-05-18 Martin Jambor <mjambor@suse.cz>
23366
23367 PR ipa/69708
23368 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23369 from TREE_READONLY parameters.
23370
23371 2016-05-18 Martin Jambor <mjambor@suse.cz>
23372
23373 PR ipa/69708
23374 * cgraph.h (cgraph_indirect_call_info): New field
23375 guaranteed_unmodified.
23376 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23377 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23378 appropriate.
23379 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23380 pass the parameter value to ipa_find_agg_cst_for_param.
23381 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23382 guaranteed_unmodified, store AA results there instead of bailing out
23383 if present.
23384 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23385 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23386 (find_constructor_constant_at_offset): New function.
23387 (ipa_find_agg_cst_from_init): Likewise.
23388 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23389 static initializers of contants, report back through a new paameter
23390 from_global_constant if that was the case.
23391 (try_make_edge_direct_simple_call): Also pass parameter value to
23392 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23393 appropriate.
23394 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23395 (ipa_read_indirect_edge_info): Likewise.
23396 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23397 (ipa_load_from_parm_agg): Likewise.
23398
23399 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23400
23401 PR rtl-optimization/71150
23402 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23403 check.
23404
23405 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23406
23407 PR target/70915
23408 * config/rs6000/constraints.md (wE constraint): New constraint
23409 for a vector constant that can be loaded with XXSPLTIB.
23410 (wM constraint): New constraint for a vector constant of a 1's.
23411 (wS constraint): New constraint for a vector constant that can be
23412 loaded with XXSPLTIB and a vector sign extend instruction.
23413 * config/rs6000/predicates.md (xxspltib_constant_split): New
23414 predicates for wE/wS constraints.
23415 (xxspltib_constant_nosplit): Likewise.
23416 (easy_vector_constant): Add support for constants that can be
23417 loaded via XXSPLTIB.
23418 (all_ones_constant): New predicate for vector constant with all
23419 1's set.
23420 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23421 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23422 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23423 instruction and possibly with a sign extension.
23424 (output_vec_const_move): Add support for XXSPLTIB. If we are
23425 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23426 instead of XXLXOR/XXLORC.
23427 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23428 operations.
23429 (rs6000_legitimize_reload_address): Likewise.
23430 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23431 constants.
23432 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23433 combine VSX_M and VSX_M2 into one iterator.
23434 (VSX_M2): Likewise.
23435 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23436 (VSINT_842): Likewise.
23437 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23438 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23439 XXSPLTIB instruction.
23440 (xxspltib_<mode>_nosplit): Likewise.
23441 (xxspltib_<mode>_split): New insn to load up constants with
23442 XXSPLTIB and a sign extend instruction.
23443 (vsx_mov<mode>): Replace single move that handled all vector types
23444 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23445 moves (when -mvsx-timode is in effect) into the main vector
23446 moves. Eliminate separate moves for <VSr> <VSa>, where the
23447 preferred register class (<VSr>) is listed first, and the
23448 secondary register class (<VSa>) is listed second with a '?' to
23449 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23450 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23451 that if the register was involved in a slow operation, the
23452 clear/set operation does not wait for the slow operation to
23453 finish. Adjust the length attributes for 32-bit mode. Use
23454 rs6000_output_move_128bit and drop the use of the string
23455 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23456 spacing so that the alternatives and attributes don't generate
23457 long lines, and put things in columns, so that it is easier to
23458 match up the operands and attributes with the insn alternatives.
23459 (vsx_mov<mode>_64bit): Likewise.
23460 (vsx_mov<mode>_32bit): Likewise.
23461 (vsx_movti_64bit): Fold movti into normal vector moves.
23462 (vsx_movti_32bit): Likewise.
23463 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23464 splat instructions.
23465 (vsx_splat_v4si_internal): Likewise.
23466 (vsx_splat_v4sf_internal): Likewise.
23467 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23468 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23469 extend vector elements.
23470 (vsx_sign_extend_hi_<mode>): Likewise.
23471 (vsx_sign_extend_si_v2di): Likewise.
23472 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23473 declaration.
23474 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23475 constraints. Add trailing period to wL documentation.
23476
23477 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23478
23479 PR middle-end/71020
23480 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23481 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23482 * tree-call-cdce.c: Include tree-dfa.h.
23483 (can_guard_call_p): New function, extracted from...
23484 (can_use_internal_fn): ...here.
23485 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23486 and return void.
23487 (shrink_wrap_one_built_in_call): Likewise.
23488 (use_internal_fn): Likewise.
23489 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23490 and return void. Call replace_abnormal_ssa_names.
23491 (pass_call_cdce::execute): Check can_guard_call_p during the
23492 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23493 will always change something.
23494
23495 2016-05-18 Martin Jambor <mjambor@suse.cz>
23496
23497 PR ipa/70646
23498 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23499 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23500
23501 2016-05-18 Martin Jambor <mjambor@suse.cz>
23502
23503 PR ipa/70646
23504 * ipa-inline.h (condition): New field size.
23505 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23506 for comaprison and store it into the new condition.
23507 (evaluate_conditions_for_known_args): Use condition size to check
23508 access sizes for all but CHANGED conditions.
23509 (unmodified_parm_1): New parameter size_p, store access size into it.
23510 (unmodified_parm): Likewise.
23511 (unmodified_parm_or_parm_agg_item): Likewise.
23512 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23513 (set_cond_stmt_execution_predicate): Extract access sizes and store
23514 them to conditions.
23515 (set_switch_stmt_execution_predicate): Likewise.
23516 (will_be_nonconstant_expr_predicate): Likewise.
23517 (will_be_nonconstant_predicate): Likewise.
23518 (inline_read_section): Stream condition size.
23519 (inline_write_summary): Likewise.
23520
23521 2016-05-18 Richard Biener <rguenther@suse.de>
23522
23523 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23524 condition cost to PHI cost instead of total_cost.
23525
23526 2016-05-18 Martin Liska <mliska@suse.cz>
23527
23528 PR fortran/70856
23529 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23530 merged variables.
23531
23532 2016-05-18 Richard Biener <rguenther@suse.de>
23533
23534 * lto-streamer.h (LTO_major_version): Bump to 6.
23535
23536 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23537
23538 * function.c (make_split_prologue_seq, make_prologue_seq,
23539 make_epilogue_seq): New functions, factored out from...
23540 (thread_prologue_and_epilogue_insns): Here.
23541
23542 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23543
23544 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23545 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23546 of before. Add a comment.
23547
23548 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23549
23550 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23551 expression pointer, not pointer to the pointer.
23552
23553 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23554
23555 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23556 (avx2_pbroadcast<mode>): Add another alternative with v instead
23557 of x constraints in it, using <pbroadcast_evex_isa> isa.
23558 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23559
23560 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23561 constraint x instead of v in second alternative, add avx512bw
23562 alternative.
23563
23564 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23565 constraint x instead of v in second alternative, add avx512bw
23566 alternative.
23567
23568 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23569 constraint x instead of v in second alternative, add avx512bw
23570 alternative.
23571
23572 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23573 avx512bw alternative.
23574
23575 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23576
23577 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23578 array to 128 chars.
23579 (define_insn "*andnottf3"): Ditto.
23580 (define_insn "*<code><mode>3"/any_logic): Ditto.
23581 (define_insn "*<code>tf3"/any_logic): Ditto.
23582 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23583 operand to block AVX-512VL insn variant emit when it is not enabled.
23584
23585 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23586
23587 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23588 constraint fot SF mode.
23589
23590 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23591 Kirill Yukhin <kirill.yukhin@intel.com>
23592
23593 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23594 modifiers.
23595 (define_insn "rsqrt14<mode>"): Ditto.
23596 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23597 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23598 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23599 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23600 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23601 Ditto.
23602 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23603 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23604 * config/i386/i386.c (ix86_print_operand): Expand check for size
23605 override codes for Intel syntax.
23606
23607 2016-05-18 Richard Biener <rguenther@suse.de>
23608
23609 PR tree-optimization/71168
23610 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23611 initialization earlier.
23612
23613 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23614
23615 * config/aarch64/aarch64-simd.md
23616 (aarch64_reduc_plus_internal<mode>): Rename to...
23617 (reduc_plus_scal): ...This, and remove previous implementation.
23618
23619 2016-05-18 Richard Biener <rguenther@suse.de>
23620
23621 * passes.def: Put late dse and cd_dce in canonical order.
23622
23623 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23624
23625 * ipa-inline-transform.c (preserve_function_body_p): Look for
23626 first non-thunk clone.
23627 (save_function_body): Save into first non-thunk.
23628 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23629 up call stmt id.
23630 (lto_output_node): Inline thunks don't need body in every
23631 partition.
23632 * lto-streamer-in.c: Do not fixup thunk clones.
23633 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23634 thunks.
23635 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23636 folding suceeds.
23637
23638 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23639
23640 PR middle-end/63586
23641 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23642 (reassociate_bb): Call transform_add_to_multiply.
23643
23644 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23645
23646 * config/aarch64/aarch64.c (all_extensions): Removed unused
23647 static variable.
23648
23649 2016-05-17 Nathan Sidwell <nathan@acm.org>
23650
23651 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23652 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23653
23654 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23655
23656 PR tree-optimization/54579
23657 PR middle-end/55299
23658 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23659
23660 2016-05-17 Marek Polacek <polacek@redhat.com>
23661
23662 PR ipa/71146
23663 * tree-inline.c (expand_call_inline): Call
23664 maybe_remove_unused_call_args.
23665
23666 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23667
23668 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23669 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23670 * doc/md.texi (fmin@var{m}3): Likewise.
23671
23672 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23673
23674 * match.pd (X & C): New transformation.
23675
23676 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23677
23678 * match.pd (~X & Y): New transformation.
23679
23680 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23681
23682 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23683 information for new SSA_NAME.
23684 (simplify_conversion_using_ranges): Get range through get_range_info
23685 instead of get_value_range.
23686
23687 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23688
23689 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23690 Remove inline assembly.
23691 (vmvn_s16): Likewise.
23692 (vmvn_s32): Likewise.
23693 (vmvn_u8): Likewise.
23694 (vmvn_u16): Likewise.
23695 (vmvn_u32): Likewise.
23696 (vmvnq_s8): Likewise.
23697 (vmvnq_s16): Likewise.
23698 (vmvnq_s32): Likewise.
23699 (vmvnq_u8): Likewise.
23700 (vmvnq_u16): Likewise.
23701 (vmvnq_u32): Likewise.
23702 (vmvn_p8): Likewise.
23703 (vmvnq_p16): Likewise.
23704
23705 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23706
23707 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23708 Use builtin.
23709 (vmul_n_s16): Likewise.
23710 (vmul_n_s32): Likewise.
23711 (vmul_n_u16): Likewise.
23712 (vmul_n_u32): Likewise.
23713 (vmulq_n_f32): Likewise.
23714 (vmulq_n_f64): Likewise.
23715 (vmulq_n_s16): Likewise.
23716 (vmulq_n_s32): Likewise.
23717 (vmulq_n_u16): Likewise.
23718 (vmulq_n_u32): Likewise.
23719
23720 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23721
23722 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23723 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23724
23725 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23726
23727 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23728 to *aarch64_fma4_elt_from_dup<mode>.
23729 (*aarch64_fnma4_elt_to_128df): Rename to
23730 *aarch64_fnma4_elt_from_dup<mode>.
23731 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23732 (vfms_n_f32): Likewise.
23733 (vfms_n_f64): Likewise.
23734 (vfmsq_n_f32): Likewise.
23735 (vfmsq_n_f64): Likewise.
23736
23737 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23738
23739 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23740
23741 2016-05-17 Richard Biener <rguenther@suse.de>
23742
23743 PR tree-optimization/71132
23744 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23745 Only add control dependences for blocks in the loop.
23746 (build_rdg): Adjust.
23747 (generate_code_for_partition): Return whether loop should
23748 be destroyed and delay that.
23749 (distribute_loop): Likewise.
23750 (pass_loop_distribution::execute): Record loops to be destroyed
23751 and perform delayed destroying of loops.
23752
23753 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23754
23755 PR target/70809
23756 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23757
23758 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23759
23760 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23761
23762 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23763
23764 PR target/71114
23765 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23766 insertion point for instructions generated by validize_mem.
23767
23768 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23769
23770 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23771 in brackets.
23772
23773 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23774
23775 * config/aarch64/aarch64.c
23776 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23777 rather than a macro.
23778
23779 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23780
23781 * doc/invoke.texi (AArch64 Options): Various updates.
23782
23783 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23784
23785 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23786 into instrumentation thunks.
23787 * cif-code.def (CIF_CHKP): New.
23788
23789 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23790
23791 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23792
23793 2016-05-16 Martin Jambor <mjambor@suse.cz>
23794
23795 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23796 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23797
23798 2016-05-16 Marek Polacek <polacek@redhat.com>
23799
23800 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23801 commentary.
23802
23803 2016-05-16 Martin Jambor <mjambor@suse.cz>
23804
23805 PR hsa/70857
23806 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23807 the outlined kernel function.
23808
23809 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23810
23811 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23812 (ISA_HAS_DLSA): Ditto.
23813
23814 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23815
23816 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23817
23818 2016-05-16 Nathan Sidwell <nathan@acm.org>
23819
23820 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23821 (nvptx_name_replacement): Restore. Add comment.
23822 (write_fn_proto, write_fn_proto_from_insn,
23823 nvptx_output_call_insn): Restore
23824 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23825
23826 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23827
23828 * config/aarch64/aarch64.md
23829 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23830 (add<mode>3_compareC_imm): Likewise.
23831 (<optab>si3_uxtw): Split into register and immediate variants.
23832 (andsi3_compare0_uxtw): Likewise.
23833 (and<mode>3_compare0): Likewise.
23834 (and<mode>3nr_compare0): Likewise.
23835 (stack_protect_test_<mode>): Don't use %x for memory operands.
23836
23837 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23838
23839 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23840
23841 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23842
23843 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23844 Split integer shifts into shift_reg and bfm.
23845 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23846 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23847 (ror<mode>3_insn): Likewise.
23848 (<optab>si3_insn_uxtw): Likewise.
23849 (<optab><mode>3_insn): Change to rotate_imm.
23850 (extr<mode>5_insn_alt): Likewise.
23851 (extrsi5_insn_uxtw): Likewise.
23852 (extrsi5_insn_uxtw_alt): Likewise.
23853
23854 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23855
23856 * doc/tm.texi: Regenerate.
23857 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
23858 (TARGET_INVALID_RETURN_TYPE): Remove.
23859 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
23860 TARGET_INVALID_RETURN_TYPE.
23861 * target.def (invalid_parameter_type): Remove.
23862 (invalid_return_type): Remove.
23863
23864 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23865
23866 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
23867 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
23868 calls from thunk.
23869 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
23870 gimple body.
23871 (preserve_function_body_p): No need to preserve function body
23872 * cif-codes.def (CIF_THUNK): Remove.
23873 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
23874
23875 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23876
23877 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
23878
23879 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23880
23881 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
23882 for thunks.
23883
23884 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23885
23886 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
23887 (inline_small_functions): Do not look for function symbol when
23888 resetting caches.
23889
23890 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23891
23892 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
23893 of inline thunks
23894
23895 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23896 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23897 Jiong Wang <jiong.wang@arm.com>
23898
23899 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
23900 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
23901 Define __ARM_FP16_ARGS when appropriate.
23902 * config/arm/arm.c (arm_invalid_parameter_type): Remove
23903 declaration.
23904 (arm_invalid_return_type): Likewise.
23905 (TARGET_INVALID_PARAMETER_TYPE): Remove.
23906 (TARGET_INVALID_RETURN_TYPE): Remove.
23907 (aapcs_vfp_sub_candidate): Allow HFmode.
23908 (aapcs_vfp_allocate): Add comment. Support HFmode.
23909 (aapcs_vfp_allocate_return_reg): Likewise.
23910 (struct aapcs_cp_arg_layout): Slightly reword comments for
23911 is_return_candidate and allocate_return_reg.
23912 (output_mov_vfp): Update assert.
23913 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
23914 condition.
23915 (arm_invalid_parameter_type): Remove.
23916 (amr_invalid_return_type): Remove.
23917 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
23918 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
23919 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
23920
23921 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23922
23923 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
23924 * config/aarch64/arch64-protos.h
23925 (aarch64_legitimize_reload_address): Remove.
23926 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
23927 Remove.
23928
23929 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
23930
23931 * configure.ac: Add ACX_NONCANONICAL_HOST.
23932 * configure: Regenerate.
23933 * Makefile.in: Set host_noncanonical.
23934
23935 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
23936
23937 PR target/71097
23938 * config/i386/i386.md (*movtf_internal): Before register allocation,
23939 do not allow FP constants for CM_MEDIUM memory model, allow only
23940 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
23941 (*movxf_internal): Ditto.
23942 (*movdf_internal): Ditto.
23943 (*movsf_internal): Ditto.
23944
23945 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
23946
23947 PR rtl-optimization/67483
23948 * combine.c (make_compound_operation): Don't call extract_left_shift
23949 with negative shift amounts.
23950
23951 2016-05-13 Jakub Jelinek <jakub@redhat.com>
23952
23953 PR bootstrap/71071
23954 * fold-const.c (fold_checksum_tree): Allow modification
23955 of TYPE_ALIAS_SET during folding.
23956
23957 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
23958 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
23959 (ix86_split_to_parts): Likewise. Fix up formatting.
23960
23961 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
23962
23963 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
23964 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
23965 printf format.
23966
23967 2016-05-13 Nathan Sidwell <nathan@acm.org>
23968
23969 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
23970 (nvptx_name_replacement): Delete.
23971 (write_fn_proto, write_fn_proto_from_insn,
23972 nvptx_output_call_insn): Remove nvptx_name_replacement call.
23973 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
23974 * langhooks.c (add_builtin_funcction_common): Call
23975 targetm.mangle_decl_assembler_name.
23976
23977 * config/nvptx/nvptx.c (write_fn_proto): Handle
23978 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
23979
23980 2016-05-13 Martin Liska <mliska@suse.cz>
23981
23982 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
23983 and PRIu64 in printf format.
23984
23985 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23986
23987 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
23988 comment.
23989
23990 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23991
23992 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
23993 Change --param max-completely-peeled-times to
23994 --param max-completely-peel-times in dump file printing.
23995
23996 2016-05-13 Richard Biener <rguenther@suse.de>
23997
23998 PR tree-optimization/42587
23999 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24000 (find_bswap_or_nop_1): Likewise.
24001 (bswap_replace): Likewise.
24002
24003 2016-05-13 Martin Liska <mliska@suse.cz>
24004
24005 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24006 Initialize a variable with default value.
24007
24008 2016-05-13 Martin Liska <mliska@suse.cz>
24009
24010 * doc/invoke.texi: Enhance explanation of error recovery
24011 of sanitizers.
24012
24013 2016-05-13 Martin Liska <mliska@suse.cz>
24014
24015 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24016 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24017 (iv_inv_expr_ent *).
24018 (struct iv_inv_expr_ent): Comment struct fields.
24019 (sort_iv_inv_expr_ent): New function.
24020 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24021 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24022 a hash_map between iv_inv_expr_ent and number of usages.
24023 (niter_for_exit): Fix coding style.
24024 (tree_ssa_iv_optimize_init): Use renamed variable.
24025 (determine_base_object): Fix coding style.
24026 (alloc_iv): Likewise.
24027 (find_interesting_uses_outside): Likewise.
24028 (add_candidate_1): Likewise.
24029 (add_standard_iv_candidates): Likewise.
24030 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24031 (prepare_decl_rtl): Fix coding style.
24032 (get_address_cost): Likewise.
24033 (get_shiftadd_cost): Likewise.
24034 (force_expr_to_var_cost): Likewise.
24035 (compare_aff_trees): Likewise.
24036 (get_expr_id): Restructure the function.
24037 (get_loop_invariant_expr_id): Renamed to
24038 get_loop_invariant_expr.
24039 (get_computation_cost_at): Replace usage of inv_expr_id with
24040 inv_expr.
24041 (get_computation_cost): Likewise.
24042 (determine_group_iv_cost_generic): Likewise.
24043 (determine_group_iv_cost_address): Likewise.
24044 (iv_period): Fix coding style.
24045 (iv_elimination_compare_lt): Likewise.
24046 (may_eliminate_iv): Likewise.
24047 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24048 inv_expr.
24049 (determine_group_iv_costs): Dump invariant expressions.
24050 (iv_ca_recount_cost): Use the newly added hash_map.
24051 (iv_ca_set_remove_invariants): Fix coding style.
24052 (iv_ca_set_add_invariants): Fix coding style.
24053 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24054 invariants.
24055 (iv_ca_set_cp): Likewise.
24056 (iv_ca_new): Initialize the newly added hash_map and remove
24057 initialization of fields.
24058 (iv_ca_free): Delete the hash_map.
24059 (iv_ca_dump): Dump invariant expressions.
24060 (iv_ca_extend): Fix coding style.
24061 (try_add_cand_for): Likewise.
24062 (create_new_ivs): Dump information about # of avg iterations and
24063 # of used invariant expressions.
24064 (rewrite_use_compare): Fix coding style.
24065 (free_loop_data): Set default value for max_inv_expr_id.
24066
24067 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24068
24069 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24070 returned value cse_cfg_altered computation.
24071 (rest_of_handle_cse2): Likewise.
24072 (rest_of_handle_cse_after_global_opts): Likewise.
24073
24074 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24075
24076 PR target/53440
24077 * config/arm/arm.c (arm32_output_mi_thunk): New.
24078 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24079 to split Thumb1 vs TARGET_32BIT functionality.
24080 (arm_thumb1_mi_thunk): New.
24081
24082 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24083
24084 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24085 to true.
24086
24087 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24088
24089 PR target/71080
24090 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24091
24092 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24093
24094 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24095 (expand_builtin_trap): Emit a regular call.
24096 (set_builtin_user_assembler_name): Remove obsolete cases.
24097 * dse.c (scan_insn): Adjust.
24098 * except.c: Include calls.h.
24099 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24100 emit a regular call to setjmp.
24101 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24102 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24103 (emit_block_move_via_libcall): Delete.
24104 (block_move_fn): Delete.
24105 (init_block_move_fn): Likewise.
24106 (emit_block_move_libcall_fn): Likewise.
24107 (emit_block_op_via_libcall): New function.
24108 (set_storage_via_libcall): Tidy up and use memset builtin.
24109 (block_clear_fn): Delete.
24110 (init_block_clear_fn): Likewise.
24111 (clear_storage_libcall_fn): Likewise.
24112 (expand_assignment): Call emit_block_move_via_libcall.
24113 Do not include gt-expr.h.
24114 * expr.h (emit_block_op_via_libcall): Declare.
24115 (emit_block_copy_via_libcall): New inline function.
24116 (emit_block_move_via_libcall): Likewise.
24117 (emit_block_comp_via_libcall): Likewise.
24118 (block_clear_fn): Delete.
24119 (init_block_move_fn): Likewise.
24120 (init_block_clear_fn): Likewise.
24121 (emit_block_move_via_libcall): Likewise.
24122 (set_storage_via_libcall): Add default parameter value.
24123 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24124 (abort_libfunc): Delete.
24125 (memcpy_libfunc): Likewise.
24126 (memmove_libfunc): Likewise.
24127 (memcmp_libfunc): Likewise.
24128 (memset_libfunc): Likewise.
24129 (setbits_libfunc): Likewise.
24130 (setjmp_libfunc): Likewise.
24131 (longjmp_libfunc): Likewise.
24132 (profile_function_entry_libfunc): Likewise.
24133 (profile_function_exit_libfunc): Likewise.
24134 (gcov_flush_libfunc): Likewise.
24135 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24136 and DECL_VISIBILITY on the declaration.
24137 (init_optabs): Do not initialize obsolete libfuncs.
24138 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24139 * tree-core.h (ECF_RET1): Define.
24140 (ECF_TM_PURE): Adjust.
24141 (ECF_TM_BUILTIN): Likewise.
24142 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24143 (build_common_builtin_nodes): Initialize abort builtin.
24144 Add ECF_RET1 on memcpy, memmove and memset builtins.
24145 Pass final flags for alloca and alloca_with_align builtins.
24146 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24147 obsolete builtins.
24148 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24149 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24150 set_storage_via_libcall and call emit_block_copy_via_libcall.
24151
24152 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24153
24154 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24155 DImode before it is passed to ix86_output_call_operand.
24156 (*call_value_got_x32): Ditto for operand 1.
24157
24158 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24159
24160 PR rtl-optimization/70904
24161 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24162 reload for wide mode.
24163
24164 2016-05-12 Marek Polacek <polacek@redhat.com>
24165
24166 PR c/70756
24167 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24168 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24169 * langhooks.h (incomplete_type_error): Likewise.
24170 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24171 parameter, pass it down to incomplete_type_error.
24172 * tree.h (size_in_bytes): New inline overload.
24173 (size_in_bytes_loc): Renamed from size_in_bytes.
24174
24175 2016-05-12 Richard Biener <rguenther@suse.de>
24176
24177 PR tree-optimization/71059
24178 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24179 nary before looking up or entering the expression into the VN
24180 hashes.
24181 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24182 Make sure to re-use NARYs without result as inserted by
24183 phi-translation.
24184
24185 2016-05-12 Richard Biener <rguenther@suse.de>
24186
24187 PR tree-optimization/71062
24188 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24189 field.
24190 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24191 vars_contains_restrict if the var is a restrict tag.
24192 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24193 do not disambiguate pointers against it.
24194 (dump_points_to_solution): Re-structure and adjust for new
24195 vars_contains_restrict flag.
24196 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24197
24198 2016-05-12 Martin Liska <mliska@suse.cz>
24199
24200 * doc/invoke.texi: Explain connection between
24201 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24202
24203 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24204
24205 PR tree-optimization/71006
24206 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24207 consider COND_EXPR as a mask producer.
24208
24209 2016-05-12 Marek Polacek <polacek@redhat.com>
24210
24211 PR driver/71063
24212 * opts.c (common_handle_option): Detect missing argument for --help^.
24213
24214 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24215
24216 PR target/70830
24217 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24218 when popping the PC and within an interrupt handler routine.
24219 Add missing tab to output of "ldmfd".
24220 (output_return_instruction): Output LDMFD with SP update rather
24221 than POP when returning from interrupt handler.
24222
24223 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24224
24225 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24226 TARGET_64BIT && TARGET_AVX512DQ.
24227 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24228 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24229 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24230 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24231 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24232 (*vec_extractv4si_zext): Add avx512dq alternative.
24233 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24234 use v instead of x constraint in other alternatives where possible.
24235
24236 * config/i386/sse.md (sse2_loadld): Use v instead of x
24237 constraint in alternatives 0,1,4.
24238
24239 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24240 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24241 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24242
24243 PR target/71019
24244 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24245 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24246 is not emitted unless TARGET_AVX512BW.
24247 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24248 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24249 for the result operand.
24250
24251 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24252 constraint instead of x in avx alternatives. Use maybe_evex instead
24253 of vex prefix.
24254
24255 * config/i386/constraints.md (Yv): New constraint.
24256 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24257 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24258 * config/i386/i386.md (avx512fvecmode): New mode attr.
24259 (*pushtf): Use v constraint instead of x.
24260 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24261 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24262 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24263 (*absnegtf2_sse): Likewise.
24264 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24265 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24266 avx512f alternatives.
24267 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24268
24269 2016-05-12 Richard Biener <rguenther@suse.de>
24270
24271 PR tree-optimization/71060
24272 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24273 require exact match of DR_BASE_OBJECT but only matching address and
24274 type.
24275
24276 2016-05-12 Richard Biener <rguenther@suse.de>
24277
24278 PR tree-optimization/70986
24279 * cfganal.c: Include cfgloop.h.
24280 (dfs_find_deadend): Prefer to take edges exiting loops.
24281
24282 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24283
24284 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24285 compile and run time.
24286
24287 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24288
24289 PR c/43651
24290 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24291
24292 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24293
24294 * config/i386/i386.c (legitimize_pic_address): Use
24295 copy_to_suggested_reg instead of gen_movsi.
24296
24297 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24298
24299 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24300 the code into quad_address_p and call it to share code with
24301 vsx_quad_dform_memory_operand.
24302 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24303 d-form support.
24304 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24305 bit instead of being a separate word. Split -mpower9-dform into
24306 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24307 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24308 for the register class supporting 128-bit quad word memory offsets.
24309 (mode_supports_vsx_dform_quad): Helper function to return if the
24310 register class uses quad word memory offsets.
24311 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24312 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24313 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24314 instructions are enabled, set up the appropriate addr_masks for
24315 128-bit types.
24316 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24317 -mpower9-dform-scalar, instead of -mpower9-dform.
24318 (rs6000_option_override_internal): Split -mpower9-dform into two
24319 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24320 -mpower9-dform switch sets or clears both. If we are not using
24321 the LRA register allocator, do not enable -mpower9-dform-vector by
24322 default. If we are using LRA, enable -mpower9-dform-vector and
24323 -mvsx-timode if it is appropriate. Issue a warning if either
24324 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24325 enabling LRA.
24326 (quad_address_offset_p): New helper function to return if the
24327 offset is legal for quad word memory instructions.
24328 (quad_address_p): New function to determin if GPR or vector
24329 register quad word memory addresses are legal.
24330 (mem_operand_gpr): Validate quad word address offsets.
24331 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24332 d-form (register + offset) instructions.
24333 (offsettable_ok_by_alignment): Likewise.
24334 (rs6000_legitimate_offset_address_p): Likewise.
24335 (legitimate_lo_sum_address_p): Likewise.
24336 (rs6000_legitimize_address): Likewise.
24337 (rs6000_legitimize_reload_address): Add more debug statements for
24338 -mdebug=addr.
24339 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24340 d-form instructions.
24341 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24342 d-form instructions. Distinguish different cases in debug
24343 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24344 d-form instructions.
24345 (rs6000_preferred_reload_class): Likewise.
24346 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24347 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24348 of the ISA 2.06 indexed memory instructions.
24349 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24350 use them to save/restore the saved vector registers instead of
24351 using Altivec instructions.
24352 (rs6000_emit_epilogue): Likewise.
24353 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24354 (rs6000_opt_masks): Split -mpower9-dform into
24355 -mpower9-dform-scalar and -mpower9-dform-vector.
24356 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24357 was not selected.
24358 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24359 ISA 3.0 vector indexed memory instructions, and fold the code into
24360 the normal mov<mode> patterns.
24361 (p9_vecstore_<mode>): Likewise.
24362 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24363 instructions.
24364 (vsx_movti_64bit): Likewise.
24365 (vsx_movti_32bit): Likewise.
24366 * config/rs6000/constraints.md (wO constraint): New constraint for
24367 ISA 3.0 vector d-form support.
24368 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24369 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24370 include -mpower9-dform-vector until we switch over to LRA.
24371 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24372 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24373 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24374 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24375 for -mpower9-dform and -mlra.
24376 * doc/md.texi (wO constraint): Document wO constraint.
24377
24378 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24379
24380 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24381 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24382 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24383 Move handling of non-insn arguments inline into the sole user:
24384 (output_trans_func): ...here.
24385 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24386 in emitted function prototype.
24387 (output_internal_insn_latency_func): Ditto. Simplify.
24388 (output_internal_maximal_insn_latency_func): Ditto. Delete
24389 always-unused argument.
24390 (output_insn_latency_func): Ditto.
24391 (output_maximal_insn_latency_func): Ditto.
24392
24393 2016-05-11 Richard Biener <rguenther@suse.de>
24394
24395 PR tree-optimization/71055
24396 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24397 sth with precision not equal to access size verify we don't chop
24398 off bits.
24399
24400 2016-05-11 Richard Biener <rguenther@suse.de>
24401
24402 PR debug/71057
24403 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24404 (dwarf2out_finish): Move retry_incomplete_types call ...
24405 (dwarf2out_early_finish): ... here.
24406
24407 2016-05-11 Richard Biener <rguenther@suse.de>
24408
24409 PR middle-end/71002
24410 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24411 if the langhook insists on it.
24412 * fold-const.c (make_bit_field_ref): Add arg for the original
24413 reference and preserve its alias-set.
24414 (decode_field_reference): Take exp by reference and adjust it
24415 to the original memory reference.
24416 (optimize_bit_field_compare): Adjust callers.
24417 (fold_truth_andor_1): Likewise.
24418 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24419
24420 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24421
24422 PR middle-end/70807
24423 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24424 * cfgrtl.c (delete_insn_and_edges): Likewise.
24425 * config/i386/i386.c (convert_scalars_to_vector): Remove
24426 redundant code.
24427 * cse.c (cse_insn): Compute cse_cfg_altered.
24428 (delete_trivially_dead_insns): Likewise.
24429 (cse_cc_succs): Likewise.
24430 (rest_of_handle_cse): Free dominance info if required.
24431 (rest_of_handle_cse2): Likewise.
24432 (rest_of_handle_cse_after_global_opts): Likewise.
24433
24434 2016-05-11 Alan Modra <amodra@gmail.com>
24435
24436 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24437 abi_v4_pass_in_fpr): New functions.
24438 (rs6000_function_arg_boundary): Exclude complex IBM long double
24439 from 64-bit alignment when ABI_V4.
24440 (rs6000_function_arg, rs6000_function_arg_advance_1,
24441 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24442
24443 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24444
24445 PR rtl-optimization/71028
24446 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24447 jump with just a return in the fallthrough block if the branch
24448 block contains just a return as well.
24449
24450 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24451
24452 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24453 * match.pd ((X & Y) ^ Y): ... this.
24454 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24455 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24456
24457 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24458
24459 * read-md.c (require_char_ws): New function.
24460 (read_string): Simplify using require_char_ws.
24461 (handle_constants): Likewise.
24462 (handle_enum): Likewise.
24463 (handle_file): Likewise.
24464 * read-md.h (require_char_ws): New declaration.
24465 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24466 (read_mapping): Likewise.
24467 (read_rtx_code): Likewise.
24468 (read_nested_rtx): Likewise.
24469
24470 2016-05-10 James Norris <jnorris@codesourcery.com>
24471
24472 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24473 if offloading is enabled and -fopenacc or -fopenmp is specified.
24474 (CRTOFFLOADEND): Likewise.
24475 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24476 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24477
24478 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24479
24480 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24481 gotoff_operand code paths. Use copy_to_suggested_regs and
24482 expand_simple_binop where appropriate. Cleanup.
24483
24484 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24485
24486 PR target/70799
24487 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24488 integer constants.
24489 (dimode_scalar_chain::vector_const_cost): New.
24490 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24491 (dimode_scalar_chain::convert_op): Likewise.
24492 (dimode_scalar_chain::convert_insn): Likewise.
24493
24494 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24495
24496 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24497 unary operation, not a binary one.
24498
24499 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24500
24501 PR middle-end/70877
24502 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24503 calls with type casted fndecl.
24504
24505 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24506
24507 PR tree-optimization/70786
24508 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24509 * calls.c (initialize_argument_information): Bind bounds
24510 with corresponding args passed by reference.
24511
24512 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24513
24514 PR target/70927
24515 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24516 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24517 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24518 accordingly.
24519
24520 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24521
24522 PR target/70963
24523 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24524 code for a zero scale factor.
24525 (vsx_xvcvdpuxds_scale): Likewise.
24526
24527 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24528
24529 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24530 if show_ruler_p was set on the context.
24531 (layout::show_ruler): New method.
24532 * diagnostic.h (struct diagnostic_context): Add field
24533 "show_ruler_p".
24534
24535 2016-05-10 Richard Biener <rguenther@suse.de>
24536
24537 PR tree-optimization/71039
24538 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24539 (chk_uses): New function.
24540 (propagate_with_phi): Verify we can safely replicate the lhs of an
24541 aggregate assignment on all incoming edges.
24542
24543 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24544
24545 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24546 Forward declare.
24547 (rx_atomic_sequence): New class.
24548 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24549 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24550 non-inline.
24551 (rx_atomic_sequence::rx_atomic_sequence,
24552 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24553 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24554 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24555 CTRLREG_INTB): New constants.
24556 (FETCHOP): New code iterator.
24557 (fethcop_name, fetchop_name2): New iterator code attributes.
24558 (QIHI): New mode iterator.
24559 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24560 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24561 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24562
24563 2016-05-10 Martin Liska <mliska@suse.cz>
24564
24565 * tree-inline.c (remap_dependence_clique): Do not remap
24566 debugging statements.
24567
24568 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24569
24570 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24571 ("*fixuns_truncdfdi2_z13")
24572 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24573 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24574 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24575
24576 2016-05-10 Richard Biener <rguenther@suse.de>
24577
24578 PR tree-optimization/70497
24579 PR tree-optimization/28367
24580 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24581 split out from ...
24582 (visit_reference_op_load): ... here.
24583 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24584 with simplified BIT_FIELD_REFs.
24585 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24586 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24587 correctly.
24588
24589 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24590
24591 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24592 documentation comment. For BLOCK nodes, add a
24593 DW_AT_abstract_origin attribute that points to the DIE generated
24594 for the origin BLOCK.
24595 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24596 blocks from inlined functions.
24597
24598 2016-05-10 Alan Modra <amodra@gmail.com>
24599
24600 PR target/70947
24601 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24602 regrename modifying insns saving lr before __morestack call.
24603 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24604 insns restoring lr after __morestack call.
24605
24606 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24607
24608 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24609 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24610 expanders.
24611 * config/i386/sse.md (vec_interleave_high<mode>,
24612 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24613 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24614
24615 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24616
24617 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24618 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24619 parallel reassociation for power8 and forward.
24620
24621 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24622
24623 * config/i386/i386.md (absneg splitters with general regs): Use
24624 general_reg_operand predicate.
24625 (btsq peephole2): Use x86_64_immediate_operand to check if new
24626 value is suitable for immediate operand. Generate emitted insn
24627 using RTL expressions.
24628 (btcq peephole2): Ditto.
24629 (btrq peephole2): Ditto. Generate correct immediate operand
24630 for AND masking.
24631
24632 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24633
24634 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24635 bitpos.
24636
24637 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24638
24639 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24640 pointer dereference.
24641
24642 2016-05-09 Richard Biener <rguenther@suse.de>
24643
24644 PR tree-optimization/70985
24645 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24646 op0 isn't a gimple register.
24647
24648 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24649
24650 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24651 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24652 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24653 (i6400_fpu_mult): New cpu units.
24654 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24655 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24656 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24657 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24658 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24659 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24660 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24661 (i6400_msa_long_float4, i6400_msa_long_float5)
24662 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24663 (i6400_msa_fdiv_sf): New reservations.
24664 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24665 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24666 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24667 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24668 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24669 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24670 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24671 (msa_short_store4, msa_long_load, msa_short_store)
24672 (msa_long_logic, msa_long_float2, msa_long_float4)
24673 (msa_long_float5, msa_long_float8, msa_long_mult)
24674 (msa_long_fdiv, msa_long_div): New reservations.
24675
24676 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24677 Sameera Deshpande <sameera.deshpande@imgtec.com>
24678 Matthew Fortune <matthew.fortune@imgtec.com>
24679 Graham Stott <graham.stott@imgtec.com>
24680 Chao-ying Fu <chao-ying.fu@imgtec.com>
24681
24682 * config.gcc: Add MSA header file for mips*-*-* target.
24683 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24684 (Ubv8i, Urv8): New constraints.
24685 * config/mips/mips-ftypes.def: Add function types for MSA
24686 builtins.
24687 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24688 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24689 * config/mips/mips-msa.md: New file.
24690 * config/mips/mips-protos.h
24691 (mips_split_128bit_const_insns): New prototype.
24692 (mips_msa_idiv_insns): Likewise.
24693 (mips_split_128bit_move): Likewise.
24694 (mips_split_128bit_move_p): Likewise.
24695 (mips_split_msa_copy_d): Likewise.
24696 (mips_split_msa_insert_d): Likewise.
24697 (mips_split_msa_fill_d): Likewise.
24698 (mips_expand_msa_branch): Likewise.
24699 (mips_const_vector_same_val_p): Likewise.
24700 (mips_const_vector_same_bytes_p): Likewise.
24701 (mips_const_vector_same_int_p): Likewise.
24702 (mips_const_vector_shuffle_set_p): Likewise.
24703 (mips_const_vector_bitimm_set_p): Likewise.
24704 (mips_const_vector_bitimm_clr_p): Likewise.
24705 (mips_msa_vec_parallel_const_half): Likewise.
24706 (mips_msa_output_division): Likewise.
24707 (mips_ldst_scaled_shift): Likewise.
24708 (mips_expand_vec_cond_expr): Likewise.
24709 * config/mips/mips.c (enum mips_builtin_type): Add
24710 MIPS_BUILTIN_MSA_TEST_BRANCH.
24711 (mips_gen_const_int_vector_shuffle): New prototype.
24712 (mips_const_vector_bitimm_set_p): New function.
24713 (mips_const_vector_bitimm_clr_p): Likewise.
24714 (mips_const_vector_same_val_p): Likewise.
24715 (mips_const_vector_same_bytes_p): Likewise.
24716 (mips_const_vector_same_int_p): Likewise.
24717 (mips_const_vector_shuffle_set_p): Likewise.
24718 (mips_symbol_insns): Forbid loading symbols via immediate for
24719 MSA.
24720 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24721 stores.
24722 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24723 MSA.
24724 (mips_lx_address_p): Add support load indexed address for MSA.
24725 (mips_address_insns): Add calculation of instructions needed for
24726 stores and loads for MSA.
24727 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24728 CONST_VECTOR for MSA and let it fall through.
24729 (mips_ldst_scaled_shift): New function.
24730 (mips_subword_at_byte): Likewise.
24731 (mips_msa_idiv_insns): Likewise.
24732 (mips_legitimize_move): Validate MSA moves.
24733 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24734 calculation of costs for MSA division.
24735 (mips_split_move_p): Check if MSA moves need splitting.
24736 (mips_split_move): Split MSA moves if necessary.
24737 (mips_split_128bit_move_p): New function.
24738 (mips_split_128bit_move): Likewise.
24739 (mips_split_msa_copy_d): Likewise.
24740 (mips_split_msa_insert_d): Likewise.
24741 (mips_split_msa_fill_d): Likewise.
24742 (mips_output_move): Handle MSA moves.
24743 (mips_expand_msa_branch): New function.
24744 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24745 Reinstate 'y' modifier.
24746 (mips_file_start): Add MSA .gnu_attribute.
24747 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24748 FPRs.
24749 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24750 (mips_class_max_nregs): Add register size for MSA supported mode.
24751 (mips_cannot_change_mode_class): Allow conversion between MSA
24752 vector modes and TImode.
24753 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24754 instruction.
24755 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24756 (mips_preferred_simd_mode): Add preffered modes for MSA.
24757 (mips_vector_mode_supported_p): Add MSA supported modes.
24758 (mips_autovectorize_vector_sizes): New function.
24759 (mips_msa_output_division): Likewise.
24760 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24761 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24762 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24763 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24764 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24765 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24766 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24767 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24768 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24769 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24770 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24771 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24772 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24773 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24774 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24775 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24776 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24777 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24778 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24779 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24780 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24781 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24782 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24783 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24784 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24785 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24786 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24787 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24788 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24789 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24790 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24791 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24792 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24793 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24794 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24795 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24796 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24797 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24798 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24799 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24800 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24801 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24802 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24803 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24804 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24805 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24806 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24807 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24808 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24809 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24810 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24811 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24812 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24813 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24814 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24815 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24816 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24817 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24818 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24819 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24820 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24821 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24822 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24823 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24824 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24825 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24826 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24827 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24828 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24829 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24830 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24831 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24832 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24833 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24834 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24835 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24836 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24837 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24838 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24839 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24840 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24841 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24842 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24843 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24844 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24845 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24846 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24847 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24848 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24849 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24850 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24851 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24852 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24853 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24854 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24855 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
24856 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
24857 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
24858 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
24859 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
24860 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
24861 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
24862 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
24863 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
24864 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
24865 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
24866 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
24867 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
24868 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
24869 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
24870 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
24871 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
24872 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
24873 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
24874 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
24875 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
24876 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
24877 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
24878 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
24879 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
24880 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
24881 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
24882 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
24883 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
24884 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
24885 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
24886 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
24887 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
24888 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
24889 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
24890 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
24891 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
24892 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
24893 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
24894 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
24895 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
24896 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
24897 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
24898 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
24899 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
24900 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
24901 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
24902 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
24903 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
24904 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
24905 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
24906 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
24907 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
24908 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
24909 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
24910 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
24911 move_v builtins.
24912 (mips_get_builtin_decl_index): New array.
24913 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
24914 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
24915 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
24916 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
24917 (mips_init_builtins): Initialize mips_get_builtin_decl_index
24918 array.
24919 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
24920 hook.
24921 (mips_expand_builtin_insn): Prepare operands for
24922 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
24923 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
24924 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
24925 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
24926 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
24927 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
24928 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
24929 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
24930 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
24931 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
24932 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
24933 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
24934 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
24935 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
24936 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
24937 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
24938 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
24939 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
24940 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
24941 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
24942 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
24943 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
24944 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
24945 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
24946 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
24947 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
24948 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
24949 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
24950 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
24951 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
24952 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
24953 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
24954 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
24955 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
24956 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
24957 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
24958 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
24959 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
24960 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
24961 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
24962 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
24963 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
24964 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
24965 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
24966 These are set implicitly and an error is reported if overridden.
24967 (mips_expand_builtin_msa_test_branch): New function.
24968 (mips_expand_msa_shuffle): Likewise.
24969 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
24970 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
24971 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
24972 (mips_expand_vec_unpack): Add support for MSA.
24973 (mips_expand_vector_init): Likewise.
24974 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
24975 instead of const0_rtx.
24976 (mips_msa_vec_parallel_const_half): New function.
24977 (mips_gen_const_int_vector): Likewise.
24978 (mips_gen_const_int_vector_shuffle): Likewise.
24979 (mips_expand_msa_cmp): Likewise.
24980 (mips_expand_vec_cond_expr): Likewise.
24981 * config/mips/mips.h
24982 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
24983 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
24984 specified.
24985 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
24986 (ISA_HAS_MSA): New macro.
24987 (UNITS_PER_MSA_REG): Likewise.
24988 (BITS_PER_MSA_REG): Likewise.
24989 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
24990 (MSA_REG_FIRST): New macro.
24991 (MSA_REG_LAST): Likewise.
24992 (MSA_REG_NUM): Likewise.
24993 (MSA_REG_P): Likewise.
24994 (MSA_REG_RTX_P): Likewise.
24995 (MSA_SUPPORTED_MODE_P): Likewise.
24996 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
24997 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
24998 * config/mips/mips.md: Include mips-msa.md.
24999 (alu_type): Add simd_add.
25000 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25001 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25002 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25003 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25004 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25005 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25006 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25007 simd_move, simd_load, simd_store. Choose "multi" for moves
25008 for "qword_mode".
25009 (qword_mode): New attribute.
25010 (insn_count): Add instruction count for quad moves.
25011 Increase the count for MIPS SIMD division.
25012 (UNITMODE): Add UNITMODEs for vector types.
25013 (addsub): New code iterator.
25014 * config/mips/mips.opt (mmsa): New option.
25015 * config/mips/msa.h: New file.
25016 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25017 specified.
25018 * config/mips/mti-linux.h: Likewise.
25019 * config/mips/predicates.md
25020 (const_msa_branch_operand): New constraint.
25021 (const_uimm3_operand): Likewise.
25022 (const_uimm4_operand): Likewise.
25023 (const_uimm5_operand): Likewise.
25024 (const_uimm8_operand): Likewise.
25025 (const_imm5_operand): Likewise.
25026 (aq10b_operand): Likewise.
25027 (aq10h_operand): Likewise.
25028 (aq10w_operand): Likewise.
25029 (aq10d_operand): Likewise.
25030 (const_m1_operand): Likewise.
25031 (reg_or_m1_operand): Likewise.
25032 (const_exp_2_operand): Likewise.
25033 (const_exp_4_operand): Likewise.
25034 (const_exp_8_operand): Likewise.
25035 (const_exp_16_operand): Likewise.
25036 (const_vector_same_val_operand): Likewise.
25037 (const_vector_same_simm5_operand): Likewise.
25038 (const_vector_same_uimm5_operand): Likewise.
25039 (const_vector_same_uimm6_operand): Likewise.
25040 (const_vector_same_uimm8_operand): Likewise.
25041 (par_const_vector_shf_set_operand): Likewise.
25042 (reg_or_vector_same_val_operand): Likewise.
25043 (reg_or_vector_same_simm5_operand): Likewise.
25044 (reg_or_vector_same_uimm6_operand): Likewise.
25045 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25046 section.
25047 * doc/invoke.texi (-mmsa): Document new option.
25048
25049 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25050
25051 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25052 * configure: Regenerate.
25053 * config.in: Regenerate.
25054 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25055 on -fvtable-verify.
25056 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25057 (ENDFILE_VTV_SPEC): Define.
25058
25059 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25060
25061 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25062 registers in all interrupt handlers if necessary.
25063 (rl78_option_override): Add warning.
25064 (MUST_SAVE_MDUC_REGISTERS): New macro.
25065 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25066 * config/rl78/rl78.c (check_mduc_usage): New function.
25067 (mduc_regs): New structure to hold MDUC register data.
25068 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25069 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25070 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25071 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25072 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25073 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25074
25075 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25076
25077 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25078 (tree-ssa-loop-niter.h): Ditto.
25079 (idx_within_array_bound, ref_within_array_bound): New functions.
25080 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25081 Factor out check on writable base object to ...
25082 (base_object_writable): ... here.
25083
25084 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25085
25086 * config/arm/arm.md (probe_stack): Add modes to set source
25087 and destination.
25088
25089 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25090
25091 * regrename.c (base_reg_class_for_rename): New static function.
25092 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25093
25094 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25095
25096 * cgraph.c (thunk_adjust): Export.
25097 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25098 * cgraphunit.c (thunk_adjust): Export.
25099 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25100 thunks.
25101 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25102 inlinable.
25103 * tree-inline.c (expand_call_inline): Expand thunks inline.
25104
25105 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25106
25107 PR target/70998
25108 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25109 (*sse2_vd_cvtss2sd): Ditto.
25110 * config/i386/i386.md
25111 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25112 Generate *sse2_vd_cvtsd2ss pattern.
25113 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25114 Generate *sse2_vd_cvtss2sd pattern.
25115
25116 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25117
25118 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25119 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25120 users.
25121
25122 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25123
25124 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25125 * config/sh/sh.c: Define and declare variables on first use throughout
25126 the file.
25127 (current_function_interrupt): Change to bool type.
25128 (frame_insn): Rename to emit_frame_insn and update users.
25129 (push_regs): Use bool for 'interrupt_handler' argument.
25130 (save_schedule_s): Remove.
25131 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25132 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25133 targetm.asm_out.unaligned_op.di.
25134 (gen_far_branch): Remove redundant forward declaration.
25135 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25136 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25137 (sh_set_return_address, sh_function_ok_for_sibcall,
25138 scavenge_reg): Update comments.
25139 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25140 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25141 (sh_attr_renesas_p): Remove unnecessary parentheses.
25142 (branch_dest): Simplify.
25143 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25144 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25145 (CUMULATIVE_ARGS): Change macro to typedef.
25146 (current_function_interrupt): Change to bool type.
25147 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25148 Surround with __cplusplus ifdef.
25149 (sh_compare_op0, sh_compare_op1): Remove.
25150 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25151
25152 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25153
25154 * config/arm/arm.md (arch): Add neon.
25155 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25156 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25157 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25158 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25159 attributes for alt renumbering. Mark alt 3 as non-predicable.
25160 (thumb2_movdf_vfp): Likewise.
25161
25162 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25163
25164 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25165 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25166 (*andqi_1): Add preferred_for_speed attribute to disparage
25167 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25168 (*<code>qi_1): Ditto.
25169 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25170 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25171 (*ashlqi3_1): Ditto.
25172 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25173 Add preferred_for_size attribute to disparage alternative 0 and
25174 preferred_for_speed attribute to disparage alternative 1 for
25175 TARGET_PARTIAL_REG_STALL targets.
25176
25177 2016-05-07 Tom de Vries <tom@codesourcery.com>
25178
25179 PR tree-optimization/70956
25180 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25181 def.
25182
25183 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25184
25185 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25186 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25187 * config/sh/sh.md (branch_zero): Remove define_attr.
25188 (define_delay): Disable delay slot if branch distance is one insn.
25189
25190 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25191
25192 * config/i386/i386.md (LEAMODE): New mode attribute.
25193 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25194 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25195 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25196 operand 2 predicate.
25197 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25198 (*lea<mode>_general_3): Ditto.
25199 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25200
25201 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25202
25203 * genmddump.c (main): Convert argv from char ** to const char **.
25204
25205 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25206
25207 * coretypes.h (OVERRIDE): New macro.
25208 (FINAL): New macro.
25209
25210 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25211
25212 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25213 allow coalescing if the types are compatible.
25214
25215 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25216
25217 * pass_manager.h (pass_manager::register_pass_name): New method.
25218 (pass_manager::get_pass_by_name): New method.
25219 (pass_manager::create_pass_tab): New method.
25220 (pass_manager::m_name_to_pass_map): New field.
25221 * passes.c (name_to_pass_map): Delete global in favor of field
25222 "m_name_to_pass_map" of pass_manager.
25223 (register_pass_name): Rename from a function to...
25224 (pass_manager::register_pass_name): ...this method, updating
25225 for renaming of global "name_to_pass_map" to field
25226 "m_name_to_pass_map".
25227 (create_pass_tab): Rename from a function to...
25228 (pass_manager::create_pass_tab): ...this method, updating
25229 for renaming of global "name_to_pass_map" to field.
25230 (get_pass_by_name): Rename from a function to...
25231 (pass_manager::get_pass_by_name): ...this method.
25232 (enable_disable_pass): Convert use of get_pass_by_name to
25233 a method call, locating the pass_manager singleton.
25234
25235 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25236
25237 * genattr-common.c (main): Convert argv from char ** to const char **.
25238 * genattr.c (main): Likewise.
25239 * genattrtab.c (main): Likewise.
25240 * genautomata.c (initiate_automaton_gen): Likewise.
25241 (main): Likewise.
25242 * gencodes.c (main): Likewise.
25243 * genconditions.c (main): Likewise.
25244 * genconfig.c (main): Likewise.
25245 * genconstants.c (main): Likewise.
25246 * genemit.c (main): Likewise.
25247 * genenums.c (main): Likewise.
25248 * genextract.c (main): Likewise.
25249 * genflags.c (main): Likewise.
25250 * genmddeps.c (main): Likewise.
25251 * genopinit.c (main): Likewise.
25252 * genoutput.c (main): Likewise.
25253 * genpeep.c (main): Likewise.
25254 * genpreds.c (main): Likewise.
25255 * genrecog.c (main): Likewise.
25256 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25257 (init_rtx_reader_args): Likewise.
25258 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25259 (init_rtx_reader_args): Likewise.
25260 * gentarget-def.c (main): Likewise.
25261 * read-md.c (read_md_files): Likewise.
25262 * read-md.h (read_md_files): Likewise.
25263
25264 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25265
25266 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25267 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25268 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25269 Remove unused predicate.
25270 (register_and_not_fp_reg_operand): Ditto.
25271
25272 2016-05-06 Martin Liska <mliska@suse.cz>
25273
25274 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25275 instead of vec as the vector is local to the function.
25276
25277 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25278
25279 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25280 avx512bw alternative.
25281
25282 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25283 before the ashr<mode>3 pattern.
25284
25285 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25286 v instead of x in vex or maybe_vex alternatives, use
25287 maybe_evex instead of vex in prefix.
25288
25289 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25290 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25291 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25292 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25293 in prefix.
25294
25295 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25296 v instead of x in vex or maybe_vex alternatives, use
25297 maybe_evex instead of vex in prefix.
25298
25299 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25300 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25301 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25302 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25303 alternatives, use maybe_evex instead of vex in prefix.
25304
25305 * config/i386/sse.md (vec_interleave_lowv4sf,
25306 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25307 v instead of x in vex or maybe_vex alternatives, use
25308 maybe_evex instead of vex in prefix.
25309
25310 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25311 v instead of x in vex or maybe_vex alternatives, use
25312 maybe_evex instead of vex in prefix.
25313
25314 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25315 v constraint instead of x.
25316
25317 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25318
25319 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25320 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25321 equality first.
25322
25323 2016-05-06 Richard Biener <rguenther@suse.de>
25324
25325 PR tree-optimization/70948
25326 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25327 Properly clobber all fields of va_list for __builtin_va_start.
25328
25329 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25330
25331 PR debug/70935
25332 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25333 loop latch destination.
25334
25335 2016-05-06 Martin Liska <mliska@suse.cz>
25336
25337 * tree-ssa-uninit.c: Apply manual changes
25338 to the GNU coding style.
25339 (prune_uninit_phi_opnds): Rename from
25340 prune_uninit_phi_opnds_in_unrealizable_paths.
25341
25342 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25343
25344 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25345 mspace): Remove deprecated options.
25346 * doc/invoke.texi (SH options): Remove -mspace.
25347
25348 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25349
25350 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25351
25352 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25353
25354 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25355 corresponding combine split pattern.
25356
25357 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25358
25359 PR target/58219
25360 * config/sh/predicates.md (long_displacement_mem_operand): New.
25361 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25362 Add movi20, movi20s alternatives. Adjust length attribute for
25363 alternatives.
25364 (movsi_ie): Allow for any FPU. Adjust length attribute for
25365 alternatives.
25366 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25367 attribute for alternatives.
25368 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25369 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25370 length attribute for alternatives.
25371
25372 2016-05-06 Richard Biener <rguenther@suse.de>
25373
25374 PR tree-optimization/70960
25375 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25376
25377 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25378
25379 PR target/52933
25380 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25381 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25382
25383 2016-05-06 Marek Polacek <polacek@redhat.com>
25384
25385 PR sanitizer/70875
25386 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25387
25388 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25389
25390 PR target/54089
25391 * config/sh/sh.md (*rotcr): Add another variant.
25392
25393 2016-05-06 Richard Biener <rguenther@suse.de>
25394
25395 PR middle-end/70931
25396 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25397
25398 2016-05-06 Richard Biener <rguenther@suse.de>
25399
25400 PR middle-end/70941
25401 * fold-const.c (split_tree): Always convert to the original type
25402 before negating.
25403
25404 2016-05-06 Richard Biener <rguenther@suse.de>
25405
25406 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25407 (fwprop_addr): Likewise.
25408
25409 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25410
25411 PR target/70873
25412 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25413 New prototype.
25414 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25415 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25416 the splitter condition.
25417 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25418 the splitter condition.
25419 (FP float_extend load splitter): Ditto.
25420
25421 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25422
25423 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25424 to REGNO in all peephole2 patterns.
25425 (post-reload splitters): Change true_regnum to REGNO in
25426 post-reload splitters.
25427 (zero_extend splitters): Use general_reg_operand and
25428 nonimmediate_gr_operand predicates.
25429
25430 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25431
25432 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25433 v constraint instead of x.
25434
25435 2016-05-05 Alan Modra <amodra@gmail.com>
25436
25437 PR target/68662
25438 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25439 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25440 TARGET_NO_FP_IN_TOC for -mrelocatable.
25441 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25442 TARGET_RELOCATABLE test.
25443 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25444 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25445 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25446 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25447 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25448 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25449 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25450 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25451 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25452 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25453 Likewise.
25454 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25455 (rs6000_stack_info): Likewise.
25456 (rs6000_elf_asm_out_constructor): Likewise.
25457 (rs6000_elf_asm_out_destructor): Likewise.
25458 (rs6000_elf_declare_function_name): Likewise.
25459 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25460 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25461 Don't define.
25462
25463 2016-05-05 Alan Modra <amodra@gmail.com>
25464
25465 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25466
25467 2016-05-05 Alan Modra <amodra@gmail.com>
25468
25469 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25470 out-of-line gpr restore for one or two regs if that would add
25471 a save of lr.
25472
25473 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25474
25475 PR target/70873
25476 * config/i386/i386.md
25477 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25478 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25479 as operand 0 predicate.
25480 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25481 Ditto.
25482 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25483 Ditto. Emit the pattern using RTX.
25484
25485 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25486 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25487 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25488 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25489 Ditto.
25490 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25491 sse_reg_operand as operand 0 predicate.
25492
25493 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25494 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25495 instead of gen_rtx_REG.
25496 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25497 Ditto.
25498
25499 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25500
25501 * function.c (emit_use_return_register_into_block): Delete.
25502 (gen_return_pattern): Delete.
25503 (emit_return_into_block): Delete.
25504 (active_insn_between): Delete.
25505 (convert_jumps_to_returns): Delete.
25506 (emit_return_for_exit): Delete.
25507 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25508 simple_return for shrink-wrapped blocks.
25509 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25510 end of blocks that need one.
25511 (get_unconverted_simple_return): Delete.
25512 (convert_to_simple_return): Delete.
25513 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25514 (convert_to_simple_return): Ditto.
25515
25516 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25517
25518 * cfgcleanup.c (bb_is_just_return): New function.
25519 (try_optimize_cfg): Simplify jumps to return, branches to return,
25520 and branches around return.
25521
25522 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25523
25524 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25525 branch to a return.
25526
25527 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25528
25529 PR c++/70906
25530 PR c++/70933
25531 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25532 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25533 assert flags & OEP_HASH_CHECK, instead of asserting it
25534 never happens. Handle TARGET_EXPR.
25535 * fold-const.c (operand_equal_p): For hash verification,
25536 or in OEP_HASH_CHECK into flags.
25537
25538 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25539
25540 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25541 comment.
25542 (compute_samebase_partition_bases): Fix typo.
25543
25544 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25545
25546 * config/i386/sse.md (vec_interleave_highv8sf,
25547 vec_interleave_lowv8sf, vec_interleave_highv4df,
25548 vec_interleave_lowv4df): Remove constraints from expanders.
25549
25550 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25551
25552 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25553
25554 * tree-inline.c (expand_call_inline): Fix path dealing with
25555 making lhs of call statement undefined.
25556
25557 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25558
25559 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25560 Check availability on NODE, too.
25561 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25562 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25563 (varpool_node::call_for_symbol_and_aliase): Likewise.
25564 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25565 (propagate_pure_const): Propagate across interposable functions, too.
25566 (skip_function_for_local_pure_const): Do not skip interposable bodies
25567 with aliases.
25568 (pass_local_pure_const::execute): Update.
25569
25570 2016-05-04 Marek Polacek <polacek@redhat.com>
25571
25572 * doc/invoke.texi: Document -Wdangling-else.
25573
25574 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25575
25576 * config.gcc: Error out when conflicting multilib is detected. Do not
25577 loop over multilibs since no combination is legal.
25578
25579 2016-05-04 Alan Modra <amodra@gmail.com>
25580
25581 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25582 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25583 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25584 Align .toc.
25585
25586 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25587
25588 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25589 Clean up p5600 comments.
25590
25591 2016-05-04 Richard Biener <rguenther@suse.de>
25592
25593 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25594 constructor simplifications.
25595 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25596
25597 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25598
25599 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25600 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25601 result.set_rtx is null instead of aborting.
25602 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25603 Always enable.
25604 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25605 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25606 *mov<mode>_store_postinc): New patterns.
25607
25608 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25609
25610 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25611 as commutative. Check both conversions are NOP.
25612 ((A & B) OP (C & B)): Remove.
25613
25614 2016-05-04 Alan Modra <amodra@gmail.com>
25615
25616 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25617
25618 2016-05-04 Alan Modra <amodra@gmail.com>
25619
25620 PR target/70866
25621 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25622 when cr2,3,4 are all fixed regs.
25623
25624 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25625
25626 PR rtl-optimization/57193
25627 * opts.c (default_options_table): Revert OPT_frename_registers change.
25628 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25629
25630 2016-05-03 Martin Sebor <msebor@redhat.com>
25631
25632 PR c++/66561
25633 * builtins.c (fold_builtin_FILE): New function.
25634 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25635 (fold_builtin_0): Call them.
25636 * gimplify.c (gimplify_call_expr): Remove the handling of
25637 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25638
25639 PR c++/66561
25640 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25641 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25642 constants.
25643
25644 PR c++/66639
25645 * doc/extend.texi (Function Names as Strings): Update __func__,
25646 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25647 constants.
25648
25649 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25650 Richard Biener <rguenther@suse.de>
25651
25652 PR tree-optimization/70916
25653 * tree-if-conv.c: Include cfganal.h.
25654 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25655 and remove_fake_exit_edges around the optimization pass.
25656
25657 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25658
25659 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25660 (cgraph_edge::make_direct): Likewise.
25661 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25662 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25663 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25664 (CIF_THUNK): New code.
25665 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25666 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25667 (compute_inline_parameters): Set inline_failed for thunks.
25668 (inline_analyze_function): Cleanup.
25669 * ipa-inline.c (can_inline_edge_p): Do not deal with
25670 call_stmt_cannot_inline_p.
25671 (can_early_inline_edge_p): Likewise.
25672 (early_inliner): Initialize inline_failed.
25673 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25674
25675 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25676
25677 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25678 from nonimm_ssenomem_operand.
25679 (nonimm_ssenomem_operand): New predicate.
25680 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25681 as operand 0 predicate.
25682 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25683 Disable unsupported alternatives using "enabled" attribute.
25684 Use register_ssemem_operand as operand 0 predicate.
25685 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25686
25687 2016-05-03 Marek Polacek <polacek@redhat.com>
25688
25689 PR c/70859
25690 * input.c (expansion_point_location): New function.
25691 * input.h (expansion_point_location): Declare.
25692
25693 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25694
25695 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25696 occurence with frame_offset_ ones.
25697
25698 2016-05-03 Alan Modra <amodra@gmail.com>
25699
25700 PR rtl-optimization/70890
25701 * ira.c (combine_and_move_insns): When moving def_insn, remove
25702 equivs on use_insn.
25703
25704 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25705
25706 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25707 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25708 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25709 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25710
25711 2016-05-03 Alan Modra <amodra@gmail.com>
25712
25713 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25714 for SAVE_MULTIPLE/STORE_MULTIPLE.
25715
25716 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25717
25718 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25719 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25720
25721 2016-05-03 Richard Biener <rguenther@suse.de>
25722
25723 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25724 default true.
25725 (gimplify_arg): Likewise.
25726 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25727 re-writing the result to a decl if required.
25728 (internal_get_tmp_var): Add allow_ssa parameter
25729 and override into_ssa with it.
25730 (get_formal_tmp_var): Adjust.
25731 (get_initialized_tmp_var): Add allow_ssa parameter.
25732 (gimplify_arg): Add allow_ssa parameter and avoid generating
25733 SSA names for the result false.
25734 (gimplify_call_expr): If the call may return twice do not
25735 gimplify parameters into SSA.
25736 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25737 (gimplify_modify_expr): Adjust assert. For noreturn calls
25738 with a SSA name LHS adjust its def.
25739 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25740 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25741 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25742 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25743 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25744 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25745 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25746 (optimize_target_teams): Do not allow SSA names for clause operands.
25747 (gimplify_expr): Likewise for where we mark the result addressable.
25748 * passes.def (pass_init_datastructures): Remove.
25749 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25750 (rewrite_stmt): Likewise.
25751 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25752 (replace_locals_op): Replace SSA names.
25753 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25754 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25755 * cgraph.c (release_function_body): Free CFG annotations only
25756 when we have a CFG. Simplify.
25757 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25758 force_gimple_operand instead of get_initialized_tmp_var.
25759 * tree-pass.h (make_pass_init_datastructures): Remove.
25760 * tree-ssa.c (execute_init_datastructures): Remove.
25761 (pass_data_init_datastructures): Likewise.
25762 (class pass_init_datastructures): Likewise.
25763 (make_pass_init_datastructures): Likewise.
25764 * omp-low.c (create_omp_child_function): Init SSA data structures.
25765 (grid_expand_target_grid_body): Likewise.
25766 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25767 name before adding it to names_to_release.
25768 (remove_bb): Always release SSA defs.
25769 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25770 before dereferencing it.
25771 * cgraphunit.c (init_lowered_empty_function): Always
25772 int SSA data structures.
25773 * tree-ssanames.c (release_defs): Remove assert that we are in
25774 SSA form.
25775 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25776
25777 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25778 Uros Bizjak <ubizjak@gmail.com>
25779
25780 PR rtl-optimization/70467
25781 * config/i386/predicates.md (x86_64_hilo_int_operand,
25782 x86_64_hilo_general_operand): New predicates.
25783 * config/i386/constraints.md (Wd): New constraint.
25784 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25785 (general_hilo_operand): New mode attr.
25786 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25787 instead of <general_operand>.
25788 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25789 x86_64_hilo_general_operand instead of <general_operand>.
25790
25791 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25792
25793 PR tree-optimization/70916
25794 * tree-if-conv.c (constant_or_ssa_name): Removed.
25795 (fold_build_cond_expr): Use is_gimple_val instead of
25796 constant_or_ssa_name.
25797
25798 PR tree-optimization/70916
25799 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25800 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25801
25802 PR target/49244
25803 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25804 (optimize_atomic_bit_test_and): New function.
25805 (pass_fold_builtins::execute): Use it.
25806 * optabs.def (atomic_bit_test_and_set_optab,
25807 atomic_bit_test_and_complement_optab,
25808 atomic_bit_test_and_reset_optab): New optabs.
25809 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25810 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25811 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25812 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25813 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25814 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25815 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25816 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25817 atomic_bit_test_and_complement@var{mode},
25818 atomic_bit_test_and_reset@var{mode}): Document.
25819 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25820 atomic_bit_test_and_complement<mode>,
25821 atomic_bit_test_and_reset<mode>): New expanders.
25822 (atomic_bit_test_and_set<mode>_1,
25823 atomic_bit_test_and_complement<mode>_1,
25824 atomic_bit_test_and_reset<mode>_1): New insns.
25825
25826 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25827
25828 PR rtl-optimization/70687
25829 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25830 instead of unsigned HOST_WIDE_INT.
25831
25832 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25833
25834 PR rtl-optimization/44281
25835 * hard-reg-set.h (struct target_hard_regs): New field
25836 x_fixed_nonglobal_reg_set.
25837 (fixed_nonglobal_reg_set): New macro.
25838 * reginfo.c (init_reg_sets_1): Initialize it.
25839 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25840 of fixed_reg_set.
25841 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25842
25843 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25844
25845 PR tree-optimization/56541
25846 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25847 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25848 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25849 (any_complicated_phi): new static variable.
25850 (aggressive_if_conv): delete.
25851 (if_convertible_phi_p): support phis with more than two arguments.
25852 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25853 critical pred edges.
25854 (ifcvt_split_critical_edges): support phis with more than two
25855 arguments by checking new parameter. only split critical edges
25856 if needed.
25857 (tree_if_conversion): handle simd pragma marked loop using new
25858 local variable aggressive_if_conv. check any_complicated_phi.
25859
25860 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25861
25862 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
25863 before using it.
25864
25865 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25866
25867 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
25868 cbase.
25869
25870 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
25871
25872 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
25873 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
25874 define_insn_and_split.
25875 (mulsi3_i): New define_insn_and_split.
25876 (mulsi3_call): Convert to define_insn.
25877 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
25878 Remove constraints.
25879
25880 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25881
25882 * machmode.h (mode_complex): Add support to give the complex mode
25883 for a given mode.
25884 (GET_MODE_COMPLEX_MODE): Likewise.
25885 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
25886 stored by build_complex_type and gfc_build_complex_type instead of
25887 trying to figure out the appropriate mode based on the size. Raise
25888 an assertion error, if the type was not set.
25889 * genmodes.c (struct mode_data): Add field for the complex type of
25890 the given type.
25891 (blank_mode): Likewise.
25892 (make_complex_modes): Remember the complex mode created in the
25893 base type.
25894 (emit_mode_complex): Write out the mode_complex array to map a
25895 type mode to the complex version.
25896 (emit_insn_modes_c): Likewise.
25897 * tree.c (build_complex_type): Set the complex type to use before
25898 calling layout_type.
25899 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
25900 support for __float128 complex datatypes.
25901 (rs6000_hard_regno_mode_ok): Likewise.
25902 (rs6000_setup_reg_addr_masks): Likewise.
25903 (rs6000_complex_function_value): Likewise.
25904 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
25905 __float128 and __ibm128 complex.
25906 (FLOAT128_IBM_P): Likewise.
25907 (ALTIVEC_ARG_MAX_RETURN): Likewise.
25908 * doc/extend.texi (Additional Floating Types): Document that
25909 -mfloat128 must be used to enable __float128. Document complex
25910 __float128 and __ibm128 support.
25911
25912 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25913
25914 PR target/49244
25915 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
25916 char/short arguments promoted to int because of promote_prototypes.
25917
25918 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
25919
25920 * config/i386/predicates.md (register_ssemem_operand): New predicate.
25921 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
25922 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
25923 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
25924 alternatives using "enabled" attribute. Use register_ssemem_operand
25925 as operand 1 predicate.
25926 (*cmpi<unord>xf_i387): Split XFmode pattern from
25927 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
25928 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
25929 *absneg<mode>2_i387. Disable unsupported alternatives using
25930 "enabled" attribute.
25931 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
25932
25933 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25934
25935 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
25936 marker.
25937 (oacc_loop_process): Check mask for loop termination.
25938
25939 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25940
25941 * cif-code.def (CIF_THUNK): Add.
25942 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
25943 accidental change.
25944
25945 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
25946
25947 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
25948 (dump_inline_summary): Dump it.
25949 (fp_expression_p): New predicate.
25950 (estimate_function_body_sizes): Use it.
25951 (inline_merge_summary): Merge fp_expressions.
25952 (inline_read_section): Read fp_expressions.
25953 (inline_write_summary): Write fp_expressions.
25954 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
25955 codegen boundary if either caller or callee is !fp_expressions.
25956 * ipa-inline.h (inline_summary): Add fp_expressions.
25957 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
25958 to fp_expressions be sure the fp generation flags are updated.
25959
25960 2016-05-02 Jakub Jelinek <jakub@redhat.com>
25961
25962 PR rtl-optimization/70467
25963 * cse.c (cse_insn): Handle no-op MEM moves after folding.
25964
25965 PR rtl-optimization/70467
25966 * ipa-pure-const.c (check_call): Handle internal calls even in
25967 ipa mode like in local mode.
25968
25969 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25970
25971 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
25972
25973 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25974
25975 * match.pd (X u< X, X u> X): New transformations.
25976
25977 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
25978
25979 * flag-types.h (enum warn_strict_overflow_code): Move ...
25980 * coretypes.h: ... here.
25981 * fold-const.h (fold_overflow_warning): Declare.
25982 * fold-const.c (fold_overflow_warning): Make non-static.
25983 (fold_comparison): Move the transformation of X +- C1 CMP C2
25984 into X CMP C2 -+ C1 ...
25985 * match.pd: ... here.
25986 * gimple-fold.c (fold_stmt_1): Protect with
25987 fold_defer_overflow_warnings.
25988
25989 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
25990
25991 * omp-low.c (struct oacc_loop): Add 'inner' field.
25992 (new_oacc_loop_raw): Initialize it to zero.
25993 (oacc_loop_fixed_partitions): Initialize it.
25994 (oacc_loop_auto_partitions): Partition outermost loop to outermost
25995 available partitioning.
25996
25997 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
25998
25999 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26000 register_operand.
26001 (umulsidi3): Likewise.
26002 (indirect_jump): Fix jump instruction assembly patterns.
26003
26004 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26005
26006 PR target/70860
26007 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26008 (nvptx_function_value): Assert non-NULL cfun.
26009
26010 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26011
26012 PR rtl-optimization/70886
26013 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26014
26015 * cselib.h (rtx_equal_for_cselib_1): Declare.
26016 (rtx_equal_for_cselib_p: New inline function.
26017 * cselib.c (rtx_equal_for_cselib_p): Delete.
26018 (rtx_equal_for_cselib_1): Make public.
26019
26020 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26021
26022 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26023 (register_mixssei387nonimm_operand): Remove predicate.
26024 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26025 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26026 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26027 for TARGET_MIX_SSE_I387 alternatives.
26028 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26029 Disable unsupported alternatives using "enabled" attribute. Use
26030 nonimm_ssenomem_operand as operand 1 predicate. Also check
26031 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26032
26033 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26034
26035 * tree.c (cst_and_fits_in_hwi): Simplify.
26036
26037 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26038
26039 * tree.h (wi::to_wide): New function.
26040 * expr.c (expand_expr_real_1): Use wi::to_wide.
26041 * fold-const.c (int_const_binop_1): Likewise.
26042 (extract_muldiv_1): Likewise.
26043
26044 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26045
26046 * wide-int.h: Update offset_int and widest_int documentation.
26047 (WI_SIGNED_SHIFT_RESULT): New macro.
26048 (wi::binary_shift): Define signed_shift_result_type for
26049 shifts on offset_int- and widest_int-like types.
26050 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26051 * tree.h (int_bit_position): Use shift operators instead of wi::
26052 shifts.
26053 * alias.c (adjust_offset_for_component_ref): Likewise.
26054 * expr.c (get_inner_reference): Likewise.
26055 * fold-const.c (fold_comparison): Likewise.
26056 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26057 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26058 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26059 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26060 (stmt_kills_ref_p): Likewise.
26061 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26062 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26063 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26064 (ao_ref_init_from_vn_reference): Likewise.
26065
26066 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26067
26068 * wide-int.h: Update offset_int and widest_int documentation.
26069 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26070 (wi::binary_traits): Allow ordered comparisons between offset_int and
26071 offset_int, between widest_int and widest_int, and between either
26072 of these types and basic C types.
26073 (operator <, <=, >, >=): Define for the same combinations.
26074 * tree.h (tree_int_cst_lt): Use comparison operators instead
26075 of wi:: comparisons.
26076 (tree_int_cst_le): Likewise.
26077 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26078 (fold_nonarray_ctor_reference): Likewise.
26079 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26080 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26081 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26082 * tree-sra.c (completely_scalarize): Likewise.
26083 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26084 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26085 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26086 (check_for_binary_op_overflow): Likewise.
26087 (search_for_addr_array): Likewise.
26088 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26089
26090 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26091
26092 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26093 (arc_save_restore): Likewise.
26094 (arc_dwarf_register_span): Likewise.
26095 (arc_output_pic_addr_const): Initialize suffix variable.
26096
26097 2016-05-02 Martin Liska <mliska@suse.cz>
26098
26099 * symbol-summary.h (function_summary::function_summary):
26100 Remove checking assert for all cgraph nodes.
26101 (function_summary::get): Check summary_uid.
26102 (symtab_insertion): Check summary_uid.
26103
26104 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26105
26106 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26107 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26108 bmaskn instruction.
26109 (arc_dwarf_register_span): Remove enum keyword.
26110 (compact_memory_operand_p): New function.
26111 * config/arc/arc.h (reg_class): Add code density register classes.
26112 (REG_CLASS_NAMES): Likewise.
26113 (REG_CLASS_CONTENTS): Likewise.
26114 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26115 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26116 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26117 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26118 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26119 constraints.
26120 (h, Rcd, Rsd, Rzd): New register constraints.
26121 (T): Use compact_memory_operand_p function.
26122 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26123
26124 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26125
26126 * config/sh/sh.md (*negnegt, *movtt): Remove.
26127
26128 2016-05-02 Marek Polacek <polacek@redhat.com>
26129 Tom de Vries <tom@codesourcery.com>
26130
26131 PR tree-optimization/70700
26132 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26133 bigger than FIRST_REF_NODE.
26134
26135 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26136
26137 PR target/52898
26138 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26139 TARGET_CMPEQDI_T.
26140 (prepare_cbranch_operands): Don't use scratch register. Assume that
26141 function is used when pseudos can be created.
26142 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26143 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26144 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26145 define_expand. Allow it only when pseudos can be created.
26146 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26147
26148 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26149
26150 * config/i386/constraints.md (BC): Only allow -1 operands.
26151 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26152 Add "enabled" attribute. Update XI mode attribute calculation.
26153 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26154 (*movoi_internal_avx): Update XI mode attribute calculation.
26155 (*movti_internal): Ditto.
26156
26157 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26158
26159 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26160 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26161
26162 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26163
26164 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26165 statement on instruction code. Remove trailing spaces.
26166 (altivec_expand_stv_builtin): Likewise.
26167
26168 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26169
26170 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26171 (TARGET_FPU_DOUBLE): Simplify.
26172 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26173 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26174 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26175 with 'TARGET_FPU_DOUBLE'.
26176 * config/sh/sh.md: Likewise.
26177
26178 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26179
26180 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26181 SH_DIV_STR_FOR_SIZE): Remove.
26182 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26183 SH_DIV_STR_FOR_SIZE): Remove.
26184
26185 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26186
26187 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26188 logical_reg_operand): Delete.
26189 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26190 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26191 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26192 match_operand and match_test.
26193 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26194 variables on their first use. Return bool values.
26195 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26196 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26197 arith_reg_operand for input operand. Remove empty constraints.
26198 (xorsi3): Delete.
26199 (*xorsi3_compact): Rename to xorsi3.
26200 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26201 (*zero_extend<mode>si2_disp_mem): Update comment.
26202 (mov_nop): Delete.
26203
26204 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26205
26206 * config/sh/t-sh: Remove SH5 support.
26207 * config.gcc: Likewise.
26208 * configure: Likewise.
26209
26210 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26211
26212 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26213
26214 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26215
26216 * config/sh/sh.c (register_sh_passes, sh_option_override,
26217 sh_print_operand, prepare_move_operands,
26218 sh_can_follow_jump): Remove TARGET_SH1 checks.
26219 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26220 PROMOTE_MODE): Likewise.
26221 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26222 movdi): Likewise.
26223
26224 2016-04-30 Alan Modra <amodra@gmail.com>
26225
26226 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26227 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26228 Check for user regs later to avoid unnecessary looping over regs.
26229 Merge user reg check with non-saved reg check. Don't force
26230 inline VR restore when static chain used.
26231 (rs6000_frame_related): Omit eh_frame info for user regs when
26232 saving.
26233 (fixed_regs_p): Delete.
26234
26235 2016-04-30 Alan Modra <amodra@gmail.com>
26236
26237 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26238 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26239 Update all uses.
26240
26241 2016-04-30 Alan Modra <amodra@gmail.com>
26242
26243 PR target/69645
26244 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26245 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26246 Update all uses.
26247
26248 2016-04-30 Alan Modra <amodra@gmail.com>
26249
26250 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26251 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26252 flag_pic test for Darwin.
26253
26254 2016-04-30 Alan Modra <amodra@gmail.com>
26255
26256 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26257 throw_calls_crossed.
26258 (REG_FREQ_CALLS_CROSSED): Delete.
26259 (REG_N_THROWING_CALLS_CROSSED): Delete.
26260 * regstat.c (regstat_bb_compute_ri): Don't calculate
26261 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26262 (dump_reg_info): Don't print call cross frequency.
26263 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26264 and REG_N_THROWING_CALLS_CROSSED.
26265
26266 2016-04-30 Alan Modra <amodra@gmail.com>
26267
26268 * regs.h (struct reg_info_t): Delete live_length.
26269 (REG_LIVE_LENGTH): Delete macro.
26270 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26271 local_live, local_processed and local_live_last_luid params.
26272 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26273 Formatting fixes.
26274 (regstat_compute_ri): Adjust for above. Don't set
26275 REG_LIVE_LENGTH.
26276 (dump_reg_info): Don't print live length.
26277 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26278 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26279 Localize loop_depth var.
26280
26281 2016-04-30 Alan Modra <amodra@gmail.com>
26282
26283 * ira.c (enum valid_equiv): New.
26284 (validate_equiv_mem): Return enum.
26285 (update_equiv_mem): Create replacement in more cases.
26286 (add_store_equivs): Update validate_equiv_mem call.
26287
26288 2016-04-30 Alan Modra <amodra@gmail.com>
26289
26290 * ira.c (combine_and_move_insns): Rather than scanning insns,
26291 use DF infrastucture to find use and def insns.
26292
26293 2016-04-30 Alan Modra <amodra@gmail.com>
26294
26295 ira.c (combine_and_move_insns): Move invariant conditions..
26296 (ira.c): ..to here. Call combine_and_move_insns before
26297 add_store_equivs. Call grow_reg_equivs later. Allocate
26298 req_equiv later using max_reg_num() rather than global max_regno.
26299 (contains_replace_regs): Delete.
26300 (add_store_equivs): Remove contains_replace_regs test.
26301
26302 2016-04-30 Alan Modra <amodra@gmail.com>
26303
26304 * ira.c (struct equiv_mem_data): New.
26305 (equiv_mem, equiv_mem_modified): Delete static vars.
26306 (validate_equiv_mem_from_store): Use "data" param to communicate..
26307 (validate_equiv_mem): ..from here.
26308
26309 2016-04-30 Alan Modra <amodra@gmail.com>
26310
26311 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26312 split out from..
26313 (update_reg_equivs): ..here. Move allocation and freeing of
26314 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26315 end_alias_analysis to..
26316 (ira): ..here.
26317
26318 2016-04-30 Alan Modra <amodra@gmail.com>
26319
26320 * ira.c (pdx_subregs): Delete.
26321 (struct equivalence): Add pdx_subregs field.
26322 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26323 pdx_subregs access.
26324 (update_equiv_regs): Don't create or free pdx_subregs. Update
26325 pdx_subregs access.
26326
26327 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26328
26329 * config/rs6000/altivec.h: Change definitions of vec_xl and
26330 vec_xst.
26331 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26332 (LD_ELEMREV_V2DI): New.
26333 (LD_ELEMREV_V4SF): New.
26334 (LD_ELEMREV_V4SI): New.
26335 (LD_ELEMREV_V8HI): New.
26336 (LD_ELEMREV_V16QI): New.
26337 (ST_ELEMREV_V2DF): New.
26338 (ST_ELEMREV_V2DI): New.
26339 (ST_ELEMREV_V4SF): New.
26340 (ST_ELEMREV_V4SI): New.
26341 (ST_ELEMREV_V8HI): New.
26342 (ST_ELEMREV_V16QI): New.
26343 (XL): New.
26344 (XST): New.
26345 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26346 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26347 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26348 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26349 (altivec_expand_builtin): Add handling for
26350 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26351 (rs6000_invalid_builtin): Add error-checking for
26352 RS6000_BTM_P9_VECTOR.
26353 (altivec_init_builtins): Define builtins used to implement vec_xl
26354 and vec_xst.
26355 (rs6000_builtin_mask_names): Define power9-vector.
26356 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26357 (RS6000_BTM_P9_VECTOR): Define.
26358 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26359 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26360 (vsx_ld_elemrev_v2df): Likewise.
26361 (vsx_ld_elemrev_v4sf): Likewise.
26362 (vsx_ld_elemrev_v4si): Likewise.
26363 (vsx_ld_elemrev_v8hi): Likewise.
26364 (vsx_ld_elemrev_v16qi): Likewise.
26365 (vsx_st_elemrev_v2df): Likewise.
26366 (vsx_st_elemrev_v2di): Likewise.
26367 (vsx_st_elemrev_v4sf): Likewise.
26368 (vsx_st_elemrev_v4si): Likewise.
26369 (vsx_st_elemrev_v8hi): Likewise.
26370 (vsx_st_elemrev_v16qi): Likewise.
26371 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26372 grammar.
26373
26374 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26375
26376 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26377 out into ...
26378 (simplify_control_stmt_condition_1): ... here. Recurse into
26379 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26380
26381 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26382
26383 PR target/69810
26384 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26385 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26386 define_insn_and_split to define_insn.
26387 (zero_extendqi<mode>2_dot2): Same.
26388 (extendqi<mode>2_dot): Same.
26389 (extendqi<mode>2_dot2): Same.
26390
26391 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26392
26393 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26394 (probe_stack): New expander.
26395 (probe_stack_<mode>): New insn pattern.
26396
26397 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26398
26399 * config/i386/i386.md
26400 (operations with memory inputs setting flags peephole2):
26401 Remove uneeded REG_P checks. Cleanup pattern generation.
26402
26403 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26404
26405 * tree-vect-loop.c (vect_transform_loop): Fix
26406 nb_iterations_upper_bound computation for vectorized loop.
26407
26408 2016-04-29 Marek Polacek <polacek@redhat.com>
26409 Jakub Jelinek <jakub@redhat.com>
26410
26411 PR sanitizer/70342
26412 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26413 TARGET_EXPR_SLOT as a base.
26414
26415 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26416
26417 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26418 with 'rCm2' constraints to limit possible immediate size.
26419 (*load_zeroextendqisi_update): Likewise.
26420 (*load_signextendqisi_update): Likewise.
26421 (*loadhi_update): Likewise.
26422 (*load_zeroextendhisi_update): Likewise.
26423 (*load_signextendhisi_update): Likewise.
26424 (*loadsi_update): Likewise.
26425 (*loadsf_update): Likewise.
26426
26427 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26428
26429 * config/i386/predicates.md (constm1_operand): Fix comparison.
26430
26431 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26432
26433 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26434
26435 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26436
26437 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26438 remaining SH5 related settings.
26439 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26440 shmedia_prepare_call_address): Delete.
26441 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26442 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26443 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26444 UNSUPPORTED_SH2A): Remove m5 checks.
26445 (sh_divide_strategy_e): Remove SH5 division strategies.
26446 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26447 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26448
26449 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26450
26451 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26452
26453 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26454
26455 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26456 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26457 Change lder to ldr.
26458 * config/s390/vector.md ("mov<mode>"): Likewise.
26459
26460 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26461
26462 * config/s390/constraints.md ("U", "W"): Invoke
26463 s390_mem_constraint with "ZR" and "ZT".
26464 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26465 addresses when using LRA. Accept also short displacements for S
26466 and T constraints. Do not check for long displacement target for
26467 S and T constraints.
26468 (s390_mem_constraint): Remove handling of U and W constraints.
26469 * config/s390/s390.md (various patterns): Remove the short
26470 displacement constraints (Q and R) if a long displacement
26471 constraint is present. Add longdisp as required CPU capability.
26472 * config/s390/vector.md: Likewise.
26473 * config/s390/vx-builtins.md: Likewise.
26474
26475 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26476
26477 PR target/60040
26478 * reload1.c (reload): Call finish_spills before
26479 restarting reload loop. Skip select_reload_regs
26480 if update_eliminables_and_spill returns true.
26481
26482 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26483
26484 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26485 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26486 (umulhisi3_imm): Update predicates and constraint letters.
26487 (umulhisi3_reg): Declare instruction as commutative.
26488 * config/arc/constraints.md (J12, J16): New constraints.
26489 * config/arc/predicates.md (short_unsigned_const_operand): New
26490 predicate.
26491 (arc_short_operand): Likewise.
26492 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26493
26494 2016-04-29 Richard Biener <rguenther@suse.de>
26495
26496 PR tree-optimization/13962
26497 PR tree-optimization/65686
26498 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26499 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26500 using PTA to compare pointers.
26501 * match.pd: Add pattern for pointer equality compare simplification
26502 using ptrs_compare_unequal.
26503
26504 2016-04-29 Richard Biener <rguenther@suse.de>
26505
26506 * stor-layout.c (layout_type): Do not build a pointer-to-element
26507 type for arrays.
26508
26509 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26510
26511 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26512 Use SWI mode iterator. Use general_reg_operand predicate.
26513 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26514 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26515 predicates.
26516
26517 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26518
26519 PR middle-end/70843
26520 * fold-const.c (operand_equal_p): Don't verify hash value equality
26521 if arg0 == arg1.
26522 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26523 and OMP_CLAUSE.
26524
26525 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26526
26527 PR target/70858
26528 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26529 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26530 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26531 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26532 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26533
26534 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26535
26536 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26537 to info. Don't initialize separate fields to 0. Clean up
26538 formatting a bit.
26539
26540 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26541
26542 * config/i386/i386.md (peephole2s for operations with memory inputs):
26543 Use SWI mode iterator.
26544 (peephole2s for operations with memory outputs): Ditto.
26545 Do not check for stack checking probe.
26546
26547 (probe_stack): Remove expander.
26548
26549 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26550 Andrew Burgess <andrew.burgess@embecosm.com>
26551
26552 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26553 operands as 32-bits.
26554
26555 2016-04-28 Jason Merrill <jason@redhat.com>
26556
26557 * gdbinit.in: Skip line-map.h.
26558
26559 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26560 Andrew Burgess <andrew.burgess@embecosm.com>
26561
26562 * config/arc/arc.c (arc_conditional_register_usage): Take
26563 TARGET_RRQ_CLASS into account.
26564 (arc_print_operand): Support printing 'p' and 's' operands.
26565 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26566 as 0.
26567 (TARGET_RRQ_CLASS): Define.
26568 (IS_POWEROF2_OR_0_P): Define.
26569 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26570 alternatives.
26571 (*tst_movb): New define_insn.
26572 (*tst): Avoid recognition if it could prevent '*tst_movb'
26573 combination; replace c/CnL with c/Chs alternative.
26574 (*tst_bitfield_tst): New define_insn.
26575 (*tst_bitfield_asr): New define_insn.
26576 (*tst_bitfield): New define_insn.
26577 (andsi3_i): Add Rrq variant.
26578 (extzv): New define_expand.
26579 (insv): New define_expand.
26580 (*insv_i): New define_insn.
26581 (*movb): New define_insn.
26582 (*movb_signed): New define_insn.
26583 (*movb_high): New define_insn.
26584 (*movb_high_signed): New define_insn.
26585 (*movb_high_signed + 1): New define_split pattern.
26586 (*mrgb): New define_insn.
26587 (*mrgb + 1): New define_peephole2 pattern.
26588 (*mrgb + 2): New define_peephole2 pattern.
26589 * config/arc/arc.opt (mbitops): New option for nps400, uses
26590 TARGET_NPS_BITOPS_DEFAULT.
26591 * config/arc/constraints.md (q): Make register class conditional.
26592 (Rrq): New register constraint.
26593 (Chs): New constraint.
26594 (Clo): New constraint.
26595 (Chi): New constraint.
26596 (Cbf): New constraint.
26597 (Cbn): New constraint.
26598 (C18): New constraint.
26599 (Cbi): New constraint.
26600
26601 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26602
26603 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26604 dst->popcount.
26605 (bitmap_intersection_of_preds): Ditto.
26606 (bitmap_union_of_succs): Ditto.
26607 (bitmap_union_of_preds): Ditto.
26608 * sbitmap.c (do_popcount): Delete.
26609 (BITMAP_DEBUGGING): Delete.
26610 (sbitmap_verify_popcount): Delete.
26611 (sbitmap_alloc): Don't initialize the popcount field.
26612 (sbitmap_alloc_with_popcount): Delete.
26613 (sbitmap_resize): Don't resize the popcount array.
26614 (sbitmap_vector_alloc): Don't initialize the popcount field.
26615 (bitmap_copy): Don't copy the popcount array.
26616 (bitmap_clear): Don't clear the popcount array.
26617 (bitmap_clear): Delete the popcount array handling.
26618 (bitmap_ior_and_compl): Delete the popcount assert.
26619 (bitmap_not): Ditto.
26620 (bitmap_and_compl): Ditto.
26621 (bitmap_and): Delete the popcount array handling.
26622 (bitmap_xor): Ditto.
26623 (bitmap_ior): Ditto.
26624 (bitmap_or_and): Delete the popcount assert.
26625 (bitmap_and_or): Ditto.
26626 (popcount_table): Delete.
26627 (sbitmap_elt_popcount): Delete.
26628 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26629 (bitmap_set_bit): Delete the popcount assert.
26630 (bitmap_clear_bit): Ditto.
26631 (sbitmap_free): Don't free the popcount array.
26632 (sbitmap_alloc_with_popcount): Delete declaration.
26633 (sbitmap_popcount): Ditto.
26634
26635 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26636 Andrew Burgess <andrew.burgess@embecosm.com>
26637
26638 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26639 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26640 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26641 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26642 * config/arc/arc.opt (mcmem): New option.
26643 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26644 supply length for r/m alternative.
26645 (*extendqisi2_ac): Likewise.
26646 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26647 r/Uex alternative.
26648 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26649 (movhi_insn): Likewise.
26650 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26651 (*zero_extendqihi2_i): Add r/Ucm alternative.
26652 (*zero_extendqisi2_ac): Likewise.
26653 (*zero_extendhisi2_i): Likewise.
26654 * config/arc/constraints.md (Uex): New memory constraint.
26655 (Ucm): New define_constraint.
26656 * config/arc/predicates.md (long_immediate_loadstore_operand):
26657 Return 0 for MEM with cmem_address address.
26658 (cmem_address_0): New predicates.
26659 (cmem_address_1): Likewise.
26660 (cmem_address_2): Likewise.
26661 (cmem_address): Likewise.
26662
26663 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26664
26665 * config/rs6000/rs6000.c (machine_function): Rename
26666 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26667 (rs6000_stack_info): Adjust.
26668
26669 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26670 Andrew Burgess <andrew.burgess@embecosm.com>
26671
26672 * config/arc/constraints.md (Usd): Convert to define_constraint.
26673 (Us<): Likewise.
26674 (Us>): Likewise.
26675
26676 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26677
26678 PR target/70821
26679 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26680 Add new peephole2 where the first insn is *mov<mode>_or instead of
26681 *mov<mode>_internal.
26682
26683 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26684
26685 * tracer.c (bb_seen): Make static.
26686
26687 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26688
26689 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26690 support, setup defaults.
26691 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26692 * config/arc/arc.c (arc_init): Add NPS400 support.
26693 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26694 (TARGET_ARC700): NPS400 is also an ARC700.
26695 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26696
26697 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26698
26699 PR target/70668
26700 * config/nds32/nds32.md (casesi): Don't access the operands array
26701 out of bounds.
26702
26703 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26704
26705 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26706 (or $-1,reg peephole2): Ditto.
26707 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26708
26709 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26710
26711 * doc/extend.texi (Common Function Attributes) [optimize]:
26712 Discourage use of the optimize attribute.
26713
26714 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26715
26716 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26717 special case builtin.
26718 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26719 ALTIVEC_BUILTIN_VEC_ADDE.
26720 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26721 support for ALTIVEC_BUILTIN_VEC_ADDE.
26722 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26723 for __builtin_vec_adde.
26724
26725 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26726
26727 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26728 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26729
26730 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26731
26732 PR testsuite/70595
26733 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26734 attributes): Document cilkplus_runtime.
26735
26736 2016-04-28 Martin Jambor <mjambor@suse.cz>
26737
26738 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26739 this function. Call verify_expr on MEM_REFs and bases of other
26740 handled_components.
26741
26742 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26743
26744 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26745 for WORD_REGISTER_OPERATIONS to runtime check.
26746
26747 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26748
26749 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26750
26751 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26752
26753 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26754 big-endian compilation.
26755 * config/arc/arc.md (addf3): Likewise.
26756 (subdf3): Likewise.
26757 (muldf3): Likewise.
26758
26759 2016-04-28 Richard Biener <rguenther@suse.de>
26760
26761 PR tree-optimization/70840
26762 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26763 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26764 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26765 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26766
26767 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26768
26769 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26770 and explain why in a comment.
26771
26772 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26773
26774 * config/arc/arc.md (cpu_facility): Add fpx variant.
26775 (subdf3): Prohibit use reverse sub when assist operations option
26776 is enabled.
26777 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26778 instructions only when FPX is enabled.
26779 * testsuite/gcc.target/arc/trsub.c: New test.
26780
26781 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26782
26783 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26784 mult_operator when calculating "type" attribute.
26785 (*fop_<mode>_1_i387): Ditto.
26786 (*fop_xf_1_i387): Ditto.
26787 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26788 Use std::swap to swap operands. Use RTL expressions to generate
26789 converted pattern.
26790
26791 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26792 Joern Rennecke <joern.rennecke@embecosm.com>
26793
26794 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26795 declaration.
26796 (emit_pic_move): Remove.
26797 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26798 * config/arc/arc.c (emit_pic_move): Removed.
26799 (TARGET_HAVE_TLS): Define.
26800 (arc_conditional_register_usage): Test for arc_tp_regno.
26801 (arc_print_operand, arc_print_operand_address): Handle TLS
26802 unspecs.
26803 (arc_needs_pcl_p): New function.
26804 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26805 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26806 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26807 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26808 (arc_legitimize_tls_address): Likewise.
26809 (DTPOFF_ZERO_SYM): Define.
26810 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26811 (arc_output_pic_addr_const): Print TLS unspecs.
26812 (prepare_pic_move): New function, replaces emit_pic_move.
26813 (arc_legitimate_constant_p): Handle TLS unspecs.
26814 (arc_legitimate_address_p): Likewise.
26815 (arc_rewrite_small_data_p): Use assert for TLS constants.
26816 (prepare_move_operands): Use prepare_pic_move.
26817 (arc_legitimize_address): Legitimize tls addresses.
26818 (arc_epilogue_uses): Check for arc_tp_regno.
26819 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26820 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26821 Define.
26822 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26823 Likewise.
26824 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26825 %(arc_tls_extra_start_spec).
26826 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26827 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26828 (EH_USES): Define.
26829 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26830 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26831 (UNSPEC_TLS_OFF): Add.
26832 (R10_REG): Define.
26833 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26834 (get_thread_pointersi): New patterns.
26835 * config/arc/arc.opt (mtp-regno): New option.
26836 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26837 (move_dest_operand): Likewise.
26838 * configure: Regenerate.
26839 * configure.ac: Add arc*-*-* case to test for tls.
26840 * doc/invoke.texi (ARC options): Document mtp-regno.
26841
26842 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26843
26844 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26845 the new ARC HS SIMD instructions.
26846 (arc_preferred_simd_mode): New function.
26847 (arc_autovectorize_vector_sizes): Likewise.
26848 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26849 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26850 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26851 (arc_init_builtins): Add new SIMD builtin types.
26852 (arc_split_move): Handle 64 bit vector moves.
26853 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26854 (TARGET_PLUS_QMACW): Define.
26855 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
26856 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
26857 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
26858 (VSUBADD4H): New builtins.
26859 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
26860 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
26861
26862 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
26863 Matthias Klose <doko@debian.org>
26864
26865 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
26866
26867 2016-04-28 Richard Biener <rguenther@suse.de>
26868
26869 PR middle-end/70777
26870 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
26871 canonicalization.
26872
26873 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
26874
26875 * common/config/sh/sh-common.c: Remove SH5 support.
26876 * config/sh/constraints.md: Likewise.
26877 * config/sh/config/sh/elf.h: Likewise.
26878 * config/sh/linux.h: Likewise.
26879 * config/sh/netbsd-elf.h: Likewise.
26880 * config/sh/predicates.md: Likewise.
26881 * config/sh/sh-c.c: Likewise.
26882 * config/sh/sh-protos.h: Likewise.
26883 * config/sh/sh.c: Likewise.
26884 * config/sh/sh.h: Likewise.
26885 * config/sh/sh.md: Likewise.
26886 * config/sh/sh.opt: Likewise.
26887 * config/sh/sync.md: Likewise.
26888 * config/sh/sh64.h: Delete.
26889 * config/sh/shmedia.h: Likewise.
26890 * config/sh/shmedia.md: Likewise.
26891 * config/sh/sshmedia.h: Likewise.
26892 * config/sh/t-netbsd-sh5-64: Likewise.
26893 * config/sh/t-sh64: Likewise.
26894 * config/sh/ushmedia.h: Likewise.
26895
26896 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26897
26898 * config/i386/i386.md (sign_extend to memory peephole2s): Use
26899 general_reg_operand instead of register_operand predicate.
26900
26901 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26902
26903 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
26904
26905 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
26906
26907 * match.pd (A - B > A, A + B < A): New transformations.
26908
26909 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
26910
26911 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
26912 which defaults to true. Emit an outer pair of parentheses only if
26913 EMIT_PARENS. When continuing a chain of && or || (or & or |),
26914 don't emit parentheses for the right-hand operand.
26915
26916 2016-04-27 Jeff Law <law@redhat.com>
26917
26918 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
26919
26920 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26921
26922 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
26923 (altivec_lvx_<mode>_internal): Document.
26924 (altivec_lvx_<mode>_2op): New define_insn.
26925 (altivec_lvx_<mode>_1op): Likewise.
26926 (altivec_lvx_<mode>_2op_si): Likewise.
26927 (altivec_lvx_<mode>_1op_si): Likewise.
26928 (altivec_stvx_<mode>): Remove.
26929 (altivec_stvx_<mode>_internal): Document.
26930 (altivec_stvx_<mode>_2op): New define_insn.
26931 (altivec_stvx_<mode>_1op): Likewise.
26932 (altivec_stvx_<mode>_2op_si): Likewise.
26933 (altivec_stvx_<mode>_1op_si): Likewise.
26934 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26935 Expand vec_ld and vec_st during parsing.
26936 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
26937 changes.
26938 (altivec_expand_stvx_be): Likewise.
26939 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
26940 address-masking behavior in RTL.
26941 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
26942 address-masking behavior in RTL.
26943 (altivec_expand_builtin): Change builtin code arguments for calls
26944 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
26945 (insn_is_swappable_p): Avoid incorrect swap optimization in the
26946 presence of lvx/stvx patterns.
26947 (alignment_with_canonical_addr): New function.
26948 (alignment_mask): Likewise.
26949 (find_alignment_op): Likewise.
26950 (recombine_lvx_pattern): Likewise.
26951 (recombine_stvx_pattern): Likewise.
26952 (recombine_lvx_stvx_patterns): Likewise.
26953 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
26954 stvx patterns from expand.
26955 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
26956 expansions.
26957 (vector_altivec_store_<mode>): Likewise.
26958
26959 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
26960
26961 * config/aarch64/aarch64.md
26962 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
26963 remove the "fp" attributes.
26964 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
26965 add the "simd" attributes.
26966 (*movdf_aarch64): Likewise.
26967 (*movtf_aarch64): Remove the "fp" attributes.
26968 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
26969 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
26970
26971 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26972
26973 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
26974 rtx to rtx_code_label *.
26975 * rtl.h (maybe_set_first_label_num): Likewise.
26976
26977 2016-04-27 David Malcolm <dmalcolm@redhat.com>
26978
26979 * df-core.c (df_add_problem): Make the problem param be const.
26980 (df_remove_problem): Make local "problem" be const.
26981 * df-problems.c (problem_RD): Make const.
26982 (problem_LR): Likewise.
26983 (problem_LIVE): Likewise.
26984 (problem_MIR): Likewise.
26985 (problem_CHAIN): Likewise.
26986 (problem_WORD_LR): Likewise.
26987 (problem_NOTE): Likewise.
26988 (problem_MD): Likewise.
26989 * df-scan.c (problem_SCAN): Likewise.
26990 * df.h (struct df_problem): Make field "dependent_problem" be
26991 const.
26992 (struct dataflow): Likewise for field "problem".
26993 (df_add_problem): Make param const.
26994
26995 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
26996
26997 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
26998 inter-unit moves to/from vector registers are enabled. Do not disable
26999 for TARGET_MMX.
27000
27001 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27002
27003 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27004 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27005 #define to...
27006 (enum df_problem_id): ...this new enum.
27007 (struct df_problem): Convert field "id" from "int" to
27008 enum df_problem_id.
27009
27010 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27011
27012 * rtl.def: Update comment for "things in the instruction chain" to
27013 reflect the removal of the leading "i" field for INSN_UID in
27014 r210360. Fix bogus apostrophe.
27015
27016 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27017
27018 * config/i386/i386.md
27019 (lea arith with mem operand + setcc peephole2): Set operator mode.
27020
27021 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27022
27023 PR target/70155
27024 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27025 (dimode_scalar_to_vector_candidate_p): This.
27026 (timode_scalar_to_vector_candidate_p): New function.
27027 (scalar_to_vector_candidate_p): Likewise.
27028 (timode_check_non_convertible_regs): Likewise.
27029 (timode_remove_non_convertible_regs): Likewise.
27030 (remove_non_convertible_regs): Likewise.
27031 (remove_non_convertible_regs): Renamed to ...
27032 (dimode_remove_non_convertible_regs): This.
27033 (scalar_chain::~scalar_chain): Make it virtual.
27034 (scalar_chain::compute_convert_gain): Make it pure virtual.
27035 (scalar_chain::mark_dual_mode_def): Likewise.
27036 (scalar_chain::convert_insn): Likewise.
27037 (scalar_chain::convert_registers): Likewise.
27038 (scalar_chain::add_to_queue): Make it protected.
27039 (scalar_chain::emit_conversion_insns): Likewise.
27040 (scalar_chain::replace_with_subreg): Likewise.
27041 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27042 (scalar_chain::convert_op): Likewise.
27043 (scalar_chain::convert_reg): Likewise.
27044 (scalar_chain::make_vector_copies): Likewise.
27045 (scalar_chain::convert_registers): New pure virtual function.
27046 (class dimode_scalar_chain): New class.
27047 (class timode_scalar_chain): Likewise.
27048 (scalar_chain::mark_dual_mode_def): Renamed to ...
27049 (dimode_scalar_chain::mark_dual_mode_def): This.
27050 (timode_scalar_chain::mark_dual_mode_def): New function.
27051 (timode_scalar_chain::convert_insn): Likewise.
27052 (dimode_scalar_chain::convert_registers): Likewise.
27053 (scalar_chain::compute_convert_gain): Renamed to ...
27054 (dimode_scalar_chain::compute_convert_gain): This.
27055 (scalar_chain::replace_with_subreg): Renamed to ...
27056 (dimode_scalar_chain::replace_with_subreg): This.
27057 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27058 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27059 (scalar_chain::make_vector_copies): Renamed to ...
27060 (dimode_scalar_chain::make_vector_copies): This.
27061 (scalar_chain::convert_reg): Renamed to ...
27062 (dimode_scalar_chain::convert_reg ): This.
27063 (scalar_chain::convert_op): Renamed to ...
27064 (dimode_scalar_chain::convert_op): This.
27065 (scalar_chain::convert_insn): Renamed to ...
27066 (dimode_scalar_chain::convert_insn): This.
27067 (scalar_chain::convert): Call convert_registers.
27068 (convert_scalars_to_vector): Change to scalar_chain pointer to
27069 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27070 in 32-bit mode. Delete scalar_chain pointer. Call
27071 free_dominance_info in 64-bit mode.
27072 (pass_stv::gate): Remove TARGET_64BIT check.
27073 (ix86_option_override): Put the 64-bit STV pass before the CSE
27074 pass.
27075
27076 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27077
27078 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27079 dw_loc_frame_offset field.
27080 * dwarf2out.c (new_loc_descr): Likewise.
27081 (resolve_args_picking_1): Turn the VISITED hash set into a
27082 FRAME_OFFSET hash map. Use it to associate a frame offset to
27083 visited nodes. Remove uses of the CHECKING_P macro.
27084 (resolve_args_picking): Update call to resolve_args_picking_1.
27085
27086 2016-04-27 Martin Liska <mliska@suse.cz>
27087
27088 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27089 (free_loop_data): Release vuses of groups.
27090
27091 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27092
27093 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27094 instead of redundant use_id and boolean have_use_for.
27095 (struct iv_use): Change sub_id into group_id. Remove field next.
27096 Move fields: related_cands, n_map_members, cost_map and selected
27097 to ...
27098 (struct iv_group): ... here. New structure.
27099 (struct iv_common_cand): Use structure declaration directly.
27100 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27101 (MAX_CONSIDERED_USES): Rename macro to ...
27102 (MAX_CONSIDERED_GROUPS): ... here.
27103 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27104 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27105 (dump_uses): Rename to ...
27106 (dump_groups): ... here. Update all uses.
27107 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27108 (find_induction_variables): Refactor format of dump information.
27109 (record_sub_use): Delete.
27110 (record_use): Update all uses.
27111 (record_group): New function.
27112 (record_group_use, find_interesting_uses_op): Call above functions.
27113 Update all uses.
27114 (find_interesting_uses_cond): Ditto.
27115 (group_compare_offset): New function.
27116 (split_all_small_groups): Rename to ...
27117 (split_small_address_groups_p): ... here. Update all uses.
27118 (split_address_groups): Update all uses.
27119 (find_interesting_uses): Refactor format of dump information.
27120 (add_candidate_1): Update all uses. Remove redundant check on iv,
27121 base and step.
27122 (add_candidate, record_common_cand): Remove redundant assert.
27123 (add_iv_candidate_for_biv): Update use.
27124 (add_iv_candidate_derived_from_uses): Update all uses.
27125 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27126 (alloc_use_cost_map): Ditto.
27127 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27128 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27129 (determine_use_iv_cost_generic): Ditto.
27130 (determine_group_iv_cost_generic): Ditto.
27131 (determine_use_iv_cost_address): Ditto.
27132 (determine_group_iv_cost_address): Ditto.
27133 (determine_use_iv_cost_condition): Ditto.
27134 (determine_group_iv_cost_cond): Ditto.
27135 (determine_use_iv_cost): Ditto.
27136 (determine_group_iv_cost): Ditto.
27137 (set_autoinc_for_original_candidates): Update all uses.
27138 (find_iv_candidates): Update all uses. Refactor dump information.
27139 (determine_use_iv_costs): Ditto.
27140 (determine_iv_costs): Ditto.
27141 (iv_ca_cand_for_use): Rename to ...
27142 (iv_ca_cand_for_group): ... here. Update all uses.
27143 (iv_ca_add_use, iv_ca_add_group): Ditto.
27144 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27145 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27146 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27147 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27148 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27149 (create_new_iv, adjust_iv_update_pos): Ditto.
27150 (rewrite_use_address): Delete.
27151 (rewrite_use_address_1): Rename to ...
27152 (rewrite_use_address): ... here.
27153 (rewrite_use_compare): Update all uses.
27154 (rewrite_use): Delete.
27155 (rewrite_uses): Rename to ...
27156 (rewrite_groups): ... here. Update all uses.
27157 (remove_unused_ivs, free_loop_data): Update all uses.
27158 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27159
27160 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27161
27162 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27163 for WORD_REGISTER_OPERATIONS to runtime check.
27164
27165 2016-04-27 Richard Biener <rguenther@suse.de>
27166
27167 PR ipa/70760
27168 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27169 aggregate_value_p to determine if a function result is
27170 returned by reference.
27171 (ipa_pta_execute): Functions having their address taken are
27172 not automatically nonlocal.
27173
27174 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27175
27176 PR sanitizer/70683
27177 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27178 * fold-const.c (operand_equal_p): If flag_checking and
27179 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27180 and if it returns non-zero, assert iterative_hash_expr on both
27181 args is the same.
27182
27183 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27184
27185 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27186
27187 2016-04-27 Nick Clifton <nickc@redhat.com>
27188
27189 PR middle-end/49889
27190 * varasm.c (merge_weak): Generate an error if an attempt is made
27191 to convert a non-weak static function into a weak, public function.
27192
27193 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27194
27195 * params.def (MAX_PARTITION_SIZE): New param.
27196 * doc/invoke.texi: Document lto-max-partition.
27197
27198 2016-04-27 Richard Biener <rguenther@suse.de>
27199
27200 PR ipa/70785
27201 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27202 function cummulating used_from_other_partition, externally_visible
27203 and force_output from aliases.
27204 (refered_from_nonlocal_var): Likewise.
27205 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27206 node flags properly.
27207
27208 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27209
27210 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27211 (-Wmemset-elt-size): New item.
27212
27213 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27214
27215 PR ada/70759
27216 * stor-layout.h (internal_reference_types): Delete.
27217 * stor-layout.c (reference_types_internal): Likewise.
27218 (internal_reference_types): Likewise.
27219 (layout_type) <REFERENCE_TYPE>: Adjust.
27220
27221 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27222
27223 PR sanitizer/70683
27224 * tree.h (inchash::add_expr): Add FLAGS argument.
27225 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27226 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27227 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27228 Formatting fix. Adjust recursive calls. For tcc_comparison,
27229 if swap_tree_comparison (code) is smaller than code, hash that
27230 and arguments in the other order. Hash CONVERT_EXPR the same
27231 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27232 of ADDR_EXPR of decl as the decl itself. Add or remove
27233 OEP_ADDRESS_OF from recursive flags as needed. For
27234 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27235 operands commutatively and only the third one normally.
27236 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27237
27238 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27239
27240 * config/rtems.h (LIB_SPEC): Add -latomic.
27241
27242 2016-04-27 Joel Sherrill <joel@rtems.org>
27243
27244 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27245 xilink.ld and flags not relevant to RTEMS.
27246
27247 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27248
27249 * toplev.c (backend_init_target): Avoid calling init_reload when using
27250 LRA.
27251
27252 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27253
27254 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27255 for loops rather than one for the whole function.
27256
27257 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27258
27259 * match.pd (X + CST CMP X): New transformation.
27260
27261 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27262
27263 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27264 * fold-const.c (fold_binary_loc): Remove 2 transformations
27265 superseded by match.pd.
27266 * match.pd (x+x -> x*2): Generalize to integers.
27267
27268 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27269
27270 * config/i386/i386.md (operation on memory peephole): Duplicate an
27271 existing peephole and adapt it to match lea rather than an operation
27272 that clobbers CC.
27273
27274 PR rtl-optimization/57193
27275 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27276 and above.
27277 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27278
27279 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27280
27281 * tree-if-conv.c (any_pred_load_store): New static variable.
27282 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27283 any_pred_load_store instead of and_mask_load_store.
27284 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27285 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27286 (combine_blocks, tree_if_conversion): Ditto.
27287
27288 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27289
27290 PR tree-optimization/70771
27291 PR tree-optimization/70775
27292 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27293 virtual PHI nodes. Delete parameter.
27294 (if_convertible_loop_p_1): Delete argument to above function.
27295 (predicate_all_scalar_phis): Delete code handling single-argument
27296 PHIs.
27297 (tree_if_conversion): Mark and update virtual SSA.
27298
27299 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27300
27301 PR target/61821
27302 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27303 (x86_elf_aligned_common): Rename to ...
27304 (x86_elf_aligned_decl_common): ... this.
27305 Add decl arg. Switch to .lbss for largecomm object. Use
27306 LARGECOMM_SECTION_ASM_OP.
27307 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27308 renaming.
27309 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27310 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27311 Pass new decl arg.
27312 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27313 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27314
27315 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27316
27317 PR target/59407
27318 * config/i386/i386.c (SECTION_LARGE): Define.
27319 (x86_64_elf_select_section): Set it for large data/bss sections.
27320 Only clear SECTION_WRITE for .lrodata.
27321 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27322 data/bss sections.
27323 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27324 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27325 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27326 SECTION_MACH_DEP.
27327 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27328 * doc/tm.texi: Regenerate.
27329
27330 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27331
27332 PR bootstrap/70704
27333 * configure.ac (--enable-checking): Document extra flag, for
27334 non-release builds default to --enable-checking=yes,extra.
27335 If misc checking and extra checking, define CHECKING_P to 2 instead
27336 of 1.
27337 * common.opt (fchecking=): Add.
27338 * doc/invoke.texi (-fchecking=): Document.
27339 * doc/install.texi: Document --enable-checking changes.
27340 * configure: Regenerated.
27341 * config.in: Regenerated.
27342
27343 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27344
27345 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27346 attribute instead of which_alternative.
27347 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27348 Use EXT_REX_SSE_REG_P where appropriate.
27349
27350 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27351
27352 * config/i386/predicates.md (const0_operand): Do not match
27353 const_wide_int code.
27354 (const1_operand): Ditto.
27355
27356 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27357
27358 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27359 for SSE constm1 operands and TARGET_AVX512VL.
27360 (*movti_internal): Ditto.
27361 (*mov<mode>_or): Use constm1_operand predicate.
27362 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27363 for SSE vector_all_ones operands and TARGET_AVX512VL.
27364 * config/i386/predicates.md (constm1_operand): New predicate.
27365 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27366 emission of constant -1 load.
27367
27368 2016-04-25 Jason Merrill <jason@redhat.com>
27369
27370 * gdbinit.in: Skip is-a.h.
27371
27372 * attribs.c (register_scoped_attributes): Fix logic.
27373 * attribs.h: Declare register_scoped_attributes.
27374
27375 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27376
27377 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27378 stxvd2x and stxvw4x built-in functions.
27379
27380 2016-04-25 DJ Delorie <dj@redhat.com>
27381
27382 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27383 (ashrhi3): Likewise.
27384 (lshrhi3): Likewise.
27385
27386 2016-04-25 Richard Biener <rguenther@suse.de>
27387
27388 PR tree-optimization/70780
27389 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27390 wasn't visited yet.
27391 (compute_antic): Mark blocks with abnormal preds as visited as
27392 they have a final empty antic-in solution already.
27393
27394 2016-04-25 Michael Collison <michael.collison@linaro.org>
27395
27396 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27397
27398 2016-04-25 Michael Collison <michael.collison@linaro.org>
27399
27400 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27401 mode is VQI to improve mixed mode vectorization.
27402 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27403 define_insn to match low half of signed vaddw.
27404 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27405 define_insn to match high half of signed vaddw.
27406 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27407 define_insn to match low half of unsigned vaddw.
27408 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27409 define_insn to match high half of unsigned vaddw.
27410 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27411 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27412 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27413 for new function.
27414 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27415 * config/arm/predicates.md (vect_par_constant_high): Support
27416 big endian and simplify by calling
27417 arm_simd_check_vect_par_cnst_half
27418 (vect_par_constant_low): Likewise.
27419
27420 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27421
27422 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27423 predicate for operand 2.
27424
27425 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27426 H.J. Lu <hongjiu.lu@intel.com>
27427
27428 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27429 machine_mode argument.
27430 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27431 constm1_rtx operands. For VOIDmode constants, get mode from
27432 pred_mode. Check mode size if the mode is supported by ABI.
27433 (standard_sse_constant_opcode): Do not use standard_constant_p.
27434 Strictly check ABI support for all-ones operands.
27435 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27436 immediates. Update calls to standard_sse_constant_p.
27437 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27438 (ix86_rtx_costs): Ditto.
27439 * config/i386/i386.md (*movxi_internal_avx512f): Use
27440 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27441 Use (v,BC) alternative instead of (v,C). Use register_operand
27442 checks instead of MEM_P.
27443 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27444 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27445 isa attribute. Use register_operand checks instead of MEM_P.
27446 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27447 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27448 alternative and corresponding sse2 isa attribute.
27449 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27450 to standard_sse_constant_p.
27451 (FP constant splitters): Ditto.
27452 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27453 (C): Ditto.
27454 * config/i386/predicates.md (constm1_operand): Remove.
27455 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27456 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27457 vector_all_ones_operand instead of constm1_operand.
27458
27459 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27460
27461 * print-rtl.c (print_rtx_insn_vec): New function.
27462 * print-rtl.h: New prototype.
27463 * store-motion.c (struct st_expr): Make avail_stores a vector.
27464 (st_expr_entry): Adjust.
27465 (free_st_expr_entry): Likewise.
27466 (print_store_motion_mems): Likewise.
27467 (find_moveable_store): Likewise.
27468 (compute_store_table): Likewise.
27469 (delete_store): Likewise.
27470 (build_store_vectors): Likewise.
27471
27472 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27473
27474 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27475
27476 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27477
27478 * vec.h (vec_safe_contains): New function.
27479 (vec::contains): Likewise.
27480 (vec::begin): Likewise.
27481 (vec::end): Likewise.
27482
27483 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27484
27485 PR sanitizer/70712
27486 * cfgexpand.c (expand_stack_vars): Fix typo.
27487
27488 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27489
27490 * system.h (list, map, set, vector): Include conditionally.
27491 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27492 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27493 * ipa-icf.c (INCLUDE_LIST): Define.
27494 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27495 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27496 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27497 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27498 * cp/logic.cc (INCLUDE_LIST): Define.
27499 * fortran/trans-common.c (INCLUDE_MAP): Define.
27500
27501 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27502
27503 * auto-profile.c: Remove <string.h> include.
27504 * ipa-icf-gimple.c: Remove <list> include.
27505 * diagnostic.c: Remove <new> include.
27506 * genmatch.c: Likewise.
27507 * pretty-print.c: Likewise.
27508 * toplev.c: Likewise
27509 * c/c-objc-common.c: Likewise.
27510 * cp/error.c: Likewise.
27511 * fortran/error.c: Likewise.
27512
27513 2016-04-22 Richard Biener <rguenther@suse.de>
27514
27515 * lto-streamer-in.c (input_ssa_names): Do not allocate
27516 GIMPLE_NOP for all SSA names.
27517 * lto-streamer-out.c (output_ssa_names): Do not output
27518 SSA names that should have been released.
27519
27520 2016-04-22 Richard Biener <rguenther@suse.de>
27521
27522 PR tree-optimization/70740
27523 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27524 VDEF.
27525
27526 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27527
27528 PR target/70750
27529 * config/i386/predicates.md (call_insn_operand): Replace
27530 sibcall_memory_operand with memory_operand.
27531
27532 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27533
27534 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27535 has_single_use() tests.
27536 (register_edge_assert_for_1): Likewise.
27537 (find_assert_locations_1): Check the liveness bitmap instead of
27538 checking has_single_use().
27539
27540 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27541
27542 PR target/70728
27543 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27544 Extract AVX-512BW constraint from AVX.
27545
27546 2016-04-21 Richard Biener <rguenther@suse.de>
27547
27548 PR tree-optimization/70725
27549 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27550 for phi_convertible_by_degenerating_args.
27551 (predicate_all_scalar_phis): Handle single-argument PHIs.
27552
27553 2016-04-21 Richard Biener <rguenther@suse.de>
27554
27555 PR middle-end/70747
27556 * fold-const.c (fold_comparison): Return properly typed
27557 constant boolean.
27558
27559 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27560
27561 PR tree-optimization/70715
27562 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27563 after expanding BASE using expand_simple_operations.
27564
27565 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27566
27567 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27568 New transformations.
27569
27570 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27571
27572 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27573
27574 2016-04-20 Jan Hubicka <jh@suse.cz>
27575
27576 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27577 ultiimate_alias_target.
27578 (update_callee_keys): Likewise.
27579 (lookup_recursive_calls): Likewise.
27580 (speculation_useful_p): Likewise.
27581
27582 2016-04-20 Jan Hubicka <jh@suse.cz>
27583
27584 PR ipa/70018
27585 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27586 (set_nothrow_flag_1): ... this; handle interposition correctly;
27587 recurse on aliases and thunks.
27588 (cgraph_node::set_nothrow_flag): New.
27589 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27590 functions compiled with non-call exceptions that binds to current
27591 def.
27592 (propagate_nothrow): Be safe WRT interposition.
27593 * cgraph.h (set_nothrow_flag): Update prototype.
27594
27595 2016-04-18 Jan Hubicka <jh@suse.cz>
27596
27597 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27598 max_loop_iterations_int.
27599 (tree_unswitch_outer_loop): Likewise.
27600
27601 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27602
27603 PR tree-optimization/69489
27604 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27605 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27606 Revise dump message.
27607 (if_convertible_bb_p): Remove check on edge count of basic block's
27608 predecessors.
27609
27610 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27611
27612 PR tree-optimization/56625
27613 PR tree-optimization/69489
27614 * tree-data-ref.h (DR_INNERMOST): New macro.
27615 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27616 hashing struct innermost_loop_behavior.
27617 (ref_DR_map): Remove.
27618 (innermost_DR_map): New map.
27619 (baseref_DR_map): Revise comment.
27620 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27621 to innermost_DR_map accroding to its innermost loop behavior.
27622 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27623 to its innermost loop behavior.
27624 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27625 Add initialization for innermost_DR_map. Record memory reference
27626 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27627 have innermost loop behavior.
27628 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27629 innermost_DR_map.
27630
27631 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27632
27633 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27634 *lea_general_1. Use explicit SWI12 mode interator.
27635 (*lea<mode>_general_2): Rename from *lea_general_2.
27636 Use explicit SWI12 mode interator.
27637 (*lea<mode>_general_3): Rename from *lea_general_3.
27638 Use explicit SWI12 mode interator.
27639 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27640 Use explicit SWI12 mode interator.
27641 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27642 Use explicit SWI48 mode interator.
27643
27644 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27645
27646 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27647 Short-cut unaligned load and store cases. Handle all integer
27648 vector modes.
27649 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27650 and store cases. Call ix86_avx256_split_vector_move_misalign
27651 directly without checking mode class.
27652
27653 2016-04-20 Andrew Pinski <apinski@cavium.com>
27654 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27655
27656 PR target/64971
27657 * config/aarch64/aarch64.md (sibcall): Force call
27658 address to be DImode for ILP32.
27659 (sibcall_value): Likewise.
27660
27661 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27662
27663 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27664
27665 2016-04-20 Richard Biener <rguenther@suse.de>
27666
27667 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27668 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27669 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27670 (maybe_push_res_to_seq): Adjust.
27671 * gimple-fold.c (maybe_build_generic_op): Likewise.
27672
27673 2016-04-20 Marek Polacek <polacek@redhat.com>
27674
27675 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27676 rather than true.
27677
27678 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27679
27680 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27681 use kmovw to support AVX512F target.
27682
27683 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27684
27685 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27686
27687 2016-04-20 Marek Polacek <polacek@redhat.com>
27688
27689 PR tree-optimization/70725
27690 * tree-if-conv.c (is_false_predicate): New function.
27691 (predicate_mem_writes): Use it.
27692
27693 2016-04-20 Richard Biener <rguenther@suse.de>
27694
27695 PR tree-optimization/70726
27696 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27697 shift amounts from a pattern stmt operand.
27698
27699 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27700
27701 PR target/70674
27702 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27703 stack_restore_from_fpr pattern when restoring r15.
27704 (s390_optimize_prologue): Strip away the memory barrier in the
27705 parallel when trying to get rid of restore insns.
27706 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27707 definition for loading the stack pointer from an FPR. Compared to
27708 the normal move insn this pattern includes a full memory barrier.
27709
27710 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27711
27712 PR middle-end/70680
27713 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27714 implicitly linear or lastprivate iterator on the outer context.
27715
27716 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27717
27718 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27719 alignment check.
27720 * config/i386/i386.md (ssememalign): Removed.
27721 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27722
27723 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27724
27725 PR target/69201
27726 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27727 const short * to __builtin_ia32_loaddquhi512_mask.
27728 (_mm512_maskz_loadu_epi16): Likewise.
27729 (_mm512_mask_storeu_epi16): Pass short * to
27730 __builtin_ia32_storedquhi512_mask.
27731 (_mm512_mask_loadu_epi8): Pass const char * to
27732 __builtin_ia32_loaddquqi512_mask.
27733 (_mm512_maskz_loadu_epi8): Likewise.
27734 (_mm512_mask_storeu_epi8): Pass char * to
27735 __builtin_ia32_storedquqi512_mask.
27736 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27737 const double * to __builtin_ia32_loadupd512_mask.
27738 (_mm512_mask_loadu_pd): Likewise.
27739 (_mm512_maskz_loadu_pd): Likewise.
27740 (_mm512_storeu_pd): Pass double * to
27741 __builtin_ia32_storeupd512_mask.
27742 (_mm512_mask_storeu_pd): Likewise.
27743 (_mm512_loadu_ps): Pass const float * to
27744 __builtin_ia32_loadups512_mask.
27745 (_mm512_mask_loadu_ps): Likewise.
27746 (_mm512_maskz_loadu_ps): Likewise.
27747 (_mm512_storeu_ps): Pass float * to
27748 __builtin_ia32_storeups512_mask.
27749 (_mm512_mask_storeu_ps): Likewise.
27750 (_mm512_mask_loadu_epi64): Pass const long long * to
27751 __builtin_ia32_loaddqudi512_mask.
27752 (_mm512_maskz_loadu_epi64): Likewise.
27753 (_mm512_mask_storeu_epi64): Pass long long *
27754 to __builtin_ia32_storedqudi512_mask.
27755 (_mm512_loadu_si512): Pass const int * to
27756 __builtin_ia32_loaddqusi512_mask.
27757 (_mm512_mask_loadu_epi32): Likewise.
27758 (_mm512_maskz_loadu_epi32): Likewise.
27759 (_mm512_storeu_si512): Pass int * to
27760 __builtin_ia32_storedqusi512_mask.
27761 (_mm512_mask_storeu_epi32): Likewise.
27762 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27763 char * to __builtin_ia32_storedquqi256_mask.
27764 (_mm_mask_storeu_epi8): Likewise.
27765 (_mm256_mask_loadu_epi16): Pass const short * to
27766 __builtin_ia32_loaddquhi256_mask.
27767 (_mm256_maskz_loadu_epi16): Likewise.
27768 (_mm_mask_loadu_epi16): Pass const short * to
27769 __builtin_ia32_loaddquhi128_mask.
27770 (_mm_maskz_loadu_epi16): Likewise.
27771 (_mm256_mask_loadu_epi8): Pass const char * to
27772 __builtin_ia32_loaddquqi256_mask.
27773 (_mm256_maskz_loadu_epi8): Likewise.
27774 (_mm_mask_loadu_epi8): Pass const char * to
27775 __builtin_ia32_loaddquqi128_mask.
27776 (_mm_maskz_loadu_epi8): Likewise.
27777 (_mm256_mask_storeu_epi16): Pass short * to.
27778 __builtin_ia32_storedquhi256_mask.
27779 (_mm_mask_storeu_epi16): Pass short * to.
27780 __builtin_ia32_storedquhi128_mask.
27781 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27782 const double * to __builtin_ia32_loadupd256_mask.
27783 (_mm256_maskz_loadu_pd): Likewise.
27784 (_mm_mask_loadu_pd): Pass onst double * to
27785 __builtin_ia32_loadupd128_mask.
27786 (_mm_maskz_loadu_pd): Likewise.
27787 (_mm256_mask_storeu_pd): Pass double * to
27788 __builtin_ia32_storeupd256_mask.
27789 (_mm_mask_storeu_pd): Pass double * to
27790 __builtin_ia32_storeupd128_mask.
27791 (_mm256_mask_loadu_ps): Pass const float * to
27792 __builtin_ia32_loadups256_mask.
27793 (_mm256_maskz_loadu_ps): Likewise.
27794 (_mm_mask_loadu_ps): Pass const float * to
27795 __builtin_ia32_loadups128_mask.
27796 (_mm_maskz_loadu_ps): Likewise.
27797 (_mm256_mask_storeu_ps): Pass float * to
27798 __builtin_ia32_storeups256_mask.
27799 (_mm_mask_storeu_ps): ass float * to
27800 __builtin_ia32_storeups128_mask.
27801 (_mm256_mask_loadu_epi64): Pass const long long * to
27802 __builtin_ia32_loaddqudi256_mask.
27803 (_mm256_maskz_loadu_epi64): Likewise.
27804 (_mm_mask_loadu_epi64): Pass const long long * to
27805 __builtin_ia32_loaddqudi128_mask.
27806 (_mm_maskz_loadu_epi64): Likewise.
27807 (_mm256_mask_storeu_epi64): Pass long long * to
27808 __builtin_ia32_storedqudi256_mask.
27809 (_mm_mask_storeu_epi64): Pass long long * to
27810 __builtin_ia32_storedqudi128_mask.
27811 (_mm256_mask_loadu_epi32): Pass const int * to
27812 __builtin_ia32_loaddqusi256_mask.
27813 (_mm256_maskz_loadu_epi32): Likewise.
27814 (_mm_mask_loadu_epi32): Pass const int * to
27815 __builtin_ia32_loaddqusi128_mask.
27816 (_mm_maskz_loadu_epi32): Likewise.
27817 (_mm256_mask_storeu_epi32): Pass int * to
27818 __builtin_ia32_storedqusi256_mask.
27819 (_mm_mask_storeu_epi32): Pass int * to
27820 __builtin_ia32_storedqusi128_mask.
27821 * config/i386/i386-builtin-types.def (PCSHORT): New.
27822 (PINT64): Likewise.
27823 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27824 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27825 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27826 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27827 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27828 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27829 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27830 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27831 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27832 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27833 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27834 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27835 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27836 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27837 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27838 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27839 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27840 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27841 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27842 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27843 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27844 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27845 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27846 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27847 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27848 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27849 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27850 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27851 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27852 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27853 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27854 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27855 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
27856 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
27857 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
27858 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
27859 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
27860 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
27861 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
27862 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
27863 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
27864 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
27865 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
27866 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
27867 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
27868 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
27869 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
27870 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
27871 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
27872 use UNSPEC_STOREU.
27873 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
27874 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
27875 load nor store.
27876 (ix86_expand_vector_move_misalign): Likewise.
27877 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
27878 to scalar function prototype for unaligned load/store builtins.
27879 (ix86_expand_special_args_builtin): Updated.
27880 * config/i386/sse.md (UNSPEC_LOADU): Removed.
27881 (UNSPEC_STOREU): Likewise.
27882 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
27883 (VI_ULOADSTORE_F_AVX512VL): Likewise.
27884 (ssescalarsize): Handle V4TI, V2TI and V1TI.
27885 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27886 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
27887 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
27888 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
27889 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
27890 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
27891 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
27892 (<avx512>_storedqu<mode>_mask): Likewise.
27893 (*sse4_2_pcmpestr_unaligned): Likewise.
27894 (*sse4_2_pcmpistr_unaligned): Likewise.
27895 (*mov<mode>_internal): Renamed to ...
27896 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
27897 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
27898 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
27899 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
27900
27901 2016-04-19 Richard Biener <rguenther@suse.de>
27902
27903 PR tree-optimization/70171
27904 * tree-ssa-phiprop.c: Include stor-layout.h.
27905 (phiprop_insert_phi): Handle the aggregate copy case.
27906 (propagate_with_phi): Likewise.
27907
27908 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
27909
27910 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
27911 instead of simplify_gen_subreg (... , 0).
27912 (ix86_delegitimize_address): Ditto.
27913 (ix86_split_divmod): Ditto.
27914 (ix86_split_copysign_const): Ditto.
27915 (ix86_split_copysign_var): Ditto.
27916 (ix86_expand_args_builtin): Ditto.
27917 (ix86_expand_round_builtin): Ditto.
27918 (ix86_expand_special_args_builtin): Ditto.
27919 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
27920 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
27921 (udivmodqi4): Ditto.
27922 (absneg splitters): Ditto.
27923 (*jcc_bt<mode>_1): Ditto.
27924
27925 2016-04-19 Richard Biener <rguenther@suse.de>
27926
27927 PR tree-optimization/70724
27928 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
27929 restoring out from ...
27930 (free_scc_vn): ... here.
27931 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
27932 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
27933 tail merging.
27934 (pass_fre::execute): Restore SSA info.
27935
27936 2016-04-19 Richard Biener <rguenther@suse.de>
27937
27938 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
27939 * gimple-walk.c (walk_gimple_op): Initialize it.
27940 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
27941 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
27942 remapping SSA names of defs.
27943 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
27944 adjustment.
27945
27946 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
27947
27948 PR middle-end/70689
27949 * lra-constraints.c (equiv_substition_p): New.
27950 (process_alt_operands): Use it.
27951 (swap_operands): Swap it.
27952 (curr_insn_transform): Update it.
27953
27954 2016-04-18 Michael Matz <matz@suse.de>
27955
27956 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
27957 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
27958 * tree-core.h (tree_type_common.align): Use bit-field.
27959 (tree_type_common.spare): New.
27960 (tree_decl_common.off_align): Make smaller.
27961 (tree_decl_common.align): Use bit-field.
27962
27963 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
27964 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
27965 (scan_sharing_clauses): Ditto.
27966 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27967 (omp_finish_file): Ditto.
27968 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
27969 (layout_decl): Ditto.
27970 (relayout_decl): Ditto.
27971 (finalize_record_size): Use SET_TYPE_ALIGN.
27972 (finalize_type_size): Ditto.
27973 (finish_builtin_struct): Ditto.
27974 (layout_type): Ditto.
27975 (initialize_sizetypes): Ditto.
27976 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
27977 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
27978 (lookup_field_for_decl): Use SET_DECL_ALIGN.
27979 (get_chain_field): Ditto.
27980 (get_trampoline_type): Ditto.
27981 (get_nl_goto_field): Ditto.
27982 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27983 SET_DECL_ALIGN.
27984 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
27985 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
27986 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
27987 (build_qualified_type): Use SET_TYPE_ALIGN.
27988 (build_aligned_type, build_range_type_1): Ditto.
27989 (build_atomic_base): Ditto.
27990 (build_common_tree_nodes): Ditto.
27991 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
27992 (expand_one_stack_var_at): Ditto.
27993 * coverage.c (build_var): Use SET_DECL_ALIGN.
27994 * except.c (init_eh): Ditto.
27995 * function.c (assign_parm_setup_block): Ditto.
27996 * symtab.c (increase_alignment_1): Ditto.
27997 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
27998 * tree-vect-stmts.c (ensure_base_align): Ditto.
27999 * varasm.c (align_variable): Ditto.
28000 (assemble_variable): Ditto.
28001 (build_constant_desc): Ditto.
28002 (output_constant_def_contents): Ditto.
28003
28004 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28005 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28006 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28007 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28008 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28009
28010 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28011
28012 PR target/70708
28013 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28014 replace %vmovsd with "%vmovq".
28015 (vec_concatv2df): Likewise.
28016
28017 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28018
28019 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28020 (*vec_extractv2si_0): Ditto.
28021 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28022 (zero_extended_scalar_load_operand splitters): Ditto.
28023 (vec_extract splitters): Ditto.
28024 (*vec_extractv4si_0_zext): Ditto.
28025 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28026 and lowpart_subreg.
28027 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28028 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28029 (*sse4_1_extractps): Use lowpart_subreg.
28030 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28031
28032 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28033
28034 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28035 gld requirements.
28036 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28037 Mention Solaris 11 packaging changes.
28038 Update gas and gld requirements.
28039 Remove reference to pre-Solaris 10 bug.
28040 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28041 systems and bugs.
28042 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28043 with cc.
28044
28045 2016-04-17 Jan Hubicka <jh@suse.cz>
28046
28047 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28048 max_loop_iterations_int.
28049
28050 2016-04-18 Richard Biener <rguenther@suse.de>
28051
28052 PR tree-optimization/43434
28053 * tree-ssa-structalias.c (struct vls_data): New.
28054 (visit_loadstore): Handle all pointer-based accesses.
28055 (compute_dependence_clique): Compute a bitmap of restrict tags
28056 assigned bases and pass it to visit_loadstore.
28057
28058 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28059
28060 PR target/70711
28061 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28062 armv8.1-a and armv8.1-a+crc.
28063
28064 2016-04-18 Richard Biener <rguenther@suse.de>
28065
28066 PR tree-optimization/70701
28067 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28068 references after translating through a memcpy.
28069
28070 2016-04-18 Richard Biener <rguenther@suse.de>
28071
28072 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28073 (compute_antic): ... here. For partial antic use regular
28074 postorder and scrap iteration.
28075 (compute_partial_antic_aux): Remove unused return value.
28076 (init_pre): Do not allocate postorder.
28077 (fini_pre): Do not free postorder.
28078
28079 2016-04-18 Richard Biener <rguenther@suse.de>
28080
28081 PR middle-end/37870
28082 * expmed.c (extract_bit_field_1): Remove broken case
28083 using a wider MODE_INT mode.
28084
28085 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28086
28087 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28088 unless compiling with at least GCC-4.8.
28089
28090 2016-04-17 Jan Hubicka <jh@suse.cz>
28091
28092 PR bootstrap/70706
28093 * graphite.c (graphite_finalize): Update call to
28094 tree_estimate_probability.
28095 * predict.h (tree_estimate_probability): Update prototype.
28096
28097 2016-04-17 Jan Hubicka <jh@suse.cz>
28098
28099 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28100 (tree_estimate_probability): Likewise.
28101 (pass_profile::execute): Update.
28102 (report_predictor_hitrates): New function.
28103 * profile.c (compute_branch_probabilities): Use it.
28104 * predict.h (report_predictor_hitrates): Declare.
28105
28106 2016-04-17 Jan Hubicka <jh@suse.cz>
28107
28108 PR ipa/70018
28109 * cgraph.h (cgraph_node::set_const_flag,
28110 cgraph_node::set_pure_flag): Update prototype to return bool;
28111 update comment.
28112 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28113 of interposable symbol are interposable, too.
28114 (cgraph_set_const_flag_1): Rename to ...
28115 (set_const_flag_1): ... this one; change to self recursive function
28116 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28117 clearnig the flag in all variants and also virtual thunks of const
28118 functions are pure; track if any change was done.
28119 (cgraph_node::set_const_flag): Update.
28120 (struct set_pure_flag_info): New struct.
28121 (cgraph_set_pure_flag_1): Rename to ...
28122 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28123 rather than pointer encoded flags; track if any changes was done;
28124 handle correctly clearning flag and setting flag of aliases already
28125 declared const.
28126 (cgraph_node::set_pure_flag): Update.
28127 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28128
28129 2016-04-17 Tom de Vries <tom@codesourcery.com>
28130
28131 PR other/70433
28132 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28133 backslash in label.
28134
28135 2016-04-17 Tom de Vries <tom@codesourcery.com>
28136
28137 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28138 '{}<> ' as escape-for-record.
28139
28140 2016-04-17 Tom de Vries <tom@codesourcery.com>
28141
28142 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28143 structure.
28144
28145 2016-04-17 Tom de Vries <tom@codesourcery.com>
28146
28147 PR other/70185
28148 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28149 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28150 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28151 * passes.c (finish_optimization_passes): Only call
28152 finish_graph_dump_file if dfi->graph_dump_initialized.
28153 (execute_function_dump, pass_init_dump_file): Use
28154 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28155
28156 2016-04-17 Tom de Vries <tom@codesourcery.com>
28157
28158 PR tree-optimization/70256
28159 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28160 (debug_varmap): New function.
28161
28162 2016-04-17 Tom de Vries <tom@codesourcery.com>
28163
28164 PR other/70183
28165 * passes.c (pass_manager::register_pass): Propagate pflags.
28166
28167 2016-04-17 Tom de Vries <tom@codesourcery.com>
28168
28169 PR other/68875
28170 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28171 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28172 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28173 check if it's equal to p_start.
28174 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28175
28176 2016-04-15 Jan Hubicka <jh@suse.cz>
28177
28178 PR ipa/70018
28179 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28180 function does not bind to current def.
28181 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28182 handle conservatively calls to functions that does not need to bind
28183 to current def.
28184 (check_call): Update call of worse_state.
28185 (ignore_edge_for_nothrow): Update.
28186 (ignore_edge_for_pure_const): Likewise.
28187 (propagate_pure_const): Update calls to worse_state.
28188 (skip_function_for_local_pure_const): Reformat comments.
28189
28190 2016-04-15 Jan Hubicka <jh@suse.cz>
28191
28192 PR ipa/70018
28193 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28194 (cgraph_node::function_symbol): Likewise.
28195 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28196 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28197 (symtab_node::ultimate_alias_target): Add REF parameter.
28198 (symtab_node::binds_to_current_def_p): Declare.
28199 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28200 (cgraph_node::function_symbol): Likewise.
28201 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28202 (cgraph_node::get_availability): Likewise.
28203 (cgraph_edge::binds_to_current_def_p): New inline function.
28204 (varpool_node::get_availability): Add REF parameter.
28205 (varpool_node::ultimate_alias_target): Likewise.
28206 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28207 (symtab_node::binds_to_current_def_p): Likewise.
28208 * varpool.c (varpool_node::get_availability): Likewise.
28209
28210 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28211
28212 PR target/70662
28213 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28214 Fix mode size check.
28215
28216 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28217
28218 * BASE-VER: Set to 7.0.0.
28219
28220 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28221
28222 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28223
28224 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28225
28226 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28227 architecture revisions.
28228
28229 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28230
28231 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28232 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28233 * config/i386/i386.md (stack decrement to push peepholes): Guard
28234 with !x86_using_red_zone ().
28235
28236 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28237
28238 PR c++/70675
28239 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28240 to dump_generic_node.
28241 (NIY): Pass also flags to do_niy.
28242
28243 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28244
28245 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28246 (simd_clone_vector_of_formal_parm_types)
28247 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28248 (simd_clone_mangle, simd_clone_create)
28249 (simd_clone_adjust_return_type, create_tmp_simd_array)
28250 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28251 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28252 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28253 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28254 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28255 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28256 * omp-simd-clone.c: ... this new file.
28257 (simd_clone_vector_of_formal_parm_types): Make it static.
28258 * Makefile.in (OBJS): Add omp-simd-clone.o.
28259
28260 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28261
28262 PR target/70662
28263 * config/i386/sse.md: Use proper memory operand modifiers.
28264
28265
28266 2016-04-15 Richard Biener <rguenther@suse.de>
28267 Alan Modra <amodra@gmail.com>
28268
28269 PR tree-optimization/70130
28270 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28271 when alignment stays not the same and no not use the realign
28272 scheme then.
28273
28274 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28275
28276 PR target/70669
28277 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28278 direct move handlers for KFmode. Change TFmode handlers test from
28279 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28280
28281 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28282
28283 PR c++/70594
28284 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28285 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28286 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28287 * tree-ssa-live.c (remove_unused_scope_block_p): When
28288 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28289 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28290 block_ultimate_origin is FUNCTION_DECL.
28291 (remove_unused_locals): If current_function_decl is
28292 polymorphic_ctor_dtor_p, pass initial true to
28293 remove_unused_scope_block_p' is_ctor_dtor_block.
28294
28295 2016-04-14 Martin Sebor <msebor@redhat.com>
28296
28297 PR c++/69517
28298 PR c++/70019
28299 PR c++/70588
28300 * doc/extend.texi (Variable Length): Revert.
28301
28302 2016-04-14 Marek Polacek <polacek@redhat.com>
28303 Jan Hubicka <hubicka@ucw.cz>
28304
28305 PR c++/70029
28306 * tree.c (verify_type): Disable the canonical type of main variant
28307 check.
28308
28309 2016-04-14 Jason Merrill <jason@redhat.com>
28310
28311 * cfgexpand.c, expr.c: Revert previous change.
28312
28313 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28314
28315 PR middle-end/70643
28316 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28317 when building a mem ref for the incoming reduction variable.
28318
28319 2016-04-14 Richard Biener <rguenther@suse.de>
28320
28321 PR tree-optimization/70614
28322 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28323 loop if the evolution dropped to chrec_dont_know.
28324 (interpret_condition_phi): Likewise.
28325
28326 2016-04-14 Richard Biener <rguenther@suse.de>
28327
28328 PR tree-optimization/70623
28329 * tree-ssa-pre.c (changed_blocks): Make global ...
28330 (compute_antic): ... local here. Move and fix worklist
28331 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28332 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28333 worklist handling, dump when ANTIC_IN changed.
28334 (compute_partial_antic_aux): Remove worklist handling.
28335 (init_pre): Do not compute post dominators. Add a comment about
28336 the CFG order chosen.
28337 (fini_pre): Do not free post dominators.
28338
28339 2016-04-13 Martin Sebor <msebor@redhat.com>
28340
28341 PR c++/69517
28342 PR c++/70019
28343 PR c++/70588
28344 * doc/extend.texi (Variable Length): Document C++ specifics.
28345
28346 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28347
28348 PR c++/70641
28349 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28350 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28351 eh edges have been purged.
28352
28353 PR c++/70594
28354 * tree-sra.c (create_access_replacement,
28355 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28356 gets fancy name.
28357 * tree-pretty-print.c (dump_fancy_name): New function.
28358 (dump_decl_name, dump_generic_node): Use it.
28359
28360 2016-04-13 Jason Merrill <jason@redhat.com>
28361
28362 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28363 * expr.c (expand_expr_real_1): Likewise.
28364
28365 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28366
28367 * config/i386/i386.md (kunpckhi): Swap operands.
28368 (kunpcksi): Likewise.
28369 (kunpckdi): Likewise.
28370 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28371 (vec_pack_trunc_<mode>): Likewise.
28372
28373 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28374
28375 PR debug/70628
28376 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28377
28378 PR middle-end/70633
28379 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28380 gimplification turns some element into non-constant.
28381
28382 PR debug/70628
28383 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28384 * explow.c (convert_memory_address_addr_space_1): No longer static,
28385 add NO_EMIT argument and don't call convert_modes if true, pass
28386 it down recursively, remove break after return.
28387 (convert_memory_address_addr_space): Adjust caller.
28388 * simplify-rtx.c (simplify_unary_operation_1): Call
28389 convert_memory_address_addr_space_1 instead of convert_memory_address,
28390 if it returns NULL, don't simplify.
28391
28392 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28393
28394 PR target/70630
28395 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28396
28397 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28398
28399 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28400 Bump the upper SIMDLEN limits, so that if the return type or
28401 characteristic type if the return type is void can be passed in
28402 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28403 allowed.
28404
28405 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28406
28407 PR target/70640
28408 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28409 Do not use "=" constraint on an input constraint.
28410 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28411 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28412 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28413 generates (neg (abs ...)) instead of (abs ...).
28414
28415 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28416
28417 PR rtl-optimization/70596
28418 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28419 just invalidate LRA data and reset them. Adjust dump wording.
28420
28421 2016-04-12 Martin Liska <mliska@suse.cz>
28422
28423 Revert
28424 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28425
28426 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28427 estimates here.
28428 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28429 max_loop_iterations_int.
28430 (tree_unswitch_outer_loop): Likewise.
28431 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28432 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28433
28434 2016-04-12 Tom de Vries <tom@codesourcery.com>
28435
28436 PR tree-optimization/68756
28437 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28438 instead of new_name.
28439
28440 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28441
28442 PR tree-optimization/70602
28443 * tree-sra.c (generate_subtree_copies): Don't write anything into
28444 constant pool decls.
28445
28446 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28447 regardless whether there are depend clauses or not.
28448
28449 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28450
28451 PR target/70381
28452 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28453 target attribute and pragma from changing the -mfloat128
28454 and -mfloat128-hardware options.
28455
28456 * doc/extend.texi (Additional Floating Types): Document PowerPC
28457 __float128 restrictions.
28458
28459 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28460
28461 PR target/70133
28462 * config/aarch64/driver-aarch64.c
28463 (aarch64_get_extension_string_for_isa_flags): New.
28464 (arch_extension): Rename to...
28465 (aarch64_arch_extension): ...This.
28466 (ext_to_feat_string): Rename to...
28467 (aarch64_extensions): ...This.
28468 (aarch64_core_data): Keep track of architecture extension flags.
28469 (cpu_data): Rename to...
28470 (aarch64_cpu_data): ...This.
28471 (aarch64_arch_driver_info): Keep track of architecture extension
28472 flags.
28473 (get_arch_name_from_id): Rename to...
28474 (get_arch_from_id): ...This, change return type.
28475 (host_detect_local_cpu): Update and reformat for renames, handle
28476 extensions through common infrastructure.
28477
28478 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28479
28480 PR target/70133
28481 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28482 track of a canonical flag name.
28483 (all_extensions): Likewise.
28484 (arch_to_arch_name): Also track extension flags enabled by the arch.
28485 (all_architectures): Likewise.
28486 (aarch64_parse_extension): Move to here.
28487 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28488 rework.
28489 (aarch64_rewrite_selected_cpu): Update for above change.
28490 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28491 are handled, such that the single explicit value enabled by an
28492 extension is kept seperate from the implicit values it also enables.
28493 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28494 to here.
28495 (aarch64_parse_extension): New.
28496 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28497 here to config/aarch64/aarch64-protos.h.
28498 (aarch64_parse_extension): Move from here to
28499 common/config/aarch64/aarch64-common.c.
28500 (aarch64_option_print): Update.
28501 (aarch64_declare_function_name): Likewise.
28502 (aarch64_start_file): Likewise.
28503 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28504 the canonical flag for extensions.
28505 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28506 flags.
28507
28508 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28509
28510 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28511 AARCH64_FL_CRC.
28512
28513 2016-04-09 Tom de Vries <tom@codesourcery.com>
28514
28515 PR tree-optimization/68953
28516 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28517 first to last subscript.
28518
28519 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28520
28521 PR tree-optimization/70586
28522 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28523 for any calls.
28524
28525 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28526
28527 PR lto/70289
28528 PR ipa/70348
28529 PR tree-optimization/70373
28530 PR middle-end/70533
28531 PR middle-end/70534
28532 PR middle-end/70535
28533 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28534 clauses for acc parallel reductions as necessary. Error on those
28535 that are private.
28536 * omp-low.c (scan_sharing_clauses): Don't install variables which
28537 are used in acc parallel reductions.
28538 (lower_rec_input_clauses): Remove dead code.
28539 (lower_oacc_reductions): Add support for reference reductions.
28540 (lower_reduction_clauses): Remove dead code.
28541 (lower_omp_target): Don't remap variables appearing in acc parallel
28542 reductions.
28543 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28544
28545 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28546
28547 PR middle-end/70593
28548 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28549 with multiple SSA_NAME defs, force the outputs other than first
28550 to be live before calling live_track_process_def on each output.
28551
28552 PR rtl-optimization/70574
28553 * fwprop.c (forward_propagate_and_simplify): Don't add
28554 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28555 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28556 paradoxical subregs within *loc.
28557
28558 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28559
28560 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28561 -ftree-parallelize-loops={0,1}.
28562 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28563 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28564 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28565 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28566 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28567
28568 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28569
28570 PR sanitizer/70541
28571 * asan.c (instrument_derefs): If we get unknown location, extract it
28572 with EXPR_LOCATION.
28573 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28574
28575 2016-04-08 Tom de Vries <tom@codesourcery.com>
28576
28577 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28578 implicit firstprivate clause.
28579
28580 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28581
28582 PR target/70566
28583 * config/arm/thumb2.md (tst + branch-> lsls + branch
28584 peephole below *orsi_not_shiftsi_si): Require that condition
28585 register is dead after the peephole.
28586 (second peephole after the above): Likewise.
28587
28588 2016-04-08 Alan Modra <amodra@gmail.com>
28589
28590 PR target/70117
28591 * builtins.c (fold_builtin_classify): For IBM extended precision,
28592 look at just the high-order double to test for NaN.
28593 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28594 test just the high double for Inf but both doubles for subnormal
28595 limit.
28596
28597 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28598
28599 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28600 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28601 node->simdclone->mask_mode != VOIDmode masks.
28602 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28603 earlier, use it instead of node->simdclone.
28604 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28605 Set clonei->mask_mode.
28606
28607 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28608
28609 PR c/70436
28610 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28611 Pass it through to cp_parser_already_scoped_statement.
28612 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28613 it through to cp_parser_statement.
28614 (cp_parser_statement): Pass IF_P through to
28615 cp_parser_iteration_statement.
28616 (cp_parser_pragma): Adjust call to
28617 cp_parser_iteration_statement.
28618
28619 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28620
28621 PR c/70436
28622 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28623 resolve a future -Wparentheses warning.
28624 * omp-low.c (scan_sharing_clauses): Likewise.
28625 * tree-parloops.c (eliminate_local_variables): Likewise.
28626
28627 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28628
28629 PR rtl-optimization/70398
28630 * lra-constraints.c (process_address_1): Check zero scale and code
28631 for reloading with zero scale.
28632
28633 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28634
28635 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28636 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28637
28638 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28639
28640 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28641 Add support for AVX512F clones, include them by default for
28642 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28643 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28644 up to 128.
28645
28646 PR middle-end/70550
28647 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28648 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28649 firstprivate clauses.
28650 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28651 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28652 (lower_omp_target): Set TREE_NO_WARNING for
28653 non-addressable possibly uninitialized vars which are copied into
28654 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28655
28656 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28657
28658 * config/pa/predicates.md (integer_store_memory_operand): Accept
28659 REG+D operands with a large offset when reload_in_progress is true.
28660 (floating_point_store_memory_operand): Likewise.
28661
28662 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28663
28664 PR c++/70336
28665 * match.pd (nested int casts): Limit to GIMPLE.
28666
28667 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28668
28669 PR ipa/66223
28670 * ipa-devirt.c (maybe_record_node): Fix comment; use
28671 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28672
28673 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28674
28675 PR rtl-optimization/70542
28676 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28677 if there are any uses other than insn or debug insns.
28678
28679 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28680 Jakub Jelinek <jakub@redhat.com>
28681
28682 PR tree-optimization/70509
28683 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28684 Shift HOST_WIDE_INT_1U instead of 1.
28685
28686 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28687
28688 PR tree-optimization/70509
28689 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28690 of the vector base type for index.
28691
28692 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28693
28694 PR target/70510
28695 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28696
28697 2016-04-05 Richard Biener <rguenther@suse.de>
28698
28699 PR tree-optimization/70526
28700 * tree-sra.c (build_ref_for_offset): Use prev_base to
28701 extract the alias pointer type.
28702
28703 2016-04-05 Richard Biener <rguenther@suse.de>
28704
28705 * dse.c (struct store_info): Remove alias_set member.
28706 (struct read_info_type): Likewise.
28707 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28708 spill_deleted, clear_alias_set_lookup): Remove.
28709 (get_group_info): Remove dead base == NULL_RTX case.
28710 (dse_step0): Remove initialization of removed variables.
28711 (delete_dead_store_insn): Reomve alias set dumping.
28712 (free_read_records): Remove alias_set handling.
28713 (canon_address): Remove alias_set_out parameter.
28714 (record_store): Remove spill_alias_set, it's always zero.
28715 (check_mem_read_rtx): Likewise.
28716 (dse_step2): Rename from ...
28717 (dse_step2_nospill): ... this. Adjust.
28718 (scan_stores): Rename from ...
28719 (scan_stores_nospill): ... this.
28720 (scan_reads): Rename from ...
28721 (scan_reads_nospill): ... this.
28722 (scan_stores_spill, scan_reads_spill): Remove.
28723 (dse_step3_scan): Remove for_spills argument which is always false.
28724 (dse_step3): Likewise.
28725 (dse_step5): Rename from ...
28726 (dse_step5_nospill): ... this. Remove alias_set handling.
28727 (rest_of_handle_dse): Adjust.
28728
28729 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28730
28731 PR target/70525
28732 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28733 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28734 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28735 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28736
28737 2016-04-05 Richard Biener <rguenther@suse.de>
28738
28739 PR middle-end/70499
28740 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28741 non-register type temporaries into SSA.
28742
28743 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28744
28745 PR ipa/66223
28746 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28747 calls when sanitizing.
28748 (possible_polymorphic_call_target_p): Fix formatting.
28749
28750 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28751 Jakub Jelinek <jakub@redhat.com>
28752
28753 PR middle-end/70457
28754 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28755 to ensure a call statement is compatible with a built-in's
28756 prototype.
28757 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28758 Likewise.
28759
28760 2016-04-04 Richard Biener <rguenther@suse.de>
28761
28762 PR rtl-optimization/70484
28763 * rtl.h (canon_output_dependence): Declare.
28764 * alias.c (canon_output_dependence): New function.
28765 * dse.c (record_store): Use canon_output_dependence rather
28766 than canon_true_dependence.
28767
28768 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28769
28770 PR ipa/68881
28771 * cgraph.h (symtab_node::copy_visibility_from): New function.
28772 * symtab.c (symtab_node::copy_visibility_from): New function.
28773 * ipa-visibility.c (optimize_weakref): New function.
28774 (function_and_variable_visibility): Use it.
28775
28776 2016-04-04 Martin Liska <mliska@suse.cz>
28777
28778 PR hsa/70402
28779 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28780 value that is really in range handled by SBR instruction.
28781 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28782 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28783 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28784
28785 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28786
28787 PR target/70416
28788 PR target/67391
28789 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28790 set, but not for SP_REG operands.
28791
28792 2016-04-02 Martin Sebor <msebor@redhat.com>
28793
28794 PR c++/67376
28795 * fold-const.c (maybe_nonzero_address): New function.
28796 (fold_comparison): Call it. Fold equality and relational
28797 expressions involving null pointers.
28798 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28799
28800 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28801
28802 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28803 the "Y" constraint (scalar FP 0.0 immediate).
28804
28805 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28806 Add the "const_double" to the list of operand constraints.
28807
28808 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28809
28810 PR rtl-optimization/70467
28811 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28812 If low word of the last operand is 0, just emit addition/subtraction
28813 for the high word.
28814
28815 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28816
28817 PR target/70404
28818 * config/s390/s390.c (s390_expand_insv): Check for everything
28819 constant instead of just VOIDmode stuff.
28820
28821 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28822
28823 PR target/70496
28824 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28825
28826 2016-04-01 Nathan Sidwell <nathan@acm.org>
28827
28828 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28829
28830 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28831
28832 PR rtl-optimization/70461
28833 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28834 is necessary.
28835
28836 2016-03-31 Martin Liska <mliska@suse.cz>
28837
28838 PR hsa/70399
28839 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28840 a tree value or an immediate integer value to a buffer
28841 that is eventually copied to a BRIG section.
28842 (emit_immediate_operand): Call the function here.
28843 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28844 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28845 of class' fields that are removed.
28846 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28847 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28848 m_brig_repr_size fields.
28849
28850 2016-03-31 Martin Liska <mliska@suse.cz>
28851
28852 PR hsa/70391
28853 * hsa-gen.c (hsa_function_representation::update_dominance): New
28854 function.
28855 (convert_addr_to_flat_segment): Likewise.
28856 (gen_hsa_memory_set): New alignment argument.
28857 (gen_hsa_ctor_assignment): Likewise.
28858 (gen_hsa_insns_for_single_assignment): Provide alignment
28859 to gen_hsa_ctor_assignment.
28860 (gen_hsa_insns_for_direct_call): Add new argument.
28861 (expand_lhs_of_string_op): New function.
28862 (expand_string_operation_builtin): Likewise.
28863 (expand_memory_copy): New function.
28864 (expand_memory_set): New function.
28865 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
28866 (convert_switch_statements): Change signature.
28867 (generate_hsa): Use a return value of the function.
28868 (pass_gen_hsail::execute): Do not call
28869 convert_switch_statements here.
28870 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
28871 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
28872 (hsa_function_representation::update_dominance): New function.
28873
28874 2016-03-31 Martin Liska <mliska@suse.cz>
28875
28876 PR hsa/70391
28877 * hsa-brig.c (emit_directive_variable): Emit alignment
28878 according to hsa_symbol::m_align.
28879 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
28880 (dump_hsa_symbol): Dump alignment of HSA symbols.
28881 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
28882 (gen_hsa_addr_with_align): New function.
28883 (hsa_bitmemref_alignment): Use newly added function.
28884 (gen_hsa_insns_for_load): Likewise.
28885 (gen_hsa_insns_for_store): Likewise.
28886 (gen_hsa_memory_copy): New argument added.
28887 (gen_hsa_insns_for_single_assignment): Respect
28888 alignment for assignments processed via gen_hsa_memory_copy.
28889 (gen_hsa_insns_for_direct_call): Likewise.
28890 (gen_hsa_insns_for_return): Likewise.
28891 (gen_function_def_parameters): Set default alignment.
28892 * hsa.c (hsa_object_alignment): New function.
28893 (hsa_byte_alignment): Pasted function.
28894 * hsa.h (hsa_symbol::m_align): New field.
28895
28896 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28897
28898 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
28899 scratch field for goto case.
28900
28901 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
28902
28903 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
28904
28905 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
28906
28907 PR target/70442
28908 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
28909 (scalar_chain::convert_insn): Call convert_op for reg
28910 moves to handle undefined registers.
28911
28912 2016-03-31 Nathan Sidwell <nathan@acm.org>
28913
28914 PR c++/70393
28915 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
28916 Assert we don't want to move backwards.
28917
28918 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
28919
28920 PR target/70453
28921 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
28922
28923 2016-03-31 Jakub Jelinek <jakub@redhat.com>
28924
28925 PR rtl-optimization/70460
28926 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
28927 with operand from REG_LABEL_OPERAND, instead substitute
28928 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
28929 Don't do anything for REG_NON_LOCAL_GOTO jumps.
28930
28931 2016-03-31 Martin Liska <mliska@suse.cz>
28932
28933 * passes.c (execute_one_pass): Do not call
28934 todo_after for a discarded function.
28935
28936 2016-03-31 Bin Cheng <bin.cheng@arm.com>
28937
28938 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
28939 (no_cost, infinite_cost): Initialize the new field.
28940 (get_computation_cost_at): Record setup cost.
28941 (determine_use_iv_cost_address): Skip cost computation for sub
28942 uses if we can estimate it without losing accuracy.
28943
28944 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28945
28946 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28947 estimates here.
28948 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28949 max_loop_iterations_int.
28950 (tree_unswitch_outer_loop): Likewise.
28951 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28952 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28953
28954 2016-03-30 Richard Biener <rguenther@suse.de>
28955
28956 PR middle-end/70450
28957 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
28958
28959 2016-03-30 Jakub Jelinek <jakub@redhat.com>
28960
28961 PR target/70421
28962 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
28963 in gen_blendm expander.
28964
28965 2016-03-30 Nick Clifton <nickc@redhat.com>
28966
28967 PR target/62254
28968 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
28969 case where we are already provided with an SImode SUBREG.
28970
28971 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
28972
28973 PR target/70439
28974 * config/i386/i386.c (ix86_expand_epilogue): Properly check
28975 conflict between DRAP register and __builtin_eh_return.
28976
28977 2016-03-30 Michael Matz <matz@suse.de>
28978 Richard Biener <rguenther@suse.de>
28979
28980 PR ipa/12392
28981 * ipa-polymorphic-call.c (struct type_change_info): Change
28982 speculative to an unsigned allowing to limit the work we do.
28983 (csftc_abort_walking_p): New inline function..
28984 (check_stmt_for_type_change): Limit the number of may-defs
28985 skipped for speculative devirtualization to
28986 max-speculative-devirt-maydefs.
28987 * params.def (max-speculative-devirt-maydefs): New param.
28988 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
28989
28990 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
28991
28992 PR target/63890
28993 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
28994 and TARGET_MACHO.
28995
28996 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
28997
28998 PR tree-optimization/59124
28999 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29000 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29001
29002 2016-03-29 Jeff Law <law@redhat.com>
29003
29004 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29005
29006 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29007
29008 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29009 to HOST_WIDE_INT.
29010
29011 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29012
29013 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29014 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29015 gcrt0.o if linking dynamically.
29016
29017 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29018
29019 PR ipa/70283
29020 * ipa-devirt.c (methods_equal_p): New function.
29021 (compare_virtual_tables): Use it.
29022 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29023 * cgraphclones.c (clone_function_name_1): Use
29024 symbol_table::symbol_suffix_separator.
29025 * coverage.c (build_var): Likewise.
29026 * symtab.c (symbol_table::symbol_suffix_separator): New.
29027
29028 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29029
29030 PR rtl-optimization/70429
29031 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29032 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29033 mode != result_mode.
29034
29035 PR c++/70353
29036 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29037
29038 PR tree-optimization/70405
29039 * ssa-iterators.h (num_imm_uses): Add missing braces.
29040
29041 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29042
29043 PR rtl-optimization/68695
29044 * ira-color.c (allocno_copy_cost_saving): New.
29045 (improve_allocation): Use it.
29046
29047 2016-03-29 Richard Henderson <rth@redhat.com>
29048
29049 PR middle-end/70355
29050 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29051
29052 2016-03-29 Richard Biener <rguenther@suse.de>
29053
29054 PR middle-end/70424
29055 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29056 use alignment returned by get_pointer_alignment_1 if it is
29057 bigger than BITS_PER_UNIT.
29058 * builtins.c (get_pointer_alignment_1): Do not return true
29059 for alignment extracted from SSA info.
29060
29061 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29062
29063 * config/ft32/ft32.opt (mnodiv): New.
29064 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29065 * doc/invoke.texi (FT32 Options -mnodiv): New.
29066
29067 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29068
29069 PR target/70406
29070 * config/i386/i386.md (define_split, andn): Fix modes.
29071
29072 2016-03-26 Richard Biener <rguenther@suse.de>
29073 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29074
29075 PR ipa/70366
29076 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29077 instead of
29078 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29079 as 2nd argument to cl_optimization_restore().
29080
29081 2016-03-25 Richard Henderson <rth@redhat.com>
29082
29083 PR target/70120
29084 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29085 * config/aarch64/aarch64-protos.h: Declare it.
29086 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29087
29088 2016-03-25 Alan Modra <amodra@gmail.com>
29089
29090 PR target/70052
29091 * config/rs6000/constraints.md (j): Simplify.
29092 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29093 decimal float 0.D.
29094 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29095 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29096 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29097 in all constraint alternatives.
29098 (movtd_64bit_nodm): Delete "j" constraint alternative.
29099
29100 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29101
29102 * tree-ssa-propagate.c: Enhance docs for
29103 SSA_PROP_NOT_INTERESTING.
29104
29105 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29106
29107 * doc/extend.texi: Fix typo in documentation to pure attribute.
29108
29109 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29110
29111 PR target/70319
29112 * config/pa/pa.md (bswapdi2): Use a scratch register.
29113
29114 2016-03-24 Richard Henderson <rth@redhat.com>
29115
29116 PR middle-end/69845
29117 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29118 overflow.
29119
29120 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29121
29122 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29123 using ix86_expand_binary_operator instead of gen_andsi3.
29124
29125 2016-03-24 Richard Biener <rguenther@suse.de>
29126
29127 PR tree-optimization/70396
29128 * tree-vect-stmts.c (vectorizable_comparison): Use
29129 get_vectype_for_scalar_type.
29130
29131 2016-03-24 Richard Biener <rguenther@suse.de>
29132
29133 PR middle-end/70370
29134 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29135 with register bases.
29136
29137 2016-03-24 Richard Biener <rguenther@suse.de>
29138
29139 PR tree-optimization/70372
29140 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29141 build_all_ones_cst to also handle vector types correctly.
29142
29143 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29144
29145 PR target/70381
29146 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29147 -mfloat128 here.
29148
29149 2016-03-23 Marek Polacek <polacek@redhat.com>
29150
29151 PR c++/69884
29152 * doc/invoke.texi: Document -Wignored-attributes.
29153
29154 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29155
29156 PR tree-optimization/69042
29157 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29158 parameter from 30 to 40.
29159
29160 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29161
29162 PR tree-optimization/69042
29163 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29164 for use with constant offset stripped in base.
29165
29166 2016-03-23 Richard Biener <rguenther@suse.de>
29167
29168 PR middle-end/70251
29169 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29170 mode compatibility check.
29171 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29172
29173 2016-03-23 Jeff Law <law@redhat.com>
29174
29175 PR tree-optimization/64058
29176 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29177 CONFLICT_COUNT.
29178 (struct ssa_conflicts): Move up earlier in the file.
29179 (conflicts_, var_map_): New static variables.
29180 (initialize_conflict_count): New function to initialize the
29181 CONFLICT_COUNT field for each conflict pair.
29182 (compare_pairs): Lazily initialize the conflict count and use it
29183 as the first tie-breaker.
29184 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29185 and wipe conflicts_ and map_ around the call to qsort. Remove
29186 special case for 2 coalesce pairs.
29187 * bitmap.c (bitmap_count_unique_bits): New function.
29188 (bitmap_count_bits_in_word): New function, extracted from
29189 bitmap_count_bits.
29190 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29191 * bitmap.h (bitmap_count_unique_bits): Declare it.
29192
29193 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29194
29195 PR target/69917
29196 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29197 transparent alias chain for decl assembler name.
29198 * config/sol2.c (solaris_assemble_visibility): Likewise.
29199
29200 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29201
29202 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29203 duration.
29204 (v10_fdivs): Likewise.
29205 (v10_fdivd): Likewise.
29206
29207 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29208
29209 PR driver/70132
29210 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29211 to not call fclose twice on file.
29212
29213 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29214
29215 PR tree-optimization/70354
29216 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29217 oprnd0 is wider than oprnd1 and there is a cast from the wider
29218 type to oprnd1, mask it with the mask of the narrower type.
29219
29220 PR target/70321
29221 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29222 Optimize TARGET_STV splitters, if high or low word of last argument
29223 is 0 or -1.
29224
29225 2016-03-22 Jeff Law <law@redhat.com>
29226
29227 PR target/70232
29228 tree-ssa-threadbackward.c
29229 (fsm_find_control_statement_thread_paths): Correctly distinguish
29230 between old style jump threads vs FSM jump threads.
29231
29232 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29233
29234 PR target/70302
29235 * config/i386/i386.c (scalar_chain::convert_op): Support
29236 uninitialized register usage case.
29237
29238 2016-03-22 Richard Biener <rguenther@suse.de>
29239
29240 PR middle-end/70251
29241 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29242 int...
29243 (capture::gen_transform): ... to change behavior when substituting
29244 a condition into cond or not-cond expr context.
29245 (dt_simplify::gen_1): Adjust.
29246 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29247 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29248 last change and instead change to
29249 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29250 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29251
29252 2016-03-22 Anthony Green <green@moxielogic.com>
29253
29254 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29255 issue for moxiebox targets.
29256 (CC1PLUS_SPEC): Ditto.
29257
29258 2016-03-22 Richard Biener <rguenther@suse.de>
29259
29260 PR middle-end/70333
29261 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29262 in the wide type.
29263
29264 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29265
29266 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29267
29268 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29269
29270 PR target/70325
29271 * config/i386/i386.c (def_builtin): Handle
29272 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29273 bits.
29274 (const struct builtin_description bdesc_special_args[]):
29275 Remove duplicate ISA bits.
29276
29277 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29278
29279 PR target/70329
29280 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29281 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29282 in a way that works also for AVX512BW.
29283
29284 PR target/70300
29285 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29286 instead of source if operands[1] is xmm16 and above and
29287 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29288 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29289
29290 PR c++/70295
29291 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29292 on assign if (*from_p) is a comparison, set it to
29293 TREE_NO_WARNING (*from_p).
29294
29295 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29296
29297 PR middle-end/70326
29298 * lra.c (restore_scratches): Ignore deleted insns.
29299
29300 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29301 Jakub Jelinek <jakub@redhat.com>
29302
29303 PR tree-optimization/70317
29304 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29305 to HONOR_NANS.
29306
29307 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29308
29309 PR target/70327
29310 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29311 of ix86_expand_move.
29312 (movoi): Ditto.
29313 (movti): Use general_operand for operand 1 predicate.
29314
29315 2016-03-21 Martin Liska <mliska@suse.cz>
29316
29317 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29318 insns.
29319 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29320
29321 2016-03-21 Martin Liska <mliska@suse.cz>
29322
29323 PR ipa/70306
29324 * ipa-icf.c (sem_function::parse): Skip static
29325 constructors and destructors.
29326
29327 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29328
29329 PR target/70296
29330 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29331 function-like macro, peek following token(s) if it is followed
29332 by CPP_OPEN_PAREN token with optional padding in between, and
29333 if not, don't treat it like a macro.
29334
29335 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29336 Alexander Monakov <amonakov@ispras.ru>
29337
29338 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29339 for the stabs debug format.
29340
29341 2016-03-21 Richard Biener <rguenther@suse.de>
29342
29343 PR tree-optimization/70310
29344 * tree-vect-generic.c (expand_vector_condition): Fold the built
29345 condition.
29346
29347 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29348
29349 PR target/70293
29350 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29351 Block third alternative for AVX-512VL target,
29352
29353 2016-03-21 Martin Liska <mliska@suse.cz>
29354
29355 PR hsa/70234
29356 * hsa-brig.c (emit_function_directives): Mark unemitted
29357 global variables for emission.
29358 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29359 (get_symbol_for_decl): Likewise.
29360 * hsa.h (struct hsa_symbol): New flag.
29361
29362 2016-03-21 Richard Biener <rguenther@suse.de>
29363
29364 PR tree-optimization/70288
29365 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29366 we do not estimate unsimplified all-constant conditionals or
29367 switches as optimized away.
29368
29369 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29370
29371 PR rtl-optimization/69102
29372 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29373 when we have a readonly dependency context.
29374
29375 2016-03-18 Jeff Law <law@redhat.com>
29376
29377 PR rtl-optimization/70263
29378 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29379 (update_equiv_regs): When trying to move a store to after the insn
29380 that sets the source of the store, make sure the store occurs after
29381 the insn that sets the source of the store. When successful note
29382 the REG_EQUIV note created in the dump file.
29383
29384 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29385 Bernd Schmidt <bschmidt@redhat.com>
29386
29387 * doc/extend.texi: Document more potential problems with basic asms.
29388
29389 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29390
29391 PR rtl-optimization/70278
29392 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29393 VOIDmode.
29394
29395 2016-03-18 Jason Merrill <jason@redhat.com>
29396
29397 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29398
29399 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29400
29401 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29402 values to 128b regs.
29403
29404 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29405
29406 PR tree-optimization/70252
29407 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29408 boolean vector has a proper number of elements.
29409 (supportable_narrowing_operation): Likewise.
29410
29411 2016-03-18 Tom de Vries <tom@codesourcery.com>
29412
29413 PR ipa/70269
29414 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29415
29416 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29417
29418 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29419 instead of replace_rtx for DEBUG_INSNs.
29420
29421 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29422
29423 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29424 load type reservations.
29425
29426 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29427
29428 PR target/70188
29429 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29430 define_constraint for "Q" and "T" constraints.
29431
29432 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29433
29434 Tweak the pipeline model for Exynos M1
29435
29436 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29437 model.
29438
29439 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29440
29441 PR c/70264
29442 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29443 where one or both locations aren't within a line_map.
29444
29445 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29446
29447 PR driver/70192
29448 * opts.c (finish_options): Don't set flag_pie to the default if
29449 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29450 if it is -1.
29451
29452 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29453
29454 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29455 true as ALL_REGS argument to replace_rtx.
29456
29457 2016-03-17 Richard Biener <rguenther@suse.de>
29458
29459 PR debug/70271
29460 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29461 last.
29462
29463 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29464
29465 PR target/70245
29466 * rtl.h (replace_rtx): Add ALL_REGS argument.
29467 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29468 equality and assert mode is the same, instead of just rtx pointer
29469 equality.
29470 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29471 true as ALL_REGS argument to replace_rtx.
29472
29473 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29474
29475 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29476 for boolean vector with vector mode only.
29477 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29478
29479 2016-03-17 Nick Clifton <nickc@redhat.com>
29480
29481 PR target/70162
29482 * config/rx/rx.c (rx_print_integer): Print negative constants in
29483 decimal.
29484
29485 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29486
29487 PR target/70261
29488 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29489
29490 2016-03-16 Richard Henderson <rth@redhat.com>
29491 Richard Biener <rguenth@suse.de>
29492
29493 PR middle-end/70240
29494 PR middle-end/68215
29495 PR tree-opt/68714
29496 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29497 first operand as is_gimple_condexpr.
29498
29499 PR middle-end/70240
29500 PR middle-end/68215
29501 Revert r231575
29502 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29503 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29504 Do not gimplify the result.
29505 (do_unop): Adjust call to tree_vec_extract.
29506 (do_binop): Likewise.
29507 (do_compare): Likewise.
29508 (do_plus_minus): Likewise.
29509 (do_negate): Likewise.
29510 (expand_vector_condition): Likewise.
29511 (do_cond): Likewise.
29512
29513 2016-03-16 Richard Henderson <rth@redhat.com>
29514
29515 PR target/70048
29516 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29517 (aarch64_classify_address): Use it.
29518 (aarch64_legitimize_address): Force all subexpressions of PLUS
29519 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29520
29521 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29522 Richard Biener <rguenth@suse.de>
29523
29524 PR target/70245
29525 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29526 return to even if only REGNO is equal, and assert
29527 mode is the same.
29528
29529 2016-03-11 Jeff Law <law@redhat.com>
29530
29531 PR rtl-optimization/70224
29532 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29533
29534 2016-03-16 Richard Henderson <rth@redhat.com>
29535
29536 PR middle-end/70199
29537 * function.h (struct function): Add has_forced_label_in_static.
29538 * gimplify.c (force_labels_r): Set it.
29539 * lto-streamer-in.c (input_struct_function_base): Read it.
29540 * lto-streamer-out.c (output_struct_function_base): Write it.
29541 * tree-inline.c (has_label_address_in_static_1): Remove.
29542 (copy_forbidden): Remove fndecl parameter; test
29543 has_forced_label_in_static.
29544 (inline_forbidden_p): Update call to copy_forbidden.
29545 (tree_versionable_function_p): Likewise.
29546 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29547 (chkp_versioning): Likewise.
29548 * tree-inline.h (copy_forbidden): Update decl.
29549
29550 2016-03-16 Marek Polacek <polacek@redhat.com>
29551
29552 PR c/70093
29553 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29554 function being thunked if the result type doesn't have fixed size.
29555 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29556 doesn't have fixed size.
29557
29558 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29559
29560 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29561 reporting malformed loop nest.
29562
29563 2016-03-16 Tom de Vries <tom@codesourcery.com>
29564
29565 PR lto/70187
29566 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29567 nodes.length () == 1 test to before first nodes[0] access.
29568
29569 2016-03-16 Tom de Vries <tom@codesourcery.com>
29570
29571 PR tree-optimization/68715
29572 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29573 single_pred_p test.
29574
29575 2016-03-16 Tom de Vries <tom@codesourcery.com>
29576
29577 PR tree-optimization/68809
29578 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29579 are the same.
29580
29581 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29582 Sandra Loosemore <sandra@codesourcery.com>
29583
29584 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29585 on leaf attribute. Mention ELF interposition problems.
29586
29587 2016-03-16 Alan Modra <amodra@gmail.com>
29588
29589 PR rtl-optimization/69195
29590 PR rtl-optimization/47992
29591 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29592 Add comments.
29593
29594 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29595
29596 PR bootstrap/69513
29597 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29598
29599 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29600
29601 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29602
29603 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29604
29605 PR rtl-optimization/70222
29606 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29607 optimization if mode is different from result_mode, queue up masking
29608 of the result in outer_op. Formatting fix.
29609
29610 PR middle-end/70239
29611 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29612 of safe_grow.
29613
29614 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29615
29616 PR rtl-optimization/69032
29617 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29618 looping backwards over basic block insns.
29619
29620 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29621
29622 PR target/66660
29623 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29624 to non-speculative when propagating trap bits.
29625
29626 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29627
29628 PR rtl-optimization/63384
29629 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29630 DEBUG_INSN_P insns.
29631
29632 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29633
29634 PR target/64411
29635 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29636 factored out from ...
29637 (sched_analyze_insn): ... here.
29638 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29639 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29640 get_implicit_reg_pending_clobbers in it.
29641 (setup_id_reg_sets): Use setup_id_implicit_regs.
29642 (deps_init_id): Ditto.
29643
29644 2016-03-15 Tom de Vries <tom@codesourcery.com>
29645
29646 PR ipa/70161
29647 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29648 dump_file_name.
29649 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29650 execute_function_dump.
29651 (execute_one_pass): Don't dump function if it will be dumped after ipa
29652 transform.
29653
29654 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29655
29656 * genrecog.c (match_pattern_2): If pred is NULL don't call
29657 safe_predicate_mode on it.
29658
29659 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29660
29661 PR middle-end/70219
29662 * lra-constraints.c (delete_move_and_clobber): Change assertion
29663 to also allow dregno == 0.
29664
29665 2016-03-14 Richard Henderson <rth@redhat.com>
29666
29667 PR tree-opt/68714
29668 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29669 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29670 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29671 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29672 on vectors.
29673
29674 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29675
29676 PR target/70083
29677 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29678 regs.
29679 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29680 VOIDmode.
29681 * lra-constraints.c (split_reg): For hard regs, try to find the
29682 biggest single-register mode used in the function.
29683
29684 2016-03-14 Richard Biener <rguenther@suse.de>
29685
29686 PR tree-optimization/56365
29687 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29688 constants to compare against.
29689
29690 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29691
29692 PR target/70098
29693 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29694 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29695 (define_split for the GPR case): Use int_reg_operand instead of
29696 gpc_reg_operand for the output.
29697
29698 2016-03-14 Tom de Vries <tom@codesourcery.com>
29699
29700 PR tree-optimization/70045
29701 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29702 create_empty_if_region_on_edge argument.
29703
29704 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29705
29706 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29707 (STACK_CHECK_PROTECT): Likewise.
29708 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29709 (STACK_CHECK_PROTECT): Likewise.
29710 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29711 (STACK_CHECK_PROTECT): Likewise.
29712 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29713 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29714 (STACK_CHECK_PROTECT): Likewise.
29715
29716 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29717
29718 PR rtl-optimization/69307
29719 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29720 registers in modes that span more than one register.
29721
29722 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29723
29724 PR target/69614
29725 * lra-constraints.c (delete_move_and_clobber): New.
29726 (remove_inheritance_pseudos): Use it.
29727
29728 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29729
29730 PR ada/70017
29731 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29732 the libcall is LCT_THROW.
29733 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29734 for the checking routine.
29735
29736 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29737
29738 PR target/70131
29739 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29740 optimization if we have direct move.
29741 (roundu32<mode>2_fprs): Likewise.
29742
29743 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29744
29745 PR target/70123
29746 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29747 be rematerialized.
29748 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29749 Arguments swapped. All callers changed. Take reg_renumber into
29750 account, and Calculate and compare register ranges for hard regs.
29751
29752 2016-03-11 Jeff Law <law@redhat.com>
29753
29754 PR tree-optimization/70190
29755 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29756 Handle cases where we can not extract the taken edge, even though we
29757 found a constant value.
29758
29759 PR tree-optimization/64058
29760 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29761 (num_coalesce_pairs): Move up earlier in file.
29762 (find_coalesce_pair): Initialize the INDEX field for each pair
29763 discovered.
29764 (compare_pairs): No longer sort on the elements in each pair.
29765 Instead break ties with the index of the coalesce pair.
29766
29767 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29768
29769 PR target/70002
29770 * config/aarch64/aarch64-protos.h
29771 (aarch64_save_restore_target_globals): New prototype.
29772 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29773 Call the above when popping pragma.
29774 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29775 New function.
29776 (aarch64_set_current_function): Rewrite using the above.
29777
29778 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29779
29780 PR tree-optimization/70177
29781 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29782 (extract_ops_from_tree): ... this. In the 2 argument
29783 overload remove _1 suffix.
29784 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29785 (extract_ops_from_tree): ... this.
29786 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29787 Adjust callers.
29788 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29789 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29790 extract_ops_from_tree instead of 2 operand one.
29791
29792 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29793
29794 PR tree-optimization/70013
29795 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29796 for constant-pool entries.
29797
29798 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29799
29800 PR rtl-optimization/70174
29801 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29802 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29803
29804 PR tree-optimization/70169
29805 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29806 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29807 for unknown codes.
29808
29809 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29810 Jakub Jelinek <jakub@redhat.com>
29811
29812 PR target/70160
29813 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29814 of uninitialized values.
29815
29816 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29817
29818 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29819 define_expand.
29820 ("*trunctddd2"): New pattern definition.
29821 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29822 TD->DD truncation.
29823
29824 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29825
29826 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29827 definitions for BFP and DFP rounding modes.
29828 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29829 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29830 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29831 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29832 numbers.
29833
29834 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29835
29836 * config/s390/constraints.md: Adjust comment.
29837 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29838 s390_decompose_addrstyle_without_index.
29839 * config/s390/predicates.md (shift_count_or_setmem_operand):
29840 Rename to setmem_operand.
29841 * config/s390/s390-protos.h
29842 (s390_decompose_shift_count): Rename to
29843 s390_decompose_addrstyle_without_index.
29844 * config/s390/s390.c (s390_decompose_shift_count)
29845 (s390_mem_constraint, print_shift_count_operand)
29846 (print_operand_address, print_operand): Rename
29847 s390_decompose_shift_count to
29848 s390_decompose_addrstyle_without_index and rename
29849 print_shift_count_operand to print_addrstyle_operand troughout the
29850 file.
29851 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29852 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29853 Rename shift_count_or_setmem_operand to setmem_operand.
29854 * config/s390/vx-builtins.md ("vec_insert<mode>")
29855 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
29856 nonmemory_operand.
29857
29858 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29859
29860 PR target/70168
29861 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
29862 Handle overlapping retval and newval.
29863
29864 2016-03-10 Nick Clifton <nickc@redhat.com>
29865
29866 PR target/7044
29867 * config/aarch64/aarch64.c
29868 (aarch64_override_options_after_change_1): When forcing
29869 flag_omit_frame_pointer to be true, use a special value that can
29870 be detected if this function is called again, thus preventing
29871 flag_omit_leaf_frame_pointer from being forced to be false.
29872
29873 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29874
29875 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
29876 Set x_flag_omit_leaf_frame_pointer when handling
29877 -momit-leaf-frame-pointer.
29878
29879 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29880
29881 PR lto/69589
29882 * cgraph.c (cgraph_node::dump): Dump split_part and
29883 indirect_call_target.
29884 * cgraph.h (cgraph_node): Add indirect_call_target flag.
29885 * ipa.c (has_addr_references_p): Cleanup.
29886 (is_indirect_call_target_p): New.
29887 (walk_polymorphic_call_targets): Do not mark virtuals that may be
29888 called indirectly as local.
29889 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
29890
29891 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29892
29893 PR ipa/69630
29894 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29895 on cxa_pure_virtual.
29896
29897 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29898
29899 PR lto/69589
29900 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
29901
29902 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29903
29904 PR lto/69589
29905 * tree.c (need_assembler_name_p): Only record main variant type names.
29906
29907 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29908
29909 PR target/70113.
29910 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
29911 Always define to 0 or 1.
29912 (TARGET_FIX_ERR_A53_843419): New macro.
29913 * config/aarch64/aarch64-elf-raw.h
29914 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
29915 * config/aarch64/aarch64-linux.h: Likewise.
29916 * config/aarch64/aarch64.c
29917 (aarch64_override_options_after_change_1): Do not default
29918 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
29919 843419 is on.
29920 (aarch64_attributes): Handle fix-cortex-a53-843419.
29921 (aarch64_can_inline_p): Likewise.
29922 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
29923
29924 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
29925 Jakub Jelinek <jakub@redhat.com>
29926
29927 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
29928 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
29929 DECL_COMMONS if flag_unconstrained_commons is set.
29930 * tree-dfa.c (get_ref_base_and_extent): Likewise.
29931 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
29932 (funconstrained-commons): Document.
29933
29934 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
29935
29936 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
29937 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
29938
29939 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
29940
29941 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
29942 has a proper number of elements.
29943
29944 2016-03-10 Alan Modra <amodra@gmail.com>
29945
29946 PR rtl-optimization/69195
29947 PR rtl-optimization/47992
29948 * ira.c (recorded_label_ref): Delete.
29949 (update_equiv_regs): Return void.
29950 (indirect_jump_optimize): New function.
29951 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
29952 before regstat_compute_ri. Don't rebuild_jump_labels here.
29953 Delete update_regstat.
29954
29955 2016-03-10 Richard Biener <rguenther@suse.de>
29956
29957 PR tree-optimization/70128
29958 * tree-ssa-structalias.c (set_uids_in_ptset): Set
29959 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
29960
29961 2016-03-09 Jakub Jelinek <jakub@redhat.com>
29962
29963 PR tree-optimization/70152
29964 * tree-sra.c (replace_removed_params_ssa_names): Copy over
29965 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
29966
29967 PR target/70086
29968 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
29969 instead of gen_sse2_loadlpd.
29970 * config/i386/sse.md (*vec_concatv2df): Rename to...
29971 (vec_concatv2df): ... this.
29972
29973 PR tree-optimization/70127
29974 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
29975
29976 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29977
29978 PR c/68473
29979 PR c++/70105
29980 * diagnostic-show-locus.c (compatible_locations_p): New function.
29981 (layout::layout): Sanitize ranges using compatible_locations_p.
29982
29983 2016-03-09 David Malcolm <dmalcolm@redhat.com>
29984
29985 PR c/68473
29986 PR c++/70105
29987 * diagnostic-show-locus.c (layout_range::layout_range): Replace
29988 location_range param with three const expanded_locations * and a
29989 bool.
29990 (layout::layout): Replace call to
29991 rich_location::lazily_expand_location with get_expanded_location.
29992 Extract the range and perform location expansion here, passing
29993 the results to the layout_range ctor.
29994 * diagnostic.c (source_range::debug): Delete.
29995 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
29996 of rich_location::get_expanded_location.
29997 * gcc-rich-location.c (get_range_for_expr): Delete.
29998 (gcc_rich_location::add_expr): Reimplement to avoid the
29999 rich_location::add_range overload that took a location_range,
30000 passing a location_t instead.
30001
30002 2016-03-09 Richard Biener <rguenther@suse.de>
30003 Jakub Jelinek <jakub@redhat.com>
30004
30005 PR tree-optimization/70138
30006 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30007 Also skip vect_double_reduction_def.
30008
30009 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30010
30011 PR target/70049
30012 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30013 if the operand is "m".
30014
30015 2016-03-09 Nathan Sidwell <nathan@acm.org>
30016
30017 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30018
30019 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30020
30021 * config/i386/i386.c (processor_target_table): Fix cost table
30022 intialization order for znver1.
30023
30024 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30025
30026 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30027 - becuase -> because.
30028 * ipa-reference.c (ignore_module_statics): Likewise.
30029 * cgraph.c (cgraph_node::get_body): Likewise.
30030 * ipa-inline.c (early_inliner): Likewise.
30031 * ipa-devirt.c (types_same_for_odr): Likewise.
30032 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30033 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30034
30035 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30036
30037 * tree-ssa-math-opts.c: Fix typo in comment.
30038
30039 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30040
30041 PR target/70110
30042 * config/i386/i386.c (scalar_chain::make_vector_copies,
30043 scalar_chain::convert_reg): Call end_sequence in between
30044 get_insns and emit_conversion_insns rather than after both
30045 calls.
30046
30047 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30048
30049 PR target/70064
30050 * config/i386/i386.h (machine_function): Add
30051 pc_thunk_call_expanded flag.
30052 (ix86_pc_thunk_call_expanded): New define.
30053 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30054 (*set_got): Rename insn pattern from set_got.
30055 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30056 * config/i386/i386.c (ix86_compute_frame_layout): Use
30057 ix86_pc_thunk_call_expanded to prevent red-zone.
30058
30059 2016-03-07 Martin Jambor <mjambor@suse.cz>
30060
30061 * hsa.h (hsa_get_ctor_statements): Declare.
30062 (hsa_get_dtor_statements): Likewise.
30063 (hsa_get_kernel_dispatch_type): Likewise.
30064 * hsa.c (hsa_get_ctor_statements): New function.
30065 (hsa_get_dtor_statements): Likewise.
30066 (hsa_get_kernel_dispatch_type): Likewise.
30067 * hsa-brig.c (hsa_cdtor_statements): Removed.
30068 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30069 hsa_get_dtor_statements.
30070 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30071 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30072
30073 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30074
30075 * config/arm/arm-cores.def (cortex-r8): New.
30076 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30077 * config/arm/arm-tune.md: Likewise.
30078 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30079
30080 2016-03-07 Martin Sebor <msebor@redhat.com>
30081
30082 PR rtl-optimization/19705
30083 * doc/invoke.texi (Options That Control Optimization): Clarify
30084 -fno-branch-count-reg.
30085
30086 2016-02-26 Richard Biener <rguenther@suse.de>
30087 Jeff Law <law@redhat.com>
30088
30089 PR tree-optimization/69740
30090 * cfghooks.c (remove_edge): Request loop fixups if we delete
30091 an edge that might turn an irreducible loop into a natural
30092 loop.
30093 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30094 Move after definition of loops_state_clear.
30095
30096 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30097
30098 PR rtl-optimization/69052
30099 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30100 to CONST_WIDE_INT.
30101
30102 2016-03-07 Tom de Vries <tom@codesourcery.com>
30103
30104 PR tree-optimization/70116
30105 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30106 is_tm_ending stmts and ubsan/asan internal functions.
30107 (find_duplicate): Use it. Don't test is_tm_ending here.
30108
30109 2016-03-07 Richard Biener <rguenther@suse.de>
30110
30111 PR tree-optimization/70115
30112 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30113 (propagate_constants_for_unrolling): Use replace_uses_by.
30114
30115 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30116
30117 PR middle-end/69916
30118 * omp-low.c (struct oacc_loop): Add ifns.
30119 (new_oacc_loop_raw): Initialize it.
30120 (finish_oacc_loop): Clear mask & flags if no ifns.
30121 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30122 (oacc_loop_xform_loop): Add ifns arg & adjust.
30123 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30124
30125 2016-03-07 Richard Henderson <rth@redhat.com>
30126
30127 PR rtl-opt/70061
30128 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30129 (insert_value_copy_on_edge): Likewise.
30130
30131 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30132
30133 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30134
30135 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30136
30137 PR target/62281
30138 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30139
30140 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30141
30142 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30143
30144 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30145
30146 Fix sseimul type attribute.
30147 * config/i386/znver1.md
30148 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30149 znver1_sseimul_avx256_load) : Fix the type attribute.
30150 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30151 pipe usage and latency.
30152
30153 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30154
30155 PR c++/70084
30156 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30157 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30158 to the right type.
30159
30160 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30161
30162 PR c/69973
30163 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30164
30165 PR rtl-optimization/69941
30166 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30167 the reg share its mode.
30168
30169 2016-03-04 Jeff Law <law@redhat.com>
30170
30171 PR tree-optimization/69196
30172 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30173 If the both SSA_NAMEs are anonymous, then consider them unassociated
30174 and include the PHI in the statement count.
30175
30176 2016-03-05 Tom de Vries <tom@codesourcery.com>
30177
30178 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30179 construct in oacc routine. Check for oacc region in oacc routine.
30180
30181 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30182
30183 PR target/70062
30184 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30185 2016-02-22 changes, instead don't recurse if RECUR is already true.
30186 Don't change *dynamic_check if RECUR. Adjust recursive caller
30187 to pass true to the new argument.
30188 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30189
30190 PR target/70059
30191 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30192 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30193 fixes.
30194 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30195
30196 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30197
30198 PR rtl-optimization/57676
30199 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30200 with flag_checking.
30201
30202 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30203
30204 * tree-vect-patterns.c (search_type_for_mask): Handle
30205 comparison of booleans.
30206
30207 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30208
30209 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30210 Fix @xref usage.
30211
30212 PR debug/69947
30213 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30214 all other ops that have dw_val_class_die_ref operands,
30215 and DW_OP_GNU_entry_value.
30216
30217 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30218
30219 PR rtl-optimization/69904
30220 * config/arm/arm.c (arm_cannot_copy_insn_p):
30221 Return true for load-exclusive instructions.
30222
30223 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30224
30225 PR target/70021
30226 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30227 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30228 the pattern no matter if it is used just by non-pattern, pattern
30229 or mix thereof.
30230 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30231 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30232 oprnd1 def_stmt is in pattern, don't look through it.
30233
30234 2016-03-03 Marek Polacek <polacek@redhat.com>
30235
30236 PR middle-end/70050
30237 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30238
30239 2016-03-03 Martin Liska <mliska@suse.cz>
30240
30241 PR tree-optimization/70043
30242 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30243 previous statement if we see a debug statement.
30244
30245 2016-03-03 Richard Biener <rguenther@suse.de>
30246
30247 PR tree-optimization/55936
30248 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30249 parameter and guard unsafe equivalence use.
30250 (vrp_evaluate_conditional_warnv_with_ops): Always use
30251 safe equivalences but not via the quadratic compare_names
30252 helper.
30253
30254 2016-03-03 Michael Collison <michael.collison@linaro.org>
30255
30256 PR target/70014
30257 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30258 for operand 1 to s_register_operand. Change predicate for operand
30259 2 to arm_not_immediate_operand.
30260
30261 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30262
30263 * doc/tm.texi: Regenerated.
30264
30265 2016-03-02 Richard Henderson <rth@redhat.com>
30266
30267 PR rtl-opt/67145
30268 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30269 simplification when all args are positive non-fixed registers.
30270
30271 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30272
30273 * target.def (lra_p): Specify that new ports should use LRA.
30274
30275 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30276
30277 PR libgomp/69555
30278 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30279 gimplify_type_sizes the type they refer to.
30280 (omp_notice_variable): Handle reference vars to VLAs.
30281 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30282 reference to VLA decls in the second pass instead of first pass.
30283
30284 2016-03-02 Tom de Vries <tom@codesourcery.com>
30285
30286 PR tree-optimization/68659
30287 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30288 new_expr == NULL_TREE.
30289 (get_new_name): Handle ADDR_EXPR.
30290
30291 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30292
30293 PR rtl-optimization/69052
30294 * loop-invariant.c (canonicalize_address): New function.
30295 (inv_can_prop_to_addr_use): Check validity of address expression
30296 which is canonicalized by above function.
30297
30298 2016-03-02 Alan Modra <amodra@gmail.com>
30299
30300 PR ipa/69990
30301 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30302 larger alignment.
30303
30304 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30305
30306 PR target/70028
30307 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30308 (*movhi_internal): Put mask moves from and to memory separately
30309 from moves from/to GPRs.
30310
30311 2016-03-02 Richard Biener <rguenther@suse.de>
30312
30313 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30314 GENERIC expressions in GIMPLE.
30315
30316 2016-03-02 Richard Biener <rguenther@suse.de>
30317
30318 * config/i386/i386.c (type_natural_mode): Fix typo.
30319
30320 2016-03-02 Nick Clifton <nickc@redhat.com>
30321
30322 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30323
30324 2016-03-02 Richard Biener <rguenther@suse.de>
30325 Uros Bizjak <ubizjak@gmail.com>
30326
30327 PR target/67278
30328 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30329
30330 2016-03-02 Richard Biener <rguenther@suse.de>
30331
30332 PR middle-end/67278
30333 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30334
30335 2016-03-02 Marek Polacek <polacek@redhat.com>
30336
30337 PR c/67854
30338 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30339 "is promoted to" warning.
30340
30341 2016-03-01 DJ Delorie <dj@redhat.com>
30342
30343 * config.gcc: Deprecate mep-*.
30344
30345 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30346
30347 PR middle-end/70025
30348 * lra-constraints.c (regno_val_use_in): New.
30349 (match_reload): Use it instead of regno_use_in.
30350
30351 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30352
30353 PR rtl-optimization/70007
30354 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30355 references present in REG_EQUAL notes attached to non-SET patterns.
30356
30357 2016-03-01 Jeff Law <law@redhat.com>
30358
30359 PR tree-optimization/69196
30360 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30361 Appropriately clamp the number of statements to copy when the
30362 thread path does not traverse a loop backedge.
30363
30364 PR tree-optimization/69196
30365 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30366 Do count some PHIs in the thread path against the insn count. Decrease
30367 final statement count by one as the control statement in the last
30368 block will get removed. Remove special cased code for handling PHIs
30369 in the last block.
30370
30371 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30372
30373 PR target/70027
30374 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30375 asm dialect alternatives to explicit GOTPCREL calls.
30376
30377 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30378
30379 PR ada/70017
30380 * ira.c (do_reload): Issue warning for generic stack checking here...
30381 * reload1.c (reload): ...instead of here and streamline it.
30382
30383 2016-03-01 Nick Clifton <nickc@redhat.com>
30384
30385 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30386
30387 2016-03-01 Richard Biener <rguenther@suse.de>
30388
30389 PR tree-optimization/69983
30390 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30391 types and fall back to operand_equal_p.
30392
30393 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30394
30395 Revert
30396 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30397
30398 * config/s390/constraints.md ("jm8"): New constraint.
30399 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30400 predicate.
30401 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30402 into ...
30403 ("*setmem_long<setmem_and>"): New pattern.
30404 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30405 into ...
30406 ("*setmem_long_31z<setmem_and>"): New pattern.
30407 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30408 New substitution rules with the required attributes.
30409
30410
30411 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30412
30413 Revert
30414 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30415
30416 * gensupport.c (process_substs_on_one_elem): Split loop to
30417 complete mark_operands_used_in_match_dup on all expressions in the
30418 vector first.
30419 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30420 and remove function.
30421
30422 2016-03-01 Richard Biener <rguenther@suse.de>
30423
30424 PR middle-end/70022
30425 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30426 vector BIT_FIELD_REF extract.
30427
30428 2016-03-01 Richard Biener <rguenther@suse.de>
30429
30430 PR tree-optimization/69994
30431 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30432
30433 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30434
30435 PR tree-optimization/69956
30436 * tree-vect-stmts.c (supportable_widening_operation): Support
30437 multi-step conversion of boolean vectors.
30438 (supportable_narrowing_operation): Likewise.
30439
30440 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30441
30442 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30443 anymore.
30444
30445 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30446
30447 * config/s390/subst.md (DSI_VI): New mode iterator.
30448 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30449 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30450 the insn definition.
30451 ("*vec_set<mode>"): Change predicate and add alternative to
30452 support only either register or const_int operands as element
30453 selector.
30454 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30455 operands.
30456 ("vec_extract<mode>"): New expander.
30457 ("*vec_extract<mode>"): New insn definition supporting reg and
30458 const_int element selectors.
30459 ("*vec_extract<mode>_plus"): New insn definition supporting
30460 reg+const_int element selectors.
30461 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30462 following expander+insn definition.
30463 ("<vec_shifts_name><mode>3"): New expander.
30464 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30465
30466 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30467
30468 * config/s390/s390.md ("*tabort_1"): Change predicate to
30469 nonmemory_operand. Add a second alternative to cover
30470 register as well as const int operands.
30471 ("*tabort_1_plus"): New pattern definition.
30472
30473 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30474
30475 * config/s390/s390.md ("*ashrdi3_cc_31")
30476 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30477 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30478 Merge insn definitions into ...
30479 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30480 New pattern definition.
30481 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30482 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30483 ("*ashr<mode>3_and"): Merge insn definitions into ...
30484 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30485 New pattern definition.
30486 * config/s390/subst.md ("addr_style_op_cc_subst")
30487 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30488 substitutions patterns plus attributes.
30489 Add ashiftrt to SUBST iterator.
30490
30491 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30492
30493 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30494 op2 to nonmemory_operand.
30495 ("*<shift>di3_31", "*<shift>di3_31_and"):
30496 Merge into single pattern definition ...
30497 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30498 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30499 pattern definition ...
30500 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30501 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30502 iterator.
30503
30504 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30505
30506 * config/s390/predicates.md (const_int_6bitset_operand): New
30507 predicate.
30508 * config/s390/s390.md: Include subst.md.
30509 ("rotl<mode>3"): New expander.
30510 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30511 ...
30512 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30513 * config/s390/subst.md: New file.
30514
30515 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30516
30517 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30518 Remove RRR type. It doesn't really exist.
30519 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30520 attributes.
30521 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30522 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30523 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30524 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30525 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30526 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30527 `enabled' attribute.
30528
30529 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30530
30531 * gensupport.c (process_substs_on_one_elem): Split loop to
30532 complete mark_operands_used_in_match_dup on all expressions in the
30533 vector first.
30534 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30535 and remove function.
30536
30537 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30538
30539 PR target/69706
30540 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30541 (CEIL_NWORDS): ...this. Use CEIL macro.
30542 (compute_fp_layout): Adjust to above renaming.
30543 (function_arg_union_value): Likewise.
30544 (sparc_arg_partial_bytes): Likewise.
30545 (sparc_function_arg_advance): Likewise.
30546
30547 2016-02-29 Jeff Law <law@redhat.com>
30548
30549 PR tree-optimization/70005
30550 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30551 where an object with a boolean range is compared against a value
30552 outside [0..1].
30553
30554 PR tree-optimization/69999
30555 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30556 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30557 loop cleanups.
30558
30559 2016-02-29 Richard Biener <rguenther@suse.de>
30560
30561 PR tree-optimization/69994
30562 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30563 (get_unary_op): Look through nop conversions.
30564 (ops_equal_values_p): New function, look for equality diregarding
30565 nop conversions.
30566 (eliminate_plus_minus_pair): Use ops_equal_values_p
30567 (repropagate_negates): Do not use get_unary_op here.
30568
30569 2016-02-29 Martin Liska <mliska@suse.cz>
30570
30571 * system.h: Poison ENABLE_CHECKING macro.
30572
30573 2016-02-29 Martin Liska <mliska@suse.cz>
30574
30575 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30576 is presented in dump flags.
30577 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30578 (hsa_regalloc): Likewise.
30579
30580 2016-02-19 Richard Biener <rguenther@suse.de>
30581
30582 PR tree-optimization/69980
30583 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30584 permutation of those we need to keep.
30585
30586 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30587
30588 PR target/69706
30589 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30590 (NWORDS_UP): ...this
30591 (init_cumulative_args): Minor tweaks.
30592 (sparc_promote_function_mode): Likewise.
30593 (scan_record_type): Delete.
30594 (traverse_record_type): New function template.
30595 (classify_data_t): New structure type.
30596 (classify_registers): New inline function.
30597 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30598 exhausted. Instantiate traverse_record_type on classify_registers and
30599 deal with the case of a structure passed in slot #15 with no FP field
30600 in the first word.
30601 (assign_data_t): New structure type.
30602 (compute_int_layout): New static function.
30603 (compute_fp_layout): Likewise.
30604 (count_registers): New inline function.
30605 (assign_int_registers): New static function.
30606 (assign_fp_registers): Likewise.
30607 (assign_registers): New inline function.
30608 (function_arg_record_value_1): Delete.
30609 (function_arg_record_value_2): Likewise.
30610 (function_arg_record_value_3): Likewise.
30611 (function_arg_record_value): Adjust to above changes. Instantiate
30612 traverse_record_type on count_registers to first count the number of
30613 registers to be used and then on assign_registers to assign them.
30614 (function_arg_union_value): Adjust to above renaming.
30615 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30616 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30617 case of a structure passed in slot #15
30618 (sparc_function_arg_advance): Likewise.
30619 (function_arg_padding): Minor tweak.
30620
30621 2016-02-29 Richard Biener <rguenther@suse.de>
30622
30623 PR tree-optimization/69720
30624 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30625 the adjustment_def path for possibly vectorized defs.
30626 (vect_create_epilog_for_reduction): Handle vectorized initial
30627 defs properly.
30628
30629 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30630
30631 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30632
30633 2016-02-27 Jeff Law <law@redhat.com>
30634
30635 Revert
30636 2016-02-26 Richard Biener <rguenther@suse.de>
30637 Jeff Law <law@redhat.com>
30638
30639 PR tree-optimization/69740
30640 * cfghooks.c (remove_edge): Request loop fixups if we delete
30641 an edge that might turn an irreducible loop into a natural
30642 loop.
30643
30644 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30645
30646 PR rtl-optimization/69896
30647 * tree-vect-generic.c (get_compute_type): Avoid single element
30648 vector types.
30649
30650 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30651
30652 Rename the AArch64 tuning option and related functions to enable the
30653 Newton series for the reciprocal square root to reflect its
30654 approximative characteristic.
30655
30656 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30657 function to "aarch64_emit_approx_rsqrt".
30658 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30659 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30660 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30661 (xgene1_tunings): Likewise.
30662 (use_rsqrt_p): Likewise.
30663 (aarch64_emit_swrsqrt): Use new function name.
30664 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30665 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30666 text explaining this option.
30667 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30668
30669 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30670
30671 PR target/69969
30672 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30673 complain about -mallow-movmisalign without -mvsx if
30674 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30675
30676 2016-02-26 Joel Sherrill <joel@rtems.org>
30677
30678 * config.gcc: Add x86_64-*-rtems*.
30679 * config/i386/rtems-64.h: New file.
30680
30681 2016-02-26 Joel Sherrill <joel@rtems.org>
30682
30683 * config.gcc: Add aarch64-*-rtems*.
30684 * config/aarch64/rtems.h: New file.
30685
30686 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30687
30688 PR target/69946
30689 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30690 shift amount using %h. Add comment.
30691
30692 2016-02-26 Richard Biener <rguenther@suse.de>
30693 Jeff Law <law@redhat.com>
30694
30695 PR tree-optimization/69740
30696 * cfghooks.c (remove_edge): Request loop fixups if we delete
30697 an edge that might turn an irreducible loop into a natural
30698 loop.
30699
30700 2016-02-26 Martin Jambor <mjambor@suse.cz>
30701
30702 PR middle-end/69920
30703 * tree-sra.c (sra_modify_assign): Do not remove loads of
30704 uninitialized aggregates to SSA_NAMEs.
30705
30706 2016-02-26 Richard Henderson <rth@redhat.com>
30707
30708 PR target/69709
30709 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30710 pseudo in case the target rtx matches the source of the left
30711 shift.
30712
30713 2016-02-26 Martin Jambor <mjambor@suse.cz>
30714
30715 PR hsa/69568
30716 * hsa.h (hsa_type_packed_p): Declare.
30717 * hsa.c (hsa_type_packed_p): New function.
30718 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30719 loads.
30720 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30721 * hsa-brig.c (emit_basic_insn): Likewise.
30722
30723 2016-02-26 Martin Jambor <mjambor@suse.cz>
30724
30725 pr hsa/69674
30726 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30727 pointers.
30728 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30729
30730 2016-02-26 Martin Jambor <mjambor@suse.cz>
30731
30732 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30733 hsa_op_with_type operands.
30734 (hsa_unsigned_type_for_type): Declare.
30735 * hsa.c (hsa_unsigned_type_for_type): New function.
30736 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30737 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30738 the finalizer. Do not emit extra move.
30739
30740 2016-02-26 Martin Jambor <mjambor@suse.cz>
30741
30742 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30743 atomic operations in private segment.
30744
30745 2016-02-26 Martin Jambor <mjambor@suse.cz>
30746
30747 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30748 statements to wi->info. Also disallow omp simd constructs.
30749 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30750 for not gridifying. Dump special string for omp_for.
30751
30752 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30753
30754 PR target/69245
30755 * config/aarch64/aarch64.c (aarch64_set_current_function):
30756 Save/restore target globals when switching to
30757 target_option_default_node.
30758
30759 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30760
30761 PR target/69613
30762 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30763 Return 0 if !SHIFT_COUNT_TRUNCATED.
30764
30765 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30766 Eric Botcazou <ebotcazou@adacore.com>
30767
30768 PR rtl-optimization/69891
30769 * dse.c (scan_insn): If we can't figure out memset arguments
30770 or they are non-constant, call clear_rhs_from_active_local_stores.
30771
30772 2016-02-26 Martin Liska <mliska@suse.cz>
30773
30774 * doc/extend.texi: Mention clog10, clog10f an clog10l
30775 in Builtins section.
30776
30777 2016-02-26 Martin Liska <mliska@suse.cz>
30778
30779 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30780 CHECKING_P.
30781 (resolve_args_picking_1): Likewise.
30782 * dwarf2out.h (struct GTY): Likewise.
30783
30784 2016-02-26 Martin Liska <mliska@suse.cz>
30785
30786 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30787 with flag_checking.
30788 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30789
30790 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30791 Martin Liska <mliska@suse.cz>
30792
30793 * doc/install.texi: Mention --enable-valgrind-annotations.
30794
30795 2016-02-26 Richard Biener <rguenther@suse.de>
30796
30797 PR tree-optimization/69551
30798 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30799 looking through aliases adjust DECL_PT_UID to refer to the
30800 ultimate alias target.
30801
30802 2016-02-25 Martin Liska <mliska@suse.cz>
30803
30804 PR middle-end/69919
30805 * alloc-pool.c (after_memory_report): New variable.
30806 * alloc-pool.h (base_pool_allocator ::release): Do not use
30807 the infrastructure if after_memory_report.
30808 * toplev.c (toplev::main): Mark after memory report.
30809
30810 2016-02-25 Richard Biener <rguenther@suse.de>
30811
30812 PR tree-optimization/48795
30813 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30814
30815 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30816
30817 PR driver/68463
30818 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30819 offloading is enabled and -fopenacc or -fopenmp is specified.
30820 (CRTOFFLOADEND): Likewise.
30821 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30822 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30823 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30824 (offload_objects_file_name): New static var.
30825 (tool_cleanup): Remove offload_objects_file_name file.
30826 (find_offloadbeginend): Replace with ...
30827 (find_crtoffloadtable): ... this.
30828 (run_gcc): Remove offload_argc and offload_argv.
30829 Get offload_objects_file_name from -foffload-objects=... option.
30830 Read names of object files with offload from this file, pass them to
30831 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30832 don't pass offloadbegin and offloadend to the linker. Don't pass
30833 offload non-LTO files to the linker, because now they're not claimed.
30834
30835 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30836
30837 PR ipa/69630
30838 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30839 on builtin_unreachable.
30840
30841 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30842
30843 PR rtl-optimization/69896
30844 * regcprop.c: Include cfgrtl.h.
30845 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30846 than remembered mode, either delete it (if noop_move_p), or
30847 treat like copy_p but not noop_p instruction.
30848
30849 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30850
30851 PR debug/69705
30852 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30853 - allow NULL decl for Fortran DW_TAG_common_block variables.
30854
30855 2016-02-24 Jason Merrill <jason@redhat.com>
30856
30857 * common.opt (flifetime-dse): Add -flifetime-dse=1.
30858
30859 2016-02-24 Richard Biener <rguenther@suse.de>
30860 Jakub Jelinek <jakub@redhat.com>
30861
30862 PR middle-end/69760
30863 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
30864 conditionally executed ops to well-defined overflow behavior.
30865
30866 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30867
30868 PR middle-end/69915
30869 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
30870 elements.
30871
30872 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30873
30874 PR rtl-optimization/69886
30875 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
30876 argument. Use it when checking validity of set instructions.
30877 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
30878 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
30879 callsite.
30880 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
30881 * store-motion.c (find_moveable_store): Update
30882 can_assign_to_reg_without_clobbers_p callsite.
30883
30884 2016-02-24 Richard Biener <rguenther@suse.de>
30885
30886 PR middle-end/68963
30887 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
30888 bogus check.
30889 (record_nonwrapping_iv): Do not fall back to the low/high bound
30890 for non-constant IV bases if the stmt is not always executed.
30891
30892 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30893
30894 * config/arm/arm-cores.def (cortex-a32): New entry.
30895 * config/arm/arm-tables.opt: Regenerate.
30896 * config/arm/arm-tune.md: Regenerate.
30897 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
30898 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
30899 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
30900 for -mcpu and -mtune.
30901
30902 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30903
30904 PR target/69875
30905 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
30906 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
30907 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
30908 (atomic_loaddi_1): Delete.
30909 (atomic_loaddi): Rewrite expander using the above changes.
30910
30911 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30912
30913 PR c/69918
30914 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
30915 2 to 3.
30916
30917 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30918 Richard Biener <rguenth@suse.de>
30919
30920 PR middle-end/69909
30921 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
30922 set_mem_attributes if tem is SSA_NAME which got expanded
30923 as a MEM.
30924
30925 2016-02-24 Richard Biener <rguenther@suse.de>
30926
30927 PR tree-optimization/69907
30928 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
30929 end of permutations for BB vectorization.
30930
30931 2016-02-24 Christian Bruel <christian.bruel@st.com>
30932
30933 * config/arm/arm-c.c (arm_option_override): Initialize
30934 target_option_current_node.
30935 * config/arm/arm.c (arm_pragma_target_parse): Replace
30936 build_target_option_node call by target_option_current_node.
30937 Set target_option_current_node.
30938 Fix comments.
30939
30940 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
30941
30942 PR target/69810
30943 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
30944 define_insn_and_split to define_insn.
30945 (zero_extendqi<mode>2_dot2): Same.
30946 (extendqi<mode>2_dot): Same.
30947 (extendqi<mode>2_dot2): Same.
30948
30949 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30950
30951 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
30952 and add bypass for AES{D,E} and AESMC pairs.
30953 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
30954 and AESMC pairs.
30955
30956 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
30957
30958 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
30959 series for reciprocal square root in Exynos M1.
30960
30961 2016-02-23 Martin Sebor <msebor@redhat.com>
30962
30963 PR c/69759
30964 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
30965 __builtin_alloca_with_align.
30966
30967 2016-02-23 Richard Henderson <rth@redhat.com>
30968
30969 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
30970 (ix86_register_pragmas): Remove __seg_tls.
30971 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
30972 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
30973 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
30974 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
30975 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
30976 * doc/extend.texi (__seg_tls): Remove item.
30977
30978 2016-02-23 Richard Biener <rguenther@suse.de>
30979
30980 * alloc-pool.h (struct allocation_object): Make id member
30981 conditional on CHECKING_P again.
30982 (get_instance): Adjust.
30983 (base_pool_allocator): Likewise.
30984
30985 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
30986
30987 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
30988 (parallelize_loops): In OpenACC kernels mode, set n_threads to
30989 zero.
30990 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
30991 flag_openacc.
30992 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
30993
30994 2016-02-23 Richard Biener <rguenther@suse.de>
30995
30996 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
30997 * bitmap.h (struct bitmap_usage): Likewise.
30998 (bitmap_move): Declare.
30999 * bitmap.c (register_overhead): Take size_t argument.
31000 (bitmap_move): New function.
31001 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31002 to properly account overhead.
31003 * tree.c (free_node): Use tree_size.
31004
31005 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31006
31007 PR c++/69902
31008 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31009 when inverting comparison.
31010
31011 PR c/69900
31012 * common.opt (Wunreachable-code): Add Warning flag.
31013
31014 2016-02-23 Mark Wielaard <mjw@redhat.com>
31015 Jakub Jelinek <jakub@redhat.com>
31016
31017 PR c/69911
31018 * cgraphunit.c (check_global_declaration): Check main_input_filename
31019 and DECL_SOURCE_FILE are not NULL.
31020
31021 2016-02-23 Martin Jambor <mjambor@suse.cz>
31022
31023 PR tree-optimization/69666
31024 * tree-sra.c (sra_modify_assign): Do not attempt to create
31025 default_def replacements for unscalarizable regions.
31026
31027 2016-02-20 Mark Wielaard <mjw@redhat.com>
31028
31029 PR c/28901
31030 * cgraphunit.c (check_global_declaration): Check level of
31031 warn_unused_const_variable and main_input_filename.
31032 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31033 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31034 (-Wunused-const-variable): Explain levels 1 and 2.
31035
31036 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31037
31038 PR target/69888
31039 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31040 identical arguments. Formatting and spelling fixes.
31041
31042 PR target/69885
31043 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31044 be specified.
31045
31046 PR target/69894
31047 PR target/69895
31048 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31049 and m68k-devices.def.
31050 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31051 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31052
31053 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31054
31055 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31056 and HImode registers.
31057
31058 2016-02-22 Richard Biener <rguenther@suse.de>
31059
31060 PR tree-optimization/69882
31061 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31062 preserve permutations present because of gaps.
31063 (vect_supported_load_permutation_p): Always continue checking
31064 permutations after vect_attempt_slp_rearrange_stmts.
31065
31066 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31067
31068 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31069 min_profitable_estimate, rather than min_profitable_iters.
31070
31071 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31072
31073 PR target/69885
31074 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31075 SImode for last match_operand.
31076
31077 2016-02-22 Martin Liska <mliska@suse.cz>
31078
31079 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31080 return bitsize - 1 as the return value.
31081
31082 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31083
31084 PR target/69806
31085 PR target/54089
31086 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31087 Handle negative shift counts.
31088 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31089 force_reg on the shift constant.
31090 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31091 (lshrsi3_d): Handle negative shift counts.
31092
31093 2016-02-22 Richard Biener <rguenther@suse.de>
31094 Tom de Vries <tom@codesourcery.com>
31095
31096 * graph.c: Include dumpfile.h.
31097 (print_graph_cfg): Split into three overloads.
31098 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31099
31100 2016-02-22 Tom de Vries <tom@codesourcery.com>
31101
31102 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31103 dump-fn.
31104
31105 2016-02-22 Richard Biener <rguenther@suse.de>
31106
31107 PR ipa/37448
31108 * ipa-inline-transform.c (inline_call): When not updating
31109 overall summaries adjust self size by the growth estimate.
31110 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31111 hash-set, do not update overall summaries here. Renamed from ...
31112 (inline_to_all_callers): ... this which is now wrapping the
31113 above and performing delayed overall summary update.
31114 (early_inline_small_functions): Delay updating of the overall
31115 summary.
31116
31117 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31118
31119 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31120 variable.
31121
31122 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31123
31124 PR driver/69805
31125 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31126 :%* in %:gt() argument.
31127 (greater_than_spec_func): Adjust for expecting only numbers,
31128 if there are more than two numbers, compare the last two.
31129
31130 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31131
31132 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31133 -Wnarrowing with -std.
31134
31135 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31136
31137 PR c++/69851
31138 * expr.c (store_field): Don't use bit-field path if exp is
31139 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31140 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31141 and the assignment can be performed by bitwise copy. Formatting
31142 fix.
31143
31144 PR middle-end/69838
31145 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31146 call copy_reg_eh_region_note_forward on before and/or after sequences
31147 and remove note from insn if it no longer can throw.
31148
31149 PR target/69820
31150 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31151 if TARGET_AVX512BW.
31152
31153 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31154
31155 * config/s390/vector.md: Add missing commutative operand markers
31156 to the patterns which qualify for one.
31157 * config/s390/vx-builtins.md: Likewise.
31158
31159 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31160
31161 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31162 types to mode iterators.
31163 (vec_double): ... and mode attribute.
31164 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31165
31166 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31167
31168 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31169 Change the predicate of op2 from nonimmediate to general and let
31170 reload fix it if necessary.
31171
31172 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31173
31174 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31175
31176 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31177
31178 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31179 mode.
31180
31181 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31182
31183 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31184 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31185 * config/s390/s390.md ("movstr<P:mode>"): Call
31186 s390_expand_vec_movstr.
31187
31188 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31189
31190 * config/s390/s390.md: Add missing output modifier for operand 1
31191 to print it as address properly.
31192
31193 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31194
31195 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31196 * config/s390/2964.md: New file.
31197 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31198 of insn grouping attributes depending on the CPU level.
31199 (s390_get_unit_mask): New function.
31200 (s390_sched_score): Remove the OOO from the scheduling macros.
31201 Add loop to calculate a score for the instruction mix.
31202 (s390_sched_reorder): Likewise plus improve debug output.
31203 (s390_sched_variable_issue): Rename macros as above. Calculate
31204 the unit distances after actually scheduling an insn. Improve
31205 debug output.
31206 (s390_sched_init): Clear last_scheduled_unit_distance array.
31207 * config/s390/s390.md: Include 2964.md.
31208
31209 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31210
31211 PR target/69671
31212 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31213 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31214 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31215 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31216 *avx512f_<code>v8div16qi2_mask_1): New insns.
31217
31218 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31219
31220 PR target/68404
31221 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31222 2016-02-09 change.
31223
31224 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31225 earlyclobber from target. Use wF constraint for fused memory
31226 address.
31227 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31228
31229 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31230 Martin Liska <mliska@suse.cz>
31231
31232 PR sanitizer/69863
31233 * cfgexpand.c (asan_sanitize_stack_p): New function.
31234 (partition_stack_vars): Use the function.
31235 (expand_stack_vars): Likewise.
31236 (defer_stack_allocation): Likewise.
31237 (expand_used_vars): Likewise.
31238
31239 2016-02-18 Richard Biener <rguenther@suse.de>
31240
31241 PR middle-end/69553
31242 * fold-const.c (operand_equal_p): Properly compare offsets for
31243 IMAGPART_EXPR and ARRAY_REF.
31244
31245 2016-02-18 Nick Clifton <nickc@redhat.com>
31246
31247 PR target/62254
31248 PR target/69610
31249 * config/arm/arm.c (arm_option_override_internal): Disable
31250 interworking if the target does not support thumb instructions.
31251 (arm_reload_in_hi): Handle the case where a register to register
31252 move needs reloading because there is no simple pattern to handle
31253 it.
31254 (arm_reload_out_hi): Likewise.
31255
31256 2016-02-18 Richard Biener <rguenther@suse.de>
31257
31258 PR middle-end/69854
31259 * match.pd: Don't use fold_binary or fold_unary for folding
31260 constants.
31261
31262 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31263
31264 PR c++/69850
31265 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31266 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31267 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31268 warn on gimple_no_warning_p statements.
31269
31270 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31271
31272 * doc/extend.texi (C++ Attributes): Correct description of
31273 warn_unused type attribute.
31274
31275 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31276
31277 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31278 correct instruction.
31279
31280 2016-02-17 Richard Biener <rguenther@suse.de>
31281
31282 PR rtl-optimization/69609
31283 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31284 (find_traces_1_round): When ending a trace update cached priority
31285 of successors.
31286 (bb_to_key): Use cached priority when available.
31287 (copy_bb): Initialize cached priority.
31288 (reorder_basic_blocks_software_trace_cache): Likewise.
31289
31290 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31291
31292 PR target/69161
31293 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31294 New predicate.
31295 (aarch64_comparison_operator): Break overly long line into two.
31296 (aarch64_comparison_operation): Likewise.
31297 * config/aarch64/aarch64.md (cstorecc4): Use
31298 aarch64_comparison_operator_mode instead of
31299 aarch64_comparison_operator.
31300 (cstore<mode>4): Likewise.
31301 (aarch64_cstore<mode>): Likewise.
31302 (*cstoresi_insn_uxtw): Likewise.
31303 (cstore<mode>_neg): Likewise.
31304 (*cstoresi_neg_uxtw): Likewise.
31305
31306 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31307
31308 PR target/69161
31309 * config/arm/predicates.md (arm_comparison_operator_mode):
31310 New predicate.
31311 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31312 instead of arm_comparison_operator.
31313 (*mov_negscc): Likewise.
31314 (*mov_notscc): Likewise.
31315 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31316 (*thumb2_mov_negscc): Likewise.
31317 (*thumb2_mov_negscc_strict_it): Likewise.
31318 (*thumb2_mov_notscc): Likewise.
31319 (*thumb2_mov_notscc_strict_it): Likewise.
31320
31321 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31322
31323 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31324 Add missing return.
31325
31326 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31327
31328 * config/visium/visium.c (machine_libfunc_index): New enum.
31329 (machine_libfuncs): New structure.
31330 (visium_libfuncs): New static variable.
31331 (TARGET_INIT_LIBFUNCS): Define to...
31332 (visium_init_libfuncs): ...this. New function.
31333 (expand_block_move_4): Use the appropriate libfunc.
31334 (expand_block_move_2): Likewise.
31335 (expand_block_move_1): Likewise.
31336 (expand_block_set_4): Likewise.
31337 (expand_block_set_2): Likewise.
31338 (expand_block_set_1): Likewise.
31339 (visium_trampoline_init): Likewise.
31340
31341 2016-02-17 Nick Clifton <nickc@redhat.com>
31342
31343 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31344 TI's devices.csv file as of March 2016.
31345
31346 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31347
31348 PR Target/48344
31349 * opts-global.c (handle_common_deferred_options): Introduce and
31350 initialize two global variables to remember command-line options
31351 specifying a stack-limiting register.
31352 * opts.h: Add extern declarations of the two new global variables.
31353 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31354 variable based on the values of the two new global variables.
31355
31356 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31357
31358 PR c/69835
31359 * common.opt (Wnonnull-compare): New warning.
31360 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31361 of arguments against NULL.
31362 (-Wnonnull-compare): Document.
31363 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31364 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31365 * passes.def (pass_warn_nonnull_compare): Add.
31366 * gimple-ssa-nonnull-compare.c: New file.
31367
31368 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31369
31370 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31371 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31372
31373 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31374
31375 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31376 reciprocal sqrt for -mlow-precision-recip-sqrt.
31377
31378 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31379 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31380
31381 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31382 always use lane loads to construct non-constant vectors.
31383
31384 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31385
31386 * config/aarch64/aarch64.md
31387 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31388 constraints for operand 3.
31389 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31390
31391 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31392 Richard Biener <rguenther@suse.de>
31393
31394 PR tree-optimization/69820
31395 * tree-vect-patterns.c (type_conversion_p): Return false if
31396 *orig_type is unsigned single precision or boolean.
31397 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31398 Formatting fix.
31399
31400 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31401
31402 PR rtl-optimization/69764
31403 PR rtl-optimization/69771
31404 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31405 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31406
31407 2016-02-16 Richard Biener <rguenther@suse.de>
31408
31409 PR tree-optimization/69776
31410 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31411 sets from caller.
31412 (indirect_refs_may_alias_p): Likewise.
31413 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31414 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31415 according to tbaa_p.
31416 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31417 (optimize_stmt): For redundant store discovery do not allow tbaa.
31418
31419 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31420
31421 PR tree-optimization/69714
31422 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31423 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31424
31425 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31426
31427 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31428 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31429 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31430 * config/arc/arc.c (arc_init): Check FPU options.
31431 (get_arc_condition_code): Handle new CC_FPU* modes.
31432 (arc_select_cc_mode): Likewise.
31433 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31434 register pair only. Allow access for ARCv2 accumulator.
31435 (gen_compare_reg): Whenever we have FPU support use FPU compare
31436 instructions.
31437 (arc_reorg): Don't generate brcc insns when FPU compare
31438 instructions are involved.
31439 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31440 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31441 floating point emulation.
31442 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31443 (REVERSE_CONDITION): Add new CC_FPU* modes.
31444 (TARGET_FP_SP_BASE): Define.
31445 (TARGET_FP_DP_BASE): Likewise.
31446 (TARGET_FP_SP_FUSED): Likewise.
31447 (TARGET_FP_DP_FUSED): Likewise.
31448 (TARGET_FP_SP_CONV): Likewise.
31449 (TARGET_FP_DP_CONV): Likewise.
31450 (TARGET_FP_SP_SQRT): Likewise.
31451 (TARGET_FP_DP_SQRT): Likewise.
31452 (TARGET_FP_DP_AX): Likewise.
31453 * config/arc/arc.md (ARCV2_ACC): New constant.
31454 (type): New fpu type attribute.
31455 (SDF): Conditional iterator.
31456 (cstore<mode>, cbranch<mode>): Change expand condition.
31457 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31458 handles FPU/FPX cases as well.
31459 * config/arc/arc.opt (mfpu): New option.
31460 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31461 Renamed.
31462 (adddf3, muldf3, subdf3): Removed.
31463 * config/arc/predicates.md (proper_comparison_operator): Recognize
31464 CC_FPU* modes.
31465 * config/arc/fpu.md: New file.
31466 * doc/invoke.texi (ARC Options): Document mfpu option.
31467
31468 2016-02-16 Richard Biener <rguenther@suse.de>
31469
31470 PR rtl-optimization/69291
31471 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31472 noce_operand_ok check.
31473
31474 2016-02-16 Tom de Vries <tom@codesourcery.com>
31475
31476 PR lto/67709
31477 * omp-low.c (simd_clone_create): Remove call to
31478 symtab->call_cgraph_insertion_hooks.
31479
31480 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31481
31482 PR tree-optimization/69802
31483 * tree-ssa-reassoc.c (update_range_test): If op is
31484 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31485 op == 1 test of precision 1 integral op, otherwise handle
31486 that case as op itself. Fix up formatting.
31487 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31488 up formatting.
31489
31490 2016-02-16 Richard Biener <rguenther@suse.de>
31491
31492 PR tree-optimization/69586
31493 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31494 types for conversion sources.
31495
31496 2016-02-16 Richard Biener <rguenther@suse.de>
31497
31498 PR middle-end/69801
31499 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31500 mask OEP_ADDRESS_OF.
31501
31502 2016-02-16 Alan Modra <amodra@gmail.com>
31503
31504 PR target/68973
31505 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31506 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31507 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31508 (p8_mtvsrwz): New.
31509 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31510 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31511 (p8_fmrgow_<mode>): Likewise.
31512 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31513 changes.
31514 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31515 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31516 to use movdi_internal64. Remove op0_di.
31517 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31518
31519 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31520
31521 Add support for the FCCMP insn types
31522
31523 * config/aarch64/aarch64.md (fccmp): Change insn type.
31524 (fccmpe): Likewise.
31525 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31526 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31527 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31528 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31529 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31530 * config/arm/types.md (fccmps): Add new insn type.
31531 (fccmpd): Likewise.
31532
31533 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31534
31535 * alias.c (get_alias_set): Fix a typo in comment.
31536
31537 2016-02-15 Richard Biener <rguenther@suse.de>
31538
31539 PR tree-optimization/69595
31540 * match.pd: Complete range test simplification to true.
31541
31542 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31543
31544 PR rtl-optimization/69648
31545 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31546 pic_offset_table_rtx.
31547
31548 PR rtl-optimization/69752
31549 * ira.c (update_equiv_regs): When looking for more than a single SET,
31550 also take other side effects into account.
31551
31552 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31553
31554 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31555 for z900+ CPUs in 31-bit mode.
31556
31557 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31558
31559 * common/config/s390/s390-common.c (s390_supports_split_stack):
31560 New function.
31561 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31562 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31563 * config/s390/s390.c (struct machine_function): New field
31564 split_stack_varargs_pointer.
31565 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31566 in s390_emit_prologue.
31567 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31568 vararg pointer.
31569 (morestack_ref): New global.
31570 (SPLIT_STACK_AVAILABLE): New macro.
31571 (s390_expand_split_stack_prologue): New function.
31572 (s390_live_on_entry): New function.
31573 (s390_va_start): Use split-stack vararg pointer if appropriate.
31574 (s390_asm_file_end): Emit the split-stack note sections.
31575 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31576 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31577 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31578 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31579 (split_stack_prologue): New expand.
31580 (split_stack_space_check): New expand.
31581 (split_stack_data): New insn.
31582 (split_stack_call): New expand.
31583 (split_stack_call_*): New insn.
31584 (split_stack_cond_call): New expand.
31585 (split_stack_cond_call_*): New insn.
31586
31587 2016-02-15 Richard Biener <rguenther@suse.de>
31588
31589 PR tree-optimization/69783
31590 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31591 Add trivially correct cases.
31592
31593 2016-02-15 Tom de Vries <tom@codesourcery.com>
31594
31595 PR lto/69655
31596 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31597 do_force_output.
31598 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31599
31600 2016-02-15 Richard Biener <rguenther@suse.de>
31601
31602 PR tree-optimization/69776
31603 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31604 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31605 indicate whether we can use TBAA to disambiguate against stores.
31606 Use alias-set zero if not.
31607 (visit_reference_op_store): Do not use TBAA when looking up
31608 redundant stores.
31609 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31610 (eliminate_dom_walker::before_dom_children): But not when looking
31611 up redundant stores.
31612
31613 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31614
31615 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31616
31617 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31618
31619 * config/i386/znver1.md
31620 (znver1_pop, znver1_pop_mem,
31621 znver1_load_imov_double_store,
31622 znver1_load_imov_direct_store,
31623 znver1_load_imov_direct_load,
31624 znver1_load_imov_double_load): Add new.
31625 (znver1_insn, znver1_insn_load): Add icmov type.
31626 (znver1_sseavx_fma,
31627 znver1_sseavx_fma_load,
31628 znver1_avx256_fma,
31629 znver1_avx256_fma_load): Fix pipe usage.
31630
31631 2016-02-14 Alan Modra <amodra@gmail.com>
31632
31633 PR target/68973
31634 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31635 with an invalid hard reg, reload just the reg not the entire
31636 pre/post-inc/dec address expression.
31637
31638 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31639
31640 PR target/67260
31641 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31642 fixed R1_REG scratch reg.
31643 (sibcall_value_pcrel_fdpic): Likewise.
31644
31645 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31646
31647 PR target/67636
31648 PR target/64345
31649 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31650
31651 2016-02-12 Walter Lee <walt@tilera.com>
31652
31653 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31654 * config/tilegx/t-tilegx: Likewise.
31655
31656 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31657
31658 PR other/69554
31659 * diagnostic-show-locus.c (struct line_span): New struct.
31660 (layout::get_first_line): Delete.
31661 (layout::get_last_line): Delete.
31662 (layout::get_num_line_spans): New member function.
31663 (layout::get_line_span): Likewise.
31664 (layout::print_heading_for_line_span_index_p): Likewise.
31665 (layout::get_expanded_location): Likewise.
31666 (layout::calculate_line_spans): Likewise.
31667 (layout::m_first_line): Delete.
31668 (layout::m_last_line): Delete.
31669 (layout::m_line_spans): New field.
31670 (layout::layout): Update comment. Replace m_first_line and
31671 m_last_line with m_line_spans, replacing their initialization
31672 with a call to calculate_line_spans.
31673 (diagnostic_show_locus): When printing source lines and
31674 annotations, rather than looping over a single span
31675 of lines, instead loop over each line_span within
31676 the layout, with an inner loop over the lines within them.
31677 Call the context's start_span callback when changing line spans.
31678 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31679 (diagnostic_build_prefix): Break out the building of the location
31680 part of the string into...
31681 (diagnostic_get_location_text): ...this new function, rewriting
31682 it from nested ternary expressions to a sequence of "if"
31683 statements.
31684 (default_diagnostic_start_span_fn): New function.
31685 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31686 (diagnostic_context::start_span): New field.
31687 (default_diagnostic_start_span_fn): New prototype.
31688
31689 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31690
31691 PR driver/69779
31692 * gcc.c (driver::finalize): Fix cleanup of "specs".
31693
31694 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31695
31696 PR driver/69265
31697 PR driver/69453
31698 * gcc.c (driver::driver): Initialize m_option_suggestions.
31699 (driver::~driver): Clean up m_option_suggestions.
31700 (suggest_option): Convert to...
31701 (driver::suggest_option): ...this, and split out into
31702 driver::build_option_suggestions and find_closest_string.
31703 (driver::build_option_suggestions): New function, from
31704 first half of suggest_option. Special-case
31705 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31706 the sanitizer_opts array. For options of enum types, add the
31707 various enum values to the candidate strings.
31708 (driver::handle_unrecognized_options): Remove "const".
31709 * gcc.h (driver::handle_unrecognized_options): Likewise.
31710 (driver::build_option_suggestions): New decl.
31711 (driver::suggest_option): New decl.
31712 (driver::m_option_suggestions): New field.
31713 * opts-common.c (add_misspelling_candidates): New function.
31714 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31715 and make non-static.
31716 * opts.h (sanitizer_opts): New array decl.
31717 (add_misspelling_candidates): New function decl.
31718 * spellcheck.c (find_closest_string): New function.
31719 * spellcheck.h (find_closest_string): New function decl.
31720
31721 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31722
31723 PR rtl-optimization/69764
31724 PR rtl-optimization/69771
31725 * optabs.c (expand_binop_directly): For shift_optab_p, force
31726 convert_modes with VOIDmode if xop1 has VOIDmode.
31727
31728 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31729
31730 PR target/69729
31731 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31732 to correctly determine instrumentation thunks.
31733
31734 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31735
31736 PR ipa/69241
31737 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31738 type by reference, force lhs on the call.
31739
31740 PR ipa/68672
31741 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31742 Compute retval and retbnd early in all cases if split_part_return_p
31743 and return_bb is not EXIT. Remove all clobber stmts and reset
31744 all debug stmts that refer to SSA_NAMEs defined in split part,
31745 except if it is retval, in that case replace the old retval with the
31746 lhs of the call to the split part.
31747
31748 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31749
31750 revert:
31751 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31752
31753 PR middle-end/66726
31754 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31755 whose result is used in PHI.
31756 (maybe_optimize_range_tests): Likewise.
31757 (final_range_test_p): Likweise.
31758
31759 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31760
31761 PR middle-end/66726
31762 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31763 whose result is used in PHI.
31764 (maybe_optimize_range_tests): Likewise.
31765 (final_range_test_p): Likweise.
31766
31767 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31768
31769 * cgraph.c: Spelling fixes - behaviour -> behavior and
31770 neighbour -> neighbor.
31771 * target.def: Likewise.
31772 * sel-sched.c: Likewise.
31773 * config/mips/mips.c: Likewise.
31774 * config/arc/arc.md: Likewise.
31775 * config/arm/cortex-a57.md: Likewise.
31776 * config/arm/arm.c: Likewise.
31777 * config/arm/neon.md: Likewise.
31778 * config/arm/arm-c.c: Likewise.
31779 * config/vms/vms-c.c: Likewise.
31780 * config/s390/s390.c: Likewise.
31781 * config/i386/znver1.md: Likewise.
31782 * config/i386/i386.c: Likewise.
31783 * config/ia64/hpux-unix2003.h: Likewise.
31784 * config/msp430/msp430.md: Likewise.
31785 * config/rx/rx.c: Likewise.
31786 * config/rx/rx.md: Likewise.
31787 * config/aarch64/aarch64-simd.md: Likewise.
31788 * config/aarch64/aarch64.c: Likewise.
31789 * config/nvptx/nvptx.c: Likewise.
31790 * config/bfin/bfin.c: Likewise.
31791 * config/cris/cris.opt: Likewise.
31792 * config/rs6000/rs6000.c: Likewise.
31793 * target.h: Likewise.
31794 * spellcheck.c: Likewise.
31795 * ira-build.c: Likewise.
31796 * tree-inline.c: Likewise.
31797 * builtins.c: Likewise.
31798 * lra-constraints.c: Likewise.
31799 * explow.c: Likewise.
31800 * hwint.h: Likewise.
31801 * targhooks.c: Likewise.
31802 * tree-vect-data-refs.c: Likewise.
31803 * expr.c: Likewise.
31804 * doc/tm.texi: Likewise.
31805 * doc/extend.texi: Likewise.
31806 * doc/install.texi: Likewise.
31807 * doc/md.texi: Likewise.
31808 * tree-ssa-tail-merge.c: Likewise.
31809 * sched-int.h: Likewise.
31810 * match.pd: Likewise.
31811 * sched-ebb.c: Likewise.
31812 * target.def (omit_struct_return_reg): Likewise.
31813 * gimple-ssa-isolate-paths.c: Likewise.
31814 (find_implicit_erroneous_behaviour): Renamed to...
31815 (find_implicit_erroneous_behavior): ... this.
31816 (find_explicit_erroneous_behaviour): Renamed to...
31817 (find_explicit_erroneous_behavior): ... this.
31818 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31819
31820 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31821
31822 PR rtl-optimization/64682
31823 PR rtl-optimization/69567
31824 PR rtl-optimization/69737
31825 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31826 in I2 as well, just lose it.
31827
31828 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31829
31830 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31831 New variable.
31832 (aarch64_last_printed_tune_string): Likewise.
31833 (aarch64_declare_function_name): Only output .arch assembler
31834 directive if it will be different from the previously output
31835 directive. Same for .tune comment but only if -dA is set.
31836 (aarch64_start_file): New function.
31837 (TARGET_ASM_FILE_START): Define.
31838
31839 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31840
31841 PR plugins/69758
31842 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31843
31844 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31845
31846 PR target/65313
31847 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31848 -Wmaybe-uninitialized warning.
31849
31850 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31851
31852 PR target/69713
31853 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31854
31855 2016-02-11 Richard Biener <rguenther@suse.de>
31856
31857 PR rtl-optimization/69291
31858 * ifcvt.c (noce_try_store_flag_constants): Do not allow
31859 subexpressions affected by changing the result.
31860
31861 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
31862
31863 PR target/69148
31864 * lra-constraints.c (curr_insn_transform): Find in/out operands
31865 for secondary memory moves. Update dups.
31866
31867 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
31868
31869 PR tree-optimization/69652
31870 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
31871 to nested loop, did source re-formatting, skip debug statements,
31872 add check on statement with volatile operand, remove dead scalar
31873 statements.
31874
31875 2016-02-10 Jakub Jelinek <jakub@redhat.com>
31876 Patrick Palka <ppalka@gcc.gnu.org>
31877
31878 PR ipa/69241
31879 PR c++/69649
31880 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
31881 calls if the return type is TREE_ADDRESSABLE.
31882 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
31883 * ipa-split.c (split_function): Fix doubled "we" in comment.
31884 Use void return type for the split part even if
31885 !split_point->split_part_set_retval.
31886
31887 2016-02-10 Bin Cheng <bin.cheng@arm.com>
31888
31889 PR tree-optimization/68021
31890 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
31891 when computing the value of biv cand by itself.
31892
31893 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31894
31895 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
31896 (cortexa57_tunings): Likewise.
31897 (cortexa72_tunings): Likewise.
31898 (arch_macro_fusion_pair_p): Add support for AES fusion.
31899 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
31900 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
31901 Allow virtual registers before reload so early scheduling works.
31902 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
31903 correct latency and pipeline.
31904 (cortex_a57_crypto_complex): Likewise.
31905 (cortex_a57_crypto_xor): Likewise.
31906 (define_bypass): Add AES bypass.
31907
31908 2016-02-10 Richard Biener <rguenther@suse.de>
31909
31910 PR tree-optimization/69726
31911 * passes.def: Add DCE pass before late uninit.
31912 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
31913 really fixup if-conversions job.
31914
31915 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
31916
31917 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
31918 (arm_cortex_a57_tune): Likewise.
31919 (aarch_macro_fusion_pair_p): Add support for AES fusion.
31920 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
31921
31922 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
31923
31924 * timevar.def (TV_PHASE_DBGINFO): Delete.
31925 (TV_PHASE_CHECK_DBGINFO): Likewise.
31926 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
31927
31928 2016-02-10 Richard Biener <rguenther@suse.de>
31929
31930 PR tree-optimization/69719
31931 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31932 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
31933
31934 2016-02-09 Andrew Pinski <apinski@cavium.com>
31935
31936 PR tree-opt/69282
31937 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
31938 get_vcond_mask_icode returns false.
31939
31940 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
31941
31942 PR target/68404
31943 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
31944 an ADDIS that adds a pointer to a large constant that sets the
31945 upper16 bits with a load operation.
31946
31947 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31948
31949 PR target/68532
31950 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
31951 order.
31952 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
31953 endian.
31954 (vzipq_s16): Likewise.
31955 (vzipq_s32): Likewise.
31956 (vzipq_f32): Likewise.
31957 (vzipq_u8): Likewise.
31958 (vzipq_u16): Likewise.
31959 (vzipq_u32): Likewise.
31960 (vzipq_p8): Likewise.
31961 (vzipq_p16): Likewise.
31962
31963 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
31964
31965 PR target/68532
31966 * config/arm/arm.c (neon_endian_lane_map): New function.
31967 (neon_vector_pair_endian_lane_map): New function.
31968 (arm_evpc_neon_vuzp): Allow for big endian lane order.
31969 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
31970 endian.
31971 (vuzpq_s16): Likewise.
31972 (vuzpq_s32): Likewise.
31973 (vuzpq_f32): Likewise.
31974 (vuzpq_u8): Likewise.
31975 (vuzpq_u16): Likewise.
31976 (vuzpq_u32): Likewise.
31977 (vuzpq_p8): Likewise.
31978 (vuzpq_p16): Likewise.
31979
31980 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
31981
31982 PR target/69634
31983 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
31984 debug insns.
31985
31986 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
31987
31988 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
31989 truncate const_int operand 1 to QImode.
31990
31991 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
31992
31993 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
31994 corresponding to an abnormal edge.
31995
31996 2016-02-09 Tom de Vries <tom@codesourcery.com>
31997
31998 PR tree-optimization/69599
31999 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32000 function.
32001 (find_func_aliases_for_builtin_call, find_func_clobbers)
32002 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32003 partition.
32004
32005 2016-02-09 Richard Biener <rguenther@suse.de>
32006
32007 PR tree-optimization/69715
32008 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32009 LHS on calls as non-rewritable.
32010
32011 2016-02-09 Tom de Vries <tom@codesourcery.com>
32012
32013 PR lto/69707
32014 * lto-wrapper.c (append_diag_options): New function.
32015 (compile_offload_image): Call append_diag_options.
32016
32017 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32018
32019 PR other/69722
32020 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32021 Minor copy-edit to fix verb tenses.
32022
32023 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32024
32025 PR tree-optimization/69209
32026 * ipa-split.c (split_function): If split part is not
32027 returning retval, retval has gimple type but is not
32028 gimple value, force it into a SSA_NAME first.
32029
32030 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32031
32032 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32033 outdated section.
32034
32035 2016-02-08 Jason Merrill <jason@redhat.com>
32036
32037 PR c++/69631
32038 * convert.c (convert_to_integer_1): Check dofold on truncation
32039 distribution.
32040 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32041 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32042 Rename from *_nofold.
32043 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32044 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32045
32046 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32047
32048 PR target/60410
32049 * tree.c (build_common_tree_nodes): Remove short_double argument.
32050 All callers changed.
32051 * tree.h (build_common_tree_nodes): Adjust declaration.
32052 * doc/invoke.texi (-fshort-double): Remove documentation.
32053 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32054 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32055 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32056 (append_linker_options): Don't handle OPT_fshort_double.
32057
32058 PR rtl-optimization/68730
32059 * lra-remat.c (insn_to_cand_activation): New static variable.
32060 (lra_remat): Allocate and free it.
32061 (create_cand): New arg activation. Initialize a field in
32062 insn_to_cand_activation if it is nonnull.
32063 (create_cands): Pass the activation insn to create_cand when making
32064 a candidate involving an output reload. Reorganize code a little.
32065 (do_remat): Keep track of active status of candidates in a separate
32066 bitmap.
32067
32068 2016-02-08 Richard Biener <rguenther@suse.de>
32069
32070 PR tree-optimization/69719
32071 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32072 Properly use absolute of the difference of the two offsets to
32073 compare or adjust the segment length.
32074
32075 2016-02-08 Richard Biener <rguenther@suse.de>
32076 Jeff Law <law@redhat.com>
32077
32078 PR target/68273
32079 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32080 types for anonymous SSA names.
32081
32082 2016-02-08 Richard Biener <rguenther@suse.de>
32083
32084 PR rtl-optimization/69274
32085 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32086
32087 2016-02-08 Jeff Law <law@redhat.com>
32088
32089 PR tree-optimization/65917
32090 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32091 equivalences from if (x == y) style conditionals.
32092 (loop_depth_of_name): Remove.
32093 (record_equality): Remove loop depth check.
32094 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32095 (const_and_copies::record_const_or_copy_raw): New member function.
32096 * tree-ssa-scopedtables.c
32097 (const_and_copies::record_const_or_copy_raw): New, factored out of
32098 (const_and_copies::record_const_or_copy): Call new member function.
32099
32100 2016-02-05 Jeff Law <law@redhat.com>
32101
32102 PR tree-optimization/68541
32103 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32104 (count_stmts_in_block): New function.
32105 (poor_ifcvt_candidate_code): Likewise.
32106 (is_feasible_trace): Add some heuristics to determine when path
32107 splitting is profitable.
32108 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32109 is a diamond with a single exit.
32110
32111 2016-02-05 Martin Sebor <msebor@redhat.com>
32112
32113 PR c++/69662
32114 * doc/invoke.texi: Update -Wplacement-new to take an optional
32115 argument.
32116
32117 2016-02-06 Richard Henderson <rth@redhat.com>
32118
32119 PR c/69643
32120 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32121 out of non-standard address spaces.
32122
32123 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32124
32125 PR rtl-optimization/69691
32126 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32127
32128 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32129
32130 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32131 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32132 (*ieee128_mfvsrd_64bit): Likewise.
32133 (*ieee128_mfvsrd_32bit): Likewise.
32134
32135 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32136
32137 PR target/69369
32138 Revert r232560:
32139 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32140
32141 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32142 instrumented_version.
32143
32144 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32145
32146 * doc/invoke.texi (Optimize Options): In table of --param options
32147 rename second occurrence of tracer-min-branch-ratio to
32148 tracer-min-branch-probability, rename
32149 tracer-min-branch-ratio-feedback to
32150 tracer-min-branch-probability-feedback and clarify description,
32151 rename sched-spec-state-edge-prob-cutoff to
32152 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32153 to selsched-insns-to-rename, rename lto-minpartition to
32154 lto-min-partition, delete reorder-blocks-duplicate and
32155 reorder-blocks-duplicate-feedback.
32156
32157 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32158
32159 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32160 superfluous loops.
32161
32162 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32163
32164 * doc/extend.texi: S/390: Correct some typos.
32165
32166 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32167
32168 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32169
32170 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32171
32172 PR target/69625
32173 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32174 (s390_register_info_gprtofpr): Use new macros above.
32175 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32176 its name.
32177 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32178 its name. Adjust restore and save gpr ranges.
32179 (s390_register_info_set_ranges): New function.
32180 (s390_register_info): Use new macros above. Call
32181 s390_register_info_set_ranges.
32182 (s390_optimize_register_info): Likewise.
32183 (s390_hard_regno_rename_ok): Use new macros.
32184 (s390_hard_regno_scratch_ok): Likewise.
32185 (s390_emit_epilogue): Likewise.
32186 (s390_can_use_return_insn): Likewise.
32187 (s390_optimize_prologue): Likewise.
32188 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32189
32190 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32191
32192 PR bootstrap/69677
32193 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32194 alignment fixes.
32195 (ix86_option_override_internal): Disable TARGET_STV even for
32196 -m{incoming,preferred}-stack-boundary=3.
32197
32198 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32199
32200 * config.gcc: Mark deprecated rtems targets as obsolete.
32201
32202 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32203
32204 PR rtl-optimization/64682
32205 PR rtl-optimization/69567
32206 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32207 before I2 only if the register is both used and set in I2.
32208
32209 2016-02-04 DJ Delorie <dj@redhat.com>
32210
32211 * config/msp430/msp430.c (msp430_start_function): Add function type.
32212
32213 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32214
32215 PR fortran/69368
32216 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32217
32218 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32219
32220 PR rtl-optimization/69577
32221 Revert:
32222 2015-10-29 Richard Henderson <rth@redhat.com>
32223
32224 PR target/68124
32225 PR rtl-opt/67609
32226 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32227 sse check to the exact conditions of PR 67609.
32228
32229 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32230
32231 PR target/69667
32232 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32233 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32234 not allowed into the traditional Altivec registers.
32235 (movtd_64bit_nodm): Likewise.
32236 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32237
32238 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32239
32240 * config/aarch64/cortex-a57-fma-steering.c
32241 (aarch64_register_fma_steering): Remove "static" from arguments
32242 to register_pass.
32243
32244 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32245
32246 PR target/69619
32247 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32248 twice when complex.
32249
32250 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32251
32252 * doc/invoke.texi: Delete -mno-fma4.
32253
32254 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32255
32256 PR rtl-optimization/69577
32257 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32258 (find_subregs_of_mode): Update accordingly. Iterate over partial
32259 definitions.
32260
32261 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32262
32263 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32264 * config/arm/arm.c (neon_reinterpret): Remove.
32265 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32266 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32267 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32268 vreinterpretti): Remove.
32269 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32270 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32271 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32272 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32273 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32274 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32275 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32276 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32277 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32278 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32279 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32280 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32281 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32282 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32283 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32284 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32285 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32286 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32287 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32288 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32289 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32290 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32291 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32292 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32293 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32294 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32295 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32296 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32297 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32298 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32299 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32300 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32301 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32302 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32303 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32304 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32305 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32306 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32307 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32308 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32309 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32310 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32311 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32312 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32313 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32314 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32315 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32316 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32317 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32318 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32319 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32320 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32321 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32322 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32323 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32324 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32325 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32326 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32327 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32328 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32329 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32330 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32331 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32332 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32333 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32334 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32335 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32336 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32337 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32338 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32339 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32340 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32341 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32342 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32343 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32344 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32345 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32346 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32347 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32348 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32349 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32350 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32351 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32352 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32353 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32354 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32355 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32356 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32357 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32358 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32359 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32360 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32361 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32362 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32363 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32364 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32365 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32366 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32367 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32368 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32369 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32370 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32371 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32372
32373 2016-02-04 Martin Liska <mliska@suse.cz>
32374
32375 PR sanitizer/69276
32376 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32377 that are gimple_store_p.
32378 (maybe_instrument_call): Likewise.
32379
32380 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32381
32382 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32383 register scaling out of memory reference and comment why.
32384
32385 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32386
32387 PR target/65932
32388 PR target/67714
32389 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32390 folding the source of a SET.
32391
32392 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32393
32394 PR target/65932
32395 PR target/67714
32396 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32397 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32398
32399 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32400
32401 PR target/65932
32402 PR target/67714
32403 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32404 HImode.
32405
32406 2016-02-04 Christian Bruel <christian.bruel@st.com>
32407
32408 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32409 * config/arm/arm.c (arm_set_current_function): Likewise.
32410
32411 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32412 Ilya Enkovich <enkovich.gnu@gmail.com>
32413 H.J. Lu <hongjiu.lu@intel.com>
32414
32415 PR target/69454
32416 * config/i386/i386.c (convert_scalars_to_vector): Remove
32417 stack alignment fixes.
32418 (ix86_option_override_internal): Disable TARGET_STV if stack
32419 might not be aligned enough.
32420 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32421
32422 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32423
32424 * config/i386/x86-tune.def: Disable default prefetching
32425 for -march=znver1.
32426
32427 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32428 Vladimir Makarov <vmakarov@redhat.com>
32429
32430 PR target/69461
32431 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32432 in validating fused toc addresses.
32433
32434 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32435
32436 PR c/69627
32437 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32438 range->m_caret fields if range->m_show_caret_p is false.
32439
32440 PR target/69644
32441 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32442 Force oldval into register if it does not satisfy reg_or_short_operand
32443 predicate. Fix up formatting.
32444
32445 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32446 Alexandre Oliva <aoliva@redhat.com>
32447
32448 PR target/69461
32449 * lra-constraints.c (simplify_operand_subreg): Check additionally
32450 address validity after potential reloading.
32451 (process_address_1): Check insns validity. In case of failure do
32452 nothing.
32453
32454 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32455
32456 PR target/69118
32457 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32458 Fix target.
32459
32460 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32461
32462 * wide-int.cc (canonize_uhwi): New function.
32463 (wi::divmod_internal): Use it.
32464
32465 2016-02-02 James Norris <jnorris@codesourcery.com>
32466
32467 * gimplify.c (omp_notice_variable): Add usage check.
32468
32469 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32470
32471 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32472 like LE, GE, LT, GT when emitting relational operator.
32473
32474 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32475
32476 * ira-costs.c (find_costs_and_classes): Add extra argument.
32477 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32478 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32479 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32480 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32481 Add best_class parameter, and return it if not ALL_REGS.
32482 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32483 Add parameter.
32484 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32485 Update target hook.
32486
32487 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32488
32489 * config/aarch64/aarch64.c
32490 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32491 (aarch64_ira_change_pseudo_allocno_class): New function.
32492
32493 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32494
32495 PR target/67032
32496 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32497
32498 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32499
32500 * config/avr/avr.c (avr_option_override): Set
32501 PARAM_ALLOW_STORE_DATA_RACES to 1.
32502
32503 2016-02-02 Richard Biener <rguenther@suse.de>
32504
32505 PR tree-optimization/69595
32506 * match.pd: Add range test simplifications to true/false.
32507
32508 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32509
32510 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32511 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32512 instead.
32513
32514 2016-02-02 Richard Biener <rguenther@suse.de>
32515
32516 PR tree-optimization/69606
32517 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32518 info on the result before moving a stmt.
32519
32520 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32521
32522 PR middle-end/68542
32523 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32524 branch with vector comparison.
32525 * config/i386/sse.md (VI48_AVX): New mode iterator.
32526 (define_expand "cbranch<mode>4): Add support for conditional branch
32527 with vector comparison.
32528 * tree-vect-loop.c (optimize_mask_stores): New function.
32529 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32530 has_mask_store field of vect_info.
32531 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32532 vectorized loops having masked stores after vec_info destroy.
32533 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32534 correspondent macros.
32535 (optimize_mask_stores): Add prototype.
32536
32537 2016-02-02 Alan Modra <amodra@gmail.com>
32538
32539 PR target/69548
32540 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32541 allow subregs.
32542
32543 2016-02-02 Alan Modra <amodra@gmail.com>
32544
32545 PR target/68662
32546 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32547 whenever toc_label_name used.
32548 (rs6000_file_start): Don't set up toc section here,
32549 (rs6000_output_function_epilogue): do so here instead,
32550 (rs6000_xcoff_file_start): and here.
32551 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32552 (load_toc_aix_di): Likewise.
32553
32554 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32555
32556 PR rtl-optimization/69592
32557 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32558 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32559 (num_sign_bit_copies_binary_arith_p): New inline function.
32560 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32561
32562 2016-02-01 Jeff Law <law@redhat.com>
32563
32564 PR tree-optimization/69580
32565 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32566 * tree-ssa-threadbackward.c
32567 (fsm_find_control_statement_thread_paths): Do not try to walk
32568 through large PHI nodes.
32569
32570 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32571
32572 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32573 when count is incremented above limit, don't analyze further
32574 insns afterwards.
32575
32576 * omp-low.c (oacc_parse_default_dims): Avoid
32577 -Wsign-compare warning, make sure value fits into int
32578 rather than just unsigned int.
32579
32580 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32581
32582 PR tree-optimization/67921
32583 * fold-const.c (split_tree): New parameters. Convert pointer
32584 type variable part to proper type before negating.
32585 (fold_binary_loc): Pass new arguments to split_tree.
32586
32587 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32588
32589 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32590 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32591 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32592 * doc/tm.texti: Rebuilt.
32593 * doc/invoke.texi (fopenacc-dim): Document.
32594 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32595 (append_compiler_options): Likewise.
32596 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32597 (oacc_parse_default_dims): New.
32598 (oacc_validate_dims): Add USED arg. Select non-unity default when
32599 possible.
32600 (oacc_loop_fixed_partitions): Return mask of used partitions.
32601 (oacc_loop_auto_partitions): Emit dump info.
32602 (oacc_loop_partition): Return mask of used partitions.
32603 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32604 loop partitioning and validation calls.
32605
32606 2016-02-01 Richard Biener <rguenther@suse.de>
32607
32608 PR middle-end/69556
32609 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32610
32611 2016-02-01 Richard Biener <rguenther@suse.de>
32612
32613 PR tree-optimization/69574
32614 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32615 of asserting return chrec_dont_know.
32616
32617 2016-02-01 Martin Liska <mliska@suse.cz>
32618
32619 * mem-stats-traits.h: Add copyright header.
32620 * mem-stats.h: Likewise.
32621
32622 2016-02-01 Richard Biener <rguenther@suse.de>
32623
32624 PR tree-optimization/69579
32625 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32626 Do not propagate through abnormal PHI results.
32627
32628 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32629
32630 * postreload.c (reload_cse_simplify): Remove dead code.
32631
32632 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32633
32634 PR rtl-optimization/69570
32635 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32636 if there is more than one set, not if there is a single set.
32637
32638 2016-02-01 Richard Henderson <rth@redhat.com>
32639
32640 PR rtl-opt/69535
32641 * combine.c (make_compound_operation): When looking through a
32642 subreg, make sure to re-extend to the width of the outer mode.
32643
32644 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32645
32646 PR tree-optimization/69546
32647 * wide-int.cc (wi::divmod_internal): For unsigned division
32648 where both operands fit into uhwi, if o1 is 1 and o0 has
32649 msb set, if divident_prec is larger than bits per hwi,
32650 clear another quotient word and return 2 instead of 1.
32651 Similarly for remainder with msb in HWI set, if dividend_prec
32652 is larger than bits per hwi.
32653
32654 2016-01-29 Martin Jambor <mjambor@suse.cz>
32655
32656 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32657 Use short lowercase names.
32658 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32659 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32660 acq_rel one. Protect warning agains segfaults if
32661 get_memory_order_name returns NULL.
32662 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32663 with release semantics. Do not warn if get_memory_order already did.
32664 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32665 semantics. Fix check for relaxed or acquire semantics. Do not warn
32666 if get_memory_order already did.
32667
32668 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32669
32670 * doc/install.texi: Document that isl-0.16 is supported.
32671
32672 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32673
32674 PR target/69299
32675 * config/i386/constraints.md (Bm): Describe as special memory
32676 constraint.
32677 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32678 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32679 * genpreds.c (struct constraint_data): Add is_special_memory.
32680 (have_special_memory_constraints, special_memory_start): New
32681 static vars.
32682 (special_memory_end): Ditto.
32683 (add_constraint): Add new arg is_special_memory. Add code to
32684 process its true value. Update have_special_memory_constraints.
32685 (process_define_constraint): Pass the new arg.
32686 (process_define_register_constraint): Ditto.
32687 (choose_enum_order): Process special memory.
32688 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32689 function insn_extra_special_memory_constraint.
32690 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32691 * gensupport.c (process_rtx): Process
32692 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32693 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32694 * ira-lives.c (single_reg_class): Use
32695 insn_extra_special_memory_constraint.
32696 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32697 * lra-constraints.c (process_alt_operands): Ditto.
32698 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32699 * recog.c (asm_operand_ok, preprocess_constraints): Process
32700 CT_SPECIAL_MEMORY.
32701 * reload.c (find_reloads): Ditto.
32702 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32703 * stmt.c (parse_input_constraint): Use
32704 insn_extra_special_memory_constraint.
32705
32706 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32707
32708 PR target/69530
32709 * lra-splill.c (lra_final_code_change): Revert r229087 by
32710 removing all sub-registers.
32711
32712 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32713
32714 PR target/65604
32715 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32716
32717 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32718
32719 PR target/69551
32720 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32721 SSE1, copy target into the temporary reg first before recursing
32722 on it.
32723
32724 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32725
32726 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32727 with vm.
32728
32729 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32730
32731 * ginclude/stdarg.h: Test __cplusplus instead of
32732 __GXX_EXPERIMENTAL_CXX0X__.
32733
32734 2016-01-29 Richard Biener <rguenther@suse.de>
32735
32736 PR tree-optimization/69547
32737 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32738 Do not mark clobbers necessary.
32739 (mark_all_reaching_defs_necessary_1): Likewise.
32740
32741 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32742
32743 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32744 declaration name with %qs and print it in both error messages.
32745 Also fix indentation.
32746
32747 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32748
32749 PR other/69006
32750 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32751 trailing blank line from error message.
32752
32753 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32754
32755 PR c++/69462
32756 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32757 for C++-11.
32758
32759 2016-01-29 Richard Biener <rguenther@suse.de>
32760
32761 PR middle-end/69537
32762 * match.pd: Allow all integral types when simplifying a
32763 widening or sign-changing conversion.
32764
32765 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32766
32767 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32768 back to setting codegen_error to fail codegen.
32769
32770 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32771
32772 PR target/69459
32773 * config/i386/constraints.md (C): Only accept constant zero operand.
32774 (BC): New constraint.
32775 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32776 instead of C constraint.
32777 * doc/md.texi (Machine Constraints): Update description
32778 of C constraint.
32779
32780 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32781
32782 PR target/68400
32783 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32784
32785 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32786
32787 PR middle-end/69542
32788 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32789 non-debug insns.
32790
32791 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32792
32793 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32794 branches if using guessed profile.
32795
32796 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32797
32798 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32799
32800 2016-01-28 Richard Henderson <rth@redhat.com>
32801
32802 PR target/69305
32803 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32804 * config/aarch64/aarch64-protos.h: Update.
32805 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32806 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32807 (aarch64_get_condition_code_1): Handle CC_Cmode.
32808 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32809 (*add<mode>3_compareC_cconly_imm): New.
32810 (*add<mode>3_compareC_cconly): New.
32811 (*add<mode>3_compareC_imm): New.
32812 (add<mode>3_compareC): New.
32813 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32814 to be first. Use aarch64_carry_operation.
32815 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32816 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32817 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32818 (subti3): Use subdi3_compare1.
32819 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32820 (sub<mode>3_compare1): New.
32821 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32822 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32823 (*subsi3_carryin_uxtw): Likewise.
32824 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32825 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32826 * config/aarch64/iterators.md (DWI): New.
32827 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32828 (aarch64_borrow_operation): New.
32829
32830 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32831
32832 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32833 message when isl does not return a valid schedule.
32834
32835 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32836
32837 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32838 Remove comments from class declarations: they are already in the code
32839 close by the defs.
32840
32841 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32842
32843 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32844 codegen_error_p.
32845 (ternary_op_to_tree): Same.
32846 (unary_op_to_tree): Same.
32847 (nary_op_to_tree): Same.
32848 (gcc_expression_from_isl_expr_op): Same.
32849 (gcc_expression_from_isl_expression): Same.
32850 (graphite_create_new_loop): Same.
32851 (graphite_create_new_loop_guard): Same.
32852 (build_iv_mapping): Same.
32853 (graphite_create_new_guard): Same.
32854 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32855 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
32856
32857 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32858
32859 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
32860 instead of setting codegen_error to fail codegen.
32861
32862 2016-01-28 Jason Merrill <jason@redhat.com>
32863
32864 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
32865
32866 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32867
32868 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32869 Remove CONST_INT_P check in CCMP cost calculation.
32870
32871 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32872
32873 * config/aarch64/aarch64.c (generic_vector_cost):
32874 Set vec_permute_cost.
32875 (cortexa57_vector_cost): Likewise.
32876 (exynosm1_vector_cost): Likewise.
32877 (xgene1_vector_cost): Likewise.
32878 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
32879 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
32880 Add vec_permute_cost entry.
32881
32882 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
32883
32884 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
32885 immediate as %1.
32886 (add<mode>3_compare0): Likewise.
32887 (addsi3_compare0_uxtw): Likewise.
32888 (add<mode>3nr_compare0): Likewise.
32889 (compare_neg<mode>): Likewise.
32890 (<optab><mode>3): Likewise.
32891
32892 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
32893
32894 * tree-vect-stmts.c (vectorizable_comparison): Add
32895 NULL check for vectype.
32896
32897 2016-01-28 Richard Biener <rguenther@suse.de>
32898
32899 PR tree-optimization/69466
32900 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
32901 Account for PHIs we couldn't duplicate.
32902
32903 2016-01-28 Martin Liska <mliska@suse.cz>
32904
32905 PR pch/68758
32906 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
32907 instead of ENABLE_VALGRIND_CHECKING.
32908
32909 2016-01-27 Richard Henderson <rth@redhat.com>
32910
32911 PR rtl-opt/69447
32912 * lra-remat.c (subreg_regs): New.
32913 (dump_candidates_and_remat_bb_data): Dump it.
32914 (operand_to_remat): Reject if operand in subreg_regs.
32915 (set_bb_regs): Collect subreg_regs.
32916 (lra_remat): Init and free subreg_regs. Compute
32917 calculate_local_reg_remat_bb_data before create_cands.
32918
32919 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
32920
32921 PR target/68986
32922 * config/i386/i386.c (ix86_update_stack_boundary): Don't
32923 change stack_alignment_needed for __tls_get_addr call.
32924
32925 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
32926
32927 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
32928
32929 2016-01-27 Jeff Law <law@redhat.com>
32930
32931 PR tree-optimization/68398
32932 PR tree-optimization/69196
32933 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
32934 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
32935 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32936 Only count PHIs in the last block in the path. The others will
32937 const/copy propagate away. Add heuristic to allow more irreducible
32938 subloops to be created when it is likely profitable to do so.
32939
32940 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
32941 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
32942 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
32943
32944 2016-01-27 Jakub Jelinek <jakub@redhat.com>
32945
32946 PR lto/69254
32947 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
32948 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
32949 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
32950 * tree-streamer-in.c: Include asan.h.
32951 (streamer_get_builtin_tree): For builtins in sanitizer
32952 range call initialize_sanitizer_builtins and retry.
32953
32954 2016-01-27 Ian Lance Taylor <iant@google.com>
32955
32956 * common.opt (fkeep-gc-roots-live): New undocumented option.
32957 * tree-ssa-loop-ivopts.c (add_candidate_1): If
32958 -fkeep-gc-roots-live, skip pointers.
32959 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
32960 NULL.
32961
32962 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
32963
32964 PR target/69512
32965 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
32966 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
32967
32968 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
32969
32970 PR target/68380
32971 * configure.ac: NetBSD provides SSP in its C library.
32972 * configure: Updated.
32973
32974 2016-01-27 Richard Biener <rguenther@suse.de>
32975
32976 PR tree-optimization/69166
32977 * tree-vect-loop.c (vect_is_simple_reduction): Always check
32978 reduction code for commutativity / associativity.
32979
32980 2016-01-27 Martin Jambor <mjambor@suse.cz>
32981
32982 PR tree-optimization/69355
32983 * tree-sra.c (analyze_access_subtree): Correct hole detection when
32984 total_scalarization fails.
32985
32986 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
32987
32988 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
32989 power9.
32990
32991 2016-01-27 Christian Bruel <christian.bruel@st.com>
32992
32993 PR target/69245
32994 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
32995 Move arm_reset_previous_fndecl and set_target_option_current_node in
32996 the conditional part. Call save_restore_target_globals.
32997 * config/arm/arm.c (arm_set_current_function):
32998 Refactor to better support #pragma target and attribute mix.
32999 Call save_restore_target_globals.
33000 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33001
33002 2016-01-27 Martin Liska <mliska@suse.cz>
33003
33004 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33005 reference for an HSA kernel and its host function.
33006
33007 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33008
33009 PR tree-optimization/69399
33010 * wide-int.h (wi::lrshift): For larger precisions, only
33011 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33012
33013 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33014
33015 * config/arc/predicates.md (proper_comparison_operator): Reject
33016 constant-constant comparison.
33017
33018 2016-01-26 Tom de Vries <tom@codesourcery.com>
33019
33020 PR tree-optimization/69110
33021 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33022 DR_NUM_DIMENSIONS == 0.
33023
33024 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33025 Sebastian Pop <s.pop@samsung.com>
33026
33027 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33028 isl_ast_op_cond and isl_ast_op_select.
33029 (gcc_expression_from_isl_expr_op): Same.
33030
33031 2016-01-26 Jason Merrill <jason@redhat.com>
33032
33033 PR c++/68782
33034 * tree.c (recompute_constructor_flags): Split out from
33035 build_constructor.
33036 (verify_constructor_flags): New.
33037 * tree.h: Declare them.
33038
33039 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33040
33041 PR rtl-optimization/69217
33042 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33043 are no TYPE_FIELDS set for the record type.
33044
33045 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33046
33047 PR target/68662
33048 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33049 toc_label_name unconditionally.
33050 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33051 SYMBOL_REF string. Use toc_label_name instead of constructing
33052 LCTOC1.
33053 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33054 constructing LCTOC1.
33055
33056 2016-01-26 Martin Sebor <msebor@redhat.com>
33057
33058 PR other/69477
33059 * doc/extend.texi (Common Type Attributes): Move text that talks about
33060 attribute packed from attribute aligned to the section discussing
33061 the former attribute for clarity.
33062
33063 2016-01-26 Richard Henderson <rth@redhat.com>
33064
33065 PR middle-end/60908
33066 * trans-mem.c (tm_region_init): Mark entry block as visited.
33067
33068 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33069
33070 PR other/69006
33071 * diagnostic-show-locus.c (layout::print_source_line): Replace
33072 call to pp_newline with call to layout::print_newline.
33073 (layout::print_annotation_line): Likewise.
33074 (layout::move_to_column): Likewise.
33075 (layout::print_any_fixits): After printing any fixits, print a
33076 trailing newline, if necessary.
33077 (layout::print_newline): New method, resetting any colorization
33078 before a newline.
33079 (diagnostic_show_locus): Move the pp_newline to before the
33080 early bailout. Remove dummy block enclosing the layout instance.
33081 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33082 of pp_newline_and_flush with pp_flush.
33083 (diagnostic_append_note): Delete use of pp_newline.
33084 (diagnostic_append_note_at_rich_loc): Delete.
33085 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33086 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33087 when newline characters are added to the buffer.
33088
33089 2016-01-26 Michael Matz <matz@suse.de>
33090
33091 * configure.ac (ac_cv_std_swap_in_utility): New test.
33092 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33093 * configure: Regenerate.
33094 * config.in: Regenerate.
33095
33096 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33097
33098 * config/arc/arc.md (cstoresi4): Force operand into register.
33099 (arcset<code>): Fix predicate.
33100 (arcsetltu): Likewise.
33101 (arcsetgeu): Likewise.
33102 (arcsethi): Likewise.
33103 (arcsetls): Likewise.
33104
33105 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33106
33107 PR tree-optimization/69483
33108 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33109 if base has error_mark_node type.
33110
33111 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33112
33113 PR target/68620
33114 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33115 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33116 New helper macros.
33117 (vget_lane_f16): Handle big-endian.
33118 (vgetq_lane_f16): Likewise.
33119 (vset_lane_f16): Likewise.
33120 (vsetq_lane_f16): Likewise.
33121 * config/arm/iterators.md (VQXMOV): Add V8HF.
33122 (VDQ): Add V4HF and V8HF.
33123 (V_reg): Handle V4HF and V8HF.
33124 (Is_float_mode): Likewise.
33125 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33126 neon_vdup_nv8hf): New patterns.
33127 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33128 Use VD_LANE iterator.
33129 (neon_vld1_dup<mode>): Use VQ2 iterator.
33130
33131 2016-01-26 Nathan Sidwell <nathan@acm.org>
33132
33133 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33134 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33135 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33136 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33137 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33138 (oacc_validate_dims): Add LEVEL arg, don't return level.
33139 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33140 oacc_validate_dims.
33141 (execute_oacc_device_lower): Adjust, add more dump output.
33142 * tree-ssa-loop.c (gate_oacc_kernels): Use
33143 oacc_fn_attrib_kernels_p.
33144 * tree-parloops.c (create_parallel_loop): Adjust
33145 set_oacc_fn_attrib call.
33146
33147 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33148
33149 PR lto/69254
33150 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33151 (append_compiler_options): Handle -fcilkplus.
33152 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33153
33154 2016-01-26 Nick Clifton <nickc@redhat.com>
33155
33156 PR target/66655
33157 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33158 been marked as DECL_ONE_ONLY but we do not the means to make it
33159 so, then do not allow it to bind locally.
33160
33161 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33162
33163 PR lto/69254
33164 * opts.h (parse_sanitizer_options): New prototype.
33165 * opts.c (sanitizer_opts): New array.
33166 (parse_sanitizer_options): New function.
33167 (common_handle_option): Use parse_sanitizer_options.
33168
33169 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33170
33171 PR target/68986
33172 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33173 alignment adjustment to ...
33174 (ix86_update_stack_boundary): Here. Don't over-align stack for
33175 __tls_get_addr.
33176 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33177 if __tls_get_addr is called.
33178
33179 2016-01-26 Christian Bruel <christian.bruel@st.com>
33180
33181 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33182
33183 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33184
33185 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33186
33187 2016-01-26 Richard Biener <rguenther@suse.de>
33188
33189 PR middle-end/69467
33190 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33191
33192 2016-01-26 Richard Biener <rguenther@suse.de>
33193
33194 PR tree-optimization/69452
33195 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33196 (move_computations_dom_walker::before_dom_children): Rename
33197 to ...
33198 (move_computations_worker): This.
33199 (move_computations): Perform an RPO rather than a DOM walk.
33200
33201 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33202
33203 PR target/69442
33204 * combine.c (combine_instructions): For REG_EQUAL note with
33205 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33206 to the underlying register.
33207 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33208 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33209
33210 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33211
33212 PR target/67896
33213 * config/aarch64/aarch64-builtins.c
33214 (aarch64_init_simd_builtin_types): Do not set structural
33215 equality to __Poly{8,16,64,128}_t types.
33216
33217 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33218
33219 PR tree-optimization/69400
33220 * wide-int.cc (wi_pack): Take the precision as argument and
33221 perform canonicalization here rather than in the callers.
33222 Use the main loop to handle all full-width HWIs. Add a
33223 zero HWI if in_len isn't a full result.
33224 (wi::divmod_internal): Update accordingly.
33225 (wi::mul_internal): Likewise. Simplify.
33226
33227 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33228 Sebastian Pop <s.pop@samsung.com>
33229
33230 * graphite-poly.c (apply_poly_transforms): Simplify.
33231 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33232 (print_isl_map): Same.
33233 (print_isl_union_map): Same.
33234 (print_isl_schedule): New.
33235 (debug_isl_schedule): New.
33236 * graphite-dependences.c (scop_get_reads): Do not call
33237 isl_union_map_add_map that is undocumented isl functionality.
33238 (scop_get_must_writes): Same.
33239 (scop_get_may_writes): Same.
33240 (scop_get_original_schedule): Remove.
33241 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33242 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33243 (compute_deps): Remove.
33244 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33245 (debug_schedule_ast): New.
33246 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33247 set_separate_option.
33248 (graphite_regenerate_ast_isl): Add dump.
33249 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33250 from scop->transformed_schedule.
33251 (graphite_regenerate_ast_isl): Add more dump.
33252 * graphite-optimize-isl.c (optimize_isl): Set
33253 scop->transformed_schedule. Check whether schedules are equal.
33254 (apply_poly_transforms): Move here.
33255 * graphite-poly.c (apply_poly_transforms): ... from here.
33256 (free_poly_bb): Static.
33257 (free_scop): Static.
33258 (pbb_number_of_iterations_at_time): Remove.
33259 (print_isl_ast): New.
33260 (debug_isl_ast): New.
33261 (debug_scop_pbb): New.
33262 * graphite-scop-detection.c (print_edge): Move.
33263 (print_sese): Move.
33264 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33265 (build_scop_scattering): Remove.
33266 (create_pw_aff_from_tree): Assert instead of bailing out.
33267 (add_condition_to_pbb): Remove unused code, do not fail.
33268 (add_conditions_to_domain): Same.
33269 (add_conditions_to_constraints): Remove.
33270 (build_scop_context): New.
33271 (add_iter_domain_dimension): New.
33272 (build_iteration_domains): Initialize pbb->iterators.
33273 Call add_conditions_to_domain.
33274 (nested_in): New.
33275 (loop_at): New.
33276 (index_outermost_in_loop): New.
33277 (index_pbb_in_loop): New.
33278 (outermost_pbb_in): New.
33279 (add_in_sequence): New.
33280 (add_outer_projection): New.
33281 (outer_projection_mupa): New.
33282 (add_loop_schedule): New.
33283 (build_schedule_pbb): New.
33284 (build_schedule_loop): New.
33285 (embed_in_surrounding_loops): New.
33286 (build_schedule_loop_nest): New.
33287 (build_original_schedule): New.
33288 (build_poly_scop): Call build_original_schedule.
33289 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33290 (free_poly_dr): Remove.
33291 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33292 (free_poly_bb): Remove.
33293 (debug_loop_vec): Remove.
33294 (print_isl_ast): Declare.
33295 (debug_isl_ast): Declare.
33296 (scop_do_interchange): Remove.
33297 (scop_do_strip_mine): Remove.
33298 (scop_do_block): Remove.
33299 (flatten_all_loops): Remove.
33300 (optimize_isl): Remove.
33301 (pbb_number_of_iterations_at_time): Remove.
33302 (debug_scop_pbb): Declare.
33303 (print_schedule_ast): Declare.
33304 (debug_schedule_ast): Declare.
33305 (struct scop): Remove schedule. Add original_schedule,
33306 transformed_schedule.
33307 (free_gimple_poly_bb): Remove.
33308 (print_generated_program): Remove.
33309 (debug_generated_program): Remove.
33310 (unify_scattering_dimensions): Remove.
33311 * sese.c (print_edge): ... here.
33312 (print_sese): ... here.
33313 (debug_edge): ... here.
33314 (debug_sese): ... here.
33315 * sese.h (print_edge): Declare.
33316 (print_sese): Declare.
33317 (dump_edge): Declare.
33318 (dump_sese): Declare.
33319
33320 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33321 Sebastian Pop <s.pop@samsung.com>
33322
33323 * Makefile.in: Set ISLVER in site.exp.
33324
33325 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33326
33327 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33328 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33329 through DECL_VALUE_EXPR for expansion.
33330
33331 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33332
33333 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33334 the frame info after reload completed.
33335
33336 2016-01-25 Jeff Law <law@redhat.com>
33337
33338 PR tree-optimization/69196
33339 PR tree-optimization/68398
33340 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33341 tree-ssa-threadupdate.c.
33342 (determine_bb_domination_status): Prototype
33343 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33344 (determine_bb_domination_status): No longer static.
33345 (valid_jump_thread_path): Remove code to detect characteristics
33346 of the jump thread path not associated with correctness.
33347 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33348 Correct test for thread path length. Count PHIs for real operands as
33349 statements that need to be copied. Do not count ASSERT_EXPRs.
33350 Look at all the blocks in the thread path. Compute and selectively
33351 filter thread paths based on threading through the latch, threading
33352 a multiway branch or crossing a multiway branch.
33353
33354 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33355
33356 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33357 decl with __attribute__ ((unused)) annotation.
33358
33359 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33360
33361 PR target/69421
33362 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33363 of operands is compatible with a statement vectype.
33364
33365 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33366
33367 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33368 improve wording for mixed storage order support.
33369
33370 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33371
33372 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33373 (vcvt_u64_f64): Likewise.
33374 (vcvta_s64_f64): Likewise.
33375 (vcvta_u64_f64): Likewise.
33376 (vcvtm_s64_f64): Likewise.
33377 (vcvtm_u64_f64): Likewise.
33378 (vcvtn_s64_f64): Likewise.
33379 (vcvtn_u64_f64): Likewise.
33380 (vcvtp_s64_f64): Likewise.
33381 (vcvtp_u64_f64): Likewise.
33382
33383 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33384
33385 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33386 (arc_init): Check validity mll64 option.
33387 (arc_save_restore): Use double load/store instruction.
33388 (arc_expand_movmem): Likewise.
33389 (arc_split_move): Don't split if we have double load/store
33390 instructions. Returns a boolean.
33391 (arc_process_double_reg_moves): Change function to return boolean
33392 instead of a sequence of instructions.
33393 (arc_dwarf_register_span): New function.
33394 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33395 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33396 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33397 (*movdf_insn): Likewise.
33398 * config/arc/arc.opt (mll64): New option.
33399 * config/arc/predicates.md (even_register_operand): New predicate.
33400 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33401
33402 2016-01-25 Richard Biener <rguenther@suse.de>
33403
33404 PR lto/69393
33405 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33406 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33407 DECL_NAMELESS.
33408 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33409
33410 2016-01-25 Richard Biener <rguenther@suse.de>
33411
33412 PR tree-optimization/69376
33413 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33414 flag.
33415 (VN_INFO_ANTI_RANGE_P): New inline.
33416 (VN_INFO_RANGE_TYPE): Likewise.
33417 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33418 SSA_NAME_ANTI_RANGE_P.
33419 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33420 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33421 Properly query VN_INFO_RANGE_TYPE.
33422
33423 2016-01-25 Nick Clifton <nickc@redhat.com>
33424
33425 PR target/66655
33426 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33427
33428 2016-01-23 Tom de Vries <tom@codesourcery.com>
33429
33430 PR tree-optimization/69426
33431 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33432 removed clobber.
33433
33434 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33435
33436 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33437 "the the" with "the" in the comments.
33438 * ipa-devirt.c (build_type_inheritance_graph,
33439 update_type_inheritance_graph): Likewise.
33440 * tree.c (build_function_type_list_1): Likewise.
33441 * cfgloopmanip.c (scale_loop_profile): Likewise.
33442 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33443 * gimple-ssa-split-paths.c
33444 (find_block_to_duplicate_for_splitting_paths): Likewise.
33445 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33446 * expr.c (convert_move): Likewise.
33447 * var-tracking.c (vt_stack_adjustments): Likewise.
33448 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33449 * tree-vrp.c (test_for_singularity): Likewise.
33450
33451 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33452 directly instead of building a temporary tree.
33453
33454 PR bootstrap/69434
33455 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33456 remove <algorithm> include.
33457
33458 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33459
33460 PR target/69432
33461 * config/i386/i386.c: Include dojump.h.
33462 (expand_small_movmem_or_setmem,
33463 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33464 fixes.
33465 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33466 if dynamic_check != -1.
33467
33468 2016-01-21 Jeff Law <law@redhat.com>
33469
33470 PR middle-end/69347
33471 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33472 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33473 into dominated_by_p.
33474 (cprop_into_successor_phis): Avoid unnecessary tests.
33475
33476 2016-01-22 Richard Henderson <rth@redhat.com>
33477
33478 PR target/69416
33479 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33480 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33481
33482 2016-01-22 Michael Matz <matz@suse.de>
33483
33484 * system.h (string, algorithm): Include only conditionally.
33485 (new): Include always under C++.
33486 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33487 * final.c (toplevel): Ditto.
33488 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33489 * genconditions.c (write_header): Make gencondmd.c define
33490 INCLUDE_STRING.
33491 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33492
33493 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33494 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33495
33496 2016-01-22 Christian Bruel <christian.bruel@st.com>
33497
33498 PR target/68674
33499 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33500
33501 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33502
33503 PR target/69403
33504 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33505 define_insn_and_split. Ensure operands[1] and operands[0] do not
33506 get assigned the same register.
33507
33508 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33509
33510 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33511
33512 2016-01-22 Christian Bruel <christian.bruel@st.com>
33513
33514 * config/arm/arm-c.c (arm_pragma_target_parse):
33515 Remove warn_builtin_macro_redefined overwrite.
33516
33517 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33518
33519 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33520 flag_non_call_exceptions compatibility.
33521
33522 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33523
33524 PR debug/66668
33525 * dwarf2out.c (add_child_die_after): New function.
33526 (dwarf_qual_info_t): New type.
33527 (dwarf_qual_info): New variable.
33528 (qualified_die_p): New function.
33529 (modified_type_die): For -fdebug-types-section, ensure
33530 canonical order of qualifiers. Put qualified DIEs adjacent
33531 to the corresponding non-qualified type DIE and search there
33532 for existing qualified DIEs.
33533
33534 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33535
33536 * doc/extend.texi (scalar_storage_order type attribute): Document
33537 restriction on type punning and aliasing, and remove future tense.
33538
33539 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33540
33541 PR target/69252
33542 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33543 first stage.
33544
33545 2016-01-21 Jeff Law <law@redhat.com>
33546
33547 PR middle-end/69347
33548 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33549 useless call to record_temporary_equivalences.
33550 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33551 allocate 10 slots in the bb_path vector and let it grow as needed.
33552 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33553 vector.
33554
33555 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33556
33557 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33558 Detangle.
33559 * configure: Regenerate.
33560
33561 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33562
33563 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33564 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33565
33566 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33567
33568 PR middle-end/66178
33569 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33570 drop EXPAND_INITIALIZER.
33571 * rtl.h (contains_symbolic_reference_p): Declare.
33572 * rtlanal.c (contains_symbolic_reference_p): New function.
33573 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33574 a subtraction into a NOT if symbolic constants are involved.
33575
33576 2016-01-21 Anton Blanchard <anton@samba.org>
33577 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33578
33579 PR target/63354
33580 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33581 #define.
33582 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33583 function.
33584
33585 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33586
33587 * config/microblaze/microblaze.c
33588 (get_branch_target): New.
33589 (insert_wic_for_ilb_runout): New.
33590 (insert_wic): New.
33591 (microblaze_machine_dependent_reorg): New.
33592 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33593 * config/microblaze/microblaze.md
33594 (UNSPEC_IPREFETCH): Define.
33595 (iprefetch): New pattern
33596 * config/microblaze/microblaze.opt
33597 (mxl-prefetch): New flag.
33598
33599 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33600
33601 * config/microblaze/microblaze.h
33602 (FIXED_REGISTERS): Update in macro.
33603 (CALL_USED_REGISTERS): Update in macro.
33604
33605 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33606
33607 PR rtl-optimization/68920
33608 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33609 moves.
33610
33611 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33612
33613 PR rtl-optimization/68990
33614 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33615 pseudo instead of inheritance ones.
33616
33617 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33618 Nick Clifton <nickc@redhat.com>
33619
33620 PR target/69129
33621 PR target/69012
33622 * config/mips/mips.c (mips_compute_frame_info): Initialise
33623 args_size and hard_frame_pointer_offset fields of the frame
33624 structure before calling mips_global_pointer.
33625
33626 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33627
33628 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33629 label reference.
33630 * configure: Regenerate.
33631
33632 2016-01-21 Richard Biener <rguenther@suse.de>
33633
33634 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33635
33636 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33637
33638 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33639 to actually emit the .size directive.
33640
33641 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33642 Jakub Jelinek <jakub@redhat.com>
33643
33644 PR target/69187
33645 PR target/65624
33646 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33647 args array size by one to avoid buffer overflow.
33648
33649 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33650
33651 * config/s390/s390.md (pool_section_start): Use switch_to_section
33652 to select proper read-only data section instead of hardcoding
33653 .rodata.
33654 (pool_section_end): Use switch_to_section to match the above.
33655
33656 2016-01-21 Richard Biener <rguenther@suse.de>
33657
33658 PR tree-optimization/69378
33659 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33660 (set_ssa_val_to): Use it for dominance checks taking into
33661 account not executable edges.
33662
33663 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33664
33665 PR c++/69355
33666 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33667 for bitsize instead of GET_MODE_PRECISION (mode).
33668
33669 2016-01-20 Martin Sebor <msebor@redhat.com>
33670
33671 PR c/52291
33672 * extend.texi (__sync Builtins): Clarify the semantics of
33673 __sync_fetch_and_OP built-ins on pointers.
33674 (__atomic Builtins): Same.
33675
33676 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33677 Sebastian Pop <s.pop@samsung.com>
33678
33679 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33680 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33681 (is_valid_rename): Same.
33682 (translate_isl_ast_to_gimple::get_rename): Same.
33683 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33684 (translate_isl_ast_to_gimple::rename_uses): Same.
33685 (get_new_name): Check for close_phi nodes.
33686 (copy_loop_phi_args): Use phi_node_kind.
33687 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33688 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33689
33690 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33691 Sebastian Pop <s.pop@samsung.com>
33692
33693 Revert commit r229783.
33694 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33695 Remove use of parameter_rename_map.
33696 (copy_def): Remove.
33697 (copy_internal_parameters): Remove.
33698 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33699 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33700 (free_sese_info): Do not free parameter_rename_map.
33701 (set_rename): Do not use parameter_rename_map.
33702 (rename_uses): Update call to set_rename.
33703 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33704 * sese.h (parameter_rename_map_t): Remove.
33705 (struct sese_info_t): Remove field parameter_rename_map.
33706
33707 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33708 Sebastian Pop <s.pop@samsung.com>
33709
33710 * graphite-isl-ast-to-gimple.c: Fix comment.
33711 * graphite-scop-detection.c (defined_in_loop_p): New.
33712 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33713 names defined in loop.
33714
33715 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33716 Sebastian Pop <s.pop@samsung.com>
33717
33718 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33719 Discard unstructured if-then-else regions.
33720
33721 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33722 Sebastian Pop <s.pop@samsung.com>
33723
33724 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33725 (cleanup_loop_iter_dom): Remove.
33726 (build_loop_iteration_domains): Remove.
33727 (build_scop_context): Remove.
33728 (build_scop_iteration_domain): Remove.
33729 (add_loop_constraints): New.
33730 (build_iteration_domains): New.
33731 (build_poly_scop): Call build_iteration_domains.
33732
33733 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33734 Sebastian Pop <s.pop@samsung.com>
33735
33736 * graphite-scop-detection.c
33737 (scop_detection::harmful_loop_in_region): Free dom and loops.
33738 (scop_detection::loop_body_is_valid_scop): Free bbs.
33739
33740 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33741 Sebastian Pop <s.pop@samsung.com>
33742
33743 * graphite-scop-detection.c (record_loop_in_sese): New.
33744 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33745 (build_scops): Remove call to build_sese_loop_nests.
33746 * sese.c (sese_record_loop): Remove.
33747 (build_sese_loop_nests): Remove.
33748 (new_sese_info): Remove region->loops.
33749 (free_sese_info): Same.
33750 * sese.h (sese_contains_loop): Same.
33751 (build_sese_loop_nests): Remove.
33752 (sese_contains_loop): Remove.
33753
33754 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33755 Sebastian Pop <s.pop@samsung.com>
33756
33757 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33758 loop_is_valid_in_scop.
33759 (scop_detection::harmful_stmt_in_region): Renamed
33760 harmful_loop_in_region.
33761 Call loop_is_valid_in_scop.
33762
33763 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33764 Sebastian Pop <s.pop@samsung.com>
33765
33766 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33767 isl_ast_node_mark.
33768
33769 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33770 Sebastian Pop <s.pop@samsung.com>
33771
33772 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33773 * graphite.h (struct poly_bb): Remove field is_reduction.
33774 (PBB_IS_REDUCTION): Remove.
33775
33776 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33777 Sebastian Pop <s.pop@samsung.com>
33778
33779 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33780 (add_pdr_constraints): Same.
33781 (scop_get_reads): Same.
33782 (scop_get_must_writes): Same.
33783 (scop_get_may_writes): Same.
33784 (scop_get_original_schedule): Same.
33785 (extend_schedule): Same.
33786 (apply_schedule_on_deps): Same.
33787 (carries_deps): Same.
33788 (compute_deps): Same.
33789 (scop_get_dependences): Same.
33790 * graphite-isl-ast-to-gimple.c
33791 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33792 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33793 (get_schedule_for_band_list): Same.
33794 (get_schedule_map): Same.
33795 (apply_schedule_map_to_scop): Same.
33796 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33797 (build_loop_iteration_domains): Same.
33798 (add_condition_to_pbb): Same.
33799 (add_param_constraints): Same.
33800 (pdr_add_memory_accesses): Same.
33801 (pdr_add_data_dimensions): Same.
33802
33803 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33804
33805 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33806 requirements.
33807
33808 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33809
33810 * common.opt (feliminate-dwarf2-dups): Replace references to
33811 "DWARF 2" with just "DWARF".
33812 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33813 * doc/extend.texi: Likewise.
33814 * doc/cpp.texi: Likewise.
33815 * doc/invoke.texi: Likewise.
33816 (Option Summary): Add -gdwarf to list of Debugging Options.
33817 (Debugging Options): Document -gdwarf.
33818 * doc/contrib.texi: Spell "DWARF" like that.
33819
33820 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33821
33822 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33823 warning. Fix up formatting.
33824
33825 PR middle-end/67653
33826 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33827 attempt to mark memory input operand addressable and
33828 call prepare_gimple_addressable in that case. Don't adjust
33829 input_location for diagnostics, use error_at instead.
33830
33831 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33832
33833 * config/rs6000/ppc-auxv.h: New file.
33834 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33835 (cpu_is): Likewise.
33836 (cpu_supports): Likewise.
33837 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33838 (cpu_is_info): New variable.
33839 (cpu_supports_info): Likewise.
33840 (tcb_verification_symbol): Likewise.
33841 (cpu_builtin_p): Likewise.
33842 (cpu_expand_builtin): New function.
33843 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33844 (rs6000_init_builtins): Likewise.
33845 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33846 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33847 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33848 * configure: Regenerate.
33849 * config.in: Likewise.
33850 * doc/extend.texi (PowerPC Built-in Functions): Document
33851 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33852
33853 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33854
33855 PR target/68609
33856 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
33857 domain check.
33858 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
33859 for V4SFmode.
33860
33861 2016-01-20 Richard Henderson <rth@redhat.com>
33862
33863 PR bootstrap/69343
33864 PR bootstrap/69339
33865 PR tree-opt/68964
33866 Revert:
33867 * tree.c (tm_define_builtin): New.
33868 (find_tm_vector_type): New.
33869 (build_tm_vector_builtins): New.
33870 (build_common_builtin_nodes): Call it.
33871
33872 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
33873
33874 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
33875 (arm_fp_ok): Likewise.
33876 (arm_fp): Likewise.
33877 (arm_crypto): Likewise.
33878
33879 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
33880 Richard Biener <rguenther@suse.de>
33881
33882 PR tree-optimization/69328
33883 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
33884 vectors have same number of elements.
33885 (vectorizable_condition): Fix masked version recognition.
33886
33887 2016-01-20 Richard Biener <rguenther@suse.de>
33888
33889 PR tree-optimization/69345
33890 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
33891 (VN_INFO_PTR_INFO): Likewise.
33892 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
33893 info when it is equal between non-dominating SSA names.
33894 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33895 Make sure to look at original SSA infos.
33896
33897 2016-01-20 Jeff Law <law@redhat.com>
33898
33899 PR target/25114
33900 * config/m68k/predicates.md (pow2_m1_operand): New predicate
33901 extracted from ...
33902 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
33903 (pc_or_label_operand): New predicate.
33904 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
33905 tests for small integers that are 2^n - 1.
33906
33907 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
33908
33909 * doc/invoke.texi (Options Summary): Add '.' after @xref.
33910
33911 2016-01-19 Jeff Law <law@redhat.com>
33912
33913 PR middle-end/69347
33914 * tree-ssa-threadbackwards.c
33915 (fsm_find_control_statement_thread_paths): Do not try to lookup
33916 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
33917
33918 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
33919
33920 * doc/lto.texi: Remove text that says only Gold has linker plugin
33921 support.
33922
33923 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
33924
33925 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
33926 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
33927 the DIE accordingly.
33928 (modified_type_die): Add REVERSE parameter and pass it recursively,
33929 as well as to base_type_die. Adjust presence check accordingly.
33930 (base_type_for_mode): Adjust call to modified_type_die.
33931 (add_type_attribute): Add REVERSE parameter and pass it to
33932 modified_type_die.
33933 (generic_parameter_die): Adjust call to add_type_attribute.
33934 (add_scalar_info): Likewise.
33935 (add_subscript_info): Likewise.
33936 (gen_array_type_die): Likewise.
33937 (gen_descr_array_type_die): Likewise.
33938 (gen_entry_point_die): Likewise.
33939 (gen_enumeration_type_die): Likewise.
33940 (gen_formal_parameter_die): Likewise.
33941 (gen_subprogram_die): Likewise.
33942 (gen_variable_die ): Likewise.
33943 (gen_const_die): Likewise.
33944 (gen_field_die): Likewise.
33945 (gen_pointer_type_die): Likewise.
33946 (gen_reference_type_die): Likewise.
33947 (gen_ptr_to_mbr_type_die): Likewise.
33948 (gen_inheritance_die): Likewise.
33949 (gen_subroutine_type_die): Likewise.
33950 (gen_typedef_die): Likewise.
33951 (force_type_die): Adjust call to modified_type_die.
33952
33953 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
33954
33955 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
33956 flow throughout the file. Fix broken link to Objective-C 2.0
33957 documentation.
33958 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
33959 errors.
33960
33961 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
33962
33963 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
33964
33965 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
33966
33967 PR ipa/66223
33968 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
33969 (maybe_record_node): Record cxa_pure_virtual as the only possible
33970 target if there are not ohter candidates.
33971 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
33972
33973 2016-01-19 Richard Biener <rguenther@suse.de>
33974
33975 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
33976 (get_memory_order): Likewise.
33977
33978 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
33979
33980 * tree-vect-stmts.c (vectorizable_store): Check
33981 rhs vectype.
33982
33983 2016-01-19 David Malcolm <dmalcolm@redhat.com>
33984
33985 PR jit/68446
33986 * gcc.c (driver::decode_argv): Add call to
33987 init_opts_obstack before init_options_struct.
33988 * opts.c (init_opts_obstack): Remove idempotency.
33989 (init_options_struct): Replace call to init_opts_obstack
33990 with a gcc_assert to verify that it has already been called.
33991 * toplev.c (toplev::main): Add call to init_opts_obstack before
33992 calls to init_options_struct.
33993 (toplev::finalize): Move cleanup of opts_obstack next to
33994 cleanup of save_decoded_options, clearing the latter, and
33995 save_decoded_options_count.
33996
33997 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33998
33999 PR target/69135
34000 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34001 attribute to unconditional. Remove %? from output template.
34002
34003 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34004 Jiong Wang <jiong.wang@arm.com>
34005
34006 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34007 generated from different expand order.
34008
34009 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34010
34011 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34012 Add support for CCMP costing.
34013
34014 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34015
34016 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34017 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34018 (fccmpe<mode>): Likewise.
34019 (fcmp): Rename to fcmp and globalize pattern.
34020 (fcmpe): Likewise.
34021 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34022 (aarch64_gen_ccmp_next): Add FP support.
34023
34024 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34025
34026 * target.def (gen_ccmp_first): Update documentation.
34027 (gen_ccmp_next): Likewise.
34028 * doc/tm.texi (gen_ccmp_first): Update documentation.
34029 (gen_ccmp_next): Likewise.
34030 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34031 expand_ccmp_expr_1. Improve comments.
34032 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34033 (ccmp_ior<mode>): Remove pattern.
34034 (cmp<mode>): Remove expand.
34035 (cmp): Globalize pattern.
34036 (cstorecc4): Use cc_register.
34037 (mov<mode>cc): Remove ccmp_cc_register check.
34038 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34039 Simplify after removal of CC_DNE/* modes.
34040 (aarch64_ccmp_mode_to_code): Remove.
34041 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34042 In 'k' case use integer as condition.
34043 (aarch64_nzcv_codes): Remove inverted cases.
34044 (aarch64_code_to_ccmode): Remove.
34045 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34046 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34047 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34048 pattern. Return the comparison with CC register. Invert conditions
34049 when bitcode is OR.
34050 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34051 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34052
34053 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34054
34055 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34056 instrumented_version.
34057
34058 2016-01-19 Richard Biener <rguenther@suse.de>
34059
34060 PR tree-optimization/69336
34061 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34062 handled components with get_ref_base_and_extent.
34063 (equal_mem_array_ref_p): Adjust.
34064
34065 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34066
34067 PR debug/65779
34068 * shrink-wrap.c: Include valtrack.h.
34069 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34070 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34071 in between insn and where it will be moved to. Call
34072 dead_debug_insert_temp.
34073 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34074 first and dead_debug_local_finish at the end.
34075 For uses and defs bitmap, handle all regs in between REGNO and
34076 END_REGNO, not just the first one.
34077
34078 2016-01-19 Richard Biener <rguenther@suse.de>
34079
34080 PR tree-optimization/69352
34081 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34082 (equal_mem_array_ref_p): Constrain size and max size properly.
34083 Compare the reverse flag.
34084
34085 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34086
34087 * ira.c (ira): Update regstat data if we deleted insns.
34088
34089 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34090
34091 PR rtl-optimization/68955
34092 PR rtl-optimization/64557
34093 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34094 here. Fix up formatting.
34095 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34096
34097 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34098
34099 PR lto/69133
34100 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34101 assume that the node has body.
34102 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34103 check.
34104
34105 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34106
34107 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34108 thunks.
34109
34110 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34111
34112 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34113 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34114
34115 2016-01-19 Martin Jambor <mjambor@suse.cz>
34116 Martin Liska <mliska@suse.cz>
34117 Michael Matz <matz@suse.de>
34118
34119 * Makefile.in (OBJS): Add new source files.
34120 (GTFILES): Add hsa.c.
34121 * common.opt (disable_hsa): New variable.
34122 (-Whsa): New warning.
34123 * config.in (ENABLE_HSA): New.
34124 * configure.ac: Treat hsa differently from other accelerators.
34125 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34126 $enable_offloading.
34127 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34128 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34129 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34130 --with-hsa-kmt-lib.
34131 * doc/invoke.texi (-Whsa): Document.
34132 (hsa-gen-debug-stores): Likewise.
34133 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34134 to invoke offload compiler for hsa acclerator.
34135 * opts.c (common_handle_option): Determine whether HSA offloading
34136 should be performed.
34137 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34138 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34139 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34140 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34141 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34142 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34143 GF_OMP_FOR_KIND_GRID_LOOP.
34144 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34145 (pp_gimple_stmt_1): Likewise.
34146 * gimple-walk.c (walk_gimple_stmt): Likewise.
34147 * gimple.c (gimple_build_omp_grid_body): New function.
34148 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34149 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34150 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34151 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34152 GF_OMP_TEAMS_GRID_PHONY.
34153 (gimple_statement_omp_single_layout): Updated comments.
34154 (gimple_build_omp_grid_body): New function.
34155 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34156 (gimple_omp_for_grid_phony): New function.
34157 (gimple_omp_for_set_grid_phony): Likewise.
34158 (gimple_omp_parallel_grid_phony): Likewise.
34159 (gimple_omp_parallel_set_grid_phony): Likewise.
34160 (gimple_omp_teams_grid_phony): Likewise.
34161 (gimple_omp_teams_set_grid_phony): Likewise.
34162 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34163 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34164 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34165 (BUILT_IN_GOMP_TARGET): Updated type.
34166 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34167 (adjust_for_condition): New function.
34168 (get_omp_for_step_from_incr): Likewise.
34169 (extract_omp_for_data): Moved parts to adjust_for_condition and
34170 get_omp_for_step_from_incr.
34171 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34172 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34173 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34174 (scan_omp_parallel): Do not create child functions for phony
34175 constructs.
34176 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34177 (scan_omp_1_op): Checking assert we are not remapping to
34178 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34179 (parallel_needs_hsa_kernel_p): New function.
34180 (expand_parallel_call): Register apprpriate parallel child
34181 functions as HSA kernels.
34182 (grid_launch_attributes_trees): New type.
34183 (grid_attr_trees): New variable.
34184 (grid_create_kernel_launch_attr_types): New function.
34185 (grid_insert_store_range_dim): Likewise.
34186 (grid_get_kernel_launch_attributes): Likewise.
34187 (get_target_argument_identifier_1): Likewise.
34188 (get_target_argument_identifier): Likewise.
34189 (get_target_argument_value): Likewise.
34190 (push_target_argument_according_to_value): Likewise.
34191 (get_target_arguments): Likewise.
34192 (expand_omp_target): Call get_target_arguments instead of looking
34193 up for teams and thread limit.
34194 (grid_expand_omp_for_loop): New function.
34195 (grid_arg_decl_map): New type.
34196 (grid_remap_kernel_arg_accesses): New function.
34197 (grid_expand_target_kernel_body): New function.
34198 (expand_omp): Call it.
34199 (lower_omp_for): Do not emit phony constructs.
34200 (lower_omp_taskreg): Do not emit phony constructs but create for them
34201 a temporary variable receiver_decl.
34202 (lower_omp_taskreg): Do not emit phony constructs.
34203 (lower_omp_teams): Likewise.
34204 (lower_omp_grid_body): New function.
34205 (lower_omp_1): Call it.
34206 (grid_reg_assignment_to_local_var_p): New function.
34207 (grid_seq_only_contains_local_assignments): Likewise.
34208 (grid_find_single_omp_among_assignments_1): Likewise.
34209 (grid_find_single_omp_among_assignments): Likewise.
34210 (grid_find_ungridifiable_statement): Likewise.
34211 (grid_target_follows_gridifiable_pattern): Likewise.
34212 (grid_remap_prebody_decls): Likewise.
34213 (grid_copy_leading_local_assignments): Likewise.
34214 (grid_process_kernel_body_copy): Likewise.
34215 (grid_attempt_target_gridification): Likewise.
34216 (grid_gridify_all_targets_stmt): Likewise.
34217 (grid_gridify_all_targets): Likewise.
34218 (execute_lower_omp): Call grid_gridify_all_targets.
34219 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34220 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34221 (tree_omp_clause): Added union field dimension.
34222 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34223 * tree.c (omp_clause_num_ops): Added number of arguments of
34224 OMP_CLAUSE__GRIDDIM_.
34225 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34226 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34227 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34228 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34229 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34230 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34231 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34232 * tree-pass.h (make_pass_gen_hsail): Declare.
34233 (make_pass_ipa_hsa): Likewise.
34234 * ipa-hsa.c: New file.
34235 * lto-section-in.c (lto_section_name): Add hsa section name.
34236 * lto-streamer.h (lto_section_type): Add hsa section.
34237 * timevar.def (TV_IPA_HSA): New.
34238 * hsa-brig-format.h: New file.
34239 * hsa-brig.c: New file.
34240 * hsa-dump.c: Likewise.
34241 * hsa-gen.c: Likewise.
34242 * hsa.c: Likewise.
34243 * hsa.h: Likewise.
34244 * toplev.c (compile_file): Call hsa_output_brig.
34245 * hsa-regalloc.c: New file.
34246
34247 2016-01-18 Jeff Law <law@redhat.com>
34248
34249 PR tree-optimization/69320
34250 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34251 ranged object, do nothing if the RHS constant is not [0..1].
34252 (optimize_stmt): Comparing a boolean ranged object against a
34253 constant outside [0..1] results in a compile-time constant.
34254
34255 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34256 test.
34257
34258 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34259
34260 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34261 (Option Summary): Update to reflect new section and moved options.
34262 (C++ Dialect Options): Move -fstats to new section.
34263 (Debugging Options): Move all dump, statistics, and other GCC
34264 developer options to new section. Rewrite section introduction
34265 and re-order remaining options to put the more basic ones first.
34266 (Optimization Options): Move -fira-verbose and -flto-report* to
34267 new section.
34268 (Developer Options): New section incorporating moved options.
34269 * doc/cppopts.texi (-dM): Update cross-reference.
34270
34271 2016-01-18 Richard Henderson <rth@redhat.com>
34272
34273 PR target/69176
34274 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34275 operands to pseudo only if CSE is expected. Split long immediate
34276 operands only after reload, and for the stack pointer.
34277 (*add<GPI>3_pluslong): Remove.
34278 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34279 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34280 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34281 (*add<GPI>3 peepholes): New.
34282 (*add<GPI>3 splitters): New.
34283 * config/aarch64/constraints.md (Upl): New.
34284 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34285
34286 2016-01-18 Richard Biener <rguenther@suse.de>
34287
34288 PR tree-optimization/69297
34289 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34290 stmt at most once.
34291 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34292
34293 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34294
34295 PR middle-end/68542
34296 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34297 of mixind vector and scalar types.
34298 (fold_relational_const): Add handling of vector
34299 comparison with boolean result.
34300 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34301 comparison of vector operands with boolean result for EQ/NE only.
34302 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34303 (verify_gimple_cond): Likewise.
34304 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34305 valid type of VAL.
34306
34307 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34308
34309 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34310 !TARGET_OCTEON.
34311
34312 2016-01-18 Richard Biener <rguenther@suse.de>
34313
34314 PR middle-end/69308
34315 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34316
34317 2016-01-18 Tom de Vries <tom@codesourcery.com>
34318
34319 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34320
34321 2016-01-18 Tom de Vries <tom@codesourcery.com>
34322
34323 * omp-low.c (set_oacc_fn_attrib): Make extern.
34324 * omp-low.h (set_oacc_fn_attrib): Declare.
34325 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34326 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34327 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34328 Add and handle function parameter oacc_kernels_p.
34329 (find_reduc_addr, get_omp_data_i_param): New function.
34330 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34331 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34332 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34333 Calculate dominance info. Skip loops that are not in a kernels region
34334 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34335 (pass_parallelize_loops::execute): Call parallelize_loops with
34336 oacc_kernels_p argument.
34337 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34338 New member function.
34339 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34340 * passes.def: Add argument to pass_parallelize_loops instantation.
34341
34342 2016-01-18 Tom de Vries <tom@codesourcery.com>
34343
34344 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34345 pass_parallelize_loops to be run outside the loop pipeline.
34346
34347 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34348
34349 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34350 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34351
34352 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34353
34354 PR target/63679
34355 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34356 using get_ref_base_and_extent.
34357 (equal_mem_array_ref_p): New.
34358 (hashable_expr_equal_p): Add call to previous.
34359
34360 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34361
34362 PR target/63679
34363 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34364 (sra_initialize): Allocate disqualified_constants.
34365 (sra_deinitialize): Free disqualified_constants.
34366 (disqualify_candidate): Update disqualified_constants when appropriate.
34367 (create_access): Scan for constant-pool entries as we go along.
34368 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34369 (maybe_add_sra_candidate): Allow constant-pool entries.
34370 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34371 (initialize_constant_pool_replacements): New.
34372 (sra_modify_assign): Avoid mangling assignments created by previous,
34373 and don't generate writes into constant pool.
34374 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34375
34376 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34377
34378 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34379 andnot instruction.
34380 (scalar_chain::convert_op): Likewise.
34381 * config/i386/i386.md (*andndi3_doubleword): New.
34382
34383 2016-01-18 Richard Biener <rguenther@suse.de>
34384
34385 PR tree-optimization/69170
34386 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34387 building a vector from scalar results of a pattern stmt.
34388
34389 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34390
34391 * haifa-sched.c (autopref_multipass_init): Work around
34392 -Wmaybe-uninitialized warning.
34393
34394 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34395
34396 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34397 against the constant 0.
34398
34399 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34400
34401 PR tree-optimization/68799
34402 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34403 look up phi candidates in the statement-candidate map.
34404 (phi_add_costs): Likewise.
34405 (record_phi_increments): Likewise.
34406 (phi_incr_cost): Likewise.
34407 (ncd_with_phi): Likewise.
34408 (all_phi_incrs_profitable): Likewise.
34409
34410 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34411
34412 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34413 -Wmaybe-uninitialized warning.
34414
34415 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34416
34417 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34418 (Option Summary): Update to reflect new section and moved options.
34419 (C++ Dialect Options): Move -fvtable-verify and related options.
34420 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34421 and profiling-related options.
34422 (Optimization Options): Move profile generation options and
34423 -fstack-protector and related options.
34424 (Instrumentation Options): New section incorporating moved options.
34425 (Code Generation Options): Move -finstrument-functions and
34426 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34427
34428 2016-01-16 Tom de Vries <tom@codesourcery.com>
34429
34430 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34431
34432 2016-01-16 Tom de Vries <tom@codesourcery.com>
34433
34434 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34435
34436 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34437
34438 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34439 that checks whether the table is already empty. Rename the
34440 original implementation to...
34441 (hash_table::empty_slot): ...this new private function.
34442
34443 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34444
34445 PR diagnostic/68899
34446 * diagnostic-show-locus.c (layout::print_source_line): Move x
34447 offset of line until after call to
34448 get_line_width_without_trailing_whitespace.
34449
34450 2016-01-15 Jeff Law <law@redhat.com>
34451
34452 PR tree-optimization/69270
34453 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34454 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34455 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34456 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34457 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34458 ssa_name_has_boolean_range and constant_boolean_node.
34459
34460 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34461
34462 PR rtl-optimization/69030
34463 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34464 returning bool.
34465 (spill_pseudos): Delete debug insn for dead pseudo.
34466 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34467
34468 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34469
34470 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34471 New.
34472 (TYPES_UNOPUS): Likewise.
34473 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34474 builtin type, from UNOP to UNOPUS.
34475 (lbtruncuv4sf): Likewise.
34476 (lbtruncuv2df): Likewise.
34477 (lrounduv2sf): Likewise.
34478 (lrounduv4sf): Likewise.
34479 (lrounduv2df): Likewise.
34480 (lroundusf): Likewise.
34481 (lroundusf): Likewise.
34482 (lceiluv2sf): Likewise.
34483 (lceiluv4sf): Likewise.
34484 (lceiluv2df): Likewise.
34485 (lceilusf): Likewise.
34486 (lceiludf): Likewise.
34487 (lflooruv2sf): Likewise.
34488 (lflooruv4sf): Likewise.
34489 (lflooruv2df): Likewise.
34490 (lfloorusf): Likewise.
34491 (lfloorudf): Likewise.
34492 (lfrintnuv2sf): Likewise.
34493 (lfrintnuv4sf): Likewise.
34494 (lfrintnuv2df): Likewise.
34495 (lfrintnusf): Likewise.
34496 (lfrintnudf): Likewise.
34497 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34498 conversion.
34499 (vcvtq_u32_f32): Likewise.
34500 (vcvtq_u64_f64): Likewise.
34501 (vcvta_u32_f32): Likewise.
34502 (vcvtaq_u32_f32): Likewise.
34503 (vcvtaq_u64_f64): Likewise.
34504 (vcvtm_u32_f32): Likewise.
34505 (vcvtmq_u32_f32): Likewise.
34506 (vcvtmq_u64_f64): Likewise.
34507 (vcvtn_u32_f32): Likwise.
34508 (vcvtnq_u32_f32): Likewise.
34509 (vcvtnq_u64_f64): Likewise.
34510 (vcvtp_u32_f32): Likewise.
34511 (vcvtpq_u32_f32): Likewise.
34512 (vcvtpq_u64_f64): Likewise.
34513 (vcvtmd_u64_f64): Likewise.
34514 (vcvtms_u32_f32): Likewise.
34515 (vcvtad_u64_f64): Likewise.
34516 (vcvtas_u32_f32): Likewise.
34517 (vcvtnd_u64_f64): Likewise.
34518 (vcvtns_u32_f32): Likewise.
34519 (vcvtpd_u64_f64): Likewise.
34520 (vcvtps_u32_f32): Likewise.
34521
34522 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34523
34524 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34525 CSEL of zero_extended registers.
34526
34527 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34528
34529 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34530 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34531
34532 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34533
34534 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34535 false when argument string is not found in the attributes table
34536 at all.
34537
34538 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34539
34540 PR target/68609
34541 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34542 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34543 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34544 precision estimate.
34545
34546 2016-01-15 Richard Biener <rguenther@suse.de>
34547
34548 PR tree-optimization/66856
34549 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34550 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34551 (vect_create_new_slp_node): Increment stmt reference count.
34552 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34553 an SLP tree before swapping operands.
34554 (vect_build_slp_tree): Likewise.
34555 (destroy_bb_vec_info): Free stmt info after SLP instances.
34556 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34557 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34558 (STMT_VINFO_NUM_SLP_USES): New macro.
34559
34560 2016-01-15 Richard Biener <rguenther@suse.de>
34561
34562 PR debug/69137
34563 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34564 (add_linkage_name): ... here.
34565 (gen_typedef_die): Use add_linkage_name_raw instead of
34566 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34567 if necessary.
34568
34569 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34570
34571 * gimplify.c (oacc_default_clause): Decode reference and pointer
34572 types for both kernels and parallel regions.
34573
34574 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34575
34576 PR middle-end/69246
34577 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34578
34579 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34580
34581 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34582 (convert_scalars_to_vector): Likewise.
34583
34584 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34585
34586 * doc/extend.texi (Type Traits): Fix grammar.
34587
34588 2016-01-15 Martin Jambor <mjambor@suse.cz>
34589
34590 * tree-inline.c (remap_decl): Use existing dclarations if
34591 remapping a type and prevent_decl_creation_for_types.
34592 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34593 decls first. Do real remapping with
34594 prevent_decl_creation_for_types set.
34595 * tree-inline.h (copy_body_data): New field
34596 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34597 padding.
34598
34599 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34600
34601 * config/s390/s390.opt (mmvcle): More verbose help text.
34602
34603 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34604
34605 * config/s390/s390.opt: Add period to -mzvector option text.
34606
34607 2016-01-15 Richard Biener <rguenther@suse.de>
34608
34609 PR tree-optimization/68961
34610 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34611 of invariants in stores again.
34612
34613 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34614
34615 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34616
34617 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34618
34619 * config/i386/i386.c (ix86_expand_branch): Don't split
34620 DI mode xor instruction to SI mode.
34621
34622 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34623
34624 PR ipa/68148
34625 * ipa-icf.c (sem_function::merge): Virtual functions may become
34626 reachable even if they address is not taken and there are no
34627 idrect calls.
34628
34629 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34630
34631 * lto-streamer-out.c (subtract_estimated_size): New function.
34632 (get_symbol_initial_value): Use it.
34633
34634 2016-01-15 Christian Bruel <christian.bruel@st.com>
34635
34636 PR target/65837
34637 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34638 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34639 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34640 use add_builtin_function_ext_scope instead of add_builtin_function.
34641 (neon_set_p, neon_crypto_set_p): Remove.
34642 (arm_init_builtins): Always call arm_init_neon_builtins and
34643 arm_init_crypto_builtins.
34644 (arm_expand_builtin): Check that builtins are allowed for the arch.
34645 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34646 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34647 arm_init_neon_builtins call.
34648
34649 2016-01-15 Richard Biener <rguenther@suse.de>
34650
34651 PR tree-optimization/69117
34652 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34653 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34654 of the leader conservatively.
34655 (free_scc_vn): Restore original SSA name infos.
34656
34657 2016-01-14 Jeff Law <law@redhat.com>
34658
34659 PR tree-optimization/69270
34660 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34661 single bit of precision, verify it's also unsigned.
34662 (record_edge_info): Use constant_boolean_node rather than fold_convert
34663 to convert boolean_true/boolean_false to the right type.
34664
34665 2016-01-14 Richard Henderson <rth@redhat.com>
34666
34667 PR rtl-opt/69014
34668 * loop-doloop.c (record_reg_sets): New.
34669 (doloop_optimize): Reject the transform if the sequence
34670 clobbers registers live at the end of the loop block.
34671 (doloop_optimize_loops): Enable df_live if needed.
34672
34673 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34674
34675 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34676 * config/rs6000/rs6000.c: Likewise.
34677 * config/rs6000/rs6000.h: Likewise.
34678 * config/rs6000/rs6000.md: Likewise.
34679 * doc/extend.texi: Likewsie.
34680
34681 2016-01-14 Jeff Law <law@redhat.com>
34682
34683 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34684 typo.
34685
34686 2016-01-14 Richard Henderson <rth@redhat.com>
34687
34688 PR c/69272
34689 PR tree-opt/68964
34690 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34691 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34692 instead of builtin_decl_declared_p to test for declaration.
34693
34694 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34695
34696 * doc/loop.texi (Loop Analysis and Representation): Document
34697 loop_depth function.
34698
34699 2016-01-14 Tom de Vries <tom@codesourcery.com>
34700
34701 PR tree-optimization/68773
34702 * omp-low.c (expand_omp_target): Don't set force_output.
34703 * varpool.c (varpool_node::get_create): Same.
34704 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34705 offload_funcs with force_output.
34706
34707 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34708
34709 PR debug/69244
34710 * lra-eliminations.c (move_plus_up): Don't change anything if either
34711 the outer or inner subreg mode is not MODE_INT.
34712 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34713 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34714
34715 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34716
34717 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34718 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34719 reduc_uplus_@var{m}): Remove.
34720 * expr.c (expand_expr_real_2): Remove expansion path for
34721 reduc_[us](min|max|plus) optabs.
34722 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34723 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34724 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34725 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34726 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34727 reduc_[us](min|max|plus) optabs.
34728
34729 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34730
34731 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34732 (reduc_plus_scal_v2sf): New.
34733 (reduc_smax_v2sf): Rename to...
34734 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34735 (reduc_smin_v2sf): Rename to...
34736 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34737
34738 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34739
34740 * alias.c (compare_base_symbol_refs): New function.
34741 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34742 it.
34743
34744 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34745
34746 PR middle-end/68146
34747 PR tree-optimization/69155
34748 * tree-complex.c: Include cfganal.h.
34749 (phis_to_revisit): New variable.
34750 (extract_component): Add phiarg_p argument. Assert that returned
34751 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34752 (update_phi_components): Partly rewrite to use loop over real/imag
34753 components instead of code duplication. If extract_component returns
34754 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34755 create_tmp_reg into the PHI node instead, and mention the phi triplet
34756 in phis_to_revisit.
34757 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34758 in phis_to_revisit at the end.
34759
34760 2016-01-14 Richard Biener <rguenther@suse.de>
34761
34762 PR tree-optimization/68060
34763 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34764 outer loop reduction is only used in the inner loop before
34765 detecting a double reduction.
34766
34767 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34768
34769 PR target/68269
34770 * combine.c (expand_field_assignment): Punt if compute_mode is
34771 unsupported scalar mode.
34772
34773 2016-01-14 Richard Biener <rguenther@suse.de>
34774
34775 PR tree-optimization/66856
34776 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34777 SLP node only if it built successfully.
34778 (vect_analyze_slp_instance): Adjust.
34779
34780 2016-01-14 Jeff Law <law@redhat.com>
34781
34782 PR tree-optimization/69270
34783 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34784 (record_edge_info): Use it. Convert boolean_{true,false}_node
34785 to the type of op0.
34786
34787 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34788
34789 PR ipa/66487
34790 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34791 use block_ultimate_origin
34792 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34793
34794 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34795
34796 * doc/invoke.texi (Submodel Options): Rename section to
34797 "Machine-Dependent Options" to better reflect its content.
34798 Rewrite introductory text to remove archaic CPU names.
34799 Update references.
34800
34801 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34802
34803 * doc/invoke.texi (Code Gen Options): Move section up in file,
34804 before target-specific options. Update menu and option summary
34805 to reflect the new section ordering.
34806
34807 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34808
34809 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34810 (C++ Dialect Options): Add cross-reference to -std option.
34811 * doc/standards.texi (C++ Language): Document C++14 support.
34812
34813 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34814
34815 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34816 for pack/unpack functions for __ibm128.
34817 (PACK_IF): Likewise.
34818 (UNPACK_IF): Likewise.
34819
34820 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34821 support for __ibm128 pack/unpack functions.
34822 (rs6000_invalid_builtin): Likewise.
34823 (rs6000_init_builtins): Likewise.
34824 (rs6000_opt_masks): Likewise.
34825
34826 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34827 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34828 functions
34829 (RS6000_BTM_COMMON): Likewise.
34830
34831 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34832 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34833 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34834 128-bit floating point. Add support for the double values to be
34835 in Altivec registers for TF/IF packing and unpacking, but restrict
34836 TD packing sub-fields to be FPR registers. Don't allow overlapped
34837 register support for packing. Allow pack inputs to be memory
34838 locations. Don't build generator functions for unpack<mode>_dm
34839 and unpack<mode>_nodm.
34840 (unpack<mode>_dm): Likewise.
34841 (unpack<mode>_nodm): Likewise.
34842 (pack<mode>): Likewise.
34843
34844 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34845 built-in functions to pack/unpack explicit __ibm128 values.
34846 (__builtin_unpack_ibm128): Likewise.
34847
34848 * doc/extend.texi (PowerPC Built-in Functions): Document
34849 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34850
34851 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34852
34853 PR c/66208
34854 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34855 Add new arg loc and pass it down as context.
34856 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
34857 to the location to use for the warning.
34858 (check_function_arguments): New arg loc. All callers changed. Pass
34859 it to check_function_nonnull.
34860 * c-common.h (check_function_arguments): Adjust declaration.
34861
34862 2016-01-13 Jakub Jelinek <jakub@redhat.com>
34863
34864 PR tree-optimization/69156
34865 * gimple.c (validate_type): Removed.
34866 (gimple_builtin_call_types_compatible_p): Use
34867 useless_type_conversion_p instead of validate_type.
34868 * value-prof.c (gimple_stringop_fixed_value): Fold
34869 icall_size to correct type.
34870
34871 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34872
34873 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
34874 effects.
34875
34876 2016-01-13 Richard Henderson <rth@redhat.com>
34877
34878 PR tree-opt/68964
34879 * target.def (builtin_tm_load, builtin_tm_store): Remove.
34880 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
34881 (ix86_builtin_tm_store): Remove.
34882 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34883 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34884 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
34885 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
34886 * doc/tm.texi: Rebuild.
34887
34888 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
34889 (BUILT_IN_TM_MEMCPY_RTWN): New.
34890 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
34891 fallback from vector to integer helpers.
34892 (build_tm_load): Handle vector types directly, instead of
34893 via target hook.
34894 (build_tm_store): Likewise.
34895 (expand_assign_tm): Prepare for register types not handled by
34896 the above. Copy them to memory and use memcpy.
34897 * tree.c (tm_define_builtin): New.
34898 (find_tm_vector_type): New.
34899 (build_tm_vector_builtins): New.
34900 (build_common_builtin_nodes): Call it.
34901
34902 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
34903
34904 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
34905 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
34906
34907 2016-01-13 Tom de Vries <tom@codesourcery.com>
34908
34909 PR tree-optimization/69169
34910 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
34911 handled_struct_type param.
34912 (create_variable_info_for, intra_create_variable_infos): Call
34913 create_variable_info_for_1 with extra arg.
34914
34915 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
34916
34917 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
34918 and "armv8.1-a+crc" entries.
34919
34920 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
34921
34922 PR target/69228
34923 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
34924 Change first operand predicate from register_or_constm1_operand
34925 to register_operand.
34926 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
34927 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
34928 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
34929 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
34930 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
34931 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
34932 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
34933 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
34934 comparison with constm1_rtx from vec_prefetch_gen part.
34935
34936 2016-01-13 Richard Biener <rguenther@suse.de>
34937
34938 PR tree-optimization/69013
34939 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
34940 Exchange assert for a test.
34941
34942 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
34943
34944 PR target/69247
34945 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
34946
34947 2016-01-13 Richard Biener <rguenther@suse.de>
34948
34949 PR tree-optimization/69242
34950 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
34951 assert with a check.
34952
34953 2016-01-13 Richard Biener <rguenther@suse.de>
34954
34955 PR tree-optimization/69186
34956 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
34957 Properly guard vect_update_misalignment_for_peel call.
34958
34959 2016-01-12 Jeff Law <law@redhat.com>
34960
34961 PR tree-optimization/pr67755
34962 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
34963 "need_profile_correction".
34964 (thread_block_1): Initialize new field to false by default. If we
34965 have multiple thread paths through a common joiner to different
34966 final targets, then set new field to true.
34967 (compute_path_counts): Only do count adjustment when it's really
34968 needed.
34969
34970 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34971
34972 * doc/invoke.texi (Spec Files): Move section down in file, past
34973 all command-line option descriptions.
34974
34975 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34976
34977 PR middle-end/54809
34978 * doc/gty.texi: Remove documentation of mark_hook.
34979 * gengtype.c (struct write_types_data): Remove code to support
34980 mark_hook attribute.
34981 (walk_type): Likewise.
34982 (write_func_for_structure): Likewise.
34983
34984 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
34985
34986 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
34987 Directory Options, and -specs= to Overall Options.
34988 (Overall Options): Adjust similarly. Reorder to group related
34989 options together. Make -specs= cross-reference the spec file details.
34990 (Directory Options): Adjust similarly.
34991
34992 2016-01-12 Jeff Law <law@redhat.com>
34993
34994 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
34995
34996 2016-01-12 Olivier Hainque <hainque@adacore.com>
34997
34998 * gcc.c (spec_undefvar_allowed): New global.
34999 (process_command): Set to true when running for --version or --help,
35000 alone or together.
35001 (getenv_spec_function): When the variable is not defined, use the
35002 variable name as the variable value if we're allowed not to issue
35003 a fatal error.
35004
35005 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35006
35007 PR tree-optimization/68911
35008 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35009 information computed for expression "init + nit * step".
35010
35011 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35012
35013 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35014 about name of GCC executable. Remove deleted node from menu.
35015 (Directory Options) <-B>: Remove cross-reference to deleted node.
35016 (Target Options): Delete section.
35017
35018 2016-01-12 Christian Bruel <christian.bruel@st.com>
35019
35020 PR target/69180
35021 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35022 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35023
35024 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35025
35026 PR target/69198
35027 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35028 aligned_mem is properly set for AVX512-VL floating point masked
35029 stores.
35030
35031 PR target/69175
35032 * ifcvt.c (cond_exec_process_if_block): When removing the last
35033 insn from then_bb, remove also any possible barriers that follow it.
35034
35035 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35036
35037 PR target/68456
35038 PR target/69226
35039 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35040 (PTRDIFF_TYPE): Likewise.
35041 (WCHAR_TYPE): Likewise.
35042 (WCHAR_TYPE_SIZE): Likewise.
35043 (STDINT_LONG32): Likewise.
35044
35045 2016-01-12 Richard Biener <rguenther@suse.de>
35046
35047 PR tree-optimization/69053
35048 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35049 convert initial value for cond reductions.
35050
35051 2016-01-12 Richard Biener <rguenther@suse.de>
35052
35053 PR tree-optimization/69007
35054 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35055 widen_sum after dot_prod and sad.
35056
35057 2016-01-12 Richard Biener <rguenther@suse.de>
35058
35059 PR tree-optimization/69168
35060 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35061 pattern stmt SLP type.
35062 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35063 end up unused so cope with that case.
35064
35065 2016-01-12 Richard Biener <rguenther@suse.de>
35066
35067 PR tree-optimization/69157
35068 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35069 stmts def type only during analyze phase.
35070 (vectorizable_call): Likewise.
35071 (vectorizable_simd_clone_call): Likewise.
35072 (vectorizable_conversion): Likewise.
35073 (vectorizable_assignment): Likewise.
35074 (vectorizable_shift): Likewise.
35075 (vectorizable_operation): Likewise.
35076 (vectorizable_store): Likewise.
35077 (vectorizable_load): Likewise.
35078
35079 2016-01-12 Richard Biener <rguenther@suse.de>
35080
35081 PR tree-optimization/69174
35082 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35083 space.
35084 (vectorizable_load): Properly compute the number of loads needed
35085 for permuted strided SLP loads and do not spuriously assign
35086 to SLP_TREE_VEC_STMTS.
35087
35088 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35089
35090 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35091 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35092 (MD_EXEC_PREFIX): Remove.
35093 (MD_STARTFILE_PREFIX) Removee.
35094 (FILE_NAME_ABSOLUTE_P): Remove.
35095 (CPP_SPEC): Do not read macros from sys/version.h.
35096 (LINK_COMMAND_SPEC): Remove.
35097 (LOCAL_INCLUDE_DIR): Remove.
35098 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35099 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35100 (POST_LINK_SPEC): Define to invoke stubify after linker
35101 (LIBSTDCXX): Remove define
35102 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35103 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35104 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35105 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35106 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35107 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35108 (i386_djgpp_asm_named_section): Add propotype of new procedure
35109
35110 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35111 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35112 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35113 in config/i386/djgpp.h).
35114 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35115 STANDARD_STARTFILE_PREFIX_1.
35116 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35117 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35118 installation errors.
35119 (MAX_OFILE_ALIGNMENT): Define to 128.
35120 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35121
35122 * config/i386/djgpp.c: New file. Add implementation of
35123 i386_djgpp_asm_named_section.
35124
35125 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35126
35127 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35128 Add rule for building djgpp.o.
35129
35130 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35131
35132 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35133 (rtx_is_swappable_p): Reductions are swappable.
35134 (insn_is_swappable_p): V2DF reductions are swappable.
35135
35136 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35137
35138 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35139 reloads for other unsupported memory operands.
35140
35141 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35142 Jim Wilson <jim.wilson@linaro.org>
35143
35144 PR target/69194
35145 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35146 copy_to_mode_reg instead of force_reg.
35147
35148 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35149
35150 PR target/69225
35151 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35152 TARGET_80387 is true.
35153
35154 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35155
35156 PR target/69071
35157 * lra-eliminations.c (move_plus_up): Only move plus up
35158 if subreg of the constant can be simplified into constant
35159 and use the simplified subreg of the constant instead of
35160 the original constant.
35161
35162 * fold-const.c (fold_convertible_p): Don't return true
35163 for conversion of VECTOR_TYPE to same sized integral type.
35164 (fold_convert_loc): Fix up formatting. Fold conversion of
35165 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35166 instead of NOP_EXPR.
35167
35168 PR tree-optimization/69214
35169 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35170 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35171 Formatting fix.
35172
35173 PR tree-optimization/69207
35174 * tree-vect-slp.c (vect_get_constant_vectors): For
35175 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35176 fold_convertible_p to vector_type's element type, and always
35177 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35178
35179 2016-01-11 Richard Biener <rguenther@suse.de>
35180
35181 PR tree-optimization/69173
35182 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35183 fixup the cycle if all stmts are in a pattern.
35184
35185 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35186
35187 PR middle-end/68999
35188 * alias.c (base_alias_check): Move check for addresses with
35189 alignment ANDs before the call for compare_base_decls.
35190 (memrefs_conflict_p): Return -1 for different decls
35191 that went through alignment adjustments.
35192
35193 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35194
35195 PR rtl-optimization/68796
35196 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35197 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35198 and QImode comparisons against zero with CC_NZmode.
35199 * config/aarch64/iterators.md (short_mask): New mode_attr.
35200
35201 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35202
35203 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35204 (<avx512>_store<mode>_mask): Likewise.
35205
35206 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35207 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35208
35209 PR rtl-optimization/68841
35210 * ifcvt.c (struct noce_if_info): Add orig_x field.
35211 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35212 Don't record conflicts on to_rename if it's present.
35213 Allow memory destinations in sets.
35214 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35215 blocks, passing orig_x to the checks.
35216 (noce_process_if_block): Set if_info->orig_x appropriately.
35217
35218 2016-01-11 Tom de Vries <tom@codesourcery.com>
35219
35220 PR tree-optimization/69069
35221 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35222
35223 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35224
35225 PR rtl-optimization/68920
35226 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35227 of conditional moves for RTL if-conversion to 1 for
35228 TARGET_ONE_IF_CONV_INSN.
35229 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35230 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35231 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35232 parameter to restirct number of conditional moves for
35233 RTL if-conversion.
35234 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35235 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35236 conditionl moves.
35237
35238 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35239
35240 PR bootstrap/69123
35241 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35242 onepart vars. Fix typo in comment. Fix reversed condition in
35243 unshare test.
35244 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35245
35246 PR bootstrap/69123
35247 * var-tracking.c (dump_onepart_variable_differences): New.
35248 (dataflow_set_different): If a detailed dump is requested,
35249 delay early returns and dump differences between onepart
35250 variables present before and after, and added variables.
35251
35252 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35253
35254 PR target/69010
35255 * expr.c (expand_expr_real_1): For boolean vector constants
35256 with a scalar mode use const_scalar_mask_from_tree.
35257 (const_scalar_mask_from_tree): New.
35258 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35259 assigned to a mask type to handle constants.
35260
35261 2016-01-11 Martin Jambor <mjambor@suse.cz>
35262
35263 PR ipa/69044
35264 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35265 useless parameters if we cannot change function signature.
35266
35267 2016-01-11 Martin Jambor <mjambor@suse.cz>
35268
35269 PR ipa/66616
35270 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35271 flag.
35272
35273 2016-01-11 Tom de Vries <tom@codesourcery.com>
35274
35275 PR tree-optimization/69109
35276 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35277 latch with phi.
35278
35279 2016-01-11 Tom de Vries <tom@codesourcery.com>
35280
35281 PR tree-optimization/69108
35282 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35283 res is not used in a phi.
35284
35285 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35286
35287 PR 67425
35288 * common.opt (frandom-seed): Fix parameter name.
35289 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35290
35291 2016-01-11 Tom de Vries <tom@codesourcery.com>
35292
35293 PR tree-optimization/69058
35294 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35295 not supported.
35296
35297 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35298
35299 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35300 (mcode-density): Likewise.
35301
35302 2016-01-10 Tom de Vries <tom@codesourcery.com>
35303
35304 PR tree-optimization/69062
35305 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35306 (parallelize_loops): Don't paralelize loop that has phi with address
35307 arg.
35308
35309 2016-01-10 Tom de Vries <tom@codesourcery.com>
35310
35311 PR tree-optimization/69039
35312 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35313 phi for reduction.
35314
35315 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35316
35317 PR middle-end/68743
35318 * match.pd: Require target has function_c99_misc before doing
35319 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35320
35321 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35322
35323 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35324 use GMPINC.
35325 * configure: Regenerate.
35326
35327 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35328
35329 PR middle-end/50865
35330 PR tree-optimization/69097
35331 * fold-const.h (expr_not_equal_to): New prototype.
35332 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35333 (expr_not_equal_to): New function.
35334 * match.pd (X % -Y is the same as X % Y): Don't optimize
35335 unless X is known not to be equal to minimum or Y is known
35336 not to be equal to -1.
35337 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35338 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35339 (simplify_stmt_using_ranges): Adjust caller.
35340 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35341 substitute_and_fold.
35342
35343 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35344
35345 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35346 w/o DECL_NAME.
35347
35348 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35349
35350 PR tree-optimization/69167
35351 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35352 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35353 ops[0] comparison.
35354 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35355
35356 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35357 Richard Biener <rguenther@suse.de>
35358
35359 PR tree-optimization/68707
35360 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35361 instances that can be handled via vect_load_lanes.
35362
35363 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35364
35365 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35366 if we can't determine address equivalence.
35367 * alias.c (compare_base_decl): Update for changed return value of
35368 symtab_node::equal_address_to.
35369
35370 2016-01-08 Jason Merrill <jason@redhat.com>
35371
35372 PR c++/68983
35373 PR c++/67557
35374 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35375 * expr.c (store_field): Not here.
35376 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35377 call with TREE_ADDRESSABLE type.
35378 * tree-cfg.c (verify_gimple_call): Adjust.
35379
35380 2016-01-08 Olivier Hainque <hainque@adacore.com>
35381
35382 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35383 libc_internal.
35384
35385 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35386
35387 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35388 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35389 (reduc_smin_v2sf): Rename to...
35390 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35391 (reduc_splus_v2sf): Rename to...
35392 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35393
35394 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35395
35396 PR tree-optimization/69162
35397 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35398 valist argument in another argument.
35399 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35400 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35401 to determine the va_list type, build a MEM_REF instead of
35402 build_fold_indirect_ref.
35403
35404 PR tree-optimization/69172
35405 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35406 gimple_build.
35407
35408 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35409
35410 PR tree-optimization/67781
35411 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35412 and cmpnop in two steps: first the ones not accessed in original
35413 gimple expression in a endian independent way and then the ones not
35414 accessed in the final result in an endian-specific way.
35415
35416 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35417
35418 PR tree-optimization/69083
35419 * tree-vect-slp.c (vect_get_constant_vectors): For
35420 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35421 element type. If op is fold_convertible_p to vector_type's element
35422 type, use NOP_EXPR instead of VCE.
35423
35424 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35425
35426 PR rtl-optimization/67778
35427 PR rtl-optimization/68634
35428 PR rtl-optimization/68909
35429 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35430 block from the stack until done with it. Remove a superfluous
35431 bitmap set. Remove a superfluous bitmap test.
35432
35433 2016-01-07 Martin Sebor <msebor@redhat.com>
35434
35435 PR c/68966
35436 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35437 constraint on the type of arguments.
35438
35439 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35440
35441 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35442 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35443 unaligned_access on the gcc_options set.
35444 * config/arm/arm.c (arm_option_override_internal): Use
35445 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35446
35447 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35448
35449 PR target/69140
35450 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35451 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35452
35453 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35454
35455 Revert
35456 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35457
35458 PR target/69140
35459 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35460 depending on frame_pointer_needed before remaining integer and SSE
35461 registers are saved.
35462
35463 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35464
35465 PR 1078
35466 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35467
35468 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35469
35470 PR target/69171
35471 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35472 Use the "xBm" constraint.
35473 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35474 Likewise.
35475 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35476 (sse_cvtsi2ssq<round_name>): Likewise.
35477 (sse_cvtss2si<round_name>): Likewise.
35478 (sse_cvtss2siq<round_name>): Likewise.
35479 (sse2_cvtsi2sdq<round_name>): Likewise.
35480 (sse2_cvtsd2si<round_name>): Likewise.
35481 (sse2_cvtsd2siq<round_name>): Likewise.
35482 * config/i386/subst.md (round_nimm_scalar_predicate): New
35483 predicate.
35484
35485 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35486
35487 PR middle-end/67639
35488 * varasm.c (make_decl_rtl): Mark invalid register vars as
35489 DECL_EXTERNAL.
35490
35491 PR rtl-optimization/66206
35492 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35493 All callers changed.
35494
35495 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35496
35497 PR tree-optimization/69141
35498 * tree-ssa-pre.c: Include langhooks.h.
35499 (eliminate_dom_walker::before_dom_children): Use
35500 lang_hooks.decl_printable_name instead of
35501 cgraph_node::get ()->name ().
35502
35503 PR middle-end/68960
35504 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35505 it and DECL_ALIGN too.
35506
35507 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35508
35509 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35510
35511 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35512
35513 PR target/69140
35514 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35515 depending on frame_pointer_needed before remaining integer and SSE
35516 registers are saved.
35517
35518 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35519
35520 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35521 mode iterator with VSX_M2.
35522 (*p9_vecstore_<mode>): Likewise.
35523 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35524 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35525 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35526 (define_split for VSX_LE128 stores): Likewise.
35527 (define_peephole2 for TImode LE swaps): Likewise.
35528 (define_split for VSX_LE128 post-reload stores): Likewise.
35529
35530 2016-01-06 Marek Polacek <polacek@redhat.com>
35531
35532 PR sanitizer/69099
35533 * convert.c (convert_to_integer_1): Adjust call to
35534 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35535 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35536 EXPR instead of ARG.
35537 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35538
35539 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35540
35541 PR 1078
35542 * doc/extend.texi (RL78 Variable Attributes): New section.
35543
35544 2016-01-05 Marek Polacek <polacek@redhat.com>
35545
35546 PR c/69104
35547 * builtins.c (get_memmodel): Use expansion point location rather than
35548 the input location. Call warning_at rather than warning.
35549 (expand_builtin_atomic_compare_exchange): Likewise.
35550 (expand_builtin_atomic_load): Likewise.
35551 (expand_builtin_atomic_store): Likewise.
35552 (expand_builtin_atomic_clear): Likewise.
35553
35554 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35555
35556 PR target/68991
35557 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35558 Replace nonimmediate_operand with vector_operand.
35559 * config/i386/predicates.md (vector_operand): New predicate.
35560 (general_vector_operand): Replace nonimmediate_operand with
35561 vector_operand.
35562 * config/i386/sse.md: Replace nonimmediate_operand with
35563 vector_operand and m constraint with Bm constraint on SSE
35564 patterns with 16-byte memory operand.
35565 * config/i386/subst.md (round_nimm_predicate): Replace
35566 nonimmediate_operand with vector_operand.
35567 (round_saeonly_nimm_predicate): Likewise.
35568 (round_saeonly_nimm_scalar_predicate): New.
35569
35570 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35571
35572 PR target/68991
35573 * config/i386/constraints.md (Bm): New constraint.
35574 * config/i386/predicates.md (vector_memory_operand): New
35575 predicate.
35576 * config/i386/sse.md: Replace xm with xBm in plusminus and
35577 any_logic patterns.
35578
35579 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35580
35581 PR 1078
35582 * doc/extend.texi (V850 Function Attributes): New section.
35583 (V850 Variable Attributes): New section.
35584
35585 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35586
35587 PR 1078
35588 * doc/extend.texi (MicroBlaze Function Attributes): Document
35589 interrupt_handler and fast_interrupt attributes.
35590
35591 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35592
35593 PR other/60465
35594 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35595 for local symbolic operands.
35596 * config/ia64/predicates.md (local_symbolic_operand64): New
35597 predicate.
35598
35599 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35600
35601 PR rtl-optimization/68651
35602 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35603 x << 1.
35604
35605 2016-01-05 Nathan Sidwell <nathan@acm.org>
35606
35607 * alias.c (compare_base_decls): Use symtab_node::get.
35608
35609 2016-01-05 Nick Clifton <nickc@redhat.com>
35610
35611 PR target/68770
35612 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35613 secondary_reload_info structure.
35614
35615 PR target/66655
35616 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35617 decls if weak support is available.
35618
35619 2016-01-04 Martin Sebor <msebor@redhat.com>
35620
35621 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35622
35623 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35624
35625 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35626 OPTION_MASK_P9_DFORM.
35627
35628 * config/rs6000/constraints.md (wo constraint): New constraint for
35629 ISA 3.0 (power9).
35630
35631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35632 for wo constraint.
35633 (rs6000_init_hard_regno_mode_ok): Likewise.
35634
35635 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35636 wo constraint.
35637
35638 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35639 expanders not to have constraints. Add support for ISA 3.0 xxperm
35640 instruction. Add support for fusing xxlor with xxperm.
35641 (altivec_vperm_<mode>_internal): Likewise.
35642 (altivec_vperm_v8hiv16qi): Likewise.
35643 (altivec_vperm_<mode>v16q): Likewise.
35644 (altivec_vperm_<mode>_uns): Likewise.
35645 (vperm_v8hiv4si): Likewise.
35646 (vperm_v16qiv8hi): Likewise.
35647
35648 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35649
35650 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35651
35652 Update copyright years.
35653
35654 * gcc.c (process_command): Update copyright notice dates.
35655 * gcov-dump.c (print_version): Ditto.
35656 * gcov.c (print_version): Ditto.
35657 * gcov-tool.c (print_version): Ditto.
35658 * gengtype.c (create_file): Ditto.
35659 * doc/cpp.texi: Bump @copying's copyright year.
35660 * doc/cppinternals.texi: Ditto.
35661 * doc/gcc.texi: Ditto.
35662 * doc/gccint.texi: Ditto.
35663 * doc/gcov.texi: Ditto.
35664 * doc/install.texi: Ditto.
35665 * doc/invoke.texi: Ditto.
35666
35667 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35668
35669 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35670 modes larger than TImode as TImode if NEON is not enabled.
35671
35672 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35673
35674 PR target/69100
35675 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35676 mode for %f0-%f31 only if TARGET_FPU.
35677
35678 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35679
35680 PR target/69072
35681 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35682 to compute the PACKED_P predicate.
35683 (function_arg_record_value): Minor tweaks.
35684
35685 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35686
35687 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35688 option for arm*-*-* targets.
35689
35690 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35691
35692 * doc/extend.texi (Common Function Attributes): Move docs for
35693 MSP430-specific attributes to....
35694 (MSP430 Function Attributes): ...here. Delete the redundant
35695 entries and copy-edit the remaining text.
35696 (MSP430 Variable Attributes): Use uniform format for index
35697 entries and add a cross-reference to the corresponding function
35698 attribute docs.
35699
35700 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35701
35702 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35703 -finite-math typo.
35704 (x86 Options): Likewise.
35705
35706 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35707
35708 PR 1078
35709
35710 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35711 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35712 to corresponding attribute.
35713
35714 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35715
35716 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35717 to correct alphabetization of table. Copy-edit and correct
35718 markup.
35719 <stack_protect>: Likewise.
35720 <target_clones>: Likewise.
35721 <simd>: Likewise.
35722 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35723 Correct punctuation.
35724 (Code Gen Options) <-fno-plt>: Copy-edit.
35725
35726 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35727
35728 PR target/68917
35729 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35730 SI values. Explicitly convert SI to DI and vice-versa.
35731
35732 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35733
35734 PR tree-optimization/69070
35735 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35736 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35737
35738 PR sanitizer/69055
35739 * ubsan.c (ubsan_instrument_float_cast): Call
35740 initialize_sanitizer_builtins.
35741
35742 PR target/69015
35743 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35744 \f
35745 Copyright (C) 2016 Free Software Foundation, Inc.
35746
35747 Copying and distribution of this file, with or without modification,
35748 are permitted in any medium without royalty provided the copyright
35749 notice and this notice are preserved.