i386.md (*popcounthi2_1): New insn_and_split pattern.
[gcc.git] / gcc / ChangeLog
1 2016-12-19 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern.
4
5 2016-12-19 Sandra Loosemore <sandra@codesourcery.com>
6
7 * doc/cpp.texi: Clean up anachronistic C99 references and remove
8 discussion of very old GCC versions.
9 (Differences from previous versions): Delete entire section.
10
11 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
12
13 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
14 early expansion of vector multiply and subtract builtins.
15
16 2016-12-19 David Malcolm <dmalcolm@redhat.com>
17
18 * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
19 non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
20 rather than using a '%' prefix.
21 * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
22
23 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
24
25 PR target/78748
26 * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
27 only if it coincides with operand 2.
28
29 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
30
31 * combine.c (change_zero_ext): Skip generation of redundant AND.
32
33 2016-12-19 Krister Walfridsson <krister.walfridsson@gmail.com>
34
35 * config/netbsd.h (LINK_EH_SPEC): Define.
36
37 2016-12-18 Eric Botcazou <ebotcazou@adacore.com>
38
39 * lra-constraints.c (process_address): Add forward declaration.
40 (simplify_operand_subreg): In the MEM case, if the adjusted memory
41 reference is not sufficient aligned and the address was invalid,
42 reload the address before reloading the original memory reference.
43 Fix long lines and add a final return for the sake of clarity.
44
45 2016-12-17 Jakub Jelinek <jakub@redhat.com>
46
47 PR sanitizer/78832
48 * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
49 continue if gsi_next should be skipped.
50 (sanitize_asan_mark_poison): Remove prev variable, use continue if
51 gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
52 first and gsi_remove on a previously made copy of the iterator.
53
54 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
55
56 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
57 * config/i386/avx512dqintrin.h: Ditto.
58 * config/i386/avx512fintrin.h: Ditto.
59 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
60 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
61 __builtin_ia32_kadddi): New.
62 * config/i386/sse.md (kadd<mode>): New.
63
64 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
65
66 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
67 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
68 condition to split after epilogue_completed.
69 (ctz<mode>2): Remove expander.
70 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
71 define_insn_and_split pattern. Adjust split condition to split
72 after epilogue_completed.
73 (clz<mode>2_lznct): Remove expander.
74 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
75 *clz<mode>2 to define_insn_and_split pattern. Adjust split
76 condition to split after epilogue_completed.
77 (<lt_zcnt>_<mode>): Remove expander.
78 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
79 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
80 condition to split after epilogue_completed.
81 (<lt_zcnt>_hi): New insn pattern.
82 (popcount<mode>2): Remove expander.
83 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
84 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
85 condition to split after epilogue_completed.
86 (popcounthi2): New insn pattern.
87
88 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
89
90 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
91 (UNSPEC_CMPRB2): New unspec value.
92 (UNSPEC_CMPEQB): New unspec value.
93 (cmprb): New expansion.
94 (*cmprb_internal): New insn.
95 (*setb_internal): New insn.
96 (cmprb2): New expansion.
97 (*cmprb2_internal): New insn.
98 (cmpeqb): New expansion.
99 (*cmpeqb_internal): New insn.
100 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
101 (BU_P9_64BIT_2): Likewise.
102 (BU_P9_OVERLOAD_2): Likewise.
103 (CMPRB): Add byte-in-range built-in function.
104 (CMBRB2): Add byte-in-either-range built-in function.
105 (CMPEQB): Add byte-in-set built-in function.
106 (CMPRB): Add overload support for byte-in-range function.
107 (CMPRB2): Add overload support for byte-in-either-range function.
108 (CMPEQB): Add overload support for byte-in-set built-in function.
109 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
110 define argument types for new builtin.
111 (P9_BUILTIN_CMPRB2): Likewise.
112 (P9_BUILTIN_CMPEQB): Likewise.
113 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
114 the order of presentation for certain built-in functions
115 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
116 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
117 (scalar_cmp_exp_unordered, scalar_test_data_class)
118 (scalar_test_neg) to improve locality and flow. Document
119 the new __builtin_scalar_byte_in_set,
120 __builtin_scalar_byte_in_range, and
121 __builtin_scalar_byte_in_either_range functions.
122
123 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
124
125 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
126
127 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
128
129 * config/aarch64/aarch64.md: New define_split above insv<mode>.
130
131 2016-12-16 Jakub Jelinek <jakub@redhat.com>
132
133 PR c/78408
134 * tree-ssa-ccp.c: Include tree-dfa.h.
135 (optimize_memcpy): New function.
136 (pass_fold_builtins::execute): Use it. Remove useless conditional
137 break after BUILT_IN_VA_*.
138
139 2016-12-16 Marek Polacek <polacek@redhat.com>
140
141 PR tree-optimization/78819
142 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
143 Don't register an assertion if the default case shares a label with
144 another case.
145
146 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
147
148 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
149 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
150 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
151
152 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
153
154 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
155
156 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
157
158 * config/arc/arc.md (call_prof): Remove.
159 (call_value_prof): Likewise.
160 (sibcall_prof): Likewise.
161 (sibcall_value_prof): Likewise.
162
163 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
164
165 * config/arc/arc.h (LINK_SPEC): Tidy up.
166 (ENDFILE_SPEC): Likewise.
167 (LIB_SPEC): Likewise.
168 (STARTFILE_SPEC): Include gcrt0 when profiling.
169 (FUNCTION_PROFILER): Use __mcount.
170 * config/arc/arc.opt (mucb-mcount): Remove.
171 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
172 * arc/arc-protos.h (arc_profile_call): Remove.
173 * config/arc/arc.c (write_profile_sections): Likewise.
174 (arc_profile_call): Likewise.
175 (unspec_prof_hash): Likewise.
176 (unspec_prof_htab_eq): Likewise.
177 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
178 (arc_reorg): Remove call to write_profile_sections.
179 * config/arc/arc.md (call): Remove call to arc_profile_call.
180 (call_value): Likewise.
181 (sibcall): Likewise.
182 (sibcall_value): Likewise.
183 (define_constants): Remove UNSPEC_PROF.
184
185 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
186
187 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
188 generate new mul64 insn for core multiplication work.
189 (umulsidi_600): Likewise, but use mulu64 insn.
190 (mul64): New pattern, content taken from old mulsidi_600 insn pattern.
191 (mulu64): Likewise, but using umulsidi_600.
192 (mulsidi3): Remove move to destination, this is now handled by
193 mulsidi_600 insn_and_split.
194 (umulsidi3): Likewise, but using umulsidi_600.
195
196 2016-12-16 Richard Biener <rguenther@suse.de>
197
198 PR c++/71694
199 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
200 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
201 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
202 * langhooks.h (struct lang_hooks_for_types): Add
203 unit_size_without_reusable_padding.
204 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
205 * stor-layout.c (finish_bitfield_representative): Use
206 unit_size_without_reusable_padding langhook to decide on the
207 last representatives size.
208
209 2016-12-16 Richard Biener <rguenther@suse.de>
210
211 PR middle-end/71632
212 * expr.c (expand_cond_expr_using_cmove): Bail out early if
213 we end up recursing via TER.
214
215 2016-12-15 Martin Sebor <msebor@redhat.com>
216
217 PR bootstrap/78817
218 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
219 a pointer is non-null.
220
221 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
222
223 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
224 * config/i386/avx512dqintrin.h: Ditto.
225 * config/i386/avx512fintrin.h: Ditto.
226 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
227 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
228 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
229 * config/i386/sse.md (kmov<mskmodesuffix>): New.
230
231 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
232
233 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
234 for TARGET_BMI.
235 (ffssi2_no_cmove): Ditto.
236 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
237 (*tzcnt<mode>_1_falsedep): New insn pattern.
238
239 (LT_ZCNT): New mode iterator.
240 (lt_zcnt): New mode attribute.
241 (lt_zcnt_type): New mode attribute.
242 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
243 lzcnt_<mode> using LT_ZCNT mode iterator.
244 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
245 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
246 using LT_ZCNT mode iterator.
247 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
248 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
249 using LT_ZCNT mode iterator.
250 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
251 and *lzcnt_<mode> using LT_ZCNT mode iterator.
252 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
253 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
254 Update for rename.
255
256 2016-12-15 Jakub Jelinek <jakub@redhat.com>
257
258 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
259 (print_ipcp_constant_value): Likewise.
260 (ipcp_cloning_candidate_p): Likewise.
261 (ipcp_bits_lattice::get_value_and_mask): Likewise.
262 (ipcp_bits_lattice::meet_with_1): Likewise.
263 (ipcp_bits_lattice::meet_with): Likewise.
264 (initialize_node_lattices): Likewise.
265 (ipcp_lattice::add_value): Likewise.
266 (propagate_vals_accross_pass_through): Renamed to ...
267 (propagate_vals_across_pass_through): ... this function.
268 (propagate_vals_accross_ancestor): Renamed to ...
269 (propagate_vals_across_ancestor): ... this.
270 (propagate_scalar_accross_jump_function): Renamed to ...
271 (propagate_scalar_across_jump_function): ... this.
272 Adjust calls to above functions.
273 (propagate_context_accross_jump_function): Renamed to ...
274 (propagate_context_across_jump_function): ... this.
275 (propagate_bits_accross_jump_function): Renamed to ...
276 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
277 (propagate_vr_accross_jump_function): Renamed to ...
278 (propagate_vr_across_jump_function): ... this.
279 (merge_agg_lats_step): Formatting fixes.
280 (propagate_constants_accross_call): Renamed to ...
281 (propagate_constants_across_call): ... this. Adjust calls to above
282 functions.
283 (ipa_get_indirect_edge_target_1): Formatting fixes.
284 (gather_context_independent_values): Likewise.
285 (estimate_local_effects): Likewise.
286 (add_all_node_vals_to_toposort): Likewise.
287 (propagate_constants_topo): Adjust calls to above functions.
288 (get_replacement_map): Formatting fixes.
289 (dump_profile_updates): Likewise.
290 (update_profiling_info): Likewise.
291 (update_specialized_profile): Likewise.
292 (create_specialized_node): Likewise.
293 (find_more_contexts_for_caller_subset): Likewise.
294 (decide_whether_version_node): Likewise.
295 (identify_dead_nodes): Likewise.
296 (ipcp_decision_stage): Likewise.
297 (ipcp_store_bits_results): Likewise.
298 (ipcp_store_vr_results): Likewise.
299 (ipcp_driver): Likewise.
300
301 2016-12-15 David Malcolm <dmalcolm@redhat.com>
302
303 PR preprocessor/78680
304 PR preprocessor/78811
305 * input.c (struct selftest::lexer_test): Add field
306 m_implicitly_expect_EOF.
307 (selftest::lexer_error_sink): New class.
308 (selftest::lexer_error_sink::s_singleton): New global.
309 (selftest::lexer_test::lexer_test): Initialize new field
310 "m_implicitly_expect_EOF".
311 (selftest::lexer_test::~lexer_test): Conditionalize the
312 check for the EOF token on the new field.
313 (selftest::test_lexer_string_locations_raw_string_unterminated):
314 New function.
315 (selftest::input_c_tests): Call the new test.
316
317 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
318
319 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
320 * config/arm/arm.c (arm_option_check_internal): Improve comment.
321 (thumb_force_lr_save): Use crtl->is_leaf.
322 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
323 (thumb_far_jump_used_p): Remove comment.
324 (arm_frame_pointer_required): Use crtl->is_leaf.
325
326 2016-12-15 Jakub Jelinek <jakub@redhat.com>
327
328 * doc/extend.texi: Clean up @xref{...} uses.
329 * doc/invoke.texi: Likewise.
330
331 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
332
333 * arm-fpus.def: Add CNAME field to all FPU definitions.
334 * genopt.sh: Use explicit enumeration tags for FPU entries.
335 * arm-tables.opt: Regenerated.
336 * arm.opt (mfpu): Provide initial value.
337 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
338 available FPUs. Add 'auto' entry on the end.
339 * arm.c (arm_configure_build_target): Only do explicit configuration
340 of the FPU features if the selected FPU is not 'auto'.
341 (arm_option_override): Adjust initialization of arm_fpu_index.
342 Emit an error if we have a hard float ABI request, but the processor
343 does not support floating-point.
344 (arm_option_print): Handle -mfpu=auto.
345 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
346 or function attributes.
347 (arm_identify_fpu_from_isa): Handle effective soft-float when
348 the FPU is automatically detected.
349 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
350 (arm1176jzf-s): Likewise.
351 (mpcore): Likewise.
352 (arm1156t2f-s): Likewise.
353
354 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
355
356 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
357 * arm.h (arm_fpu_feature_set): Delete typedef.
358 (FPU_FL_NONE): Delete.
359 (FPU_FL_NEON): Delete.
360 (FPU_FL_FP16): Delete.
361 (FPU_FL_CRYPTO): Delete.
362 (FPU_FL_DBL): Delete.
363 (FPU_FL_D32): Delete.
364 (FPU_FL_VFPv2): Delete.
365 (FPU_FL_VFPv3): Delete.
366 (FPU_FL_VFPv4): Delete.
367 (FPU_FL_VFPv5): Delete.
368 (FPU_FL_AMRv8): Delete.
369 (FPU_VFPv2): Delete.
370 (FPU_VFPv3): Delete.
371 (FPU_VFPv4): Delete.
372 (FPU_VFPv5): Delete.
373 (FPU_ARMv8): Delete.
374 (FPU_DBL): Delete.
375 (FPU_D32): Delete.
376 (FPU_NEON): Delete.
377 (FPU_CRYPTO): Delete.
378 (FPU_FP16): Delete.
379 (arm_fpu_desc): Delete features field.
380 * arm.c (all_fpus): Don't initialize feature field.
381
382 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
383
384 * arm.c (arm_can_inline_p): Use ISA features for determining
385 inlinability.
386
387 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
388
389 * arm-protos.h (arm_configure_build_target): Change second argument
390 to cl_target_options.
391 * arm.c (arm_configure_build_target): Likewise.
392 (arm_option_restore): Update accordingly.
393 (arm_option_override): Create the target_option_default_node before
394 calling arm_configure_build_target. Use it in call of latter.
395 Resynchronize after all other overrides have been calculated.
396 (arm_valid_target_attribute_tree): Use the target options for
397 reconfiguration. Resynchronize after performing override checks.
398 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
399 to reconfigure the build target.
400
401 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
402
403 * arm.h (TARGET_VFPD32): Use arm_active_target.
404 (TARGET_VFP3): Likewise.
405 (TARGET_VFP5): Likewise.
406 (TARGET_VFP_SINGLE): Likewise.
407 (TARGET_VFP_DOUBLE): Likewise.
408 (TARGET_NEON_FP16): Likewise.
409 (TARGET_FP16): Likewise.
410 (TARGET_FMA): Likewise.
411 (TARGET_FPU_ARMV8): Likewise.
412 (TARGET_CRYPTO): Likewise.
413 (TARGET_NEON): Likewise.
414 (TARGET_FPU_FEATURES): Delete.
415 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
416 Neon using arm_active_target.
417
418 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
419
420 * arm.h (TARGET_FPU_NAME): Delete.
421 * arm.c (arm_identify_fpu_from_isa): New function.
422 (arm_declare_function_name): Use it to get the name for the FPU.
423
424 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
425
426 * arm-protos.h: Include sbitmap.h
427 (arm_configure_build_target): Make public.
428 * arm.c (arm_configure_build_target): Now not static.
429 (arm_valid_target_attribute_rec): Move internal option check to...
430 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
431 active target.
432 (arm_override_options_after_change): Call arm_configure_build_target.
433 (isa_all_fpubits): Renamed from isa_fpubits.
434 (arm_option_restore): New function.
435 (TARGET_OPTION_RESTORE): Register it.
436 (arm_configure_build_target): Initialize the FPU capability bits in
437 the isa.
438 (arm_option_override): Move the code that forces the setting of the
439 FPU option before the call to arm_configure_build_target.
440 * arm.opt (march): Mark as Save.
441 (mcpu, mtune): Likewise.
442 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
443 after pragmas change the target options.
444
445 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
446
447 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
448 fP_dbl, fp_d32 and fp_crypto.
449 (ISA_ALL_FPU): Add all the new bits.
450 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
451 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
452 * arm-fpus.def: Add ISA features to all FPUs.
453 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
454 * arm.c (all_fpus): Initialize it.
455 * arm-tables.opt: Regenerated.
456
457 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
458
459 * arm.h (FPU_FL_VFPv2) New feature bit.
460 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
461 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
462 macros.
463 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
464 (TARGET_FPU_REV): Delete.
465 (TARGET_VFP3): Use feature bits.
466 (TARGET_VFP5): Likewise.
467 (TARGET_FMA): Likewise.
468 (TARGET_FPU_ARMV8): Likewise.
469 (struct arm_fpu_desc): Delete rev field.
470 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
471 * arm.c (all_fpus): Delete rev field.
472
473 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
474
475 * arm.h (vfp_reg_type): Delete.
476 (TARGET_FPU_REGS): Delete.
477 (arm_fpu_desc): Delete regs field.
478 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
479 values.
480 (FPU_FL_DBL, FPU_FL_D32): Define.
481 (TARGET_VFPD32): Use feature test.
482 (TARGET_VFP_SINGLE): Likewise.
483 (TARGET_VFP_DOUBLE): Likewise.
484 * arm-fpus.def: Update all entries for new feature bits.
485 * arm.c (all_fpus): Update initializer macro.
486 (arm_can_inline_p): Remove test on fpu regs.
487
488 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
489
490 * arm.h (arm_fp_model): Delete.
491
492 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
493
494 * arm-cores.def: Remove FLAGS field from all core definitions.
495 * arm-arches.def: Likewise.
496 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
497 ARM_CORES macro.
498 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
499 * arm-protos.h (FL_*): Delete.
500 (arm_feature_set): Delete.
501 (ARM_FSET_*): Delete.
502 * arm.c (struct processors): Delete flags field.
503 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
504 (all architectures): Likewise.
505
506 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
507
508 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
509 Initialize it.
510 (arm_arch_core_flag): Delete flags field.
511 (arm_arch_core_flags): Don't initialize flags field.
512 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
513 (arm_target_thumb_only): Use new isa bits arrays.
514
515 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
516
517 * arm-protos.h (insn_flags): Delete declaration.
518 (arm_arch7ve): Declare.
519 * arm.c (insn_flags): Delete.
520 (arm_arch7ve): New variable.
521 (arm_selected_cpu): Delete.
522 (arm_option_check_internal): Use new ISA bitmap.
523 (arm_option_override_internal): Likewise.
524 (arm_configure_build_target): Declare arm_selected_cpu locally.
525 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
526 Rearrange variable intialization by general function.
527 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
528
529 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
530
531 * arm-builtins.c: Include sbitmap.h.
532 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
533 available features in the current target.
534 (struct builtin_description): Change type of feature field.
535 (IWMMXT_BUILTIN): Use the isa_features types.
536 (IWMMXT2_BUILTIN): Likewise.
537 (IWMMXT_BUILTIN2): Likewise.
538 (IWMMXT2_BUILTIN2): Likewise.
539 (CRC32_BUILTIN): Likewise.
540 (CRYPTO_BUILTIN): Likewise.
541 (iwmmx_builtin): Likewise.
542 (iwmmx2_builtin): Likewise.
543 (arm_iwmmxt_builtin): Check for specific feature bits.
544
545 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
546
547 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
548 (ISA_ALL_QUIRKS): New macro.
549 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
550 * arm.c (isa_quirkbits): New feature-list bitmap.
551 (arm_configure_build_target): Ignore quirk bits when comparing an
552 architecture feature list with a CPU feature list.
553 (arm_option_override): Initialize_isa_quirkbits. If the user has
554 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
555 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
556
557 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
558
559 * arm.c (arm_option_override): Use arm_active_target as source of
560 information for arm_base_arch and arm_arch_name.
561 * (arm_file_start): Use arm_active_target for core name.
562
563 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
564
565 * arm.c (arm_selected_tune): Delete static variable.
566 (arm_selected_arch): Likewise.
567 (arm_configure_build_target): Declare local versions of arm_selected
568 target and arm_selected_arch. Initialize more fields in target
569 data structure.
570 (arm_option_override): Use arm_active_target instead of
571 arm_selected_tune and arm_selected_arch.
572 (asm_file_start): Use arm_active_target.
573
574 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
575
576 * arm-protos.h (arm_build_target): New structure.
577 (arm_active_target): Declare it.
578 * arm.c (arm_active_target): New variable.
579 (bitmap_popcount): New function.
580 (feature_count): Delete.
581 (arm_initialize_isa): New function.
582 isa_fpubits): New variable.
583 (arm_configure_build_target): New function.
584 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
585 Use arm_configure_build_target.
586
587 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
588
589 * arm-isa.h: New file.
590 * arm-protos.h: Include it.
591 * arm-arches.def: Add new ISA field to all entries. Drop bogus
592 armv8.1-a+crc architecture.
593 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
594 * arm-opts.h (enum processor_type): Adjust for new field.
595 * arm.c (struct processors): New field 'isa_bits'.
596 (all_cores, all_architectures): Initialize new field.
597 * arm-tables.opt: Regenerated.
598 * arm-tune.md: Regenerated.
599
600 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
601
602 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
603 tuning properties from architectural FLAGS field.
604 * arm-cores.def (ARM_CORE): Likewise.
605 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
606 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
607 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
608 (FL_TUNE): Remove deleted elements.
609 (tune_flags): Convert type to unsigned int.
610 * arm.c (struct processors): Add new field tune_flags.
611 (all_cores, all_arches): Initialize it.
612 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
613 for deciding when we should have slow multiply operations.
614
615 2016-12-14 Martin Sebor <msebor@redhat.com>
616
617 PR middle-end/78519
618 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
619 (format_directive): Diagnose null pointer arguments.
620 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
621 pointers. Correct location of null format string in diagnostics.
622
623 2016-12-14 David Malcolm <dmalcolm@redhat.com>
624
625 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
626 (s-selftest): Add dependency on the selftests data directory.
627 * common.opt (fself-test): Rename to...
628 (fself-test=): ...this, documenting the meaning of the argument.
629 * selftest-run-tests.c (along): Likewise.
630 * selftest-run-tests.c: Include "options.h".
631 (selftest::run_tests): Initialize selftest::path_to_selftest_files
632 from flag_self_test.
633 * selftest.c (selftest::path_to_selftest_files): New global.
634 (selftest::locate_file): New function.
635 (selftest::test_locate_file): New function.
636 (selftest_c_tests): Likewise.
637 (selftest::selftest_c_tests): Call test_locate_file.
638 * selftest.h (selftest::locate_file): New decl.
639 (selftest::path_to_selftest_files): New decl.
640
641 2016-12-14 Andrew Pinski <apinski@cavium.com>
642
643 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
644 of the cores.
645 (thunderx): Update to include LSE by default.
646 (thunderxt88p1): New core.
647 (thunderxt88): New core.
648 (thunderxt81): New core.
649 (thunderxt83): New core.
650 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
651 Add variant field.
652 (ALL_VARIANTS): New define.
653 (AARCH64_CORE): Support VARIANT operand.
654 (cpu_data): Likewise.
655 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
656 Combine the arch and single core case and support variant searching.
657 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
658 Add VARIANT operand.
659 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
660 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
661 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
662 * config/aarch64/aarch64-tune.md: Regenerate.
663 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
664 thunderxt88p1, thunderxt81, thunderxt83 as available options.
665
666 2016-12-14 Martin Jambor <mjambor@suse.cz>
667
668 * omp-offload.c: Fix coding style.
669 * omp-expand.c: Likewise.
670 * omp-general.c: Likewise.
671 * omp-grid.c: Likewise.
672 * omp-low.c: Fix coding style of parts touched by the
673 previous splitting patch.
674
675 2016-12-14 Martin Jambor <mjambor@suse.cz>
676
677 * omp-general.h: New file.
678 * omp-general.c: New file.
679 * omp-expand.h: Likewise.
680 * omp-expand.c: Likewise.
681 * omp-offload.h: Likewise.
682 * omp-offload.c: Likewise.
683 * omp-grid.c: Likewise.
684 * omp-grid.c: Likewise.
685 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
686 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
687 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
688 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
689 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
690 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
691 (omp_find_combined_for): Declare.
692 (find_omp_clause): Renamed to omp_find_clause and moved to
693 omp-general.h.
694 (free_omp_regions): Renamed to omp_free_regions and moved to
695 omp-expand.h.
696 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
697 to omp-general.h.
698 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
699 omp-general.h.
700 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
701 moved to omp-general.h.
702 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
703 omp-general.h.
704 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
705 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
706 omp-general.c.
707 (omp_expand_local): Moved to omp-expand.h.
708 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
709 omp-expand.h.
710 (omp_finish_file): Moved to omp-offload.h.
711 (default_goacc_validate_dims): Renamed to
712 oacc_default_goacc_validate_dims and moved to omp-offload.h.
713 (offload_funcs, offload_vars): Moved to omp-offload.h.
714 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
715 (omp_region): Moved to omp-expand.c.
716 (omp_for_data_loop): Moved to omp-general.h.
717 (omp_for_data): Likewise.
718 (oacc_loop): Moved to omp-offload.c.
719 (oacc_loop_flags): Moved to omp-general.h.
720 (offload_funcs, offload_vars): Moved to omp-offload.c.
721 (root_omp_region): Moved to omp-expand.c.
722 (omp_any_child_fn_dumped): Likewise.
723 (find_omp_clause): Renamed to omp_find_clause and moved to
724 omp-general.c.
725 (is_combined_parallel): Moved to omp-expand.c.
726 (is_reference): Renamed to omp_is_reference and and moved to
727 omp-general.c.
728 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
729 to omp-general.c.
730 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
731 and moved to omp-general.c.
732 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
733 omp-general.c.
734 (workshare_safe_to_combine_p): Moved to omp-expand.c.
735 (omp_adjust_chunk_size): Likewise.
736 (get_ws_args_for): Likewise.
737 (get_base_type): Removed.
738 (dump_omp_region): Moved to omp-expand.c.
739 (debug_omp_region): Likewise.
740 (debug_all_omp_regions): Likewise.
741 (new_omp_region): Likewise.
742 (free_omp_region_1): Likewise.
743 (free_omp_regions): Renamed to omp_free_regions and moved to
744 omp-expand.c.
745 (find_combined_for): Renamed to omp_find_combined_for, made global.
746 (build_omp_barrier): Renamed to omp_build_barrier and moved to
747 omp-general.c.
748 (omp_max_vf): Moved to omp-general.c.
749 (omp_max_simt_vf): Likewise.
750 (gimple_build_cond_empty): Moved to omp-expand.c.
751 (parallel_needs_hsa_kernel_p): Likewise.
752 (expand_omp_build_assign): Moved declaration to omp-expand.c.
753 (expand_parallel_call): Moved to omp-expand.c.
754 (expand_cilk_for_call): Likewise.
755 (expand_task_call): Likewise.
756 (vec2chain): Likewise.
757 (remove_exit_barrier): Likewise.
758 (remove_exit_barriers): Likewise.
759 (optimize_omp_library_calls): Likewise.
760 (expand_omp_regimplify_p): Likewise.
761 (expand_omp_build_assign): Likewise.
762 (expand_omp_taskreg): Likewise.
763 (oacc_collapse): Likewise.
764 (expand_oacc_collapse_init): Likewise.
765 (expand_oacc_collapse_vars): Likewise.
766 (expand_omp_for_init_counts): Likewise.
767 (expand_omp_for_init_vars): Likewise.
768 (extract_omp_for_update_vars): Likewise.
769 (expand_omp_ordered_source): Likewise.
770 (expand_omp_ordered_sink): Likewise.
771 (expand_omp_ordered_source_sink): Likewise.
772 (expand_omp_for_ordered_loops): Likewise.
773 (expand_omp_for_generic): Likewise.
774 (expand_omp_for_static_nochunk): Likewise.
775 (find_phi_with_arg_on_edge): Likewise.
776 (expand_omp_for_static_chunk): Likewise.
777 (expand_cilk_for): Likewise.
778 (expand_omp_simd): Likewise.
779 (expand_omp_taskloop_for_outer): Likewise.
780 (expand_omp_taskloop_for_inner): Likewise.
781 (expand_oacc_for): Likewise.
782 (expand_omp_for): Likewise.
783 (expand_omp_sections): Likewise.
784 (expand_omp_single): Likewise.
785 (expand_omp_synch): Likewise.
786 (expand_omp_atomic_load): Likewise.
787 (expand_omp_atomic_store): Likewise.
788 (expand_omp_atomic_fetch_op): Likewise.
789 (expand_omp_atomic_pipeline): Likewise.
790 (expand_omp_atomic_mutex): Likewise.
791 (expand_omp_atomic): Likewise.
792 (oacc_launch_pack): and moved to omp-general.c, made public.
793 (OACC_FN_ATTRIB): Likewise.
794 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
795 to omp-general.c.
796 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
797 omp-general.c.
798 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
799 moved to omp-general.c.
800 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
801 omp-general.c.
802 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
803 (oacc_fn_attrib_level): Moved to omp-offload.c.
804 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
805 omp-general.c.
806 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
807 omp-general.c.
808 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
809 (grid_launch_attributes_trees): Likewise.
810 (grid_attr_trees): Likewise.
811 (grid_create_kernel_launch_attr_types): Likewise.
812 (grid_insert_store_range_dim): Likewise.
813 (grid_get_kernel_launch_attributes): Likewise.
814 (get_target_argument_identifier_1): Likewise.
815 (get_target_argument_identifier): Likewise.
816 (get_target_argument_value): Likewise.
817 (push_target_argument_according_to_value): Likewise.
818 (get_target_arguments): Likewise.
819 (expand_omp_target): Likewise.
820 (grid_expand_omp_for_loop): Moved to omp-grid.c.
821 (grid_arg_decl_map): Likewise.
822 (grid_remap_kernel_arg_accesses): Likewise.
823 (grid_expand_target_grid_body): Likewise.
824 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
825 (build_omp_regions_1): Moved to omp-expand.c.
826 (build_omp_regions_root): Likewise.
827 (omp_expand_local): Likewise.
828 (build_omp_regions): Likewise.
829 (execute_expand_omp): Likewise.
830 (pass_data_expand_omp): Likewise.
831 (pass_expand_omp): Likewise.
832 (make_pass_expand_omp): Likewise.
833 (pass_data_expand_omp_ssa): Likewise.
834 (pass_expand_omp_ssa): Likewise.
835 (make_pass_expand_omp_ssa): Likewise.
836 (grid_lastprivate_predicate): Renamed to
837 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
838 (grid_prop): Moved to omp-grid.c.
839 (GRID_MISSED_MSG_PREFIX): Likewise.
840 (grid_safe_assignment_p): Likewise.
841 (grid_seq_only_contains_local_assignments): Likewise.
842 (grid_find_single_omp_among_assignments_1): Likewise.
843 (grid_find_single_omp_among_assignments): Likewise.
844 (grid_find_ungridifiable_statement): Likewise.
845 (grid_parallel_clauses_gridifiable): Likewise.
846 (grid_inner_loop_gridifiable_p): Likewise.
847 (grid_dist_follows_simple_pattern): Likewise.
848 (grid_gfor_follows_tiling_pattern): Likewise.
849 (grid_call_permissible_in_distribute_p): Likewise.
850 (grid_handle_call_in_distribute): Likewise.
851 (grid_dist_follows_tiling_pattern): Likewise.
852 (grid_target_follows_gridifiable_pattern): Likewise.
853 (grid_remap_prebody_decls): Likewise.
854 (grid_var_segment): Likewise.
855 (grid_mark_variable_segment): Likewise.
856 (grid_copy_leading_local_assignments): Likewise.
857 (grid_process_grid_body): Likewise.
858 (grid_eliminate_combined_simd_part): Likewise.
859 (grid_mark_tiling_loops): Likewise.
860 (grid_mark_tiling_parallels_and_loops): Likewise.
861 (grid_process_kernel_body_copy): Likewise.
862 (grid_attempt_target_gridification): Likewise.
863 (grid_gridify_all_targets_stmt): Likewise.
864 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
865 and moved to omp-grid.c, made public.
866 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
867 omp-expand.c.
868 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
869 (omp_finish_file): Likewise.
870 (oacc_thread_numbers): Likewise.
871 (oacc_xform_loop): Likewise.
872 (oacc_default_dims, oacc_min_dims): Likewise.
873 (oacc_parse_default_dims): Likewise.
874 (oacc_validate_dims): Likewise.
875 (new_oacc_loop_raw): Likewise.
876 (new_oacc_loop_outer): Likewise.
877 (new_oacc_loop): Likewise.
878 (new_oacc_loop_routine): Likewise.
879 (finish_oacc_loop): Likewise.
880 (free_oacc_loop): Likewise.
881 (dump_oacc_loop_part): Likewise.
882 (dump_oacc_loop): Likewise.
883 (debug_oacc_loop): Likewise.
884 (oacc_loop_discover_walk): Likewise.
885 (oacc_loop_sibling_nreverse): Likewise.
886 (oacc_loop_discovery): Likewise.
887 (oacc_loop_xform_head_tail): Likewise.
888 (oacc_loop_xform_loop): Likewise.
889 (oacc_loop_process): Likewise.
890 (oacc_loop_fixed_partitions): Likewise.
891 (oacc_loop_auto_partitions): Likewise.
892 (oacc_loop_partition): Likewise.
893 (default_goacc_fork_join): Likewise.
894 (default_goacc_reduction): Likewise.
895 (execute_oacc_device_lower): Likewise.
896 (default_goacc_validate_dims): Likewise.
897 (default_goacc_dim_limit): Likewise.
898 (pass_data_oacc_device_lower): Likewise.
899 (pass_oacc_device_lower): Likewise.
900 (make_pass_oacc_device_lower): Likewise.
901 (execute_omp_device_lower): Likewise.
902 (pass_data_omp_device_lower): Likewise.
903 (pass_omp_device_lower): Likewise.
904 (make_pass_omp_device_lower): Likewise.
905 (pass_data_omp_target_link): Likewise.
906 (pass_omp_target_link): Likewise.
907 (find_link_var_op): Likewise.
908 (pass_omp_target_link::execute): Likewise.
909 (make_pass_omp_target_link): Likewise.
910 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
911 and omp-grid.o.
912 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
913 omp-low.h.
914 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
915 (fold_internal_goacc_dim): Adjusted calls to
916 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
917 * gimplify.c: Include omp-low.h.
918 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
919 its new name.
920 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
921 name.
922 (gimplify_omp_for): Likewise.
923 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
924 * toplev.c: Include omp-offload.h instead of omp-low.h.
925 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
926 include omp-expand.h.
927 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
928 new name.
929 (make_edges): Adjust the call to free_omp_regions to use its new name.
930 * tree-parloops.c: Include omp-general.h.
931 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
932 its new name.
933 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
934 its new name.
935 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
936 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
937 its new name.
938 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
939 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
940 get_oacc_fn_dim_size to use their new names.
941 * varpool.c: Include omp-offload.h instead of omp-low.h.
942 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
943 ifiles.
944 * config/nvptx/nvptx.c: Include omp-general.c.
945 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
946 its new name.
947 (nvptx_reorg): Likewise.
948 (nvptx_record_offload_symbol): Likewise.
949
950 2016-12-14 Martin Sebor <msebor@redhat.com>
951
952 PR middle-end/78786
953 * gimple-ssa-sprintf.c (target_dir_max): New macro.
954 (get_mpfr_format_length): New function.
955 (format_integer): Use HOST_WIDE_INT instead of int.
956 (format_floating_max): Same.
957 (format_floating): Call get_mpfr_format_length.
958 (format_directive): Use target_dir_max.
959
960 2016-12-14 Jakub Jelinek <jakub@redhat.com>
961
962 PR target/78791
963 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
964 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
965 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
966 SLOT_TEMP.
967
968 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
969
970 PR target/59874
971 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
972 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
973 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
974 (*clzhi2): Ditto.
975
976 2016-12-14 Jakub Jelinek <jakub@redhat.com>
977
978 PR debug/77844
979 * valtrack.c: Include rtl-iter.h.
980 (struct rtx_subst_pair): Add insn field.
981 (propagate_for_debug_subst): If pair->to contains at least 2
982 regs, create a DEBUG_INSN with a debug temp before pair->insn
983 and replace from with the debug temp instead of pair->to.
984 (propagate_for_debug): Initialize p.insn.
985 * combine.c (insn_uid_check): New inline function.
986 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
987 (find_single_use, combine_instructions,
988 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
989 INSN_P.
990
991 2016-12-14 Martin Sebor <msebor@redhat.com>
992
993 PR c/17308
994 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
995 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
996 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
997 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
998 (ATTR_NOTHROW_NONNULL_1_5): Same.
999 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
1000 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
1001 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
1002 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
1003 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
1004 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
1005 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
1006 * builtins.c (validate_arg): Add argument. Treat null pointers
1007 passed to nonnull arguments as invalid.
1008 (validate_arglist): Same.
1009 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
1010 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
1011 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
1012 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
1013 (initialize_argument_information): Diagnose null pointers passed to
1014 arguments declared nonnull.
1015 * calls.h (get_nonnull_args): Declared.
1016
1017 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1018
1019 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1020 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1021 instructions.
1022 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1023 type constraint registers.
1024 (VSr3): Likewise.
1025 (FL_CONV): New mode iterator for binary floating types that have a
1026 direct conversion from 64-bit integer to floating point.
1027 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1028 VEXTU{B,H,W}{L,R}X extract instructions.
1029 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1030 extract byte position into the GPR if we are using the
1031 VEXTU{B,H,W}{L,R}X extract instructions.
1032 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1033 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1034 we can use reg+offset address instructions.
1035 (vsx_extract_<mode>_var): Support extracts to GPRs.
1036 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1037 insn to combine vector extracts with zero_extend.
1038 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1039 extracting a small integer vector element and converting it to a
1040 floating point type.
1041 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1042 (UNSPEC_XXEXTRACTUW): New unspec.
1043 (UNSPEC_XXINSERTW): Likewise.
1044 (vextract4b): Add support for the vec_vextract4b built-in
1045 function.
1046 (vextract4b_internal): Likewise.
1047 (vinsert4b): Add support for the vec_insert4b built-in function.
1048 Include both a version that inserts element 1 from a V4SI object
1049 and one that inserts a DI object.
1050 (vinsert4b_internal): Likewise.
1051 (vinsert4b_di): Likewise.
1052 (vinsert4b_di_internal): Likewise.
1053 * config/rs6000/predicates.md (const_0_to_11_operand): New
1054 predicate, match 0..11.
1055 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1056 type to ternary, not binary.
1057 (BU_P9V_64BIT_VSX_3): Likewise.
1058 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1059 vec_extract4b non-overloaded built-in functions.
1060 (P9V_BUILTIN_VINSERT4B): Likewise.
1061 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1062 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1063 3.0 built-in functions.
1064 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1065 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1066 vec_insert4b and vec_extract4 built-in functions.
1067 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1068 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1069 overloaded support for vec_vinsert4b and vec_extract4b.
1070 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1071 the vec_insert4b and vec_extract4b byte number being a constant in
1072 the range 0..11.
1073 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1074 and vec_extract4b built-in functions.
1075 * doc/extend.doc (PowerPC VSX built-in functions): Document
1076 vec_insert4b and vec_extract4b.
1077
1078 2016-12-14 Martin Liska <mliska@suse.cz>
1079
1080 * gimple-pretty-print.c (dump_probability): New function.
1081 (dump_edge_probability): Use the function.
1082 (dump_gimple_label): Likewise.
1083 (dump_gimple_bb_header): Likewise.
1084
1085 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1086 Jakub Jelinek <jakub@redhat.com>
1087
1088 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1089 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1090
1091 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1092
1093 * lra-constraints.c (process_address_1): Do not attempt to decompose
1094 addresses for MEMs that satisfy fixed-form constraints.
1095
1096 2016-12-14 Richard Biener <rguenther@suse.de>
1097
1098 PR tree-optimization/78788
1099 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1100 (set_and_canonicalize_value_range): Do not drop the above to
1101 VARYING.
1102
1103 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1104
1105 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1106 Adjust unaligned load cost.
1107
1108 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1109
1110 PR target/78794
1111 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1112 Calculate additional gain for andnot for targets without BMI.
1113
1114 2016-12-13 Carl Love <cel@us.ibm.com>
1115
1116 * config/rs6000/rs6000-c.c: Add built-in support for
1117 vector float vec_pack (vector double, vector double)
1118 vector double vec_sld (vector double, vector double)
1119 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1120 4-bit unsigned literal.
1121 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1122 * doc/extend.texi: Update the built-in documentation file for the
1123 new powerpc vec_pack and vec_sld built-ins.
1124
1125 2016-12-13 Martin Liska <mliska@suse.cz>
1126
1127 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1128 (sanopt_optimize): Add new argument.
1129 (sanitize_asan_mark_unpoison): New function.
1130 (maybe_contains_asan_check): Likewise.
1131 (sanitize_asan_mark_poison): Likewise.
1132 (pass_sanopt::execute): Call the new functions.
1133
1134 2016-12-13 Martin Liska <mliska@suse.cz>
1135
1136 PR tree-optimization/78428
1137 * expr.c (store_constructor_field): Add new arguments to the function.
1138 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1139 fields that have either non-constant size or (and) offset.
1140
1141 2016-12-13 Marek Polacek <polacek@redhat.com>
1142
1143 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1144 parameters' type from int to HOST_WIDE_INT.
1145 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1146 int to HOST_WIDE_INT.
1147 (build_classic_dist_vector_1): Likewise.
1148 (add_multivariate_self_dist): Likewise.
1149
1150 2016-12-13 Michael Matz <matz@suse.de>
1151
1152 PR tree-optimization/78725
1153 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1154 at correct use point.
1155
1156 2016-12-13 Martin Liska <mliska@suse.cz>
1157
1158 * asan.c (asan_expand_mark_ifn): Use renamed
1159 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1160 * sanitizer.def: Likewise.
1161
1162 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1163
1164 * doc/extend.texi (Half-Precision): Update to document current
1165 compiler behaviour.
1166
1167 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1168
1169 * doc/extend.texi (Floating Types): Document availability of
1170 _Float16 on ARM/AArch64.
1171
1172 2016-12-13 Richard Biener <rguenther@suse.de>
1173
1174 PR tree-optimization/78699
1175 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1176 group size.
1177
1178 2016-12-13 Richard Biener <rguenther@suse.de>
1179
1180 PR middle-end/78742
1181 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1182 * tree-object-size.c (compute_builtin_object_size): Use
1183 tree_fits_shwi_p.
1184 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1185
1186 2016-12-13 Martin Liska <mliska@suse.cz>
1187
1188 * asan.c (asan_mark_poison_p): Remove.
1189 (asan_mark_p): New function.
1190 (transform_statements): Use the function.
1191 (asan_expand_mark_ifn): Do not use masked enum.
1192 * asan.h (enum asan_mark_flags): Declare it via a macro.
1193 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1194 argument of ASAN_MARK.
1195 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1196 (asan_poison_variable): Likewise.
1197
1198 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1199
1200 PR ipa/77905
1201 * ipa-pure-const.c (cdtor_p): Return true for
1202 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1203 DECL_LOOPING_CONST_OR_PURE_P.
1204
1205 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1206
1207 PR tree-optimization/78777
1208 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1209 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1210
1211 PR other/78766
1212 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1213 Formatting fix.
1214
1215 2016-12-12 Martin Sebor <msebor@redhat.com>
1216
1217 PR middle-end/78622
1218 PR middle-end78606
1219 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1220 rather than res.bounded.
1221 (get_width_and_precision): Set precision to -1 when negative.
1222 (adjust_range_for_overflow): New function.
1223 (format_integer): Correct the handling of the space, plus, and pound
1224 flags, and the special case of zero precision.
1225 Always set res.bounded to true unless either precision or width
1226 is specified and unknown.
1227 Call adjust_range_for_overflow.
1228 Avoid use zero as the shortest value when precision is specified
1229 but unknown.
1230 (format_directive): Remove vestigial quoting. Always inform of
1231 argument value or range when it's available.
1232 (add_bytes): Correct the computation of boundrange used to
1233 decide whether a warning is of a "maybe" or "defnitely" kind.
1234
1235 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1236
1237 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1238
1239 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1240
1241 PR target/78738
1242 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1243 flag_unsafe_math_optimizations.
1244 (X87_ENABLE_FLOAT): Ditto.
1245
1246 2016-12-12 Marek Polacek <polacek@redhat.com>
1247
1248 PR middle-end/78716
1249 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1250 Case 1; check POINTER_TYPE_P instead.
1251
1252 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1253
1254 PR rtl-optimization/78669
1255 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1256 replace flag for all used regs in that insn.
1257
1258 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1259
1260 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1261 arm_arch_core_flags to ...
1262 * common/config/arm/arm-common.c: There.
1263
1264 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1265
1266 * config/sparc/constraints.md (T): Use special memory constraint.
1267 (U): Minor tweak.
1268 (W): Add TARGET_ARCH64 test.
1269 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1270 (*movdf_insn_sp32): Likewise.
1271 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1272 conjunction with offsettable memory references.
1273
1274 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1275
1276 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1277 to avoid shared structure error.
1278
1279 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1280
1281 PR target/78695
1282 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1283 consideration any artificial definition.
1284
1285 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1286
1287 * configure.ac (CROSS directory tests): Remove the assumption that
1288 Darwin hosts contain suitable target sysroots in "/".
1289 * configure: Regenerate.
1290
1291 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1292
1293 PR rtl-optimization/71496
1294 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1295 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1296 reload_macho_picbase_di): Likewise.
1297
1298 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1299
1300 * config/pa/pa.c (pa_callee_copies): New function.
1301 * config/pa/pa.opt (mcaller-copies): New option.
1302 * doc/invoke.texi (mcaller-copies): Document option.
1303
1304 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1305
1306 PR target/70799
1307 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1308 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1309 Add FIXME comment.
1310 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1311 constant shifts larger or equal than 32.
1312
1313 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1314
1315 * config/i386/x86-64.h: Append --32 to the assembler options when
1316 -m16 is used on non-glibc systems as well.
1317
1318 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1319
1320 PR target/70118
1321 * config/i386/mmintrin.h (__m64_u): New type
1322 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1323 Make the allowed unaligned memory access explicit.
1324
1325 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1326
1327 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1328 Generally use cpu generic.
1329
1330 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1331 Marc Glisse <marc.glisse@inria.fr>
1332
1333 PR tree-optimization/78720
1334 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1335 is negative, sign extend to @1's type and than AND with C.
1336
1337 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1338
1339 PR fortran/78758
1340 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1341 non-zero low bound or non-standard element sizes.
1342
1343 PR sanitizer/78708
1344 * lto-streamer-in.c (input_function): In addition to debug stmts
1345 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1346 bit is not enabled.
1347
1348 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1349
1350 * config/rs6000/rs6000-passes.def: New file.
1351 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1352 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1353 registration of machine-specific passes.
1354 (pass_analyze_swaps::clone): New function.
1355 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1356
1357 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1358
1359 PR ipa/78721
1360 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1361 drop_tree_overflow after fold_convert.
1362
1363 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1364
1365 PR target/72742
1366 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1367 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1368 condition.
1369
1370 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1371
1372 PR target/78683
1373 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1374 GET_MODE_BITSIZE. Return 2.
1375 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1376 TARGET_POPCNTD the same as TARGET_CTZ.
1377 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1378 (ffs<mode>2): Reimplement.
1379
1380 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1381
1382 PR rtl-optimization/78255
1383 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1384 NO_FUNCTION_CSE is true.
1385
1386 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1387
1388 PR ipa/78027
1389 * ipa-icf.c (sem_function::parse): Don't process functions with
1390 oacc decl attributes, as they may be OpenACC routines.
1391
1392 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1393
1394 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1395 pointer.
1396
1397 2016-12-09 Nathan Sidwell <nathan@acm.org>
1398
1399 PR C++/78550
1400 * convert.c (convert_to_integer_1): Maybe fold conversions to
1401 integral types with fewer bits than its mode.
1402
1403 2016-12-09 Martin Liska <mliska@suse.cz>
1404
1405 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1406 chars in strings.
1407
1408 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1409
1410 PR tree-optimization/78726
1411 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1412 argument. For lhs uses in debug stmts, don't replace lhs with
1413 new_lhs, but with a debug temp set to new_lhs opcode op.
1414 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1415 OP down to make_new_ssa_for_def.
1416 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1417 stmts_to_fix is empty, if *def has not changed yet. Pass
1418 OPCODE to make_new_ssa_for_all_defs.
1419
1420 2016-12-08 Martin Sebor <msebor@redhat.com>
1421
1422 PR c/78284
1423 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1424 identifier tree nodes.
1425 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1426 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1427 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1428 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1429 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1430 * builtins.c (expand_builtin_alloca): Call
1431 maybe_warn_alloc_args_overflow.
1432 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1433 Add attribute alloc_size.
1434 (alloca): Add attribute alloc_size and returns_nonnull.
1435 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1436 * calls.c (alloc_max_size, operand_signed_p): New functions.
1437 (maybe_warn_alloc_args_overflow): Define.
1438 (initialize_argument_information): Diagnose overflow in functions
1439 declared with attaribute alloc_size.
1440 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1441 -Walloc-size-larger-than.
1442
1443 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1444
1445 PR rtl-optimization/78671
1446 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1447 allocno class.
1448
1449 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1450
1451 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1452 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1453
1454 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1455
1456 PR target/78733
1457 * config/aarch64/aarch64.c (aarch64_classify_address):
1458 Set load_store_pair_p for TImode and TFmode.
1459
1460 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1461
1462 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1463 regno_reg_rtx resizing logic to...
1464 (emit_status::ensure_regno_capacity): ...this new method,
1465 and ensure that the buffers are large enough.
1466 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1467 rather than ggc_vec_alloc.
1468 * function.h (emit_status::ensure_regno_capacity): New method.
1469
1470 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1471
1472 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1473 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1474 * doc/invoke.texi (-fsanitize=kernel-address):
1475 Don't say that it enables -fsanitize-address-use-after-scope.
1476
1477 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1478
1479 PR middle-end/78684
1480 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1481 sign bit for index step of data reference.
1482
1483 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1484
1485 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1486 Handle SYMBOL_SMALL_TLSGD for ILP32.
1487 * config/aarch64/aarch64.md : tlsgd_small modified into
1488 tlsgd_small_<mode> to support SImode and DImode.
1489 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1490 DImode.
1491
1492 2016-12-08 Andrew Pinski <apinski@cavium.com>
1493
1494 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1495 Access the lower part of RTX appropriately.
1496
1497 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1498
1499 * genpreds.c (write_tm_constrs_h): Update for renaming of
1500 rtx_reader_ptr to md_reader_ptr.
1501 (write_tm_preds_h): Likewise.
1502 (write_insn_preds_c): Likewise.
1503 * read-md.c (rtx_reader_ptr): Rename to...
1504 (md_reader_ptr): ...this, and convert from an
1505 rtx_reader * to a md_reader *.
1506 (rtx_reader::set_md_ptr_loc): Rename to...
1507 (md_reader::set_md_ptr_loc): ...this.
1508 (rtx_reader::get_md_ptr_loc): Rename to...
1509 (md_reader::get_md_ptr_loc): ...this.
1510 (rtx_reader::copy_md_ptr_loc): Rename to...
1511 (md_reader::copy_md_ptr_loc): ...this.
1512 (rtx_reader::fprint_md_ptr_loc): Rename to...
1513 (md_reader::fprint_md_ptr_loc): ...this.
1514 (rtx_reader::print_md_ptr_loc): Rename to...
1515 (md_reader::print_md_ptr_loc): ...this.
1516 (rtx_reader::join_c_conditions): Rename to...
1517 (md_reader::join_c_conditions): ...this.
1518 (rtx_reader::fprint_c_condition): ...this.
1519 (rtx_reader::print_c_condition): Rename to...
1520 (md_reader::print_c_condition): ...this.
1521 (fatal_with_file_and_line): Update for renaming of
1522 rtx_reader_ptr to md_reader_ptr.
1523 (rtx_reader::require_char): Rename to...
1524 (md_reader::require_char): ...this.
1525 (rtx_reader::require_char_ws): Rename to...
1526 (md_reader::require_char_ws): ...this.
1527 (rtx_reader::require_word_ws): Rename to...
1528 (md_reader::require_word_ws): ...this.
1529 (rtx_reader::read_char): Rename to...
1530 (md_reader::read_char): ...this.
1531 (rtx_reader::unread_char): Rename to...
1532 (md_reader::unread_char): ...this.
1533 (rtx_reader::peek_char): Rename to...
1534 (md_reader::peek_char): ...this.
1535 (rtx_reader::read_name): Rename to...
1536 (md_reader::read_name): ...this.
1537 (rtx_reader::read_escape): Rename to...
1538 (md_reader::read_escape): ...this.
1539 (rtx_reader::read_quoted_string): Rename to...
1540 (md_reader::read_quoted_string): ...this.
1541 (rtx_reader::read_braced_string): Rename to...
1542 (md_reader::read_braced_string): ...this.
1543 (rtx_reader::read_string): Rename to...
1544 (md_reader::read_string): ...this.
1545 (rtx_reader::read_skip_construct): Rename to...
1546 (md_reader::read_skip_construct): ...this.
1547 (rtx_reader::handle_constants): Rename to...
1548 (md_reader::handle_constants): ...this.
1549 (rtx_reader::traverse_md_constants): Rename to...
1550 (md_reader::traverse_md_constants): ...this.
1551 (rtx_reader::handle_enum): Rename to...
1552 (md_reader::handle_enum): ...this.
1553 (rtx_reader::lookup_enum_type): Rename to...
1554 (md_reader::lookup_enum_type): ...this.
1555 (rtx_reader::traverse_enum_types): Rename to...
1556 (md_reader::traverse_enum_types): ...this.
1557 (rtx_reader::rtx_reader): Rename to...
1558 (md_reader::md_reader): ...this, and update for renaming of
1559 rtx_reader_ptr to md_reader_ptr.
1560 (rtx_reader::~rtx_reader): Rename to...
1561 (md_reader::~md_reader): ...this, and update for renaming of
1562 rtx_reader_ptr to md_reader_ptr.
1563 (rtx_reader::handle_include): Rename to...
1564 (md_reader::handle_include): ...this.
1565 (rtx_reader::handle_file): Rename to...
1566 (md_reader::handle_file): ...this.
1567 (rtx_reader::handle_toplevel_file): Rename to...
1568 (md_reader::handle_toplevel_file): ...this.
1569 (rtx_reader::get_current_location): Rename to...
1570 (md_reader::get_current_location): ...this.
1571 (rtx_reader::add_include_path): Rename to...
1572 (md_reader::add_include_path): ...this.
1573 (rtx_reader::read_md_files): Rename to...
1574 (md_reader::read_md_files): ...this.
1575 * read-md.h (class rtx_reader): Split into...
1576 (class md_reader): ...new class.
1577 (rtx_reader_ptr): Rename to...
1578 (md_reader_ptr): ...this, and convert to a md_reader *.
1579 (class noop_reader): Update base class to be md_reader.
1580 (class rtx_reader): Reintroduce as a subclass of md_reader.
1581 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1582 (read_char): Update for renaming of rtx_reader_ptr to
1583 md_reader_ptr.
1584 (unread_char): Likewise.
1585 * read-rtl.c (rtx_reader_ptr): New global.
1586 (rtx_reader::apply_iterator_to_string): Rename to...
1587 (md_reader::apply_iterator_to_string): ...this.
1588 (rtx_reader::copy_rtx_for_iterators): Rename to...
1589 (md_reader::copy_rtx_for_iterators): ...this.
1590 (rtx_reader::read_conditions): Rename to...
1591 (md_reader::read_conditions): ...this.
1592 (rtx_reader::record_potential_iterator_use): Rename to...
1593 (md_reader::record_potential_iterator_use): ...this.
1594 (rtx_reader::read_mapping): Rename to...
1595 (md_reader::read_mapping): ...this.
1596 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1597 read_rtx_code.
1598 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1599 than directly accessing m_string_obstack.
1600 (rtx_reader::rtx_reader): New ctor.
1601 (rtx_reader::~rtx_reader): New dtor.
1602
1603 2016-12-07 Martin Sebor <msebor@redhat.com>
1604
1605 PR middle-end/77784
1606 PR middle-end/78149
1607 PR middle-end/78138
1608
1609 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1610 functions.
1611 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1612 (check_memop_sizes): Same.
1613 (expand_builtin_memcpy): Call check memop_sizes.
1614 (expand_builtin_mempcpy): Same.
1615 (expand_builtin_memset): Same,
1616 (expand_builtin_bzero): Same.
1617 (expand_builtin_memory_chk): Call check_sizes.
1618 (expand_builtin_strcpy): Same.
1619 (expand_builtin_strncpy): Same.
1620 (maybe_emit_sprintf_chk_warning): Same.
1621 (expand_builtin): Handle strcat and strncat.
1622 (fini_object_sizes): Reset pointers.
1623 (compute_object_size): New function.
1624 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1625 Avoid issuing warnings also issued during built-in expansion.
1626 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1627
1628 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1629
1630 PR target/72717
1631 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1632 V2DImode elements are SUBREG's convert the result into DImode
1633 rather than failing in emit_move_insn.
1634
1635 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1636
1637 * builtins.c (fold_builtin_strstr): Removed.
1638 (fold_builtin_2): Don't call fold_builtin_strstr.
1639 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1640 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1641 (gimple_fold_builtin_strstr): New function.
1642 (gimple_fold_builtin): Call it.
1643 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1644
1645 PR c++/78692
1646 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1647 var to lhs of new_stmt right before noreturn handling rather than to
1648 lhs of e->call_stmt early.
1649
1650 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1651
1652 * read-md.c (rtx_reader::require_char): New method.
1653 (require_char_ws): Convert from function to...
1654 (rtx_reader::require_char_ws): ...method.
1655 (rtx_reader::require_word_ws): New method.
1656 * read-md.h (rtx_reader::require_char): New method decl.
1657 (require_char_ws): Remove global decl in favor of...
1658 (rtx_reader::require_char_ws): ...new method decl.
1659 (rtx_reader::require_word_ws): New method decl.
1660 (rtx_reader::peek_char): New method decl.
1661
1662 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1663
1664 PR rtl-optimization/78617
1665 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1666 registers, also setting hard registers mapped to pseudo registers.
1667
1668 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1669
1670 * cfgexpand.c (pass_expand::execute): Move stack initializations
1671 to rtl_data::init_stack_alignment and call it.
1672 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1673 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1674
1675 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1676
1677 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1678 (ira): Move initialization of crtl->is_leaf earlier.
1679
1680 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1681
1682 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1683 (movtf_aarch64): Likewise.
1684 * config/aarch64/aarch64.c (aarch64_classify_address):
1685 Use correct intersection of offsets.
1686 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1687 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1688 Use 7-bit signed scaled mode for modes > 16 bytes.
1689
1690 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1691
1692 PR rtl-optimization/78561
1693 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1694 constant_pool_empty_p in place of get_pool_size_upper_bound.
1695 (rs6000_stack_info): Likewise.
1696 (rs6000_emit_prologue): Likewise.
1697 (rs6000_elf_declare_function_name): Likewise.
1698 (rs6000_set_up_by_prologue): Likewise.
1699 (rs6000_can_eliminate): Likewise.
1700 * output.h (get_pool_size_upper_bound): Delete.
1701 (constant_pool_empty_p): New.
1702 * varasm.c (get_pool_size_upper_bound): Delete
1703 (constant_pool_empty_p): New.
1704
1705 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1706
1707 PR tree-optimization/78691
1708 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1709 Require integral type for the outer expression.
1710
1711 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1712
1713 * config/aarch64/aarch64.c
1714 (aarch64_builtin_support_vector_misalignment): New.
1715 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1716
1717 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1718
1719 PR bootstrap/78705
1720 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1721 Conditionalize the string comparison on Pmode == DImode.
1722
1723 2016-12-06 Tom de Vries <tom@codesourcery.com>
1724
1725 PR tree-optimization/67955
1726 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1727 (stmt_kills_ref_p): Use it.
1728
1729 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1730
1731 PR middle-end/78700
1732 * calls.c (expand_call): Move back call to prepare_call_address.
1733
1734 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1735
1736 PR target/78658
1737 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1738 ?* constraints for the ISA 3.0 patterns, so the register allocator
1739 is more likely to allocate QImode/HImode to vector registers for
1740 conversion to floating point unless a reload is needed.
1741 (zero_extendhi<mode>2): Likewise.
1742 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1743 first alternative which is converting QImode/HImode to floating
1744 point and the QImode/HImode value is in a vector register, and
1745 does not allocate the second pseudo register. Remove zero
1746 extending into traditional floating point registers, since the
1747 instruction used only works on traditional altivec registers.
1748 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1749
1750 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1751
1752 * config/i386/i386.c: Include print-rtl.h.
1753 (selftest::ix86_test_dumping_memory_blockage): New function.
1754 (selftest::ix86_run_selftests): Call it.
1755 * print-rtl-function.c (print_rtx_function): Create an
1756 rtx_reuse_manager and use it.
1757 * print-rtl.c: Include "rtl-iter.h".
1758 (rtx_writer::rtx_writer): Add reuse_manager param.
1759 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1760 (uses_rtx_reuse_p): New function.
1761 (rtx_reuse_manager::preprocess): New function.
1762 (rtx_reuse_manager::has_reuse_id): New function.
1763 (rtx_reuse_manager::seen_def_p): New function.
1764 (rtx_reuse_manager::set_seen_def): New function.
1765 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1766 prefix the first time in_rtx is seen, and print reuse_rtx
1767 subsequently.
1768 (print_inline_rtx): Supply NULL for new reuse_manager param.
1769 (debug_rtx): Likewise.
1770 (print_rtl): Likewise.
1771 (print_rtl_single): Likewise.
1772 (rtx_writer::print_rtl_single_with_indent): Likewise.
1773 * print-rtl.h: Include bitmap.h when building for host.
1774 (rtx_writer::rtx_writer): Add reuse_manager param.
1775 (rtx_writer::m_rtx_reuse_manager): New field.
1776 (class rtx_reuse_manager): New class.
1777 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1778 param and use it when constructing rtx_writer.
1779 (selftest::test_dumping_rtx_reuse): New function.
1780 (selftest::rtl_tests_c_tests): Call it.
1781 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1782 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1783 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1784 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1785
1786 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1787
1788 PR target/77761
1789 * lra-lives.c (process_bb_lives): Update biggest mode for
1790 implicitly used hard reg.
1791
1792 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1793
1794 * config/i386/predicates.md (general_gr_operand): New predicate.
1795 * config/i386/i386.md (TImode and DImode push_operand splitter):
1796 Use general_gr_operand. Macroize using DWI mode macro.
1797 (TImode and DImode nonimmediate_operand splitter): Use
1798 nonimmediate_gr_operand and general_gr_operand. Macroize using
1799 DWI mode macro.
1800 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1801 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1802 and general_gr_operand.
1803 (XFmode nonimmediate_operand splitter): Ditto.
1804 (DFmode nonimmediate_operand splitter): Ditto.
1805 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1806
1807 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1808
1809 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1810 alphabetical order with respect to other ARMv8 processors.
1811 * config/arm/arm-tables.opt: Regenerate.
1812 * config/arm/arm-tune.md: Likewise.
1813
1814 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1815
1816 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1817 ranges of literal integer arguments.
1818
1819 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1820
1821 PR middle-end/78548
1822 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1823 destroy_predicate_vecs.
1824 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1825
1826 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1827
1828 PR middle-end/78566
1829 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1830 argument type to a pred_chain.
1831 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1832 worklist.
1833 (flatten_out_predicate_chains): Remove.
1834 (uninit_uses_cannot_happen): Rename from
1835 uninit_ops_invalidate_phi_use.
1836 Change logic so that we are checking that the PHI use will
1837 invalidate _ALL_ possibly uninitialized operands.
1838 (is_use_properly_guarded): Rename call to
1839 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1840
1841 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1842
1843 * gcc/config/aarch64/arm_neon.h
1844 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1845 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1846 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1847 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1848 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1849 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1850 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1851 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1852 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1853 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1854 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1855 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1856 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1857 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1858
1859 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1860
1861 PR c++/71537
1862 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1863 plus offset is non-zero. For maybe_nonzero_address decl base0,
1864 require indirect_base0.
1865
1866 PR c++/71537
1867 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1868 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1869 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1870 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1871 and arguments have no side-effects, return 0.
1872 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1873
1874 PR c++/71537
1875 * fold-const-call.c (fold_const_call): Handle
1876 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1877
1878 PR tree-optimization/78675
1879 * tree-vect-loop.c (vectorizable_live_operation): For
1880 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1881 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1882
1883 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1884
1885 PR middle-end/78642
1886 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1887 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1888 (copy_insn_1) <CLOBBER>: Likewise.
1889
1890 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1891
1892 PR target/78688
1893 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1894 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1895 comparing signed to unsigned values.
1896 (FUNCTION_ARG_REGNO_P): Likewise.
1897
1898 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1899 Stefan Freudenberger <stefan@reservoir.com>
1900
1901 PR tree-optimization/78646
1902 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1903 addition used for the memory base expression should have the type
1904 of the candidate.
1905
1906 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1907
1908 PR target/71721
1909 * config.gcc (*-*-uclinux*): Enable posix threads.
1910
1911 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1912
1913 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1914 * config/i386/avx512dqintrin.h: Ditto.
1915 * config/i386/avx512fintrin.h: Ditto.
1916 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1917 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1918 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1919 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1920 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1921 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1922 function types.
1923 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1924 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1925 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1926 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1927 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1928 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1929 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1930 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1931 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1932
1933 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1934
1935 * combine.c: Revert r243162.
1936
1937 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1938
1939 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1940 X tests a single bit.
1941
1942 2016-12-05 Nathan Sidwell <nathan@acm.org>
1943
1944 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1945 (diagnostic_action_after_output): ... here.
1946 (diagnostic_report_diagnostic): Call it for non-notes.
1947 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
1948 (diagnostic_check_max_errors): Declare.
1949
1950 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
1951
1952 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
1953 (ENDFILE_SPEC): Likewise.
1954
1955 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
1956
1957 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
1958 * config/arc/arc.c (arc_unspec_offset): New function.
1959 (arc_finalize_pic): Change.
1960 (arc_emit_call_tls_get_addr): Likewise.
1961 (arc_legitimize_tls_address): Likewise.
1962 (arc_legitimize_pic_address): Likewise.
1963 (insn_is_tls_gd_dispatch): Remove.
1964 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
1965 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
1966 (tls_gd_dispatch): Likewise.
1967
1968 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
1969
1970 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
1971 location.
1972
1973 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
1974
1975 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
1976 (sparc_split_reg_mem_legitimate): ...this.
1977 (sparc_split_reg_mem): Declare.
1978 (sparc_split_mem_reg): Likewise.
1979 (sparc_split_regreg_legitimate): Rename to...
1980 (sparc_split_reg_reg_legitimate): ...this.
1981 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
1982 (sparc_split_reg_mem_legitimate): ...this.
1983 (sparc_split_reg_mem): New function.
1984 (sparc_split_mem_reg): Likewise.
1985 (sparc_split_regreg_legitimate): Rename to...
1986 (sparc_split_reg_reg_legitimate): ...this.
1987 (sparc_split_reg_reg): New function.
1988 * config/sparc/sparc.md (lra): Remove "none" value.
1989 (enabled): Adjust to above change.
1990 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
1991 (DImode splitters): Adjust to above renamings and use new functions.
1992 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
1993 (DFmode splitters): Adjust to above renamings and use new functions.
1994 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
1995 constraint in conjunction with e.
1996 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
1997 alternative and reorder others.
1998 (VM64:mode splitters): Adjust to above renamings and use new functions.
1999
2000 2016-12-04 Martin Sebor <msebor@redhat.com>
2001
2002 PR c/78668
2003 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
2004 identifier tree nodes.
2005 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
2006 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
2007 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
2008 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
2009 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
2010 * builtins.def (aligned_alloc, calloc, malloc, realloc):
2011 Add attribute alloc_size.
2012 (alloca): Add attribute alloc_size and returns_nonnull.
2013
2014 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
2015
2016 PR target/70322
2017 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2018 (dimode_scalar_chain::compute_convert_gain): Ditto.
2019 (dimode_scalar_chain::convert_insn): Ditto.
2020
2021 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2022
2023 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2024 cases to build a lowpart SUBREG.
2025
2026 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2027 David S. Miller <davem@davemloft.net>
2028
2029 * config/sparc/constraints.md (U): Adjust comment.
2030 * config/sparc/sparc.md (lra): New attribute.
2031 (enabled): For base instructions, if the lra attribute is set,
2032 return 1 if it is in keeping with TARGET_LRA.
2033 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2034 constraint and duplicate them with U replaced by r.
2035 (*movdf_insn_sp32): Likewise.
2036 (*mov<VM64:mode>_insn_sp32): Likewise.
2037 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2038
2039 2016-12-02 Jeff Law <law@redhat.com>
2040
2041 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2042 variable main_variant.
2043
2044 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2045
2046 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2047 default on PowerPC linux systems.
2048
2049 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2050
2051 PR rtl-optimization/78638
2052 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2053 GET_MODE (op). Fix this.
2054
2055 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2056
2057 PR bootstrap/78616
2058 * selftest.c (selftest::assert_strndup_eq): Rename to...
2059 (selftest::assert_xstrndup_eq): ...this, and remove call to
2060 strndup.
2061 (selftest::test_strndup): Rename to...
2062 (selftest::test_xstrndup): ...this, updating for above renaming.
2063 (selftest::test_libiberty): Update for renaming.
2064
2065 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2066
2067 PR target/78639
2068 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2069 subversion id 242679 that causes the wrong store instruction to be
2070 generated if a DImode is in an Altivec register using REG+REG
2071 addressing.
2072
2073 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2074
2075 PR target/70322
2076 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2077 and corresponding post-reload splitter.
2078
2079 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2080
2081 * config/aarch64/aarch64.h (machine_function): Add
2082 reg_is_wrapped_separately field.
2083 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2084 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2085 rtx_insn *.
2086 (aarch64_save_callee_saves): Don't save registers that are wrapped
2087 separately.
2088 (aarch64_restore_callee_saves): Don't restore registers that are
2089 wrapped separately.
2090 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2091 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2092 (aarch64_get_separate_components): New function.
2093 (aarch64_get_next_set_bit): Likewise.
2094 (aarch64_components_for_bb): Likewise.
2095 (aarch64_disqualify_components): Likewise.
2096 (aarch64_emit_prologue_components): Likewise.
2097 (aarch64_emit_epilogue_components): Likewise.
2098 (aarch64_set_handled_components): Likewise.
2099 (aarch64_process_components): Likewise.
2100 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2101 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2102 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2103 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2104 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2105 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2106
2107 2016-12-02 Martin Jambor <mjambor@suse.cz>
2108
2109 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2110 pass_build_ssa_passes.
2111
2112 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2113
2114 * config/alpha/alpha.md (exception_receiver): Copy
2115 alpha_gp_ave_rtx return value.
2116
2117 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2118
2119 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2120 for several include directories that may be relative to sysroot.
2121 * config/i386/x-mingw32 (gplus_includedir): Define.
2122 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2123 (native_system_includedir): Likewise.
2124 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2125 override if TARGET_SYSTEM_ROOT is defined.
2126 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2127
2128 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2129
2130 PR target/70322
2131 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2132 (dimode_scalar_chain::compute_convert_gain): Likewise.
2133 (dimode_scalar_chain::convert_insn): Likewise.
2134 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2135 define_insn_and_split.
2136 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2137
2138 PR target/78614
2139 * rtl.c (copy_rtx): Don't clear used flag here.
2140 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2141 is shareable.
2142 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2143 'E' in format, copy all vectors.
2144 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2145 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2146 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2147
2148 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2149 Thomas Preud'homme <thomas.preudhomme@arm.com>
2150
2151 * config/arm/arm-builtins.c (arm_builtins): Define
2152 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2153 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2154 (arm_init_builtins): Handle cmse_nonsecure_caller.
2155 (arm_expand_builtin): Likewise.
2156 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2157
2158 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2159 Thomas Preud'homme <thomas.preudhomme@arm.com>
2160
2161 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2162 (cmse_nonsecure_call_clear_caller_saved): New.
2163 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2164 (arm_function_ok_for_sibcall): Disable sibcalls for
2165 cmse_nonsecure_call.
2166 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2167 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2168 (call_value): Likewise.
2169 (nonsecure_call_internal): New.
2170 (nonsecure_call_value_internal): New.
2171 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2172 (*nonsecure_call_value_reg_thumb1_v5): New.
2173 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2174 (*nonsecure_call_value_reg_thumb2): New.
2175 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2176
2177 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2178 Thomas Preud'homme <thomas.preudhomme@arm.com>
2179
2180 * config/arm/arm.c (gimplify.h): New include.
2181 (arm_handle_cmse_nonsecure_call): New.
2182 (arm_attribute_table): Added cmse_nonsecure_call.
2183 (arm_comp_type_attributes): Deny compatibility of function types
2184 with without the cmse_nonsecure_call attribute.
2185 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2186
2187 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2188 Thomas Preud'homme <thomas.preudhomme@arm.com>
2189
2190 * config/arm/arm.c (output_return_instruction): Clear
2191 registers.
2192 (thumb2_expand_return): Likewise.
2193 (thumb1_expand_epilogue): Likewise.
2194 (thumb_exit): Likewise.
2195 (arm_expand_epilogue): Likewise.
2196 (cmse_nonsecure_entry_clear_before_return): New.
2197 (comp_not_to_clear_mask_str_un): New.
2198 (compute_not_to_clear_mask): New.
2199 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2200 * config/arm/thumb2.md (*thumb2_return): Disable for
2201 cmse_nonsecure_entry functions.
2202 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2203 cmse_nonsecure_entry functions.
2204
2205 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2206 Thomas Preud'homme <thomas.preudhomme@arm.com>
2207
2208 * config/arm/arm.c (use_return_insn): Change to return with bxns
2209 when cmse_nonsecure_entry.
2210 (output_return_instruction): Likewise.
2211 (arm_output_function_prologue): Likewise.
2212 (thumb_pop): Likewise.
2213 (thumb_exit): Likewise.
2214 (thumb2_expand_return): Assert that entry functions always have simple
2215 returns.
2216 (arm_expand_epilogue): Handle entry functions.
2217 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2218 (arm_asm_declare_function_name): New.
2219 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2220 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2221 use arm_asm_declare_function_name.
2222
2223 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2224 Thomas Preud'homme <thomas.preudhomme@arm.com>
2225
2226 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2227 (arm_attribute_table): Added cmse_nonsecure_entry
2228 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2229 (cmse_func_args_or_return_in_stack): New.
2230 (arm_handle_cmse_nonsecure_entry): New.
2231 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2232 (IS_CMSE_ENTRY): Likewise.
2233 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2234
2235 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2236 Thomas Preud'homme <thomas.preudhomme@arm.com>
2237
2238 * config.gcc (extra_headers): Added arm_cmse.h.
2239 * config/arm/arm-arches.def (ARM_ARCH):
2240 (armv8-m): Add FL2_CMSE.
2241 (armv8-m.main): Likewise.
2242 (armv8-m.main+dsp): Likewise.
2243 * config/arm/arm-c.c
2244 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2245 * config/arm/arm-flags.h: Define FL2_CMSE.
2246 * config/arm.c (arm_arch_cmse): New.
2247 (arm_option_override): New error for unsupported cmse target.
2248 * config/arm/arm.h (arm_arch_cmse): New.
2249 * config/arm/arm.opt (mcmse): New.
2250 * config/arm/arm_cmse.h: New file.
2251 * doc/invoke.texi (ARM Options): Add -mcmse.
2252 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2253 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2254
2255 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2256
2257 * config/avr/avr.c: Fix coding rule glitches.
2258
2259 2016-12-02 Martin Jambor <mjambor@suse.cz>
2260
2261 * hsa.c (hsa_callable_function_p): Return false for artificial
2262 functions.
2263
2264 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2265
2266 PR rtl-optimization/78561
2267 * varasm.c (recompute_pool_offsets): New.
2268 (output_constant_pool): Call it.
2269
2270 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2271
2272 PR rtl-optimization/78561
2273 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2274 get_pool_size to get_pool_size_upper_bound.
2275 (rs6000_stack_info): Likewise.
2276 (rs6000_emit_prologue): Likewise.
2277 (rs6000_elf_declare_function_name): Likewise.
2278 (rs6000_set_up_by_prologue): Likewise.
2279 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2280 * output.h (get_pool_size): Rename to...
2281 (get_pool_size_upper_bound): ...This.
2282 * varasm.c (get_pool_size): Rename to...
2283 (get_pool_size_upper_bound): ...This.
2284
2285 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2286
2287 * match.pd: Add new pattern:
2288 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2289
2290 2016-12-02 Nathan Sidwell <nathan@acm.org>
2291
2292 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2293 braces.
2294
2295 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2296
2297 PR middle-end/78328
2298 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2299 VR_ANTI_RANGE.
2300
2301 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2302
2303 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2304 problem.
2305
2306 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2307
2308 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2309 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2310 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2311 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2312 avr_mcu_types.flash_size to compute default value.
2313 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2314 mcu->flash_size to compute value for spec.
2315
2316 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2317
2318 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2319 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2320 about linker description to avoid progmem altogether.
2321 [absdata]: Point to -mabsdata option.
2322
2323 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2324
2325 PR rtl-optimization/78547
2326 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2327 DECL_INCOMING_RTL is not shared.
2328 * config/i386/i386.c (convert_scalars_to_vectors): If any
2329 insns have been converted, adjust all parameter's DEC_RTL and
2330 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2331 TImode.
2332
2333 PR rtl-optimization/78575
2334 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2335 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2336 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2337 affect further iterations.
2338
2339 2016-12-02 Martin Liska <mliska@suse.cz>
2340
2341 PR ipa/78555
2342 * sreal.c (sreal::to_int): Make absolute value before shifting.
2343 (sreal::operator/): Likewise.
2344 (sreal_verify_negative_division): New test.
2345 (void sreal_c_tests): Call the new test.
2346 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2347 SREAL_SIGN macros.
2348 (sreal::normalize_down): Likewise.
2349
2350 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2351
2352 * combine.c (combine_simplify_rtx): Suppress replacement of
2353 "(and (reg) (const_int bit))" with "if_then_else".
2354
2355 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2356
2357 PR target/77822
2358 * config/s390/s390.md ("extzv")
2359 ("*extzv<mode><clobbercc_or_nocc>")
2360 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2361 ("*<risbg_n>_ior_and_sr_ze")
2362 ("*extract1bitdi<clobbercc_or_nocc>")
2363 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2364 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2365 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2366 to validate the arguments of zero_extract and sign_extract.
2367
2368 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2369
2370 PR target/77822
2371 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2372
2373 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2374
2375 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2376 function.
2377 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2378 macro.
2379
2380 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2381
2382 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2383 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2384 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2385 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2386 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2387 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2388 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2389 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2390 ("vec_unpacku_lo_v4si"): New pattern definitions.
2391 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2392 vector.md.
2393
2394 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2395
2396 * config/s390/s390-protos.h (s390_reverse_condition): New
2397 prototype.
2398 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2399 of CC mode values.
2400 (s390_reverse_condition): New function.
2401 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2402 target macros.
2403
2404 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2405
2406 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2407 (CCVHUANY): Remove modes.
2408 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2409 documentation.
2410 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2411 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2412 modes.
2413 (s390_branch_condition_mask): Adjust to use the new cc consumer
2414 modes. The new modes allow for proper reversal in the middle-end.
2415 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2416 consumer modes for a comparison.
2417 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2418 throughout the file.
2419 * config/s390/vx-builtins.md: Likewise.
2420
2421 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2422
2423 * asan.c (asan_global_struct): Refactor.
2424 (create_odr_indicator): New function.
2425 (asan_needs_odr_indicator_p): Likewise.
2426 (is_odr_indicator): Likewise.
2427 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2428 constructor.
2429 (asan_protect_global): Do not protect odr indicators.
2430
2431 2016-12-01 Jeff Law <law@redhat.com>
2432
2433 * tree-ssa-threadedge.c
2434 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2435 propagation of operands if there are no operands.
2436
2437 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2438
2439 PR tree-optimization/78586
2440 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2441 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2442 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2443 type is INTEGER_TYPE or POINTER_TYPE.
2444
2445 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2446
2447 PR target/78577
2448 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2449 (vextuhrx): Likewise.
2450 (vextuwlx): Likewise.
2451 (vextuwrx): Likewise.
2452
2453 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2454
2455 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2456 early_dwarf_finished.
2457
2458 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2459 David S. Miller <davem@davemloft.net>
2460
2461 * config/sparc/sparc.opt (mlra): New target option.
2462 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2463 (sparc_lra_p): ...this. New function.
2464 (D_MODES, DF_MODES): Add missing cast.
2465 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2466 provide these insns when flag_pic.
2467 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2468 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2469 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2470 embmedany_textulo, embmedany_textlo): Likewise.
2471 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2472
2473 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2474
2475 PR debug/66419
2476 PR c++/78235
2477 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2478
2479 2016-12-01 Richard Biener <rguenther@suse.de>
2480 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2481
2482 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2483 memset if len-oldlen != 0.
2484 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2485
2486 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2487
2488 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2489
2490 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2491
2492 * config/avr/avr.c: Fix coding rule glitches.
2493
2494 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2495
2496 PR tree-optimization/78598
2497 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2498 overflows.
2499
2500 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2501
2502 PR rtl-optimization/78596
2503 * combine.c (simplify_comparison): Cast to unsigned to avoid
2504 left shifting of negative value.
2505
2506 2016-12-01 Matthias Klose <doko@ubuntu.com>
2507
2508 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2509
2510 2016-12-01 Richard Biener <rguenther@suse.de>
2511
2512 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2513 treat arrays with same type as objects that cannot overlap.
2514
2515 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2516
2517 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2518 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2519 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2520
2521 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2522
2523 PR debug/78587
2524 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2525 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2526 in unsigned HOST_WIDE_INT type.
2527 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2528
2529 PR target/78614
2530 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2531 set_used_flags (pat) before any simplifications. Clear used flag on
2532 PARALLEL copy. Don't guard add_reg_note call. Call
2533 copy_rtx_if_shared on pat before storing it into
2534 REG_FRAME_RELATED_EXPR.
2535
2536 2016-12-01 Alan Modra <amodra@gmail.com>
2537
2538 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2539 look inside UNSPEC_VSX_XXSPLTW vec.
2540
2541 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2542
2543 PR rtl-optimization/78607
2544 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2545
2546 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2547
2548 PR target/78602
2549 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2550 element is not a constant or in a register, force it to a
2551 register.
2552
2553 PR target/78560
2554 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2555 that will be set to a vector element to be in a register.
2556 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2557 the wrong multiplier to convert the element number to a byte
2558 offset.
2559
2560 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2561
2562 PR tree-optimization/77856
2563 * lra-constraints.c (inherit_in_ebb): Check original regno for
2564 invalid invariant regs too. Set only clobbered hard regs for the
2565 invalid invariant regs.
2566
2567 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2568
2569 Commit files forgotten in r242966.
2570
2571 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2572 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2573 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2574 prefix check to find wrap-around value, instead use MCU flash size.
2575 For 8k flash devices, update link_pmem_wrap spec string to
2576 add --pmem-wrap-around=8k.
2577 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2578 here...
2579 (LINK_SPEC): ...to here.
2580
2581 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2582
2583 PR c/78498
2584 * selftest.c (selftest::assert_strndup_eq): New function.
2585 (selftest::test_strndup): New function.
2586 (selftest::test_libiberty): New function.
2587 (selftest::selftest_c_tests): Call test_libiberty.
2588
2589 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2590
2591 PR rtl-optimization/78610
2592 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2593 instructions.
2594
2595 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2596
2597 PR tree-optimization/78574
2598 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2599 header PHI that doesn't define biv.
2600
2601 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2602
2603 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2604 reset_used_flags.
2605
2606 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2607 sharing the SUBREG rtx between move and following insn.
2608
2609 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2610 for REG_EQUIV argument.
2611
2612 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2613
2614 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2615
2616 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2617
2618 PR ipa/78555
2619 * real.c (real_hash): Add cast to avoid left
2620 shifting of negative values.
2621
2622 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2623
2624 PR target/78362
2625 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2626 from a subreg in operands[1] and don't call REGNO on a non-reg
2627 expression when deciding to force operands[2] into a reg.
2628
2629 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2630 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2633 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2634 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2635 * config/arc/arc700.md: Add define_bypass for store/load.
2636
2637 2016-11-30 Martin Liska <mliska@suse.cz>
2638
2639 * cgraph.c (symbol_table::initialize): Initialize
2640 ipa_clones_dump_file.
2641 (cgraph_node::remove): Report to ipa_clones_dump_file.
2642 * cgraph.h: Add new argument (suffix) to cloning methods.
2643 * cgraphclones.c (dump_callgraph_transformation): New function.
2644 (cgraph_node::create_clone): New argument.
2645 (cgraph_node::create_virtual_clone): Likewise.
2646 (cgraph_node::create_version_clone): Likewise.
2647 * dumpfile.c: Add .ipa-clones dump file.
2648 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2649 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2650 to dump_callgraph_transformation.
2651
2652 2016-11-30 Martin Liska <mliska@suse.cz>
2653
2654 PR sanitizer/78541
2655 * asan.c (asan_expand_mark_ifn): Properly
2656 select a VAR_DECL from FRAME.* component reference.
2657
2658 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2659
2660 PR rtl-optimization/78583
2661 * simplify-rtx.c (simplify_truncation): Add check missing from the
2662 previous commit.
2663
2664 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2665
2666 PR rtl-optimization/78590
2667 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2668 if the subreg_reg is a scalar integer mode.
2669
2670 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2671
2672 PR tree-optimization/78586
2673 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2674 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2675 Don't build_int_cst min/max twice. Formatting fix.
2676
2677 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2678
2679 PR rtl-optimization/78588
2680 * combine.c (if_then_else_cond): Also guard against BLKmode.
2681 * rtlanal.c (num_sign_bit_copies1): Add assert.
2682
2683 2016-11-29 Jeff Law <law@redhat.com>
2684
2685 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2686 variables.
2687
2688 * lra-constraints.c (check_and_process_move): Constrain the
2689 range of DCLASS and SCLASS to avoid false positive out of bounds
2690 array index warning.
2691
2692 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2693
2694 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2695
2696 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2697
2698 PR preprocessor/78569
2699 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2700 line directives were present.
2701
2702 2016-11-30 Matthias Klose <doko@ubuntu.com>
2703
2704 * doc/install.texi: Document configure options --enable-objc-gc
2705 and --with-target-bdw-gc.
2706
2707 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2708
2709 PR target/78594
2710 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2711 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2712 residing in traditional altivec registers can be stored
2713 correctly.
2714
2715 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2716
2717 PR target/78603
2718 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2719 overhead loop start between a call and its CALL_ARG_LOCATION
2720 note.
2721
2722 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2723
2724 * config/bfin/linux.h (CPP_SPEC): Define.
2725
2726 2016-11-29 Martin Sebor <msebor@redhat.com>
2727
2728 PR tree-optimization/78512
2729 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2730 * config/rs6000/linux.h: Same.
2731 * config/rs6000/linux64.h: Same.
2732 * config/sol2.h: Same.
2733 * config/sol2.c (solaris_printf_pointer_format): Remove.
2734 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2735 * doc/tm.texi: Regenerate.
2736 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2737 (pass_sprintf_length::compute_format_length): Return bool.
2738 (pass_sprintf_length::handle_gimple_call): Adjust.
2739 * target.def (printf_pointer_format): Remove.
2740 * targhooks.c (default_printf_pointer_format): Remove.
2741 (linux_printf_pointer_format): Same.
2742 * targhooks.h (default_printf_pointer_format): Remove.
2743 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2744
2745 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2746
2747 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2748 (mshift): Ditto.
2749 (SWI1248_AVX512BWDQ): Ditto.
2750 (SWI1248_AVX512BW): Ditto.
2751 (k<any_logic:code><mode>): Ditto.
2752 (kandn<mode>): Ditto.
2753 (kxnor<mode>): Ditto.
2754 (knot<mode>): Ditto.
2755 (*k<any_lshift:code><mode>): Ditto.
2756 (kortestzhi, kortestchi): Ditto.
2757 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2758
2759 2016-11-29 Andrew Pinski <apinski@cavium.com>
2760
2761 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2762 for the EQ_EXPR.
2763
2764 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2765
2766 PR target/71331
2767 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2768 to stack before call mcount.
2769 (tilegx_can_use_return_insn_p): Clean up code.
2770
2771 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2772
2773 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2774
2775 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2776
2777 PR c++/72774
2778 PR c++/72786
2779 PR c++/77922
2780 PR c++/78313
2781 * spellcheck.c (selftest::test_find_closest_string): Verify that
2782 we don't offer the goal string as a suggestion.
2783 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2784 offer the goal string as a suggestion.
2785
2786
2787 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2788
2789 * config/arc/arc.c (arc_override_options): Avoid selection of
2790 compact casesi for ARCv2.
2791
2792 2016-11-29 Richard Biener <rguenther@suse.de>
2793
2794 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2795 PHIs after a regular stmt.
2796 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2797 start a new BB.
2798
2799 2016-11-29 Martin Liska <mliska@suse.cz>
2800
2801 PR gcov-profile/78582
2802 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2803 to prevent PHI argument clash.
2804
2805 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2806
2807 * config/arc/arc.opt (marclinux): Fix typo.
2808 (marclinux_prof): Likewise.
2809
2810 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2811
2812 * target.def (stack_protect_runtime_enabled_p): New.
2813 * function.c (expand_function_end): Guard stack_protect_epilogue with
2814 targetm.stack_protect_runtime_enabled_p.
2815 * cfgexpand.c (pass_expand::execute): Likewise.
2816 * calls.c (expand_call): Likewise.
2817 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2818 * doc/tm.texi: Regenerate.
2819
2820 2016-11-29 Richard Biener <rguenther@suse.de>
2821
2822 PR middle-end/78546
2823 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2824
2825 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2826
2827 * doc/contrib.texi: Add a few missing gfortran contributors.
2828
2829 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2830
2831 * combine.c (change_zero_ext): Also handle extends from a subreg
2832 to a mode bigger than that of the operand of the subreg.
2833
2834 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2835
2836 PR target/77687
2837 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2838 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2839 SPE ABIs.
2840 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2841
2842 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2843
2844 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2845 head_components and tail_components.
2846 (spread_components): New algorithm.
2847 (emit_common_tails_for_components): Clear head_components and
2848 tail_components.
2849 (insert_prologue_epilogue_for_components): Write extra output to the
2850 dump file for sibcalls and abnormal exits.
2851
2852 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2853
2854 PR rtl-optimization/78342
2855 * combine.c: Include "cfghooks.h".
2856 (try_combine): If we create an unconditional trap, break the basic
2857 block in two just after it, and remove the edge between; also, set
2858 the *new_direct_jump_p flag so that cleanup_cfg is run.
2859
2860 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2861
2862 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2863 and sign_extract.
2864
2865 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2866
2867 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2868 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2869 output template string.
2870 (*anddi_1): Use multi-line output template string.
2871 (*andqi_1): Ditto.
2872
2873 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2874
2875 PR middle-end/78540
2876 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2877 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2878 note has been removed.
2879 * postreload.c (reload_combine_recognize_pattern): If
2880 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2881
2882 2016-11-28 Martin Sebor <msebor@redhat.com>
2883
2884 PR middle-end/78520
2885 * gimple-ssa-sprintf.c (target_max_value): Remove.
2886 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2887 (get_width_and_precision): New function.
2888 (format_integer, format_floating, get_string_length, format_string):
2889 Correct handling of width and precision with unknown value.
2890 (format_directive): Add warning.
2891 (pass_sprintf_length::compute_format_length): Allow for precision
2892 to consist of a sole period with no asterisk or digits after it.
2893
2894 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2895
2896 PR rtl-optimization/78546
2897 * simplify-rtx.c (neg_const_int): When negating most negative
2898 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2899 simplify_const_unary_operation to produce CONST_DOUBLE or
2900 CONST_WIDE_INT.
2901 (simplify_plus_minus): Handle the case where neg_const_int
2902 doesn't return a CONST_INT.
2903
2904 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2905
2906 PR target/78556
2907 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2908 left shifting of negative values.
2909
2910 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2911
2912 PR fortran/78298
2913 * tree-nested.c (convert_local_reference_stmt): After adding
2914 shared (FRAME.NN) clause to omp parallel, task or target,
2915 add it also to all outer omp parallel, task or target constructs.
2916
2917 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2918
2919 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2920 (UNSPEC_KMOV): Remove.
2921 (kmovw): Expand to plain HImode move.
2922 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2923 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2924 Remove corresponding clobber-removing splitter.
2925 (*anddi_1): Remove mask register alternatives.
2926 (*andsi_1): Ditto.
2927 (*andhi_1): Ditto.
2928 (*andqi_1): Ditto.
2929 (*<any_or:code><mode>_1): Ditto.
2930 (*<any_or:code>qi_1): Ditto.
2931 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2932 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2933 Remove corresponding splitter to operation with general registers.
2934 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2935 (*andn<SWI12:mode>): New pattern.
2936 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2937 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2938 with general registers.
2939 (knot<mode>): New insn pattern.
2940 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2941 (one_cmplqi2_1): Ditto.
2942 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2943 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2944 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2945 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2946 to generate kmaskop shift.
2947 (vec_unpacks_hi_<mode>): Ditto.
2948 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
2949 Use CODE_FOR_kandhi.
2950 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
2951 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
2952 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
2953
2954 2016-11-28 Richard Biener <rguenther@suse.de>
2955
2956 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
2957 to SSA names via extract_range_from_ssa_name if allowed.
2958
2959 2016-11-28 Richard Biener <rguenther@suse.de>
2960
2961 PR tree-optimization/78542
2962 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2963 if allowed.
2964
2965 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
2966
2967 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
2968 isolates a single bit, even if the condition involves subregs.
2969
2970 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2971
2972 * config/aarch64/aarch64-simd-builtins.def
2973 (BSL_P): Added di and v2di mode.
2974 * config/aarch64/arm_neon.h
2975 (vsriq_n_p64, vsri_n_p64): Added poly type.
2976 (vextq_p64, vext_p64): Likewise.
2977 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
2978
2979 2016-11-28 Tamar Christina <tamar.christina@arm.com>
2980
2981 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
2982 (TYPES_GETREGP): Likewise.
2983 (TYPES_SHIFTINSERTP): Likewise.
2984 (TYPES_COMBINEP): Likewise.
2985 (TYPES_STORE1P): Likewise.
2986 * config/aarch64/aarch64-simd-builtins.def
2987 (combine): Added poly generator.
2988 (get_dregoi): Likewise.
2989 (get_dregci): Likewise.
2990 (get_dregxi): Likewise.
2991 (ssli_n): Likewise.
2992 (ld1): Likewise.
2993 (st1): Likewise.
2994 * config/aarch64/arm_neon.h
2995 (poly64x1x2_t, poly64x1x3_t): New.
2996 (poly64x1x4_t, poly64x2x2_t): Likewise.
2997 (poly64x2x3_t, poly64x2x4_t): Likewise.
2998 (poly64x1_t): Likewise.
2999 (vcreate_p64, vcombine_p64): Likewise.
3000 (vdup_n_p64, vdupq_n_p64): Likewise.
3001 (vld2_p64, vld2q_p64): Likewise.
3002 (vld3_p64, vld3q_p64): Likewise.
3003 (vld4_p64, vld4q_p64): Likewise.
3004 (vld2_dup_p64, vld3_dup_p64): Likewise.
3005 (vld4_dup_p64, vsli_n_p64): Likewise.
3006 (vsliq_n_p64, vst1_p64): Likewise.
3007 (vst1q_p64, vst2_p64): Likewise.
3008 (vst3_p64, vst4_p64): Likewise.
3009 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
3010 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
3011 (vget_lane_p64, vgetq_lane_p64): Likewise.
3012 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
3013 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3014 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3015 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3016 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3017 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3018 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3019 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3020 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3021 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3022 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3023 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3024 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3025 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3026 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3027 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3028 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3029 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3030 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3031 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3032 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3033 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3034 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3035 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3036 (vset_lane_p64, vsetq_lane_p64): Likewise.
3037 (vget_low_p64, vget_high_p64): Likewise.
3038 (vcombine_p64, vst2_lane_p64): Likewise.
3039 (vst3_lane_p64, vst4_lane_p64): Likewise.
3040 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3041 (vst4q_lane_p64, vget_lane_p64): Likewise.
3042 (vget_laneq_p64, vset_lane_p64): Likewise.
3043 (vset_laneq_p64, vcopy_lane_p64): Likewise.
3044 (vcopy_laneq_p64, vdup_n_p64): Likewise.
3045 (vdupq_n_p64, vdup_lane_p64): Likewise.
3046 (vdup_laneq_p64, vld1_p64): Likewise.
3047 (vld1q_p64, vld1_dup_p64): Likewise.
3048 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3049 (vmov_n_p64, vmovq_n_p64): Likewise.
3050 (vst3q_p64, vst4q_p64): Likewise.
3051 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3052 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3053 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3054 (vdupq_laneq_p64): Likewise.
3055
3056 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3057
3058 * config/arm/arm_neon.h (vget_lane_p64): New.
3059
3060 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3061
3062 PR target/71767
3063 * configure.ac (with_ld64): Use portable method to extract the
3064 major part of the version number.
3065 * configure: Regenerated.
3066
3067 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3068
3069 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3070 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3071 intmax_t couldn't be determined.
3072 (format_integer): Make {,u}intmax_type_node no longer static,
3073 initialize them only when needed. For z and t use
3074 signed_or_unsigned_type_for instead of assuming size_t and
3075 ptrdiff_t have the same precision.
3076
3077 PR lto/78211
3078 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3079 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3080 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3081 vector instead of traversing m_classes hash table. Release
3082 m_classes_vec.
3083 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3084 Formatting fixes.
3085 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3086 add it also to m_classes_vec vector.
3087 (sem_item_optimizer::remove_symtab_node,
3088 sem_item_optimizer::build_hash_based_classes,
3089 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3090 (sem_item_optimizer::subdivide_classes_by_equality,
3091 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3092 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3093 instead of traversing m_classes hash table. Formatting fixes.
3094 (sem_item_optimizer::traverse_congruence_split,
3095 sem_item_optimizer::do_congruence_step_for_index,
3096 sem_item_optimizer::do_congruence_step): Formatting fixes.
3097 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3098 vector instead of traversing m_classes hash table.
3099 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3100 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3101 instead of traversing m_classes hash table.
3102
3103 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3104
3105 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3106 X is not unused after.
3107
3108 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3109
3110 PR rtl-optimization/78120
3111 * rtlanal.c (insn_rtx_cost): Revert previous change.
3112
3113 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3114
3115 PR 41076
3116 * config/avr/avr.md (SPLIT34): New mode iterator.
3117 (bitop): New code iterator.
3118 (*iorhi3.ashift8-*). New insn-and-split patterns.
3119 (*movhi): Post-reload split reg = 0.
3120 [!MOVW]: Post-reload split reg = reg.
3121 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3122 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3123 (iorhi3, iorpsi3, iorsi3): Same.
3124 (xorhi3, xorpsi3, xorsi3): Same.
3125 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3126 costs to *iorhi3.ashift8-* patterns.
3127
3128 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3129 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3130
3131 PR target/67710
3132 * config.in: Regenerate
3133 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3134 for the assembler.
3135 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3136 * config/darwin.opt(asm_macosx_version_min): New.
3137 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3138 * configure: Regenerate
3139 * configure.ac: Check for mmacosx-version-min handling.
3140
3141 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3142
3143 PR target/57438
3144 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3145 where the function might otherwise appear empty for picbase thunks.
3146 (ix86_output_function_epilogue): If we find a zero-sized function
3147 assume that reaching it is UB and trap. If we find a trailing label
3148 append a nop.
3149 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3150 find a zero-sized function assume that reaching it is UB and trap.
3151 If we find a trailing label, append a nop.
3152
3153 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3154
3155 PR target/71767
3156 * config/darwin-sections.def (picbase_thunk_section): New.
3157 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3158 section. (darwin_rodata_section, darwin_objc2_section,
3159 machopic_select_section, darwin_asm_declare_constant_name,
3160 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3161 coalesced with newer linkers.
3162 (darwin_override_options): Decide on usage of coalesed sections
3163 on the basis of the target linker version.
3164 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3165 * config/darwin.opt (mtarget-linker): New.
3166 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3167 a coalesced section, instead use a thunks section.
3168
3169 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3170
3171 PR target/71767
3172 * configure.ac (with-ld64): New var, set for Darwin, set on
3173 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3174 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3175 * config/darwin10.h(DEF_LD64): Update for this target version.
3176 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3177 (DEF_LD64): Update for this target version.
3178 * configure: Regenerated.
3179 * config.in: Regenerated.
3180
3181 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3182
3183 PR target/71767
3184 * config/darwin.c (imachopic_indirection_name): Make data
3185 section indirections linker-visible.
3186 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3187 constant labels linker-visible.
3188
3189 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3190
3191 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3192 (free_lang_data): Remove assignment to ptrdiff_type_node.
3193
3194 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3195
3196 PR rtl-optimization/78526
3197 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3198 beyond val's precision.
3199
3200 PR rtl-optimization/78527
3201 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3202 out of bounds shift count.
3203
3204 2016-11-25 Martin Liska <mliska@suse.cz>
3205
3206 PR web/71666
3207 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3208 where -fprofile-generate is documented.
3209
3210 2016-11-25 Martin Liska <mliska@suse.cz>
3211
3212 PR gcov-profile/78086
3213 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3214 not supported by a target. Set priority to 100 if possible.
3215 (build_gcov_exit_decl): Likewise.
3216
3217 2016-11-25 Richard Biener <rguenther@suse.de>
3218
3219 PR ipa/78515
3220 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3221 unary, binary and single RHSs.
3222 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3223
3224 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3225
3226 PR middle-end/78507
3227 PR middle-end/78510
3228 PR middle-end/78517
3229 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3230 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3231 and set it to result code if transformation is valid. Use code EQ
3232 directly in last simplification case.
3233
3234 2016-11-25 Richard Biener <rguenther@suse.de>
3235
3236 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3237 before valueizing return stmts.
3238
3239 2016-11-24 Richard Biener <rguenther@suse.de>
3240
3241 PR tree-optimization/78343
3242 * passes.def: Add CD-DCE pass after loop splitting.
3243 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3244 SCEV init/finalize ...
3245 (perform_tree_ssa_dce): ... here. Deal with being
3246 executed inside the loop pipeline in aggressive mode.
3247
3248 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3249
3250 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3251
3252 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3253
3254 PR tree-optimization/77673
3255 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3256 (init_symbolic_number): Initialize src field from src parameter.
3257 (perform_symbolic_merge): Select most dominated statement as the
3258 source statement. Set src field of resulting n structure from the
3259 input src with the lowest address.
3260 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3261 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3262 of load from src field rather than insertion statement. Cancel
3263 optimization if statement analyzed is not dominated by the insertion
3264 statement.
3265 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3266 dominance information.
3267
3268 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3269
3270 PR ada/67205
3271 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3272
3273 2016-11-25 Martin Jambor <mjambor@suse.cz>
3274
3275 PR tree-optimization/70965
3276 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3277
3278 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3279
3280 PR target/78509
3281 * config/i386/i386.c (i386_excess_precision): Do not return
3282 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3283 EXCESS_PRECISION_TYPE_STANDARD.
3284 * target.def (excess_precision): Document that targets should
3285 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3286 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3287 Fix typo in first sentence.
3288 * doc/tm.texi: Regenerate.
3289
3290 2016-11-25 Richard Biener <rguenther@suse.de>
3291
3292 PR tree-optimization/78396
3293 * tree-vectorizer.c (vectorize_loops): When the if-converted
3294 body contains masked loads or stores do not attempt to
3295 basic-block-vectorize it.
3296
3297 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3298 Alan Hayward <alan.hayward@arm.com>
3299 David Sherwood <david.sherwood@arm.com>
3300
3301 * function.h (spill_slot_alignment): Declare.
3302 * function.c (spill_slot_alignment): New function.
3303 * lra-spills.c (slot): Add align and size fields.
3304 (assign_mem_slot): Use them in the call to assign_stack_local.
3305 (add_pseudo_to_slot): Update the fields.
3306 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3307
3308 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3309 Alan Hayward <alan.hayward@arm.com>
3310 David Sherwood <david.sherwood@arm.com>
3311
3312 * stor-layout.c (layout_type): Allow the caller to set the mode of
3313 a float type. Only choose one here if the mode is still VOIDmode.
3314 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3315 floats before calling layout_type.
3316 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3317
3318 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3319
3320 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3321 local variables if all references are known to be direct.
3322
3323 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3324 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3325
3326 PR middle-end/78501
3327 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3328 non null and it's precision matches precision of lhs's type.
3329
3330 2016-11-24 Martin Sebor <msebor@redhat.com>
3331
3332 PR tree-optimization/78476
3333 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3334 Add a member.
3335 (handle_gimple_call): Adjust signature.
3336 (try_substitute_return_value): Remove calls to bounded functions
3337 with zero buffer size whose result is known.
3338 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3339
3340 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3341
3342 * varasm.c (assemble_start_function): Wrap align_log definition in
3343 ASM_OUTPUT_MAX_SKIP_ALIGN.
3344
3345 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3346
3347 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3348 explicit mode macros.
3349 (wide OR insn to QImode splitter): Ditto.
3350
3351 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3352
3353 PR rtl-optimization/77541
3354 * lra-constraints.c (struct input_reload): Add field match_p.
3355 (get_reload_reg): Check modes of input reloads to generate unique
3356 value reload pseudo.
3357 (match_reload): Add input reload pseudo for the current insn.
3358
3359 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3360
3361 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3362 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3363 architecture levels.
3364 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3365 the aarch64_fp16_type_node, not all HFmode types.
3366 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3367 (aarch64_scalar_mode_supported_p): Likewise.
3368 (aarch64_excess_precision): New.
3369 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3370 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3371 (TARGET_C_EXCESS_PRECISION): Likewise.
3372
3373 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3374
3375 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3376 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3377
3378 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3379
3380 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3381 (<optab>dihf2): Likewise.
3382 (aarch64_fp16_<optab><mode>hf2): New.
3383
3384 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3385
3386 PR target/67822
3387 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3388
3389 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3390
3391 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3392 Enable REE at -O2 and higher.
3393 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3394 in 32-bit mode.
3395
3396 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3397
3398 PR target/48863
3399 PR inline-asm/70184
3400 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3401 (new_temp_expr_table): Initialise reg_vars_cnt.
3402 (free_temp_expr_table): Release reg_vars_cnt.
3403 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3404 field of TAB.
3405 (find_replaceable_in_bb): Use the above to record register variable
3406 write occurrences and cancel replacement across them.
3407
3408 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3409
3410 PR rtl-optimization/78437
3411 * ree.c (get_uses): New function.
3412 (combine_reaching_defs): When a copy is needed, return false if any
3413 reaching use of the source register reads it in a mode larger than
3414 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3415
3416 2016-11-24 Martin Liska <mliska@suse.cz>
3417
3418 * gimple-pretty-print.c (dump_edge_probability): New function.
3419 (dump_gimple_switch): Dump label edge probabilities.
3420 (dump_gimple_cond): Likewise.
3421 (dump_gimple_label): Dump
3422 (dump_gimple_bb_header): Dump basic block frequency.
3423 (pp_cfg_jump): Replace e->dest argument with e.
3424 (dump_implicit_edges): Likewise.
3425 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3426 Use gimple_bb (at) instead of at->bb.
3427
3428 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3429
3430 * common.opt (flimit-function-alignment): New.
3431 * doc/invoke.texi (-flimit-function-alignment): Document.
3432 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3433 * final.c (shorten_branches): Set it.
3434 * varasm.c (assemble_start_function): Limit alignment if
3435 requested.
3436
3437 2016-11-24 Richard Biener <rguenther@suse.de>
3438
3439 PR tree-optimization/71595
3440 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3441 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3442 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3443 called functions. Only fix irred flags if the caller didn't
3444 request state.
3445 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3446 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3447 to remove_path.
3448
3449 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3450
3451 PR rtl-optimization/78120
3452 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3453 cases, and additionally test against max_seq_cost for speed
3454 optimization.
3455 (noce_process_if_block): Compute an estimate for the original cost when
3456 optimizing for speed, using the minimum of then and else block costs.
3457
3458 PR rtl-optimization/78120
3459 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3460
3461 PR rtl-optimization/78120
3462 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3463
3464 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3465
3466 * match.pd: Refine type conversion in result expr for below pattern:
3467 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3468
3469 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3470
3471 PR middle-end/78429
3472 * tree.h (wi::fits_to_boolean_p): New predicate.
3473 (wi::fits_to_tree_p): Use it for boolean types.
3474 * tree.c (int_fits_type_p): Likewise.
3475
3476 2016-11-24 Martin Liska <mliska@suse.cz>
3477
3478 * print-tree.c (struct bucket): Remove.
3479 (print_node): Add new argument which drives whether a tree node
3480 is printed briefly or not.
3481 (debug_tree): Replace a custom hash table with hash_set<T>.
3482 * print-tree.h (print_node): Add the argument.
3483
3484 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3485
3486 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3487
3488 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3489
3490 PR target/78458
3491 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3492 if it is at least NREGS wide.
3493
3494 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3495
3496 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3497 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3498 TFmode, IFmode and KFmode.
3499
3500 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3501
3502 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3503 pattern.
3504
3505 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3506
3507 * combine.c (change_zero_ext): Only change the mode of a hard register
3508 destination if can_change_dest_mode holds for that.
3509
3510 2016-11-23 Jeff Law <law@redhat.com>
3511
3512 * varasm.c (assemble_name): Increase buffer size for name.
3513
3514 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3515
3516 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3517
3518 * doc/extend.texi: Constify first argument to __builtin_object_size.
3519
3520 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3521
3522 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3523 to be used. Add brackets around macro argument.
3524
3525 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3526
3527 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3528
3529 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3530
3531 PR sanitizer/69278
3532 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3533 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3534
3535 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3536
3537 PR middle-end/69183
3538 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3539 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3540 on worksharing constructs, treat it like clauses on simd construct.
3541 Formatting fix.
3542 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3543 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3544 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3545 of true as last argument to build_outer_var_ref.
3546
3547 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3548
3549 * config/i386/i386.md (*movqi_internal): Calculate mode
3550 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3551 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3552 (*k<logic><mode>): Calculate mode attribute depending on
3553 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3554 (*andqi_1): Calculate mode attribute of alternative 3 depending
3555 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3556 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3557 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3558 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3559 iterator. Calculate mode attribute of alternative 1 depending
3560 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3561 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3562 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3563
3564 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3565
3566 PR middle-end/78153
3567 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3568 * tree-vrp.c (extract_range_basic): Handle case for
3569 CFN_BUILT_IN_STRLEN.
3570
3571 2016-11-23 Jeff Law <law@redhat.com>
3572
3573 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3574
3575 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3576 in boolean context warning.
3577
3578 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3579
3580 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3581
3582 PR target/63250
3583 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3584 (arm_fp16_type_node): ...This, make visibile.
3585 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3586 arm_fp16_type_node.
3587 (arm_init_simd_builtin_types): Likewise.
3588 (arm_init_fp16_builtins): Likewise.
3589 * config/arm/arm.c (arm_excess_precision): New.
3590 (arm_floatn_mode): Likewise.
3591 (TARGET_C_EXCESS_PRECISION): Likewise.
3592 (TARGET_FLOATN_MODE): Likewise.
3593 (arm_promoted_type): Only promote arm_fp16_type_node.
3594 * config/arm/arm.h (arm_fp16_type_node): Declare.
3595
3596 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3597
3598 * config/arm/arm.c (arm_convert_to_type): Delete.
3599 (TARGET_CONVERT_TO_TYPE): Delete.
3600 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3601 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3602 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3603 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3604 are in fast math mode, and have no single step hardware instruction.
3605 (extendhfdf2): Only expand through SFmode if we don't have a
3606 single-step hardware instruction.
3607 * config/arm/vfp.md (*truncdfhf2): New.
3608 (extendhfdf2): Likewise.
3609
3610 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3611
3612 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3613 provides HFmode.
3614
3615 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3616
3617 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3618 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3619 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3620 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3621 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3622 * doc/tm.texi: Regenerate.
3623 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3624
3625 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3626
3627 * toplev.c (init_excess_precision): Delete most logic.
3628 * tree.c (excess_precision_type): Rewrite to use
3629 TARGET_EXCESS_PRECISION.
3630 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3631 more generic fashion.
3632 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3633 __STDC_WANT_IEC_60559_TYPES_EXT__.
3634
3635 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3636
3637 * common.opt (fpermitted-flt-eval-methods): New.
3638 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3639 * flag_types.h (permitted_flt_eval_methods): New.
3640
3641 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3642
3643 * config/m68k/m68k.c (m68k_excess_precision): New.
3644 (TARGET_C_EXCESS_PRECISION): Define.
3645
3646 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3647
3648 * config/s390/s390.c (s390_excess_precision): New.
3649 (TARGET_C_EXCESS_PRECISION): Define.
3650
3651 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3652
3653 * config/i386/i386.c (ix86_excess_precision): New.
3654 (TARGET_C_EXCESS_PRECISION): Define.
3655
3656 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3657
3658 * target.def (excess_precision): New hook.
3659 * target.h (flt_eval_method): New.
3660 (excess_precision_type): Likewise.
3661 * targhooks.c (default_excess_precision): New.
3662 * targhooks.h (default_excess_precision): New.
3663 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3664 * doc/tm.texi: Regenerate.
3665
3666 2016-11-23 Martin Sebor <msebor@redhat.com>
3667
3668 PR middle-end/78461
3669 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3670 set the minimum number of bytes for an unknown string to zero.
3671
3672 2016-11-23 Martin Jambor <mjambor@suse.cz>
3673 Martin Liska <mliska@suse.cz>
3674
3675 * hsa-builtins.def: New file.
3676 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3677 * builtins.def: Include hsa-builtins.def.
3678 (DEF_HSA_BUILTIN): New macro.
3679 * dumpfile.h (OPTGROUP_OPENMP): Define.
3680 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3681 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3682 GF_OMP_FOR_GRID_GROUP_ITER.
3683 (gimple_omp_for_grid_phony): Added checking assert.
3684 (gimple_omp_for_set_grid_phony): Likewise.
3685 (gimple_omp_for_grid_intra_group): New function.
3686 (gimple_omp_for_set_grid_intra_group): Likewise.
3687 (gimple_omp_for_grid_group_iter): Likewise.
3688 (gimple_omp_for_set_grid_group_iter): Likewise.
3689 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3690 previosuly only distribute loop was permitted.
3691 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3692 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3693 dimensions.
3694 (grid_expand_omp_for_loop): Likewise and also support standalone
3695 distribute constructs. New parameter INTRA_GROUP, updated both users.
3696 (grid_expand_target_grid_body): Support standalone distribute
3697 constructs.
3698 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3699 (pass_data_expand_omp_ssa): Likewise.
3700 (pass_data_omp_device_lower): Likewsie.
3701 (pass_data_lower_omp): Likewise.
3702 (pass_data_diagnose_omp_blocks): Likewise.
3703 (pass_data_oacc_device_lower): Likewise.
3704 (pass_data_omp_target_link): Likewise.
3705 (grid_lastprivate_predicate): New function.
3706 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3707 gridified loops.
3708 (lower_omp_for): Support standalone distribute constructs.
3709 (grid_prop): New type.
3710 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3711 parameter GRID.
3712 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3713 it to callee.
3714 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3715 optimization info messages.
3716 (grid_find_single_omp_among_assignments): Likewise.
3717 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3718 (grid_parallel_clauses_gridifiable): New function.
3719 (grid_inner_loop_gridifiable_p): Likewise.
3720 (grid_dist_follows_simple_pattern): Likewise.
3721 (grid_gfor_follows_tiling_pattern): Likewise.
3722 (grid_call_permissible_in_distribute_p): Likewise.
3723 (grid_handle_call_in_distribute): Likewise.
3724 (grid_dist_follows_tiling_pattern): Likewise.
3725 (grid_target_follows_gridifiable_pattern): Support standalone
3726 distribute constructs.
3727 (grid_var_segment): New enum.
3728 (grid_mark_variable_segment): New function.
3729 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3730 if a new argument says so.
3731 (grid_process_grid_body): New function.
3732 (grid_eliminate_combined_simd_part): Likewise.
3733 (grid_mark_tiling_loops): Likewise.
3734 (grid_mark_tiling_parallels_and_loops): Likewise.
3735 (grid_process_kernel_body_copy): Support standalone distribute
3736 constructs.
3737 (grid_attempt_target_gridification): New grid variable holding overall
3738 gridification state. Support standalone distribute constructs and
3739 collapse clauses.
3740 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3741 * hsa.h (hsa_bb): Add method method append_phi.
3742 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3743 occurences in all files too.
3744 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3745 (is_a_helper <hsa_insn_br *>::test): New function.
3746 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3747 branch instructions.
3748 (hsa_insn_signal): Make a direct descendant of
3749 hsa_insn_basic. Add memorder constructor parameter and
3750 m_memory_order and m_signalop member variables.
3751 (hsa_insn_queue): Changed constructor parameters to common form.
3752 Added m_segment and m_memory_order member variables.
3753 (hsa_summary_t): Add private member function
3754 process_gpu_implementation_attributes.
3755 (hsa_function_summary): Rename m_binded_function to
3756 m_bound_function.
3757 (hsa_insn_basic_p): Remove typedef.
3758 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3759 (hsa_op_reg_p): Remove typedef.
3760 (hsa_function_representation): Change hsa_op_reg_p into plain
3761 pointers.
3762 (hsa_insn_phi): Removed new and delete operators.
3763 (hsa_insn_br): Likewise.
3764 (hsa_insn_cbr): Likewise.
3765 (hsa_insn_sbr): Likewise.
3766 (hsa_insn_cmp): Likewise.
3767 (hsa_insn_mem): Likewise.
3768 (hsa_insn_atomic): Likewise.
3769 (hsa_insn_signal): Likewise.
3770 (hsa_insn_seg): Likewise.
3771 (hsa_insn_call): Likewise.
3772 (hsa_insn_arg_block): Likewise.
3773 (hsa_insn_comment): Likewise.
3774 (hsa_insn_srctype): Likewise.
3775 (hsa_insn_packed): Likewise.
3776 (hsa_insn_cvt): Likewise.
3777 (hsa_insn_alloca): Likewise.
3778 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3779 (process_gpu_implementation_attributes): New function.
3780 (link_functions): Move some functionality into it. Adjust after
3781 renaming m_binded_functions to m_bound_functions.
3782 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3783 to the list of instructions with no output registers.
3784 (get_in_type): Return this if it is a register of
3785 matching size.
3786 (hsa_get_declaration_name): Moved to...
3787 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3788 temporary string on an obstack instead from ggc.
3789 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3790 down to two overloads.
3791 (hsa_allocp_operand_address): Removed.
3792 (hsa_allocp_operand_immed): Likewise.
3793 (hsa_allocp_operand_reg): Likewise.
3794 (hsa_allocp_operand_code_list): Likewise.
3795 (hsa_allocp_operand_operand_list): Likewise.
3796 (hsa_allocp_inst_basic): Likewise.
3797 (hsa_allocp_inst_phi): Likewise.
3798 (hsa_allocp_inst_mem): Likewise.
3799 (hsa_allocp_inst_atomic): Likewise.
3800 (hsa_allocp_inst_signal): Likewise.
3801 (hsa_allocp_inst_seg): Likewise.
3802 (hsa_allocp_inst_cmp): Likewise.
3803 (hsa_allocp_inst_br): Likewise.
3804 (hsa_allocp_inst_sbr): Likewise.
3805 (hsa_allocp_inst_call): Likewise.
3806 (hsa_allocp_inst_arg_block): Likewise.
3807 (hsa_allocp_inst_comment): Likewise.
3808 (hsa_allocp_inst_queue): Likewise.
3809 (hsa_allocp_inst_srctype): Likewise.
3810 (hsa_allocp_inst_packed): Likewise.
3811 (hsa_allocp_inst_cvt): Likewise.
3812 (hsa_allocp_inst_alloca): Likewise.
3813 (hsa_allocp_bb): Likewise.
3814 (hsa_obstack): New.
3815 (hsa_init_data_for_cfun): Initialize obstack.
3816 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3817 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3818 (hsa_op_reg::operator new): Likewise.
3819 (hsa_op_address::operator new): Likewise.
3820 (hsa_op_code_list::operator new): Likewise.
3821 (hsa_op_operand_list::operator new): Likewise.
3822 (hsa_insn_basic::operator new): Likewise.
3823 (hsa_insn_phi::operator new): Likewise.
3824 (hsa_insn_br::operator new): Likewise.
3825 (hsa_insn_sbr::operator new): Likewise.
3826 (hsa_insn_cmp::operator new): Likewise.
3827 (hsa_insn_mem::operator new): Likewise.
3828 (hsa_insn_atomic::operator new): Likewise.
3829 (hsa_insn_signal::operator new): Likewise.
3830 (hsa_insn_seg::operator new): Likewise.
3831 (hsa_insn_call::operator new): Likewise.
3832 (hsa_insn_arg_block::operator new): Likewise.
3833 (hsa_insn_comment::operator new): Likewise.
3834 (hsa_insn_srctype::operator new): Likewise.
3835 (hsa_insn_packed::operator new): Likewise.
3836 (hsa_insn_cvt::operator new): Likewise.
3837 (hsa_insn_alloca::operator new): Likewise.
3838 (hsa_init_new_bb): Likewise.
3839 (hsa_bb::append_phi): New function.
3840 (gen_hsa_phi_from_gimple_phi): Use it.
3841 (get_symbol_for_decl): Fix dinstinguishing between
3842 global and local functions. Put local variables into a segment
3843 according to their attribute or static flag, if there is one.
3844 (hsa_insn_br::hsa_insn_br): New.
3845 (hsa_insn_br::operator new): Likewise.
3846 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3847 (query_hsa_grid_nodim): New function.
3848 (multiply_grid_dim_characteristics): Likewise.
3849 (gen_get_num_threads): Likewise.
3850 (gen_get_num_teams): Reimplemented.
3851 (gen_get_team_num): Likewise.
3852 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3853 helper functions.
3854 (get_memory_order_name): Removed.
3855 (get_memory_order): Likewise.
3856 (hsa_memorder_from_tree): New function.
3857 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3858 gen_hsa_atomic_for_builtin, can also create signals.
3859 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3860 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3861 (hsa_insn_atomic): Fix function comment.
3862 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3863 ancestor constructor and initialization of new member variables.
3864 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3865 member variables.
3866 (hsa_get_host_function): Handle functions with no bound CPU
3867 implementation. Fix binded to bound.
3868 (get_brig_function_name): Likewise.
3869 (HSA_SORRY_ATV): Remove semicolon after macro.
3870 (HSA_SORRY_AT): Likewise.
3871 (omp_simple_builtin::generate): Add missing semicolons.
3872 (hsa_insn_phi::operator new): Removed.
3873 (hsa_insn_br::operator new): Likewise.
3874 (hsa_insn_cbr::operator new): Likewise.
3875 (hsa_insn_sbr::operator new): Likewise.
3876 (hsa_insn_cmp::operator new): Likewise.
3877 (hsa_insn_mem::operator new): Likewise.
3878 (hsa_insn_atomic::operator new): Likewise.
3879 (hsa_insn_signal::operator new): Likewise.
3880 (hsa_insn_seg::operator new): Likewise.
3881 (hsa_insn_call::operator new): Likewise.
3882 (hsa_insn_arg_block::operator new): Likewise.
3883 (hsa_insn_comment::operator new): Likewise.
3884 (hsa_insn_srctype::operator new): Likewise.
3885 (hsa_insn_packed::operator new): Likewise.
3886 (hsa_insn_cvt::operator new): Likewise.
3887 (hsa_insn_alloca::operator new): Likewise.
3888 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3889 readonly segment.
3890 (gen_hsa_addr): Also process CONST_DECLs.
3891 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3892 copies.
3893 (gen_hsa_unary_operation): Make sure the function does
3894 not use bittype source type for firstbit and lastbit operations.
3895 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3896 source type.
3897 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3898 instruction.
3899 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3900 Emit the width stored in the class.
3901 (emit_generic_branch_insn): New function.
3902 (emit_insn): Call emit_generic_branch_insn.
3903 (emit_signal_insn): Remove obsolete comment. Update
3904 member variable name, pick a type according to profile.
3905 (emit_alloca_insn): Remove obsolete comment.
3906 (emit_atomic_insn): Likewise.
3907 (emit_queue_insn): Get segment and memory order from the IR object.
3908 (hsa_brig_section): Make allocate_new_chunk, chunks
3909 and cur_chunk provate, add a default NULL parameter to add method.
3910 (hsa_brig_section::add): Added a new parameter, store pointer to
3911 output data there if it is non-NULL.
3912 (emit_function_directives): Use this new parameter instead of
3913 calculating the pointer itself, fix function comment.
3914 (hsa_brig_emit_function): Add forgotten endian conversion.
3915 (hsa_output_kernels): Remove unnecessary building of
3916 kernel_dependencies_vector_type.
3917 (emit_immediate_operand): Declare.
3918 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3919 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3920 (verify_function_arguments): Properly detect variadic
3921 arguments.
3922 * hsa-dump.c (hsa_width_specifier_name): New function.
3923 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3924 member variable name. Special dumping for queue objects.
3925 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3926 m_binded_functions to m_bound_functions. Copy externally visible flag
3927 to the node.
3928 (ipa_hsa_write_summary): Likewise.
3929 (ipa_hsa_read_section): Likewise.
3930
3931 2016-11-23 Richard Biener <rguenther@suse.de>
3932
3933 PR tree-optimization/78396
3934 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3935 vectorize try vectorizing an if-converted body using BB vectorization.
3936
3937 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3938 Alan Hayward <alan.hayward@arm.com>
3939 David Sherwood <david.sherwood@arm.com>
3940
3941 * rtlanal.c (subreg_get_info): Use more local variables.
3942 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3943 occupies at least one register. Assume that full hard registers
3944 have consistent endianness. Share previously-duplicated if block.
3945 Rework the main handling so that it operates on independently-
3946 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3947 to check lowpart offsets, without trying to find an equivalent
3948 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
3949 as a final register-endianness correction.
3950
3951 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3952
3953 PR target/77881
3954 PR bootstrap/78390
3955 PR target/78438
3956 PR bootstrap/78477
3957 * combine.c (make_compound_operation_int): Do not convert a subreg of
3958 a non-constant logical shift right to a zero_extract. Handle the case
3959 where some zero bits have been shifted into the range covered by that
3960 subreg.
3961
3962 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3963 Alan Hayward <alan.hayward@arm.com>
3964 David Sherwood <david.sherwood@arm.com>
3965
3966 * rtl.h (subreg_size_offset_from_lsb): Declare.
3967 (subreg_offset_from_lsb): New function.
3968 (subreg_size_lowpart_offset): Declare.
3969 (subreg_lowpart_offset): Turn into an inline function.
3970 (subreg_size_highpart_offset): Declare.
3971 (subreg_highpart_offset): Turn into an inline function.
3972 * emit-rtl.c (subreg_size_lowpart_offset): New function.
3973 (subreg_size_highpart_offset): Likewise
3974 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
3975
3976 2016-11-23 Richard Biener <rguenther@suse.de>
3977
3978 PR tree-optimization/78482
3979 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
3980 (remove_forwarder_block_with_phi): When merging with a loop
3981 header creates a new latch reset number of iteration information
3982 of the loop.
3983
3984 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
3985
3986 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
3987 (*ashrsi3_extend0): ...this. Accept constant integers.
3988 (*ashrsi3_extend2): Rename to...
3989 (*ashrsi3_extend1): ...this.
3990 (*ashrsi3_extend2): New pattern.
3991 (*lshrsi3_extend1): Accept constant integers.
3992 (*lshrsi3_extend2): Fix condition on operand 2.
3993
3994 2016-11-23 Martin Liska <mliska@suse.cz>
3995
3996 * config/i386/i386.c: Initialize function pointer to NULL.
3997
3998 2016-11-23 Bin Cheng <bin.cheng@arm.com>
3999
4000 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4001 for A == C1 ? A : C2 to below.
4002 * match.pd: Move from above to here:
4003 (cond (eq (convert1? x) c1) (convert2? x) c2)
4004 -> (cond (eq x c1) c1 c2).
4005
4006 2016-11-23 Bin Cheng <bin.cheng@arm.com>
4007
4008 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4009 for A cmp C1 ? A : C2 to below, also simplify remaining code.
4010 * match.pd: Move and extend simplification from above to here:
4011 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
4012 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
4013 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4014
4015 2016-11-23 Martin Liska <mliska@suse.cz>
4016 Martin Jambor <mjambor@suse.cz>
4017
4018 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4019
4020 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
4021
4022 PR target/78213
4023 * opts.c (finish_options): Set -fsyntax-only if running self tests.
4024
4025 2016-11-23 Richard Biener <rguenther@suse.de>
4026
4027 PR middle-end/71762
4028 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4029 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4030
4031 2016-11-23 Richard Biener <rguenther@suse.de>
4032
4033 PR lto/78472
4034 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4035 fields.
4036
4037 2016-11-23 Richard Biener <rguenther@suse.de>
4038 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
4039
4040 PR tree-optimization/78154
4041 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4042 returns it's argument and the argument is nonnull.
4043 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4044 ATT_RETNONNULL_NOTHROW_LEAF.
4045 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4046 ATTR_RETNONNULL_NOTHROW_LEAF.
4047 (BUILT_IN_STPCPY): Likewise.
4048 (BUILT_IN_STPNCPY): Likewise.
4049 (BUILT_IN_MEMPCPY_CHK): Likewise.
4050 (BUILT_IN_STPCPY_CHK): Likewise.
4051 (BUILT_IN_STPNCPY_CHK): Likewise.
4052 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4053 (BUILT_IN_STRNCAT): Likewise.
4054 (BUILT_IN_STRNCPY): Likewise.
4055 (BUILT_IN_MEMSET_CHK): Likewise.
4056 (BUILT_IN_STRCAT_CHK): Likewise.
4057 (BUILT_IN_STRCPY_CHK): Likewise.
4058 (BUILT_IN_STRNCAT_CHK): Likewise.
4059 (BUILT_IN_STRNCPY_CHK): Likewise.
4060
4061 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4062
4063 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4064 * fold-const.h (tree_expr_nonzero_p) : Declare.
4065 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4066
4067 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4068
4069 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4070 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4071 "defined" in macros.
4072 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4073 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4074 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4075
4076 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4077
4078 PR target/60300
4079 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4080 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4081 of RCALLs in prologue to 3.
4082
4083 2016-11-22 Michael Collison <michael.collison@arm.com>
4084
4085 * config/aarch64/aarch64-protos.h
4086 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4087 (aarch64_and_bitmask_imm): New prototypes
4088 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4089 New overloaded function to create bit mask covering the
4090 lowest to highest bits set.
4091 (aarch64_and_split_imm2): New overloaded functions to create bit
4092 mask of zeros between first and last bit set.
4093 (aarch64_and_bitmask_imm): New function to determine if a integer
4094 is a valid two instruction "and" operation.
4095 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4096 allowing wider range of constants with "and" operations.
4097 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4098 "and" operator from matching restricted constant range used for
4099 ior and xor operators.
4100 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4101 for constants in "and" operantions.
4102 (UsP constraint): New DImode constraint for constants
4103 in "and" operations.
4104 * config/aarch64/iterators.md (lconst2): New mode iterator.
4105 (LOGICAL2): New code iterator.
4106 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4107 predicate.
4108 (aarch64_logical_and_operand): New predicate allowing extended
4109 constants for "and" operations.
4110
4111 2016-11-22 Walter Lee <walt@tilera.com>
4112
4113 * config/tilegx/tilegx.md (trap): New pattern.
4114 * config/tilepro/tilepro.md (trap): Likewise.
4115
4116 2016-11-22 Walter Lee <walt@tilera.com>
4117
4118 * config/tilegx/tilegx.md (*zero_extract): Use
4119 define_insn_and_split instead of define_insn; Handle pos + size >
4120 64.
4121 (*sign_extract): Likewise.
4122
4123 2016-11-22 Marek Polacek <polacek@redhat.com>
4124
4125 PR tree-optimization/78455
4126 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4127
4128 2016-11-22 Ian Lance Taylor <iant@golang.org>
4129
4130 PR go/78431
4131 PR go/78432
4132 * godump.c (go_format_type): Always pass alignment as 1 when
4133 calling go_append_padding at end of struct/union.
4134
4135 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4136
4137 PR target/78451
4138 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4139 _mm512_setzero_hi): Removed.
4140 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4141 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4142 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4143 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4144 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4145 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4146 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4147 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4148 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4149 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4150 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4151 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4152 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4153 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4154 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4155 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4156 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4157 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4158 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4159 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4160 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4161 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4162 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4163 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4164 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4165 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4166 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4167 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4168 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4169 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4170 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4171 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4172 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4173 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4174 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4175 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4176 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4177 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4178 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4179 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4180 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4181 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4182 _mm512_setzero_qi or _mm512_setzero_hi.
4183 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4184 _mm512_maskz_dbsad_epu8): Formatting fixes.
4185 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4186 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4187 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4188 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4189 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4190 _mm512_setzero_qi or _mm512_setzero_hi.
4191
4192 2016-11-22 Nathan Sidwell <nathan@acm.org>
4193
4194 * gcc-ar.c (main): Fix indentation.
4195 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4196 * ggc-page.c (move_ptes_to_front): Fix formatting.
4197 * hsa-dump.c (dump_has_cfun): Fix indentation.
4198 * sel-sched-ir.h: Remove trailing blank lines.
4199
4200 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4201 Alexander Monakov <amonakov@ispras.ru>
4202
4203 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4204 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4205 (omp_clause_code_name): Add _simt_ name.
4206 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4207 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4208 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4209 (scan_omp_simd): New function.
4210 (scan_omp_1_stmt): Use it in target regions if needed.
4211 (omp_max_vf): Don't max with omp_max_simt_vf.
4212 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4213 OMP_CLAUSE__SIMT_ is present.
4214 (lower_rec_input_clauses): Compute maybe_simt from presence of
4215 OMP_CLAUSE__SIMT_.
4216 (lower_lastprivate_clauses): Likewise.
4217 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4218 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4219 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4220 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4221
4222 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4223
4224 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4225 (expand_GOMP_SIMT_VF): New.
4226 (expand_GOMP_SIMT_LAST_LANE): New.
4227 (expand_GOMP_SIMT_ORDERED_PRED): New.
4228 (expand_GOMP_SIMT_VOTE_ANY): New.
4229 (expand_GOMP_SIMT_XCHG_BFLY): New.
4230 (expand_GOMP_SIMT_XCHG_IDX): New.
4231 * internal-fn.def (GOMP_SIMT_LANE): New.
4232 (GOMP_SIMT_VF): New.
4233 (GOMP_SIMT_LAST_LANE): New.
4234 (GOMP_SIMT_ORDERED_PRED): New.
4235 (GOMP_SIMT_VOTE_ANY): New.
4236 (GOMP_SIMT_XCHG_BFLY): New.
4237 (GOMP_SIMT_XCHG_IDX): New.
4238 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4239 (create_omp_child_function): ...here. Set "omp target entrypoint"
4240 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4241 (omp_max_simt_vf): New. Use it...
4242 (omp_max_vf): ...here.
4243 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4244 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4245 (lower_omp_ordered): Likewise, for "ordered" lowering.
4246 (expand_omp_simd): Add SIMT transforms.
4247 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4248 (execute_omp_device_lower): New.
4249 (pass_data_omp_device_lower): New.
4250 (pass_omp_device_lower): New pass.
4251 (make_pass_omp_device_lower): New.
4252 * passes.def (pass_omp_device_lower): Position new pass.
4253 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4254 (make_pass_omp_device_lower): Declare.
4255
4256 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4257
4258 PR target/78451
4259 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4260 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4261 _mm_setzero_di.
4262 (_mm_maskz_load_epi64): Likewise.
4263 (_mm_setzero_hi): Removed.
4264 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4265 _mm_setzero_di.
4266 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4267 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4268 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4269 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4270 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4271 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4272 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4273 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4274 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4275 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4276 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4277 Likewise.
4278 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4279 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4280 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4281 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4282 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4283 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4284 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4285 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4286 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4287 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4288 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4289 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4290 instead of _mm_setzero_hi.
4291 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4292 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4293 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4294 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4295 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4296 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4297 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4298 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4299 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4300 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4301 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4302 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4303 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4304 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4305 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4306 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4307 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4308 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4309 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4310 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4311 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4312 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4313 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4314 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4315 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4316 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4317 _mm_setzero_di.
4318 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4319 instead of _mm_setzero_hi.
4320 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4321 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4322 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4323 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4324 _mm_setzero_si128 instead of _mm_setzero_di.
4325 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4326 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4327 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4328 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4329 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4330 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4331 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4332 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4333 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4334 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4335 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4336 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4337 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4338 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4339 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4340 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4341 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4342 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4343 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4344 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4345 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4346 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4347 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4348 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4349 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4350 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4351 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4352 _mm512_maskz_insertf32x8): Formatting fixes.
4353 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4354 _mm_setzero_si128 instead of _mm_setzero_di.
4355 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4356 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4357 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4358 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4359 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4360 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4361 _mm_setzero_si128 instead of _mm_setzero_di.
4362 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4363 Likewise in macros.
4364 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4365 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4366 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4367 _mm_setzero_si128 instead of _mm_setzero_hi.
4368 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4369 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4370 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4371 instead of _mm_setzero_di.
4372 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4373 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4374 _mm_setzero_hi.
4375 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4376 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4377 _mm_setzero_hi.
4378 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4379 _mm_setzero_di.
4380 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4381 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4382 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4383
4384 2016-11-22 Carl Love <cel@us.ibm.com>
4385
4386 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4387 equal and vector compare not equal. The vector compares take two
4388 arguments of type vector bool char, vector bool short, vector bool int,
4389 vector bool long long with the same return type.
4390 * doc/extend.texi: Update built-in documentation file for the new
4391 powerpc built-ins.
4392
4393 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4394
4395 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4396 of -j argument.
4397
4398 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4399
4400 * config.gcc: Allow new rmprofile value for configure option
4401 --with-multilib-list.
4402 * config/arm/t-rmprofile: New file.
4403 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4404 for ARM.
4405
4406 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4407
4408 PR target/78439
4409 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4410 register operand in alternatives 4,5,6.
4411
4412 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4413
4414 PR target/77904
4415 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4416 in save register mask if it is needed.
4417
4418 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4419
4420 PR tree-optimization/78436
4421 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4422 (shift_bytes_in_array, shift_bytes_in_array_right,
4423 merged_store_group::apply_stores): Formatting fixes.
4424 (clear_bit_region): Likewise. Use memset.
4425 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4426 instead of EXPR and inerted instead of inserted. Use memset instead
4427 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4428 if shift_amnt is 0.
4429
4430 PR middle-end/78416
4431 * expmed.c (expand_divmod): Use wide_int for computation of
4432 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4433 Use size <= HOST_BITS_PER_WIDE_INT instead of
4434 HOST_BITS_PER_WIDE_INT >= size.
4435
4436 PR tree-optimization/78445
4437 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4438 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4439 is 1. Formatting fix.
4440
4441 2016-11-22 Martin Liska <mliska@suse.cz>
4442
4443 PR ipa/78309
4444 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4445 (sem_function::get_hash): Use the new field.
4446 (sem_function::parse): Remove an argument from ctor.
4447 (sem_variable::parse): Likewise.
4448 (sem_variable::get_hash): Use the new field.
4449 (sem_item_optimizer::read_section): Use new ctor and set hash.
4450 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4451 sem_variable::sem_variable, sem_function::sem_function.
4452
4453 2016-11-21 Jeff Law <law@redhat.com>
4454
4455 PR target/68538
4456 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4457 can_create_pseudo_p is true.
4458
4459 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4460
4461 PR target/68803
4462 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4463 *rotldi3_insert_7): New define_insns.
4464
4465 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4466
4467 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4468 so that DImode can be allocated to FP/vector registers in more
4469 cases, and we can avoid direct move operations. If the register
4470 needs reloading, prefer GPRs over FP/vector registers. In the
4471 case of FPR vs. Altivec registers, prefer FPR registers unless we
4472 have the ISA 3.0 reg+offset scalar instructions.
4473 (movdi_internal64): Likewise.
4474
4475 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4476
4477 PR middle-end/67335
4478 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4479 for tmp simd array if DECL_NAME (parm) is NULL.
4480
4481 2016-11-20 Jeff Law <law@redhat.com>
4482
4483 PR target/25128
4484 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4485 predicate.
4486 * config/m68k/m68k.md (relational tests against 65535/65536): New
4487 peephole2.
4488
4489 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4490
4491 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4492
4493 2016-11-21 Martin Sebor <msebor@redhat.com>
4494
4495 * doc/invoke.texi (-fprintf-return-value): Document that option
4496 is enabled by default.
4497
4498 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4499
4500 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4501 for-loop declaration of loop variable.
4502 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4503 * config/avr/avr.c (avr_popcount_each_byte)
4504 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4505 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4506 (avr_expand_epilogue, avr_function_arg_advance)
4507 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4508 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4509 (avr_adjust_reg_alloc_order, output_reload_in_const)
4510 (avr_conditional_register_usage, avr_find_unused_d_reg)
4511 (avr_map_decompose, avr_fold_builtin): Same.
4512
4513 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4514
4515 * config/avr/avr.c (avr_popcount): Remove static function.
4516 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4517
4518 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4519
4520 * arm.opt (mapcs-float): Delete option.
4521 * arm.c (arm_option_override): Remove hunk relating to
4522 TARGET_APCS_FLOAT.
4523 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4524
4525 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4526
4527 * tree-tailcall.c (process_assignment): Simplify the check for
4528 a valid copy, allowing the source to be a local variable as
4529 well as an SSA name.
4530 (find_tail_calls): Allow copies between local variables to follow
4531 the call. Allow the result to be stored in any local variable,
4532 even if it's an aggregate.
4533 (eliminate_tail_call): Check whether the result is an SSA name
4534 before updating its SSA_NAME_DEF_STMT.
4535
4536 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4537
4538 PR preprocessor/78324
4539 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4540 -ftrack-macro-expansion has a value other than 2.
4541
4542 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4543
4544 PR rtl-optimization/78400
4545 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4546 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4547 and df_update_exit_block_uses.
4548
4549 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4550
4551 PR c++/71973
4552 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4553 new default-enabled warning..
4554 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4555 (BT_PTR_CONST_STRING): Updated.
4556 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4557 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4558 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4559 (strftime): Update builtin function.
4560 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4561 * tree.h (const_tm_ptr_type_node): New type node.
4562 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4563 const_tm_ptr_type_node.
4564
4565 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4566
4567 PR tree-optimization/78413
4568 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4569 inner and outer loop latches have single predecessors.
4570
4571 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4572
4573 PR target/78093
4574 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4575 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4576
4577 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4578
4579 * rtl.h: Adjust prototype.
4580 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4581 (dead_or_set_regno_p): Likewise.
4582
4583 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4584
4585 * rtl.h: Adjust prototype.
4586 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4587
4588 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4589
4590 * function.c (contains): Change argument type to rtx_insn *.
4591 (prologue_contains): Likewise.
4592 (epilogue_contains): Likewise.
4593 (prologue_epilogue_contains): Likewise.
4594 * function.h: Adjust prototype.
4595
4596 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4597
4598 * optabs.c (emit_libcall_block): Change argument type to
4599 rtx_insn *.
4600 * optabs.h: Adjust prototype.
4601
4602 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4603
4604 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4605 (fixup_reorder_chain): Adjust.
4606 * cfgrtl.h: Adjust prototype.
4607
4608 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4609
4610 * rtl.h: Adjust prototype.
4611 * rtlanal.c (replace_label_in_insn): Change argument type to
4612 rtx_insn *.
4613
4614 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4615
4616 * config/v850/v850.c (expand_prologue): Adjust.
4617 (expand_epilogue): Likewise.
4618 * expr.c (init_expr_target): Likewise.
4619 * genrecog.c (print_subroutine): Always make the argument type
4620 rtx_insn *.
4621 * recog.h: Adjust prototype.
4622
4623 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4624
4625 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4626 up variables to make some rtx_insn *.
4627 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4628 * config/arc/arc.c: Likewise.
4629 * config/arm/arm.c: Likewise.
4630 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4631 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4632 Likewise.
4633 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4634
4635 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4636
4637 * config/arm/arm.c (legitimize_pic_address): Change to use
4638 rtx_insn * as the type of variables.
4639 (arm_pic_static_addr): Likewise.
4640 (arm_emit_movpair): Likewise.
4641 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4642 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4643 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4644 * config/frv/frv.md: Likewise.
4645 * config/i386/i386-protos.h: Likewise.
4646 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4647 (ix86_split_fp_branch): Likewise.
4648 (predict_jump): Likewise.
4649 * config/ia64/ia64.c: Likewise.
4650 * config/mcore/mcore.c: Likewise.
4651 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4652 * config/s390/s390.c: Likewise.
4653 * config/s390/s390.md: Likewise.
4654 * config/spu/spu.md: Likewise.
4655 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4656 * lower-subreg.c (resolve_simple_move): Likewise.
4657
4658 2016-11-20 Jeff Law <law@redhat.com>
4659
4660 PR target/48551
4661 * reload.h (struct target_reload): Make x_double_reg_address_ok
4662 be per-mode rather.
4663 * reload.c (find_reloads_address): Check if double_reg_address_ok
4664 is true for the mode of the memory reference.
4665 * reload1.c (init_reload): Initialize double_reg_address_ok for
4666 each mode.
4667
4668 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4669
4670 PR middle-end/61409
4671 * tree-ssa-uninit.c: Define new global max_phi_args.
4672 (compute_uninit_opnds_pos): Use max_phi_args.
4673 (prune_uninit_phi_opnds): Same.
4674 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4675 missing NUM_PREDS in function comment.
4676 (can_one_predicate_be_invalidated_p): New.
4677 (can_chain_union_be_invalidated_p): New.
4678 (flatten_out_predicate_chains): New.
4679 (uninit_ops_invalidate_phi_use): New.
4680 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4681
4682 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4683
4684 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4685 * match.pd (A /[ex] B CMP C): New simplifications.
4686
4687 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4688
4689 * match.pd (0 / X, X / X, X % X): New simplifications.
4690
4691 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4692
4693 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4694 when checking if callee's isa flags are subset of caller's isa flags.
4695 Fix comment wording.
4696
4697 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4698 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4699 instead and using = 0 instead of &= 0.
4700
4701 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4702 ix86_add_new_builtins): Formatting fixes.
4703 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4704 (ix86_get_builtin): Likewise.
4705
4706 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4707 don't initialize it, don't use it for the case where it isn't
4708 provable %{z} nor using the same argument, instead move merge
4709 argument into a new pseudo and use that as target. Formatting fixes.
4710
4711 2016-11-19 Jeff Law <law@redhat.com>
4712
4713 PR target/25111
4714 * config/m68k/m68k.md (bsetdreg): New pattern.
4715 (bchgdreg, bclrdreg): Likewise.
4716
4717 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4718
4719 PR target/78426
4720 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4721 instead of force_reg.
4722 (sh_expand_setmem): Likewise.
4723
4724 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4725
4726 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4727
4728 2016-11-18 Walter Lee <walt@tilera.com>
4729
4730 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4731 end-of-bundle marker for consecutive barriers.
4732
4733 2016-11-18 Walter Lee <walt@tilera.com>
4734
4735 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4736
4737 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4738
4739 PR middle-end/78419
4740 * multiple_target.c (get_attr_len): Start with argnum and increment
4741 argnum on every arg. Use strchr in a loop instead of counting commas
4742 manually.
4743 (get_attr_str): Increment argnum for every comma in the string.
4744 (separate_attrs): Use for instead of while loop, simplify.
4745 (expand_target_clones): Rename defenition argument to definition.
4746 Free attrs and attr_str even when diagnosing errors. Temporarily
4747 change input_location around targetm.target_option.valid_attribute_p
4748 calls. Don't emit warning or errors if that function fails.
4749
4750 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4751
4752 PR debug/78191
4753 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4754 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4755 abbrev_opt_base_type_end only by increasing die_abbrev, before
4756 any other dies.
4757 (optimize_abbrev_table): Don't change abbrev numbers of
4758 base types and CU or optimize implicit consts in them if
4759 calc_base_type_die_sizes has been called during build_abbrev_table.
4760 (calc_base_type_die_sizes): If abbrev_opt_start, set
4761 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4762
4763 2016-11-18 Jeff Law <law@redhat.com>
4764
4765 PR target/25112
4766 * config/m68k/m68k.c (moveq feeding equality comparison): New
4767 peepholes.
4768 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4769 (equality_comparison_operator): Likewise.
4770
4771 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4772
4773 * rtlanal.c (load_extend_op): Move to...
4774 * rtl.h: ...here and make inline.
4775
4776 2016-11-18 Terry Guo <terry.guo@arm.com>
4777 Thomas Preud'homme <thomas.preudhomme@arm.com>
4778
4779 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4780 * config/arm/arm-opts.h: Include arm-flags.h.
4781 (struct arm_arch_core_flag): Define.
4782 (arm_arch_core_flags): Define.
4783 * config/arm/arm-protos.h: Include arm-flags.h
4784 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4785 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4786 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4787 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4788 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4789 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4790 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4791 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4792 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4793 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4794 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4795 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4796 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4797 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4798 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4799 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4800 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4801 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4802 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4803 ARM_FSET_CPU_SUBSET): Move to ...
4804 * config/arm/arm-flags.h: This new file.
4805 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4806 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4807 (TARGET_MODE_SPECS): Define.
4808 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4809
4810 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4811
4812 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4813 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4814 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4815 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4816 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4817 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4818 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4819 missing and make value unsigned.
4820 (arm_feature_set): Use unsigned entries instead of unsigned long.
4821
4822 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4823
4824 Re-apply after PR bootstrap/77359 is fixed:
4825 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4826
4827 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4828 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4829 size needed.
4830
4831 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4832
4833 PR bootstrap/77359
4834 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4835 variables in functions calling alloca. Also update the ASCII
4836 drawings.
4837 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4838 (STACK_DYNAMIC_OFFSET): Likewise.
4839 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4840 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4841 macros to aix.h.
4842
4843 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4844 Alan Hayward <alan.hayward@arm.com>
4845 David Sherwood <david.sherwood@arm.com>
4846
4847 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4848 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4849 (add_const_value_attribute): Likewise.
4850 * explow.c (plus_constant): Likewise.
4851 * expmed.c (expand_mult, make_tree): Likewise.
4852 * expr.c (convert_modes): Likewise.
4853 * loop-doloop.c (doloop_optimize): Likewise.
4854 * postreload.c (reload_cse_simplify_set): Likewise.
4855 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4856 (simplify_binary_operation_1, simplify_const_binary_operation):
4857 Likewise.
4858 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4859 * wide-int.h: Update documentation to recommend rtx_mode_t
4860 instead of std::make_pair.
4861
4862 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4863 Alan Hayward <alan.hayward@arm.com>
4864 David Sherwood <david.sherwood@arm.com>
4865
4866 * tree.h (SET_DECL_MODE): New macro.
4867 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4868 (expand_gimple_basic_block): Likewise.
4869 * function.c (split_complex_args): Likeise.
4870 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4871 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4872 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4873 (finish_bitfield_representative): Likewise.
4874 * tree.c (make_node_stat): Likewise.
4875 * tree-inline.c (remap_ssa_name): Likewise.
4876 (tree_function_versioning): Likewise.
4877 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4878 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4879 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4880 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4881 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4882 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4883 * varasm.c (make_debug_expr_from_rtl): Likewise.
4884
4885 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4886
4887 PR rtl-optimization/71785
4888 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4889 (duplicate_computed_gotos): New function.
4890 (pass_duplicate_computed_gotos::execute): Rewrite.
4891
4892 2016-11-17 Jeff Law <law@redhat.com>
4893
4894 PR target/47192
4895 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4896 barrier prior to deallocating the stack.
4897
4898 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4899
4900 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4901 to make better use of cmem loads in the case where a single bit is
4902 being accessed.
4903 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4904
4905 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4906
4907 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4908 F_AVX5124FMAPS.
4909 (isa_names_table): Handle new features.
4910
4911 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4912 Andrew Senkevich <andrew.senkevich@intel.com>
4913
4914 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4915 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4916 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4917 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4918 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4919 * config/i386/avx5124fmapsintrin.h: New file.
4920 * config/i386/avx5124vnniwintrin.h: Ditto.
4921 * config/i386/constraints.md (h): New constraint.
4922 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4923 * config/i386/driver-i386.c (host_detect_local_cpu):
4924 Detect avx5124fmaps, avx5124vnniw.
4925 * config/i386/i386-builtin-types.def: Add types
4926 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4927 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4928 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4929 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4930 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4931 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4932 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4933 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4934 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4935 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4936 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4937 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4938 __builtin_ia32_vp4dpwssds_mask): New.
4939 * config/i386/i386-c.c (ix86_target_macros_internal):
4940 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4941 * config/i386/i386-modes.def: Fixed comment typos, added new
4942 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4943 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4944 -mavx5124vnniw.
4945 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4946 (ix86_option_override_internal): Handle new options.
4947 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
4948 avx5124vnniw.
4949 (ix86_expand_builtin): Handle new builtins.
4950 (ix86_additional_allocno_class_p): New.
4951 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
4952 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
4953 (reg_class): Add MOD4_SSE_REGS.
4954 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
4955 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
4956 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
4957 avx5124vnniwintrin.h.
4958 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
4959 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
4960 (define_mode_iterator IMOD4): New.
4961 (define_mode_attr imod4_narrow): Ditto.
4962 (define_insn "mov<mode>"): Ditto.
4963 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
4964 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
4965 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
4966 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
4967 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
4968 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
4969 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
4970 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
4971 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
4972 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
4973 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
4974 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
4975 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
4976 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
4977 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
4978 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
4979 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
4980 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
4981 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
4982 * genmodes.c (mode_size_inline): Extend return type.
4983 * machmode.h (mode_size, mode_base_align): Extend type.
4984
4985 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4986
4987 PR target/78101
4988 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
4989 the appropriate checks for SFmode/DFmode load/stores in GPR
4990 registers.
4991 (fusion_addis_mem_combo_store): Likewise.
4992 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
4993 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
4994 d-form instructions for traditional Altivec registers.
4995 (emit_fusion_p9_load): Likewise.
4996 (emit_fusion_p9_store): Likewise.
4997 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
4998 early clobber from scratch register. Do not match if the register
4999 being stored is the scratch register.
5000 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
5001 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
5002 instructions for traditional Altivec registers.
5003 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5004 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5005 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5006
5007 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5008
5009 PR target/77933
5010 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
5011 being live in the function and lr needing to be saved. Distinguish
5012 between already saved pushable registers and registers to push.
5013 Check for LR being an available pushable register.
5014
5015 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5016
5017 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5018 string input is a string constant.
5019 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5020 via cmpstrnsi even if neither string is constant.
5021
5022 2016-11-17 Jakub Jelinek <jakub@redhat.com>
5023
5024 PR middle-end/78201
5025 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5026 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5027 instead, return false if it is NULL, or doesn't fit into uhwi, or
5028 is larger or equal to targetm.max_anchor_offset.
5029
5030 2016-11-17 Pip Cet <pipcet@gmail.com>
5031 Eric Botcazou <ebotcazou@adacore.com>
5032
5033 PR rtl-optimization/78355
5034 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5035 needs to deal with unaligned accesses.
5036 * doc/tm.texi: Regenerate.
5037 * lra-constraints.c (simplify_operand_subreg): Only invoke
5038 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5039
5040 2016-11-17 David Malcolm <dmalcolm@redhat.com>
5041
5042 * input.c (selftest::test_lexer_string_locations_long_line): New
5043 function.
5044 (selftest::test_lexer_string_locations_raw_string_multiline): New
5045 function.
5046 (selftest::input_c_tests): Call the new functions, via
5047 for_each_line_table_case.
5048
5049 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5050
5051 * config/aarch64/aarch64.md (mov<mode>): Call
5052 aarch64_split_dimode_const_store on DImode constant stores.
5053 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5054 New prototype.
5055 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5056 function.
5057
5058 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5059 Richard Biener <rguenther@suse.de>
5060
5061 PR tree-optimization/77848
5062 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5063 the user specified -ftree-loop-if-convert.
5064
5065 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5066
5067 PR target/77308
5068 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5069 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5070 *thumb2_strd_base_neg): Recognize insn regardless of
5071 current_tune->prefer_ldrd_strd.
5072 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5073 whenever possible.
5074
5075 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5076
5077 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5078 instruction type.
5079
5080 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5081
5082 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5083 for arcem.
5084 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5085 * config/arc/arc-cpus.def (quarkse_em): Add.
5086 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5087 * config/arc/arc-opts.h (FPX_QK): Define.
5088 * config/arc/arc-tables.opt: Regenerate.
5089 * config/arc/arc.c (gen_compare_reg): Change.
5090 (arc_register_move_cost): Avoid Dy,Dx moves.
5091 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5092 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5093 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5094 New expands.
5095 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5096 (fix_truncsfsi2_fpu): Rename.
5097 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5098 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5099 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5100 * config/arc/t-multilib: Regenerate.
5101
5102 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5103
5104 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5105 appropriate.
5106 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5107 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5108 (avr_rtx_costs_1, extra_constraint_Q): Same.
5109 (avr_address_cost): Use SUBREG_P if possible.
5110
5111 2016-11-17 Richard Biener <rguenther@suse.de>
5112
5113 PR middle-end/78383
5114 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5115 non-local goto into CFG.
5116
5117 2016-11-17 Richard Biener <rguenther@suse.de>
5118
5119 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5120 backward compatibility.
5121 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5122 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5123 flag_tree_loop_if_convert_stores.
5124 (pass_if_conversion::execute): Likewise.
5125
5126 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5127
5128 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5129 const_double code before calling aarch64_float_const_zero_rtx_p.
5130
5131 2016-11-17 Richard Biener <rguenther@suse.de>
5132
5133 PR tree-optimization/78306
5134 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5135 inhibit inlining if function calls cilk_spawn.
5136 (can_inline_edge_p): Likewise.
5137
5138 2016-11-17 Richard Biener <rguenther@suse.de>
5139
5140 PR middle-end/78305
5141 * fold-const.c (negate_expr_p): Fix multiplication case.
5142
5143 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5144
5145 PR target/78357
5146 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5147 condition.
5148 (TARGET_INIT_LIBFUNCS): Delete definition and...
5149 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5150 comments.
5151
5152 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5153
5154 * config/netbsd-stdint.h: New.
5155 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5156 (x86_64-*-netbsd*): Likewise.
5157
5158 2016-11-16 Andrew PInski <apinski@cavium.com>
5159
5160 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5161 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5162 flag_aarch64_verbose_cost instead of checking for details dump.
5163 (aarch64_rtx_costs_wrapper): Likewise.
5164
5165 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5166
5167 PR rtl-optimization/78378
5168 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5169 inner only if pos is 0. Fix up formatting.
5170
5171 2016-11-17 Alan Modra <amodra@gmail.com>
5172
5173 PR rtl-optimization/78325
5174 PR rtl-optimization/70890
5175 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5176 for dead regno.
5177
5178 2016-11-16 Jason Merrill <jason@redhat.com>
5179
5180 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5181
5182 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5183 Richard Biener <rguenther@suse.de>
5184
5185 PR tree-optimization/77848
5186 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5187 an outer loop, only save basic block aux information for the inner
5188 loop.
5189 (versionable_outer_loop_p): New function.
5190 (tree_if_conversion): Version the outer loop instead of the inner
5191 one if the pattern will be recognized for outer-loop
5192 vectorization.
5193
5194 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5195
5196 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5197 (pass_partition_blocks::gate): No longer check
5198 user_defined_section_attribute, instead check the function decl
5199 for a section attribute.
5200 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5201 set user_defined_section_attribute.
5202 * gcc/final.c (rest_of_handle_final): Likewise.
5203 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5204 * gcc/toplev.h: Remove declaration of
5205 user_defined_section_attribute.
5206
5207 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5208
5209 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5210 Explicitly switch between JR and JRC for the table jump. Adjust
5211 instruction count.
5212
5213 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5214
5215 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5216 `insn_count' to 11 rather than 16.
5217
5218 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5219
5220 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5221 `ltu' rather than `leu' operation in the RTL pattern
5222
5223 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5224
5225 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5226 missing <d> instruction prefixes throughout. Correct
5227 formatting.
5228
5229 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5230
5231 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5232 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5233 cancel short delay slots in PIC call relaxation.
5234
5235 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5236
5237 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5238 general register with general register or ARM constant into SP
5239 register.
5240
5241 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5242
5243 PR fortran/78299
5244 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5245 that loop->header == body_bb if broken_loop.
5246
5247 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5248
5249 * tree-ssa-math-opts.c (bswap_replace): Remove test
5250 of SLOW_UNALIGNED_ACCESS.
5251
5252 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5253
5254 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5255 is selected. Pass -mgomp to offload compiler in OpenMP case.
5256 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5257 declaration from nvptx.c.
5258 (nvptx_gen_shuffle): Declare.
5259 (nvptx_output_set_softstack): Declare.
5260 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5261 (need_softstack_decl): New variable.
5262 (need_unisimt_decl): New variable.
5263 (diagnose_openacc_conflict): New. Use it...
5264 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5265 (nvptx_encode_section_info): Handle "shared" attribute.
5266 (write_as_kernel): Restrict to OpenACC target regions.
5267 (init_softstack_frame): New.
5268 (nvptx_init_unisimt_predicate): New.
5269 (write_omp_entry): New. Use it...
5270 (nvptx_declare_function_name): ...here to emit OpenMP target region
5271 entrypoints. Handle TARGET_SOFT_STACK. Call
5272 nvptx_init_unisimt_predicate.
5273 (nvptx_output_set_softstack): New.
5274 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5275 (nvptx_gen_shuffle): Export.
5276 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5277 predicate.
5278 (nvptx_print_operand): Fix handling of instruction predicates.
5279 (nvptx_get_unisimt_master): New helper function.
5280 (nvptx_get_unisimt_predicate): Ditto.
5281 (nvptx_call_insn_is_syscall_p): Ditto.
5282 (nvptx_unisimt_handle_set): Ditto.
5283 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5284 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5285 (nvptx_handle_shared_attribute): New. Use it...
5286 (nvptx_attribute_table): ... here (new entry).
5287 (nvptx_record_offload_symbol): Handle NULL attributes.
5288 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5289 (nvptx_simt_vf): New.
5290 (TARGET_SIMT_VF): Define.
5291 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5292 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5293 -muniform-simt option is active.
5294 (STACK_SIZE_MODE): Define.
5295 (FIXED_REGISTERS): Adjust.
5296 (SOFTSTACK_SLOT_REGNUM): New.
5297 (SOFTSTACK_PREV_REGNUM): New.
5298 (REGISTER_NAMES): Adjust.
5299 (struct machine_function): New fields.
5300 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5301 (UNSPEC_VOTE_BALLOT): Ditto.
5302 (UNSPEC_LANEID): Ditto.
5303 (UNSPECV_NOUNROLL): Ditto.
5304 (atomic): New attribute.
5305 (predicable): New attribute. Generate predicated forms via
5306 define_cond_exec.
5307 (br_true): Mark as not predicable.
5308 (br_false): Ditto.
5309 (br_true_uni): Ditto.
5310 (br_false_uni): Ditto.
5311 (return): Ditto.
5312 (trap_if_true): Ditto.
5313 (trap_if_false): Ditto.
5314 (nvptx_fork): Ditto.
5315 (nvptx_forked): Ditto.
5316 (nvptx_joining): Ditto.
5317 (nvptx_join): Ditto.
5318 (nvptx_barsync): Ditto.
5319 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5320 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5321 (allocate_stack_<mode>): Remove unused pattern.
5322 (set_softstack_insn): New pattern.
5323 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5324 (nvptx_vote_ballot): New pattern.
5325 (omp_simt_lane): Ditto.
5326 (omp_simt_last_lane): Ditto.
5327 (omp_simt_ordered): Ditto.
5328 (omp_simt_vote_any): Ditto.
5329 (omp_simt_xchg_bfly): Ditto.
5330 (omp_simt_xchg_idx): Ditto.
5331 (nvptx_nounroll): Ditto.
5332 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5333 (atomic_exchange<mode>): Ditto.
5334 (atomic_fetch_add<mode>): Ditto.
5335 (atomic_fetch_addsf): Ditto.
5336 (atomic_fetch_<logic><mode>): Ditto.
5337 * config/nvptx/nvptx.opt (msoft-stack): New option.
5338 (muniform-simt): Ditto.
5339 (mgomp): Ditto.
5340 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5341 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5342 * doc/invoke.texi (msoft-stack): Document.
5343 (muniform-simt): Document
5344 (mgomp): Document.
5345 * doc/tm.texi: Regenerate.
5346 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5347 * target.def: Define it.
5348 * target-insns.def (omp_simt_lane): New.
5349 (omp_simt_last_lane): New.
5350 (omp_simt_ordered): New.
5351 (omp_simt_vote_any): New.
5352 (omp_simt_xchg_bfly): New.
5353 (omp_simt_xchg_idx): New.
5354
5355 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5356
5357 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5358 prototype.
5359 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5360 (ASM_OUTPUT_CASE_END): Likewise.
5361 * config/mips/mips.c (mips_set_text_contents_type): New function.
5362 (mips16_emit_constants): Record the pool's initial label number
5363 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5364 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5365 for `consttable' insns.
5366 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5367 for `consttable_end' insns.
5368 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5369 (consttable): Add operand.
5370 (consttable_end): New insn.
5371
5372 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5373
5374 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5375 * tree-if-conv.c (tree_if_conversion): Make public.
5376 * * tree-if-conv.h: New file.
5377 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5378 dynamic alias checks for epilogues.
5379 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5380 * tree-vect-loop.c: include tree-if-conv.h.
5381 (new_loop_vec_info): Add zeroing orig_loop_info field.
5382 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5383 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5384 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5385 using passed argument.
5386 (vect_transform_loop): Check if created epilogue should be returned
5387 for further vectorization with less vf. If-convert epilogue if
5388 required. Print vectorization success for epilogue.
5389 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5390 if it is required, pass loop_vinfo produced during vectorization of
5391 loop body to vect_analyze_loop.
5392 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5393 orig_loop_info.
5394 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5395 (LOOP_VINFO_EPILOGUE_P): New.
5396 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5397 (vect_do_peeling): Change prototype to return epilogue.
5398 (vect_analyze_loop): Add argument of loop_vec_info type.
5399 (vect_transform_loop): Return created loop.
5400
5401 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5402
5403 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5404 component as used also if LR_REGNO is a live input to the bb.
5405 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5406 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5407 (df_get_exit_block_use_set): Ditto.
5408 * df.h (df_scan_flags): New enum.
5409 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5410 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5411 df_update_entry_block_defs and df_update_exit_block_uses
5412 at the start; clear the flag and call those functions at the end.
5413
5414 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5415 Alan Hayward <alan.hayward@arm.com>
5416 David Sherwood <david.sherwood@arm.com>
5417
5418 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5419 nb_iterations to the number of latch iterations rather than the
5420 number of loop iterations.
5421
5422 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5423 Alan Hayward <alan.hayward@arm.com>
5424 David Sherwood <david.sherwood@arm.com>
5425
5426 * combine.c (maybe_swap_commutative_operands): New function.
5427 (combine_simplify_rtx): Use it.
5428 (change_zero_ext): Likewise.
5429 (make_compound_operation_int): New function, split out of...
5430 (make_compound_operation): ...here. Use
5431 maybe_swap_commutative_operands for both.
5432
5433 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5434
5435 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5436 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5437 * arm/arm-tables.opt: Regenerated.
5438 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5439 neon-vfpv3.
5440 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5441 and 'neon' are aliases for specific implementations.
5442
5443 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5444 Alan Hayward <alan.hayward@arm.com>
5445 David Sherwood <david.sherwood@arm.com>
5446
5447 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5448 and use it in the final call to gen_rtx_fmt_ee.
5449 (expand_vec_cond_expr): Update accordingly.
5450 (expand_vec_cmp_expr): Likewise.
5451
5452 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5453 Alan Hayward <alan.hayward@arm.com>
5454 David Sherwood <david.sherwood@arm.com>
5455
5456 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5457
5458 2016-11-16 Richard Biener <rguenther@suse.de>
5459
5460 PR middle-end/78333
5461 * gimplify.c (gimplify_function_tree): Do not instrument
5462 GNU extern inline functions.
5463
5464 2016-11-16 Martin Liska <mliska@suse.cz>
5465
5466 PR sanitizer/78270
5467 * gimplify.c (gimplify_switch_expr): Always save previous
5468 gimplify_ctxp->live_switch_vars.
5469
5470 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5471
5472 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5473 zero_extract operations to allow a movb to occur.
5474 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5475 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5476 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5477 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5478 little endian arc.
5479
5480 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5481 Alan Hayward <alan.hayward@arm.com>
5482 David Sherwood <david.sherwood@arm.com>
5483
5484 * expr.c (emit_group_load_1): Tighten check for whether an
5485 access involves only one operand of a CONCAT. Use extract_bit_field
5486 for constants if the bit range does span the whole operand.
5487
5488 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5489 Alan Hayward <alan.hayward@arm.com>
5490 David Sherwood <david.sherwood@arm.com>
5491
5492 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5493
5494 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5495 Alan Hayward <alan.hayward@arm.com>
5496 David Sherwood <david.sherwood@arm.com>
5497
5498 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5499 all three iteration counts with an any_* test. Use a single update
5500 for each count. Fix the calculation of nb_iterations_estimate.
5501
5502 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5503
5504 * config/pdp11/pdp11.c: Include dbxout.h.
5505
5506 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5507
5508 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5509
5510 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5511
5512 PR target/78364
5513 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5514 proper ranges for an SBFX instruction.
5515 (extzv_t2): Likewise for UBFX.
5516
5517 2016-11-16 Richard Biener <rguenther@suse.de>
5518
5519 PR tree-optimization/78348
5520 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5521 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5522 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5523 revealed no dependency, PKIND_MEMMOVE otherwise.
5524
5525 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5526
5527 PR sanitizer/77823
5528 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5529 it points to non-NULL tree, use it instead of ubsan_create_data.
5530 (instrument_si_overflow): Handle vector signed integer overflow
5531 checking.
5532 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5533 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5534 vector IFN_UBSAN_CHECK_*.
5535 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5536 pass it through to ubsan_build_overflow_builtin.
5537 (expand_neg_overflow, expand_mul_overflow): Likewise.
5538 (expand_vector_ubsan_overflow): New function.
5539 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5540 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5541 (expand_arith_overflow): Adjust expand_*_overflow callers.
5542
5543 2016-11-16 Matthias Klose <doko@ubuntu.com>
5544
5545 * doc/install.texi: Remove references to java/libjava.
5546
5547 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5548
5549 * tree-ssa-coalesce.c (register_default_def): Remove
5550 register_ssa_partition.
5551 (create_outofssa_var_map): Likewise.
5552 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5553 * tree-ssa-live.h (register_ssa_partition): Likewise.
5554
5555 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5556
5557 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5558 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5559 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5560 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5561 rtx when all sub-rtx are also permanent.
5562 (attr_eq): Simplify.
5563 (attr_copy_rtx): Remove.
5564 (make_canonical, get_attr_value): Use attr_equal_p.
5565 (copy_boolean): Rehash NOT.
5566 (simplify_test_exp_in_temp,
5567 optimize_attrs): Remove call to attr_copy_rtx.
5568 (attr_alt_intersection, attr_alt_union,
5569 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5570 (make_automaton_attrs): Use attr_eq.
5571
5572 2016-11-15 Matthias Klose <doko@ubuntu.com>
5573
5574 * doc/install.texi: Remove references to java/libjava.
5575 * doc/sourcebuild.texi: Likewise.
5576 * doc/invoke.texi: Likewise.
5577 * doc/standards.texi: Likewise.
5578
5579 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5580 Alan Hayward <alan.hayward@arm.com>
5581 David Sherwood <david.sherwood@arm.com>
5582
5583 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5584 of VOIDmode.
5585 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5586 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5587 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5588 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5589 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5590 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5591 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5592
5593 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5594 Alan Hayward <alan.hayward@arm.com>
5595 David Sherwood <david.sherwood@arm.com>
5596
5597 * dce.c (check_argument_store): Pass the size instead of
5598 the memory reference.
5599 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5600
5601 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5602 Alan Hayward <alan.hayward@arm.com>
5603 David Sherwood <david.sherwood@arm.com>
5604
5605 * alias.c (canon_rtx): Use simplify_gen_binary.
5606
5607 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5608 Alan Hayward <alan.hayward@arm.com>
5609 David Sherwood <david.sherwood@arm.com>
5610
5611 * rtl.h (load_extend_op): Declare.
5612 * rtlanal.c (load_extend_op): New function.
5613 (nonzero_bits1): Use it.
5614 (num_sign_bit_copies1): Likewise.
5615 * cse.c (cse_insn): Likewise.
5616 * fold-const.c (fold_single_bit_test): Likewise.
5617 (fold_unary_loc): Likewise.
5618 * fwprop.c (free_load_extend): Likewise.
5619 * postreload.c (reload_cse_simplify_set): Likewise.
5620 (reload_cse_simplify_operands): Likewise.
5621 * combine.c (try_combine): Likewise.
5622 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5623 subreg_lowpart_p checks.
5624
5625 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5626 Alan Hayward <alan.hayward@arm.com>
5627 David Sherwood <david.sherwood@arm.com>
5628
5629 * combine.c (simplify_shift_const_1): Use the number of bits
5630 in the inner mode to determine the range of the shift.
5631 When handling shifts of vectors, skip any rules that apply
5632 only to scalars.
5633
5634 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5635 Alan Hayward <alan.hayward@arm.com>
5636 David Sherwood <david.sherwood@arm.com>
5637
5638 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5639 handling VOIDmode.
5640
5641 2016-11-15 Matthias Klose <doko@ubuntu.com>
5642
5643 * doc/install.texi: Remove references to gcj/libjava.
5644 * doc/invoke.texi: Likewise.
5645
5646 2016-11-15 Jeff Law <law@redhat.com>
5647
5648 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5649 parameter. Callers changed.
5650 (check-subpath_and_update_thread_path): Extracted from
5651 fsm_find_control_statement_thread_paths.
5652 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5653 (handle_phi, handle_assignment): Allow any constant node, not
5654 just INTEGER_CST.
5655
5656 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5657
5658 * config/arc/arc-arch.h: New file.
5659 * config/arc/arc-arches.def: Likewise.
5660 * config/arc/arc-cpus.def: Likewise.
5661 * config/arc/arc-options.def: Likewise.
5662 * config/arc/t-multilib: Likewise.
5663 * config/arc/genmultilib.awk: Likewise.
5664 * config/arc/genoptions.awk: Likewise.
5665 * config/arc/arc-tables.opt: Likewise.
5666 * config/arc/driver-arc.c: Likewise.
5667 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5668 * common/config/arc/arc-common.c (arc_handle_option): Trace
5669 toggled options.
5670 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5671 options; check for supported cpu against arc-cpus.def file.
5672 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5673 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5674 * config/arc/arc-c.def: Add emacs local variables.
5675 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5676 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5677 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5678 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5679 (DEFAULT_arc_fpu_build): Define.
5680 (DEFAULT_arc_mpy_option): Define.
5681 * config/arc/arc-protos.h (arc_init): Delete.
5682 * config/arc/arc.c (arc_cpu_name): New variable.
5683 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5684 (arc_arc700, arc_arc600, arc_arc601): New variable.
5685 (arc_init): Add static; remove selection of default tune value,
5686 cleanup obsolete error messages.
5687 (arc_override_options): Make use of .def files for selecting the
5688 right cpu and option configurations.
5689 * config/arc/arc.h (stdbool.h): Include.
5690 (TARGET_CPU_DEFAULT): Define.
5691 (CPP_SPEC): Remove mcpu=NPS400 handling.
5692 (arc_cpu_to_as): Declare.
5693 (EXTRA_SPEC_FUNCTIONS): Define.
5694 (OPTION_DEFAULT_SPECS): Likewise.
5695 (ASM_DEFAULT): Remove.
5696 (ASM_SPEC): Use arc_cpu_to_as.
5697 (DRIVER_SELF_SPECS): Remove deprecated options.
5698 (arc_base_cpu): Declare.
5699 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5700 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5701 variable.
5702 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5703 * config/arc/arc.md (attr_cpu): Remove.
5704 * config/arc/arc.opt (mno-mpy): Deprecate.
5705 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5706 (mcpu=ARCHS): Remove.
5707 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5708 Deprecate.
5709 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5710 (arc_fpu): Use new defines.
5711 (mpy-option): Change to use numeric or string like inputs.
5712 * config/arc/t-arc (driver-arc.o): New target.
5713 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5714 * config/arc/t-arc-newlib: Delete.
5715 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5716 * doc/invoke.texi (ARC): Update arc options.
5717
5718 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5719
5720 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5721 insn at the beginning of the constant pool.
5722 (mips_insert_insn_pseudos): New function.
5723 (mips_machine_reorg2): Call it.
5724 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5725 UNSPEC_INSN_PSEUDO enum values.
5726 (insn_pseudo, consttable): New insns.
5727
5728 2016-11-15 Michael Matz <matz@suse.de>
5729
5730 PR missed-optimization/77881
5731 * combine.c (simplify_comparison): Remove useless subregs
5732 also inside the loop, not just after it.
5733 (make_compound_operation): Recognize some subregs as being
5734 masking as well.
5735
5736 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5737 Alan Hayward <alan.hayward@arm.com>
5738 David Sherwood <david.sherwood@arm.com>
5739
5740 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5741 GET_MODE_SIZE typo.
5742
5743 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5744
5745 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5746 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5747
5748 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5749 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5750 vinsert{b,h} on ISA 3.0.
5751
5752 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5753
5754 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5755 and cmpnop in two steps: first the ones not accessed in original gimple
5756 expression in a endian independent way and then the ones not accessed
5757 in the final result in an endian-specific way.
5758 (bswap_replace): Stop doing big endian adjustment.
5759
5760 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5761
5762 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5763 (*ashl<mode>3_doubleword): Ditto.
5764
5765 2016-11-14 Martin Liska <mliska@suse.cz>
5766
5767 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5768
5769 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5770 Richard Biener <rguenther@suse.de>
5771
5772 * doc/invoke.texi (fgimple): Document.
5773 * dumpfile.h (TDF_GIMPLE): Add.
5774 * dumpfile.c (dump_options): Add gimple.
5775 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5776 for TDF_GIMPLE.
5777 (dump_gimple_label): Likewise.
5778 (dump_gimple_phi): Likewise.
5779 (dump_gimple_bb_header): Likewise.
5780 (dump_phi_nodes): Likewise.
5781 (pp_cfg_jump): Likewise. Pass in dump flags.
5782 (dump_implicit_edges): Adjust.
5783 * passes.c (pass_init_dump_file): Do not dump function header
5784 for TDF_GIMPLE.
5785 * tree-cfg.c (dump_function_to_file): Dump function return type
5786 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5787 GIMPLE stmts.
5788 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5789 (dump_generic_node): Likewise.
5790 * function.h (struct function): Add pass_startwith member.
5791 * passes.c (execute_one_pass): Implement startwith.
5792 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5793 and assign proper version for parsed ssa names.
5794 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5795 * internal-fn.c (expand_PHI): New function.
5796 * internal-fn.h (expand_PHI): Declared here.
5797 * internal-fn.def: New defination for PHI.
5798 * tree-cfg.c (lower_phi_internal_fn): New function.
5799 (build_gimple_cfg): Call it.
5800 (verify_gimple_call): Condition for passing label as arg in internal
5801 function PHI.
5802 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5803 present PHIs with arguments.
5804
5805 2016-11-14 Martin Liska <mliska@suse.cz>
5806
5807 PR bootstrap/78069
5808 * common.opt: Add prefer-atomic as a new enum value for
5809 -fprofile-update.
5810 * coretypes.h: Likewise.
5811 * doc/invoke.texi: Document the new option value.
5812 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5813 * tree-profile.c (tree_profiling): Select default value
5814 of -fprofile-update when 'prefer-atomic' is selected.
5815
5816 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5817
5818 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5819 (cortex_a57_alu_shift): ...here.
5820
5821 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5822
5823 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5824 Use bfx attribute.
5825 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5826 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5827 (<optab>si3_insn_uxtw): Likewise.
5828 (<optab><mode>3_insn): Likewise.
5829 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5830 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5831 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5832 (<optab><mode>): Likewise.
5833 (insv<mode>): Likewise.
5834 (andim_ashift<mode>_bfiz): Likewise.
5835 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5836 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5837 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5838 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5839 (exynos_m1_alu_p): Likewise.
5840 * config/arm/types.md: Add bfx.
5841 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5842
5843 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5844
5845 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5846 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5847
5848 2016-11-14 Richard Biener <rguenther@suse.de>
5849
5850 PR tree-optimization/78312
5851 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5852 flow-sensitive info.
5853
5854 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5855
5856 PR target/78093
5857 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5858 * config/avr/avr.opt (-mabsdata): New option.
5859 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5860 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5861 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5862 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5863 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5864 spec depending on AVR_ISA_LDS.
5865 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5866
5867 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5868
5869 * match.pd: Don't try to compare addresses of variables with
5870 DECL_VALUE_EXPR.
5871
5872 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5873
5874 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5875 (propagate_vr_accross_jump_function): Handle unary expressions.
5876 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5877 (load_from_param_1): New.
5878 (load_from_unmodified_param): Factor common part into load_from_param_1.
5879 (load_from_param): New.
5880 (compute_complex_assign_jump_func): Handle unary expressions.
5881 (update_jump_functions_after_inlining): Likewise.
5882 (ipa_write_jump_function): Likewise.
5883 (ipa_read_jump_function): Likewise.
5884
5885 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5886
5887 PR c/35503
5888 * doc/invoke.texi: Document Wrestrict.
5889 * pretty-print.c (pp_format): Add case for "Z" specifier.
5890 (test_pp_format): Test "Z" specifier.
5891
5892 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5893
5894 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5895 original function needs a static chain.
5896
5897 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5898
5899 PR target/78336
5900 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5901 ASM_OUTPUT_DEF.
5902
5903 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5904
5905 PR target/77957
5906 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5907 return early if !optional_tbtab.
5908
5909 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5910
5911 PR rtl-optimization/59461
5912 * doc/rtl.texi (paradoxical subregs): Add missing word.
5913 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5914 in modes with precision larger than that of last_set_mode.
5915 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5916 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5917 REGs to paradoxical SUBREGs.
5918 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5919 larger than a word before invoking LOAD_EXTEND_OP on it.
5920
5921 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5922
5923 PR target/78243
5924 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5925 element order for little endian ordering.
5926
5927 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5928 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5929 number.
5930
5931 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5932
5933 PR target/78310
5934 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5935 when calculating operand 2.
5936 (rotate to rotatex zext splitter): Ditto.
5937
5938 2016-11-11 Jeff Law <law@redhat.com>
5939
5940 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5941 function.
5942 (stmt_uses_name_in_undefined_way): New function, extracted from
5943 find_implicit_erroneous_behavior and extended for div/mod case.
5944 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5945 find_explicit_erroneous_behavior and extended for div/mod case.
5946 (find_implicit_erroneous_behavior): Use new helper function.
5947 (find_explicit_erroneous_behavior): Use new helper function.
5948
5949 2016-11-11 Richard Biener <rguenther@suse.de>
5950
5951 PR tree-optimization/71575
5952 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
5953 bogus assert.
5954
5955 2016-11-11 Richard Biener <rguenther@suse.de>
5956
5957 PR middle-end/78295
5958 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
5959 about uninitialized destination arg of BIT_INSERT_EXPR.
5960
5961 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
5962
5963 PR c/37998
5964 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
5965 terminology. Expand to remove ambiguity.
5966
5967 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
5968
5969 PR rtl-optimization/78232
5970 * combine.c (try_combine): Add a big comment about why reusing i2dest
5971 is undesirable.
5972 (change_zero_ext): Do not call simplify_gen_binary, do the
5973 simplifications manually.
5974
5975 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5976
5977 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
5978 enable HImode and QImode to go in vector registers by default if
5979 the -mvsx-small-integer option is enabled.
5980 (rs6000_secondary_reload_simple_move): Likewise.
5981 (rs6000_preferred_reload_class): Don't force integer constants to
5982 be loaded into vector registers that we can easily make into
5983 memory (or being created in the GPRs and moved over with direct move).
5984 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
5985 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
5986 vector extraction on ISA 3.0 when the scalar integer can be
5987 allocated in vector registers. Generate the VEC_SELECT directy,
5988 and don't use UNSPEC's to avoid having the scalar type in a vector
5989 register. Make the expander target registers, and let the
5990 combiner fold in results storing to memory, if the machine
5991 supports stores.
5992 (vsx_extract_<mode>_di): Likewise.
5993 (vsx_extract_<mode>_p9): Likewise.
5994 (vsx_extract_<mode>_di_p9): Likewise.
5995 (vsx_extract_<mode>_store_p9): Likewise.
5996 (vsx_extract_si): Likewise.
5997 (vsx_extract_<mode>_p8): Likewise.
5998 (p9_lxsi<wd>zx): Delete, no longer used.
5999 (p9_stxsi<wd>x): Likewise.
6000 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
6001 integers in vector registers for ISA 3.0.
6002 (QHI): Update comment.
6003 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
6004 vector extract instructions in sign/zero extend.
6005 (zero_extendhi<mode>): Likewise.
6006 (extendqi<mode>): Likewise.
6007 (extendhi<mode>2): Likewise.
6008 (HImode splitter for load/sign extend in vector register): Likewise.
6009 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
6010 optimizing floating point conversions to/from small data types and
6011 rewrite it to support QImode/HImode being allowed in vector
6012 registers on ISA 3.0.
6013 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6014 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6015 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6016 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6017 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6018 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6019 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6020 VSPLITISW on ISA 2.07.
6021 (movhi_internal): Combine movhi_internal and movqi_internal into
6022 one mov<mode>_internal with an iterator. Add support for QImode
6023 and HImode being allowed in vector registers. Make large number
6024 of attributes and constraints easier to read.
6025 (movqi_internal): Likewise.
6026 (mov<mode>_internal): Likewise.
6027 (movdi_internal64): Fix constraint to allow loading -16..15 with
6028 VSPLITISW on ISA 2.07.
6029 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6030 well as DImode.
6031
6032 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
6033
6034 PR rtl-optimization/78241
6035 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6036 but emit initial peel copy if niter expr is not reliable.
6037
6038 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6039
6040 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6041 (maybe_record_trace_start): If the CFI is different on the new and
6042 old paths, print out both to the dump file before ICEing.
6043
6044 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
6045
6046 * target.def (additional_allocno_class_p): New.
6047 * hooks.h (hook_bool_reg_class_t_false): New prototype.
6048 * hooks.c (hook_bool_reg_class_t_false): New.
6049 * ira.c (setup_allocno_and_important_classes): Use the new hook.
6050 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6051 * doc/tm.texi: Update.
6052
6053 2016-11-10 Jason Merrill <jason@redhat.com>
6054
6055 * gengtype.c (new_structure): Append to structures list.
6056 (find_structure): Likewise.
6057
6058 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6059
6060 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6061 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6062 check.
6063
6064 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6065
6066 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6067 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6068 TRUNC_DIV_EXPR.
6069 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6070 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6071 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6072 teams distribute parallel for simd even to distribute and teams
6073 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6074 OMP_CLAUSE_DEPEND_SINK case.
6075 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6076 (omp_no_lastprivate): Removed.
6077 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6078 (gimplify_omp_for): Likewise.
6079 (computable_teams_clause): Fail for automatic vars from current
6080 function not yet seen in bind expr.
6081 * langhooks.c (lhd_omp_scalar_p): New function.
6082 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6083 * varpool.c (varpool_node::get_create): Set node->offloading
6084 even for DECL_EXTERNAL decls.
6085 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6086 (LANG_HOOKS_OMP_SCALAR_P): Define.
6087 (LANG_HOOKS_DECLS): Use it.
6088
6089 2016-11-10 Martin Liska <mliska@suse.cz>
6090
6091 PR sanitizer/78270
6092 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6093 only when SWITCH_BODY is a BIND_EXPR.
6094
6095 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6096
6097 PR debug/78112
6098 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6099 on the context only when it has no DIE yet.
6100
6101 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6102
6103 * arm.h (target_cpus): Delete.
6104 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6105 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6106 (all_architectures): Likewise.
6107 (arm_option_override): Adjust use of CPU enums.
6108 (arm_sched_reorder): Likewise.
6109 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6110 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6111 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6112 TARGET_CPU_.
6113 * arm-tables.opt: Regenerated.
6114
6115 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6116
6117 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6118 (falkor): New core.
6119 * config/aarch64/aarch64-tune.md: Regenerated.
6120 * config/arm/arm-cores.def (falkor): New core.
6121 * config/arm/arm-tables.opt: Regenerated.
6122 * config/arm/arm-tune.md: Regenerated.
6123 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6124 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6125 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6126 (ARM Options/-mtune): Likewise.
6127
6128 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6129
6130 Revert
6131 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6132
6133 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6134 (propagate_vr_accross_jump_function): Likewise.
6135 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6136 (load_from_param_1): New.
6137 (load_from_unmodified_param): Factor common part into load_from_param_1.
6138 (load_from_param): New.
6139 (compute_complex_assign_jump_func): Handle unary expressions.
6140 (ipa_write_jump_function): Likewise.
6141 (ipa_read_jump_function): Likewise.
6142
6143 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6144
6145 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6146 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6147 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6148 is a const_int.
6149
6150 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6151
6152 * print-rtl-function.c: Include varasm.h.
6153 (print_any_param_name): New function.
6154 (print_param): New function.
6155 (print_rtx_function): Call print_param for each argument.
6156 * print-rtl.c (rtx_writer::finish_directive): New function.
6157 * print-rtl.h (rtx_writer::finish_directive): New decl.
6158
6159 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6160
6161 PR target/78262
6162 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6163 operand 0 as earlyclobber.
6164 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6165
6166 2016-11-09 Martin Liska <mliska@suse.cz>
6167
6168 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6169
6170 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR target/77718
6173 * builtins.c (expand_builtin_memcmp): Formatting fix.
6174
6175 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6176 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6177 or of them, renumber other enumerators.
6178 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6179 * doc/invoke.texi: Document -fsanitize=shift-base and
6180 -fsanitize-shift-exponent, document -fsanitize=shift as
6181 having those 2 suboptions.
6182
6183 2016-11-09 Richard Biener <rguenther@suse.de>
6184
6185 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6186 * fold-const.c (tree_swap_operands_p): Likewise.
6187 (fold_binary_loc): Adjust.
6188 (fold_ternary_loc): Likewise.
6189 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6190 * gimple-fold.c (fold_stmt_1): Likewise.
6191 * gimple-match-head.c (gimple_resimplify2): Likewise.
6192 (gimple_resimplify3): Likewise.
6193 (gimple_simplify): Likewise.
6194 * tree-ssa-dom.c (record_equality): Likewise.
6195 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6196 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6197 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6198
6199 2016-11-09 Richard Biener <rguenther@suse.de>
6200
6201 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6202 (optimize_stmt): Remove redundant pre-propagation canonicalization
6203 of comparison operand order.
6204
6205 2016-11-09 Martin Liska <mliska@suse.cz>
6206
6207 * fold-const-call.c (fold_const_call): Fix the folding.
6208
6209 2016-11-09 Richard Biener <rguenther@suse.de>
6210
6211 * common.opt (flag_evaluation_order): Remove.
6212 * expr.c (expand_operands): Remove code guarded by
6213 flag_evaluation_order.
6214 * fold-const.c (reorder_operands_p): Remove, it always returns
6215 true.
6216 (negate_expr_p): Remove calls to reorder_operands_p.
6217 (fold_negate_expr): Likewise.
6218 (tree_swap_operands_p): Likewise.
6219 (fold_binary_loc): Likewise.
6220
6221 2016-11-09 Andreas Schwab <schwab@suse.de>
6222
6223 PR target/78254
6224 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6225 insns operating on a register.
6226
6227 2016-11-09 Richard Biener <rguenther@suse.de>
6228
6229 PR tree-optimization/78007
6230 * tree-vect-stmts.c (vectorizable_bswap): New function.
6231 (vectorizable_call): Call vectorizable_bswap for
6232 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6233
6234 2016-11-09 Richard Biener <rguenther@suse.de>
6235
6236 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6237 Look at the DR_BASE_ADDRESS object for forcing alignment.
6238
6239 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6240
6241 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6242 (propagate_vr_accross_jump_function): Likewise.
6243 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6244 (load_from_param_1): New.
6245 (load_from_unmodified_param): Factor common part into load_from_param_1.
6246 (load_from_param): New.
6247 (compute_complex_assign_jump_func): Handle unary expressions.
6248 (ipa_write_jump_function): Likewise.
6249 (ipa_read_jump_function): Likewise.
6250
6251 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6252
6253 PR ipa/78121
6254 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6255 Also fold constant passed as argument while computing value range.
6256 (propagate_constants_accross_call): Pass param type.
6257 * ipa-prop.c: export ipa_get_callee_param_type.
6258 * ipa-prop.h: export ipa_get_callee_param_type.
6259
6260 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6261
6262 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6263 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6264
6265 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6266
6267 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6268 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6269 ASAN_STACK_MAGIC_MIDDLE.
6270 (asan_global_struct): Increase the size of fields.
6271 (asan_add_global): Add new field constructor.
6272 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6273 __asan_version_mismatch_check_v8.
6274
6275 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6276
6277 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6278 at runtime.
6279
6280 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6281
6282 PR target/70799
6283 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6284 Handle ASHIFT and LSHIFTRT.
6285 (dimode_scalar_chain::compute_convert_gain): Ditto.
6286 (dimode_scalar_chain::convert_insn): Ditto.
6287
6288 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6289
6290 * gimple-ssa-store-merging.c: Include selftest.h
6291 (verify_array_eq): New function.
6292 (verify_shift_bytes_in_array): Likewise.
6293 (verify_shift_bytes_in_array_right): Likewise.
6294 (verify_clear_bit_region): Likewise.
6295 (verify_clear_bit_region_be): Likewise.
6296 (store_merging_c_tests): Likewise.
6297 * selftest.h (store_merging_c_tests): Declare prototype.
6298 * selftest-run-tests.c (selftest::run_tests): Run
6299 store_merging_c_tests.
6300
6301 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6302
6303 * config/arm/arm.opt (mold-rtx-costs): Delete.
6304 (mnew-generic-costs): Delete.
6305 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6306 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6307 (arm_size_rtx_costs): Likewise.
6308 (arm_slowmul_rtx_costs): Likewise.
6309 (arm_fastmul_rtx_costs): Likewise.
6310 (arm_xscale_rtx_costs): Likewise.
6311 (arm_9e_rtx_costs): Likewise.
6312 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6313 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6314 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6315 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6316 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6317 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6318 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6319 arm_cortex_m7_tune):
6320 Delete rtx_costs field.
6321 (arm_new_rtx_costs): Rename to...
6322 (arm_rtx_costs_internal): ... This.
6323 (arm_rtx_costs): Remove old way of doing rtx costs.
6324
6325 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6326
6327 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6328 (arm_fastmul_tune): Likewise.
6329 (arm_strongarm_tune): Likewise.
6330 (arm_xscale_tune): Likewise.
6331 (arm_9e_tune): Likewise.
6332 (arm_marvell_pj4_tune): Likewise.
6333 (arm_v6t2_tune): Likewise.
6334 (arm_v6m_tune): Likewise.
6335 (arm_fa726te_tune): Likewise.
6336
6337 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6338
6339 PR tree-optimization/78234
6340 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6341 in start != 0 case.
6342
6343 2016-11-08 Martin Liska <mliska@suse.cz>
6344
6345 PR testsuite/78242
6346 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6347 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6348 with a value expr. Do not add artificial variables to
6349 live_switch_vars. Use the debug counter.
6350 (gimplify_target_expr): Use the debug counter.
6351 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6352 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6353 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6354
6355 2016-11-08 Richard Biener <rguenther@suse.de>
6356
6357 * tree-vect-stmts.c (get_group_load_store_type): If the
6358 access is aligned do not trigger peeling for gaps.
6359 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6360 force alignment of vars with DECL_USER_ALIGN.
6361
6362 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6363
6364 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6365
6366 2016-11-08 Richard Biener <rguenther@suse.de>
6367
6368 PR tree-optimization/78205
6369 * tree-vect-stmts.c (vectorizable_load): Move check whether
6370 we may run into gaps when BB vectorizing SLP permutations ...
6371 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6372 here where we can do a more precise check.
6373
6374 2016-11-08 Richard Biener <rguenther@suse.de>
6375
6376 PR tree-optimization/78224
6377 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6378 Split the fallthru edge in case its successor may have PHIs.
6379 Do not free dominance info.
6380
6381 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6382
6383 PR target/78229
6384 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6385 EH info even for bzhi and pdep/pext.
6386
6387 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6388
6389 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6390 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6391
6392 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6393
6394 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6395 if appropriate.
6396 * config/rs6000/vector.md (div<mode>3): Ditto.
6397
6398 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6399
6400 * configure.ac (.hidden): Change to conftest_s string. Provide string
6401 for AIX assembler.
6402 (gcc_cv_ld_hidden): Yes for AIX.
6403 * configure: Regenerate.
6404
6405 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6406
6407 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6408 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6409 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6410 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6411 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6412 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6413 from #if to if.
6414 (rs6000_xcoff_visibility): New.
6415 (rs6000_xcoff_declare_function_name): Add visibility support.
6416 (rs6000_xcoff_asm_globalize_decl_name): New.
6417 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6418 (rs6000_asm_weaken_decl): New.
6419 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6420 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6421 reference function.
6422
6423 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6424
6425 PR driver/78206
6426 * incpath.c (remove_dup): Also silently ignore EPERM.
6427
6428 2016-11-07 Martin Jambor <mjambor@suse.cz>
6429
6430 * tree.c (verify_type_variant): Use pointer comparison to check that
6431 TYPE_SIZE_UNIT match.
6432
6433 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6434
6435 PR target/77834
6436 * dse.c (dse_step5): Call scan_reads even if just
6437 insn_info->frame_read. Improve and fix dump file messages.
6438
6439 PR target/78227
6440 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6441 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6442
6443 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6444
6445 PR middle-end/35691
6446 * match.pd: Add following two patterns:
6447 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6448 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6449
6450 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6451
6452 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6453 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6454 * rtl.h (duplicate_reg_notes): Declare.
6455 * rtlanal.c (duplicate_reg_note): New function.
6456
6457 PR rtl-optimization/77309
6458 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6459 don't assume an equality comparison for plain COMPARE.
6460 (simplify_comparison): Pass a more accurate code to
6461 make_compound_operation.
6462
6463 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6464
6465 * target.def (compute_pressure_classes): New target hook.
6466 * doc/tm.texi.in: Document it.
6467 * doc/tm.texi: Regenerate.
6468 * ira.c (setup_pressure_classes): Call target hook if defined.
6469
6470 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6471
6472 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6473 method.
6474 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6475 that have the default values.
6476 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6477 method.
6478 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6479 label string from expected dump.
6480 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6481 from expected dump.
6482
6483 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6484
6485 PR target/77834
6486 * alias.c (nonoverlapping_memrefs_p): If one decl is
6487 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6488
6489 2016-11-07 Richard Biener <rguenther@suse.de>
6490
6491 PR target/78229
6492 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6493 EH info.
6494
6495 2016-11-07 Richard Biener <rguenther@suse.de>
6496
6497 PR tree-optimization/78218
6498 * gimple-ssa-store-merging.c
6499 (pass_store_merging::terminate_all_aliasing_chains):
6500 Drop unused argument, fix alias check to also consider uses.
6501 (pass_store_merging::execute): Adjust.
6502
6503 2016-11-07 Richard Biener <rguenther@suse.de>
6504
6505 PR tree-optimization/78228
6506 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6507 undefined behavior.
6508
6509 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6510
6511 PR target/77822
6512 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6513 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6514 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6515 to restrict them to an appropriate range and add FAIL check if the
6516 region they specify is out of range. Delete useless constraint
6517 strings.
6518 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6519 2 and 3 to restrict their range and add pattern predicate.
6520
6521 2016-11-07 Martin Liska <mliska@suse.cz>
6522
6523 * asan.c (enum asan_check_flags): Move the enum to header file.
6524 (asan_init_shadow_ptr_types): Make type creation more generic.
6525 (shadow_mem_size): New function.
6526 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6527 Rewritten stack unpoisoning code.
6528 (build_shadow_mem_access): Add new argument return_address.
6529 (instrument_derefs): Instrument local variables if use after scope
6530 sanitization is enabled.
6531 (asan_store_shadow_bytes): New function.
6532 (asan_expand_mark_ifn): Likewise.
6533 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6534 * asan.h (enum asan_mark_flags): Moved here from asan.c
6535 (asan_protect_stack_decl): Protect all declaration that need
6536 to live in memory.
6537 (asan_sanitize_use_after_scope): New function.
6538 (asan_no_sanitize_address_p): Likewise.
6539 * cfgexpand.c (partition_stack_vars): Consider
6540 asan_sanitize_use_after_scope in condition.
6541 (expand_stack_vars): Likewise.
6542 * common.opt (-fsanitize-address-use-after-scope): New option.
6543 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6544 Explain the parameter.
6545 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6546 * gimplify.c (build_asan_poison_call_expr): New function.
6547 (asan_poison_variable): Likewise.
6548 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6549 variables that have address taken.
6550 (gimplify_decl_expr): Likewise.
6551 (gimplify_target_expr): Likewise for C++ temporaries.
6552 (sort_by_decl_uid): New function.
6553 (gimplify_expr): Unpoison all variables for a label we can jump
6554 from outside of a scope.
6555 (gimplify_switch_expr): Unpoison variables defined in the switch
6556 context.
6557 (gimplify_function_tree): Clear asan_poisoned_variables.
6558 (asan_poison_variables): New function.
6559 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6560 * internal-fn.c (expand_ASAN_MARK): New function.
6561 * internal-fn.def (ASAN_MARK): Declare.
6562 * opts.c (finish_options): Handle -fstack-reuse if
6563 -fsanitize-address-use-after-scope is enabled.
6564 (common_handle_option): Enable address sanitization if
6565 -fsanitize-address-use-after-scope is enabled.
6566 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6567 New parameter.
6568 * params.h: Likewise.
6569 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6570 * sanitizer.def: Define __asan_poison_stack_memory and
6571 __asan_unpoison_stack_memory functions.
6572 * asan.c (asan_mark_poison_p): New function.
6573 (transform_statements): Handle asan_mark_poison_p calls.
6574 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6575
6576 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6577
6578 PR driver/78196
6579 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6580
6581 2016-11-07 Martin Liska <mliska@suse.cz>
6582
6583 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6584 to time_profiler_counter_ptr.
6585
6586 2016-11-07 Richard Biener <rguenther@suse.de>
6587
6588 PR tree-optimization/37150
6589 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6590 parameter.
6591 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6592 (vect_analyze_slp_cost_1): Account for the real number of
6593 permutations emitted and for dead loads.
6594 (vect_transform_slp_perm_load): Add n_perms parameter counting
6595 the number of emitted permutations.
6596 * tree-vect-stmts.c (vectorizable_load): Adjust.
6597
6598 2016-11-07 Richard Biener <rguenther@suse.de>
6599
6600 PR tree-optimization/78189
6601 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6602 alignment computation.
6603
6604 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6605
6606 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6607
6608 2016-11-05 Martin Sebor <msebor@redhat.com>
6609
6610 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6611 documentation.
6612
6613 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6614
6615 PR bootstrap/78188
6616 PR c++/71848
6617 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6618
6619 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6620
6621 PR target/77834
6622 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6623 doesn't have rtl set.
6624
6625 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6626
6627 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6628 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6629 rs6000_gimple_fold_builtin.
6630 (rs6000_gimple_fold_builtin): New function. Add handling for
6631 early expansion of vector addition builtins.
6632
6633 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6634
6635 * expr.h (copy_blkmode_from_reg): Delete.
6636 * expr.c (copy_blkmode_from_reg): Make static.
6637
6638 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6639
6640 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6641 * combine.c (LOAD_EXTEND_OP): Delete.
6642 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6643 * cse.c (LOAD_EXTEND_OP): Delete.
6644 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6645 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6646 * postreload.c (LOAD_EXTEND_OP): Delete.
6647 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6648 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6649 (find_reloads): Likewise.
6650 * reload1.c (eliminate_regs_1): Likewise.
6651 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6652 (num_sign_bit_copies1): Likewise.
6653
6654 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6655
6656 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6657 (selftest::ix86_test_dumping_hard_regs): New function.
6658 (selftest::ix86_run_selftests): New function.
6659 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6660 selftest::ix86_run_selftests.
6661 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6662 * doc/tm.texi: Regenerate
6663 * selftest-rtl.h: New file.
6664 * rtl-tests.c: Include "selftest-rtl.h".
6665 (selftest::assert_rtl_dump_eq): Make non-static.
6666 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6667 (selftest::test_dumping_regs): Update comment.
6668 * selftest-run-tests.c: Include "target.h".
6669 (selftest::run_tests): If non-NULL, call
6670 targetm.run_target_selftests.
6671 * target.def (run_target_selftests): New hook.
6672
6673 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6674
6675 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6676 representative core for this architecture.
6677 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6678 * config/arm/arm-tables.opt: Regenerate.
6679 * config/arm/arm-tune.md: Likewise.
6680 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6681 valid -mcpu options.
6682 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6683
6684 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6685
6686 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6687 representative core for this architecture.
6688 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6689 * config/arm/arm-tables.opt: Regenerate.
6690 * config/arm/arm-tune.md: Likewise.
6691 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6692 this tuning parameters apply to in the comment.
6693 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6694 valid -mcpu options.
6695 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6696
6697 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6698
6699 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6700 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6701 where cond_expr can't be a lvalue.
6702
6703 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6704
6705 * config/arc/arc.c (arc_process_double_reg_moves): Use
6706 gen_dexcl_2op call.
6707 * config/arc/arc.md (movsi_insn): Disable unsupported move
6708 instructions for ARCv2 cores.
6709 (movdi): Use prepare_move_operands.
6710 (movsf, movdf): Use move_dest_operand predicate.
6711 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6712 present.
6713 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6714 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6715 also a destination.
6716 (dexcl_3op_peep2_insn_nores): Likewise.
6717 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6718 (LINK_COMMAND_SPEC): Remove.
6719
6720 2016-11-04 Richard Biener <rguenther@suse.de>
6721
6722 PR middle-end/78185
6723 * loop-invariant.c (find_exits): Record entering inner
6724 loops as possibly exiting to handle infinite sub-loops.
6725 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6726 (fill_always_executed_in_1): Honor infinite child loops.
6727
6728 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6729
6730 PR target/78192
6731 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6732 has already been adjusted for endianness, so don't adjust it any
6733 further.
6734
6735 PR target/77993
6736 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6737 ICmode unless we have standard PowerPC floating point.
6738 * config/rs6000/rs6000.md (FP iterator): Likewise.
6739 (FMOVE128 iterator): Likewise.
6740
6741 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6742 Alexandre Oliva <aoliva@redhat.com>
6743 Jason Merrill <jason@redhat.com>
6744
6745 PR debug/28767
6746 PR debug/56974
6747 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6748 langhook.
6749 * langhooks.c (lhd_type_dwarf_attribute): New function.
6750 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6751 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6752 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6753 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6754 (check_qualified_type, check_aligned_type): Call it.
6755 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6756 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6757 check_base_type and check_lang_type.
6758 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6759 return early. For pointer-to-data-member add DW_AT_use_location
6760 attribute.
6761 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6762 if needed.
6763 (gen_type_die_with_usage): Don't use type_main_variant
6764 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6765 check_base_type and check_lang_type. Formatting fixes. Call
6766 get_debug_type langhook.
6767
6768 2016-11-03 Jason Merrill <jason@redhat.com>
6769
6770 * tree.c (check_lang_type): New.
6771 (check_qualified_type): Use it.
6772 (check_aligned_type): Use it.
6773 * tree.h: Declare it.
6774
6775 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6776
6777 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6778 (arm*-freebsd*): Likewise.
6779 (arm*-*-netbsdelf*): Likewise.
6780 (arm*-*-linux*): Likewise.
6781 (arm*-*-uclinux*eabi*): Likewise.
6782 (arm*-*-phoenix*): Likewise.
6783 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6784 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6785 specified. Default to arm6 if target_cpu_cname is not set.
6786 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6787 default cpu has been correctly configured.
6788 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6789 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6790 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6791 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6792 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6793 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6794 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6795
6796 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6797
6798 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6799 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6800 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6801 (output_cfa_loc): Support DW_CFA_val_expression.
6802 (output_cfa_loc_raw): Likewise.
6803 (output_cfi): Likewise.
6804 (output_cfi_directive): Likewise.
6805 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6806 (dw_cfi_oprnd2_desc): Likewise.
6807 (mem_loc_descriptor): Recognize new pattern generated for value
6808 expression.
6809
6810 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6811
6812 PR rtl-optimization/78186
6813 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6814 well, when converting to IOR.
6815
6816 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6817
6818 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6819 (vec_interleave_highv8qi): Likewise.
6820
6821 2016-11-03 Martin Liska <mliska@suse.cz>
6822
6823 * profile.c (instrument_values): Fix coding style.
6824 (branch_prob): Use renamed function.
6825 * tree-profile.c (init_ic_make_global_vars): Likewise.
6826 (gimple_init_edge_profiler): Rename to
6827 gimple_init_gcov_profiler.
6828 tree_time_profiler_counter variable declaration.
6829 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6830 emission.
6831 * value-prof.h: Remove an argument.
6832
6833 2016-11-03 Richard Biener <rguenther@suse.de>
6834
6835 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6836 symtab_node::get_create.
6837
6838 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6839
6840 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6841 Move comments into more natural position.
6842
6843 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6844
6845 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6846 (PTRDIFF_TYPE): Define as int.
6847
6848 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6849
6850 * ccmp.c (expand_ccmp_expr_1): Adjust.
6851 (expand_ccmp_expr): Likewise.
6852 (expand_ccmp_next): Likewise.
6853 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6854 (aarch64_gen_ccmp_first): Likewise.
6855 * doc/tm.texi: Regenerate.
6856 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6857 (gen_ccmp_next): Likewise.
6858
6859 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6860
6861 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6862 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6863
6864 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6865
6866 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6867 darwin_rename_builtins here.
6868 (ix86_expand_divmod_libfunc): New.
6869 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6870 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6871
6872 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6873 Nathan Sidwell <nathan@acm.org>
6874
6875 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6876
6877 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6878
6879 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6880 New function.
6881 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6882 to format MODE_INT and MODE_PARTIAL_INT literals.
6883
6884 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6885
6886 PR target/78168
6887 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6888 NULL if TARGET_SPE_ABI.
6889
6890 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6891
6892 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6893 clear padding bits even when they're less than a byte.
6894
6895 2016-11-02 Richard Biener <rguenther@suse.de>
6896
6897 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6898 (imm_store_chain_info::output_merged_stores): Force base_addr
6899 to be proper GIMPLE for a MEM_REF address.
6900 (pass_store_merging::execute): Restrict negative bitpos
6901 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6902 check. Take into account non-NULL_TREE offset if the base
6903 is already addressable.
6904
6905 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6906
6907 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6908 New pattern.
6909 (aarch64_be_crypto_sha1hv4si): New pattern.
6910
6911 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6912
6913 * config/aarch64/aarch64.md (add<mode>3): Remove
6914 redundant code. Don't split frame based additions.
6915
6916 2016-11-02 Richard Biener <rguenther@suse.de>
6917
6918 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6919 redundant val and dest members.
6920 (store_immediate_info::store_immediate_info): Adjust.
6921 (merged_store_group::merged_store_group): Adjust.
6922 (merged_store_group::apply_stores): Likewise.
6923 (struct imm_store_chain_info): Add base_addr field.
6924 (imm_store_chain_info::imm_store_chain_info): New constructor.
6925 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6926 (imm_store_chain_info::output_merged_store): Likewise. Use
6927 addr_base which is already the address.
6928 (imm_store_chain_info::output_merged_stores): Likewise.
6929 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6930 imm_store_chain_info instead of base. Fix alias check.
6931 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6932 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6933 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6934 use the address of the base and adjust for other changes.
6935
6936 2016-11-02 Martin Liska <mliska@suse.cz>
6937
6938 * fold-const-call.c (host_size_t_cst_p): Test whether
6939 t is convertible to size_t.
6940
6941 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6942
6943 PR tree-optimization/78170
6944 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6945 introduced by native_encode_expr on little-endian as well.
6946
6947 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6948
6949 PR tree-optimization/78162
6950 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
6951 as invalid.
6952
6953 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6954
6955 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
6956 function comment.
6957 (aarch64_next_callee_save): Likewise.
6958 (aarch64_pushwb_single_reg): Likewise.
6959 (aarch64_gen_storewb_pair): Likewise.
6960 (aarch64_push_regs): Likewise.
6961 (aarch64_gen_loadwb_pair): Likewise.
6962 (aarch64_pop_regs): Likewise.
6963 (aarch64_gen_store_pair): Likewise.
6964 (aarch64_gen_load_pair): Likewise.
6965 (aarch64_save_callee_saves): Likewise.
6966 (aarch64_restore_callee_saves): Likewise.
6967
6968 2016-11-02 Richard Biener <rguenther@suse.de>
6969
6970 PR tree-optimization/78035
6971 PR tree-optimization/77964
6972 * gimple-pretty-print.c (pp_points_to_solution): Print
6973 vars_contains_interposable.
6974 * tree-ssa-alias.c: Include varasm.h.
6975 (ptrs_compare_unequal): Check vars_contains_interposable and
6976 decl_binds_to_current_def_p.
6977 (dump_points_to_solution): Dump vars_contains_interposable.
6978 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
6979 flag.
6980 * tree-ssa-structalias.c: Include varasm.h.
6981 (set_uids_in_ptset): Record whether vars contains a
6982 not decl_binds_to_current_def_p variable in vars_contains_interposable.
6983 (ipa_escaped_pt): Update initializer.
6984
6985 2016-11-02 Richard Biener <rguenther@suse.de>
6986
6987 PR tree-optimization/78047
6988 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
6989 fake field at offset zero conservatively regarding to may_have_pointers.
6990
6991 2016-11-02 Richard Biener <rguenther@suse.de>
6992
6993 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
6994 infer_value_range on stmt ops and update value-ranges.
6995 Dump visited stmts and blocks.
6996 (evrp_dom_walker::push_value_range): Dump changes.
6997 (evrp_dom_walker::pop_value_range): Likewise.
6998 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
6999
7000 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7001
7002 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
7003 rtx_insn *.
7004 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
7005
7006 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7007
7008 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
7009 and adjust for that.
7010 * cfgrtl.h (delete_insn_chain): Adjust prototype.
7011
7012 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7013
7014 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7015 to rtx_insn *.
7016 (transcode_memory_rtx): Likewise.
7017 (move_to_acc): Likewise.
7018 (move_from_acc): Likewise.
7019 (move_acc_to_reg): Likewise.
7020 (move_to_x): Likewise.
7021 (move_to_hl): Likewise.
7022 (move_to_de): Likewise.
7023 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7024 (rs6000_emit_savres_rtx): Likewise.
7025 (rs6000_emit_prologue): Likewise.
7026 * reorg.c (update_reg_unused_notes): Likewise.
7027 * rtl.h (remove_note): Adjust prototype.
7028 * rtlanal.c (remove_note): Make argument type rtx_insn *.
7029
7030 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7031
7032 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7033 variables so some can be rtx_insn *.
7034 (alpha_emit_xfloating_libcall): Likewise.
7035 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7036 (mips_legitimize_tls_address): Likewise.
7037 * optabs.c (expand_binop): Likewise.
7038 * reload1.c (gen_reload): Likewise.
7039
7040 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7041
7042 * reorg.c (relax_delay_slots): Split up the trial variable.
7043
7044 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7045
7046 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7047 of variables rtx_insn *.
7048 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7049 (legitimize_tls_address): Likewise.
7050 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7051 (bfin_gen_bundles): Likewise.
7052 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7053 (c6x_reorg): Likewise.
7054 * config/frv/frv.c (frv_reorder_packet): Likewise.
7055 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7056 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7057 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7058 * config/mn10300/mn10300.c: Likewise.
7059 * config/rl78/rl78.c: Likewise.
7060 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7061 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7062 (sh_expand_cmpnstr): Likewise.
7063 (sh_expand_strlen): Likewise.
7064 (sh_expand_setmem): Likewise.
7065 * config/sh/sh.md: Likewise.
7066 * emit-rtl.c (emit_pattern_before): Likewise.
7067 * except.c: Likewise.
7068 * final.c: Likewise.
7069 * jump.c: Likewise.
7070
7071 2016-11-01 Jason Merrill <jason@redhat.com>
7072
7073 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7074 a COND_EXPR with constant condition.
7075
7076 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7077
7078 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7079 and its initialization.
7080
7081 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7082
7083 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7084 HAVE_AS_LEB128.
7085
7086 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7087
7088 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7089 argument, don't call add_linkage_name if it is true.
7090 (gen_variable_die): For C++ inline static data members, consider the
7091 initial call when old_die is NULL to be declaration and call
7092 add_name_and_src_coords_attributes in that case with true as
7093 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7094 (gen_member_die): For C++ inline static data members, emit a
7095 definition DIE right away in DW_TAG_compile_unit context.
7096
7097 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7098
7099 PR target/78166
7100 * config/pa/pa.md: Add new shift/add patterns to handle
7101 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7102
7103 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7104
7105 * config/xtensa/xtensa-protos.h
7106 (xtensa_use_return_instruction_p): New prototype.
7107 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7108 xtensa_callee_save_size): Remove.
7109 (struct machine_function): Add new fields: current_frame_size,
7110 callee_save_size, frame_laid_out and epilogue_done.
7111 (compute_frame_size, xtensa_expand_prologue,
7112 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7113 cfun->machine->callee_save_size and xtensa_current_frame_size
7114 with cfun->machine->current_frame_size.
7115 (compute_frame_size): Update cfun->machine->frame_laid_out and
7116 don't update frame layout after reload completion.
7117 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7118 instead of zeroing xtensa_current_frame_size.
7119 (xtensa_use_return_instruction_p): New function.
7120 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7121 declaration.
7122 (INITIAL_ELIMINATION_OFFSET): Use return value of
7123 compute_frame_size instead of xtensa_current_frame_size value.
7124 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7125 function xtensa_use_return_instruction_p instead of inline code.
7126
7127 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7128
7129 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7130 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7131 * dwarf2out.c (rnglist_idx): New variable.
7132 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7133 (DEBUG_RNGLISTS_SECTION): Define.
7134 (ranges_base_label): New variable.
7135 (size_of_die) <case dw_val_class_range_list>: If using
7136 DW_FORM_rnglistx, count size of uleb128 of range list index.
7137 (value_format) <case dw_val_class_range_list>: For
7138 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7139 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7140 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7141 (add_ranges_num): Remove useless prototype. Don't multiply
7142 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7143 for new fields added to dw_ranges struct.
7144 (add_ranges): Add maybe_new_sec argument and pass it
7145 through to add_ranges_num.
7146 (note_rnglist_head): New function.
7147 (add_ranges_by_labels): Pass true as maybe_new_sec to
7148 add_ranges_num, call note_rnglist_head on the head of the list.
7149 (output_ranges): Add function comment. Switch to
7150 .debug_ranges section here and emit .Ldebug_ranges0 label.
7151 (index_rnglists, output_rnglists): New functions.
7152 (gen_subprogram_die): Formatting fixes.
7153 (add_high_low_attributes): Don't divide offsets
7154 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7155 first list element or when pointing into the middle of
7156 a list. Pass true as second argument to add_ranges on the
7157 first block fragment after cold/hot section switch.
7158 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7159 section instead of .debug_ranges. Initialize
7160 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7161 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7162 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7163 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7164 Call output_rnglists for -gdwarf-5.
7165 (dwarf2out_c_finalize): Clear rnglist_idx.
7166
7167 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7168
7169 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7170
7171 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7172 Tamar Christina <tamar.christina@arm.com>
7173
7174 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7175 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7176 (vmaxnmq_f32): Likewise.
7177 (vminnm_f32): Likewise.
7178 (vminnmq_f32): Likewise.
7179 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7180 (vminnm): Likewise.
7181 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7182 expander.
7183
7184 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7185
7186 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7187 binary floating point types supported by the hardware except for
7188 double.
7189 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7190 vector instruction for optimizing extracting a SImode from a
7191 V4SImode vector and converting it to floating point.
7192 (vsx_xvcvuxwdp_df): Likewise.
7193 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7194 registers to be any VSX register. Move stores to the end of the
7195 constraints.
7196 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7197 to optimize extracting a SImode from a V4SImode vector and
7198 converting it to a binary floating point type supported by the
7199 hardware. Use the vector converts instead of extracting the
7200 element, sign extending it, and then converting it to double.
7201 Other floating point types than double first convert to double,
7202 then the double is converted to that type.
7203 (vsx_extract_si_<uns>float_<mode>): Likewise.
7204
7205 2016-10-31 Andrew Pinski <apinski@cavium.com>
7206
7207 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7208 Rewrite handling of part num to handle the case where
7209 multiple implementers share the same part num.
7210
7211 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7212 Jakub Jelinek <jakub@redhat.com>
7213
7214 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7215 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7216
7217 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7218
7219 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7220 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7221 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7222 (is_cu_die, is_unit_die): Likewise.
7223 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7224 comments for DWARF5 DW_UT_type units.
7225 (output_compilation_unit_header): Add UT argument, output
7226 start of DWARF5 .debug_info section header.
7227 (output_comp_unit): Add dwo_id argument. Adjust
7228 output_compilation_unit_header caller, for DW_UT_split_compile
7229 emit dwo_id field, otherwise padding1. Emit padding2 field.
7230 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7231 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7232 (output_skeleton_debug_sections): Add dwo_id argument, for
7233 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7234 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7235 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7236 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7237 DW_TAG_compile_unit for skeleton unit die. Don't add
7238 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7239 address to output_comp_unit and output_skeleton_debug_sections.
7240
7241 * dwarf2out.c (debug_line_str_section): New variable.
7242 (debug_line_str_hash): Likewise.
7243 (DEBUG_LINE_STR_SECTION): Define.
7244 (set_indirect_string): Handle DW_FORM_line_strp like
7245 DW_FORM_strp.
7246 (find_string_form): Fix up formatting.
7247 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7248 Fix up indentation.
7249 (output_die): Handle DW_FORM_line_strp.
7250 (DWARF5_USE_DEBUG_LINE_STR): Define.
7251 (output_line_string): New function.
7252 (output_file_names): Add -gdwarf-5 support.
7253 (output_line_info): Likewise.
7254 (init_sections_and_labels): Initialize debug_line_str_section.
7255 (output_indirect_string): Change 2nd argument from void *
7256 to enum dwarf_form form, compare with form rather than
7257 DW_FORM_strp.
7258 (output_indirect_strings): Pass DW_FORM_strp to
7259 output_indirect_string traversion.
7260 (dwarf2out_finish): Output .debug_line_str strings.
7261 (dwarf2out_c_finalize): Clear debug_line_str_section and
7262 debug_line_str_hash.
7263
7264 2016-10-31 Tom Tromey <tom@tromey.com>
7265
7266 PR debug/77315
7267 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7268 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7269 DW_OP_GNU_push_tls_address case.
7270 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7271
7272 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7273
7274 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7275 for frame_offset_rel bit.
7276 (struct array_descr_info): Add rank field.
7277 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7278 and placeholder_seen fields.
7279 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7280 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7281 DW_OP_pick 1 into DW_OP_over.
7282 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7283 gen_variant_part): Clear placeholder_{arg,seen}.
7284 (loc_list_from_tree_1): Drop const from context argument.
7285 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7286 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7287 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7288 context argument.
7289 (add_scalar_info): Drop const from context argument. Handle
7290 context->placeholder_arg.
7291 (add_bound_info): Drop const from context argument.
7292 (gen_descr_array_type_die): Drop const from ctx variable.
7293 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7294 attribute and use a single DW_TAG_generic_subrange instead of
7295 7 DW_TAG_subrange_type for assumed rank arrays.
7296
7297 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7298 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7299 from bool to 1-bit uchar bitfield. Add num_assigned and
7300 offset_emitted bitfields.
7301 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7302 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7303 dw_val_class_loclistsptr.
7304 (new_addr_loc_descr): Fix up formatting.
7305 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7306 (add_AT_low_high_pc): Fix up formatting.
7307 (add_AT_loclistsptr): New function.
7308 (AT_lbl): Allow dw_val_class_loclistsptr.
7309 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7310 Handle dw_val_class_loclistsptr.
7311 (loc_list_idx): New variable.
7312 (output_loclists_offsets, assign_location_list_indexes): New
7313 functions.
7314 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7315 add size_of_uleb128 of the index. Drop never used
7316 dwarf_split_debug_info AT_index handling. Handle
7317 dw_val_class_loclistsptr.
7318 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7319 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7320 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7321 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7322 DW_FORM_loclistx indexes.
7323 (output_attr_index_or_value): Fix up formatting. Don't handle
7324 dw_val_class_loc_list here.
7325 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7326 For dw_val_class_loc_list call output_loc_list_offset rather than
7327 output_attr_index_or_value.
7328 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7329 or .debug_loclists.dwo section name for debug_loc_section.
7330 (resolve_addr_in_expr): Formatting fix.
7331 (index_location_lists): Likewise.
7332 (dwarf2out_finish): If there are any location lists, for
7333 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7334 index_location_lists only if have_location_lists. Call
7335 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7336 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7337 -gsplit-dwarf also emit offset table.
7338
7339 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7340 (size_of_die, value_format, output_die): Use
7341 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7342 dw_val_class_wide_int.
7343
7344 * dwarf2out.c (dwarf_op): Renamed to ...
7345 (dwarf_OP): ... this.
7346 (convert_descriptor_to_mode, scompare_loc_descriptor,
7347 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7348 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7349 callers.
7350 (dwarf_AT, dwarf_TAG): New functions.
7351 (check_die): Disallow DW_AT_call_all_calls next to
7352 DW_AT_GNU_all_call_sites.
7353 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7354 and attributes instead of the corresponding GNU tag and attributes.
7355 (gen_subprogram_die): Likewise. Emit call site information even
7356 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7357 DW_AT_defaulted in comment.
7358 (resolve_addr): Handle DW_AT_call_origin attribute on
7359 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7360 DW_TAG_GNU_call_site DIE.
7361
7362 * dwarf2out.c (dwarf_op): New function.
7363 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7364 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7365 (output_loc_operands, output_loc_operands_raw): Likewise.
7366 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7367 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7368 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7369 if dwarf_version < 5.
7370 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7371 DW_OP_GNU_xxx.
7372 (scompare_loc_descriptor, ucompare_loc_descriptor,
7373 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7374 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7375 optimize_location_into_implicit_ptr): Likewise. Only punt for
7376 !dwarf_strict if dwarf_version < 5.
7377 (string_cst_pool_decl): Adjust comment.
7378 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7379
7380 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7381 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7382 (struct dw_val_node): Add val_file_implicit field.
7383 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7384 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7385 output_die): Handle dw_val_class_const_implicit,
7386 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7387 (abbrev_die_table): Change into va_gc vec.
7388 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7389 ABBREV_DIE_TABLE_INCREMENT): Remove.
7390 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7391 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7392 variables.
7393 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7394 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7395 vectors.
7396 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7397 functions.
7398 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7399 the implicit value.
7400 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7401 vec.
7402 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7403 unit. Call optimize_abbrev_table.
7404 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7405 abbrev_die_table being a va_gc vec.
7406
7407 PR tree-optimization/77860
7408 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7409 also integral complex and vector constants.
7410
7411 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7412 optimize_macinfo_range, save_macinfo_strings): Replace
7413 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7414 (output_macinfo): Likewise. Emit .debug_macro* rather than
7415 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7416 (init_sections_and_labels): Use .debug_macro* labels rather than
7417 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7418 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7419 or DW_AT_GNU_macros for -gdwarf-5.
7420
7421 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7422
7423 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7424
7425 2016-09-11 Le-Chun Wu <lcwu@google.com>
7426 Mark Wielaard <mjw@redhat.com>
7427
7428 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7429 (Wshadow=local): New option.
7430 (Wshadow-local): Hidden alias for -Wshadow=local.
7431 (Wshadow=compatible-local): New option.
7432 (Wshadow-compatible-local): Hidden alias for
7433 -Wshadow=compatible-local.
7434 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7435 Wshadow=compatible-local.
7436
7437 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7438
7439 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7440 Check slp defs for COND_EXPR by swapping/inverting operands if the
7441 new parameter SWAP indicates so.
7442 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7443 is isomorphic to the first stmt via swapping/inverting. Store swap
7444 information in the new parameter SWAP.
7445 (vect_build_slp_tree): New local array SWAP and pass it to function
7446 vect_build_slp_tree_1. Cleanup result handling code for function
7447 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7448 order of operands has been fixed as indicated by SWAP[i].
7449
7450 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7451
7452 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7453 unnecessary data dependence check after visited store stmt.
7454
7455 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7456
7457 PR tree-optimization/71915
7458 PR tree-optimization/71490
7459 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7460 stride_type field.
7461 (find_basis_for_base_expr): Require stride types to match when
7462 seeking a basis.
7463 (alloc_cand_and_find_basis): Record the stride type.
7464 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7465 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7466 the expressions having those types.
7467 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7468 (create_mul_ssa_cand): Likewise.
7469 (create_mul_imm_cand): Likewise.
7470 (create_add_ssa_cand): Likewise.
7471 (create_add_imm_cand): Likewise.
7472 (legal_cast_p_1): Change interface to accept types rather than the
7473 expressions having those types.
7474 (legal_cast_p): Pass types to legal_cast_p_1.
7475 (slsr_process_cast): Pass stride type to
7476 alloc_cand_and_find_basis.
7477 (slsr_process_copy): Likewise.
7478 (dump_candidate): Display stride type when a cast exists.
7479 (create_add_on_incoming_edge): Introduce a cast when necessary for
7480 the stride type.
7481 (analyze_increments): Change the code checking for invalid casts
7482 to rely on the stride type, and update the documentation and
7483 example. Change the code checking for pointer multiplies to rely
7484 on the stride type.
7485 (insert_initializers): Introduce a cast when necessary for the
7486 stride type. Use the stride type for the type of the initializer.
7487
7488 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7489
7490 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7491
7492 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7493
7494 PR rtl-optimization/77919
7495 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7496 into memory if both modes are complex and their inner modes have the
7497 same precision. If the two modes are different complex modes, convert
7498 each part separately and generate a new CONCAT.
7499
7500 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7501
7502 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7503
7504 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7505
7506 PR target/78148
7507 * gimple-ssa-store-merging.c
7508 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7509 instead of SET_TYPE_ALIGN on shared integral type.
7510
7511 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7512
7513 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7514 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7515 Adjust comment.
7516
7517 2016-10-28 Jeff Law <law@redhat.com>
7518
7519 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7520 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7521
7522 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7523
7524 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7525
7526 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7527
7528 * target.def (min_arithmetic_precision): New hook.
7529 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7530 * doc/tm.texi: Regenerate.
7531 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7532 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7533 * targhooks.c (default_min_arithmetic_precision): New function.
7534 * targhooks.h (default_min_arithmetic_precision): Declare.
7535 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7536 (sparc_min_arithmetic_precision): New function.
7537
7538 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7539
7540 PR target/71847
7541 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7542 Swap commutative operands in new RTL if needed. Handle zero_ext
7543 in the set_dest.
7544 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7545 PATTERN (insn).
7546
7547 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7548 Kugan Vivekanandarajah <kuganv@linaro.org>
7549 Jim Wilson <jim.wilson@linaro.org>
7550
7551 PR tree-optimization/43721
7552 * target.def: New hook expand_divmod_libfunc.
7553 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7554 * doc/tm.texi: Regenerate.
7555 * internal-fn.def: Add new entry for DIVMOD ifn.
7556 * internal-fn.c (expand_DIVMOD): New.
7557 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7558 targhooks.h.
7559 (widen_mul_stats): Add new field divmod_calls_inserted.
7560 (target_supports_divmod_p): New.
7561 (divmod_candidate_p): Likewise.
7562 (convert_to_divmod): Likewise.
7563 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7564 renumber_gimple_stmt_uids at beginning of function. Call
7565 convert_to_divmod and record stats for divmod.
7566 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7567 TARGET_EXPAND_DIVMOD_LIBFUNC.
7568 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7569 divmod_simode.
7570
7571 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7572 Segher Boessenkool <segher@kernel.crashing.org>
7573
7574 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7575 swapping the arms of the branch.
7576 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7577 sequence for the generic signed-signed-signed case.
7578
7579 2016-10-28 Jeff Law <law@redhat.com>
7580
7581 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7582 fallthru comment.
7583 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7584
7585 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7586
7587 PR rtl-optimization/78029
7588 * function.c (prologue_contains, epilogue_contains): New functions.
7589 (record_prologue_seq, record_epilogue_seq): New functions.
7590 * function.h (prologue_contains, epilogue_contains,
7591 record_prologue_seq, record_epilogue_seq): New declarations.
7592 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7593 mixing prologue and epilogue insns.
7594 (init_deps): Initialize the new fields in struct deps_desc.
7595 * sched-int.h (struct deps_desc): New fields last_prologue,
7596 last_epilogue, and last_logue_was_epilogue.
7597 * shrink-wrap.c (emit_common_heads_for_components): Record all
7598 emitted prologue and epilogue insns.
7599 (emit_common_tails_for_components): Ditto.
7600 (insert_prologue_epilogue_for_components): Ditto.
7601
7602 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7603
7604 PR middle-end/22141
7605 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7606 * common.opt (fstore-merging): New Optimization option.
7607 * opts.c (default_options_table): Add entry for
7608 OPT_ftree_store_merging.
7609 * fold-const.h (can_native_encode_type_p): Declare prototype.
7610 * fold-const.c (can_native_encode_type_p): Define.
7611 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7612 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7613 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7614 * passes.def: Insert pass_tree_store_merging.
7615 * tree-pass.h (make_pass_store_merging): Declare extern
7616 prototype.
7617 * gimple-ssa-store-merging.c: New file.
7618 * doc/invoke.texi (Optimization Options): Document
7619 -fstore-merging.
7620 (--param documentation): Document store-merging-allow-unaligned
7621 and max-stores-to-merge.
7622
7623 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7624
7625 PR middle-end/72747
7626 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7627 assignment to earlier in the if/else logic.
7628
7629 2016-10-28 Richard Biener <rguenther@suse.de>
7630
7631 PR middle-end/78128
7632 PR middle-end/71002
7633 * fold-const.c (make_bit_field_ref): Only adjust alias set
7634 when the original alias set was zero.
7635
7636 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7637
7638 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7639 (s390_adjust_loops): New function.
7640 (s390_reorg): Invoke s390_adjust_loops.
7641 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7642 ("osc_break"): New insn definition.
7643
7644 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7645
7646 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7647 * config.gcc: Support alternate archXX cpu levels with
7648 --with-arch= and --with-tune=.
7649 * config/s390/linux.h: Translate new archXX cpu levels to the
7650 original names when calling GAS.
7651 * config/s390/tpf.h: Likewise.
7652 * doc/invoke.texi: Document the alternate cpu level names.
7653
7654 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7655
7656 PR rtl-optimization/77919
7657 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7658 MEM if mode1 is not a complex mode.
7659
7660 PR rtl-optimization/78132
7661 * ree.c (combine_reaching_defs): Give up if copy_needed and
7662 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7663
7664 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7665
7666 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7667
7668 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7669
7670 * config/rs6000/constraints.md (wH constraint): Add new
7671 constraints for allowing 32-bit integers (and eventually 8/16-bit
7672 integers) into the vector registers.
7673 (wI constraint): Likewise.
7674 (wJ constraint): Likewise.
7675 (wK constraint): Likewise.
7676 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7677 -mvsx-small-integer as a default option for ISA 2.07
7678 (i.e. power8).
7679 (POWERPC_MASKS): Likewise.
7680 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7681 switch to turn off small integer support in vector registers.
7682 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7683 test for -mupper-regs-di, since it is already done with the
7684 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7685 -mvsx-small-integer.
7686 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7687 constraints.
7688 (rs6000_setup_reg_addr_masks): Likewise.
7689 (rs6000_init_hard_regno_mode_ok): Likewise.
7690 (rs6000_option_override_internal): Add consistency checks for
7691 -mvsx-small-integer.
7692 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7693 -mvsx-small-integer.
7694 (rs6000_secondary_reload): Use std::swap.
7695 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7696 VSX_REGS for small integers in vector registers, since there is no
7697 D-FORM address mode for such types.
7698 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7699 (rs6000_opt_masks): Add -mvsx-small-integer.
7700 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7701 support.
7702 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7703 extracts can be done on ISA 2.07.
7704 (vsx_extract_<mode>): Add support for small integers in vsx
7705 registers.
7706 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7707 longer support V4SImode in this pattern.
7708 (vsx_extract_si): New insn to support extraction of SImode in ISA
7709 2.07 using either xxextractuw or vspltw.
7710 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7711 longer support V4SImode in this pattern.
7712 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7713 wJ, and wK constraints.
7714 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7715 storing SDmode with VSX instructions.
7716 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7717 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7718 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7719 small integers in vector registers.
7720 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7721 load and before the FPR and VSX loads. Remove ??, ! from the
7722 constraints. Add VEXTSW2D support for small integers in vector
7723 registers.
7724 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7725 integers in vector registers.
7726 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7727 move instead of using an UNSPEC.
7728 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7729 integers in vector registers.
7730 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7731 move instead of using an UNSPEC.
7732 (movsi_internal1): Add support for -mvsx-small-integer. Align
7733 columns so that it is more readable.
7734 (SImode splitter for ISA 3.0 constants): Add splitter for
7735 -128..127 constants that can easily be constructed on ISA 3.0.
7736 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7737 constraints.
7738
7739 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7740
7741 PR middle-end/78025
7742 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7743 functions.
7744
7745 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7746
7747 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7748 PIC_OFFSET_TABLE_REGNUM twice.
7749
7750 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7751
7752 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7753 support for constant operand for OP.
7754
7755 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7756
7757 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7758 splice_child_die if child doesn't have DW_AT_specification attribute.
7759
7760 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7761
7762 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7763 (TARGET_HAVE_LDREXBH): Likewise.
7764 (TARGET_HAVE_LDACQ): Likewise.
7765
7766 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7767
7768 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7769 logic to to decide whether to copy over old value to register for new
7770 value.
7771 * config/arm/sync.md: Add comments explaning why mode and code
7772 attribute are not defined in iterators.md
7773 (thumb1_atomic_op_str): New code attribute.
7774 (thumb1_atomic_newop_str): Likewise.
7775 (thumb1_atomic_fetch_op_str): Likewise.
7776 (thumb1_atomic_fetch_newop_str): Likewise.
7777 (thumb1_atomic_fetch_oldop_str): Likewise.
7778 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7779 mirror the more restrictive constraints of the Thumb-1 insns after
7780 split compared to Thumb-2 counterpart insns.
7781 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7782 in sync with non atomic version.
7783 (atomic_nand<mode>): Likewise.
7784 (atomic_fetch_<sync_optab><mode>): Likewise.
7785 (atomic_fetch_nand<mode>): Likewise.
7786 (atomic_<sync_optab>_fetch<mode>): Likewise.
7787 (atomic_nand_fetch<mode>): Likewise.
7788 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7789 in sync with atomic version.
7790 (thumb1_subsi3_insn): Likewise.
7791 (thumb1_andsi3_insn): Likewise.
7792 (thumb1_iorsi3_insn): Likewise.
7793 (thumb1_xorsi3_insn): Likewise.
7794
7795 2016-10-27 Nick Clifton <nickc@redhat.com>
7796
7797 * plugin.c (register_plugin_info): Produce an error message if the
7798 plugin is not found in the hash table.
7799
7800 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7801
7802 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7803 New pattern.
7804
7805 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7806
7807 PR target/78056
7808 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7809 define builtin functions from the bdesc_spe_predicates or
7810 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7811 the current compiler configuration.
7812 (paired_init_builtins): Modify loop to not define define builtin
7813 functions from the bdesc_paried_preds array if the builtin mask is
7814 not compatible with the current compiler configuration.
7815 (altivec_init_builtins): Modify loops to not define the
7816 __builtin_altivec_stxvl function nor the builtin functions from
7817 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7818 builtin mask is not compatible with the current compiler
7819 configuration.
7820
7821 2016-10-26 Jeff Law <law@redhat.com>
7822
7823 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7824 (gen_shl_and): Likewise.
7825 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7826
7827 * config/mips/mips.c (mips16_constant_cost): Add missing
7828 fallthru comments.
7829 (mips16_build_call_stub): Increase buffer size. Adjust
7830 fallthru comment.
7831
7832 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7833
7834 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7835 INSN_UIDs for all insns in compact mode.
7836 (rtx_writer::print_rtx): Likewise.
7837 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7838 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7839 output to include INSN_UID.
7840 (selftest::test_uncond_jump): Likewise.
7841
7842 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7843
7844 * haifa-sched.c (call_used_regs_num): Rename to...
7845 (call_saved_regs_num): ...this.
7846 (fixed_regs_num): New variable.
7847 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7848 regs not call_used.
7849 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7850
7851 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7852
7853 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7854 class rtx_writer.
7855 * print-rtl.c (outfile): Delete global.
7856 (sawclose): Likewise.
7857 (indent): Likewise.
7858 (in_call_function_usage): Likewise.
7859 (flag_compact): Likewise.
7860 (flag_simple): Likewise.
7861 (rtx_writer::rtx_writer): New ctor.
7862 (print_rtx_operand_code_0): Convert to...
7863 (rtx_writer::print_rtx_operand_code_0): ...this.
7864 (print_rtx_operand_code_e): Convert to...
7865 (rtx_writer::print_rtx_operand_code_e): ...this.
7866 (print_rtx_operand_codes_E_and_V): Convert to...
7867 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7868 (print_rtx_operand_code_i): Convert to...
7869 (rtx_writer::print_rtx_operand_code_i): ...this.
7870 (print_rtx_operand_code_r): Convert to...
7871 (rtx_writer::print_rtx_operand_code_r): ...this.
7872 (print_rtx_operand_code_u): Convert to...
7873 (rtx_writer::print_rtx_operand_code_u): ...this.
7874 (print_rtx_operand): Convert to...
7875 (rtx_writer::print_rtx_operand): ...this.
7876 (print_rtx): Convert to...
7877 (rtx_writer::print_rtx): ...this.
7878 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7879 (debug_rtx): Likewise.
7880 (print_rtl): Convert to...
7881 (rtx_writer::print_rtl): ...this.
7882 (print_rtl): Reimplement in terms of class rtx_writer.
7883 (print_rtl_single): Rewrite in terms of class rtx_writer.
7884 (print_rtl_single_with_indent): Convert to..
7885 (rtx_writer::print_rtl_single_with_indent): ...this.
7886 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7887 * print-rtl.h (flag_compact): Delete decl.
7888 (class rtx_writer): New class.
7889 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7890 class rtx_writer.
7891
7892 2016-10-26 Jeff Law <law@redhat.com>
7893
7894 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7895 fallthru.
7896
7897 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7898 (check_if_valid_sleep_operand): Add missing fallthru comment.
7899 (arc_register_move_cost): Increase buffer size.
7900 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7901 comment.
7902 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7903
7904 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7905 comment. Add gcc_unreachable for path that should never happen.
7906
7907 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7908 fallthru comment.
7909
7910 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7911 Martin Liska <mliska@suse.cz>
7912
7913 PR fortran/77973
7914 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7915 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7916 on outer context if any.
7917
7918 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7919
7920 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7921 by increment rather than double it.
7922 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7923 emit a space before args[4].
7924 (END): Don't emit a space before with_arg.
7925
7926 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7927
7928 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7929 Baseline only alternatives to (i) hold store atomic success value in a
7930 return register rather than a scratch register, (ii) use a low register
7931 for it and to (iii) ensure the cbranchsi insn generated by the split
7932 respect the constraints of Thumb-1 cbranchsi4_insn and
7933 cbranchsi4_scratch.
7934 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7935 constraints must match those in atomic_compare_and_swap.
7936 (cbranchsi4_scratch): Likewise.
7937
7938 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7939
7940 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7941 variable. Add the new parameter to the insn generator. Set that
7942 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7943 return value from the negation of that parameter for Thumb-1, keeping
7944 the logic unchanged otherwise except for using bdst as the destination
7945 register of the compare_and_swap insn.
7946 (arm_split_compare_and_swap): Add explanation about how is the value
7947 returned to the function comment. Rename scratch variable to
7948 neg_bval. Adapt initialization of variables holding operands to the
7949 new operand numbers. Use return register to hold result of store
7950 exclusive for Thumb-1, scratch register otherwise. Construct the
7951 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
7952 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
7953 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
7954 for strongly ordered compare_and_swap.
7955 * config/arm/predicates.md (cc_register_operand): New predicate.
7956 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
7957 match_operand with the new predicate to accept either the CC flag or a
7958 destination register for the boolean return value, restricting it to
7959 CC flag only via constraint. Adapt operand numbers accordingly.
7960
7961 2016-10-26 Jeff Law <law@redhat.com>
7962
7963 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
7964
7965 * config/frv/frv.c (comparison_string): Do not fall through after
7966 an error.
7967
7968 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
7969 comment.
7970 (expand_one_builtin): Add missing break.
7971
7972 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
7973 (m32c_legitimate_address_p): Likewise.
7974
7975 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
7976
7977 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
7978
7979 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
7980 fallthru comment.
7981
7982 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
7983 fallthru comment.
7984
7985 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
7986
7987 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
7988 comment.
7989 (rl78_asm_ctor_dtor): Increase buffer size.
7990
7991 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
7992 buffer size.
7993 (xstormy16_asm_output_constructor): Likewise.
7994
7995 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
7996 size.
7997
7998 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
7999 comment to silence warning.
8000
8001 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
8002 (spu_legitimate_address_p): Fix logic error and add missing fallthru
8003 comment.
8004
8005 2016-10-26 Michael Matz <matz@suse.de>
8006
8007 PR tree-optimization/78060
8008 PR tree-optimization/78061
8009 PR tree-optimization/78088
8010 * tree-ssa-loop-split.c (easy_exit_values): New function.
8011 (tree_ssa_split_loops): Use it.
8012 (compute_new_first_bound): Change order of operations,
8013 fix invalid use of types.
8014
8015 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
8016
8017 gen-pass-instances.awk is sensitive to the order in which
8018 passes are added; passes that appear later have to be added first.
8019
8020 PR target/71676
8021 PR target/71678
8022 * config/avr/avr-passes.def: Swap order of directives for
8023 gen-pass-instances.awk.
8024
8025 2016-10-25 Jeff Law <law@redhat.com>
8026
8027 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8028 (vax_notice_update_cc): Likewise.
8029
8030 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8031
8032 * config.gcc (sparc*-*-solaris2*): Adjust.
8033 (sparc64-*-linux*): Likewise.
8034 * config/sparc/default-64.h: Rename to...
8035 * config/sparc/default64.h: ...this.
8036 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8037 with TARGET_ARCH64.
8038 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8039 * config/sparc/sparc.h: Minor tweaks.
8040 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8041 TARGET_ARCH32 throughout. Minor various tweaks throughout.
8042
8043 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8044
8045 * input.c (fcache::file_patch): Add comment about lifetime.
8046 (selftest::cpp_reader_ptr): New class.
8047 (selftest::lexer_test): Convert m_parser from cpp_reader *
8048 to a cpp_reader_ptr, and move m_tempfile to after it.
8049 (selftest::lexer_test::lexer_test): Update for above reordering.
8050 (lexer_test::~lexer_test): Move cleanup of m_parser to
8051 cpp_reader_ptr's dtor.
8052
8053 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8054
8055 * toplev.c (toplev::main): Remove call to
8056 location_adhoc_data_fini.
8057
8058 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8059
8060 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8061 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8062
8063 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8064
8065 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8066 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8067 (test_basic_struct): Update for above renaming.
8068 (test_length): Likewise.
8069 (test_union): Likewise.
8070 (test_finalization): Likewise.
8071 (test_deletable_global): Likewise.
8072 (test_inheritance): Likewise.
8073 (test_chain_next): Likewise.
8074 (test_user_struct): Likewise.
8075 (test_tree_marking): Likewise.
8076 * selftest-run-tests.c (selftest::run_tests): Call
8077 selftest::forcibly_ggc_collect at the end of the selftests.
8078 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8079
8080 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8081
8082 PR target/78102
8083 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8084 * optabs.c (expand_vec_cond_expr): For comparison codes
8085 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8086 (expand_vec_cmp_expr): For comparison codes
8087 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8088 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8089 Add enum tree_code argument.
8090 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8091 inline functions.
8092 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8093 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8094 fallback.
8095 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8096 NE_EXPR, attempt to use vcondeq_optab as fallback.
8097 * tree-vect-generic.c (expand_vector_comparison,
8098 expand_vector_divmod, expand_vector_condition): Adjust
8099 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8100 * tree-vect-stmts.c (vectorizable_condition,
8101 vectorizable_comparison): Likewise.
8102 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8103 check_bool_pattern, search_type_for_mask_1): Likewise.
8104 * expr.c (do_store_flag): Likewise.
8105 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8106 @code{vcondeq@var{m}@var{n}}): Document.
8107 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8108 New expanders.
8109
8110 2016-10-25 Jeff Law <law@redhat.com>
8111
8112 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8113 comment.
8114 (v850_output_aligned_bss): Add missing break.
8115
8116 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8117
8118 2016-10-25 Martin Liska <mliska@suse.cz>
8119
8120 PR sanitizer/78106
8121 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8122 statements as they can also contain possibly a freeing call.
8123
8124 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8125 Martin Liska <mliska@suse.cz>
8126
8127 PR ipa/78099
8128 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8129 * ipa-icf.c (sem_function::get_hash): Add target optimization
8130 node to hash.
8131
8132 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8133
8134 PR target/78041
8135 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8136 Remove partial overlap check for shift by 1.
8137 (ashldi3_neon): Likewise.
8138
8139 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8140
8141 * config/arm/constraints.md (Q constraint): Document its use for
8142 Thumb-1.
8143 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8144 models.
8145 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8146 alternatives to allow any register when memory model matches Pf and
8147 thus lda is used, but only low registers otherwise. Use unpredicated
8148 output template for Thumb-1 targets.
8149 (atomic_store<mode>): Likewise for stl.
8150 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8151 whose output template does not have predication.
8152 (arm_load_acquire_exclusive<mode>): Likewise.
8153 (arm_load_exclusivesi): Likewise.
8154 (arm_load_acquire_exclusivesi): Likewise.
8155 (arm_store_release_exclusive<mode>): Likewise.
8156 (arm_store_exclusive<mode>): Use unpredicated output template for
8157 Thumb-1 targets.
8158
8159 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8160
8161 * internal-fn.def (LAUNDER): New internal function.
8162 * internal-fn.c (expand_LAUNDER): New function.
8163
8164 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8165 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8166
8167 New avr target pass to work around performance loss by PR fix.
8168
8169 PR target/71676
8170 PR target/71678
8171 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8172 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8173 * config/avr/predicates.md (extend_operator): New.
8174 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8175 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8176 (make_avr_pass_casesi): New prototypes.
8177 * config/avr/avr.c (print-rtl.h): Include it.
8178 (pass_data avr_pass_data_casesi): Data for new pass.
8179 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8180 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8181 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8182 (avr_optimize_casesi): New functions.
8183
8184 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8185 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8186
8187 PR target/71676
8188 PR target/71678
8189 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8190
8191 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8192
8193 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8194 DW_AT_rvalue_reference attributes.
8195
8196 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8197
8198 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8199 * value-prof.c (stringop_block_profile): Fix a warning.
8200
8201 2016-10-24 Martin Sebor <msebor@redhat.com>
8202
8203 PR middle-end/77735
8204 * builtins.c (string_length): New function.
8205 (c_strlen): Use string_length. Correctly handle wide strings.
8206 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8207 functions.
8208 (target_int_max): Call target_max_value.
8209 (format_result::knownrange): New data member.
8210 (fmtresult::fmtresult): Define default constructor.
8211 (format_integer): Use it and set format_result::knownrange.
8212 Handle global constants.
8213 (format_floating_max): Add third argument.
8214 (format_floating): Recompute maximum value for %a for each argument.
8215 (get_string_length): Use fmtresult default ctor.
8216 (format_string): Set format_result::knownrange.
8217 (format_directive): Check format_result::knownrange.
8218 (add_bytes): Same. Correct caret placement in diagnostics.
8219 (pass_sprintf_length::compute_format_length): Set
8220 format_result::knownrange.
8221 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8222
8223 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8224
8225 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8226 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8227
8228 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8229
8230 PR debug/77985
8231 * dwarf2out.c (file_table_relative_p): Remove.
8232 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8233 also for absolute paths.
8234 * doc/tm.texi: Update.
8235 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8236 * target.def (force_at_comp_dir): Remove hook.
8237 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8238
8239 2016-10-24 Richard Biener <rguenther@suse.de>
8240
8241 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8242 backedges when identifying the single predecessor to take
8243 conditional info from. Use SCEV to get at ranges for loop IVs.
8244 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8245 avoid false warning.
8246
8247 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8248
8249 PR target/78093
8250 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8251 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8252 (avr_address_tiny_absdata_p): New static function.
8253 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8254 it to determine validity of constant addresses.
8255 (avr_attribute_table) [absdata]: New variable attribute...
8256 (avr_handle_absdata_attribute): ...and handler.
8257 (avr_decl_absdata_p): New static function.
8258 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8259 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8260 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8261
8262 2016-10-24 Richard Biener <rguenther@suse.de>
8263
8264 PR tree-optimization/78076
8265 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8266 also on the loop tree root.
8267
8268 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8269
8270 * config/i386/i386.c (ix86_fold_builtin): Handle
8271 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8272 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8273 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8274 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8275
8276 2016-10-24 Martin Liska <mliska@suse.cz>
8277
8278 PR sanitizer/77966
8279 * opts.c (finish_options): Skip conditionally.
8280
8281 2016-10-23 Martin Sebor <msebor@redhat.com>
8282
8283 PR target/77837
8284 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8285 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8286
8287 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8288
8289 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8290 (enabled): Likewise.
8291 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8292 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8293 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8294 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8295 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8296 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8297
8298 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8299
8300 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8301 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8302
8303 2016-10-21 Andrew Pinski <apinski@cavium.com>
8304
8305 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8306 integer constants.
8307 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8308 implementer_id to unsigned char.
8309 Change part_no to unsigned int.
8310 (AARCH64_BIG_LITTLE): New define.
8311 (INVALID_IMP): New define.
8312 (INVALID_CORE): New define.
8313 (cpu_data): Change the last element's implementer_id and part_no to
8314 integers.
8315 (valid_bL_string_p): Rewrite to ..
8316 (valid_bL_core_p): this for integers instead of strings.
8317 (parse_field): New function.
8318 (contains_string_p): Rewrite to ...
8319 (contains_core_p): this for integers and only for the part_no.
8320 (host_detect_local_cpu): Rewrite handling of implementation and
8321 par num to be integers; simplifying the code.
8322
8323 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8324
8325 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8326 value range for pointers in more cases.
8327
8328 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8329
8330 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8331 Add extra argument to allow emitting the move immediate.
8332 Use add/sub with positive immediate.
8333 (aarch64_add_constant): Add inline function.
8334 (aarch64_add_sp): Likewise.
8335 (aarch64_sub_sp): Likewise.
8336 (aarch64_expand_prologue): Call aarch64_sub_sp.
8337 (aarch64_expand_epilogue): Call aarch64_add_sp.
8338 Decide when to leave out move.
8339 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8340
8341 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8342
8343 * config/aarch64/aarch64.c (aarch64_layout_frame):
8344 Align FP callee-saves.
8345
8346 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8347
8348 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8349 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8350 Formatting fixes.
8351 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8352 _rdseed64_step): Likewise.
8353 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8354
8355 PR target/78057
8356 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8357 and tree-ssanames.h.
8358 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8359 with INTEGER_CST argument.
8360 (ix86_gimple_fold_builtin): New function.
8361 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8362
8363 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8364 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8365 (ranges_table_allocated, ranges_table_in_use,
8366 ranges_by_label_allocated, ranges_by_label_in_use,
8367 RANGES_TABLE_INCREMENT): Removed.
8368 (add_ranges_num): Use vec_safe_push into ranges_table.
8369 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8370 (output_ranges): Adjust for ranges_table and ranges_by_label
8371 conversion from arrays to vec.
8372 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8373 conversion from arrays to vec.
8374 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8375 ranges_table_in_use, ranges_by_label_allocated and
8376 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8377
8378 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8379 if needed. Re-add origin_die variable and its initialization.
8380
8381 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8382 even for -fstack-reuse=none, or for volatile vars etc.
8383
8384 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8385
8386 * print-rtl-function.c (flag_compact): Move extern decl to...
8387 * print-rtl.h (flag_compact): ...here.
8388 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8389 (ASSERT_RTL_DUMP_EQ): New macro.
8390 (selftest::test_dumping_regs): New function.
8391 (selftest::test_dumping_insns): New function.
8392 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8393 the insns.
8394 (selftest::rtl_tests_c_tests): Call the new test functions.
8395
8396 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8397
8398 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8399 (outgoing_edges_match): Likewise.
8400 (try_crossjump_to_edge): Likewise.
8401 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8402 (rtl_tidy_fallthru_edge): Likewise.
8403 * rtl.h (tablejump_p): Adjust prototype.
8404 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8405
8406 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8407
8408 * rtl.h (label_ref_label): New function.
8409 (set_label_ref_label): New function.
8410 (LABEL_REF_LABEL): Delete.
8411 * alias.c (rtx_equal_for_memref_p): Adjust.
8412 * cfgbuild.c (make_edges): Likewise.
8413 (purge_dead_tablejump_edges): Likewise.
8414 * cfgexpand.c (convert_debug_memory_address): Likewise.
8415 * cfgrtl.c (patch_jump_insn): Likewise.
8416 * combine.c (distribute_notes): Likewise.
8417 * cse.c (hash_rtx_cb): Likewise.
8418 (exp_equiv_p): Likewise.
8419 (fold_rtx): Likewise.
8420 (check_for_label_ref): Likewise.
8421 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8422 (cselib_hash_rtx): Likewise.
8423 * emit-rtl.c (mark_label_nuses): Likewise.
8424 * explow.c (convert_memory_address_addr_space_1): Likewise.
8425 * final.c (output_asm_label): Likewise.
8426 (output_addr_const): Likewise.
8427 * gcse.c (add_label_notes): Likewise.
8428 * genconfig.c (walk_insn_part): Likewise.
8429 * genrecog.c (validate_pattern): Likewise.
8430 * ifcvt.c (cond_exec_get_condition): Likewise.
8431 (noce_emit_store_flag): Likewise.
8432 (noce_get_alt_condition): Likewise.
8433 (noce_get_condition): Likewise.
8434 * jump.c (maybe_propagate_label_ref): Likewise.
8435 (mark_jump_label_1): Likewise.
8436 (redirect_exp_1): Likewise.
8437 (rtx_renumbered_equal_p): Likewise.
8438 * lra-constraints.c (operands_match_p): Likewise.
8439 * print-rtl.c (print_value): Likewise.
8440 * reload.c (find_reloads): Likewise.
8441 * reload1.c (set_label_offsets): Likewise.
8442 * reorg.c (get_branch_condition): Likewise.
8443 * rtl-tests.c (test_uncond_jump): Likewise.
8444 * rtl.c (rtx_equal_p_cb): Likewise.
8445 (rtx_equal_p): Likewise.
8446 * rtlanal.c (reg_mentioned_p): Likewise.
8447 (rtx_referenced_p): Likewise.
8448 (get_condition): Likewise.
8449 * varasm.c (const_hash_1): Likewise.
8450 (compare_constant): Likewise.
8451 (const_rtx_hash_1): Likewise.
8452 (output_constant_pool_1): Likewise.
8453
8454 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8455
8456 PR target/71627
8457 * reload.c (find_valid_class_1): Allow regclass if atleast one
8458 regno in regclass is ok. Compute and use rclass size based on
8459 actually available regnos for mode in rclass.
8460
8461 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8462
8463 * config/sparc/sparc-modes.def (CCV): New.
8464 (CCXV): Likewise.
8465 * config/sparc/predicates.md (v_comparison_operator): New.
8466 (icc_comparison_operator): Add support for CCV/CCXV.
8467 (xcc_comparison_operator): Likewise.
8468 * config/sparc/sparc.c (output_cbranch): Likewise.
8469 (sparc_print_operand): Likewise.
8470 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8471 (uaddvdi4): New expander.
8472 (addvdi4): Likewise.
8473 (uaddvdi4_sp32): New instruction.
8474 (addvdi4_sp32): Likewise.
8475 (uaddvsi4): New expander.
8476 (addvsi4): Likewise.
8477 (cmp_ccc_plus_sltu_set): New instruction.
8478 (cmp_ccv_plus): Likewise.
8479 (cmp_ccxv_plus): Likewise.
8480 (cmp_ccv_plus_set): Likewise.
8481 (cmp_ccxv_plus_set): Likewise.
8482 (cmp_ccv_plus_sltu_set): Likewise.
8483 (uaddvdi4): New expander.
8484 (subvdi4): Likewise.
8485 (usubdi4_sp32): New instruction.
8486 (subvdi4_sp32): Likewise.
8487 (usubvsi4): New expander.
8488 (subvsi4): Likewise.
8489 (cmpsi_minus_sltu_set): New instruction.
8490 (cmp_ccv_minus): Likewise.
8491 (cmp_ccxv_minus): Likewise.
8492 (cmp_ccv_minus_set): Likewise.
8493 (cmp_ccxv_minus_set): Likewise.
8494 (cmp_ccv_minus_sltu_set): Likewise.
8495 (unegvdi3): New expander.
8496 (negvdi3): Likewise.
8497 (unegdi3_sp32): New instruction.
8498 (negvdi3_sp32): Likewise.
8499 (unegvsi3): New expander.
8500 (negvsi3): Likewise.
8501 (cmp_ccc_neg_sltu_set): New instruction.
8502 (cmp_ccv_neg): Likewise.
8503 (cmp_ccxv_neg): Likewise.
8504 (cmp_ccv_neg_set): Likewise.
8505 (cmp_ccxv_neg_set): Likewise.
8506 (cmp_ccv_neg_sltu_set): Likewise.
8507
8508 * tree-ssa-loop-split.c: Remove trailing spaces.
8509 * match.pd: Likewise.
8510
8511 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8512
8513 PR rtl-optimization/78038
8514 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8515 be deduced to set REG through the RTL structure.
8516 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8517
8518 2016-10-21 Richard Biener <rguenther@suse.de>
8519
8520 PR tree-optimization/78051
8521 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8522 and mark replaced if folding did something.
8523
8524 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8525
8526 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8527 and "protected" in visibility types.
8528 (rs6000_xcoff_declare_function_name): Fix formatting.
8529 (rs6000_xcoff_declare_object_name): Fix formatting.
8530
8531 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8532
8533 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8534 and IX86_BUILTIN_HUGE_VALQ here ...
8535 (ix86_expand_builtin): ... not here.
8536
8537 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8538
8539 * doc/gty.texi (for_user): Use @item next to @findex.
8540
8541 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8542
8543 PR target/78037
8544 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8545 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8546 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8547 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8548 __builtin_ia32_lzcnt_u16.
8549 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8550 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8551 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8552 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8553 (bmi_tzcnt_<mode>): New expander.
8554 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8555 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8556 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8557 (lzcnt_<mode>): New expander.
8558 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8559 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8560 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8561 (UINT64_FTYPE_UINT64): New.
8562 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8563 (__builtin_ia32_lzcnt_u16): New description.
8564 (__builtin_ia32_lzcnt_u32): Ditto.
8565 (__builtin_ia32_lzcnt_u64): Ditto.
8566 (__builtin_ctzs): Remove description.
8567 (__builtin_ia32_tzcnt_u16): New description.
8568 (__builtin_ia32_tzcnt_u32): Ditto.
8569 (__builtin_ia32_tzcnt_u64): Ditto.
8570 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8571 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8572
8573 2016-10-20 Martin Liska <mliska@suse.cz>
8574
8575 PR lto/78049
8576 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8577 comparison with STMT_UID_NOT_IN_RANGE.
8578 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8579 LTRANS.
8580
8581 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8582
8583 * compare-elim.c (conforming_compare): Accept UNSPECs.
8584 (find_comparison_dom_walker::before_dom_children): Deal with
8585 instructions both using and killing the flags register.
8586 (equivalent_reg_at_start): New function extracted from...
8587 (try_eliminate_compare): ...here. Use it and add support for
8588 registers and UNSPECs as second operand of the compare.
8589 * config/visium/visium-modes.def (CCV): New.
8590 * config/visium/predicates.md (visium_v_comparison_operator): New.
8591 (visium_branch_operator): Deal with CCV mode.
8592 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8593 (output_cbranch): Likewise.
8594 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8595 (uaddv<mode>4): New expander.
8596 (addv<mode>4): Likewise.
8597 (add<mode>3_insn_set_carry): New instruction.
8598 (add<mode>3_insn_set_overflow): Likewise.
8599 (addsi3_insn_set_overflow): Likewise.
8600 (usubv<mode>4): New expander.
8601 (subv<mode>4): Likewise.
8602 (sub<mode>3_insn_set_carry): New instruction.
8603 (sub<mode>3_insn_set_overflow): Likewise.
8604 (subsi3_insn_set_overflow): Likewise.
8605 (unegv<mode>3): New expander.
8606 (negv<mode>3): Likewise.
8607 (neg<mode>2_insn_set_overflow): New instruction.
8608 (addv_tst<mode>): Likewise.
8609 (subv_tst<mode>): Likewise.
8610 (negv_tst<mode>): Likewise.
8611 (cbranch<mode>4_addv_insn): New splitter and instruction.
8612 (cbranch<mode>4_subv_insn): Likewise.
8613 (cbranch<mode>4_negv_insn): Likewise.
8614
8615 2016-10-20 Richard Biener <rguenther@suse.de>
8616
8617 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8618 Handle decls possibly not bound.
8619 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8620 nothing_id for decls that might not be bound if we are interested
8621 for the address.
8622 (get_constraint_for_component_ref): Deal with that.
8623
8624 2016-10-20 Michael Matz <matz@suse.de>
8625
8626 Loop splitting.
8627 * common.opt (-fsplit-loops): New flag.
8628 * passes.def (pass_loop_split): Add.
8629 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8630 (enable_fdo_optimizations): Add loop splitting.
8631 * timevar.def (TV_LOOP_SPLIT): Add.
8632 * tree-pass.h (make_pass_loop_split): Declare.
8633 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8634 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8635 * tree-ssa-loop-split.c: New file.
8636 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8637 * doc/invoke.texi (fsplit-loops): Document.
8638 * doc/passes.texi (Loop optimization): Add paragraph about loop
8639 splitting.
8640
8641 2016-10-20 Richard Biener <rguenther@suse.de>
8642
8643 * cgraphunit.c (analyze_functions): Set node->definition to
8644 false to signal symbol removal to debug_hooks->late_global_decl.
8645 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8646 WPA signal symbol removal to the debuginfo machinery.
8647 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8648 using early_finised to guard the we're called for symbol
8649 removal case look at the symtabs definition flag.
8650 (gen_variable_die): Remove redundant check.
8651
8652 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8653
8654 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8655
8656 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8657
8658 PR tree-optimization/53979
8659 * match.pd ((a ^ b) | a -> a | b): New pattern.
8660
8661 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8662
8663 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8664 config/pa/pa64-hpux-lib.h.
8665 (PA_CRTBEGIN_HACK): Likewise.
8666 (DTOR_LIST_BEGIN): Likewise.
8667
8668 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8669
8670 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8671 register only if "in" and "out" are different registers.
8672
8673 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8674
8675 * omp-low.c (pass_oacc_device_lower::gate): New method.
8676 (execute): Always call execute_oacc_device_lower.
8677
8678 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8679
8680 PR tree-optimization/77916
8681 PR tree-optimization/77937
8682 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8683 stopgap fix.
8684 (insert_initializers): Requirement of initializer for -1 should be
8685 based on pointer-typedness of the candidate basis.
8686
8687 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8688
8689 PR tree-optimization/78005
8690 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8691 upper (included) bound for niters of prolog loop.
8692 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8693 Compute niters of scalar loop above which vectorized loop is
8694 preferred, as well as the upper (included) bound for the niters.
8695 (vect_do_peeling): Record niter bound for loops accordingly.
8696
8697 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8698
8699 PR lto/77458
8700 * tree-core.h (enum tree_index): Put the complex types after their
8701 component types.
8702 * tree-streamer.c (verify_common_node_recorded): New function.
8703 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8704
8705 2016-10-19 Martin Liska <mliska@suse.cz>
8706
8707 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8708 Replace NULL with false as a return value.
8709
8710 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8711
8712 PR tree-optimization/78024
8713 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8714 don't clear BB_VISITED after processing.
8715
8716 2016-10-19 Richard Biener <rguenther@suse.de>
8717
8718 * domwalk.c (dom_walker::walk): Use RPO order.
8719
8720 2016-10-19 Richard Biener <rguenther@suse.de>
8721
8722 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8723 stmts_to_remove.
8724 (evrp_dom_walker::~evrp_dom_walker): Free it.
8725 (evrp_dom_walker::stmts_to_remove): Add.
8726 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8727 whose output we fully propagate for removal. Propagate
8728 into BB destination PHI arguments.
8729 (execute_early_vrp): Remove queued stmts. Dump value ranges
8730 before stmt removal.
8731
8732 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8733
8734 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8735 * passes.def: Add two instances of pass_walloca.
8736 * tree-pass.h (make_pass_walloca): New.
8737 * gimple-ssa-warn-alloca.c: New file.
8738 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8739 -Wvla-larger-than= options.
8740
8741 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8742
8743 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8744 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8745
8746 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8747
8748 * config/rs6000/altivec.h (vec_xl_len): New macro.
8749 (vec_xst_len): New macro.
8750 (vec_cmpnez): New macro.
8751 (vec_cntlz_lsbb): New macro.
8752 (vec_cnttz_lsbb): New macro.
8753 (vec_xlx): New macro.
8754 (vec_xrx): New macro.
8755 (vec_all_nez): New C++ predicate template.
8756 (vec_any_eqz): New C++ predicate template.
8757 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8758 conditional compilation.
8759 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8760 conditional compilation.
8761 (vec_all_nez): New macro.
8762 (vec_any_eqz): New macro.
8763 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8764 compilation.
8765 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8766 compilation.
8767 * config/rs6000/vector.md (VI): Moved this mode iterator
8768 definition from altivec.md to vector.md.
8769 (UNSPEC_NEZ_P): New value.
8770 (vector_ne_<mode>_p): New expansion for implementation of
8771 vec_all_ne and vec_any_eq built-in functions.
8772 (vector_nez_<mode>_p): New expansion for implementation of
8773 vec_all_nez and vec_any_eqz built-in functions.
8774 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8775 and vec_any_eq built-in function.
8776 (cr6_test_for_zero): New commentary to explain this expansion.
8777 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8778 (cr6_test_for_lt): New commentary to explain this expansion.
8779 (cr6_test_for_lt_reverse): New commentary to explain this
8780 expansion.
8781 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8782 overloaded function prototypes for vec_all_ne, vec_all_nez,
8783 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8784 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8785 built-in functions.
8786 (altivec_resolve_overloaded_builtin): Modify the handling of
8787 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8788 the compiler is configured to support TARGET_P9_VECTOR.
8789 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8790 to explain the special processing that is given to predicate
8791 built-ins introduced using this macro.
8792 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8793 the special processing given to predicate built-ins introduced
8794 using this macro.
8795 (BU_VSX_P): Likewise.
8796 (BU_P8V_AV_P): Likewise.
8797 (BU_P9V_AV_P): Likewise.
8798 (BU_P9V_AV_X): New macro.
8799 (BU_P9V_64BIT_AV_X): New macro.
8800 (BU_P9V_VSX_3): New macro.
8801 (BU_P9V_OVERLOAD_P): New macro.
8802 (LXVL): New BU_P9V_64BIT_VSX_2.
8803 (VEXTUBLX): New BU_P9V_AV_2.
8804 (VEXTUBRX): Likewise.
8805 (VEXTUHLX): Likewise.
8806 (VEXTUHRX): Likewise.
8807 (VEXTUWLX): Likewise.
8808 (VEXTUWRX): Likewise.
8809 (STXVL): New BU_P9V_64BIT_AV_X.
8810 (VCLZLSBB): New BU_P9V_AV_1.
8811 (VCTZLSBB): Likewise.
8812 (CMPNEB): New BU_P9V_AV_2.
8813 (CMPNEH): Likewise.
8814 (CMPNEW): Likewise.
8815 (CMPNEF): Likewise.
8816 (CMPNED): Likewise.
8817 (VCMPNEB_P): New BU_P9V_AV_P.
8818 (VCMPNEH_P): Likewise.
8819 (VCMPNEW_P): Likewise.
8820 (VCMPNED_P): Likewise.
8821 (VCMPNEFP_P): Likewise.
8822 (VCMPNEDP_P): Likewise.
8823 (CMPNEZB): New BU_P9V_AV_2.
8824 (CMPNEZH): Likewise.
8825 (CMPNEZW): Likewise.
8826 (VCMPNEZB_P): New BU_P9V_AV_P.
8827 (VCMPNEZH_P): Likewise.
8828 (VCMPNEZW_P): Likewise.
8829 (LXVL): New BU_P9V_OVERLOAD_2.
8830 (STXVL): New BU_P9V_OVERLOAD_3.
8831 (VEXTULX): New BU_P9V_OVERLOAD_2.
8832 (VEXTURX): Likewise.
8833 (CMPNEZ): Likewise.
8834 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8835 (VCMPNE_P): Likewise.
8836 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8837 (VCTZLSBB): Likewise.
8838 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8839 comment to explain mode used for scratch register.
8840 (altivec_expand_stxvl_builtin): New function.
8841 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8842 (altivec_init_builtins): Add initialized variable
8843 void_ftype_v16qi_pvoid_long and use this type to define the
8844 built-in function __builtin_altivec_stxvl.
8845 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8846 (UNSPEC_STXVL): New value.
8847 (UNSPEC_VCLZLSBB): New value.
8848 (UNSPEC_VCTZLSBB): New value.
8849 (UNSPEC_VEXTUBLX): New value.
8850 (UNSPEC_VEXTUHLX): New value.
8851 (UNSPEC_VEXTUWLX): New value.
8852 (UNSPEC_VEXTUBRX): New value.
8853 (UNSPEC_VEXTUHRX): New value.
8854 (UNSPEC_VEXTUWRX): New value.
8855 (UNSPEC_VCMPNEB): New value.
8856 (UNSPEC_VCMPNEZB): New value.
8857 (UNSPEC_VCMPNEH): New value.
8858 (UNSPEC_VCMPNEZH): New value.
8859 (UNSPEC_VCMPNEW): New value.
8860 (UNSPEC_VCMPNEZW): New value.
8861 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8862 vector of integer modes.
8863 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8864 vector of float or double modes.
8865 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8866 zero.
8867 (lxvl): New expand for load VSX vector with length.
8868 (*lxvl): New insn for load VSX vector with length.
8869 (stxvl): New expand for store VSX vector with length.
8870 (*stxvl): New insn for store VSX vector with length.
8871 (vcmpneb): New insn for vector of byte compare not equal.
8872 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8873 (vcmpneh): New insn for vector of half word compare not equal.
8874 (vcmpnezh): New insn for vector of half word compare not equal or
8875 zero.
8876 (vcmpnew): New insn for vector of word compare not equal.
8877 (vcmpne<VSs>): New insn for vector of float or double compare not
8878 equal.
8879 (vcmpnezw): New insn for vector of word compare not equal or zero.
8880 (vclzlsbb): New insn for vector count leading zero
8881 least-significant bits byte.
8882 (vctzlsbb): New insn for vector count trailing zero least
8883 signficant bits byte.
8884 (vextublx): New insn for vector extract unsigned byte left
8885 indexed.
8886 (vextubrx): New insn for vector extract unsigned byte right
8887 indexed.
8888 (vextuhlx): New insn for vector extract unsigned half word left
8889 indexed.
8890 (vextuhrx): New insn for vector extract unsigned half word right
8891 indexed.
8892 (vextuwlx): New insn for vector extract unsigned word left
8893 indexed.
8894 (vextuwrx): New insn for vector extract unsigned word right
8895 indexed.
8896 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8897 clarify intent of this constant.
8898 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8899 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8900 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8901 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8902 and vec_xrx functions.
8903
8904 2016-10-18 Andrew Pinski <apinski@cavium.com>
8905
8906 PR tree-opt/65950
8907 * predict.c (is_exit_with_zero_arg): New function.
8908 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8909 as nottaken.
8910
8911 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8912
8913 PR target/77991
8914 * config/i386/i386.c (legitimize_tls_address)
8915 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8916 convert dest to Pmode if different than Pmode.
8917
8918 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8919
8920 PR tree-optimization/77916
8921 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8922 stopgap fix, as pointers with -1 increment are still broken.
8923
8924 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8925
8926 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8927 mapping class decoration from here...
8928 (rs6000_xcoff_encode_section): ...to here.
8929
8930 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8931 if shrink-wrapping and optimizing for speed.
8932
8933 2016-10-18 Richard Biener <rguenther@suse.de>
8934
8935 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8936 not visited but non-executable predecessors. Return taken edge.
8937 Simplify conditions and refactor propagation vs. folding step.
8938
8939 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8940
8941 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8942 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8943 (rs6000_get_separate_components): Assert we do not have those
8944 strategies selected.
8945
8946 2016-10-18 Richard Biener <rguenther@suse.de>
8947
8948 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
8949 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
8950 clearing.
8951 (substitute_and_fold_dom_walker): Adjust constructor.
8952 (substitute_and_fold_dom_walker::before_dom_children): Remove
8953 do_dce flag and handling (always true).
8954 (substitute_and_fold): Likewise.
8955 * tree-vrp.c (vrp_finalize): Adjust.
8956 (execute_early_vrp): Remove final BB_VISITED clearing.
8957 * tree-ssa-ccp.c (ccp_finalize): Adjust.
8958 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8959 * ira.c (ira): Call clear_bb_flags.
8960
8961 2016-10-18 Richard Biener <rguenther@suse.de>
8962
8963 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
8964 get at the operand to look at with TREE_OPERAND for generic
8965 sub-nodes.
8966
8967 2016-10-18 David Malcolm <dmalcolm@redhat.com>
8968
8969 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
8970 copy_md_ptr_loc.
8971 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
8972 (write_test_expr): Use rtx_reader_ptr for calls to
8973 fprint_c_condition.
8974 (write_attr_value): Likewise.
8975 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
8976 call to print_md_ptr_loc.
8977 (write_one_condition): Likewise for calls to print_c_condition.
8978 * genconstants.c: Include "statistics.h" and "vec.h".
8979 (main): Update for conversion to member functions.
8980 * genemit.c (emit_c_code): Use rtx_reader_ptr for
8981 call to print_md_ptr_loc.
8982 * genenums.c: Include "statistics.h" and "vec.h".
8983 (main): Update for conversion of traverse_enum_types to a method.
8984 * genmddeps.c: Include "statistics.h" and "vec.h".
8985 * genoutput.c (process_template): Use rtx_reader_ptr for call to
8986 print_md_ptr_loc.
8987 * genpreds.c (write_predicate_subfunction): Likewise.
8988 (write_predicate_expr): Likewise for calls to print_c_condition.
8989 * genrecog.c (print_test): Likewise.
8990 * gensupport.c (process_rtx): Likewise for calls to
8991 copy_md_ptr_loc and join_c_conditions.
8992 (alter_test_for_insn): Likewise for call to join_c_conditions.
8993 (process_substs_on_one_elem): Likewise.
8994 (gen_mnemonic_setattr): Update for move of string_obstack to a
8995 field of rtx_reader.
8996 (mnemonic_htab_callback): Likewise. Fix formatting.
8997 (gen_mnemonic_attr): Likewise.
8998 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
8999 to print_c_condition.
9000 * read-md.c: Include "statistics.h" and "vec.h".
9001 (string_obstack): Convert this global to field "m_string_obstack"
9002 of class rtx_reader.
9003 (ptr_locs): Likewise, as "m_ptr_locs".
9004 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
9005 (joined_conditions): Likewise, as "m_joined_conditions".
9006 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
9007 (md_constants): Likewise, as "m_md_constants".
9008 (enum_types): Likewise, as "m_enum_types".
9009 (set_md_ptr_loc): Convert to...
9010 (rtx_reader::set_md_ptr_loc): ...member function.
9011 (get_md_ptr_loc): Convert to...
9012 (rtx_reader::get_md_ptr_loc): ...member function.
9013 (copy_md_ptr_loc): Convert to...
9014 (rtx_reader::copy_md_ptr_loc): ...member function.
9015 (fprint_md_ptr_loc): Convert to...
9016 (rtx_reader::fprint_md_ptr_loc): ...member function.
9017 (print_md_ptr_loc): Convert to...
9018 (rtx_reader::print_md_ptr_loc): ...member function.
9019 (join_c_conditions): Convert to...
9020 (rtx_reader::join_c_conditions): ...member function.
9021 (fprint_c_condition): Convert to...
9022 (rtx_reader::fprint_c_condition): ...member function.
9023 (print_c_condition): Convert to...
9024 (rtx_reader::print_c_condition): ...member function.
9025 (read_name): Convert to...
9026 (rtx_reader::read_name): ...member function.
9027 (read_escape): Convert to...
9028 (rtx_reader::read_escape): ...member function.
9029 (read_quoted_string): Convert to...
9030 (rtx_reader::read_quoted_string): ...member function.
9031 (read_braced_string): Convert to...
9032 (rtx_reader::read_braced_string): ...member function.
9033 (read_string): Convert to...
9034 (rtx_reader::read_string): ...member function.
9035 (read_skip_construct): Convert to...
9036 (rtx_reader::read_skip_construct): ...member function.
9037 (handle_constants): Convert to...
9038 (rtx_reader::handle_constants): ...member function.
9039 (traverse_md_constants): Convert to...
9040 (rtx_reader::traverse_md_constants): ...member function.
9041 (handle_enum): Convert to...
9042 (rtx_reader::handle_enum): ...member function.
9043 (lookup_enum_type): Convert to...
9044 (rtx_reader::lookup_enum_type): ...member function.
9045 (traverse_enum_types): Convert to...
9046 (rtx_reader::traverse_enum_types): ...member function.
9047 (rtx_reader::rtx_reader): Move initializations
9048 of various former global data from rtx_reader::read_md_files to
9049 here, as fields, along with the call to unlock_std_streams.
9050 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9051 the new fields.
9052 (rtx_reader::read_md_files): Move initializations of various
9053 global data from here to the ctor.
9054 * read-md.h (read_name): Convert to...
9055 (rtx_reader::read_name): ...member function.
9056 (rtx_reader::read_escape): New method decl.
9057 (read_quoted_string): Convert to...
9058 (rtx_reader::read_quoted_string): ...member function.
9059 (rtx_reader::read_braced_string): New method decl.
9060 (read_string): Convert to...
9061 (rtx_reader::read_string): ...member function.
9062 (rtx_reader::read_skip_construct): New method decl.
9063 (rtx_reader::set_md_ptr_loc): New method decl.
9064 (rtx_reader::get_md_ptr_loc): New method decl.
9065 (copy_md_ptr_loc): Convert to...
9066 (rtx_reader::copy_md_ptr_loc): ...member function.
9067 (fprint_md_ptr_loc): Convert to...
9068 (rtx_reader::fprint_md_ptr_loc): ...member function.
9069 (print_md_ptr_loc): Convert to...
9070 (rtx_reader::print_md_ptr_loc): ...member function.
9071 (rtx_reader::lookup_enum_type): New method decl.
9072 (rtx_reader::traverse_enum_types): New method decl.
9073 (rtx_reader::handle_constants): New method decl.
9074 (traverse_md_constants): Convert to...
9075 (rtx_reader::traverse_md_constants): ...member function.
9076 (rtx_reader::handle_enum): New method decl.
9077 (rtx_reader::join_c_conditions): New method decl.
9078 (fprint_c_condition): Convert to...
9079 (rtx_reader::fprint_c_condition): ...member function.
9080 (print_c_condition): Convert to...
9081 (rtx_reader::print_c_condition): ...member function.
9082 (rtx_reader::apply_iterator_to_string): New method decl.
9083 (rtx_reader::copy_rtx_for_iterators): New method decl.
9084 (rtx_reader::read_conditions): New method decl.
9085 (rtx_reader::record_potential_iterator_use): New method decl.
9086 (rtx_reader::read_mapping): New method decl.
9087 (rtx_reader::read_rtx): New method decl.
9088 (rtx_reader::read_rtx_code): New method decl.
9089 (rtx_reader::read_rtx_operand): New method decl.
9090 (rtx_reader::read_nested_rtx): New method decl.
9091 (rtx_reader::read_rtx_variadic): New method decl.
9092 (rtx_reader::get_string_obstack): New method.
9093 (rtx_reader::get_md_constants): New method.
9094 (string_obstack): Convert global variable decl to...
9095 (rtx_reader::m_string_obstack): ...this new field.
9096 (rtx_reader::m_ptr_locs): New field.
9097 (rtx_reader::m_ptr_loc_obstack): New field.
9098 (rtx_reader::m_joined_conditions): New field.
9099 (rtx_reader::m_joined_conditions_obstack): New field.
9100 (rtx_reader::m_md_constants): New field.
9101 (rtx_reader::m_enum_types): New field.
9102 * read-rtl.c (apply_iterator_to_string): Convert to...
9103 (rtx_reader::apply_iterator_to_string): ...member function.
9104 (copy_rtx_for_iterators): Convert to...
9105 (rtx_reader::copy_rtx_for_iterators): ...member function.
9106 (add_condition_to_string): Use rtx_reader_ptr for
9107 calls join_c_conditions.
9108 (apply_iterators): Use rtx_reader_ptr for calls to
9109 join_c_conditions and copy_rtx_for_iterators.
9110 (read_conditions): Convert to...
9111 (rtx_reader::read_conditions): ...member function.
9112 (record_potential_iterator_use): Convert to...
9113 (rtx_reader::record_potential_iterator_use): ...member function.
9114 (read_mapping): Convert to...
9115 (rtx_reader::read_mapping): ...member function.
9116 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9117 (read_rtx): Convert to...
9118 (rtx_reader::read_rtx): ...member function.
9119 (read_rtx_code): Convert to...
9120 (rtx_reader::read_rtx_code): ...member function.
9121 (read_rtx_operand): Convert to...
9122 (rtx_reader::read_rtx_operand): ...member function. Update for move
9123 of string_obstack to a field.
9124 (read_nested_rtx): Convert to..
9125 (rtx_reader::read_nested_rtx): ...member function.
9126 (read_rtx_variadic): Convert to..
9127 (rtx_reader::read_rtx_variadic): ...member function.
9128
9129 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9130
9131 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9132
9133 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9134
9135 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9136 for pointer type too.
9137 (ipcp_update_vr): set_ptr_nonnull for pointer.
9138
9139 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9140
9141 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9142 pt_solution_singleton_p.
9143 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9144 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9145 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9146 pointer nonnull computed by VRP.
9147 Also Conservatively set pt.null to 1.
9148 (pt_solution_reset): Conservatively set pt.null to 1.
9149 (pt_solution_singleton_or_null_p): Renamed from
9150 pt_solution_singleton_p.
9151 * tree-ssanames.h (set_ptr_nonnull): Declare.
9152 (get_ptr_nonnull): Likewise.
9153 * tree-ssanames.c (set_ptr_nonnull): New.
9154 (get_ptr_nonnull): Likewise.
9155 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9156 (evrp_dom_walker::before_dom_children): Likewise.
9157
9158 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9159
9160 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9161 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9162 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9163 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9164 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9165 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9166 (rs6000_option_override_internal): Clear it if ABI_AIX.
9167 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9168 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9169
9170 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9171
9172 * gimple-ssa-strength-reduction.c (record_increment): Remove
9173 garbage comment.
9174
9175 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9176
9177 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9178 that the result is non-zero if it is true.
9179 (maybe_expand_shift): New wrapper around expand_shift_1.
9180 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9181
9182 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9183
9184 PR tree-optimization/77916
9185 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9186 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9187 or unknown strides.
9188 (record_increment): Increments of -1 for unknown strides just use
9189 a multiply initializer like other negative values.
9190 (analyze_increments): Remove stopgap solution for -1 increment
9191 applied to pointer arithmetic.
9192
9193 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9194
9195 * dominance.c (dom_info::dom_info): Add new constructor for region
9196 which is vector of basic blocks.
9197 (dom_init): New method to initialize members common for both
9198 constructors.
9199 (dom_info::dom_info): Invoke dom_init for partial initialization.
9200 (dom_info::get_idom): Add check to corner cases on basic blocks which
9201 are not in region.
9202 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9203 to detect unreachable bbs.
9204 (dom_info::calc_idoms): Likewise.
9205 (compute_dom_fast_query_in_region): New function.
9206 (calculate_dominance_info_for_region): Likewise.
9207 (free_dominance_info_for_region): Likewise.
9208 * dominance.h: Add prototypes for introduced region-based functions
9209 * tree-if-conv.c (build_region): New function.
9210 (if_convertible_loop_p_1): Invoke local version of post-dominators
9211 calculation before basic block predication with subsequent freeing
9212 post-dominator info.
9213 (tree_if_conversion): Remove free of post-dominator info
9214 (pass_if_conversion::execute): Delete detection of infinite loops
9215 and fake edges to exit block since post-dominator calculation is
9216 performed per if-converted loop only.
9217
9218 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9219
9220 PR target/77308
9221 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9222 register explicitly.
9223 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9224 optimizing for size.
9225
9226 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9227
9228 * config/aarch64/aarch64.c: Delete inclusion of
9229 cortex-a57-fma-steering.h.
9230 (aarch64_override_options): Delete call
9231 to aarch64_register_fma_steering.
9232 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9233 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9234 * config/aarch64/aarch64-passes.def: New file.
9235 * config/aarch64/cortex-a57-fma-steering.c
9236 (aarch64_register_fma_steering): Delete definition.
9237 (make_pass_fma_steering): Remove static qualifier.
9238 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9239 (cortex-a57-fma-steering.o): Remove dependency on
9240 cortex-a57-fma-steering.h.
9241
9242 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9243
9244 * explow.c (validize_mem): Do not modify the argument in-place.
9245
9246 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9247
9248 * tree-streamer.c (record_common_node): Explicitly list expected
9249 tree codes.
9250
9251 2016-10-17 Richard Biener <rguenther@suse.de>
9252
9253 PR tree-optimization/77988
9254 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9255
9256 2016-10-17 Marek Polacek <polacek@redhat.com>
9257
9258 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9259
9260 2016-10-17 Richard Biener <rguenther@suse.de>
9261
9262 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9263 before using it.
9264
9265 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9266
9267 PR tree-optimization/71636
9268 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9269
9270 2016-10-17 Richard Biener <rguenther@suse.de>
9271
9272 * gimplify.c (gimplify_function_tree): Do not move the outer
9273 binds block.
9274
9275 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9276
9277 * langhooks.h (struct lang_hooks_for_decls): Remove
9278 function_decl_explicit_p, function_decl_deleted_p and
9279 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9280 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9281 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9282 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9283 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9284 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9285 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9286 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9287 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9288 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9289 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9290 * dwarf2out.c (gen_subprogram_die): Use
9291 lang_hooks.decls.decl_dwarf_attribute instead of
9292 lang_hooks.decls.function_decl_*.
9293
9294 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9295
9296 PR ada/37139
9297 PR ada/67205
9298 * common.opt (-ftrampolines): New option.
9299 * doc/invoke.texi (Code Gen Options): Document it.
9300 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9301 * doc/tm.texi: Regenerate.
9302 * builtins.def: Add init_descriptor and adjust_descriptor.
9303 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9304 on platforms with descriptors.
9305 (expand_builtin_init_descriptor): New function.
9306 (expand_builtin_adjust_descriptor): Likewise.
9307 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9308 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9309 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9310 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9311 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9312 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9313 (expand_call): Likewise. Move around call to prepare_call_address
9314 and pass all flags to it.
9315 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9316 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9317 (gimple_call_set_by_descriptor): New setter.
9318 (gimple_call_by_descriptor_p): New getter.
9319 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9320 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9321 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9322 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9323 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9324 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9325 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9326 * target.def (custom_function_descriptors): New POD hook.
9327 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9328 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9329 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9330 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9331 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9332 (build_common_builtin_nodes): Initialize init_descriptor and
9333 adjust_descriptor.
9334 * tree-nested.c: Include target.h.
9335 (struct nesting_info): Add 'any_descr_created' field.
9336 (get_descriptor_type): New function.
9337 (lookup_element_for_decl): New function extracted from...
9338 (create_field_for_decl): Likewise.
9339 (lookup_tramp_for_decl): ...here. Adjust.
9340 (lookup_descr_for_decl): New function.
9341 (convert_tramp_reference_op): Deal with descriptors.
9342 (build_init_call_stmt): New function extracted from...
9343 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9344 * defaults.h (FUNCTION_ALIGNMENT): Define.
9345 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9346 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9347 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9348 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9349 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9350
9351 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9352
9353 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9354 constants in CONST_VECTORs.
9355
9356 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9357
9358 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9359 register as destination of bmask.
9360 (vector_init_bshuffle): Likewise.
9361 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9362 (bmaskdi_vis): Enable only in 64-bit mode.
9363
9364 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9365
9366 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9367 make LR a separately shrink-wrapped component unless savres_strategy
9368 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9369 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9370 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9371
9372 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9373
9374 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9375 and keep looping on failure.
9376
9377 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9378
9379 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9380 set.
9381 (print_rtx_function): Update example in comment for...
9382 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9383 non-virtual pseudos with a '%' sigil followed by the regno, offset
9384 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9385 pseudo is dumped as "%0".
9386
9387 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9388
9389 PR middle-end/77959
9390 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9391 return a MEM.
9392
9393 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9394
9395 * config/sparc/sparc-passes.def: New file.
9396 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9397 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9398 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9399
9400 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9401
9402 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9403 loop peel to loops with exit test at the beginning.
9404
9405 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9406
9407 PR rtl-optimization/68212
9408 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9409 frequency when computing scale factor for peeled copies.
9410 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9411 values for switch/peel blocks/edges.
9412
9413 2016-10-14 Pedro Alves <palves@redhat.com>
9414
9415 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9416
9417 2016-10-14 Catherine Moore <clm@codesourcery.com>
9418
9419 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9420 micromips_globals to zero.
9421
9422 2016-10-14 Richard Biener <rguenther@suse.de>
9423
9424 PR tree-optimization/77979
9425 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9426 in the equivalency sets.
9427 (compare_names): Likewise.
9428
9429 2016-10-14 Martin Liska <mliska@suse.cz>
9430
9431 * builtins.h(target_char_cst_p): Declare the function.
9432 * builtins.c (fold_builtin_memchr): Remove.
9433 (target_char_cst_p): Move the function from gimple-fold.c.
9434 (fold_builtin_3): Do not call the function.
9435 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9436 (gimple_fold_builtin): Call the function.
9437 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9438
9439 2016-10-14 Martin Liska <mliska@suse.cz>
9440
9441 * builtins.c (fold_builtin_strcmp): Remove function.
9442 (fold_builtin_strncmp): Likewise.
9443 (fold_builtin_2): Remove call of the function.
9444 (fold_builtin_3): Likewise.
9445 * fold-const-call.c (fold_const_call): Add constant folding
9446 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9447 * fold-const-call.h (build_cmp_result): Declare the function.
9448 * gimple-fold.c (gimple_load_first_char): New function.
9449 (gimple_fold_builtin_string_compare): Likewise.
9450 (gimple_fold_builtin): Call the function.
9451
9452 2016-10-14 Nathan Sidwell <nathan@acm.org>
9453
9454 * gcov-io.c (gcov_open): Deconstify 'mode'.
9455
9456 2016-10-14 Martin Liska <mliska@suse.cz>
9457
9458 * fold-const.c (c_getstr): Support of properly \0-terminated
9459 string constants. New argument is added.
9460 * fold-const.h: New argument is added.
9461
9462 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9463
9464 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9465 New function.
9466 (aarch64_print_hint_for_core): Likewise.
9467 (aarch64_print_hint_for_arch): Likewise.
9468 (aarch64_validate_march): Use it. Fix indentation in type signature.
9469 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9470 (aarch64_validate_mtune): Likewise.
9471 (aarch64_handle_attr_arch): Likewise.
9472 (aarch64_handle_attr_cpu): Likewise.
9473 (aarch64_handle_attr_tune): Likewise.
9474
9475 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9476
9477 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9478 and udivmod_optab.
9479
9480 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9481
9482 * config/m68k/m68k.c (m68k_option_override): Check
9483 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9484 instead of stack_limit_rtx.
9485
9486 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9487
9488 * dwarf2out.c (gen_member_die): Handle inline static data member
9489 definitions.
9490
9491 2016-10-13 Nathan Sidwell <nathan@acm.org>
9492
9493 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9494 gcov_var.mode. Remove unnecessary fstat.
9495
9496 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9497
9498 PR bootstrap/77962
9499 * function.c (thread_prologue_and_epilogue_insns): Call all
9500 make_*logue_seq in the same order as traditional. Call them
9501 all a second time if shrink_wrapped_separate.
9502
9503 2016-10-13 Marek Polacek <polacek@redhat.com>
9504
9505 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9506 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9507 use -Wno-error.
9508
9509 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9510
9511 PR tree-optimization/77937
9512 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9513 to infinite when we have a pointer with an increment of -1.
9514
9515 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9516
9517 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9518 into ...
9519 * memmodel.h: This file.
9520 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9521 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9522 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9523 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9524 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9525 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9526 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9527 compare-elim.c, config/aarch64/aarch64-builtins.c,
9528 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9529 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9530 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9531 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9532 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9533 config/darwin.c, config/epiphany/epiphany.c,
9534 config/epiphany/mode-switch-use.c,
9535 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9536 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9537 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9538 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9539 config/m68k/m68k.c, config/mcore/mcore.c,
9540 config/microblaze/microblaze.c, config/mmix/mmix.c,
9541 config/mn10300/mn10300.c, config/moxie/moxie.c,
9542 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9543 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9544 config/nds32/nds32-memory-manipulation.c,
9545 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9546 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9547 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9548 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9549 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9550 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9551 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9552 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9553 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9554 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9555 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9556 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9557 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9558 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9559 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9560 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9561 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9562 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9563 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9564 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9565 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9566 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9567 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9568 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9569 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9570 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9571 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9572 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9573 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9574 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9575 var-tracking.c, varasm.c: Include memmodel.h.
9576 * genattrtab.c (write_header): Include memmodel.h in generated file.
9577 * genautomata.c (main): Likewise.
9578 * gengtype.c (open_base_files): Likewise.
9579 * genopinit.c (main): Likewise.
9580 * genconditions.c (write_header): Include memmodel.h earlier in
9581 generated file.
9582 * genemit.c (main): Likewise.
9583 * genoutput.c (output_prologue): Likewise.
9584 * genpeep.c (main): Likewise.
9585 * genpreds.c (write_insn_preds_c): Likewise.
9586 * genrecog.c (write_header): Likewise.
9587 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9588
9589 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9590
9591 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9592 for new "compact" param of print_rtx_function. Check for "cinsn"
9593 rather than "insn".
9594 * print-rtl-function.c (flag_compact): New decl.
9595 (print_rtx_function): Add param "compact" and use it to set
9596 flag_compact, adding a description of the effect to the leading
9597 comment, and updating the example output.
9598 * print-rtl.c (flag_compact): New variable.
9599 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9600 mode.
9601 (print_rtx_operand_code_i): When printing source locations, wrap
9602 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9603 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9604 virtuals in compact mode.
9605 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9606 apart from in LABEL_REFs.
9607 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9608 Don't print basic block ids in compact mode.
9609 (print_rtx): In compact mode, prefix the code of insns with "c",
9610 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9611 * print-rtl.h (print_rtx_function): Add "compact" param.
9612
9613 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9614
9615 * arm.h (TARGET_VFP): Delete.
9616 (TARGET_VFPD32): Remove references to TARGET_VFP.
9617 (TARGET_VFP3, TARGET_VFP5): Likewise.
9618 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9619 (TARGET_NEON_FP16): Likewise.
9620 (TARGET_FMA): Likewise.
9621 (TARGET_CRYPTO): Likewise.
9622 (TARGET_NEON): Likewise.
9623 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9624 (FUNCTION_ARG_REGNO_P): Likewise.
9625 * arm.c (arm_option_check_internal): Likewise.
9626 (arm_option_override): Likewise.
9627 (use_return_insn): Likewise.
9628 (arm_function_value_regno_p): Likewise.
9629 (arm_apply_result_size): Likewise.
9630 (use_vfp_abi): Likewise.
9631 (arm_legitimate_address_outer_p): Likewise.
9632 (thumb2_legitimate_address_p): Likewise.
9633 (arm_legitimate_index_p): Likewise.
9634 (thumb2_legitimate_index_p): Likewise.
9635 (arm_legitimate_address): Likewise.
9636 (arm_get_vfp_saved_size): Likewise.
9637 (arm_emit_vfp_multi_reg_pop): Likewise.
9638 (arm_get_frame_offsets): Likewise.
9639 (arm_save_coproc_regs): Likewise.
9640 (arm_hard_regno_mode_ok): Likewise.
9641 (arm_expand_epilogue_apcs_frame): Likewise.
9642 (arm_expand_epilogue): Likewise.
9643 (arm_file_start): Likewise.
9644 (arm_conditional_register_usage): Likewise.
9645 (arm_validize_comparison): Use vfp_compare_operand directly.
9646 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9647 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9648 unsupported usage.
9649 (arm_atomic_assign_expand_fenv): Likewise.
9650 * arm.md (divsf3): Likewise.
9651 (arm_negsi2): Likewise.
9652 (absdf2): Likewise.
9653 (arm_movdi): Likewise.
9654 (arm_movt): Likewise.
9655 (cbranchsf4): Change predicate to vfp_compare_operand.
9656 (cbranchdf4): Change predicate to vfp_compare_operand.
9657 (cstorehf4): Change predicate to vfp_compare_operand.
9658 (cstoresf4): Change predicate to vfp_compare_operand.
9659 (cstoredf4): Change predicate to vfp_compare_operand.
9660 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9661 (movhi_insn_arch4, movhi_bytes): Likewise.
9662 * constraints.md (Dt): Likewise.
9663 (Dp): Likewise.
9664 * iterators.md (SDF): Likewise.
9665 * predicates.md (arm_float_compare_operand): Delete.
9666 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9667 TARGET_VFP.
9668 (const_double_vcvt_power_of_two): Likewise.
9669 * thumb2.md thumb2_movsi_insn): Likewise.
9670 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9671 (movhf_vfp): Likewise.
9672 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9673 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9674 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9675 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9676 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9677 (subsf3_vfp, divsf3_vfp): Likewise.
9678 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9679 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9680 (mulsf3negsfsubsf_vfp): Likewise.
9681 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9682 (floatunssisf2, sqrtsf2_vfp): Likewise.
9683 (movcc_vfp): Likewise.
9684 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9685 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9686 (push_multi_vfp): Likewise.
9687 (set_fpscr, get_fpscr): Likewise.
9688 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9689
9690 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9691
9692 * arm.h (TARGET_VFP): Unconditionally define to 1.
9693 (arm_fpu_desc): Remove 'model' field.
9694 (TARGET_FPU_MODEL): Delete.
9695 * arm.c (all_fpus): Don't initialize the model field.
9696 (arm_can_inline_p): Don't check the FPU model.
9697 * arm-fpus.def: Remove redundant model field from all FPU
9698 descriptions.
9699
9700 2016-10-13 Richard Biener <rguenther@suse.de>
9701
9702 PR middle-end/77826
9703 * genmatch.c (struct capture): Add value_match member.
9704 (commutate): Preserve value_match.
9705 (lower_opt_convert): Likewise.
9706 (lower_cond): Likewise.
9707 (replace_id): Likewise.
9708 (struct dt_operand): Add value_match member.
9709 (decision_tree::cmp_node): Compare it.
9710 (decision_tree::insert_operand): Honor it when finding and
9711 when appending a DT_MATCH.
9712 (dt_operand::gen_match_op): Generate a type check after
9713 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9714 (parser::get_internal_capture_id): New helper.
9715 (parser::finish_match_operand): New function lowering @@<id>.
9716 (parser::parse_capture): Parse @@<id> as value-match.
9717 (parser::parse_expr): Use get_internal_capture_id.
9718 (parser::parse_simplify): Call finish_match_operand.
9719 (walk_captures): New helper.
9720 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9721 of operand_equal_p.
9722 ((X /[ex] A) * A -> X): Likewise.
9723 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9724 convert[12] and value-matching.
9725 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9726 ((X | Y) | Y -> X | Y): Likewise.
9727 ((X ^ Y) ^ Y -> X): Likewise.
9728 (A - (A & B) -> ~B & A): Likewise.
9729 ((T)(P + A) - (T)P -> (T) A): Likewise.
9730 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9731 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9732 * doc/match-and-simplify.texi: Amend capture section.
9733
9734 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9735
9736 * config/arc/arc.md (umul_600): Remove predicated variant.
9737 (umul64_600): Likewise.
9738
9739 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9740
9741 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9742
9743 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9744
9745 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9746 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9747 no-overflow information to vect_do_peeling_for_loop_bound and
9748 vect_gen_vector_loop_niters.
9749
9750 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9751
9752 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9753 iterates 1 time.
9754
9755 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9756
9757 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9758 adjust_vec automatically.
9759 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9760 param exit_bb to guard_to.
9761 (slpeel_checking_verify_cfg_after_peeling):
9762 (set_prologue_iterations):
9763 (create_lcssa_for_virtual_phi): New func which is factored out from
9764 slpeel_tree_peel_loop_to_edge.
9765 (slpeel_tree_peel_loop_to_edge):
9766 (iv_phi_p): New func.
9767 (vect_can_advance_ivs_p): Call iv_phi_p.
9768 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9769 new gimple stmts in basic block.
9770 (vect_gen_niters_for_prolog_loop): Rename to...
9771 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9772 adjust implementation.
9773 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9774 sizetype if necessary.
9775 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9776 it to external function.
9777 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9778 (vect_gen_vector_loop_niters_mult_vf): New.
9779 (slpeel_update_phi_nodes_for_loops): New.
9780 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9781 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9782 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9783 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9784 tree-vect-loop-manip.c
9785 (vect_generate_tmps_on_preheader): Delete.
9786 (vect_transform_loop): Rename vectorization_factor to vf. Call
9787 vect_do_peeling instead of vect_do_peeling-* functions.
9788 * tree-vectorizer.h (vect_do_peeling): New decl.
9789 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9790 (vect_do_peeling_for_loop_bound): Delete.
9791 (vect_do_peeling_for_alignment): Delete.
9792
9793 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9794
9795 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9796 duplicated loop after its preheader and after the original loop.
9797
9798 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9799
9800 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9801 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9802
9803 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9804
9805 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9806 for live variable outside loop but not in lcssa form.
9807
9808 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9809
9810 * cfg.c (reset_original_copy_tables): New func.
9811 * cfg.h (reset_original_copy_tables): New decl.
9812
9813 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9814
9815 PR c/77946
9816 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9817 public_flag.
9818 * varasm.c (default_binds_local_p_3): Formatting fix.
9819
9820 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9821
9822 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9823 style issue.
9824 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9825 Remove useless code.
9826
9827 2016-10-13 Martin Liska <mliska@suse.cz>
9828
9829 PR tree-optimization/77943
9830 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9831 a different EH landing pads.
9832
9833 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9834
9835 PR target/77957
9836 * hooks.h (hook_tree_void_null): Declare.
9837 * hooks.c (hook_tree_void_null): New function.
9838 * langhooks.c (lhd_return_null_tree_v): Remove.
9839 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9840 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9841 set y to const0_rtx.
9842 * function.c (stack_protect_epilogue): Likewise.
9843 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9844 if TARGET_THREAD_SSP_OFFSET is defined.
9845 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9846 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9847 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9848 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9849 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9850 (ix86_stack_protect_guard): New function.
9851
9852 2016-10-13 Richard Biener <rguenther@suse.de>
9853
9854 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9855 rtl_for_decl_init during early phase.
9856 (gen_variable_die): Do not create locations during early phase.
9857 (gen_label_die): Likewise.
9858 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9859 twice.
9860
9861 2016-10-12 Richard Biener <rguenther@suse.de>
9862
9863 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9864 try_add_new_range and made to eturn new range.
9865 (evrp_dom_walker::before_dom_children): Push op1 value range before
9866 pushing op0 value range.
9867
9868 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9869
9870 PR tree-optimization/77937
9871 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9872 POINTER_TYPE_P on the candidate type to determine whether
9873 candidates in this chain require pointer arithmetic.
9874
9875 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9876
9877 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9878 correction if the type is smaller than a word.
9879 (visium_select_cc_mode): Add ... fall through ... comment.
9880
9881 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9882
9883 * config/rs6000/rs6000.c (machine_function): Add new fields
9884 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9885 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9886 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9887 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9888 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9889 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9890 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9891 (rs6000_get_separate_components): New function.
9892 (rs6000_components_for_bb): New function.
9893 (rs6000_disqualify_components): New function.
9894 (rs6000_emit_prologue_components): New function.
9895 (rs6000_emit_epilogue_components): New function.
9896 (rs6000_set_handled_components): New function.
9897 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9898 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9899 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9900 (rs6000_emit_epilogue): Don't emit GPR restores if
9901 gpr_is_wrapped_separately for that register. Don't make a
9902 REG_CFA_RESTORE note for registers we did not restore, either.
9903
9904 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9905
9906 * function.c (thread_prologue_and_epilogue_insns): Call
9907 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9908 if it has possibly changed. Compute the split_prologue_seq and
9909 epilogue_seq later, too.
9910 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9911 (dump_components): New function.
9912 (struct sw): New struct.
9913 (SW): New function.
9914 (init_separate_shrink_wrap): New function.
9915 (fini_separate_shrink_wrap): New function.
9916 (place_prologue_for_one_component): New function.
9917 (spread_components): New function.
9918 (disqualify_problematic_components): New function.
9919 (emit_common_heads_for_components): New function.
9920 (emit_common_tails_for_components): New function.
9921 (insert_prologue_epilogue_for_components): New function.
9922 (try_shrink_wrapping_separate): New function.
9923 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9924
9925 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9926
9927 * regrename.c (build_def_use): Invalidate chains that have a
9928 REG_CFA_RESTORE on some instruction.
9929
9930 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9931
9932 * dce.c (delete_unmarked_insns): Don't delete instructions with
9933 a REG_CFA_RESTORE note.
9934
9935 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9936
9937 * common.opt (-fshrink-wrap-separate): New flag.
9938 * doc/invoke.texi: Document it.
9939 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9940 * doc/tm.texi: Regenerate.
9941 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9942 * target.def (shrink_wrap): New hook vector.
9943 (get_separate_components, components_for_bb, disqualify_components,
9944 emit_prologue_components, emit_epilogue_components,
9945 set_handled_components): New hooks.
9946
9947 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9948
9949 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
9950 vector return by reference only if -Wpsabi.
9951 (rs6000_pass_by_reference): Similarly, for argument passing.
9952
9953 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9954
9955 * function-tests.c: Include "print-rtl.h".
9956 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
9957 function, and verify what is dumped.
9958 * print-rtl-function.c (print_edge): New function.
9959 (begin_any_block): New function.
9960 (end_any_block): New function.
9961 (can_have_basic_block_p): New function.
9962 (print_rtx_function): Track the basic blocks of insns in the
9963 chain, wrapping those that are within blocks within "(block)"
9964 directives. Remove the "(cfg)" directive.
9965
9966 2016-10-12 David Malcolm <dmalcolm@redhat.com>
9967
9968 * selftest.c (selftest::read_file): New function.
9969 (selftest::test_read_file): New function.
9970 (selftest::selftest_c_tests): Call test_read_file.
9971 * selftest.h (selftest::read_file): New decl.
9972
9973 2016-10-12 Richard Biener <rguenther@suse.de>
9974
9975 PR debug/77947
9976 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
9977 function context.
9978
9979 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
9980
9981 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
9982
9983 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
9984 dwarf2out_assembly_start.
9985
9986 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
9987
9988 * Makefile.in (SELFTEST_FLAGS): New variable.
9989 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
9990
9991 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
9992 early_finish hook.
9993
9994 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
9995
9996 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
9997 dumped in RTL dumps.
9998
9999 2016-10-12 Martin Liska <mliska@suse.cz>
10000
10001 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
10002 (gimple_fold_builtin_memory_op): Use the function.
10003 (gimple_fold_builtin_strchr): Likewise.
10004 (gimple_fold_builtin_strcat): Likewise.
10005 (gimple_build): Likewise.
10006
10007 2016-10-12 Nathan Sidwell <nathan@acm.org>
10008
10009 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
10010
10011 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10012
10013 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10014 equivalent 32-bit constant (modulo 2**32) when that yields
10015 smaller instructions.
10016 (size_of_int_loc_descriptor): Update accordingly.
10017
10018 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10019
10020 * dwarf2out.c (dwarf2out_early_global_decl): For nested
10021 functions, call dwarf2out_decl on the parent function first.
10022
10023 2016-10-12 Richard Biener <rguenther@suse.de>
10024
10025 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10026 on the conversion.
10027
10028 2016-10-12 Richard Biener <rguenther@suse.de>
10029
10030 * tree-ssa-propagate.c
10031 (substitute_and_fold_dom_walker::before_dom_children): Do not
10032 ignore ASSERT_EXPRs but only preserve them.
10033 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10034 that have been propagated into.
10035 (vrp_finalize): Enable DCE for substitute_and_fold.
10036
10037 2016-10-12 Richard Biener <rguenther@suse.de>
10038
10039 PR tree-optimization/77920
10040 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10041 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10042 (simplify_abs_using_ranges): Likewise.
10043 (simplify_conversion_using_ranges): Likewise.
10044 (simplify_stmt_using_ranges): Adjust.
10045
10046 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10047
10048 PR tree-optimization/77929
10049 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10050 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10051
10052 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10053
10054 PR target/77934
10055 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10056 needs a base register for arg 1.
10057
10058 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10059
10060 * common.opt (Wimplicit-fallthrough) Turn into alias to
10061 -Wimplicit-fallthrough=3. Remove EnabledBy.
10062 (Wimplicit-fallthrough=): New option.
10063 * gimplify.c (warn_implicit_fallthrough_r): Use
10064 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10065 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10066 to -Wimplicit-fallthrough=3.
10067 (-Wimplicit-fallthrough=): Document.
10068
10069 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10070
10071 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10072 and GEU in DImode if TARGET_SUBXC.
10073 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10074 (seqdi<W:mode>_zero_subxc): Delete.
10075 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10076 (neg_seqdi<W:mode>_zero_vis3): Delete.
10077 (plus_seqdi<W:mode>_zero): Likewise.
10078 (minus_seqdi<W:mode>_zero): Likewise.
10079 (plus_plus_sltu<W:mode>): Accept only register.
10080 (addx<W:mode>): Likewise.
10081 (plus_sltu<W:mode>_vis3): Likewise.
10082 (plus_plus_sltu<W:mode>_vis3): Likewise.
10083 (neg_sgeu<W:mode>_vis3): Delete.
10084 (minus_sgeu<W:mode>_vis3): Likewise.
10085 (addxc<W:mode>): Accept only registers.
10086 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10087 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10088 (neg_plus_sltu<W:mode>_subxc): Likewise.
10089 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10090 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10091 (sgeu<W:mode>_insn_subxc): Delete.
10092 (plus_sgeu<W:mode>_subxc): Likewise.
10093 (subxc<W:mode>): Accept only register.
10094 (scc splitter): Split always GEU again.
10095
10096 2016-10-11 Jeff Law <law@redhat.com>
10097
10098 PR tree-optimization/77424
10099 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10100 dead conditionals. Assert that all e->aux fields are NULL.
10101
10102 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10103
10104 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10105 operand-printing "switch" statement into...
10106 (print_rtx_operand_code_0): ...this new function, ...
10107 (print_rtx_operand_code_e): ...this new function, ...
10108 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10109 (print_rtx_operand_code_i): ...this new function, ...
10110 (print_rtx_operand_code_r): ...this new function, ...
10111 (print_rtx_operand_code_u): ...this new function, ...
10112 (print_rtx_operand): ...and this new function.
10113
10114 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10115
10116 * config/alpha/alpha-passes.def: New file.
10117 * config/alpha/t-alpha: New file.
10118 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10119 (make_pass_handle_trap_shadows): New prototype.
10120 (make_pass_align_insns): Ditto.
10121 * config/alpha/alpha.c (alpha_option_override): Don't register
10122 passes here.
10123 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10124
10125 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10126
10127 PR target/77924
10128 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10129 distinct __ibm128 IBM extended double type if long doubles are
10130 128-bits and the default format for long double is IEEE 128-bit.
10131
10132 2016-10-11 Richard Biener <rguenther@suse.de>
10133
10134 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10135 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10136 (verify_die): New function.
10137 (dwarf2out_finish): Call it.
10138 (output_line_info): Handle case of -gsplit-dwarf without
10139 DWARF2_ASM_LINE_DEBUG_INFO.
10140
10141 2016-10-11 Richard Biener <rguenther@suse.de>
10142
10143 PR debug/77931
10144 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10145 sub-chains of BLOCK_VARS and gimple_bind_vars.
10146
10147 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10148
10149 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10150
10151 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10152
10153 * config/sparc/sparc.opt (msubxc): New option.
10154 * doc/invoke.texi (SPARC options): Document it and tidy up.
10155 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10156 * doc/tm.texi: Regenerate.
10157 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10158 (CCNZ): ...this.
10159 (CCX_NOOV): Rename into...
10160 (CCXNZ): ...this.
10161 (CCC): New.
10162 (CCXC): Likewise.
10163 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10164 (fcc0_register_operand): Likewise.
10165 (icc_register_operand): New.
10166 (icc_or_fcc_register_operand): Simplify.
10167 (nz_comparison_operator): New.
10168 (c_comparison_operator): Likewise.
10169 (noov_compare_operator): Rename into...
10170 (icc_comparison_operator): ...this. Use above predicates.
10171 (noov_compare64_operator): Rename into...
10172 (v9_comparison_operator): ...this and tidy up.
10173 (fcc_comparison_operator): New.
10174 (icc_or_fcc_comparison_operator): Likewise.
10175 (v9_register_compare_operator): Rename info...
10176 (v9_register_comparison_operator): ...this.
10177 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10178 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10179 for Niagara-7.
10180 (sparc_fixed_condition_code_regs): New function.
10181 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10182 renaming and add support for CCC/CCXC.
10183 (output_cbranch): Likewise.
10184 (sparc_print_operand): Likewise.
10185 (gen_v9_scc): Remove obsolete assertion.
10186 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10187 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10188 (output_cbcond): Remove bogus handling of CC modes.
10189 (sparc_register_move_cost): Return 100 for NO_REGS.
10190 * config/sparc/sparc.md (W): New mode iterator.
10191 (length): Adjust for noov_compare64_operator renaming.
10192 (cmpsi_sne): New instruction.
10193 (cmpdi_sne): Likewise.
10194 (seqdi_special): Delete.
10195 (seqdi_special): Likewise.
10196 (snesi<P:mode>_special): Likewise.
10197 (snedi_special): Likewise.
10198 (snedi_special_vis3): Likewise.
10199 (snesi patterns): Use W iterator.
10200 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10201 (sltu patterns): Likewise.
10202 (sgeu patterns): Likewise.
10203 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10204 (normal_branch): Use icc_comparison_operator predicate.
10205 (inverted_branch): Likewise.
10206 (cbcond_sp32): Use comparison_operator predicate.
10207 (cbcond_sp64): Likewise.
10208 (normal_int_branch_sp64): Adjust for renaming
10209 (inverted_int_branch_sp64): Likewise.
10210 (mov<I:mode>_cc_reg_sp64): Likewise.
10211 (movsf_cc_reg_sp6): Likewise.
10212 (movdf_cc_reg_sp64): Likewise.
10213 (movtf_cc_reg_hq_sp64): Likewise.
10214 (movtf_cc_reg_sp64): Likewise.
10215 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10216 (movsf_cc_v9): Likewise.
10217 (movdf_cc_v9): Likewise.
10218 (movtf_cc_hq_v9): Likewise.
10219 (movtf_cc_v9): Likewise.
10220 (adddi3): Call gen_adddi3_sp32.
10221 (adddi3_insn_sp32): Rename to...
10222 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10223 and use CCCmode for the carry.
10224 (addx_extend_sp32): Use CCCmode for the carry.
10225 (addx_extend_sp64): Delete.
10226 (adddi3_extend_sp32): Use CCCmode for the carry.
10227 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10228 (subdi3): Call gen_subdi3_sp32.
10229 (subdi3_insn_sp32): Rename to...
10230 (subdi3_sp32): ...this and use CCmode for the carry.
10231 (subx_extend_sp32): Use CCCmode for the carry.
10232 (subx_extend_sp64): Delete.
10233 (subdi3_extend_sp32): Use CCmode for the carry.
10234 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10235 (negdi3): Call gen_negdi3_sp32.
10236 (negdi3_sp32): Use CCCmode for the carry.
10237 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10238 (cmp_nz_ashift_1): Use CCNZ mode.
10239 (cmp_nz_set_ashift_1): Likewise.
10240 (ctrapsi4): Use comparison_operator predicate.
10241 (ctrapdi4): Likewise.
10242 (trapsi_insn): Use icc_comparison_operator predicate.
10243 (trapdi_insn): Likewise.
10244 (edge8 patterns): Use CCNZmode.
10245 (edge16 patterns): Likewise.
10246 (edge32 patterns): Likewise.
10247
10248 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10249
10250 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10251 (CCNZ): ...this.
10252 (CC_BTST): Rename into...
10253 (CCC): ...this.
10254 * config/visium/predicates.md (real_add_operand): New.
10255 (visium_btst_operator): Rename into...
10256 (visium_equality_comparison_operator): ...this.
10257 (visium_noov_operator): Rename into...
10258 (visium_nz_comparison_operator): ...this.
10259 (visium_c_comparison_operator): New.
10260 (visium_branch_operator): Adjust and deal with all CC modes.
10261 * config/visium/visium.c (visium_adjust_cost): Adjust.
10262 (visium_split_double_add): Use the *_set_carry patterns.
10263 (visium_select_cc_mode): Add support for CCC mode and adjust.
10264 (output_cbranch): Adjust and use the carry-based operators for
10265 floating-point comparisons.
10266 * config/visium/visium.md (flags_subst_arith): Adjust.
10267 (addsi3_insn_set_carry): New instruction.
10268 (subsi3_insn_set_carry): Likewise.
10269 (negsi2_insn_set_carry): Likewise.
10270 (btst): Adjust.
10271 (cmp<mode>_sne): Likewise.
10272 (cbranch<mode>4): Use ordered_comparison_operator.
10273 (cbranch<mode>4_insn): Likewise.
10274 (cbranchsi4_btst_insn): Adjust.
10275
10276 2016-10-11 Tom de Vries <tom@codesourcery.com>
10277
10278 PR middle-end/77558
10279 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10280 special-casing.
10281
10282 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10283
10284 * tree.h (build_complex_type): Add second parameter with default.
10285 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10286 recursive call. Create a TYPE_DECL only if NAMED is true.
10287 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10288
10289 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10290
10291 New avr-passes.def to register AVR specific passes.
10292
10293 * config/avr/avr-passes.def: New file.
10294 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10295 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10296 (make_avr_pass_recompute_note): New proto.
10297 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10298 (avr_pass_recompute_notes): Use anonymous namespace.
10299 (avr_register_passes): Remove function...
10300 (avr_option_override): ...and its call.
10301
10302 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10303
10304 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10305 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10306 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10307 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10308 flags.
10309 * config/mips/mips.c (mips_option_override): Enable the branch
10310 likely depending on the tune flags and optimization level.
10311 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10312 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10313 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10314 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10315
10316 2016-10-11 Richard Biener <rguenther@suse.de>
10317
10318 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10319 (output_function): Properly stream the whole block tree.
10320 * lto-streamer-in.c (input_function): Likewise.
10321
10322 2016-10-11 Marek Polacek <polacek@redhat.com>
10323
10324 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10325
10326 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10327
10328 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10329 (evrp_dom_walker::before_dom_children): Infer and push new value
10330 ranges for x in y < x.
10331
10332 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10333
10334 PR target/77586
10335 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10336 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10337 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10338 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10339 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10340 (IA64_NO_LIBGCC_TFMODE): Likewise.
10341
10342 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10343
10344 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10345 copying.
10346
10347 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10348
10349 * config.gcc: Add aarch64-*-freebsd* support.
10350 * config.host: Likewise.
10351 * config/aarch64/aarch64-freebsd.h: New file.
10352 * config/aarch64/t-aarch64-freebsd: Ditto.
10353
10354 2016-10-10 Jeff Law <law@redhat.com>
10355
10356 PR tree-optimization/71947
10357 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10358 B with A within a single statement.
10359
10360 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10361
10362 PR tree-optimization/77824
10363 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10364 zero cost for copies.
10365 (find_candidates_dom_walker::before_dom_children): Replace
10366 MODIFY_EXPR with SSA_NAME.
10367 (replace_mult_candidate): Likewise.
10368 (replace_profitable_candidates): Likewise.
10369
10370 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10371
10372 * config/s390/s390.h: Wrap more macros args in brackets and fix
10373
10374 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10375
10376 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10377
10378 2016-10-10 Andreas Schwab <schwab@suse.de>
10379
10380 PR target/77738
10381 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10382 pseudo is not DImode.
10383
10384 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10385
10386 * common/config/arc/arc-common.c (arc_option_optimization_table):
10387 Remove compact casesi option.
10388 * config/arc/arc.c (arc_override_options): Use compact casesi
10389 option only for pre-ARCv2 cores.
10390 * doc/invoke.texi (mcompact-casesi): Update text.
10391
10392 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10393
10394 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10395 Add macro to say we can efficiently handle overlapping unaligned
10396 loads.
10397 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10398 poor code for processors older than p8.
10399
10400 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10401
10402 * gen-pass-instances.awk: Remove GNUism.
10403
10404 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10405
10406 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10407 NULL of (*ipcp_transformations)][node->uid].
10408
10409 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10410
10411 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10412 (MALLOC_ABI_ALIGNMENT): Define.
10413
10414 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10415
10416 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10417 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10418 VAR_OR_FUNCTION_DECL_P macros.
10419 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10420 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10421 chkp_find_bounds_1): Likewise.
10422 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10423 * hsa-gen.c (get_symbol_for_decl): Likewise.
10424 * cgraphunit.c (check_global_declaration, analyze_functions,
10425 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10426 Likewise.
10427 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10428 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10429 Likewise.
10430 * tree.c (set_decl_section_name, copy_node_stat,
10431 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10432 merge_dllimport_decl_attributes, handle_dll_attribute,
10433 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10434 verify_type): Likewise.
10435 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10436 find_explicit_erroneous_behavior): Likewise.
10437 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10438 * ipa.c (process_references): Likewise.
10439 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10440 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10441 notice_global_symbol, assemble_variable, mark_decl_referenced,
10442 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10443 make_decl_one_only, default_section_type_flags,
10444 categorize_decl_for_section, default_encode_section_info): Likewise.
10445 * trans-mem.c (requires_barrier): Likewise.
10446 * gimple-expr.c (mark_addressable): Likewise.
10447 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10448 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10449 expand_debug_expr): Likewise.
10450 * tree-dump.c (dequeue_and_dump): Likewise.
10451 * ubsan.c (instrument_bool_enum_load): Likewise.
10452 * tree-pretty-print.c (print_declaration): Likewise.
10453 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10454 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10455 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10456 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10457 pass_build_ssa::execute): Likewise.
10458 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10459 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10460 Likewise.
10461 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10462 Likewise.
10463 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10464 can_be_nonlocal, remap_decls, copy_debug_stmt,
10465 initialize_inlined_parameters, add_local_variables,
10466 reset_debug_binding, replace_locals_op): Likewise.
10467 * dse.c (can_escape): Likewise.
10468 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10469 Likewise.
10470 * tree-diagnostic.c (default_tree_printer): Likewise.
10471 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10472 unpack_ts_decl_with_vis_value_fields,
10473 lto_input_ts_decl_common_tree_pointers): Likewise.
10474 * builtins.c (builtin_save_expr, fold_builtin_expect,
10475 readonly_data_expr): Likewise.
10476 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10477 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10478 Likewise.
10479 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10480 * gimplify.c (force_constant_size, gimplify_bind_expr,
10481 gimplify_decl_expr, gimplify_var_or_parm_decl,
10482 gimplify_compound_lval, gimplify_init_constructor,
10483 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10484 gimplify_type_sizes): Likewise.
10485 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10486 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10487 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10488 remove_unused_locals): Likewise.
10489 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10490 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10491 * function.c (instantiate_expr, instantiate_decls_1,
10492 setjmp_vars_warning, add_local_decl): Likewise.
10493 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10494 Likewise.
10495 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10496 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10497 optimize_va_list_gpr_fpr_size): Likewise.
10498 * tree-nrv.c (pass_nrv::execute): Likewise.
10499 * tsan.c (instrument_expr): Likewise.
10500 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10501 * vtable-verify.c (verify_bb_vtables): Likewise.
10502 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10503 get_ref_base_and_extent): Likewise.
10504 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10505 Likewise.
10506 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10507 analyze_all_variable_accesses): Likewise.
10508 * tree-nested.c (get_nonlocal_debug_decl,
10509 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10510 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10511 get_local_debug_decl, convert_local_omp_clauses,
10512 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10513 Likewise.
10514 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10515 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10516 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10517 dbxout_symbol, dbxout_common_check): Likewise.
10518 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10519 string_constant): Likewise.
10520 * hsa.c (hsa_get_declaration_name): Likewise.
10521 * passes.c (rest_of_decl_compilation): Likewise.
10522 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10523 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10524 pack_ts_decl_with_vis_value_fields,
10525 write_ts_decl_common_tree_pointers): Likewise.
10526 * stor-layout.c (place_field): Likewise.
10527 * symtab.c (symtab_node::maybe_create_reference,
10528 symtab_node::verify_base, symtab_node::make_decl_local,
10529 symtab_node::copy_visibility_from,
10530 symtab_node::can_increase_alignment_p): Likewise.
10531 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10532 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10533 fortran_common, add_location_or_const_value_attribute,
10534 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10535 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10536 optimize_one_addr_into_implicit_ptr,
10537 optimize_location_into_implicit_ptr): Likewise.
10538 * gimple-low.c (record_vars_into): Likewise.
10539 * ipa-visibility.c (update_vtable_references): Likewise.
10540 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10541 Likewise.
10542 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10543 DFS::DFS_write_tree_body, write_symbol): Likewise.
10544 * langhooks.c (lhd_warn_unused_global_decl,
10545 lhd_set_decl_assembler_name): Likewise.
10546 * attribs.c (decl_attributes): Likewise.
10547 * except.c (output_ttype): Likewise.
10548 * varpool.c (varpool_node::get_create, ctor_for_folding,
10549 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10550 * fold-const.c (fold_unary_loc): Likewise.
10551 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10552 ipa_find_agg_cst_from_init): Likewise.
10553 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10554 expand_omp_target, lower_omp_regimplify_p,
10555 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10556 find_link_var_op): Likewise.
10557 * tree-chrec.c (chrec_contains_symbols): Likewise.
10558 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10559 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10560 execute_fixup_cfg): Likewise.
10561
10562 PR tree-optimization/77901
10563 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10564 if ranges[i].exp is SSA_NAME when looking for >= and only when
10565 ranges[i].exp is NULL or SSA_NAME when looking for the other
10566 comparison.
10567
10568 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10569
10570 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10571 (ipcp_param_lattices): Remove field alignment.
10572 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10573 (set_all_contains_variable): Remove call to
10574 ipcp_alignment_lattice::set_to_bottom.
10575 (initialize_node_lattices): Likewise.
10576 (propagate_alignment_accross_jump_function): Remove.
10577 (propagate_constants_accross_call): Remove call to
10578 propagate_alignment_accross_jump_function.
10579 (ipcp_store_alignment_results): Remove.
10580 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10581 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10582 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10583 pretty-printing of alignment jump function.
10584 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10585 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10586 alignments and remove computing ipa_alignment jump function.
10587 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10588 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10589 (ipa_read_jump_function): Remove reading of ipa_alignment.
10590 (write_ipcp_transformation_info): Remove streaming for alignment
10591 propagation summary.
10592 (read_ipcp_transformation_info): Remove reading of alignment
10593 propagation summary.
10594 (ipcp_update_alignments): Remove.
10595 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10596 type.
10597 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10598 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10599 * ipa-prop.h (ipa_alignment): Remove.
10600 (ipa_jump_func): Remove field alignment.
10601 (ipcp_transformation_summary): Remove field alignments.
10602 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10603 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10604 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10605
10606 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10607
10608 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10609
10610 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10611 change.
10612 (visium_expand_fp_cstore): Likewise.
10613
10614 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10615
10616 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10617 * diagnostic.c (warning_at_rich_loc_n): New function.
10618 (diagnostic_n_impl_richloc): Likewise.
10619 (diagnostic_n_impl): Move most of the function to
10620 diagnostic_n_impl_richloc and call it.
10621
10622 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10623
10624 * gen-pass-instances.awk: Rewritten.
10625 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10626 $(PASSES_EXTRA) after passes.def to the script.
10627 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10628 * config/i386/i386-passes.def: New file.
10629 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10630 make_pass_stv): Declare.
10631 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10632 false.
10633 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10634 or !TARGET_64BIT.
10635 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10636 (pass_stv::timode_p): New non-static data member.
10637 (ix86_option_override): Don't register passes here.
10638
10639 * doc/invoke.texi: Document accepting Else, fallthrough.
10640
10641 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10642 style changes.
10643
10644 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10645 FALLTHRU comment styles.
10646
10647 2016-10-07 Andrew Pinski <apinski@cavium.com>
10648
10649 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10650 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10651 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10652 Likewise.
10653 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10654 Likewise.
10655 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10656 Likewise.
10657 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10658 (AARCH64_ARCH): Likewise.
10659 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10660 Likewise.
10661 (AARCH64_CORE): Likewise.
10662 (AARCH64_ARCH): Likewise.
10663 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10664 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10665 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10666 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10667 (AARCH64_ARCH): Likewise.
10668 (AARCH64_CORE): Likewise.
10669 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10670 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10671 (AARCH64_CORE): Likewise.
10672 (AARCH64_ARCH): Likewise.
10673
10674 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10675
10676 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10677 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10678 floating point type infrastructre, and -mfloat128 that enables the
10679 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10680 if -mfloat128-type. Define __ibm128 to be long double by default.
10681 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10682 the IEEE 128-bit floating point type infrastructure should
10683 automatically be enabled.
10684 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10685 instead of -mfloat128 to enable KFmode.
10686 (rs6000_option_override_internal): Split the option -mfloat128
10687 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10688 systems, automatically set -mfloat128-type, but don't enable it on
10689 other operating systems. Move setting the long double size and
10690 IEEE quad support before the IEEE 128-bit floating point changes.
10691 (rs6000_init_builtins): Do not create a unique type for __ibm128
10692 if long double is IBM extended double, instead rely on __ibm128
10693 being defined as 'long double'. If -mfloat128-type and not
10694 -mfloat128, create the KFmode type with an undocumented __ieee128
10695 keyword.
10696 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10697 -mfloat128 for tests about the types, but keep tests for
10698 -mfloat128 to enable the keyword support.
10699 (rs6000_complex_function_value): Likewise.
10700 (rs6000_scalar_mode_supported_p): Likewise.
10701 (rs6000_floatn_mode): Likewise.
10702 (rs6000_c_mode_for_suffix): Likewise.
10703 (rs6000_opt_masks): Add -mfloat128-type.
10704 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10705 -mfloat128-type being split from -mfloat128. Add
10706 -mfloat128-hardware, which was missing.
10707 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10708 -mfloat128 and -mfloat128-type:
10709 (-mfloat128-type): Likewise.
10710 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10711 that 64-bit Linux systems with enable -mfloat128-type by default
10712 on VSX systems.
10713 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10714 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10715 -mfloat128-type instead of -mfloat128.
10716 (FLOAT128_2REG_P): Likewise.
10717 (MASK_FLOAT128_TYPE): Likewise.
10718 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10719 (RS6000_BTM_FLOAT128): Likewise.
10720 (TARGET_FLOAT128): Poison old identifiers.
10721 (OPTION_MASK_FLOAT128): Likewise.
10722 (MASK_FLOAT128): Likewise.
10723 * config/rs6000/rs6000.md (FP): Likewise.
10724 (FLOAT128): Likewise.
10725 (fix_trunc<mode>di2): Likewise.
10726 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10727 (floatdi<mode>2): Likewise.
10728 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10729 (neg<mode>2, FLOAT128 iterator): Likewise.
10730 (abs<mode>2, FLOAT128 iterator): Likewise.
10731 (ieee_128bit_negative_zero): Likewise.
10732 (ieee_128bit_vsx_neg<mode>2): Likewise.
10733 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10734 (ieee_128bit_vsx_abs<mode>2): Likewise.
10735 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10736 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10737 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10738 (extendiftf2): Likewise.
10739 (extendifkf2): Likewise.
10740 (extendtfkf2): Likewise.
10741 (trunciftf2): Likewise.
10742 (truncifkf2): Likewise.
10743 (trunckftf2): Likewise.
10744 (trunctfif2): Likewise.
10745 (extendkftf2): Likewise.
10746 (trunctfkf2): Likewise.
10747
10748 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10749
10750 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10751 before merging in bytes to pass down to real_from_target.
10752
10753 2016-10-07 Richard Biener <rguenther@suse.de>
10754
10755 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10756 required hack.
10757 (substitute_and_fold_dom_walker::before_dom_children):
10758 Substitute and fold before pass specific folding to avoid
10759 feeding that with SSA names that will be later released.
10760 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10761 introduced by folding and visited by evaluate_stmt called during
10762 ccp_fold_stmt.
10763 (likely_value): Likewise.
10764 (evaluate_stmt): Likewise.
10765 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10766 (simplify_div_or_mod_using_ranges): Likewise.
10767 (simplify_min_or_max_using_ranges): Likewise.
10768 (simplify_abs_using_ranges): Likewise.
10769 (simplify_conversion_using_ranges): Likewise.
10770 (simplify_float_conversion_using_ranges): Likewise.
10771 (simplify_stmt_using_ranges): Likewise.
10772
10773 2016-10-07 Marek Polacek <polacek@redhat.com>
10774
10775 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10776 FALLTHROUGH_LABEL_P here...
10777 (warn_implicit_fallthrough_r): ...not here.
10778
10779 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10780
10781 PR tree-optimization/77880
10782 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10783 necessary.
10784
10785 2016-10-07 Marek Polacek <polacek@redhat.com>
10786
10787 PR c++/77803
10788 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10789
10790 2016-10-07 Richard Biener <rguenther@suse.de>
10791
10792 * bitmap.h: Document constraints on bitmap modification while
10793 iterating over it.
10794
10795 2016-10-07 Richard Biener <rguenther@suse.de>
10796
10797 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10798 * bitmap.h (bmp_iter_set): When advancing to the next element
10799 check that we didn't remove the current one.
10800 (bmp_iter_and): Likewise.
10801 (bmp_iter_and_compl): Likewise.
10802 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10803 we currently iterate on but keep a one-level queue.
10804 * sched-deps.c (remove_from_deps): Do not clear current bit
10805 but keep a one-level queue.
10806
10807 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10808
10809 PR tree-optimization/77664
10810 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10811 for the other ranges.
10812 (optimize_range_tests_diff): Fix up formatting.
10813 (optimize_range_tests_var_bound): New function.
10814 (optimize_range_tests): Use it.
10815
10816 2016-10-07 Martin Liska <mliska@suse.cz>
10817
10818 * coverage.c (build_gcov_exit_decl): Fix priority what
10819 should be really 99.
10820
10821 2016-10-07 Richard Biener <rguenther@suse.de>
10822
10823 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10824 vars in gimple_bind_vars but not in BLOCK_VARS.
10825
10826 2016-10-07 Richard Biener <rguenther@suse.de>
10827
10828 PR tree-optimization/77879
10829 * tree-ssa-structalias.c (handle_const_call): Properly handle
10830 NRV return slots.
10831 (handle_pure_call): Likewise.
10832
10833 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10834
10835 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10836 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10837 possible overflow.
10838
10839 2016-10-06 Andrew Pinski <apinski@cavium.com>
10840
10841 * config/aarch64/aarch64-cores.def: Add a comment before each
10842 set of cores.
10843
10844 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10845
10846 PR tree-optimization/77862
10847 * tree-vrp.c (add_equivalence): Use get_value_range so that
10848 num_vr_values is checked before accessing vr_values.
10849
10850 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10851
10852 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10853 POINTER_TYPE_P.
10854
10855 2016-10-05 Jeff Law <law@redhat.com>
10856
10857 PR tree-optimization/71661
10858 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10859 removal of a forwarder exposes a new natural loop.
10860
10861 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10862
10863 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10864 Introduce ssesuffix variable.
10865 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10866 (*<code><mode>3): Ditto.
10867
10868 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10869
10870 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10871 noop move.
10872
10873 2016-10-06 Richard Biener <rguenther@suse.de>
10874
10875 PR tree-optimization/77855
10876 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10877 instead of removing the current item while iterating over the set
10878 which is not safe.
10879
10880 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10881 Eric Botcazou <ebotcazou@adacore.com>
10882
10883 PR target/77759
10884 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10885 (classify_registers): Don't set it
10886 (function_arg_slotno): Don't initialize and test it. Tidy up.
10887
10888 2016-10-06 Richard Biener <rguenther@suse.de>
10889
10890 PR tree-optimization/77839
10891 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10892 lattice transition.
10893
10894 2016-10-06 Martin Liska <mliska@suse.cz>
10895
10896 * gcc.c: Set -fprofile-update=atomic when profiling is
10897 enabled and -pthread is set. Warn when one combines
10898 -pthread and -fprofile-update=single for an app using
10899 profiling code.
10900
10901 2016-10-06 Martin Liska <mliska@suse.cz>
10902
10903 PR bootstrap/77788
10904 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10905 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10906 Initialize a pointer to NULL.
10907 (slsr_process_copy): Likewise.
10908 * input.c (location_get_source_line): Likewise.
10909 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10910
10911 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10912
10913 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10914 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10915 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10916 * config.gcc: Deleted pcommitintrin.h
10917 * config/i386/pcommitintrin.h: Deleted file.
10918 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10919 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10920 detection.
10921 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10922 __PCOMMIT__.
10923 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10924 (PTA_PCOMMIT): Deleted define.
10925 (ix86_option_override_internal): Deleted handle of option.
10926 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10927 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10928 __builtin_ia32_pcommit): Deleted.
10929 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10930 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10931 (pcommit): Deleted instruction.
10932 * config/i386/i386.opt: Mention -mpcommit deprecation.
10933 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10934
10935 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10936
10937 PR target/77874
10938 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10939 Remove wrong assert.
10940 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10941 Use <round_constraint> as operand 1 constraint.
10942
10943 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10944
10945 PR sanitizer/66343
10946 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10947 (ubsan_instrument_float_cast): And not here.
10948
10949 PR sanitizer/66343
10950 * ubsan.c (ubsan_ids): New GTY(()) array.
10951 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
10952 instead of static local counters.
10953
10954 2016-10-05 Martin Sebor <msebor@redhat.com>
10955
10956 PR bootstrap/77819
10957 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
10958 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
10959 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
10960 (default_printf_pointer_format): Define function.
10961 * targhooks.c (linux_printf_pointer_format): Define new function.
10962 * targhooks.h (linux_printf_pointer_format): Declare.
10963 (gnu_libc_printf_pointer_format): Remove declaration.
10964
10965 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10966
10967 * fold-const.c (native_encode_real): Fix logic for selecting offset
10968 to write to when BYTES_BIG_ENDIAN.
10969
10970 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
10971
10972 * builtins.c (fold_builtin_strchr): Remove function.
10973 (fold_builtin_strrchr): Likewise.
10974 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
10975 * gimple-fold.c (target_char_cst_p): New function.
10976 (gimple_fold_builtin_strchr) Add more foldings.
10977 (gimple_fold_builtin): Add index, strrchr, rindex cases.
10978
10979 2016-10-05 Richard Biener <rguenther@suse.de>
10980
10981 PR middle-end/77863
10982 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
10983 capture ids in c-exprs.
10984
10985 2016-10-05 Richard Biener <rguenther@suse.de>
10986
10987 PR middle-end/77826
10988 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
10989 with types_match for GIMPLE code gen to handle type mismatched
10990 constants properly.
10991 (dt_operand::gen): Adjust.
10992 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
10993 and constant A.
10994
10995 2016-10-05 Richard Biener <rguenther@suse.de>
10996
10997 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
10998
10999 2016-10-05 Richard Biener <rguenther@suse.de>
11000
11001 PR middle-end/77842
11002 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
11003
11004 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
11005
11006 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
11007 version check to protect only DW_TAG_imported_module generation.
11008
11009 2016-10-05 Richard Biener <rguenther@suse.de>
11010
11011 PR middle-end/55152
11012 * match.pd (min(a,-a) -> -abs(a)): New pattern.
11013
11014 2016-10-04 Ian Lance Taylor <iant@golang.org>
11015
11016 * explow.c (allocate_dynamic_stack_space): Call
11017 do_pending_stack_adjust before handling flag_split_stack.
11018
11019 2016-10-04 David Malcolm <dmalcolm@redhat.com>
11020
11021 * genattrtab.c (make_internal_attr): Supply dummy column number to
11022 file_location ctor.
11023 (main): Likewise.
11024 * genoutput.c (init_insn_for_nothing): Likewise.
11025 * gensupport.c (add_define_attr): Likewise.
11026 * read-md.c (message_at_1): Print column number.
11027 (fatal_with_file_and_line): Likewise.
11028 (rtx_reader::read_char): Track column numbers.
11029 (rtx_reader::unread_char): Likewise.
11030 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11031 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11032 (rtx_reader::handle_file): Initialize m_read_md_colno.
11033 (rtx_reader::get_current_location): Supply column number to
11034 file_location ctor.
11035 * read-md.h (struct file_location): Add field "colno".
11036 (file_location::file_location): Likewise.
11037 (rtx_reader::get_colno): New accessor.
11038 (rtx_reader::m_read_md_colno): New field.
11039 (rtx_reader::m_last_line_colno): New field.
11040
11041 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11042
11043 * doc/extend.texi (Java Exceptions): Remove.
11044 (java_interface): Remove.
11045
11046 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
11047
11048 PR tree-optimization/77808
11049 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11050 and addr are different before copying points-to information.
11051
11052 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11053
11054 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11055 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11056 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11057 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11058
11059 2016-10-04 Richard Biener <rguenther@suse.de>
11060
11061 PR tree-optimization/77399
11062 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11063 verify the target can convert.
11064
11065 2016-10-04 Richard Biener <rguenther@suse.de>
11066
11067 PR middle-end/77833
11068 * explow.c (plus_constant): Verify the mode of the constant
11069 pool offset before calling plus_constant.
11070
11071 2016-10-04 Richard Biener <rguenther@suse.de>
11072
11073 PR middle-end/77407
11074 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11075 type support, mark with :C.
11076 (X / -X -> -1): Mark with :C.
11077
11078 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11079
11080 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11081 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11082 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11083 * doc/tm.texi: Regenerated.
11084 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11085 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11086 * config/darwin.h (JCR_SECTION_NAME): Remove.
11087 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11088 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11089 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11090 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11091 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11092 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11093
11094 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11095
11096 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11097 between "because" and "param" in dump message in call to fprintf.
11098
11099 2016-10-03 Jeff Law <law@redhat.com>
11100
11101 PR tree-optimization/71550
11102 PR tree-optimization/71403
11103 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11104 (profitable_jump_thread_path): Also return boolean indicating if
11105 the realized path will create an irreducible loop.
11106 Remove loop depth tests from 71403.
11107 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11108 from 71403. If threading will create an irreducible loop, then
11109 throw away loop iteration and related information.
11110
11111 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11112
11113 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11114 -Woverloaded-virtual checks for warning options.
11115 * configure: Regenerate.
11116
11117 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11118
11119 PR preprocessor/77699
11120 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11121 (get_next_line): Return false on error.
11122 (read_next_line): Removed, use get_next_line instead.
11123 (read_line_num): Don't copy the line.
11124 (location_get_source_line): Don't use static data.
11125 (selftest::test_reading_source_line): Add more test cases.
11126
11127 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11128
11129 Revert
11130 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11131
11132 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11133 (noce_process_if_block): Use it.
11134
11135 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11136
11137 * doc/invoke.texi: Update -Wint-in-bool-context.
11138
11139 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11140
11141 * dwarf2out.c (output_fde, output_call_frame_info,
11142 dwarf2out_do_cfi_startproc, set_indirect_string,
11143 gen_internal_sym, output_die, output_line_info): Use
11144 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11145 ASM_GENERATE_INTERNAL_LABEL output.
11146
11147 2016-10-01 Richard Biener <rguenther@suse.de>
11148
11149 PR middle-end/77798
11150 * genmatch.c (get_operand_type): Add operand position arg
11151 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11152 (expr::gen_transform): Adjust.
11153 (dt_simplify::gen_1): Likewise.
11154
11155 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11156
11157 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11158 comments. Simplify asserts, remove unnecessary conditions.
11159 Formatting fixes.
11160 (*<code><mode>3): Likewise.
11161
11162 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11163
11164 * doc/invoke.texi (-Wregister): Document.
11165
11166 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11167
11168 * configure.ac: Split CHECKING_P into CHECKING_P and
11169 ENABLE_EXTRA_CHECKING.
11170 * configure: Regenerated.
11171 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11172 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11173
11174 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11175
11176 PR other/31566
11177 * gcc.c (process_command): For @filename handling, output
11178 the correct name if the file does not exist.
11179
11180 2016-09-30 Marek Polacek <polacek@redhat.com>
11181
11182 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11183 * config/alpha/predicates.md: Likewise.
11184
11185 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11186
11187 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11188 (noce_process_if_block): Use it.
11189
11190 2016-09-30 Martin Liska <mliska@suse.cz>
11191
11192 * doc/invoke.texi: Document asan-use-after-return that
11193 it's disabled by default in runtime.
11194
11195 2016-09-30 Richard Biener <rguenther@suse.de>
11196
11197 * tree-vrp.c (intersect_ranges): If we failed to handle
11198 the intersection choose a constant singleton range if available.
11199
11200 2016-09-30 Richard Biener <rguenther@suse.de>
11201
11202 PR tree-optimization/77399
11203 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11204 float <-> int conversions.
11205
11206 2016-09-30 Alan Modra <amodra@gmail.com>
11207
11208 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11209
11210 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11211
11212 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11213 ext_level before calling CPUID with 0x80000008.
11214 Simplify xgetbv checks.
11215
11216 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11217
11218 * Makefile.in (OBJS): Add print-rtl-function.o.
11219 * print-rtl-function.c: New file.
11220 * print-rtl.h (print_rtx_function): New decl.
11221
11222 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11223
11224 PR target/77756
11225 * config/i386/cpuid.h (__get_cpuid_count): New.
11226 (__get_cpuid): Rename __level to __leaf.
11227
11228 2016-09-29 Marek Polacek <polacek@redhat.com>
11229
11230 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11231
11232 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11233
11234 PR target/77718
11235 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11236 result is only being compared with zero.
11237
11238 2016-09-29 Marek Polacek <polacek@redhat.com>
11239
11240 * dwarf2out.c (loc_descriptor): Add fall through comment.
11241 (add_const_value_attribute): Likewise.
11242
11243 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11244
11245 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11246 with "v6t2". Move "arch" attribute above "pool_range".
11247 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11248 with "v6t2".
11249 (*thumb2_movhi_vfp): Likewise.
11250 (*arm_movhi_fp16): Likewise.
11251 (*thumb2_movhi_fp16): Likewise.
11252 (*arm_movsi_vfp): Remove "arch" attribute.
11253 (*thumb2_movsi_vfp): Likewise.
11254
11255 2016-09-29 Martin Liska <mliska@suse.cz>
11256
11257 * doc/extend.texi: Remove limitation of Objective C for
11258 __attribute__((constructor)) and __attribute__((destructor)).
11259
11260 2016-09-29 Richard Biener <rguenther@suse.de>
11261
11262 PR tree-optimization/77768
11263 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11264 Handle stores to readonly memory when removing redundant stores.
11265
11266 2016-09-29 Richard Biener <rguenther@suse.de>
11267
11268 PR middle-end/77407
11269 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11270 X / -X -> -1 simplifications.
11271
11272 2016-09-29 Richard Biener <rguenther@suse.de>
11273
11274 PR middle-end/55152
11275 * match.pd: Add max(a,-a) -> abs(a) pattern.
11276 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11277 HONOR_SIGNED_ZEROS types.
11278
11279 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11280
11281 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11282 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11283
11284 2016-09-29 Richard Biener <rguenther@suse.de>
11285
11286 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11287 writing to vr_const_varying.
11288 (vrp_initialize): Call it.
11289 (vrp_visit_stmt): Likewise.
11290 (evrp_dom_walker::before_dom_children): Likewise.
11291
11292 2016-09-29 Richard Biener <rguenther@suse.de>
11293
11294 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11295 constructors with vector elements.
11296
11297 2016-09-29 Richard Biener <rguenther@suse.de>
11298
11299 PR tree-optimization/77768
11300 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11301 with stores to a place we know has a constant value.
11302
11303 2016-09-29 Alan Modra <amodra@gmail.com>
11304
11305 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11306 * doc/invoke.texi: Document it.
11307 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11308 (rs6000_passes_float): Comment.
11309 (rs6000_passes_long_double): New static var.
11310 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11311 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11312 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11313 to include fp values returned in vectors.
11314 Set rs6000_passes_long_double.
11315 (rs6000_function_arg_advance_1): Likewise for function args.
11316 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11317 and SPE. Emit long double tag value too.
11318 (rs6000_opt_vars): Add gnu-attr.
11319 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11320 * configure: Regenerate.
11321 * config.in: Regenerate.
11322
11323 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11324
11325 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11326 of 0 < x.
11327 (format_floating, format_string, format_directive,
11328 get_destination_size, pass_sprintf_length::handle_gimple_call):
11329 Likewise.
11330
11331 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11332
11333 * gimple-ssa-sprintf.c: Fix comment formatting.
11334 (format_integer): Use is_gimple_assign.
11335 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11336 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11337 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11338 (pass_sprintf_length::execute): Use is_gimple_call.
11339
11340 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11341
11342 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11343 strchr, also try the generic folding.
11344
11345 2016-09-28 Martin Sebor <msebor@redhat.com>
11346
11347 PR c/77762
11348 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11349 Fix typos.
11350
11351 2016-09-28 Martin Sebor <msebor@redhat.com>
11352
11353 PR middle-end/77683
11354 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11355 length modifier is not expected.
11356 (format_floating): Ignore l length modifier and fail gracefuly
11357 when it isn't one of the other expected ones.
11358
11359 2016-09-28 Martin Sebor <msebor@redhat.com>
11360
11361 PR bootstrap/77753
11362 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11363
11364 2016-09-27 Richard Biener <rguenther@suse.de>
11365
11366 * dwarf2out.c (cu_die_list): New global.
11367 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11368 main_comp_unit_die to cu_die_list if we created it.
11369 Move break_out_includes ...
11370 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11371 the cu_die_list.
11372
11373 2016-09-28 Richard Biener <rguenther@suse.de>
11374
11375 * dwarf2out.c (struct die_struct): Add removed flag.
11376 (lookup_type_die): If the DIE is marked as removed, clear
11377 TYPE_SYMTAB_DIE and return NULL.
11378 (lookup_decl_die): If the DIE is marked as removed, remove it
11379 from the hash and return NULL.
11380 (mark_removed): New helper.
11381 (prune_unused_types_prune): Call it for removed DIEs.
11382 (gen_subprogram_die): Move the premark_used_types call to after
11383 DIEs for the functions scopes are generated.
11384 (process_scope_var): Do not re-create pruned types or type decls.
11385 Make sure to also re-parent type decls.
11386 (dwarf2out_finish): Move unused type pruning and debug_types
11387 handling ...
11388 (dwarf2out_early_finish): ... here.
11389
11390 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11391
11392 * config/arc/arc-c.c: New file.
11393 * config/arc/arc-c.def: Likewise.
11394 * config/arc/t-arc: Likewise.
11395 * config.gcc: Include arc-c.o as c and cpp object.
11396 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11397 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11398 arc_cpu_cpp_builtins.
11399
11400 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11401
11402 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11403 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11404
11405 2016-09-28 Nathan Sidwell <nathan@acm.org>
11406
11407 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11408 printing.
11409
11410 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11411
11412 PR tree-optimization/61056
11413 * gimple-fold.c (gimple_fold_builtin_strchr):
11414 New function to optimize strchr (s, 0) to strlen.
11415 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11416
11417 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11418
11419 PR tree-optimization/77724
11420 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11421 Add tree_fits_shwi_p check.
11422
11423 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11424
11425 * auto-inc-dec.c (try_merge): Remove break after return.
11426 * cselib.c (autoinc_split): Likewise.
11427 * explow.c (promote_mode): Likewise.
11428 * fixed-value.c (fixed_arithmetic): Likewise.
11429 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11430 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11431 * trans-mem.c (get_attrs_for): Likewise.
11432 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11433 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11434 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11435 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11436 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11437 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11438 * config/cris/cris.c (cris_op_str): Likewise.
11439 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11440 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11441
11442 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11443
11444 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11445 IFN_GOACC_REDUCTION_CODES): New.
11446 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11447 ifn_goacc_reduction_kind): Use them.
11448 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11449 of internal functions, when applicable.
11450
11451 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11452
11453 * config/mips/constraints.md (d): Fix documentation.
11454 * doc/md.texi (Machine Constraints): Update accordingly.
11455
11456 2016-09-27 Richard Biener <rguenther@suse.de>
11457
11458 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11459 cur_line_info_table initialization ...
11460 (dwarf2out_assembly_start): ... here.
11461
11462 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11463
11464 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11465 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11466 (*thumb2_movhi_vfp): Likewise.
11467 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11468 template. Expand predicable attribute to mark VMOV.F16 as not
11469 predicable. Add "arch" attribute.
11470 (*thumb2_movhi_fp16): Likewise.
11471 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11472 (*thumb2_movsi_vfp): Add "arch" attribute.
11473
11474 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11475
11476 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11477 VAR_DECL string.
11478
11479 2016-09-27 Marek Polacek <polacek@redhat.com>
11480
11481 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11482 comment.
11483
11484 * config/c6x/c6x.h: Adjust fall through comment.
11485 * config/sh/sh.c (final_prescan_insn): Likewise.
11486 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11487 (visium_expand_fp_cstore): Likewise.
11488
11489 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11490
11491 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11492 expected by -Wimplicit-fallthrough.
11493 (thumb1_size_rtx_costs): Likewise.
11494 (thumb2_reorg): Likewise.
11495 (tls_mentioned_p): Add "Fall through" comment.
11496 (thumb2_reorg): Likewise.
11497 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11498 comment form expected by -Wimplicit-fallthrough.
11499
11500 2016-09-27 Martin Liska <mliska@suse.cz>
11501
11502 PR gcov-profile/46266
11503 * input.h (RESERVED_LOCATION_P): New macro.
11504 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11505 instread of comparison with UNKNOWN_LOCATION.
11506
11507 2016-09-27 Richard Biener <rguenther@suse.de>
11508
11509 PR tree-optimization/77745
11510 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11511 When removing redundant stores make sure to check compatibility
11512 of the TBAA state for downstream accesses.
11513 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11514 value-numbering virtual operands for store matches.
11515
11516 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11517
11518 PR target/51244
11519 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11520 movrt patterns. Match them before anything else in the SET case.
11521
11522 2016-09-27 Martin Liska <mliska@suse.cz>
11523
11524 PR gcov-profile/7970
11525 PR gcov-profile/16855
11526 PR gcov-profile/44779
11527 * coverage.c (build_gcov_exit_decl): New function.
11528 (coverage_obj_init): Call the function and generate __gcov_exit
11529 destructor.
11530 * doc/gcov.texi: Document when __gcov_exit function is called.
11531
11532 2016-09-27 Marek Polacek <polacek@redhat.com>
11533
11534 PR bootstrap/77751
11535 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11536 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11537 -Wno-error instead of -Wno-implicit-fallthrough.
11538
11539 2016-09-27 Martin Liska <mliska@suse.cz>
11540
11541 PR bootstrap/77749
11542 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11543
11544 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11545
11546 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11547 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11548 comments. Remove break after return.
11549 (ix86_fp_compare_code_to_integer, has_dispatch,
11550 ix86_simd_clone_usable): Remove break after return.
11551
11552 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11553
11554 PR rlt-optimization/77714
11555 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11556 REG_EQUAL note.
11557
11558 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11559
11560 PR ipa/77677
11561 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11562 extract_range_from_unary_expr to convert value_range.
11563 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11564 (extract_range_from_unary_expr): This.
11565 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11566
11567 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11568
11569 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11570
11571 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11572
11573 * config/i386/i386.c (ix86_print_operand)
11574 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11575 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11576 (epilogue_renumber): Likewise.
11577
11578 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11579
11580 PR middle-end/77719
11581 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11582 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11583
11584 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11585
11586 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11587 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11588 is_mm_seq_cst, is_mm_sync): Move to ...
11589 * memmodel.h: This. New file.
11590 * builtins.c: Include memmodel.h.
11591 * optabs.c: Likewise.
11592 * tsan.c: Likewise.
11593 * config/aarch64/aarch64.c: Likewise.
11594 * config/alpha/alpha.c: Likewise.
11595 * config/arm/arm.c: Likewise.
11596 * config/i386/i386.c: Likewise.
11597 * config/ia64/ia64.c: Likewise.
11598 * config/mips/mips.c: Likewise.
11599 * config/rs6000/rs6000.c: Likewise.
11600 * config/sparc/sparc.c: Likewise.
11601 * genconditions.c: Include memmodel.h in generated file.
11602 * genemit.c: Likewise.
11603 * genoutput.c: Likewise.
11604 * genpeep.c: Likewise.
11605 * genpreds.c: Likewise.
11606 * genrecog.c: Likewise.
11607
11608 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11609
11610 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11611 "c" instead when parsing characters. Move operand parsing into...
11612 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11613 and tightening the scope of various locals.
11614
11615 2016-09-26 Liu Hao <lh_mouse@126.com>
11616
11617 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11618
11619 2016-09-26 Marek Polacek <polacek@redhat.com>
11620
11621 * system.h: Use __has_attribute to check whether the fallthrough
11622 attribute is supported.
11623
11624 2016-09-26 Marek Polacek <polacek@redhat.com>
11625
11626 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11627 gimple_call_internal_p.
11628 * ipa-split.c (find_return_bb): Likewise.
11629 (execute_split_functions): Likewise.
11630 * omp-low.c (dump_oacc_loop_part): Likewise.
11631 (oacc_loop_xform_head_tail): Likewise.
11632 * predict.c (predict_loops): Likewise.
11633 * sanopt.c (pass_sanopt::execute): Likewise.
11634 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11635 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11636 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11637 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11638 (expand_ifn_va_arg): Likewise.
11639 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11640 (optimize_mask_stores): Likewise.
11641 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11642 (vect_transform_stmt): Likewise.
11643 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11644 * tsan.c (instrument_memory_accesses): Likewise.
11645
11646 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11647 Alexander Monakov <amonakov@ispras.ru>
11648
11649 * regrename.c (rename_chains): Check
11650 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11651 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11652 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11653
11654 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11655
11656 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11657 (s390_sched_score): Likewise.
11658
11659 2016-09-26 Martin Liska <mliska@suse.cz>
11660
11661 * doc/gcov.texi: Update program output of gcov tool.
11662
11663 2016-09-26 Martin Liska <mliska@suse.cz>
11664
11665 PR gcov-profile/23332
11666 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11667 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11668 * value-prof.c (dump_histogram_value): Do not handle
11669 HIST_TYPE_CONST_DELTA.
11670 (stream_in_histogram_value): Likewise.
11671 (gimple_find_values_to_profile): Likewise.
11672 * value-prof.h (enum hist_type): Likewise.
11673
11674 2016-09-26 Martin Liska <mliska@suse.cz>
11675
11676 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11677 from default sanitize recover values.
11678 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11679 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11680 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11681 consistent.
11682 * opts.c (finish_options): Do a generic loop over options
11683 that can be recovered.
11684 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11685 SANITIZE_RETURN.
11686 (common_handle_option): Likewise.
11687 * opts.h: Declare can_recover to sanitizer_opts_s.
11688
11689 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11690
11691 * target.def(elf_flags_numeric): Change documentation to present tense.
11692 * doc/tm.texi: Regenerate.
11693
11694 2016-09-26 Marek Polacek <polacek@redhat.com>
11695
11696 PR c/7652
11697 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11698 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11699 -Wno-switch-fallthrough.
11700 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11701 (expand_builtin): Likewise.
11702 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11703 * convert.c (convert_to_real_1): Likewise.
11704 (convert_to_integer_1): Likewise.
11705 * final.c (output_alternate_entry_point): Likewise.
11706 * genattrtab.c (make_canonical): Likewise.
11707 (write_test_expr): Likewise.
11708 * genpreds.c (validate_exp): Likewise.
11709 * gimple-ssa-strength-reduction.c
11710 (find_candidates_dom_walker::before_dom_children): Likewise.
11711 * godump.c (go_format_type): Likewise.
11712 * reload1.c (elimination_effects): Likewise.
11713 * resource.c (mark_referenced_resources): Likewise.
11714 (mark_set_resources): Likewise.
11715 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11716 * varasm.c (output_addressed_constants): Likewise.
11717
11718 2016-09-26 Marek Polacek <polacek@redhat.com>
11719
11720 PR c/7652
11721 * common.opt (Wimplicit-fallthrough): New option.
11722 * doc/extend.texi: Document statement attributes and the fallthrough
11723 attribute.
11724 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11725 * gimple.h (gimple_call_internal_p): New function.
11726 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11727 (struct label_entry): New struct.
11728 (find_label_entry): New function.
11729 (case_label_p): New function.
11730 (collect_fallthrough_labels): New function.
11731 (last_stmt_in_scope): New function.
11732 (should_warn_for_implicit_fallthrough): New function.
11733 (warn_implicit_fallthrough_r): New function.
11734 (maybe_warn_implicit_fallthrough): New function.
11735 (expand_FALLTHROUGH_r): New function.
11736 (expand_FALLTHROUGH): New function.
11737 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11738 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11739 (gimplify_label_expr): New function.
11740 (gimplify_case_label_expr): Set location.
11741 (gimplify_expr): Call gimplify_label_expr.
11742 * internal-fn.c (expand_FALLTHROUGH): New function.
11743 * internal-fn.def (FALLTHROUGH): New internal function.
11744 * langhooks.c (lang_GNU_OBJC): New function.
11745 * langhooks.h (lang_GNU_OBJC): Declare.
11746 * system.h (gcc_fallthrough): Define.
11747 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11748 * tree.h (FALLTHROUGH_LABEL_P): Define.
11749
11750 2016-09-26 Richard Biener <rguenther@suse.de>
11751
11752 * dwarf2out.c (stripattributes): Remove unused function.
11753 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11754 Push dwarf_split_debug_info handling into init_sections_and_labels.
11755 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11756 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11757 (debug_macinfo_section_name): New global.
11758 (output_macinfo): Use debug_macinfo_section_name.
11759 (init_sections_and_labels): Split out section and label generation
11760 from dwarf2out_init. Set debug_macinfo_section_name.
11761 (dwarf2out_init): Move text section label generation and emission
11762 to ...
11763 (dwarf2out_assembly_start): ... here.
11764 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11765 output starts.
11766
11767 2016-09-26 Richard Biener <rguenther@suse.de>
11768
11769 PR debug/77692
11770 * cgraphunit.c (analyze_functions): Before early removing
11771 global vars calls the late_global_decl debug handler mark
11772 the variable as readonly.
11773
11774 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11775
11776 PR target/51244
11777 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11778 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11779 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11780 declare new overloads.
11781 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11782 operand.
11783
11784 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11785
11786 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11787 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11788
11789 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11790
11791 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11792 * configure: Regenerate.
11793
11794 2016-09-24 Marek Polacek <polacek@redhat.com>
11795
11796 PR c/77490
11797 * doc/invoke.texi: Document -Wbool-operation.
11798
11799 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11800
11801 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11802 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11803 cmpmemsi pattern to do builtin expansion of memcmp ().
11804 (compute_current_alignment): Add helper function for
11805 expand_block_compare used to compute alignment as the compare proceeds.
11806 (select_block_compare_mode): Used by expand_block_compare to select
11807 the mode used for reading the next chunk of bytes in the compare.
11808 (do_load_for_compare): Used by expand_block_compare to emit the load
11809 insns for the compare.
11810 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11811 reference from expand_block_compare ().
11812 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11813 prototype for this function.
11814 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11815 target option for controlling how much code inline expansion of
11816 memcmp() will be allowed to generate.
11817
11818 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11819
11820 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11821 hook_bool_mode_false, hook_bool_mode_true,
11822 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11823 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11824 hook_bool_const_rtx_insn_const_rtx_insn_true,
11825 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11826 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11827 hook_bool_const_tree_hwi_hwi_const_tree_false,
11828 hook_bool_const_tree_hwi_hwi_const_tree_true,
11829 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11830 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11831 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11832 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11833 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11834 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11835 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11836 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11837 hook_bool_uintp_uintp_false,
11838 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11839 hook_rtx_tree_int_null, hook_uint_mode_0,
11840 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11841 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11842 hook_constcharptr_const_rtx_insn_null,
11843 hook_constcharptr_const_tree_const_tree_null,
11844 hook_constcharptr_int_const_tree_null,
11845 hook_constcharptr_int_const_tree_const_tree_null,
11846 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11847 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11848 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11849
11850 * vec.h (vNULL): Extend comment to say = vNULL initialization
11851 isn't needed for static vars.
11852
11853 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11854 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11855 = vNULL initialization of file scope vec.
11856 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11857 disabled_pass_uid_range_tab): Likewise.
11858 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11859 * tree-chkp-opt.c (check_infos): Likewise.
11860 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11861
11862 * vec.h (vnull::operator vec): Add constexpr keyword for
11863 C++11 and later.
11864
11865 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11866
11867 PR tree-optimization/77654
11868 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11869 to duplicate_ssa_name_ptr_info.
11870
11871 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11872
11873 PR preprocessor/77672
11874 * input.c (selftest::test_lexer_string_locations_simple): Update
11875 test to expect location information of the terminator character
11876 at the location of the final closing quote.
11877 (selftest::test_lexer_string_locations_hex): Likewise.
11878 (selftest::test_lexer_string_locations_oct): Likewise.
11879 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11880 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11881 (selftest::test_lexer_string_locations_ucn4): Likewise.
11882 (selftest::test_lexer_string_locations_ucn8): Likewise.
11883 (selftest::test_lexer_string_locations_u8): Likewise.
11884 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11885 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11886 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11887 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11888 (selftest::test_lexer_string_locations_macro): Likewise.
11889 (selftest::test_lexer_string_locations_long_line): Likewise.
11890
11891 2016-09-23 Richard Biener <rguenther@suse.de>
11892
11893 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11894 virtual definition to virtual use if the call devirtualizes
11895 to a const or pure function.
11896 (visit_use): Also visit calls we can devirtualize to a
11897 const or pure function.
11898
11899 2016-09-23 Richard Biener <rguenther@suse.de>
11900
11901 PR tree-optimization/77697
11902 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11903 signal error if we have sth ternary or unhandled.
11904
11905 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11906
11907 * config/arm/arm_neon.h (vabd_f16): New.
11908 (vabdq_f16): New.
11909 (vabs_f16): New.
11910 (vabsq_f16): New.
11911 (vadd_f16): New.
11912 (vaddq_f16): New.
11913 (vcage_f16): New.
11914 (vcageq_f16): New.
11915 (vcagt_f16): New.
11916 (vcagtq_f16): New.
11917 (vcale_f16): New.
11918 (vcaleq_f16): New.
11919 (vcalt_f16): New.
11920 (vcaltq_f16): New.
11921 (vceq_f16): New.
11922 (vceqq_f16): New.
11923 (vceqz_f16): New.
11924 (vceqzq_f16): New.
11925 (vcge_f16): New.
11926 (vcgeq_f16): New.
11927 (vcgez_f16): New.
11928 (vcgezq_f16): New.
11929 (vcgt_f16): New.
11930 (vcgtq_f16): New.
11931 (vcgtz_f16): New.
11932 (vcgtzq_f16): New.
11933 (vcle_f16): New.
11934 (vcleq_f16): New.
11935 (vclez_f16): New.
11936 (vclezq_f16): New.
11937 (vclt_f16): New.
11938 (vcltq_f16): New.
11939 (vcltz_f16): New.
11940 (vcltzq_f16): New.
11941 (vcvt_f16_s16): New.
11942 (vcvt_f16_u16): New.
11943 (vcvt_s16_f16): New.
11944 (vcvt_u16_f16): New.
11945 (vcvtq_f16_s16): New.
11946 (vcvtq_f16_u16): New.
11947 (vcvtq_s16_f16): New.
11948 (vcvtq_u16_f16): New.
11949 (vcvta_s16_f16): New.
11950 (vcvta_u16_f16): New.
11951 (vcvtaq_s16_f16): New.
11952 (vcvtaq_u16_f16): New.
11953 (vcvtm_s16_f16): New.
11954 (vcvtm_u16_f16): New.
11955 (vcvtmq_s16_f16): New.
11956 (vcvtmq_u16_f16): New.
11957 (vcvtn_s16_f16): New.
11958 (vcvtn_u16_f16): New.
11959 (vcvtnq_s16_f16): New.
11960 (vcvtnq_u16_f16): New.
11961 (vcvtp_s16_f16): New.
11962 (vcvtp_u16_f16): New.
11963 (vcvtpq_s16_f16): New.
11964 (vcvtpq_u16_f16): New.
11965 (vcvt_n_f16_s16): New.
11966 (vcvt_n_f16_u16): New.
11967 (vcvtq_n_f16_s16): New.
11968 (vcvtq_n_f16_u16): New.
11969 (vcvt_n_s16_f16): New.
11970 (vcvt_n_u16_f16): New.
11971 (vcvtq_n_s16_f16): New.
11972 (vcvtq_n_u16_f16): New.
11973 (vfma_f16): New.
11974 (vfmaq_f16): New.
11975 (vfms_f16): New.
11976 (vfmsq_f16): New.
11977 (vmax_f16): New.
11978 (vmaxq_f16): New.
11979 (vmaxnm_f16): New.
11980 (vmaxnmq_f16): New.
11981 (vmin_f16): New.
11982 (vminq_f16): New.
11983 (vminnm_f16): New.
11984 (vminnmq_f16): New.
11985 (vmul_f16): New.
11986 (vmul_lane_f16): New.
11987 (vmul_n_f16): New.
11988 (vmulq_f16): New.
11989 (vmulq_lane_f16): New.
11990 (vmulq_n_f16): New.
11991 (vneg_f16): New.
11992 (vnegq_f16): New.
11993 (vpadd_f16): New.
11994 (vpmax_f16): New.
11995 (vpmin_f16): New.
11996 (vrecpe_f16): New.
11997 (vrecpeq_f16): New.
11998 (vrnd_f16): New.
11999 (vrndq_f16): New.
12000 (vrnda_f16): New.
12001 (vrndaq_f16): New.
12002 (vrndm_f16): New.
12003 (vrndmq_f16): New.
12004 (vrndn_f16): New.
12005 (vrndnq_f16): New.
12006 (vrndp_f16): New.
12007 (vrndpq_f16): New.
12008 (vrndx_f16): New.
12009 (vrndxq_f16): New.
12010 (vrsqrte_f16): New.
12011 (vrsqrteq_f16): New.
12012 (vrecps_f16): New.
12013 (vrecpsq_f16): New.
12014 (vrsqrts_f16): New.
12015 (vrsqrtsq_f16): New.
12016 (vsub_f16): New.
12017 (vsubq_f16): New.
12018
12019 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12020
12021 * config.gcc (extra_headers): Add arm_fp16.h
12022 * config/arm/arm_fp16.h: New.
12023 * config/arm/arm_neon.h: Include "arm_fp16.h".
12024
12025 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12026
12027 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12028 variants).
12029 (vmulf): New (v8hf, v4hf variants).
12030 (vfma): New (v8hf, v4hf variants).
12031 (vfms): New (v8hf, v4hf variants).
12032 (vsub): New (v8hf, v4hf variants).
12033 (vcage): New (v8hf, v4hf variants).
12034 (vcagt): New (v8hf, v4hf variants).
12035 (vcale): New (v8hf, v4hf variants).
12036 (vcalt): New (v8hf, v4hf variants).
12037 (vceq): New (v8hf, v4hf variants).
12038 (vcgt): New (v8hf, v4hf variants).
12039 (vcge): New (v8hf, v4hf variants).
12040 (vcle): New (v8hf, v4hf variants).
12041 (vclt): New (v8hf, v4hf variants).
12042 (vceqz): New (v8hf, v4hf variants).
12043 (vcgez): New (v8hf, v4hf variants).
12044 (vcgtz): New (v8hf, v4hf variants).
12045 (vcltz): New (v8hf, v4hf variants).
12046 (vclez): New (v8hf, v4hf variants).
12047 (vabd): New (v8hf, v4hf variants).
12048 (vmaxf): New (v8hf, v4hf variants).
12049 (vmaxnm): New (v8hf, v4hf variants).
12050 (vminf): New (v8hf, v4hf variants).
12051 (vminnm): New (v8hf, v4hf variants).
12052 (vpmaxf): New (v4hf variant).
12053 (vpminf): New (v4hf variant).
12054 (vpadd): New (v4hf variant).
12055 (vrecps): New (v8hf, v4hf variants).
12056 (vrsqrts): New (v8hf, v4hf variants).
12057 (vabs): New (v8hf, v4hf variants).
12058 (vneg): New (v8hf, v4hf variants).
12059 (vrecpe): New (v8hf, v4hf variants).
12060 (vrnd): New (v8hf, v4hf variants).
12061 (vrnda): New (v8hf, v4hf variants).
12062 (vrndm): New (v8hf, v4hf variants).
12063 (vrndn): New (v8hf, v4hf variants).
12064 (vrndp): New (v8hf, v4hf variants).
12065 (vrndx): New (v8hf, v4hf variants).
12066 (vrsqrte): New (v8hf, v4hf variants).
12067 (vmul_lane): Add v4hf and v8hf variants.
12068 (vmul_n): Add v4hf and v8hf variants.
12069 (vext): New (v8hf, v4hf variants).
12070 (vcvts): New (v8hi, v4hi variants).
12071 (vcvts): New (v8hf, v4hf variants).
12072 (vcvtu): New (v8hi, v4hi variants).
12073 (vcvtu): New (v8hf, v4hf variants).
12074 (vcvts_n): New (v8hf, v4hf variants).
12075 (vcvtu_n): New (v8hi, v4hi variants).
12076 (vcvts_n): New (v8hi, v4hi variants).
12077 (vcvtu_n): New (v8hf, v4hf variants).
12078 (vbsl): New (v8hf, v4hf variants).
12079 (vcvtas): New (v8hf, v4hf variants).
12080 (vcvtau): New (v8hf, v4hf variants).
12081 (vcvtms): New (v8hf, v4hf variants).
12082 (vcvtmu): New (v8hf, v4hf variants).
12083 (vcvtns): New (v8hf, v4hf variants).
12084 (vcvtnu): New (v8hf, v4hf variants).
12085 (vcvtps): New (v8hf, v4hf variants).
12086 (vcvtpu): New (v8hf, v4hf variants).
12087
12088 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12089
12090 * config/arm/arm-builtins.c (hf_UP): New.
12091 (si_UP): New.
12092 (vfp_builtin_data): New. Update comment.
12093 (enum arm_builtins): Include "arm_vfp_builtins.def".
12094 (ARM_BUILTIN_VFP_PATTERN_START): New.
12095 (arm_init_vfp_builtins): New.
12096 (arm_init_builtins): Add arm_init_vfp_builtins.
12097 (arm_expand_vfp_builtin): New.
12098 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12099 long line.
12100 * config/arm/arm_vfp_builtins.def: New file.
12101 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12102 (arm-builtins.o): Likewise.
12103
12104 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12105
12106 PR ipa/77677
12107 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12108 from constant while creating value range.
12109
12110 2016-09-23 Renlin Li <renlin.li@arm.com>
12111
12112 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12113 (ira_init_once): Here.
12114
12115 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12116 Jakub Jelinek <jakub@redhat.com>
12117
12118 * hooks.h (hook_uint_uintp_false): Rename to...
12119 (hook_bool_uint_uintp_false): ... this.
12120 * hooks.c (hook_uint_uintp_false): Rename to...
12121 (hook_bool_uint_uintp_false): ... this.
12122 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12123 instead of hook_uint_uintp_false.
12124
12125 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12126
12127 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12128 (arm_init_builtins): Move body of a loop to the standalone
12129 function arm_init_neon_builtin.
12130 (arm_expand_neon_builtin_1): New. Update comment. Function body
12131 moved from arm_neon_builtin with some white-space fixes.
12132 (arm_expand_neon_builtin): Move code into the standalone function
12133 arm_expand_neon_builtin_1.
12134
12135 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12136
12137 * config/arm/iterators.md (VCVTHI): New.
12138 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12139 (NEON_VAGLTE): New.
12140 (VFM_LANE_AS): New.
12141 (VH_CVTTO): New.
12142 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12143 (V_HALF): Add V4HF. Fix white-space.
12144 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12145 (V_s_elem): Likewise.
12146 (V_sz_elem): Fix white-space.
12147 (V_elem_ch): Likewise.
12148 (VH_elem_ch): New.
12149 (scalar_mul_constraint): Add V8HF and V4HF.
12150 (Is_float_mode): Fix white-space.
12151 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12152 (q): Add HF. Fix white-space.
12153 (float_sup): New.
12154 (float_SUP): New.
12155 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12156 (neon_vfm_lane_as): New.
12157 * config/arm/neon.md (add<mode>3_fp16): New.
12158 (sub<mode>3_fp16): New.
12159 (mul<mode>3add<mode>_neon): New.
12160 (fma<VH:mode>4_intrinsic): New.
12161 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12162 (fmsub<VH:mode>4_intrinsic): New.
12163 (<absneg_str><mode>2): New.
12164 (neon_v<absneg_str><mode>): New.
12165 (neon_v<fp16_rnd_str><mode>): New.
12166 (neon_vrsqrte<mode>): New.
12167 (neon_vpaddv4hf): New.
12168 (neon_vadd<mode>): New.
12169 (neon_vsub<mode>): New.
12170 (neon_vmulf<mode>): New.
12171 (neon_vfma<VH:mode>): New.
12172 (neon_vfms<VH:mode>): New.
12173 (neon_vc<cmp_op><mode>): New.
12174 (neon_vc<cmp_op><mode>_fp16insn): New
12175 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12176 (neon_vca<cmp_op><mode>): New.
12177 (neon_vca<cmp_op><mode>_fp16insn): New.
12178 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12179 (neon_vc<cmp_op>z<mode>): New.
12180 (neon_vabd<mode>): New.
12181 (neon_v<maxmin>f<mode>): New.
12182 (neon_vp<maxmin>fv4hf: New.
12183 (neon_<fmaxmin_op><mode>): New.
12184 (neon_vrecps<mode>): New.
12185 (neon_vrsqrts<mode>): New.
12186 (neon_vrecpe<mode>): New (VH variant).
12187 (neon_vdup_lane<mode>_internal): New.
12188 (neon_vdup_lane<mode>): New.
12189 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12190 (neon_vcvt<sup><mode>): New (VH variant).
12191 (neon_vcvt<sup>_n<mode>): New (VH variant).
12192 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12193 (neon_vcvt<vcvth_op><sup><mode>): New.
12194 (neon_vmul_lane<mode>): New.
12195 (neon_vmul_n<mode>): New.
12196 * config/arm/unspecs.md (UNSPEC_VCALE): New
12197 (UNSPEC_VCALT): New.
12198 (UNSPEC_VFMA_LANE): New.
12199 (UNSPECS_VFMS_LANE): New.
12200
12201 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12202
12203 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12204 ("*extzv<mode><clobbercc_or_nocc>"):
12205 Correct a typo in a comment.
12206 Merged patterns.
12207 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12208 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12209 ("*insv<mode>_zEC12_appendbitsleft")
12210 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12211 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12212 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12213 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12214 Provide pattern with operands switched.
12215 ("*pre_z10_extv<mode>"):
12216 Use new subst patterns.
12217 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12218 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12219 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12220 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12221 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12222 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12223 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12224 New patterns.
12225 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12226 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12227 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12228 on zEC12.
12229 ("SINT"): New mode_iterator with SI, HI, QI.
12230 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12231 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12232 duplication.
12233
12234 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12235
12236 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12237 new interface of s390_contiguous_bitmask_p.
12238 ("contiguous_bitmask_nowrap_operand"): New predicate.
12239 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12240 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12241 of s390_contiguous_bitmask_p.
12242 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12243 ("NxxSw"): New constraint.
12244 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12245 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12246 interface.
12247 (s390_contiguous_bitmask_nowrap_p): Export.
12248 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12249 former s390_contiguous_bitmask_p.
12250 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12251 detect contiguous bit ranges with wraparound. Change signature to
12252 return START and END position instead of POS and LENGTH.
12253 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12254 ranges with wraparound.
12255 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12256 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12257 Adapt to new signature of s390_contiguous_bitmask_p.
12258
12259 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12260
12261 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12262 (create_intersect_range_checks): New.
12263 (vect_create_cond_for_alias_checks): Call above function.
12264
12265 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12266
12267 * config/arm/iterators.md (Code iterators): Fix some white-space
12268 in the comments.
12269 (GLTE): New.
12270 (ABSNEG): New
12271 (FCVT): Moved from vfp.md.
12272 (VCVT_HF_US_N): New.
12273 (VCVT_SI_US_N): New.
12274 (VCVT_HF_US): New.
12275 (VCVTH_US): New.
12276 (FP16_RND): New.
12277 (absneg_str): New.
12278 (FCVTI32typename): Moved from vfp.md.
12279 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12280 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12281 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12282 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12283 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12284 (vcvth_op): New.
12285 (fp16_rnd_str): New.
12286 (fp16_rnd_insn): New.
12287 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12288 (UNSPEC_VCVT_HF_U_N): New.
12289 (UNSPEC_VCVT_SI_S_N): New.
12290 (UNSPEC_VCVT_SI_U_N): New.
12291 (UNSPEC_VCVTH_S): New.
12292 (UNSPEC_VCVTH_U): New.
12293 (UNSPEC_VCVTA_S): New.
12294 (UNSPEC_VCVTA_U): New.
12295 (UNSPEC_VCVTM_S): New.
12296 (UNSPEC_VCVTM_U): New.
12297 (UNSPEC_VCVTN_S): New.
12298 (UNSPEC_VCVTN_U): New.
12299 (UNSPEC_VCVTP_S): New.
12300 (UNSPEC_VCVTP_U): New.
12301 (UNSPEC_VCVTP_S): New.
12302 (UNSPEC_VCVTP_U): New.
12303 (UNSPEC_VRND): New.
12304 (UNSPEC_VRNDA): New.
12305 (UNSPEC_VRNDI): New.
12306 (UNSPEC_VRNDM): New.
12307 (UNSPEC_VRNDN): New.
12308 (UNSPEC_VRNDP): New.
12309 (UNSPEC_VRNDX): New.
12310 * config/arm/vfp.md (<absneg_str>hf2): New.
12311 (neon_vabshf): New.
12312 (neon_v<fp16_rnd_str>hf): New.
12313 (neon_vrndihf): New.
12314 (addhf3): New.
12315 (subhf3): New.
12316 (divhf3): New.
12317 (mulhf3): New.
12318 (*mulsf3neghf_vfp): New.
12319 (*negmulhf3_vfp): New.
12320 (*mulsf3addhf_vfp): New.
12321 (*mulhf3subhf_vfp): New.
12322 (*mulhf3neghfaddhf_vfp): New.
12323 (*mulhf3neghfsubhf_vfp): New.
12324 (fmahf4): New.
12325 (neon_vfmahf): New.
12326 (fmsubhf4_fp16): New.
12327 (neon_vfmshf): New.
12328 (*fnmsubhf4): New.
12329 (*fnmaddhf4): New.
12330 (neon_vsqrthf): New.
12331 (neon_vrsqrtshf): New.
12332 (FCVT): Move to iterators.md.
12333 (FCVTI32typename): Likewise.
12334 (neon_vcvth<sup>hf): New.
12335 (neon_vcvth<sup>si): New.
12336 (neon_vcvth<sup>_nhf_unspec): New.
12337 (neon_vcvth<sup>_nhf): New.
12338 (neon_vcvth<sup>_nsi_unspec): New.
12339 (neon_vcvth<sup>_nsi): New.
12340 (neon_vcvt<vcvth_op>h<sup>si): New.
12341 (neon_<fmaxmin_op>hf): New.
12342
12343 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12344
12345 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12346 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12347 ("*insv<mode>_zEC12_appendbitsleft")
12348 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12349 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12350
12351 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12352
12353 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12354 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12355 construct values without normalization.
12356 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12357 static local lhs_ops to vNULL.
12358
12359 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12360 Jiong Wang <jiong.wang@arm.com>
12361
12362 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12363 available when FP16 instructions are available.
12364 (output_move_vfp): Add support for 16-bit data moves.
12365 (arm_validize_comparison): Fix some white-space. Support HFmode
12366 by conversion to SFmode.
12367 * config/arm/arm.md (truncdfhf2): Fix a comment.
12368 (extendhfdf2): Likewise.
12369 (cstorehf4): New.
12370 (movsicc): Fix some white-space.
12371 (movhfcc): New.
12372 (movsfcc): Fix some white-space.
12373 (*cmovhf): New.
12374 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12375 instructions are available.
12376 (*thumb2_movhi_vfp): Likewise.
12377 (*arm_movhi_fp16): New.
12378 (*thumb2_movhi_fp16): New.
12379 (*movhf_vfp_fp16): New.
12380 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12381 (*movhf_vfp): Likewise.
12382 (extendhfsf2): Enable when VFP FP16 instructions are available.
12383 (truncsfhf2): Enable when VFP FP16 instructions are available.
12384
12385 2016-09-23 Martin Liska <mliska@suse.cz>
12386
12387 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12388
12389 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12390
12391 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12392 V4HF modes.
12393 (arm_evpc_neon_vtrn): Likewise.
12394 (arm_evpc_neon_vrev): Likewise.
12395 (arm_evpc_neon_vext): Likewise.
12396 * config/arm/arm_neon.h (vbsl_f16): New.
12397 (vbslq_f16): New.
12398 (vdup_n_f16): New.
12399 (vdupq_n_f16): New.
12400 (vdup_lane_f16): New.
12401 (vdupq_lane_f16): New.
12402 (vext_f16): New.
12403 (vextq_f16): New.
12404 (vmov_n_f16): New.
12405 (vmovq_n_f16): New.
12406 (vrev64_f16): New.
12407 (vrev64q_f16): New.
12408 (vtrn_f16): New.
12409 (vtrnq_f16): New.
12410 (vuzp_f16): New.
12411 (vuzpq_f16): New.
12412 (vzip_f16): New.
12413 (vzipq_f16): New.
12414 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12415 (vdup_lane): New (v8hf, v4hf variants).
12416 (vext): New (v8hf, v4hf variants).
12417 (vbsl): New (v8hf, v4hf variants).
12418 * config/arm/iterators.md (VDQWH): New.
12419 (VH): New.
12420 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12421 (Scalar_mul_8_16): Fix white-space.
12422 (Is_d_reg): Add V4HF and V8HF.
12423 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12424 (neon_vdup_lane<mode>): New.
12425 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12426 (*neon_vtrn<mode>_insn): Likewise.
12427 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12428 (*neon_vzip<mode>_insn): Likewise
12429 (neon_vuzp<mode>_internal): Likewise.
12430 (*neon_vuzp<mode>_insn): Likewise
12431 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12432
12433 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12434 Matthew Wahab <matthew.wahab@arm.com>
12435
12436 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12437 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12438 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12439 available. Also fix some white-space.
12440 * config/arm/vfp.md (*arm_movhi_vfp): New.
12441 (*thumb2_movhi_vfp): New.
12442
12443 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12444
12445 * config/arm/arm-c.c (arm_cpu_builtins): Define
12446 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12447 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12448
12449 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12450
12451 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12452 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12453 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12454 arm_v8_2a_fp16_neon_hw.
12455 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12456 arm_v8_2a_neon.
12457
12458 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12459
12460 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12461 arm_fp16_alternative_ok and arm_fp16_none_ok.
12462
12463 2016-09-23 Martin Liska <mliska@suse.cz>
12464
12465 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12466
12467 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12468
12469 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12470 ("armv8.2-a"): New.
12471 ("armv8.2-a+fp16"): New.
12472 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12473 (FL2_FP16INST): New.
12474 (FL2_FOR_ARCH8_2A): New.
12475 * config/arm/arm-tables.opt: Regenerate.
12476 * config/arm/arm.c (arm_arch8_2): New.
12477 (arm_fp16_inst): New.
12478 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12479 for incompatible fp16-format settings.
12480 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12481 (TARGET_NEON_FP16INST): New.
12482 (arm_arch8_2): Declare.
12483 (arm_fp16_inst): Declare.
12484 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12485 march=armv8.2-a and march=armv8.2-a+fp16.
12486 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12487 and armv8.2-a+fp16.
12488 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12489 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12490
12491 2016-09-23 Martin Liska <mliska@suse.cz>
12492
12493 * doc/extend.texi: Remove fused-madd from i386 target options.
12494
12495 2016-09-23 Martin Liska <mliska@suse.cz>
12496
12497 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12498 Handle movbe.
12499
12500 2016-09-23 Martin Liska <mliska@suse.cz>
12501
12502 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12503 Handle crc32.
12504
12505 2016-09-23 Martin Liska <mliska@suse.cz>
12506
12507 PR target/71652
12508 * config/i386/i386.c (ix86_option_override_internal): Change
12509 signature and return false when there's an error related to
12510 arch string.
12511 (release_options_strings): New function.
12512 (ix86_valid_target_attribute_tree): Call the function.
12513
12514 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12515
12516 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12517 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12518 (gen_hsa_ctor_assignment): Likewise.
12519 * print-tree.c (print_node): Likewise.
12520 * tree-dump.c (dequeue_and_dump): Likewise.
12521 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12522 * expr.c (store_constructor): Likewise.
12523 * fold-const.c (operand_equal_p): Likewise.
12524 * tree-pretty-print.c (dump_generic_node): Likewise.
12525 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12526 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12527
12528 2016-09-23 Richard Biener <rguenther@suse.de>
12529
12530 * hooks.h (hook_uint_uintp_false): Declare.
12531
12532 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12533
12534 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12535 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12536
12537 2016-09-22 Martin Sebor <msebor@redhat.com>
12538
12539 PR target/77676
12540 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12541 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12542 (target_int_min): Correct computation.
12543 (format_integer): Use long long as the argument for the ll length
12544 modifier.
12545 (format_floating): Use target_int_max().
12546 (get_string_length): Same.
12547 (format_string): Avoid setting the bounded flag for strings
12548 of unknown length.
12549 (try_substitute_return_value): Avoid setting range info when
12550 the result isn't bounded.
12551 * varasm.c (assemble_name): Increase buffer size.
12552
12553 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12554 Terry Guo <terry.guo@arm.com>
12555
12556 * target.def (elf_flags_numeric): New target hook.
12557 * targhooks.h (default_asm_elf_flags_numeric): New.
12558 * varasm.c (default_asm_elf_flags_numeric): New.
12559 (default_elf_asm_named_section): Use new target hook.
12560 * config/arm/arm.opt (mpure-code): New.
12561 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12562 * config/arm/arm.c (arm_asm_init_sections): Add section
12563 attribute to default text section if -mpure-code.
12564 (arm_option_check_internal): Diagnose use of option with
12565 non supported targets and/or options.
12566 (arm_asm_elf_flags_numeric): New.
12567 (arm_function_section): New.
12568 (arm_elf_section_type_flags): New.
12569 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12570 for -mpure-code.
12571 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12572 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12573
12574 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12575
12576 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12577
12578 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12579
12580 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12581 * rtl.h: Adjust prototype.
12582
12583 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12584
12585 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12586 (prev_active_insn): Likewise.
12587 (active_insn_p): Likewise.
12588 * rtl.h: Adjust prototypes.
12589 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12590 * config/arc/arc.md: Likewise.
12591 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12592 (branch_needs_nop_p): Likewise.
12593 (use_skip_p): Likewise.
12594 * config/sh/sh.c (gen_block_redirect): Likewise.
12595 (split_branches): Likewise.
12596 * reorg.c (optimize_skip): Likewise.
12597 (fill_simple_delay_slots): Likewise.
12598 (fill_slots_from_thread): Likewise.
12599 (relax_delay_slots): Likewise.
12600 * resource.c (mark_target_live_regs): Likewise.
12601
12602 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12603
12604 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12605 type to rtx_insn *.
12606 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12607 (prev_nonnote_nondebug_insn): Likewise.
12608 * config/cris/cris-protos.h: Adjust prototype.
12609 * rtl.h: Likewise.
12610 * jump.c (rtx_renumbered_equal_p): Adjust.
12611
12612 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12613
12614 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12615 * rtl.h: Adjust prototype.
12616 * config/sh/sh.md: Adjust.
12617 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12618
12619 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12620
12621 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12622 (prev_nondebug_insn): Likewise.
12623 * loop-doloop.c (doloop_condition_get): Likewise.
12624 * rtl.h: Adjust prototype.
12625 * cfgloop.h: Likewise.
12626
12627 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12628
12629 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12630 (prev_nonnote_insn): Likewise.
12631 * jump.c (reversed_comparison_code_parts): Likewise.
12632 (reversed_comparison): Likewise.
12633 * rtl.h: Adjust prototypes.
12634 * config/arc/arc.md: Adjust.
12635 * cse.c (find_comparison_args): Likewise.
12636 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12637 (fix_reg_dead_note): Change argument type to rtx_insn *.
12638 (delete_prior_computation): Likewise.
12639 (delete_computation): Likewise.
12640 (fill_slots_from_thread): Adjust.
12641 (relax_delay_slots): Likewise.
12642 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12643 (simplify_relational_operation_1): Likewise.
12644 (simplify_ternary_operation): Likewise.
12645
12646 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12647
12648 * config/arc/arc-protos.h (arc_label_align): Change type of
12649 variables from rtx to rtx_insn *.
12650 * config/arc/arc.c (arc_label_align): Likewise.
12651 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12652 * config/bfin/bfin.c (workaround_speculation): Likewise.
12653 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12654 (find_last_same_clock): Likewise.
12655 (reorg_split_calls): Likewise.
12656 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12657 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12658 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12659 (same_cmp_following_p): Likewise.
12660 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12661 (same_cmp_following_p): Likwise.
12662 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12663 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12664 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12665 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12666 (rl78_alloc_physical_registers_cmp): Likewise.
12667 (rl78_alloc_physical_registers_umul): Likewise.
12668 (rl78_calculate_death_notes): Likewise.
12669 * config/s390/s390-protos.h (s390_label_align): Likewise.
12670 * config/s390/s390.c (s390_label_align): Likewise.
12671 * config/sh/sh.c (barrier_align): Likewise.
12672 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12673 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12674 (emit_cbcond_nop): Likewise.
12675
12676 2016-09-22 Martin Liska <mliska@suse.cz>
12677
12678 PR ipa/77653
12679 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12680 alias address matters, not necessarily address of original.
12681
12682 2016-09-22 Richard Biener <rguenther@suse.de>
12683
12684 PR middle-end/77697
12685 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12686 fold fails.
12687
12688 2016-09-22 Richard Biener <rguenther@suse.de>
12689
12690 PR middle-end/77677
12691 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12692 from constant folding results.
12693 (gimple_resimplify2): Likewise.
12694 (gimple_resimplify3): Likewise.
12695
12696 2016-09-22 Richard Biener <rguenther@suse.de>
12697
12698 PR middle-end/77678
12699 * expr.c (expand_expr_real_1): Guard array access against negative
12700 offset.
12701
12702 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12703
12704 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12705 of MPFR_RNDN.
12706 (format_floating): Likewise.
12707
12708 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12709
12710 PR fortran/77665
12711 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12712 for all IFN_GOMP_SIMD_* internal fns, not just for
12713 IFN_GOMP_SIMD_ORDERED_*.
12714
12715 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12716
12717 PR target/77670
12718 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12719 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12720 instructions when you want to invert the test.
12721 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12722 correct order for XXSEL.
12723 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12724 for using XSCMP{EQ,GT,GE}DP.
12725
12726 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12727
12728 * genconstants.c (main): Introduce noop_reader and convert call
12729 to read_md_files to a method call.
12730 * genenums.c (main): Likewise.
12731 * genmddeps.c (main): Likewise.
12732 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12733 rtx_reader_ptr->get_top_level_filename ().
12734 (write_tm_preds_h): Likewise.
12735 (write_insn_preds_c): Likewise.
12736 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12737 (rtx_handle_directive): Convert to...
12738 (gen_reader::handle_unknown_directive): ...this.
12739 (init_rtx_reader_args_cb): Convert return type from bool to
12740 rtx_reader *. Create a gen_reader instance, using it for the
12741 call to read_md_files. Return it if no errors occur.
12742 (init_rtx_reader_args): Convert return type from bool to
12743 rtx_reader *.
12744 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12745 (init_rtx_reader_args_cb): Likewise.
12746 * read-md.c (struct file_name_list): Move to class rtx_reader.
12747 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12748 (read_md_filename): Delete in favor of
12749 rtx_reader::m_read_md_filename.
12750 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12751 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12752 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12753 (first_dir_md_include): Delete in favor of
12754 rtx_reader::m_first_dir_md_include.
12755 (last_dir_md_include_ptr): Delete in favor of
12756 rtx_reader::m_last_dir_md_include_ptr.
12757 (max_include_len): Delete.
12758 (rtx_reader_ptr): New.
12759 (fatal_with_file_and_line): Use get_filename and get_lineno
12760 accessors of rtx_reader_ptr.
12761 (require_char_ws): Likewise.
12762 (rtx_reader::read_char): New method, based on ::read_char.
12763 (rtx_reader::unread_char): New method, based on ::unread_char.
12764 (read_escape): Use get_filename and get_lineno accessors of
12765 rtx_reader_ptr.
12766 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12767 (read_string): Use get_filename and get_lineno accessors of
12768 rtx_reader_ptr.
12769 (rtx_reader::rtx_reader): New ctor.
12770 (rtx_reader::~rtx_reader): New dtor.
12771 (handle_include): Convert from a function to...
12772 (rtx_reader::handle_include): ...this method, converting
12773 handle_directive from a callback to a virtual function.
12774 (handle_file): Likewise, converting to...
12775 (rtx_reader::handle_file): ...this method.
12776 (handle_toplevel_file): Likewise, converting to...
12777 (rtx_reader::handle_toplevel_file): ...this method.
12778 (rtx_reader::get_current_location): New method.
12779 (parse_include): Convert from a function to...
12780 (rtx_reader::add_include_path): ...this method, dropping redundant
12781 update to unused max_include_len.
12782 (read_md_files): Convert from a function to...
12783 (rtx_reader::read_md_files): ...this method, converting
12784 handle_directive from a callback to a virtual function.
12785 (noop_reader::handle_unknown_directive): New method.
12786 * read-md.h (directive_handler_t): Delete this typedef.
12787 (in_fname): Delete.
12788 (read_md_file): Delete.
12789 (read_md_lineno): Delete.
12790 (read_md_filename): Delete.
12791 (class rtx_reader): New class.
12792 (rtx_reader_ptr): New decl.
12793 (class noop_reader): New subclass of rtx_reader.
12794 (read_char): Reimplement in terms of rtx_reader::read_char.
12795 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12796 (read_md_files): Delete.
12797 * read-rtl.c (read_rtx_code): Update for deletion of globals
12798 read_md_filename and read_md_lineno.
12799
12800 2016-09-21 Jason Merrill <jason@redhat.com>
12801
12802 * input.h (from_macro_definition_at): New.
12803
12804 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12805
12806 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12807
12808 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12809
12810 PR tree-optimization/77550
12811 * tree-vect-stmts.c (create_array_ref): Change parameters.
12812 (get_group_alias_ptr_type): New function.
12813 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12814
12815 2016-09-21 Marek Polacek <polacek@redhat.com>
12816
12817 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12818 Add falls through comment.
12819
12820 2016-09-21 Richard Biener <rguenther@suse.de>
12821
12822 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12823 (replace_child): Likewise.
12824 (remove_child_TAG): Adjust.
12825 (move_marked_base_types): Likewise.
12826 (prune_unused_types_prune): Clear die_sib of removed children.
12827
12828 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12829
12830 PR target/77326
12831 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12832 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12833
12834 2016-09-21 Richard Biener <rguenther@suse.de>
12835
12836 PR tree-optimization/77648
12837 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12838 with complex RHS.
12839 (make_transitive_closure_constraints): Adjust comment.
12840 (make_any_offset_constraints): New function.
12841 (handle_rhs_call): Make sure to first expand a pointer to all
12842 subfields before transitively closing it.
12843 (handle_const_call): Likewise. Properly expand returned
12844 pointers as well.
12845 (handle_pure_call): Likewise.
12846
12847 2016-09-21 Richard Biener <rguenther@suse.de>
12848 Jakub Jelinek <jakub@redhat.com>
12849
12850 PR tree-optimization/77621
12851 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12852 group at non-vectorizable stmts.
12853
12854 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12855
12856 PR tree-optimization/72835
12857 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12858 (make_new_ssa_for_all_defs): Likewise.
12859 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12860
12861 2016-09-20 Martin Sebor <msebor@redhat.com>
12862
12863 PR middle-end/49905
12864 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12865 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12866 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12867 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12868 * config/sol2.c (solaris_printf_pointer_format): New function.
12869 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12870 options.
12871 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12872 * doc/tm.texi: Regenerate.
12873 * gimple-fold.h (get_range_strlen): New function.
12874 (get_maxval_strlen): Declare existing function.
12875 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12876 maximum and minimum.
12877 (get_range_strlen): Define overload.
12878 (get_maxval_strlen): Adjust.
12879 * gimple-ssa-sprintf.c: New file and pass.
12880 * passes.def (pass_sprintf_length): Add new pass.
12881 * targhooks.h (default_printf_pointer_format): Declare new function.
12882 (gnu_libc_printf_pointer_format): Same.
12883 (solaris_libc_printf_pointer_format): Same.
12884 * targhooks.c (default_printf_pointer_format): Define new function.
12885 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12886 * print-tree.c: Increase buffer size.
12887
12888 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12889
12890 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12891
12892 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12893
12894 * common.opt: New option -fipa-vrp.
12895 * ipa-cp.c (ipa_get_vr_lat): New.
12896 (ipcp_vr_lattice::print): Likewise.
12897 (print_all_lattices): Call ipcp_vr_lattice::print.
12898 (ipcp_vr_lattice::meet_with): New.
12899 (ipcp_vr_lattice::meet_with_1): Likewise.
12900 (ipcp_vr_lattice::top_p): Likewise.
12901 (ipcp_vr_lattice::bottom_p): Likewsie.
12902 (ipcp_vr_lattice::set_to_bottom): Likewise.
12903 (set_all_contains_variable): Call VR set_to_bottom.
12904 (initialize_node_lattices): Init VR lattices.
12905 (propagate_vr_accross_jump_function): New.
12906 (propagate_constants_accross_call): Call
12907 propagate_vr_accross_jump_function.
12908 (ipcp_store_vr_results): New.
12909 (ipcp_driver): Handle VR.
12910 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12911 (ipa_set_jf_unknown): Likewise.
12912 (ipa_compute_jump_functions_for_edge): Likewise.
12913 (ipa_node_params_t::duplicate): Likewise.
12914 (ipa_write_jump_function): Likewise.
12915 (ipa_read_jump_function): Likewise.
12916 (write_ipcp_transformation_info): Likewise.
12917 (read_ipcp_transformation_info): Likewise.
12918 (ipcp_update_vr): New.
12919 (ipcp_transform_function): Handle VR.
12920 * ipa-prop.h (struct ipa_vr): New.
12921 * cgraph.c: Include tree-vrp.h.
12922 * cgraphunit.c: Likewise.
12923 * ipa-utils.c: Likewise.
12924 * ipa.c: Likewise.
12925 * opts.c: Likewise.
12926 * toplev.c: Likewise.
12927 * ipa-devirt.c: Likewise.
12928 * ipa-inline-transform.c: Likewise.
12929 * ipa-inline.c: Likewise.
12930 * ipa-profile.c: Likewise.
12931
12932 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12933
12934 * doc/invoke.texi: Document -fdump-tree-evrp.
12935 * passes.def: Define new pass_early_vrp.
12936 * timevar.def: Define new TV_TREE_EARLY_VRP.
12937 * tree-pass.h (make_pass_early_vrp): New.
12938 * tree-ssa-propagate.c: Make replace_uses_in non static.
12939 * tree-ssa-propagate.h: Export replace_uses_in.
12940 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12941 (extract_range_from_assert): Factor out
12942 extract_range_for_var_from_comparison_expr.
12943 (vrp_initialize_lattice): New.
12944 (vrp_initialize): Factor out vrp_initialize_lattice.
12945 (vrp_valueize): Fix it to reject complex value ranges.
12946 (vrp_free_lattice): New.
12947 (evrp_dom_walker::before_dom_children): Likewise.
12948 (evrp_dom_walker::after_dom_children): Likewise.
12949 (evrp_dom_walker::push_value_range): Likewise.
12950 (evrp_dom_walker::pop_value_range): Likewise.
12951 (execute_early_vrp): Likewise.
12952 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
12953 (make_pass_early_vrp): New.
12954
12955 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12956
12957 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
12958 instead of exact_log2.
12959
12960 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
12961
12962 PR target/77621
12963 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
12964 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
12965 (ix86_add_stmt_cost): Penalize DFmode vector operations
12966 for !TARGET_VECTORIZE_DOUBLE.
12967
12968 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
12969
12970 * doc/invoke.texi (Warning Options): Simplify language.
12971 (Optimize Options): Complete sentence.
12972
12973 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
12974
12975 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
12976 early_finish hook.
12977
12978 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
12979
12980 PR target/71395
12981 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
12982 inits on power8 and above, use the VMRGEW instruction instead of a
12983 permute.
12984
12985 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
12986 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
12987 initialization.
12988
12989 2016-09-20 Tamar Christina <tamar.christina@arm.com>
12990
12991 * config/aarch64/arm_neon.h
12992 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
12993 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
12994 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
12995
12996 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12997
12998 * config/var/vax.h (ELIMINABLE_REGS): Define.
12999 (INITIAL_ELIMINATION_OFFSET): Define.
13000
13001 2016-09-20 Jakub Jelinek <jakub@redhat.com>
13002
13003 PR middle-end/77624
13004 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
13005 cast to void * if the cast is from some other pointer type.
13006
13007 2016-09-20 Richard Biener <rguenther@suse.de>
13008
13009 PR tree-optimization/77646
13010 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
13011 a VDEF.
13012
13013 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13014
13015 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13016 attributes to all inlined functions and make them extern.
13017
13018 2016-09-20 Richard Biener <rguenther@suse.de>
13019
13020 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13021 hook.
13022 * debug.c (do_nothing_debug_hooks): Adjust.
13023 * dbxout.c (dbx_debug_hooks): Likewise.
13024 * sdbout.c (sdb_debug_hooks): Likewise.
13025 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13026 (dwarf2out_finish): Move producer, filename and
13027 path annotation ...
13028 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
13029 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13030
13031 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13032
13033 PR c++/77434
13034 * doc/invoke.texi: Document -Wint-in-bool-context.
13035
13036 PR middle-end/77421
13037 * dwarf2out.c (output_loc_operands): Fix an assertion.
13038
13039 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13040
13041 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13042 (CR_DECIMAL_DIG): New macro.
13043
13044 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13045
13046 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13047 element.
13048
13049 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
13050
13051 PR rtl-optimization/77416
13052 * lra-remat.c (operand_to_remat): Process hard coded insn
13053 registers.
13054
13055 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13056
13057 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13058 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13059
13060 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13061
13062 * target.def (lra_p): Wordsmithing.
13063 * doc/tm.texi: Regenerate.
13064
13065 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13066 Jan Hubicka <jh@suse.cz>
13067
13068 PR target/77587
13069 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13070 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13071 Call ultimate_alias_target just once, not up to 4 times.
13072
13073 2016-09-19 Richard Biener <rguenther@suse.de>
13074
13075 * dwarf2out.c (early_dwarf_finished): New global.
13076 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13077 is false.
13078 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13079 if called from LTO exit early.
13080 (dwarf2out_late_global_decl): When being during the early
13081 debug phase do not add locations but only const value attributes.
13082 Adjust the way we generate early DIEs for LTO.
13083
13084 2016-09-19 Richard Biener <rguenther@suse.de>
13085
13086 PR middle-end/77605
13087 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13088 proper niter to bound the loops.
13089
13090 2016-09-19 Richard Biener <rguenther@suse.de>
13091
13092 PR tree-optimization/77514
13093 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13094 search for folded stmt.
13095
13096 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13097
13098 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13099 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13100 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13101 fsm_find_thread_path, profitable_jump_thread_path,
13102 fsm_find_control_statement_thread_paths,
13103 find_jump_threads_backwards): Add speed_p parameter.
13104 (pass_data_early_thread_jumps): New pass.
13105 (make_pass_early_thread_jumps): New function.
13106
13107 2016-09-17 Andreas Schwab <schwab@suse.de>
13108
13109 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13110 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13111
13112 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13113
13114 * recog.c (rest_of_handle_split_after_reload): Delete.
13115 (pass_split_after_reload::gate): New method.
13116 (pass_split_after_reload::execute): Call split_all_insns directly.
13117
13118 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13119
13120 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13121 parameters for functions taking long long arguments.
13122
13123 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13124
13125 PR target/77613
13126 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13127 splat with truncate.
13128
13129 2016-09-16 Jason Merrill <jason@redhat.com>
13130
13131 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13132 New.
13133 * hwint.c (exact_log2): Use pow2p_hwi.
13134 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13135 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13136 * builtins.c (get_object_alignment_2, get_object_alignment)
13137 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13138 least_bit_hwi.
13139 * calls.c (compute_argument_addresses, store_one_arg): Use
13140 least_bit_hwi.
13141 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13142 * combine.c (force_to_mode): Use least_bit_hwi.
13143 (contains_muldiv, find_split_point, combine_simplify_rtx)
13144 (simplify_if_then_else, simplify_set, force_to_mode)
13145 (if_then_else_cond, simplify_and_const_int_1)
13146 (simplify_compare_const): Use pow2p_hwi.
13147 * cse.c (fold_rtx): Use pow2p_hwi.
13148 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13149 Use least_bit_hwi.
13150 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13151 (init_expmed_one_conv): Use pow2p_hwi.
13152 * expr.c (is_aligning_offset): Use pow2p_hwi.
13153 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13154 (fold_binary_loc): Use pow2p_hwi.
13155 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13156 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13157 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13158 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13159 Use least_bit_hwi.
13160 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13161 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13162 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13163 * omp-low.c (oacc_loop_fixed_partitions)
13164 (oacc_loop_auto_partitions): Use least_bit_hwi.
13165 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13166 * stor-layout.c (place_field): Use least_bit_hwi.
13167 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13168 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13169 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13170 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13171 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13172 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13173 (vect_grouped_store_supported, vect_grouped_load_supported)
13174 (vect_permute_load_chain, vect_shift_permute_load_chain)
13175 (vect_transform_grouped_load): Use pow2p_hwi.
13176 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13177 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13178 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13179 least_bit_hwi.
13180 * tsan.c (instrument_expr): Use least_bit_hwi.
13181 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13182
13183 2016-09-16 Andreas Schwab <schwab@suse.de>
13184
13185 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13186 OFFSET, not offset.
13187 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13188
13189 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13190
13191 PR target/77526
13192 * combine.c (rest_of_handle_combine): If any edges have been purged,
13193 free dominators if available.
13194
13195 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13196 Eric Botcazou <ebotcazou@adacore.com>
13197
13198 PR middle-end/77594
13199 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13200 through into expand_addsub_overflow after expand_neg_overflow.
13201
13202 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13203
13204 * diagnostic-show-locus.c
13205 (selftest::test_fixit_insert_containing_newline): New function.
13206 (selftest::test_fixit_replace_containing_newline): New function.
13207 (selftest::diagnostic_show_locus_c_tests): Call the above.
13208
13209 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13210
13211 PR tree-optimization/77503
13212 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13213 code for CONST_COND_REDUCTION at analysis stage and use it at
13214 transform stage.
13215 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13216 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13217 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13218 field.
13219
13220 2016-09-15 Richard Biener <rguenther@suse.de>
13221
13222 PR middle-end/77544
13223 * fold-const.c (split_tree): Do not split constant ~X.
13224
13225 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13226
13227 PR rtl-optimization/77425
13228 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13229 is NULL.
13230
13231 PR middle-end/77475
13232 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13233 use %qs instead of %s where desirable, use argument instead of arg in
13234 the diagnostic wording, add list of supported strategies and
13235 spellcheck hint.
13236 (ix86_option_override_internal): Emit target("m...") instead of
13237 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13238 -march/-mtune option diagnostic. Add list of supported arches/tunings
13239 and spellcheck hint. Remove prefix, suffix and sw variables, use
13240 main_args_p ? "..." : "..." in diagnostics to make translation
13241 possible.
13242
13243 2016-09-15 Richard Biener <rguenther@suse.de>
13244
13245 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13246 extra offset argument.
13247 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13248 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13249 to reflect new offset parameter.
13250 * doc/tm.texi: Regenerate.
13251 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13252 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13253 offset argument.
13254 (darwin_asm_output_dwarf_offset): Likewise.
13255 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13256 argument.
13257 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13258 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13259 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13260
13261 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13262
13263 PR fortran/72743
13264 * ipa-icf.c (set_alias_uids): New function.
13265 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13266 all the merged variable's referring aliases.
13267
13268 2016-09-15 Richard Biener <rguenther@suse.de>
13269
13270 PR tree-optimization/77514
13271 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13272 only forced_stmts sequence.
13273
13274 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13275
13276 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13277 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13278 FOR_EACH_SSA_NAME to iterate over SSA variables.
13279 (pass_expand::execute): Likewise.
13280 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13281 * tree-cfg.c (dump_function_to_file): Likewise.
13282 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13283 (update_ssa): Likewise.
13284 * tree-ssa-alias.c (dump_alias_info): Likewise.
13285 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13286 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13287 (create_outofssa_var_map): Likewise.
13288 (coalesce_ssa_name): Likewise.
13289 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13290 * tree-ssa-pre.c (compute_avail): Likewise.
13291 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13292 (scc_vn_restore_ssa_info): Likewise.
13293 (free_scc_vn): Likwise.
13294 (run_scc_vn): Likewise.
13295 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13296 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13297 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13298 * tree-ssa.c (verify_ssa): Likewise.
13299
13300 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13301
13302 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13303 and mips64r2 as default 32-bit and 64-bit architectures.
13304 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13305 as default 32-bit and 64-bit architectures.
13306
13307 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13308
13309 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13310 of succ edge.
13311
13312 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13313
13314 * target.def (lra_p): Change commentary (for the manual) for the
13315 new default.
13316 * doc/tm.texi: Regenerate.
13317
13318 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13319
13320 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13321 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13322 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13323 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13324
13325 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13326
13327 * targhooks.c (default_lra_p): Return true instead of false.
13328
13329 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13330
13331 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13332 hook_bool_void_false.
13333 * config/avr/avr.c: Ditto.
13334 * config/bfin/bfin.c: Ditto.
13335 * config/c6x/c6x.c: Ditto.
13336 * config/cr16/cr16.c: Ditto.
13337 * config/cris/cris.c: Ditto.
13338 * config/epiphany/epiphany.c: Ditto.
13339 * config/fr30/fr30.c: Ditto.
13340 * config/frv/frv.c: Ditto.
13341 * config/h8300/h8300.c: Ditto.
13342 * config/ia64/ia64.c: Ditto.
13343 * config/iq2000/iq2000.c: Ditto.
13344 * config/lm32/lm32.c: Ditto.
13345 * config/m32c/m32c.c: Ditto.
13346 * config/m32r/m32r.c: Ditto.
13347 * config/m68k/m68k.c: Ditto.
13348 * config/mcore/mcore.c: Ditto.
13349 * config/microblaze/microblaze.c: Ditto.
13350 * config/mmix/mmix.c: Ditto.
13351 * config/mn10300/mn10300.c: Ditto.
13352 * config/moxie/moxie.c: Ditto.
13353 * config/msp430/msp430.c: Ditto.
13354 * config/nios2/nios2.c: Ditto.
13355 * config/nvptx/nvptx.c: Ditto.
13356 * config/pa/pa.c: Ditto.
13357 * config/pdp11/pdp11.c: Ditto.
13358 * config/rl78/rl78.c: Ditto.
13359 * config/sparc/sparc.c: Ditto.
13360 * config/spu/spu.c: Ditto.
13361 * config/stormy16/stormy16.c: Ditto.
13362 * config/tilegx/tilegx.c: Ditto.
13363 * config/tilepro/tilepro.c: Ditto.
13364 * config/v850/v850.c: Ditto.
13365 * config/vax/vax.c: Ditto.
13366 * config/visium/visium.c: Ditto.
13367 * config/xtensa/xtensa.c: Ditto.
13368
13369 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13370
13371 PR sanitizer/68260
13372 * tsan.c: Include target.h.
13373 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13374 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13375 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13376 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13377 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13378
13379 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13380 Martin Liska <mliska@suse.cz>
13381
13382 PR middle-end/77574
13383 * predict.c (force_edge_cold): Add braces to a condition.
13384
13385 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13386
13387 PR rtl-optimization/77289
13388 * lra-constraints.c (get_final_hard_regno): Removed.
13389 (get_hard_regno): Add new parameter final_p.
13390 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13391 (operands_match_p): Adjust call to get_hard_regno.
13392 (uses_hard_regs_p): Likewise.
13393 (process_alt_operands): Likewise.
13394
13395 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13396
13397 PR target/70713
13398 * config/msp430/msp430.c (msp430_start_function): Emit an error
13399 if a function is both weak and specifies an interrupt number.
13400
13401 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13402
13403 PR tree-optimization/77454
13404 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13405 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13406 Formatting fix.
13407
13408 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13409
13410 * config/aarch64/aarch64-builtins.c
13411 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13412
13413 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13414
13415 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13416 SFmode and SCmode arguments by reference.
13417
13418 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13419
13420 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13421 Rename to...
13422 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13423 for renaming of add_fixit_insert to add_fixit_insert_before.
13424 (selftest::test_one_liner_fixit_insert_after): New function.
13425 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13426 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13427 (selftest::test_one_liner_many_fixits): Likewise.
13428 (selftest::test_diagnostic_show_locus_one_liner): Update for
13429 renaming, call new test function.
13430 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13431 renaming of add_fixit_insert to add_fixit_insert_before.
13432 (selftest::test_fixit_consolidation): Likewise.
13433 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13434 Likewise.
13435 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13436 (selftest::test_applying_fixits_insert_before): ...this.
13437 (selftest::test_applying_fixits_insert): Update for renaming of
13438 add_fixit_insert to add_fixit_insert_before.
13439 (selftest::test_applying_fixits_insert_after): New function.
13440 (selftest::test_applying_fixits_insert_after_at_line_end): New
13441 function.
13442 (selftest::test_applying_fixits_insert_after_failure): New function.
13443 (selftest::test_applying_fixits_multiple): Update for renaming of
13444 add_fixit_insert to add_fixit_insert_before.
13445 (selftest::change_line): Likewise.
13446 (selftest::test_applying_fixits_unreadable_file): Likewise.
13447 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13448 (selftest::test_applying_fixits_column_validation): Likewise.
13449 (selftest::test_applying_fixits_column_validation): Likewise.
13450 (selftest::edit_context_c_tests): Update for renamed test function;
13451 call new test functions.
13452
13453 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13454
13455 PR tree-optimization/77536
13456 PR rtl-optimization/68212
13457 * config/rs6000/rs6000.md (div->recip splitter): Remove
13458 optimize_insn_for_speed_p condition.
13459
13460 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13461
13462 * optabs.c (prepare_cmp_insn): Update documentation comment.
13463
13464 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13465 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13466
13467 PR middle-end/77475
13468 * opts.h (candidates_list_and_hint): Declare.
13469 * opts-common.c (candidates_list_and_hint): New function.
13470 (cmdline_handle_error): Use it.
13471
13472 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13473
13474 * edit-context.c (edited_line::get_len): New accessor.
13475 (edited_file::print_diff): Split out hunk-printing into...
13476 (edited_file::print_diff_hunk): New method.
13477 (edited_file::print_diff_line): New method.
13478
13479 2016-09-12 Andrew Pinski <apinski@cavium.com>
13480
13481 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13482 New tuning option.
13483 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13484 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13485 (aarch64_operands_ok_for_ldpstp): Return false if
13486 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13487 was SImode and the alignment is less than 8 byte.
13488 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13489
13490 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13491
13492 PR target/77570
13493 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13494
13495 2016-09-12 Marek Polacek <polacek@redhat.com>
13496
13497 * doc/extend.texi: Use lowercase "boolean".
13498 * doc/invoke.texi: Likewise.
13499 * doc/md.texi: Likewise.
13500 * target.def: Likewise.
13501 * doc/tm.texi: Regenerated.
13502
13503 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13504
13505 PR middle-end/77426
13506 * expmed.c (synth_mult): Delete duplicate mode check.
13507
13508 2016-09-10 Tom de Vries <tom@codesourcery.com>
13509
13510 PR C/71602
13511 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13512 va_list type only.
13513 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13514 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13515
13516 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13517
13518 PR rtl-optimization/77289
13519 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13520 register numbers. Remove support for subregs.
13521 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13522 (get_reg_class): Delete removed get_final_hard_regno() argument.
13523 (uses_hard_regs_p): Call get_final_hard_regno().
13524
13525 2016-09-09 Martin Sebor <msebor@redhat.com>
13526
13527 PR c/77520
13528 PR c/77521
13529 * pretty-print.c (pp_quoted_string): New function.
13530 (pp_format): Call it for %c and %s directives.
13531
13532 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13533
13534 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13535 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13536 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13537 * target.def (frame_pointer_required, can_eliminate): Likewise.
13538 * doc/tm.texi: Regenerated.
13539 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13540 ELIMINABLE_REGS.
13541 * df-scan.c (df_hard_reg_init): Likewise.
13542 * ira.c (ira_setup_eliminable_regset): Likewise.
13543 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13544 init_elim_table): Likewise.
13545 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13546 set_initial_elim_offsets, update_eliminables,
13547 init_elim_table): Likewise.
13548 * rtlanal.c (get_initial_register_offset): Likewise.
13549 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13550 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13551 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13552 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13553 * config/fr30/fr30.h: Fix comment.
13554 * config/frv/frv.c: Likewise.
13555 * config/frv/frv.h: Likewise.
13556 * config/ft32/ft32.h: Likewise.
13557 * config/visium/visium.h: Likewise.
13558 * config/pa/pa64-linux.h: Likewise.
13559 * config/v850/v850.h: Likewise.
13560 * config/cris/cris.c: Likewise.
13561 * config/ia64/ia64.h: Likewise.
13562 * config/moxie/moxie.h: Likewise.
13563 * config/m32r/m32r.h: Likewise.
13564
13565 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13566
13567 PR target/77267
13568 * config.in: Regenerate.
13569 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13570 New macro.
13571 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13572 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13573 static-libmpxwrappers case.
13574 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13575 MPX_LD_AS_NEEDED_GUARD_POP.
13576 * configure: Regenerate.
13577 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13578 defined if linker support "--push-state"/"--pop-state".
13579
13580 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13581
13582 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13583
13584 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13585
13586 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13587 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13588 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13589 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13590 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13591 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13592 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13593 Document.
13594 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13595 width macros from TS 18661-1.
13596 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13597
13598 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13599
13600 PR fortran/77516
13601 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13602 OMP_CLAUSE_SAFELEN_EXPR.
13603
13604 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13605
13606 * Makefile.in (OBJS): Add substring-locations.o.
13607 * langhooks-def.h (class substring_loc): New forward decl.
13608 (lhd_get_substring_location): New decl.
13609 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13610 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13611 * langhooks.c (lhd_get_substring_location): New function.
13612 * langhooks.h (class substring_loc): New forward decl.
13613 (struct lang_hooks): Add field get_substring_location.
13614 * substring-locations.c: New file, taking definition of
13615 format_warning_va and format_warning_at_substring from
13616 c-family/c-format.c, making them non-static.
13617 * substring-locations.h (class substring_loc): Move class here
13618 from c-family/c-common.h. Add and rewrite comments.
13619 (format_warning_va): New decl.
13620 (format_warning_at_substring): New decl.
13621 (get_source_location_for_substring): Add comment.
13622
13623 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13624
13625 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13626 to avoid -Wnarrowing warning.
13627 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13628 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13629
13630 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13631
13632 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13633 Avoid use of base_offset if offset already in range.
13634
13635 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13636
13637 * config/sh/sh-protos.h (struct sh_atomic_model,
13638 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13639 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13640 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13641 * config/sh/sh.h (struct sh_atomic_model,
13642 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13643 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13644 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13645 Guard with __cplusplus.
13646
13647 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13648
13649 PR target/69255
13650 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13651 unsupported or unknown ISA, use expand_call.
13652
13653 2016-09-06 Martin Liska <mliska@suse.cz>
13654
13655 PR gcov-profile/77378
13656 PR gcov-profile/77466
13657 * tree-profile.c (tree_profiling): Detect whether target can use
13658 -fprofile-update=atomic.
13659
13660 2016-09-06 Richard Biener <rguenther@suse.de>
13661
13662 PR tree-optimization/77479
13663 * tree-vrp.c (update_value_range): Extend overflow handling to
13664 VARYING.
13665
13666 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13667
13668 PR target/77476
13669 * config/i386/i386.md (isa): Add x64_avx512bw.
13670 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13671 (kmov_isa): New mode attr.
13672 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13673 (*zero_extend<mode>si2): Likewise.
13674 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13675
13676 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13677
13678 * doc/invoke.texi (SPU Options): nops -> NOPs.
13679 (x86 Options): Ditto.
13680
13681 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13682
13683 PR middle-end/77475
13684 * toplev.c (process_options): Temporarily set input_location
13685 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13686
13687 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13688
13689 PR rtl-optimization/77452
13690 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13691 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13692
13693 2016-09-05 Marek Polacek <polacek@redhat.com>
13694
13695 PR c/77423
13696 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13697
13698 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13699
13700 PR other/77421
13701 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13702 *insn_out == '*' test. Don't copy unnecessary to yet another
13703 memory buffer, and don't leak it.
13704
13705 PR rtl-optimization/77425
13706 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13707
13708 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13709
13710 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13711
13712 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13713
13714 * common.opt (fdiagnostics-generate-patch): New option.
13715 * diagnostic.c: Include "edit-context.h".
13716 (diagnostic_initialize): Initialize context->edit_context_ptr.
13717 (diagnostic_finish): Delete context->edit_context_ptr.
13718 (diagnostic_report_diagnostic): Add fix-it hints from the
13719 diagnostic to context->edit_context_ptr, if any.
13720 * diagnostic.h (class edit_context): Add forward decl.
13721 (struct diagnostic_context): Add field "edit_context_ptr".
13722 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13723 -fdiagnostics-generate-patch.
13724 (-fdiagnostics-generate-patch): New item.
13725 * toplev.c: Include "edit-context.h".
13726 (process_options): Set global_dc->edit_context_ptr to a new
13727 edit_context if the options need one.
13728 (toplev::main): Handle -fdiagnostics-generate-patch by using
13729 global_dc->edit_context_ptr.
13730
13731 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13732
13733 PR c/65467
13734 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13735 map and firstprivate clauses on target construct for _Atomic
13736 qualified decls.
13737 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13738 on target construct for _Atomic qualified decls.
13739 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13740 decls.
13741 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13742 _Atomic qualified arguments not mentioned in uniform clause.
13743
13744 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13745
13746 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13747 * diagnostic-color.c (color_dict): Add "diff-filename",
13748 "diff-hunk", "diff-delete", and "diff-insert".
13749 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13750 to reflect above changes.
13751 * doc/invoke.texi (-fdiagnostics-color): Update description of
13752 default GCC_COLORS, and of the supported capabilities.
13753 * edit-context.c: New file.
13754 * edit-context.h: New file.
13755 * input.c (struct fcache): Add field "missing_trailing_newline".
13756 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13757 true.
13758 (add_file_to_cache_tab): Likewise.
13759 (fcache::fcache): Likewise.
13760 (get_next_line): Update c->missing_trailing_newline.
13761 (location_missing_trailing_newline): New function.
13762 * input.h (location_missing_trailing_newline): New decl.
13763 * selftest-run-tests.c (selftest::run_tests): Call
13764 edit_context_c_tests.
13765 * selftest.h (edit_context_c_tests): New decl.
13766
13767 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13768 Richard Biener <rguenth@suse.de>
13769
13770 PR tree-optimization/77444
13771 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13772 as steptype, remove redundant initialization.
13773
13774 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13775
13776 PR sanitizer/77396
13777 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13778 (sanopt_optimize_walker): Optimize away
13779 __asan_before_dynamic_init (...) followed by
13780 __asan_after_dynamic_init () without intervening memory loads/stores.
13781 * ipa-pure-const.c (special_builtin_state): Handle
13782 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13783 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13784
13785 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13786
13787 * cfg.c (free_original_copy_tables): Replace second assignment of
13788 bb_copy = NULL by bb_original = NULL.
13789
13790 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13791
13792 PR other/77421
13793 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13794 assignment added in r216794.
13795
13796 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13797
13798 * Makefile.in (OBJS): Add typed-splay-tree.o.
13799 * selftest-run-tests.c (selftest::run_tests): Call
13800 typed_splay_tree_c_tests.
13801 * selftest.h (typed_splay_tree_c_tests): New decl.
13802 * typed-splay-tree.c: New file.
13803 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13804 (typed_splay_tree::max): New method.
13805 (typed_splay_tree::min): New method.
13806 (typed_splay_tree::foreach): New method.
13807 (typed_splay_tree::closure): New struct.
13808 (typed_splay_tree::inner_foreach_fn): New function.
13809
13810 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13811
13812 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13813 -fipa-cp-bit to -fipa-bit-cp.
13814
13815 2016-09-01 Martin Sebor <msebor@redhat.com>
13816
13817 PR tree-optimization/71831
13818 * tree-object-size.h: Return bool instead of the size and add
13819 argument for the size.
13820 * tree-object-size.c (compute_object_offset): Update signature.
13821 (addr_object_size): Same.
13822 (compute_builtin_object_size): Return bool instead of the size
13823 and add argument for the size. Handle POINTER_PLUS_EXPR when
13824 optimization is disabled.
13825 (expr_object_size): Adjust.
13826 (plus_stmt_object_size): Adjust.
13827 (pass_object_sizes::execute): Adjust.
13828 * builtins.c (fold_builtin_object_size): Adjust.
13829 * doc/extend.texi (Object Size Checking): Update.
13830 * ubsan.c (instrument_object_size): Adjust.
13831
13832 2016-09-01 Martin Sebor <msebor@redhat.com>
13833
13834 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13835 it fits the output of the formatted function regardless of its
13836 arguments.
13837 * genmodes.c (parser::parse_expr): Same.
13838 * gimplify.c (gimplify_asm_expr): Same.
13839 * passes.c (pass_manager::register_one_dump_file): Same.
13840 * print-tree.c (print_node): Same.
13841
13842 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13843
13844 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13845
13846 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13847
13848 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13849
13850 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13851
13852 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13853 * config/rs6000/vector.md: Ditto.
13854 * config/rs6000/vsx.md: Ditto.
13855
13856 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13857
13858 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13859 first in all cases.
13860
13861 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13862
13863 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13864 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13865 *return_and_restore_gpregs_<mode>_r11,
13866 *return_and_restore_gpregs_<mode>_r12,
13867 *return_and_restore_gpregs_<mode>_r1,
13868 *return_and_restore_fpregs_<mode>_r11,
13869 *return_and_restore_fpregs_<mode>_r12,
13870 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13871 directly instead of via the "l" constraint. Renumber operands.
13872 Fix whitespace.
13873
13874 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13875
13876 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13877 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13878 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13879 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13880 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13881 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13882 *call_value_nonlocal_darwin64, reload_macho_picbase,
13883 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13884 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13885 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13886 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13887 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13888 *save_fpregs_<mode>_r1): Ditto.
13889 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13890 *return_and_restore_gpregs_spe): Ditto.
13891
13892 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13893
13894 * config/rs6000/rs6000.md
13895 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13896 the use of the link register.
13897 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13898
13899 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13900 Michael Meissner <meissner@linux.vnet.ibm.com>
13901
13902 PR target/72827
13903 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13904 reg+reg addressing for TImode.
13905 (rs6000_legitimate_address_p): Only allow register indirect
13906 addressing for TImode, even without TARGET_QUAD_MEMORY.
13907
13908 2016-09-01 Richard Biener <rguenther@suse.de>
13909
13910 PR middle-end/77436
13911 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13912 check whether the result fits the desired result type.
13913
13914 2016-09-01 Nathan Sidwell <nathan@acm.org>
13915
13916 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13917
13918 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13919
13920 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13921 New function.
13922 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13923
13924 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13925
13926 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13927 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13928 for comparisons of integer ZERO_EXTEND against zero.
13929
13930 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13931
13932 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13933 STV pass if -mstackrealign is enabled.
13934
13935 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13936
13937 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13938 AVX512IFMA.
13939
13940 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13941
13942 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13943 (layout_range::intersects_line_p): New method.
13944 (test_range_contains_point_for_single_point): Rename to...
13945 (test_layout_range_for_single_point): ...this, and add testing
13946 for layout_range::intersects_line_p.
13947 (test_range_contains_point_for_single_line): Rename to...
13948 (test_layout_range_for_single_line): ...this, and add testing
13949 for layout_range::intersects_line_p.
13950 (test_range_contains_point_for_multiple_lines): Rename to...
13951 (test_layout_range_for_multiple_lines): ...this, and add testing
13952 for layout_range::intersects_line_p.
13953 (layout::layout): Populate m_fixit_hints.
13954 (layout::get_expanded_location): Handle the case of a line-span
13955 for a fix-it hint.
13956 (layout::validate_fixit_hint_p): New method.
13957 (get_line_span_for_fixit_hint): New function.
13958 (layout::calculate_line_spans): Add spans for fixit-hints.
13959 (layout::should_print_annotation_line_p): New method.
13960 (layout::print_any_fixits): Drop param "richloc", instead using
13961 validated fixits in m_fixit_hints. Add "const" to hint pointers.
13962 (diagnostic_show_locus): Avoid printing blank annotation lines.
13963 (selftest::test_diagnostic_context::test_diagnostic_context):
13964 Initialize show_column and start_span.
13965 (selftest::test_diagnostic_context::start_span_cb): New static
13966 function.
13967 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
13968 (selftest::diagnostic_show_locus_c_tests): Update for function
13969 renamings. Call test_diagnostic_show_locus_fixit_lines.
13970
13971 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13972
13973 PR tree-optimization/73714
13974 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
13975
13976 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13977
13978 * selftest.c: Move "namespace selftest {" to top of file,
13979 removing explicit "selftest::" qualifiers throughout.
13980
13981 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
13982
13983 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
13984 New types.
13985 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
13986 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
13987 Replace builtin with vector extension.
13988 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
13989 New types.
13990 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
13991 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
13992 Replace builtin with vector extension.
13993 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
13994 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
13995 Replace builtin with vector extension.
13996 * config/i386/xmmintrin.h (__m128_u): New type.
13997 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
13998 (_mm_load_ps, _mm_store_ps): Simplify.
13999
14000 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
14001
14002 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
14003
14004 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14005
14006 * diagnostic-show-locus.c (colorizer::begin_state): Support more
14007 than 3 ranges per diagnostic by alternating between color 1 and
14008 color 2.
14009 (layout::layout): Replace use of rich_location::MAX_RANGES
14010 with richloc->get_num_locations ().
14011 (layout::calculate_line_spans): Replace use of
14012 rich_location::MAX_RANGES with m_layout_ranges.length ().
14013 (layout::print_annotation_line): Handle arbitrary numbers of
14014 ranges in caret-printing by defaulting to '^'.
14015 (selftest::test_one_liner_many_fixits): New function.
14016 (test_diagnostic_show_locus_one_liner): Call it.
14017 * diagnostic.c (diagnostic_initialize): Update for renaming
14018 of rich_location::MAX_RANGES to
14019 rich_location::STATICALLY_ALLOCATED_RANGES.
14020 * diagnostic.h (struct diagnostic_context): Likewise.
14021
14022 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14023
14024 * selftest.c (selftest::named_temp_file::named_temp_file): New
14025 ctor.
14026 (selftest::temp_source_file::~temp_source_file): Move to...
14027 (selftest::named_temp_file::~named_temp_file): ...here.
14028 (selftest::test_named_temp_file): New function.
14029 (selftest::selftest_c_tests): Call test_named_temp_file.
14030 * selftest.h (class named_temp_file): New class.
14031 (class temp_source_file): Convert to a subclass of named_temp_file.
14032
14033 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
14034
14035 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14036 USEs of LR_REGNO in returns and sibcalls.
14037 (rs6000_output_mi_thunk): Similar.
14038 (rs6000_sibcall_aix): Similar.
14039 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14040 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14041 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14042 Remove the USE of LR_REGNO from the patterns as well. Delete an
14043 obsolete comment.
14044 (return_internal_<mode>): Delete.
14045
14046 2016-08-30 Tamar Christina <tamar.christina@arm.com>
14047
14048 * config/aarch64/aarch64-simd.md
14049 (aarch64_ld2<mode>_dreg_le): New.
14050 (aarch64_ld2<mode>_dreg_be): New.
14051 (aarch64_ld2<mode>_dreg): Removed.
14052 (aarch64_ld3<mode>_dreg_le): New.
14053 (aarch64_ld3<mode>_dreg_be): New.
14054 (aarch64_ld3<mode>_dreg): Removed.
14055 (aarch64_ld4<mode>_dreg_le): New.
14056 (aarch64_ld4<mode>_dreg_be): New.
14057 (aarch64_ld4<mode>_dreg): Removed.
14058 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14059
14060 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14061
14062 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14063 redundant location param.
14064 (test_one_liner_fixit_remove): Likewise.
14065 (test_one_liner_fixit_replace): Likewise.
14066 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14067 * gcc-rich-location.c
14068 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14069 get_range_from_loc. Drop overload taking a const char *.
14070 * gcc-rich-location.h
14071 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14072 a const char *.
14073
14074 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14075
14076 * config/linux.c (linux_libc_has_function): Return true on musl.
14077
14078 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14079
14080 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14081
14082 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14083
14084 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14085 used for abnormal egdes.
14086
14087 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14088
14089 PR tree-optimization/72866
14090 * tree-vect-patterns.c (search_type_for_mask): Turn into
14091 a small wrapper, move all code to ...
14092 (search_type_for_mask_1): ... this new function. Add caching
14093 and adjust recursive calls.
14094
14095 PR debug/77363
14096 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14097 instead of lookup_type_die (type_main_variant (type)) even for array
14098 types.
14099
14100 PR middle-end/77377
14101 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14102 constant pool reference return x instead of c.
14103
14104 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14105
14106 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14107 include MQ.
14108
14109 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14110
14111 * input.c
14112 (selftest::test_make_location_nonpure_range_endpoints): Fix
14113 header comment.
14114
14115 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14116
14117 * diagnostic-show-locus.c
14118 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14119 function.
14120 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14121 * input.c (get_pure_location): Move to libcpp/line-map.c.
14122 * input.h (get_pure_location): Convert decl to an inline function
14123 calling implementation in libcpp.
14124
14125 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14126
14127 PR target/77403
14128 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14129 template for intel asm dialect.
14130 (vec_set_hi_<mode><mask_name>): Ditto.
14131
14132 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14133
14134 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14135 (selftest::fail_formatted): Likewise.
14136
14137 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14138
14139 * input.c (make_location): Call get_start and get_finish
14140 on the endpoints to avoid storing packed ranges or ad-hoc
14141 ranges in them.
14142 (selftest::test_make_location_nonpure_range_endpoints): New function.
14143 (selftest::input_c_tests): Call it.
14144 * input.h (get_start): New inline function.
14145
14146 2016-08-29 Tom de Vries <tom@codesourcery.com>
14147
14148 PR c/77398
14149 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14150 with assert.
14151
14152 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14153
14154 * Makefile.in (gcov-iov.h): Add dummy recipe.
14155
14156 2016-08-29 Nathan Sidwell <nathan@acm.org>
14157
14158 * config/nvptx/nvptx.c: #include tree-vrp.h.
14159
14160 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14161
14162 PR target/77324
14163 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14164 HIGH+LO construct during reload.
14165
14166 2016-08-28 Tom de Vries <tom@codesourcery.com>
14167
14168 PR lto/70955
14169 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14170 'sysv_abi va_list' attribute.
14171 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14172 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14173 attributes.
14174
14175 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14176
14177 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14178 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14179 (unshare_all_rtl_again): Likewise.
14180 * function.c (assign_stack_local_1): Likewise.
14181 (assign_stack_temp_for_type): Likewise.
14182
14183 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14184
14185 * cfgbuild.c (make_edges): Adjust.
14186 * cfgrtl.c (can_delete_label_p): Likewise.
14187 * dwarf2cfi.c (create_trace_edges): Likewise.
14188 * except.c (sjlj_emit_dispatch_table): Likewise.
14189 * function.h (struct expr_status): make x_forced_labels a vector.
14190 * jump.c (rebuild_jump_labels_1): Adjust.
14191 * reload1.c (set_initial_label_offsets): Likewise.
14192 * stmt.c (force_label_rtx): Likewise.
14193 (expand_label): Likewise.
14194
14195 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14196
14197 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14198
14199 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14200
14201 PR tree-optimization/71077
14202 PR tree-optimization/68542
14203 * fold-const.c (fold_relational_const): Fix folding of
14204 VECTOR_CST comparisons that have a scalar boolean result type.
14205 (selftest::test_vector_folding): New static function.
14206 (selftest::fold_const_c_tests): Call it.
14207
14208 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14209
14210 * doc/extend.texi (SPU Built-in Functions): Remove stale
14211 references to material formerly at IBM and Sony.
14212
14213 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14214
14215 PR target/77349
14216 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14217
14218 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14219
14220 * diagnostic-show-locus.c
14221 (selftest::test_fixit_consolidation): New function.
14222 (selftest::diagnostic_show_locus_c_tests): Call it.
14223 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14224 constructor based on source_range.
14225
14226 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14227
14228 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14229 "fixit-delete".
14230 (parse_gcc_colors): Update description of default GCC_COLORS.
14231 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14232 (colorizer::set_fixit_insert): New method.
14233 (colorizer::set_fixit_delete): New method.
14234 (colorizer::get_color_by_name): New method.
14235 (colorizer::STATE_FIXIT_INSERT): New constant.
14236 (colorizer::STATE_FIXIT_DELETE): New constant.
14237 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14238 fields in favor of new field "m_stop_color". Add fields
14239 "m_fixit_insert" and "m_fixit_delete".
14240 (colorizer::colorizer): Update for above changes. Replace
14241 colorize_start calls with calls to get_color_by_name.
14242 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14243 STATE_FIXIT_DELETE. Update for field renamings.
14244 (colorizer::finish_state): Simplify by using m_stop_color,
14245 rather than multiple identical "*_ce" fields.
14246 (colorizer::get_color_by_name): New method.
14247 (layout::print_any_fixits): Print insertions and replacements
14248 using the "fixit-insert" color, and deletions using the
14249 "fixit-delete" color.
14250 * doc/invoke.texi (-fdiagnostics-color): Update description of
14251 default GCC_COLORS, and of the supported capabilities.
14252
14253 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14254
14255 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14256 current_function_static_stack_size variable with the static
14257 stack frame size of the current function when
14258 flag_stack_usage_info is enabled.
14259
14260 2016-08-26 Nathan Sidwell <nathan@acm.org>
14261
14262 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14263 assignment inside if condition.
14264
14265 2016-08-26 Richard Biener <rguenther@suse.de>
14266
14267 PR tree-optimization/69047
14268 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14269 extracts similar to what FRE does.
14270 (non_rewritable_mem_ref_base): Likewise.
14271
14272 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14273
14274 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14275 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14276 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14277 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14278 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14279 Likewise.
14280 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14281 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14282 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14283 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14284 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14285
14286 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14287
14288 PR target/70473
14289 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14290 reservation duration to 15 cycles.
14291 (cortex_a8_vfp_macs): Likewise.
14292 (cortex_a8_vfp_macd): Likewise.
14293 (cortex_a8_vfp_divs): Likewise.
14294 (cortex_a8_vfp_divd): Likewise.
14295
14296 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14297
14298 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14299 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14300
14301 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14302 Martin Jambhor <mjambor@suse.cz>
14303
14304 * common.opt: New option -fipa-bit-cp.
14305 * doc/invoke.texi: Document -fipa-bit-cp.
14306 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14307 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14308 * tree-ssa-ccp.h: New header file.
14309 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14310 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14311 Replace all occurences of tree parameter by two new params: signop, int.
14312 (bit_value_unop_1): Change to bit_value_unop and export it.
14313 Replace all occurences of tree parameter by two new params: signop,
14314 int.
14315 (bit_value_binop): Change call from bit_value_binop_1 to
14316 bit_value_binop.
14317 (bit_value_assume_aligned): Likewise.
14318 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14319 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14320 to ccp_finalize.
14321 (ccp_finalize): Skip processing if val->mask == 0.
14322 * ipa-cp.c: Include tree-ssa-ccp.h
14323 (ipcp_bits_lattice): New class.
14324 (ipcp_param_lattice (bits_lattice): New member.
14325 (print_all_lattices): Call ipcp_bits_lattice::print.
14326 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14327 (initialize_node_lattices): Likewise.
14328 (propagate_bits_accross_jump_function): New function.
14329 (propagate_constants_accross_call): Call
14330 propagate_bits_accross_jump_function.
14331 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14332 (ipcp_store_bits_results): New function.
14333 (ipcp_driver): Call ipcp_store_bits_results.
14334 * ipa-prop.h (ipa_bits): New struct.
14335 (ipa_jump_func): Add new member bits of type ipa_bits.
14336 (ipa_param_descriptor): Change decl to decl_or_type.
14337 (ipa_get_param): Change decl to decl_or_type and assert on
14338 PARM_DECL.
14339 (ipa_get_type): New function.
14340 (ipcp_transformation_summary): New member bits.
14341 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14342 (ipa_populate_param_decls): Likewise.
14343 (ipa_dump_param): Likewise.
14344 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14345 function.
14346 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14347 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14348 propagation.
14349 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14350 (ipa_write_jump_function): Add streaming for ipa_bits.
14351 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14352 (write_ipcp_transformation_info): Add streaming for ipa_bits
14353 summary for ltrans.
14354 (read_ipcp_transfomration_info): Add support for reading streamed
14355 ipa_bits.
14356 (ipcp_update_bits): New function.
14357 (ipcp_transform_function): Call ipcp_update_bits.
14358
14359 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14360
14361 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14362 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14363
14364 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14365
14366 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14367
14368 2016-08-25 Richard Biener <rguenther@suse.de>
14369
14370 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14371 Only add locations in late dwarf.
14372 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14373 (dwarf2out_early_finish): But do it here.
14374
14375 2016-08-24 Michael Collison <michael.collison@linaro.org>
14376 Michael Collison <michael.collison@arm.com>
14377
14378 * config/arm/arm-modes.def: Add new condition code mode CC_V
14379 to represent the overflow bit.
14380 * config/arm/arm.c (maybe_get_arm_condition_code):
14381 Add support for CC_Vmode.
14382 (arm_gen_unlikely_cbranch): New function to generate common
14383 rtl conditional branches for overflow patterns.
14384 * config/arm/arm-protos.h: Add prototype for
14385 arm_gen_unlikely_cbranch.
14386 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14387 addsi3_compareV_upper): New patterns to support signed
14388 builtin overflow add operations.
14389 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14390 New patterns to support unsigned builtin add overflow operations.
14391 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14392 builtin overflow subtract operations,
14393 (usubv<mode>4): New patterns to support unsigned builtin subtract
14394 overflow operations.
14395 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14396 to support builtin overflow negate operations.
14397
14398 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14399
14400 Revert
14401 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14402
14403 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14404 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14405 needed.
14406
14407 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14408
14409 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14410 MULTILIB_OPTIONS should be used. Small wording fixes.
14411 * genmultilib: Memorize set of all option combinations in
14412 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14413 found in MULTILIB_OPTIONS by checking if option set is listed in
14414 combination_space. Output new and existing error message to stderr.
14415
14416 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14417
14418 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14419 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14420 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14421 (MULTILIB_REUSE): Remove reuse rules for option set including
14422 -mfpu=fp-armv8 and -mfpu=vfpv4
14423
14424 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14425
14426 * config/arm/t-rtems: Add vfp multilib.
14427
14428 2016-08-23 Ian Lance Taylor <iant@golang.org>
14429
14430 * config/s390/s390.c (s390_asm_file_start): Call
14431 default_file_start.
14432
14433 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14434
14435 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14436 initialization of all 0's to the 0 constant, instead of directly
14437 generating XOR. Add support for V4SImode vector initialization on
14438 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14439 initialization. Change variables used in V4SFmode vector
14440 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14441 any memory addresses are in index form. Add support for using
14442 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14443 with all of the same element.
14444 (regno_or_subregno): New helper function to return a register
14445 number for either REG or SUBREG.
14446 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14447 Use regno_or_subregno where possible.
14448 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14449 DImode value from two SImode values in order to generate V4SImode
14450 vector initialization on 64-bit systems with direct move.
14451 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14452 initialization.
14453 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14454 swappable.
14455 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14456 declaration.
14457 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14458 attributes to initialize V8HImode and V16QImode vectors with the
14459 same element.
14460 (VSX_SPLAT_COUNT): Likewise.
14461 (VSX_SPLAT_SUFFIX): Likewise.
14462 (UNSPEC_VSX_VEC_INIT): New unspec.
14463 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14464 Allow SFmode values to come from Altivec registers.
14465 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14466 on 64-bit systems with direct move.
14467 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14468 vector initializations, to allow V4SImode vector initializations
14469 on 64-bit systems with direct move.
14470 (vsx_splat_v4si): Likewise.
14471 (vsx_splat_v4si_di): Likewise.
14472 (vsx_splat_v4sf): Likewise.
14473 (vsx_splat_v4sf_internal): Likewise.
14474 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14475 register classes.
14476 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14477 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14478 initializing V8HImode and V16QImode vectors with the same
14479 element.
14480 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14481 optimization if -maltivec=be.
14482
14483 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14484
14485 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14486 attribute for alternatives 3 and 4.
14487
14488 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14489
14490 * selftest.c (selftest::assert_str_contains): New function.
14491 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14492 * selftest.h (selftest::assert_str_contains): New decl.
14493 (ASSERT_STR_CONTAINS): New macro.
14494
14495 2016-08-23 Richard Biener <rguenther@suse.de>
14496
14497 PR tree-optimization/77286
14498 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14499 the CFG here.
14500 (vect_transform_loop): Split exit edges of loop and scalar
14501 loop if required and at the appropriate time.
14502
14503 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14504
14505 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14506 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14507 needed.
14508 Correct a typo in a comment.
14509
14510 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14511
14512 * config/s390/s390.md ("*andc_split"): New splitter for and with
14513 complement.
14514
14515 2016-08-23 Richard Biener <rguenther@suse.de>
14516
14517 PR tree-optimization/27336
14518 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14519 by looking for a non-EH edge.
14520 (process_assert_insertions_for): Likewise.
14521
14522 2016-08-23 Richard Biener <rguenther@suse.de>
14523
14524 PR middle-end/77305
14525 * statistics.c (statistics_counter_event): Robustify against
14526 NULL current_pass.
14527
14528 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14529
14530 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14531 for targets amdfam10 and barcelona.
14532
14533 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14534
14535 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14536 (zero_extend<mode>di2): Ditto.
14537 (*zero_extend<mode>si2): Ditto.
14538 (*zero_extendqihi2): Ditto.
14539
14540 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14541
14542 PR middle-end/77269
14543 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14544 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14545
14546 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14547
14548 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14549 identical consecutive elements.
14550 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14551 the node's def stmt, avoid printing an unwanted trailing newline by
14552 replacing the call to print_gimple_stmt() with its inlined body and
14553 adjusting it to not set pp_needs_newline and to call pp_flush()
14554 instead of pp_newline_and_flush().
14555
14556 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14557
14558 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14559 (float32_type_node, float64_type_node, float32x_type_node)
14560 (float128x_type_node): New macros.
14561 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14562 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14563 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14564 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14565 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14566 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14567 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14568 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14569 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14570 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14571 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14572 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14573 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14574 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14575 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14576 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14577 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14578 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14579 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14580 and copysign.
14581 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14582 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14583 * doc/extend.texi (Other Builtins): Document these built-in
14584 functions.
14585 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14586 for nan and nans.
14587
14588 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14589
14590 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14591
14592 2016-08-22 Richard Biener <rguenther@suse.de>
14593
14594 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14595
14596 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14597
14598 PR target/77270
14599 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14600 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14601 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14602
14603 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14604
14605 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14606 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14607 (vrp_visit_switch_stmt): Likewise.
14608 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14609 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14610 (vrp_visit_stmt): Use extract_range_from_stmt.
14611 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14612
14613 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14614
14615 * Makefile.in: Add tree-vrp.h to GTFILES.
14616 * gengtype.c (open_base_files): Add tree-vrp.h.
14617 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14618 * builtins.c: Likewise.
14619 * fold-const.c: Likewise.
14620 * gimple-builder.c: Likewise.
14621 * gimple-laddress.c: Likewise.
14622 * hsa-gen.c: Likewise.
14623 * internal-fn.c: Likewise.
14624 * ssa.h: Likewise.
14625 * targhooks.c: Liewise,
14626 * tree-ssa-address.c: Likewise.
14627 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14628 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14629 * tree-vrp.h: New file.
14630
14631 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14632
14633 PR tree-optimization/61839
14634 * tree-vrp.c (two_valued_val_range_p): New.
14635 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14636 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14637 Also Convert VAR BINOP CST where VAR is two-valued to
14638 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14639
14640 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14641
14642 * diagnostic-show-locus.c
14643 (layout::annotation_line_showed_range_p): New method.
14644 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14645 Reimplement case fixit_hint::REPLACE to cover removals, and
14646 replacements where the range of the replacement isn't one
14647 of the ranges in the rich_location.
14648 (test_one_liner_fixit_replace): Likewise.
14649 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14650 function.
14651 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14652 New function.
14653 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14654 functions.
14655 * diagnostic.c (print_parseable_fixits): Remove case
14656 fixit_hint::REMOVE.
14657
14658 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14659
14660 PR target/77270
14661 * config/i386/i386.c (ix86_option_override_internal): Remove
14662 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14663 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14664 Do not try to enable TARGET_PRFCHW ISA flag here.
14665 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14666 Rewrite expander function body.
14667 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14668
14669 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14670
14671 PR c/32187
14672 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14673 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14674 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14675 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14676 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14677 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14678 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14679 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14680 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14681 tree_index values.
14682 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14683 macros.
14684 (struct floatn_type_info): New structure type.
14685 (floatn_nx_types): New variable declaration.
14686 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14687 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14688 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14689 * tree.c (floatn_nx_types): New variable.
14690 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14691 corresponding complex types.
14692 * target.def (floatn_mode): New hook.
14693 * targhooks.c: Include "real.h".
14694 (default_floatn_mode): New function.
14695 * targhooks.h (default_floatn_mode): New prototype.
14696 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14697 types.
14698 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14699 effective-target and dg-add-options keywords.
14700 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14701 Document new effective-target keywords.
14702 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14703 * doc/tm.texi: Regenerate.
14704 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14705 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14706 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14707 18661-3.
14708 * real.h (struct real_format): Add field ieee_bits.
14709 * real.c (ieee_single_format, mips_single_format)
14710 (motorola_single_format, spu_single_format, ieee_double_format)
14711 (mips_double_format, motorola_double_format)
14712 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14713 (ieee_extended_intel_128_format)
14714 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14715 (mips_extended_format, ieee_quad_format, mips_quad_format)
14716 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14717 (decimal_double_format, decimal_quad_format, ieee_half_format)
14718 (arm_half_format, real_internal_format: Initialize ieee_bits
14719 field.
14720 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14721 float128_type_node. Set float80_type_node to float64x_type_node
14722 if appropriate and long_double_type_node not appropriate.
14723 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14724 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14725 Initialize ieee_bits field.
14726 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14727 (rs6000_init_builtins): Set ieee128_float_type_node to
14728 float128_type_node.
14729 (rs6000_floatn_mode): New function.
14730
14731 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14732
14733 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14734 _rdseed64_step): Uglify argument names and/or local variable names
14735 in inline functions.
14736 * config/i386/rtmintrin.h (_xabort): Likewise.
14737 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14738 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14739 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14740 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14741 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14742 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14743 _mm_maskz_ternarylogic_epi32): Likewise.
14744 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14745 __lwpins32, __lwpins64): Likewise.
14746 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14747 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14748 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14749 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14750 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14751 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14752 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14753 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14754 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14755 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14756 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14757 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14758 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14759 _mm256_mask_i64gather_epi32): Likewise.
14760 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14761 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14762 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14763 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14764 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14765 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14766 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14767 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14768 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14769 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14770 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14771 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14772 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14773 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14774 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14775 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14776 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14777 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14778
14779 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14780 returning void.
14781 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14782 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14783 Likewise.
14784 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14785 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14786 function name.
14787 (_rdpkru_u32): Add space after function name.
14788
14789 * config/i386/t-i386 (i386-c.o): Don't depend on
14790 i386-builtin-types.inc.
14791 (i386.o): Depend on i386-builtin-types.inc.
14792
14793 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14794
14795 PR target/77281
14796 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14797 Use const_vec_duplicate to check for duplicated elements.
14798
14799 2016-08-19 Richard Biener <rguenther@suse.de>
14800
14801 PR tree-optimization/77290
14802 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14803 Fix flag_tree_parallelize_loops check.
14804
14805 2016-08-19 Richard Biener <rguenther@suse.de>
14806
14807 * match.pd (x | 0 -> x): Add.
14808
14809 2016-08-19 Richard Biener <rguenther@suse.de>
14810
14811 PR tree-optimization/77286
14812 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14813 Deal with virtual PHIs being out-of-order.
14814
14815 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14816
14817 * doc/invoke.texi (fverbose-asm): Note that source code lines
14818 are emitted, and provide an example.
14819 * final.c (asm_show_source): New function.
14820 (final_scan_insn): Call asm_show_source.
14821
14822 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14823
14824 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14825 param with diagnostic_kind.
14826 (class colorizer): Similarly replace field m_diagnostic with
14827 m_diagnostic_kind.
14828 (colorizer::colorizer): Replace diagnostic
14829 param with diagnostic_kind.
14830 (colorizer::begin_state): Update for above field change.
14831 (layout::layout): Replace diagnostic param with rich_location *
14832 and diagnostic_kind.
14833 (diagnostic_show_locus): Replace diagnostic param with richloc
14834 and diagnostic_kind.
14835 (class selftest::test_diagnostic_context): New class.
14836 (selftest::test_diagnostic_show_locus_unknown_location): New
14837 function.
14838 (selftest::test_one_liner_simple_caret): New function.
14839 (selftest::test_one_liner_caret_and_range): New function.
14840 (selftest::test_one_liner_multiple_carets_and_ranges): New
14841 function.
14842 (selftest::test_one_liner_fixit_remove): New function.
14843 (selftest::test_one_liner_fixit_replace): New function.
14844 (selftest::test_diagnostic_show_locus_one_liner): New function.
14845 (selftest::diagnostic_show_locus_c_tests): Call the new test
14846 functions.
14847 * diagnostic.c (diagnostic_initialize): Initialize
14848 colorize_source_p, show_ruler_p and parseable_fixits_p.
14849 (default_diagnostic_finalizer): Update for change to
14850 diagnostic_show_locus.
14851 (diagnostic_append_note): Likewise.
14852 * diagnostic.h (diagnostic_show_locus): Replace
14853 const diagnostic_info * param with location * and diagnostic_t.
14854
14855 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14856
14857 * input.c (saved_line_table): New global.
14858 (class selftest::temp_line_table): Rename to line_table_test and
14859 move declaration to selftest.h, and drop field m_old_line_table.
14860 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14861 (selftest::line_table_test::line_table_test): ...this. Add a
14862 default ctor. Store current value of line_table within
14863 saved_line_table.
14864 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14865 (selftest::line_table_test::~line_table_test): ...this, and
14866 restore line_table from the saved_line_table, rather than
14867 m_old_line_table.
14868 (selftest::test_accessing_ordinary_linemaps): Update for above
14869 renaming.
14870 (selftest::test_lexer): Likewise.
14871 (struct selftest::lexer_test): Likewise.
14872 (selftest::lexer_test::lexer_test): Likewise.
14873 (selftest::input_c_tests): Move the looping over test cases from
14874 here into...
14875 (selftest::for_each_line_table_case): New function.
14876 * input.h (saved_line_table): New decl.
14877 * selftest.h (struct selftest::line_table_case): New forward decl.
14878 (class selftest::line_table_test): New class, moved here from
14879 selftest::temp_line_table in input.c, and renamed.
14880 (selftest::for_each_line_table_case): New decl.
14881
14882 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14883
14884 PR target/72839
14885 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14886
14887 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14888
14889 PR middle-end/70895
14890 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14891 enclosing parallel construct for reduction variables on OpenACC loop
14892 directives.
14893
14894 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14895
14896 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14897 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14898 -gdwarf-3.
14899 (function_to_dwarf_procedure): Update comment.
14900
14901 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14902
14903 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14904 function.
14905 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14906 declaration.
14907 * selftest.c (selftest::temp_source_file::~temp_source_file):
14908 Evict m_filename from the diagnostic file cache.
14909
14910 2016-08-18 Richard Biener <rguenther@suse.de>
14911
14912 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14913 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14914 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14915 clone materialization.
14916 * passes.def (all_late_ipa_passes): Start with
14917 pass_materialize_all_clones.
14918 * cgraphunit.c (symbol_table::compile): Remove call to
14919 materialize_all_clones.
14920 * tree-into-ssa.c: Include statistics.h.
14921 (update_ssa): Count number of times we do incremental/rewrite
14922 SSA update.
14923
14924 2016-08-18 Richard Biener <rguenther@suse.de>
14925
14926 PR tree-optimization/77282
14927 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14928 When doing auto-parallelizing also prevent use of PHIs that
14929 carry dependences across loop backedges.
14930
14931 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14932 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14933
14934 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14935
14936 2016-08-18 Richard Biener <rguenther@suse.de>
14937
14938 * ssa-iterators.h (ssa_vuse_operand): New inline.
14939 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14940 (predicate_all_scalar_phis): Use remove_phi_node to remove
14941 phi nodes predicated. Delay removing virtual PHIs.
14942 (predicate_mem_writes): Update virtual operands.
14943 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14944 (tree_if_conversion): Do not rewrite virtual SSA form.
14945 * tree-phinodes.c (release_phi_node): Make static.
14946 * tree-phinodes.h (release_phi_node): Remove.
14947
14948 2016-08-18 Jakub Jelinek <jakub@redhat.com>
14949
14950 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
14951 codes that appear in bdesc_* arrays, instead include i386-builtin.def
14952 twice to define those.
14953 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
14954 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
14955 bdesc_multi_arg): Define by including i386-builtin.def the third time.
14956 * config/i386/i386-builtin.def: New file.
14957
14958 2016-08-17 David Malcolm <dmalcolm@redhat.com>
14959
14960 * input.c (get_source_range_for_char): Rename to...
14961 (selftest::get_source_range_for_char): ...this, and move within
14962 the #if CHECKING_P guard.
14963 (get_num_source_ranges_for_substring): Rename to...
14964 (selftest::get_num_source_ranges_for_substring): ...this, move
14965 within the #if CHECKING_P guard, and make static.
14966 (selftest::assert_num_substring_ranges): Initialize
14967 actual_num_ranges.
14968
14969 2016-08-18 Alan Modra <amodra@gmail.com>
14970
14971 PR rtl-optimization/72771
14972 * reload.c (find_reloads): Don't assume that a subreg mem is OK
14973 when find_reloads_toplev returns address_reloaded==-1.
14974 (alternative_allows_const_pool_ref): Update comment.
14975
14976 2015-08-17 Alan Hayward <alan.hayward@arm.com>
14977
14978 PR tree-optimization/71752
14979 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
14980 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
14981
14982 2016-08-17 Jakub Jelinek <jakub@redhat.com>
14983
14984 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
14985 instead of testing ECF_NORETURN bit in gimple_call_flags.
14986 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
14987 * predict.c (tree_bb_level_predictions): Likewise.
14988 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
14989
14990 PR middle-end/77259
14991 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
14992 turning a call into __builtin_unreachable-like noreturn call, adjust
14993 gimple_call_set_fntype.
14994 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
14995 gimple_call_fntype has void return type.
14996
14997 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
14998
14999 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
15000 maybe_lookup_decl, to handle nested acc loop directives.
15001
15002 2016-08-17 Richard Biener <rguenther@suse.de>
15003
15004 PR tree-optimization/76490
15005 * tree-vrp.c (update_value_range): Preserve overflow infinities
15006 when intersecting with ranges from get_range_info.
15007 (operand_less_p): Handle overflow infinities correctly.
15008 (value_range_constant_singleton): Use vrp_operand_equal_p
15009 to handle overflow max/min correctly.
15010 (vrp_valueize): Likewise.
15011 (union_ranges): Likewise.
15012 (intersect_ranges): Likewise.
15013 (vrp_visit_phi_node): Improve iteration limitation to only
15014 apply when we'll possibly re-visit the PHI via a changed argument
15015 on the backedge.
15016
15017 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
15018
15019 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15020 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15021 rather than those that should not be built.
15022
15023 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
15024
15025 PR target/66488
15026 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15027
15028 2016-08-17 Richard Biener <rguenther@suse.de>
15029
15030 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15031 (verify_vssa): New function verifying virtual SSA form.
15032 (verify_ssa): Call it.
15033 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15034 Do not apply loop-closed SSA handling to virtuals.
15035 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15036 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15037 when rewriting their symbol.
15038 (prepare_def_site_for): Likewise.
15039 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15040 operands of moved stmts.
15041
15042 2016-08-17 Richard Biener <rguenther@suse.de>
15043
15044 PR tree-optimization/23855
15045 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15046 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15047 find guards to hoist. Do not update SSA form but rewrite virtuals
15048 into loop closed SSA.
15049 (find_loop_guard): Adjust to skip already hoisted guards. Do
15050 not mark virtuals for renaming or update SSA form.
15051
15052 2016-08-17 Martin Liska <mliska@suse.cz>
15053
15054 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15055 a LONG_LONG_TYPE_SIZE comparison.
15056 * gcov-io.h: Remove macro definitions.
15057 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15058 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15059 comparison.
15060
15061 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15062
15063 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15064 that builtins not mentioned in bdesc_* arrays come first, then
15065 the ones mentioned in bdesc_* arrays in the order they appear in
15066 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15067 IX86_BUILTIN__BDESC_*_LAST enumerator.
15068 (bdesc_mpx): Fix up a comment typo.
15069 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15070 __builtin_ia32_vpcomneu[bwdq] builtins.
15071 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15072 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15073 enum ix86_builtins ordering.
15074 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15075 for direct bdesc_* array member access instead of searching all the
15076 arrays until an fcode match is found.
15077
15078 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15079
15080 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15081 pattern as define_insn_and_split. Split insn before reload to
15082 ashl<mode>3_1.
15083 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15084 <shift_insn><mode>3_1.
15085 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15086 <rotate_insn><mode>3_1.
15087
15088 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15089
15090 PR c/72857
15091 * input.c (get_source_range_for_substring): Rename to...
15092 (get_source_location_for_substring): ...this, adding param
15093 "caret_idx", and converting output param from source_range * to
15094 location_t *.
15095 (get_source_range_for_char): New function.
15096 (get_num_source_ranges_for_substring): Update comment to reflect
15097 above renaming.
15098 (assert_char_at_range): Update to use get_source_range_for_char
15099 rather than get_source_range_for_substring.
15100 (test_lexer_string_locations_concatenation_2): Likewise.
15101 * substring-locations.h (get_source_range_for_substring): Rename
15102 to...
15103 (get_source_location_for_substring): ...this, and adding param
15104 "caret_idx", and converting output param from source_range * to
15105 location_t *.
15106
15107 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15108
15109 * input.c (class selftest::temp_source_file): Move to
15110 selftest.h.
15111 (selftest::temp_source_file::temp_source_file): Move to
15112 selftest.c.
15113 (selftest::temp_source_file::~temp_source_file): Likewise.
15114 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15115 here from input.c.
15116 (selftest::temp_source_file::~temp_source_file): Likewise.
15117 * selftest.h (class selftest::temp_source_file): Move here from
15118 input.c
15119
15120 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15121
15122 PR target/71910
15123 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15124 inlining, add cgraph edge for the added __builtin_unreachable call.
15125
15126 PR middle-end/67485
15127 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15128 only cast it to SHWI for the final comparison.
15129
15130 2016-08-16 Martin Liska <mliska@suse.cz>
15131
15132 PR gcov-profile/36412
15133 * doc/gcov.texi: Document --hash-filenames(-x).
15134 * gcov.c (print_usage): Add the option.
15135 (process_args): Process the option, sort options alphabetically.
15136 (md5sum_to_hex): New function.
15137 (make_gcov_file_name): Do the md5sum and append it to a
15138 filename.
15139
15140 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15141
15142 PR tree-optimization/69848
15143 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15144 and swtich operands to avoid additional NOT instruction.
15145 (vcond<v_cmp_mixed><mode>): Ditto.
15146 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15147
15148 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15149
15150 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15151
15152 2016-08-16 Richard Biener <rguenther@suse.de>
15153
15154 PR tree-optimization/76783
15155 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15156 BB visited flags at start.
15157
15158 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15159
15160 PR tree-optimization/72817
15161 PR tree-optimization/73450
15162 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15163 multiple_of_p for adjusted IV.base.
15164
15165 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15166
15167 PR target/72867
15168 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15169 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15170 for !flag_finite_math_only or flag_signed_zeros.
15171 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15172 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15173 depend on flag_finite_math_only.
15174 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15175 New insn pattern.
15176 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15177 (*ieee_smin<mode>3): Ditto.
15178 (*ieee_smax<mode>3): Ditto.
15179 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15180 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15181 flag_signed_zeros.
15182 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15183 depend on flag_finite_math_only.
15184 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15185 (*mmx_<code>v2sf3): Remove.
15186 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15187 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15188 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15189
15190 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15191
15192 PR rtl-optimization/73650
15193 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15194 it is not a simple move.
15195
15196 2016-08-15 Martin Liska <mliska@suse.cz>
15197
15198 PR driver/72765
15199 * gcc.c (do_spec_1): Call save_string with the right size.
15200 (save_string): Do an assert about string we copy.
15201
15202 2016-08-15 Richard Biener <rguenther@suse.de>
15203
15204 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15205 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15206 TV_MACH_DEP.
15207 (pass_data_stv): Likewise.
15208
15209 2016-08-15 Richard Biener <rguenther@suse.de>
15210
15211 PR tree-optimization/73434
15212 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15213 TBAA info on the base when forwarding a non-invariant address.
15214
15215 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15216
15217 * dwarf2out.c (struct checksum_attributes): Add
15218 at_string_length_bit_size and at_string_length_byte_size fields.
15219 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15220 and DW_AT_string_length_byte_size.
15221 (die_checksum_ordered): Handle at_string_length_bit_size and
15222 at_string_length_byte_size.
15223 (gen_array_type_die): For dwarf_version >= 5 emit
15224 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15225 (adjust_string_types): For dwarf_version >= 5 remove
15226 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15227 (resolve_addr): Likewise.
15228
15229 PR debug/71906
15230 * dwarf2out.c (string_types): New variable.
15231 (gen_array_type_die): Change early_dwarf handling of
15232 DW_AT_string_length, create DW_OP_call4 referencing the
15233 length var temporarily. Handle parameters that are pointers
15234 to string length.
15235 (adjust_string_types): New function.
15236 (gen_subprogram_die): Temporarily set string_types to local var,
15237 call adjust_string_types if needed.
15238 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15239 New functions.
15240 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15241
15242 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15243
15244 * doc/install.texi (*-*-solaris2*): Fix version number and document
15245 requirement on GNU make for building libjava with the Solaris linker.
15246
15247 2016-08-15 Martin Liska <mliska@suse.cz>
15248 Jakub Jelinek <jakub@redhat.com>
15249
15250 PR tree-optimization/72824
15251 * tree-loop-distribution.c (const_with_all_bytes_same)
15252 <case VECTOR_CST>: Fix a typo.
15253
15254 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15255
15256 PR target/76342
15257 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15258 Renamed from _mm512_undefined_si512.
15259 (_mm_undefined_si512): New definition.
15260
15261 2016-08-13 Richard Biener <rguenther@suse.de>
15262
15263 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15264 into PHIs and update the lattice for its def.
15265
15266 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15267
15268 PR c/71512
15269 * ubsan.c (instrument_si_overflow): Pass true instead of false
15270 to gsi_replace.
15271 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15272 of bbs. Return TODO_cleanup_cfg if any returned true.
15273
15274 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15275
15276 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15277 ISA 3.0 MTVSRDD instruction.
15278 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15279 vecperm.
15280
15281 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15282
15283 PR tree-optimization/71083
15284 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15285 bitfield access when possible.
15286
15287 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15288
15289 PR middle-end/71654
15290 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15291 sign-changing cast from a shorter unsigned type to a wider
15292 signed type.
15293
15294 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15295
15296 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15297 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15298 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15299
15300 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15301
15302 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15303 Correct costs for vec_construct.
15304
15305 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15306
15307 PR tree-optimization/69848
15308 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15309 type CONST_COND_REDUCTION.
15310 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15311 reudction type CONST_COND_REDUCTION.
15312
15313 2016-08-12 Richard Biener <rguenther@suse.de>
15314
15315 PR tree-optimization/57326
15316 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15317 returning an SSA name.
15318 (phi_translate_1): When fully_constant_expression returns a NAME
15319 make sure we have a leader for it.
15320
15321 2016-08-12 Martin Liska <mliska@suse.cz>
15322 Adam Fineman <afineman@afineman.com>
15323
15324 * gcov.c (process_file): Create .gcov file when .gcda
15325 file is missing.
15326
15327 2016-08-12 Marek Polacek <polacek@redhat.com>
15328
15329 PR c/7652
15330 * alias.c (find_base_value): Adjust fall through comment.
15331 * cfgexpand.c (expand_debug_expr): Likewise.
15332 * combine.c (find_split_point): Likewise.
15333 (expand_compound_operation): Likewise. Add FALLTHRU.
15334 (make_compound_operation): Adjust fall through comment.
15335 (canon_reg_for_combine): Add FALLTHRU.
15336 (force_to_mode): Adjust fall through comment.
15337 (simplify_shift_const_1): Likewise.
15338 (simplify_comparison): Likewise.
15339 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15340 FALLTHRU.
15341 * config/aarch64/predicates.md: Likewise.
15342 * config/i386/i386.c (function_arg_advance_32): Likewise.
15343 (ix86_gimplify_va_arg): Likewise.
15344 (print_reg): Likewise.
15345 (ix86_print_operand): Likewise.
15346 (ix86_build_const_vector): Likewise.
15347 (ix86_expand_branch): Likewise.
15348 (ix86_sched_init_global): Adjust fall through comment.
15349 (ix86_expand_args_builtin): Add FALLTHRU.
15350 (ix86_expand_builtin): Likewise.
15351 (ix86_expand_vector_init_one_var): Likewise.
15352 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15353 (rs6000_adjust_cost): Likewise.
15354 (insn_must_be_first_in_group): Likewise.
15355 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15356 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15357 * df-scan.c (df_uses_record): Likewise.
15358 * dojump.c (do_jump): Add FALLTHRU.
15359 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15360 comment.
15361 (resolve_args_picking_1): Adjust fall through comment.
15362 (loc_list_from_tree_1): Likewise.
15363 * expmed.c (make_tree): Likewise.
15364 * expr.c (expand_expr_real_2): Add FALLTHRU.
15365 (expand_expr_real_1): Likewise. Adjust fall through comment.
15366 * fold-const.c (const_binop): Adjust fall through comment.
15367 (fold_truth_not_expr): Likewise.
15368 (fold_cond_expr_with_comparison): Add FALLTHRU.
15369 (fold_binary_loc): Likewise.
15370 (contains_label_1): Adjust fall through comment.
15371 (multiple_of_p): Likewise.
15372 * gcov-tool.c (process_args): Add FALLTHRU.
15373 * genattrtab.c (check_attr_test): Likewise.
15374 (write_test_expr): Likewise.
15375 * genconfig.c (walk_insn_part): Likewise.
15376 * genpreds.c (validate_exp): Adjust fall through comment.
15377 (needs_variable): Likewise.
15378 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15379 (subst_dup): Likewise.
15380 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15381 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15382 (gimplify_scan_omp_clauses): Add FALLTHRU.
15383 (goa_stabilize_expr): Likewise.
15384 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15385 through comment.
15386 * hsa-gen.c (get_address_from_value): Likewise.
15387 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15388 * ira.c (ira_setup_alts): Add FALLTHRU.
15389 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15390 comment.
15391 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15392 * opts.c (common_handle_option): Likewise.
15393 * read-rtl.c (read_rtx_code): Likewise.
15394 * real.c (round_for_format): Likewise.
15395 * recog.c (asm_operand_ok): Likewise.
15396 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15397 * reload1.c (set_label_offsets): Likewise.
15398 (eliminate_regs_1): Likewise.
15399 (reload_reg_reaches_end_p): Likewise.
15400 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15401 (rtx_cost): Likewise.
15402 * sched-rgn.c (is_exception_free): Likewise.
15403 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15404 * stor-layout.c (int_mode_for_mode): Likewise.
15405 * toplev.c (print_to_asm_out_file): Likewise.
15406 (print_to_stderr): Likewise.
15407 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15408 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15409 (chrec_fold_multiply): Likewise.
15410 (evolution_function_is_invariant_rec_p): Likewise.
15411 (for_each_scev_op): Likewise.
15412 * tree-data-ref.c (siv_subscript_p): Likewise.
15413 (get_references_in_stmt): Likewise.
15414 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15415 (substitute_in_expr): Likewise.
15416 (type_cache_hasher::equal): Likewise.
15417 (walk_type_fields): Likewise.
15418 * var-tracking.c (adjust_mems): Add FALLTHRU.
15419 (set_dv_changed): Adjust fall through comment.
15420 * varasm.c (default_function_section): Add FALLTHRU.
15421
15422 2016-08-12 Marek Polacek <polacek@redhat.com>
15423
15424 PR c/7652
15425 * tree-complex.c (expand_complex_division): Add missing break.
15426
15427 2016-08-12 Richard Biener <rguenther@suse.de>
15428
15429 * passes.c (execute_todo): Do not push/pop TV_TODO.
15430 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15431 (execute_one_pass): Likewise.
15432 * common.opt (ftime-report-details): New switch.
15433 * doc/invoke.texi (ftime-report-details): Document.
15434 * timevar.h (timer::print_row): Adjust signature.
15435 (timer::all_zero): New static helper.
15436 (timer::child_map_t): New typedef.
15437 (timer::time_var_def): Add children field.
15438 * timevar.c (timer::named_items::print): Adjust.
15439 (timer::~timer): Free timevar recorded children.
15440 (timer::pop_internal): When -ftime-report-details record
15441 time spent in sub-timevars.
15442 (timer::print_row): Adjust.
15443 (timer::print): Print sub-timevar stats, use all_zero.
15444 * timevar.def (TV_TODO): Remove.
15445
15446 2016-08-12 Richard Biener <rguenther@suse.de>
15447
15448 PR tree-optimization/72851
15449 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15450 worklists to use bitmaps indexed in execution order.
15451 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15452 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15453 (cfg_blocks): Make a bitmap.
15454 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15455 New globals.
15456 (cfg_blocks_empty_p): Adjust.
15457 (cfg_blocks_add): Likewise.
15458 (cfg_blocks_get): Likewise.
15459 (add_ssa_edge): Likewise.
15460 (add_control_edge): Likewise.
15461 (simulate_stmt): Likewise.
15462 (process_ssa_edge_worklist): Likewise.
15463 (simulate_block): Likewise.
15464 (ssa_prop_init): Compute PRE order and stmt UIDs.
15465 (ssa_prop_fini): Adjust.
15466 (ssa_propagate): Adjust.
15467
15468 2016-08-12 Richard Biener <rguenther@suse.de>
15469
15470 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15471 the currently executable edges have fixed ranges. Always
15472 go through update_value_range.
15473
15474 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15475
15476 PR debug/63240
15477 * langhooks-def.h
15478 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15479 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15480 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15481 (LANG_HOOKS_DECLS): Add it.
15482 * langhooks.h (struct lang_hooks_for_decls): Add
15483 function_decl_defaulted. Const_tree-ify
15484 function_decl_explicit_p and function_decl_deleted_p.
15485 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15486 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15487 also at strict DWARF v5.
15488
15489 PR debug/55641
15490 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15491 TYPE_QUAL_CONST in reference-typed decls.
15492
15493 PR debug/49366
15494 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15495 in DW_OP_pieces, just enough to handle pointers to member
15496 functions.
15497 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15498 expression on DWARFv5 if a constant value doesn't work.
15499
15500 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15501
15502 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15503 * selftest.c (selftest::test_assertions): New function.
15504 (selftest::selftest_c_tests): New function.
15505 * selftest.h (selftest::selftest_c_tests): New declaration.
15506
15507 2016-08-11 Richard Biener <rguenther@suse.de>
15508 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15509
15510 PR rtl-optimization/72855
15511 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15512
15513 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15514
15515 PR target/72863
15516 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15517 (vsx_store_<mode>): Likewise.
15518
15519 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15520
15521 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15522 TImode CONST_WIDE_INT store.
15523 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15524
15525 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15526
15527 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15528 mode if unaligned SSE load and store are optimal.
15529
15530 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15531
15532 PR tree-optimization/71083
15533 * tree-predcom.c (ref_at_iteration): Correctly align the
15534 reference type.
15535
15536 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15537
15538 * config/s390/s390-builtin-types.def: Add INT128 types.
15539 * config/s390/s390-builtins.def: Add INT128 variants for the add
15540 sub low-level builtins dealing with TImode.
15541 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15542 via subreg when expanding a builtin.
15543 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15544 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15545 Fix comment.
15546 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15547 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15548 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15549 "vacc<bhfgq>_<mode>".
15550 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15551 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15552 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15553 "vscbi<bhfgq>_<mode>".
15554 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15555 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15556
15557 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15558
15559 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15560
15561 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15562
15563 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15564 unused declaration.
15565 (vcond<v_cmp_mixed><mode>): Ditto.
15566 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15567
15568 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15569
15570 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15571 variable explicitly, also assert on it before use.
15572
15573 2016-08-11 Richard Biener <rguenther@suse.de>
15574
15575 PR tree-optimization/72772
15576 * cfgloopmanip.c (create_preheader): Use split_edge if there
15577 is a single loop entry, avoiding degenerate PHIs.
15578
15579 2016-08-11 Richard Biener <rguenther@suse.de>
15580
15581 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15582 unconditional TODO_cleanup_cfg.
15583 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15584 cleanup only if we threaded a jump.
15585
15586 2016-08-11 Alan Modra <amodra@gmail.com>
15587
15588 PR target/71680
15589 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15590 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15591 slow. Emit two reloads for slow mem case, first loading in
15592 fast innermode, then converting to required mode.
15593
15594 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15595
15596 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15597 (vec_extract_sig): New macro.
15598 (vec_insert_exp): New macro.
15599 (vec_test_data_class): New macro.
15600 (scalar_extract_exp): New macro.
15601 (scalar_extract_sig): New macro.
15602 (scalar_insert_exp): New macro.
15603 (scalar_test_data_class): New macro.
15604 (scalar_test_neg): New macro.
15605 (scalar_cmp_exp_gt): New macro.
15606 (scalar_cmp_exp_lt): New macro.
15607 (scalar_cmp_exp_eq): New macro.
15608 (scalar_cmp_exp_unordered): New macro.
15609 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15610 to enforce constraint that operand is a 7-bit unsigned literal.
15611 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15612 for power9 built-ins.
15613 (BU_P9V_VSX_2): Likewise.
15614 (BU_P9V_64BIT_VSX_2): Likewise.
15615 (VSEEDP): Add scalar extract exponent support.
15616 (VSEESP): Add scalar extract signature support.
15617 (VSTDCNDP): Add scalar test negative support.
15618 (VSTDCNSP): Likewise.
15619 (VSIEDP): Add scalar insert exponent support.
15620 (VSCEDPGT): Add scalar compare exponent greater than support.
15621 (VSCEDPLT): Add scalar compare exponent less than support.
15622 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15623 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15624 (VSTDCDP): Add scalar test data class support.
15625 (VSTDCSP): Likewise.
15626 (VSEEDP): Add overload support for scalar extract exponent
15627 operation.
15628 (VSESDP): Add overload support for scalar extract signature
15629 operation.
15630 (VSTDCN): Add overload support for scalar test negative
15631 operation.
15632 (VSTDCNDP): Add overload support for scalar test negative
15633 operation.
15634 (VSTDCNSP): Add overload support for scalar test negative
15635 operation.
15636 (VSIEDP): Add overload support for scalar insert exponent
15637 operation.
15638 (VSTDC): Add overload support for scalar test data class
15639 operation.
15640 (VSTDCDP): Add overload support for scalar test data class
15641 operation.
15642 (VSTDCSP): Add overload support for scalar test data class
15643 opreation.
15644 (VSCEDPGT): Add overload support for scalar compare exponent
15645 greater than operation.
15646 (VSCEDPLT): Add overload support for scalar compare exponent
15647 less than operation.
15648 (VSCEDPEQ): Add overload support for scalar compare exponent
15649 test-for-equality operation.
15650 (VSCEDPUO): Add overload support for scalar compare exponent
15651 test-for-unordered operation.
15652 (VEEDP): Add vector extract exponent support.
15653 (VEESP): Likewise.
15654 (VESDP): Add vector extract significand support.
15655 (VESSP): Likewise.
15656 (VIEDP): Add vector insert exponent support.
15657 (VIESP): Likewise.
15658 (VTDCDP): Add vector test data class support.
15659 (VTDCSP): Likewise.
15660 (VES): Add overload support for vector extract significand operation.
15661 (VESDP): Likewise.
15662 (VESSP): Likewise
15663 (VEE): Add overload support for vector extract exponent operation.
15664 (VEEDP): Likewise.
15665 (VEESP): Likewise.
15666 (VTDC): Add overload support for vector test data class operation.
15667 (VTDCDP): Likewise.
15668 (VTDCSP): Likewise.
15669 (VIE): Add overload support for vector insert exponent operation.
15670 (VIEDP): Likewise.
15671 (VIESP): Likewise.
15672 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15673 overloaded binary floating point functions.
15674 (altivec_resolve_overloaded_builtin): Improve error messages to
15675 distinguish between functions not supported in the current
15676 compiler configuration and functions that were invoked with an
15677 invalid parameter combination, and include the built-in function
15678 name in both error messages.
15679 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15680 New prototype.
15681 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15682 function.
15683 (rs6000_expand_binop_builtin): Add check to enforce that argument
15684 2 of the test data class operations is a 7-bit unsigned literal.
15685 (rs6000_invalid_builtin): Add code to issue an error message if a
15686 built-in function that requires the power9_vector and -m32
15687 command-line options is compiled without these options.
15688 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15689 (UNSPEC_VSX_SXSIGDP): New value.
15690 (UNSPEC_VSX_SXSIGPDP): New value.
15691 (UNSPEC_VSX_SIEXPDP): New value.
15692 (UNSPEC_VSX_SCMPEXPDP): New value.
15693 (UNSPEC_VSX_STSTDC): New value.
15694 (UNSPEC_VSX_VXEXP): New value.
15695 (UNSPEC_VSX_VXSIG): New value.
15696 (UNSPEC_VSX_VIEXP): New value.
15697 (UNSPEC_VSX_VTSTDC): New value.
15698 (xsxexpdp): New insn for scalar extract exponent.
15699 (xsxsigdp): New insn for scalar extract significand.
15700 (xsiexpdp): New insn for scalar insert exponent.
15701 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15702 (*xscmpexpdp): New insn for scalar compare exponents.
15703 (xststdc<Fvsx): New expansion for both single- and
15704 double-precision scalar test data class operations.
15705 (xststdcneg<Fvsx>): New expansion for both single- and
15706 double-precision scalar test for negative value operations.
15707 (*xststdc<Fvsx>): New insn for scalar test data class
15708 operation.
15709 (xvxexp<VSs>): New insn for single- and double-precision
15710 vector extract exponent operation.
15711 (xvxsig<VSs>): New insn for single- and double-precision
15712 vector extract significand operation.
15713 (xviexp<VSs>): New insn for single- and double-precision
15714 vector insert exponent operation.
15715 (xvtstdc<VSs>): New insn for single- and double-precision
15716 vector test data class operation.
15717 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15718 built-in functions to represent the Power9 binary floating-point
15719 support instructions.
15720
15721 2016-08-10 bin cheng <bin.cheng@arm.com>
15722
15723 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15724
15725 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15726 Renlin Li <renlin.li@arm.com>
15727 Bin Cheng <bin.cheng@arm.com>
15728
15729 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15730 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15731 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15732 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15733 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15734 (vcond<v_cmp_result><mode>): Ditto.
15735 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15736 (vcondu<mode><mode>): Ditto.
15737 (vcond<v_cmp_mixed><mode>): New pattern.
15738 (vcondu<mode><v_cmp_mixed>): New pattern.
15739 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15740 of aarch64_vcond_internal.
15741
15742 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15743 Renlin Li <renlin.li@arm.com>
15744 Bin Cheng <bin.cheng@arm.com>
15745
15746 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15747 (vec_cmp<mode><v_cmp_result>): New pattern.
15748 (vec_cmpu<mode><mode>): New pattern.
15749 (vcond_mask_<mode><v_cmp_result>): New pattern.
15750
15751 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15752
15753 PR tree-optimization/71734
15754 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15755 REF_LOOP, invoke ref_indep_loop_p_1.
15756 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15757 to ref_indep_loop_p.
15758 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15759 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15760 is inside LOOP, do not cache dpendence value for loops with
15761 non-zero SAFELEN.
15762 (ref_indep_loop_p_2): Delete function.
15763 (can_sm_ref_p): Pass LOOP as additional argument to
15764 ref_indep_loop_p.
15765
15766 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15767
15768 PR target/72853
15769 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15770 being an offsettable address.
15771
15772 2016-08-10 Martin Liska <mliska@suse.cz>
15773
15774 PR gcov-profile/58306
15775 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15776 atomic variants of profile update functions.
15777
15778 2016-08-10 Martin Liska <mliska@suse.cz>
15779
15780 Cherry picked (and modified) from google-4_7 branch
15781 2012-12-26 Rong Xu <xur@google.com>
15782 * common.opt (fprofile-update): Add new flag.
15783 * coretypes.h: Define enum profile_update.
15784 * doc/invoke.texi: Document -fprofile-update.
15785 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15786 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15787 * tree-profile.c (gimple_init_edge_profiler): Generate
15788 also atomic profiler update.
15789 (gimple_gen_edge_profiler): Likewise.
15790
15791 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15792
15793 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15794 stack_usage_file to NULL after fclose calls.
15795
15796 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15797
15798 PR target/71873
15799 * reload.c (push_reload): Compute subreg_in_class for
15800 subregs of constants and plus expressions. Remove special
15801 handling of SYMBOL_REFs.
15802
15803 2016-08-10 Alan Modra <amodra@gmail.com>
15804
15805 PR target/71680
15806 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15807 SImode for TARGET_E500_DOUBLE when given SImode.
15808
15809 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15810
15811 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15812 unused variable __O.
15813
15814 2016-08-09 Martin Liska <mliska@suse.cz>
15815
15816 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15817 _gcov_reset to __gcov_reset.
15818 * doc/gcov-tool.texi: Fix typo.
15819
15820 2016-08-09 Martin Liska <mliska@suse.cz>
15821
15822 * value-prof.c (gimple_divmod_values_to_profile): Do not
15823 instrument MOD histogram if a value is not a SSA name.
15824
15825 2016-08-09 Martin Liska <mliska@suse.cz>
15826
15827 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15828 values.
15829
15830 2016-08-09 Renlin Li <renlin.li@arm.com>
15831
15832 PR middle-end/64971
15833 * calls.c (prepare_call_address): Convert funexp to Pmode when
15834 necessary.
15835 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15836 (sibcall_value): Likewise.
15837
15838 2016-08-09 Marek Polacek <polacek@redhat.com>
15839
15840 PR c/7652
15841 * cselib.c (cselib_expand_value_rtx_1): Add return.
15842 * gengtype.c (dbgprint_count_type_at): Likewise.
15843 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15844 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15845
15846 2016-08-09 Martin Jambor <mjambor@suse.cz>
15847
15848 PR ipa/71981
15849 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15850 if instance is a MEM_REF.
15851
15852 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15853
15854 PR target/72843
15855 * config/i386/i386.md (*movtf_internal): Use
15856 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15857 in the insn constraint.
15858 (*movxf_internal): Ditto.
15859 (*movdf_internal): Ditto.
15860 (*movsf_internal): Ditto.
15861
15862 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15863
15864 PR tree-optimization/72772
15865 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15866 for expanded base.
15867
15868 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15869
15870 PR tree-optimization/72772
15871 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15872 parameter STOP.
15873 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15874 parameter STOP and update calls. Move expand_simple_operations
15875 function call from here...
15876 (simplify_using_initial_conditions): ...to here. Delete parameter
15877 STOP.
15878 (tree_simplify_using_condition): Delete parameter STOP.
15879 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15880 simplify_using_initial_conditions.
15881
15882 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15883
15884 PR c/65345
15885 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15886 Use create_tmp_var_raw instead of create_tmp_var.
15887
15888 2016-08-09 Richard Biener <rguenther@suse.de>
15889
15890 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15891 Treat same SSA names related.
15892
15893 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15894
15895 PR tree-optimization/72824
15896 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15897 real_zerop is not negative.
15898
15899 2016-08-09 Richard Biener <rguenther@suse.de>
15900
15901 PR tree-optimization/71802
15902 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15903 all merge opportunities with the predecessor.
15904
15905 2016-08-09 Richard Biener <rguenther@suse.de>
15906
15907 PR ipa/68273
15908 * ipa-prop.c (ipa_modify_formal_parameters): Build
15909 parameter types with natural alignment also for the
15910 over-aligned case.
15911
15912 2016-08-08 Andi Kleen <ak@linux.intel.com>
15913
15914 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15915
15916 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15917
15918 PR c/64955
15919 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15920 do-nothing langhook.
15921 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15922 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15923 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15924 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15925
15926 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15927
15928 PR bootstrap/72844
15929 * input.c: Ensure that HAVE_ICONV is defined.
15930
15931 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15932
15933 PR middle-end/72781
15934 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15935 private vars for lastprivate and for linear iterator.
15936
15937 PR middle-end/68762
15938 * omp-simd-clone.c: Include varasm.h.
15939 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15940 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15941 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15942 update function name.
15943
15944 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15945
15946 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15947 (avr_diagnose_devicespecs_error): Remove.
15948 (avr_devicespecs_file): Remove composing absolute path for specfile
15949 and its verbose info. Remove conditions to check specs-file,
15950
15951 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15952
15953 PR rtl-optimization/72821
15954 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
15955 just return false for them.
15956
15957 2016-08-08 Alan Modra <amodra@gmail.com>
15958
15959 PR target/72771
15960 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
15961 toc refs created during reload. Update function comment.
15962
15963 2016-08-08 Alan Modra <amodra@gmail.com>
15964
15965 PR target/72802
15966 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
15967 alternatives. Put loads first, then stores, and reg/reg moves
15968 within same class later. Delete attr length.
15969
15970 2016-08-08 Alan Modra <amodra@gmail.com>
15971
15972 PR target/72802
15973 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
15974 (mem_operand_ds_form): New predicate.
15975 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
15976 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
15977 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
15978 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
15979 (extendsfdf2_fpr): Replace o constraint with wY.
15980
15981 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
15982
15983 * tree-ssa-threadbackward.c: Include tree-inline.h
15984 (profitable_jump_thread_path): Use estimate_num_insns to estimate
15985 size of copied block; for cold paths reduce duplication.
15986 (find_jump_threads_backwards): Remove redundant tests.
15987 (pass_thread_jumps::gate): Enable for -Os.
15988
15989 2016-08-07 Jakub Jelinek <jakub@redhat.com>
15990
15991 PR c/72816
15992 * stor-layout.c (layout_decl): Fix up formatting.
15993 (relayout_decl): Allow DECL to be FIELD_DECL.
15994
15995 2016-08-07 Alan Modra <amodra@gmail.com>
15996
15997 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
15998
15999 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16000
16001 * data-streamer-in.c (streamer_read_wide_int): New.
16002 (streamer_read_widest_int): Renamed function.
16003 * data-streamer-out.c (streamer_write_wide_int): New
16004 (streamer_write_widest_int): Renamed function.
16005 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
16006 data-stream-in.c.
16007 (input_cfg): Call renamed function.
16008 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
16009 data-stream-out.c.
16010 (output_cfg): Call renamed function.
16011 * data-streamer.h: Add declarations.
16012
16013 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16014
16015 * tree-ssa-ccp.c (extend_mask): New param sgn.
16016 Remove ORing with wi::mask.
16017 (get_default_value): Adjust call to extend_mask to pass sign.
16018 (evaluate_stmt): Likewise.
16019
16020 2016-08-06 Jakub Jelinek <jakub@redhat.com>
16021
16022 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16023 INT64_MAX.
16024
16025 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16026
16027 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16028 transform if operand's type is pointer to function or method.
16029
16030 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16031
16032 PR tree-optimization/18046
16033 * tree-ssa-threadedge.c: Include cfganal.h.
16034 (simplify_control_statement_condition): If simplifying a
16035 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16036 with the dominating ASSERT_EXPR before handing it off to VRP.
16037 Mention that a CASE_LABEL_EXPR may be returned.
16038 (thread_around_empty_blocks): Adjust to handle
16039 simplify_control_statement_condition() returning a
16040 CASE_LABEL_EXPR.
16041 (thread_through_normal_block): Likewise.
16042 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16043 a switch statement by trying to determine which case label
16044 will be taken.
16045
16046 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
16047
16048 PR rtl-optimization/69847
16049 * lra-constraints.c (process_invariant_for_inheritance): Save
16050 pattern instead of src.
16051 (remove_inheritance_pseudos): Use the pattern. Add assert.
16052
16053 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16054
16055 * input.c (string_concat::string_concat): New constructor.
16056 (string_concat_db::string_concat_db): New constructor.
16057 (string_concat_db::record_string_concatenation): New method.
16058 (string_concat_db::get_string_concatenation): New method.
16059 (string_concat_db::get_key_loc): New method.
16060 (class auto_cpp_string_vec): New class.
16061 (get_substring_ranges_for_loc): New function.
16062 (get_source_range_for_substring): New function.
16063 (get_num_source_ranges_for_substring): New function.
16064 (class selftest::lexer_test_options): New class.
16065 (struct selftest::lexer_test): New struct.
16066 (class selftest::ebcdic_execution_charset): New class.
16067 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16068 (selftest::lexer_test::lexer_test): New constructor.
16069 (selftest::lexer_test::~lexer_test): New destructor.
16070 (selftest::lexer_test::get_token): New method.
16071 (selftest::assert_char_at_range): New function.
16072 (ASSERT_CHAR_AT_RANGE): New macro.
16073 (selftest::assert_num_substring_ranges): New function.
16074 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16075 (selftest::assert_has_no_substring_ranges): New function.
16076 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16077 (selftest::test_lexer_string_locations_simple): New function.
16078 (selftest::test_lexer_string_locations_ebcdic): New function.
16079 (selftest::test_lexer_string_locations_hex): New function.
16080 (selftest::test_lexer_string_locations_oct): New function.
16081 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16082 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16083 (selftest::test_lexer_string_locations_ucn4): New function.
16084 (selftest::test_lexer_string_locations_ucn8): New function.
16085 (selftest::uint32_from_big_endian): New function.
16086 (selftest::test_lexer_string_locations_wide_string): New function.
16087 (selftest::uint16_from_big_endian): New function.
16088 (selftest::test_lexer_string_locations_string16): New function.
16089 (selftest::test_lexer_string_locations_string32): New function.
16090 (selftest::test_lexer_string_locations_u8): New function.
16091 (selftest::test_lexer_string_locations_utf8_source): New function.
16092 (selftest::test_lexer_string_locations_concatenation_1): New
16093 function.
16094 (selftest::test_lexer_string_locations_concatenation_2): New
16095 function.
16096 (selftest::test_lexer_string_locations_concatenation_3): New
16097 function.
16098 (selftest::test_lexer_string_locations_macro): New function.
16099 (selftest::test_lexer_string_locations_stringified_macro_argument):
16100 New function.
16101 (selftest::test_lexer_string_locations_non_string): New function.
16102 (selftest::test_lexer_string_locations_long_line): New function.
16103 (selftest::test_lexer_char_constants): New function.
16104 (selftest::input_c_tests): Call the new test functions once per
16105 case within the line_table test matrix.
16106 * input.h (struct string_concat): New struct.
16107 (struct location_hash): New struct.
16108 (class string_concat_db): New class.
16109 * substring-locations.h: New header.
16110
16111 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16112
16113 PR tree-optimization/72810
16114 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16115 the type of the case labels when truncating.
16116
16117 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16118
16119 PR Target/72819
16120 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16121 (aarch64_fp16_ptr_type_node): Likewise.
16122 * config/aarch64/aarch64-simd-builtins.c
16123 (aarch64_fp16_ptr_type_node): Define.
16124 (aarch64_init_fp16_types): New, refactored out of...
16125 (aarch64_init_builtins): ...here, update to call
16126 aarch64_init_fp16_types.
16127 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16128 HFmode.
16129 (aapcs_vfp_sub_candidate): Likewise.
16130
16131 2016-08-05 Martin Liska <mliska@suse.cz>
16132 Joshua Cranmer <Pidgeot18@gmail.com>
16133
16134 * gcov.c (line_t::has_block): New function.
16135 (enum loop_type): New enum.
16136 (handle_cycle): New function.
16137 (unblock): Likewise.
16138 (circuit): Likewise.
16139 (get_cycles_count): Likewise.
16140 (accumulate_line_counts): Use new loop detection algorithm.
16141
16142 2016-08-05 Martin Liska <mliska@suse.cz>
16143
16144 * gcov.c (output_intermediate_file): Rename
16145 function_info::line_next to next_file_fn.
16146 (process_file): Likewise.
16147 (read_graph_file): Likewise.
16148 (accumulate_line_counts): Likewise.
16149 (output_lines): Likewise.
16150
16151 2016-08-05 Richard Biener <rguenther@suse.de>
16152
16153 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16154 restriction on threading to a loop header.
16155
16156 2016-08-05 Richard Biener <rguenther@suse.de>
16157
16158 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16159 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16160 adjust loop info accordingly.
16161
16162 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16163
16164 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16165 before folding call to __builtin_constant_p with parameters to false.
16166
16167 2016-08-05 Alan Modra <amodra@gmail.com>
16168
16169 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16170 code accidentally committed 2016-05-02 providing class when given
16171 NO_REGS.
16172
16173 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16174
16175 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16176 the case label ranges that partially overlap with OP's value
16177 range.
16178
16179 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16180
16181 PR target/72805
16182 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16183 Cast builtin function result to __mmask16 instead of __mmask8.
16184 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16185 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16186 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16187
16188 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16189
16190 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16191 (ASSERT_TRUE_AT): New macro.
16192 (ASSERT_FALSE): Reimplement in terms of...
16193 (ASSERT_FALSE_AT): New macro.
16194 (ASSERT_STREQ_AT): Fix typo in comment.
16195
16196 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16197
16198 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16199 labels are exhaustive, designate the label with the widest
16200 range to be the default label.
16201
16202 2016-08-04 Andrew Pinski <apinski@cavium.com>
16203
16204 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16205 (thunderx_tunings): Use thunderx_vector_cost instead of
16206 generic_vector_cost.
16207
16208 2016-08-04 Martin Liska <mliska@suse.cz>
16209
16210 * gcov.c (main): Fix GNU coding style.
16211 (output_intermediate_file): Likewise.
16212 (process_file): Likewise.
16213 (generate_results): Likewise.
16214 (release_structures): Likewise.
16215 (create_file_names): Likewise.
16216 (find_source): Likewise.
16217 (read_graph_file): Likewise.
16218 (find_exception_blocks): Likewise.
16219 (canonicalize_name): Likewise.
16220 (make_gcov_file_name): Likewise.
16221 (mangle_name): Likewise.
16222 (accumulate_line_counts): Likewise.
16223 (output_branch_count): Likewise.
16224 (read_line): Likewise.
16225
16226 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16227
16228 PR rtl-optimization/71779
16229 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16230 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16231 or if it was truncated.
16232
16233 PR rtl-optimization/70903
16234 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16235
16236 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16237
16238 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16239 accessing SSA_NAME_PTR_INFO.
16240
16241 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16242
16243 PR 70677
16244 * common/config/avr/avr-common.c (avr_option_optimization_table)
16245 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16246
16247 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16248
16249 PR 55181
16250 * config/avr/avr.md: New pattern to work around do_store_flag
16251 generating shift instructions for bit extractions.
16252
16253 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16254
16255 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16256 BITMAP_ALLOC.
16257 (add_equivalence): Likewise.
16258 (get_value_range): Allocate value range with vrp_value_range_pool.
16259 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16260 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16261
16262 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16263
16264 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16265 the default for the rs6000 port.
16266
16267 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16268
16269 PR middle-end/71876
16270 * calls.c (special_function_p): Remove special handling of
16271 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16272 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16273 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16274
16275 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16276
16277 PR middle-end/72778
16278 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16279 Don't stop on regular insns.
16280
16281 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16282
16283 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16284 size to DImode boundary.
16285 (nvptx_propagate): Likewise.
16286
16287 2016-08-03 Alan Modra <amodra@gmail.com>
16288
16289 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16290 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16291 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16292 from -mefficient-unaligned-vector. Note that this affects fp too.
16293
16294 2016-08-03 Alan Modra <amodra@gmail.com>
16295
16296 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16297 cost more.
16298
16299 2016-08-03 Alan Modra <amodra@gmail.com>
16300
16301 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16302 to a reg. Localize vars.
16303
16304 2016-08-03 Alan Modra <amodra@gmail.com>
16305
16306 * config/rs6000/rs6000.opt: Remove negatives from help strings
16307 and comments.
16308
16309 2016-08-03 Alan Modra <amodra@gmail.com>
16310
16311 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16312 Delete duplicated code.
16313
16314 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16315
16316 PR middle-end/72778
16317 * lra-spills.c (regno_in_use_p): New.
16318 (lra_final_code_change): Use it.
16319
16320 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16321
16322 PR rtl-optimization/69847
16323 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16324 restore_regno.
16325 (lra_rtx_hash): New.
16326 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16327 of restore_regno.
16328 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16329 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16330 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16331 next insn is USE with the same reg as the current insn source.
16332 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16333 of restore_regno.
16334 (lra_constraints_init): Call initiate_invariants.
16335 (lra_constraints_finish): Call finish_invariants.
16336 (struct invariant, invariant_t, invariant_ptr_t): New.
16337 (const_invariant_ptr_t, invariants, invariants_pool): New.
16338 (invariant_table, invariant_hash, invariant_eq_p): New.
16339 (insert_invariant, initiate_invariants, finish_invariants): New.
16340 (clear_invariants, invalid_invariant_regs): New.
16341 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16342 instead of restore_regno.
16343 (invariant_p, process_invariant_for_inheritance): New.
16344 (inherit_in_ebb): Implement invariant inheritance.
16345 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16346 (remove_inheritance_pseudos): Implement undoing invariant
16347 inheritance.
16348 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16349 instead of restore_regno.
16350 * lra-assigns.c (regno_live_length): New.
16351 (reload_pseudo_compare_func): Use regno_live_length.
16352 (assign_by_spills): Use restore_rtx instead of restore_regno.
16353 (lra_assign): Ditto. Initiate regno_live_length.
16354
16355 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16356
16357 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16358 __builtin_aarch64_fmindf.
16359
16360 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16361
16362 PR tree-optimization/34114
16363 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16364 information for more control IVs.
16365
16366 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16367
16368 PR tree-optimization/34114
16369 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16370 PLUS_EXPR case. Handle SSA_NAME case.
16371
16372 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16373
16374 * config/aarch64/aarch64-simd-builtins.def
16375 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16376 (__builtin_aarch64_fmaxdf): Likewise.
16377 (__builtin_aarch64_smin_nandf): Likewise.
16378 (__builtin_aarch64_smax_nandf): Likewise.
16379 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16380 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16381 (<fmaxmin><mode>3): ...this.
16382 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16383 (vminnm_f64): Likewise.
16384 (vmin_f64): Likewise.
16385 (vmax_f64): Likewise.
16386 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16387 (FMAXMIN_UNS): ...this.
16388 (fmaxmin): Merged with
16389 (fmaxmin_op): ...this...
16390 (maxmin_uns_op): ...in to this.
16391
16392 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16393
16394 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16395 Add support for vec_extract on vector float, vector int, vector
16396 short, and vector char vector types.
16397 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16398 vector float, vector int, vector short, and vector char
16399 optimizations on 64-bit ISA 2.07 systems for both constant and
16400 variable element numbers.
16401 (rs6000_split_vec_extract_var): Likewise.
16402 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16403 Altivec registers on ISA 2.07 and above.
16404 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16405 which never was matched due to the split occuring before register
16406 allocation (and the code would not have worked on little endian
16407 systems if it did match). Allow extracts to go to the Altivec
16408 registers if ISA 2.07 (power8). Change from using "" around the
16409 C++ code to using {}'s.
16410 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16411 vec_extracts when the vector is in memory.
16412 (vsx_extract_v4sf_var): New insn to optimize vector float
16413 vec_extracts when the element number is variable on 64-bit ISA
16414 2.07 systems.
16415 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16416 for 64-bit ISA 2.07 as well as ISA 3.0.
16417 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16418 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16419 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16420 optimize vector int, vector short, and vector char vec_extracts
16421 when the vector is in memory.
16422 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16423 optimize vector int, vector short, and vector char vec_extracts
16424 when the element number is variable.
16425
16426 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16427
16428 PR target/71948
16429 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16430 does not overlap with other symbol flags.
16431
16432 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16433
16434 * config/aarch64/aarch64.h (aarch64_frame):
16435 Remove padding0 and hardfp_offset. Add locals_offset,
16436 initial_adjust, callee_adjust, callee_offset and final_adjust.
16437 * config/aarch64/aarch64.c (aarch64_layout_frame):
16438 Remove unused padding0 and hardfp_offset initializations.
16439 Choose frame layout and set frame variables accordingly.
16440 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16441 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16442 (aarch64_pop_regs): Likewise.
16443 (aarch64_expand_prologue): Remove all decision code, just emit
16444 prolog according to frame variables.
16445 (aarch64_expand_epilogue): Remove all decision code, just emit
16446 epilog according to frame variables.
16447 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16448
16449 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16450
16451 PR target/72748
16452 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16453 fix_debug_reg_uses after changing source register mode to
16454 V1TImode if source register is undefined.
16455
16456 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16457
16458 PR tree-optimization/71818
16459 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16460 with non invariant evolutions
16461
16462 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16463
16464 PR target/72767
16465 * config/avr/avr.md (length) [branch]: Correct insn length
16466 attribute for forward branches.
16467
16468 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16469
16470 * doc/extend.texi (AVR Built-in Functions): Document
16471 __builtin_avr_nops.
16472 * config/avr/builtins.def (NOPS): New.
16473 * config/avr/avr.c (avr_expand_nops): New static function.
16474 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16475
16476 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16477
16478 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16479 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16480 addresses.
16481
16482 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16483
16484 * config/aarch64/aarch64.c (vulcan_tunings): Update
16485 vulcan L1 cache_line_size.
16486
16487 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16488
16489 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16490 function that takes a vector memory address, a hard register, an
16491 element number and a temporary base register, and recreates an
16492 address that points to the appropriate element within the vector.
16493 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16494 (rs6000_split_vec_extract_var): Add support for the target of a
16495 vec_extract with variable element number being a scalar memory
16496 location.
16497 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16498 swappable.
16499 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16500 vsx_extract_<mode>_load insn with a new insn that optimizes
16501 storing either element to a memory location, using scratch
16502 registers to pick apart the vector and reconstruct the address.
16503 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16504 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16505 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16506 store instruction.
16507 (vsx_extract_<mode>_var): Add support for extracting a variable
16508 element number from memory.
16509
16510 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16511
16512 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16513 when testing for compares against constants of the form 0xabab.
16514
16515 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16516
16517 PR tree-optimization/57558
16518 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16519 function.
16520 (vect_loop_versioning): Support versioning with niter assumptions.
16521 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16522 (vect_get_loop_niters): New parameter. Reimplement to support
16523 assumptions in loop niter info.
16524 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16525 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16526 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16527 Support loop versioning for niters.
16528 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16529 (vect_free_loop_info_assumptions): New function.
16530 (vectorize_loops): Free loop niter info for loops with flag
16531 LOOP_F_ASSUMPTIONS set if vectorization failed.
16532 * tree-vectorizer.h (struct _loop_vec_info): New field
16533 num_iters_assumptions.
16534 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16535 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16536 (LOOP_REQUIRES_VERSIONING): New macro.
16537 (vect_free_loop_info_assumptions): New decl.
16538
16539 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16540
16541 * cfgloop.h (struct loop): New field constraints.
16542 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16543 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16544 functions.
16545 * cfgloop.c (alloc_loop): Initialize new field.
16546 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16547 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16548 Adjust niter analysis wrto loop constraints.
16549 * doc/loop.texi (@node Number of iterations): Add description for loop
16550 constraints.
16551
16552 2016-07-29 Marek Polacek <polacek@redhat.com>
16553
16554 PR c/7652
16555 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16556 (ix86_expand_round_builtin): Likewise.
16557
16558 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16559 Georg-Johann Lay <avr@gjlay.de>
16560
16561 PR rtl-optimization/71976
16562 * combine.c (get_last_value): Return 0 if the argument for which
16563 the function is called has a wider mode than the recorded value.
16564
16565 2016-07-29 Marek Polacek <polacek@redhat.com>
16566
16567 PR c/7652
16568 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16569 (altivec_expand_st_builtin): Likewise.
16570
16571 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16572
16573 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16574 introduced in r238381.
16575
16576 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16577
16578 PR middle-end/68217
16579 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16580 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16581
16582 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16583
16584 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16585 New declaration.
16586 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16587 Add support for vec_extract of vector double or vector long having
16588 a variable element number on 64-bit ISA 2.07 systems or newer.
16589 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16590 Likewise.
16591 (rs6000_split_vec_extract_var): New function to split a
16592 vec_extract built-in function with variable element number.
16593 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16594 swappable.
16595 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16596 (UNSPEC_VSX_EXTRACT): Likewise.
16597 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16598 direct move instructions to be generated on 64-bit ISA 2.07
16599 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16600 instruction.
16601 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16602 arguments for vec_extract variable element.
16603 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16604 vec_extract with variable element on V2DFmode and V2DImode
16605 vectors.
16606 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16607 -mupper-regs-df requirement, since it isn't needed.
16608 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16609 do direct moves on 64-bit systems, which allows optimization of
16610 vec_extract on 64-bit ISA 2.07 systems and newer.
16611
16612 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16613 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16614
16615 * config/aarch64/aarch64.md
16616 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16617 statement and type.
16618 (<optab>qihi2_aarch64): Likewise, and split into two.
16619 (extendqihi2_aarch64): New.
16620 (zero_extendqihi2_aarch64): New.
16621 * config/aarch64/iterators.md (ldrxt): Remove.
16622 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16623 uxtb/uxth.
16624
16625 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16626
16627 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16628
16629 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16630
16631 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16632 (aarch64_push_reg): New function to push 1 or 2 registers.
16633 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16634 (aarch64_expand_prologue): Use aarch64_push_regs.
16635 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16636
16637 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16638
16639 PR tree-optimization/71734
16640 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16641 attribute instead of REF_LOOP and use it.
16642 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16643 set it for Loops having non-zero safelen attribute.
16644 (ref_indep_loop_p): Pass zero as initial value for safelen.
16645
16646 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16647
16648 PR middle-end/72657
16649 PR target/72683
16650 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16651 call using chkp_gimple_call_builtin_p.
16652 (chkp_copy_bounds_for_assign): Likewise.
16653
16654 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16655
16656 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16657 * config/arm/arm-protos.h (struct tune_params): Likewise.
16658 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16659 (cortex_a9_sched_adjust_cost): Likewise.
16660 (fa726te_sched_adjust_cost): Likewise.
16661 (arm_adjust_cost): Likewise.
16662 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16663 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16664 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16665 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16666 * config/ia64/ia64.c: Likewise.
16667 * config/m68k/m68k.c: Likewise.
16668 * config/mep/mep.c (mep_adjust_cost): Likewise.
16669 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16670 * Likewise.
16671 * config/mips/mips.c (mips_adjust_cost): Likewise.
16672 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16673 * Likewise.
16674 * config/pa/pa.c (pa_adjust_cost): Likewise.
16675 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16676 (rs6000_debug_adjust_cost): Likewise.
16677 * config/sh/sh.c (sh_adjust_cost): Likewise.
16678 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16679 (hypersparc_adjust_cost): Likewise.
16680 (sparc_adjust_cost): Likewise.
16681 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16682 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16683 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16684 * Likewise.
16685 * config/visium/visium.c (visium_adjust_cost): Likewise.
16686 * doc/tm.texi: Regenerate.
16687 * haifa-sched.c (dep_cost_1): Adjust.
16688 * target.def: Merge adjust_cost and adjust_cost_2.
16689
16690 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16691
16692 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16693
16694 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16695
16696 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16697 (extract_mentioned_regs): Append to a vector instead of
16698 returning a rtx_expr_list.
16699 (st_expr_entry): Adjust.
16700 (free_st_expr_entry): Likewise.
16701 (store_ops_ok): Likewise.
16702 (store_killed_in_insn): Likewise.
16703 (find_moveable_store): Likewise.
16704
16705 2016-07-28 Martin Liska <mliska@suse.cz>
16706
16707 PR gcov-profile/68025
16708 * tree-profile.c (tree_profiling): Respect
16709 no_profile_instrument_function attribute.
16710 * doc/extend.texi: Document no_profile_instrument_function
16711 attribute.
16712
16713 2016-07-28 Martin Liska <mliska@suse.cz>
16714
16715 PR rtl-optimization/70944
16716 * combine.c (make_compound_operation):
16717 Do not allow make_compound_operation for vector mode
16718
16719 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16720
16721 PR middle-end/71994
16722 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16723 before calling get_ops.
16724
16725 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16726
16727 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16728 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16729 (BITS_PER_UNIT_LOG): Remove.
16730 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16731 * expr.c (expand_assignment): Likewise.
16732 * stor-layout.c (initialize_sizetypes): Likewise.
16733
16734 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16735
16736 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16737 signature of rs6000_expand_vector_extract so that the element
16738 number is a RTX instead of a constant integer.
16739 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16740 Likewise.
16741 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16742 (altivec_expand_vec_ext_builtin): Likewise.
16743 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16744 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16745 MFVSRLD instruction.
16746
16747 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16748
16749 * input.c (get_pure_location): Move here from tree.c.
16750 (make_location): Likewise. Add header comment.
16751 (selftest::test_accessing_ordinary_linemaps): Verify
16752 pure_location_p, make_location, get_location_from_adhoc_loc and
16753 get_range_from_loc.
16754 * input.h (get_pure_location): Move declaration here from tree.h.
16755 (get_finish): Likewise for inline function.
16756 (make_location): Likewise for declaration.
16757 * tree.c (get_pure_location): Move to input.c.
16758 (make_location): Likewise.
16759 * tree.h (get_pure_location): Move declaration to tree.h.
16760 (get_finish): Likewise for inline function.
16761 (make_location): Likewise for declaration.
16762
16763 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16764
16765 PR middle-end/71078
16766 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16767
16768 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16769
16770 * system.h (STATIC_ASSERT): Use static_assert if building
16771 with C++11 onwards.
16772
16773 2016-07-27 Richard Biener <rguenther@suse.de>
16774
16775 PR tree-optimization/72517
16776 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16777 Revert change to not compute read-read dependences.
16778
16779 2016-07-27 Richard Biener <rguenther@suse.de>
16780
16781 * predict.c (set_even_probabilities): Make nedges unsigned.
16782
16783 2016-07-27 Martin Liska <mliska@suse.cz>
16784
16785 * predict.c (set_even_probabilities): Handle unlikely edges.
16786 (combine_predictions_for_bb): Likewise.
16787
16788 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16789
16790 PR target/71869
16791 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16792 __float128 support when we don't have hardware support, so that
16793 the IEEE built-in functions like isgreater, first call __unordkf3
16794 to make sure neither operand is a NaN, and if both operands are
16795 ordered, do the normal comparison.
16796
16797 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16798
16799 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16800 name.
16801 (extract_code_and_val_from_cond_with_ops): Verify that name is
16802 either cond_op0 or cond_op1.
16803
16804 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16805
16806 PR tree-optimization/18046
16807 * genmodes.c (emit_mode_size_inline): Emit an assert that
16808 verifies that mode is a valid array index.
16809 (emit_mode_nuinits_inline): Likewise.
16810 (emit_mode_inner_inline): Likewise.
16811 (emit_mode_unit_size_inline): Likewise.
16812 (emit_mode_unit_precision_inline): Likewise.
16813 * tree-vrp.c: Include params.h.
16814 (find_switch_asserts): Register edge assertions for the default
16815 label which correspond to the anti-ranges of each case label.
16816 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16817 * doc/invoke.texi: Document it.
16818
16819 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16820
16821 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16822 and unnecessary call to gimple_bb.
16823
16824 2016-07-26 Richard Biener <rguenther@suse.de>
16825
16826 PR rtl-optimization/71984
16827 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16828 for VOIDmode.
16829
16830 2016-07-26 Richard Biener <rguenther@suse.de>
16831
16832 PR middle-end/72517
16833 * expmed.c (extract_bit_field_1): Constrain the vector mode
16834 with element size matching the extraction mode size when
16835 choosing a better vector mode to do the extraction from.
16836
16837 2016-07-26 Richard Biener <rguenther@suse.de>
16838 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16839
16840 PR middle-end/70920
16841 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16842 pattern.
16843
16844 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16845
16846 * tree-ssa-structalias.c (struct scc_info): Change types of
16847 members to auto_sbitmap and auto_vec.
16848 (scc_info::scc_info): New constructor.
16849 (scc_info::~scc_info): New destructor.
16850 (init_scc_info): Remove.
16851 (free_scc_info): Remove.
16852 (find_indirect_cycles): Adjust.
16853 (perform_var_substitution): Likewise.
16854 (free_var_substitution_info): Likewise.
16855
16856 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16857
16858 * tree-outof-ssa.c (struct elim_graph): Change type of members
16859 to auto_vec and auto_sbitmap.
16860 (elim_graph::elim_graph): New constructor.
16861 (delete_elim_graph): Remove.
16862 (expand_phi_nodes): Adjust.
16863
16864 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16865
16866 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16867 (new_elim_graph): Adjust.
16868 (clear_elim_graph): Likewise.
16869 (delete_elim_graph): Likewise.
16870 (elim_graph_size): Likewise.
16871 (elim_graph_add_node): Likewise.
16872 (elim_graph_add_edge): Likewise.
16873 (elim_graph_remove_succ_edge): Likewise.
16874 (eliminate_name): Likewise.
16875 (eliminate_build): Likewise.
16876 (elim_forward): Likewise.
16877 (elim_unvisited_predecessor): Likewise.
16878 (elim_backward): Likewise.
16879 (elim_create): Likewise.
16880 (eliminate_phi): Likewise.
16881 (expand_phi_nodes): Likewise.
16882
16883 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16884
16885 * bt-load.c (compute_out): Use auto_sbitmap class.
16886 (link_btr_uses): Likewise.
16887 * cfganal.c (mark_dfs_back_edges): Likewise.
16888 (post_order_compute): Likewise.
16889 (inverted_post_order_compute): Likewise.
16890 (pre_and_rev_post_order_compute_fn): Likewise.
16891 (single_pred_before_succ_order): Likewise.
16892 * cfgexpand.c (pass_expand::execute): Likewise.
16893 * cfgloop.c (verify_loop_structure): Likewise.
16894 * cfgloopmanip.c (fix_bb_placements): Likewise.
16895 (remove_path): Likewise.
16896 (update_dominators_in_loop): Likewise.
16897 * cfgrtl.c (break_superblocks): Likewise.
16898 * ddg.c (check_sccs): Likewise.
16899 (create_ddg_all_sccs): Likewise.
16900 * df-core.c (df_worklist_dataflow): Likewise.
16901 * dse.c (dse_step3): Likewise.
16902 * except.c (eh_region_outermost): Likewise.
16903 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16904 * gcse.c (prune_expressions): Likewise.
16905 (prune_insertions_deletions): Likewise.
16906 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16907 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16908 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16909 * lcm.c (compute_earliest): Likewise.
16910 (compute_farthest): Likewise.
16911 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16912 (unroll_loop_runtime_iterations): Likewise.
16913 (unroll_loop_stupid): Likewise.
16914 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16915 * lra-lives.c: Likewise.
16916 * lra.c (lra): Likewise.
16917 * modulo-sched.c (schedule_reg_moves): Likewise.
16918 (optimize_sc): Likewise.
16919 (get_sched_window): Likewise.
16920 (sms_schedule_by_order): Likewise.
16921 (check_nodes_order): Likewise.
16922 (order_nodes_of_sccs): Likewise.
16923 (order_nodes_in_scc): Likewise.
16924 * recog.c (split_all_insns): Likewise.
16925 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16926 * reload1.c (reload): Likewise.
16927 * sched-rgn.c (haifa_find_rgns): Likewise.
16928 (split_edges): Likewise.
16929 (compute_trg_info): Likewise.
16930 * sel-sched.c (init_seqno): Likewise.
16931 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16932 * tree-into-ssa.c (update_ssa): Likewise.
16933 * tree-ssa-live.c (live_worklist): Likewise.
16934 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16935 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16936 * Likewise.
16937 (try_peel_loop): Likewise.
16938 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16939 * Likewise.
16940 * tree-ssa-pre.c (compute_antic): Likewise.
16941 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16942 * tree-stdarg.c (reachable_at_most_once): Likewise.
16943 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16944 * var-tracking.c (vt_find_locations): Likewise.
16945
16946 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16947
16948 * sbitmap.h (auto_sbitmap): New class.
16949
16950 2016-07-26 Alan Modra <amodra@gmail.com>
16951
16952 PR target/72103
16953 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
16954 sri->t_icode.
16955
16956 2016-07-25 David Malcolm <dmalcolm@redhat.com>
16957
16958 * input.c (selftest::temp_source_file::temp_source_file): Fix
16959 missing "%s" in fprintf.
16960
16961 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
16962
16963 PR middle-end/71732
16964 * cselib.c (cselib_process_insn): Invalidate argument slots for
16965 const/pure calls.
16966
16967 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16968
16969 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
16970 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
16971 vmulxh_lane_f16, vmulxh_laneq_f16): New.
16972
16973 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16974
16975 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16976 * config/aarch64/aarch64.md (fma, fnma): Support HF.
16977 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
16978
16979 2016-07-25 Jiong Wang <jiong.wang@arm.com>
16980
16981 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
16982 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
16983 New.
16984 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
16985 (add<mode>3): Likewise.
16986 (sub<mode>3): Likewise.
16987 (mul<mode>3): Likewise.
16988 (div<mode>3): Likewise.
16989 (*div<mode>3): Likewise.
16990 (<fmaxmin><mode>3): Extend to HF.
16991 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
16992 (fabd<mode>3): Likewise.
16993 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
16994 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
16995 (aarch64_fmulx<mode>): Likewise.
16996 (aarch64_fac<optab><mode>): Likewise.
16997 (aarch64_frecps<mode>): Likewise.
16998 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
16999 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
17000 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
17001 (VSDQ_HSDI): Support HI.
17002 (fcvt_target, FCVT_TARGET): Likewise.
17003 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
17004 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
17005 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
17006 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
17007 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
17008 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
17009 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
17010 vrsqrtsh_f16): New.
17011
17012 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17013
17014 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17015 * config/aarch64/aarch64-builtins.c (hi_UP): New.
17016 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17017 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17018 mode.
17019 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17020 (aarch64_cm<optab><mode>): Likewise.
17021 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17022 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17023 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17024 (sqrt<mode>2): Likewise.
17025 (*sqrt<mode>2): Likewise.
17026 (abs<mode>2): Likewise.
17027 (<optab><mode>hf2): New pattern for HF mode.
17028 (<optab>hihf2): Likewise.
17029 * config/aarch64/arm_neon.h: Include arm_fp16.h.
17030 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17031 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17032 Support HF mode.
17033 * config/aarch64/arm_fp16.h: New file.
17034 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17035 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17036 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17037 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17038 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17039 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17040 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17041 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17042 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17043 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17044 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17045 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17046 vsqrth_f16): New.
17047
17048 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17049
17050 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17051 reduc_smin_scal_): Use VDQIF_F16.
17052 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17053 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17054 Use VHSDF.
17055 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17056 * config/aarch64/iterators.md (VDQIF_F16): New.
17057 (vp): Support HF modes.
17058 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17059 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17060
17061 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17062
17063 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17064 "*aarch64_mulx_elt_from_dup<mode>".
17065 (*aarch64_mul3_elt<mode>): Update schedule type.
17066 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17067 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17068 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17069 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17070 (f, fp): Support HF modes.
17071 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17072 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17073 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17074 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17075 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17076 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17077
17078 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17079
17080 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17081 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17082 modes.
17083 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17084 vfmsq_f16): New.
17085
17086 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17087
17088 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17089 * config/aarch64/aarch64-simd.md
17090 (aarch64_rsqrts<mode>): Extend to HF modes.
17091 (fabd<mode>3): Likewise.
17092 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17093 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17094 (aarch64_<maxmin_uns>p<mode>): Likewise.
17095 (<su><maxmin><mode>3): Likewise.
17096 (<maxmin_uns><mode>3): Likewise.
17097 (<fmaxmin><mode>3): Likewise.
17098 (aarch64_faddp<mode>): Likewise.
17099 (aarch64_fmulx<mode>): Likewise.
17100 (aarch64_frecps<mode>): Likewise.
17101 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17102 (add<mode>3): Extend to HF modes.
17103 (sub<mode>3): Likewise.
17104 (mul<mode>3): Likewise.
17105 (div<mode>3): Likewise.
17106 (*div<mode>3): Likewise.
17107 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17108 HF, V4HF and V8HF.
17109 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17110 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17111 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17112 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17113 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17114 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17115 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17116 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17117 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17118 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17119 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17120 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17121 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17122 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17123
17124 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17125
17126 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17127 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17128 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17129 (neg<mode>2): Likewise.
17130 (abs<mode>2): Likewise.
17131 (<frint_pattern><mode>2): Likewise.
17132 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17133 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17134 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17135 (ftrunc<VDQF:mode>2): Likewise.
17136 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17137 (sqrt<mode>2): Likewise.
17138 (*sqrt<mode>2): Likewise.
17139 (aarch64_frecpe<mode>): Likewise.
17140 (aarch64_cm<optab><mode>): Likewise.
17141 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17142 HF, V4HF and V8HF.
17143 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17144 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17145 (stype): New.
17146 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17147 (vdupq_n_f16): Likewise.
17148 (vld1_dup_f16): Use vdup_n_f16.
17149 (vld1q_dup_f16): Use vdupq_n_f16.
17150 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17151 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17152 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17153 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17154 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17155 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17156 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17157 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17158 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17159 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17160 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17161 vsqrt_f16, vsqrtq_f16): New.
17162
17163 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17164
17165 * config/aarch64/aarch64-simd.md
17166 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17167 (aarch64_ext<mode>): Likewise.
17168 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17169 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17170 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17171 and V8HFmode.
17172 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17173 float16x8_t.
17174 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17175 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17176 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17177 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17178 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17179 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17180 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17181 New.
17182 (vmov_n_f16): Reimplement using vdup_n_f16.
17183 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17184
17185 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17186
17187 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17188 "frame_related_p". Generate CFA annotation when it's necessary.
17189 (aarch64_expand_prologue): Use aarch64_add_constant.
17190 (aarch64_expand_epilogue): Likewise.
17191 (aarch64_output_mi_thunk): Pass "false" when calling
17192 aarch64_add_constant.
17193
17194 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17195
17196 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17197 sequences.
17198
17199 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17200
17201 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17202 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17203 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17204 (aarch64_build_constant): Delete.
17205
17206 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17207
17208 Revert
17209 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17210
17211 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17212 flag_toplevel_reorder.
17213
17214 2016-07-25 Richard Biener <rguenther@suse.de>
17215
17216 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17217 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17218 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17219 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17220 (streamer_get_builtin_tree): Likewise.
17221 (streamer_write_builtin): Likewise.
17222 * lto-streamer.h (LTO_builtin_decl): Remove.
17223 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17224 (lto_input_scc): Remove LTO_builtin_decl handling.
17225 (lto_input_tree_1): Liekwise.
17226 * lto-streamer-out.c (lto_output_tree_1): Remove special
17227 handling of builtins.
17228 (DFS::DFS): Likewise.
17229 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17230 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17231 assert.
17232 (streamer_write_builtin): Remove.
17233
17234 2016-07-25 Martin Liska <mliska@suse.cz>
17235
17236 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17237 if flag_auto_profile is set to true.
17238
17239 2016-07-25 Martin Liska <mliska@suse.cz>
17240
17241 PR gcov-profile/71868
17242 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17243 have a function with multiple latches, count them all.
17244
17245 2016-07-25 Martin Liska <mliska@suse.cz>
17246
17247 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17248
17249 2016-07-25 Martin Liska <mliska@suse.cz>
17250
17251 PR tree-optimization/71987
17252 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17253 just for SSA_NAMEs. Fix GNU coding style.
17254
17255 2016-07-25 Martin Liska <mliska@suse.cz>
17256
17257 PR gcov-profile/64874
17258 * gcov-io.h: Update command about file format.
17259 * gcov-iov.c (main): Adapt the numbering scheme.
17260
17261 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17262
17263 PR middle-end/66726
17264 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17265 whose result is used in PHI.
17266 (final_range_test_p): Likewise.
17267 (maybe_optimize_range_tests): Likewise.
17268
17269 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17270
17271 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17272 Reformat two multi-line strings.
17273
17274 2016-07-22 Martin Sebor <msebor@redhat.com>
17275
17276 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17277
17278 2016-07-22 Martin Sebor <msebor@redhat.com>
17279
17280 PR c/71560
17281 * doc/extend.texi (Compound Literals): Correct and clarify.
17282 (Cast to Union): Same.
17283
17284 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17285
17286 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17287 comments to explain why certain error messages make mention of
17288 undocumented options.
17289 (rs6000_invalid_builtin): Change error messages to replace mention
17290 of undocumented options with mention of the -mcpu=power9 option
17291 that enables those undocumented options.
17292 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17293 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17294 definition of this macro to correct an existing error.
17295 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17296 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17297 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17298 descriptions of built-in functions so that they depend on
17299 -mcpu=power9 instead of on the corresponding undocumented flags.
17300 * doc/invoke.texi (Option Summary): Remove all mention of newly
17301 undocumented flags.
17302 (IBM RS/6000 and PowerPC Options): Likewise.
17303 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17304 mention of newly undocumented flags.
17305
17306 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17307
17308 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17309 when target_clones attribute is set.
17310
17311 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17312
17313 * common.opt (funsafe-loop-optimizations): Mark ignore.
17314 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17315 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17316 related code.
17317 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17318 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17319
17320 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17321
17322 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17323 Parameter.
17324 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17325 Parameter.
17326 (number_of_iterations_exit): Warn missed loop optimization for
17327 possible infinite loops.
17328
17329 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17330
17331 PR target/71216
17332 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17333 when to emit a ".machine" pseudo-op.
17334
17335 2016-07-22 Martin Liska <mliska@suse.cz>
17336
17337 PR gcov-profile/69028
17338 PR gcov-profile/62047
17339 * coverage.c (coverage_compute_lineno_checksum): Do not
17340 calculate checksum for fns w/o xloc.file.
17341 (coverage_compute_profile_id): Likewise.
17342
17343 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17344
17345 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17346 (avr_secondary_reload): ...and implementation.
17347 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17348 * config/avr/avr.md (reload_in<mode>): Remove insns.
17349 (adjust_len) [lpm]: Remove insn attribute value.
17350 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17351
17352 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17353
17354 PR middle-end/71876
17355 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17356 attribute.
17357 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17358 * calls.c (special_function_p): Remove the special handling of the
17359 "__builtin_" prefix.
17360
17361 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17362
17363 PR middle-end/71876
17364 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17365 if STMT may be an alloca call.
17366 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17367 builtin alloca call.
17368 * calls.h (gimple_maybe_alloca_call_p): New function.
17369 * tree-inline.c (inline_forbidden_p_stmt): Use
17370 gimple_maybe_alloca_call_p here.
17371
17372 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17373
17374 * spellcheck-tree.c (best_macro_match::best_macro_match):
17375 Explictly specify the template arguments when invoking the base
17376 class constructor, to help older C++ compilers.
17377
17378 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17379
17380 PR sanitizer/71953
17381 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17382 before builtin_decl_implicit.
17383
17384 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17385
17386 * optabs.c (emit_condiitonal_move): Short circuit for identical
17387 sources.
17388
17389 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17390
17391 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17392 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17393 (noce_conversion_profitable_p): New.
17394 (noce_try_store_flag_constants): Use it.
17395 (noce_try_addcc): Likewise.
17396 (noce_try_store_flag_mask): Likewise.
17397 (noce_try_cmove): Likewise.
17398 (noce_try_cmove_arith): Likewise.
17399 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17400 overwriting it.
17401 (noce_convert_multiple_sets): Move cost model to here, from...
17402 (bb_ok_for_noce_convert_multiple_sets) ...here.
17403 (noce_process_if_block): Update calls for above changes.
17404 (noce_find_if_block): Record new noce_if_info parameters.
17405
17406 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17407
17408 * target.def (max_noce_ifcvt_seq_cost): New.
17409 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17410 * doc/tm.texi: Regenerate.
17411 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17412 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17413 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17414 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17415 * doc/invoke.texi: Document new params.
17416
17417 2016-07-21 Richard Biener <rguenther@suse.de>
17418
17419 PR tree-optimization/71947
17420 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17421 ranges have useful limit_vr information.
17422
17423 2016-07-21 Richard Biener <rguenther@suse.de>
17424
17425 * function-tests.c (build_trivial_generic_function): Set
17426 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17427 * omp-low.c (create_omp_child_function): Likewise.
17428 (grid_expand_target_grid_body): Likewise.
17429 * cgraphunit.c (init_lowered_empty_function): Likewise.
17430 (cgraph_node::expand_thunk): Likewise.
17431 * tree-parloops.c (create_loop_fn): Likewise.
17432 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17433
17434 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17435
17436 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17437 in comment.
17438
17439 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17440
17441 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17442 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17443 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17444 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17445 values for insn attribute.
17446 * config/avr/avr.c (avr_out_insert_notbit): New function.
17447 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17448 ADJUST_LEN_INSV_NOTBIT_0/_7.
17449 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17450
17451 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17452
17453 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17454 (chrec_convert_1, chrec_convert): Ditto.
17455 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17456 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17457 * tree-vrp.c (adjust_range_with_scev): Ditto.
17458 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17459 (scev_var_range_cant_overflow): New function.
17460 (scev_probably_wraps_p): New parameter. Call above function.
17461 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17462
17463 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17464
17465 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17466 by removing computation of may_be_zero.
17467
17468 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17469
17470 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17471
17472 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17473
17474 Improving concepts performance and diagnostics.
17475 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17476 for constraint satisfaction and subsumption.
17477 * timevar.h (auto_timevar): New constructor that matches the push/pop
17478 pattern of usage in pt.c.
17479
17480 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17481
17482 * hwint.h (HOST_WIDE_INT_0): New define.
17483 (HOST_WIDE_INT_0U): Ditto.
17484 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17485 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17486 * simplify-rtx.c: Ditto.
17487 * tree-object-size.c: Ditto.
17488
17489 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17490
17491 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17492 check.
17493
17494 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17495
17496 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17497 * combine.c: Use HOST_WIDE_INT_M1U instead of
17498 ~(unsigned HOST_WIDE_INT) 0.
17499 * double-int.h: Ditto.
17500 * dse.c: Ditto.
17501 * dwarf2asm.c:Ditto.
17502 * expmed.c: Ditto.
17503 * genmodes.c: Ditto.
17504 * match.pd: Ditto.
17505 * read-rtl.c: Ditto.
17506 * tree-ssa-loop-ivopts.c: Ditto.
17507 * tree-ssa-loop-prefetch.c: Ditto.
17508 * tree-vect-generic.c: Ditto.
17509 * tree-vect-patterns.c: Ditto.
17510 * tree.c: Ditto.
17511
17512 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17513
17514 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17515 constant addresses outside [0,0xc0] into a register.
17516 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17517 cases where the base address register is unused after.
17518 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17519 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17520 (avr_out_store_psi_reg_disp_tiny): Same.
17521
17522 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17523
17524 Implement attribute progmem on reduced Tiny cores by adding
17525 flash offset 0x4000 to respective symbols.
17526
17527 PR target/71948
17528 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17529 documentation how it works on reduced Tiny cores.
17530 (AVR Named Address Spaces): No support for reduced Tiny.
17531 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17532 (avr_address_tiny_pm_p): New static function.
17533 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17534 if the address is in progmem.
17535 (avr_assemble_integer): Same.
17536 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17537 for symbol_ref in progmem.
17538 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17539 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17540 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17541
17542 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17543
17544 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17545 * configure: Regenerate.
17546 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17547 (USE_THIN_ARCHIVES): New variable.
17548 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17549 this archive as a thin archive.
17550
17551 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17552
17553 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17554 same location as last time, don't skip if we have fix-it hints.
17555 Clarify the skipping logic by converting it from one "if" clause
17556 to repeated "if" clauses.
17557 * spellcheck-tree.c: Include "cpplib.h".
17558 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17559 (best_macro_match::best_macro_match): New constructor.
17560 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17561 Move here from c/c-decl.c.
17562 (class best_macro_match): Move here from c/c-decl.c, converting
17563 from a typedef to a subclass, gaining a ctor.
17564
17565 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17566
17567 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17568 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17569 define...
17570 (avr_addr_space_diagnose_usage): ...and implementation.
17571 (avr_addr_space_supported_p): New function.
17572 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17573 report bad address space usage if that space is supported.
17574 (avr_insert_attributes): Same. No more complain about unsupported
17575 address spaces.
17576 * config/avr/avr-c.c (tm_p.h): Include it.
17577 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17578 macro if avr_addr_space_supported_p.
17579
17580 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17581
17582 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17583 flag_toplevel_reorder.
17584
17585 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17586
17587 * gcc-rich-location.c
17588 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17589 a const char *.
17590 * gcc-rich-location.h
17591 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17592
17593 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17594
17595 * target.def (addr_space): Add new diagnose_usage to hook vector.
17596 * targhooks.c (default_addr_space_diagnose_usage): Add default
17597 implementation and...
17598 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17599 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17600 is some address space, call targetm.addr_space.diagnose_usage.
17601 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17602 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17603 * doc/tm.texi: Regenerate.
17604
17605 2016-07-20 Martin Liska <mliska@suse.cz>
17606
17607 PR middle-end/71898
17608 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17609 Properly handly PHI stmts.
17610
17611 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17612
17613 PR tree-optimization/71503
17614 PR tree-optimization/71683
17615 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17616 and break.
17617
17618 2016-07-20 Martin Liska <mliska@suse.cz>
17619
17620 * doc/invoke.texi (-fipa-ra): Document when the option is
17621 disabled. Fix a typo.
17622
17623 2016-07-20 Martin Liska <mliska@suse.cz>
17624
17625 * Makefile.in: Include fibonacci_heap.c
17626 * fibonacci_heap.c: New file.
17627 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17628 (fibonacci_heap::union_with): Fix deletion of the second heap.
17629 * selftest-run-tests.c (selftest::run_tests): Incorporate
17630 fibonacci heap tests.
17631 * selftest.h: Declare fibonacci_heap_c_tests.
17632
17633 2016-07-20 Martin Liska <mliska@suse.cz>
17634
17635 * selftest-run-tests.c (selftest::run_tests): New function.
17636 * selftest.h (sreal_c_tests): Declare.
17637 * sreal.c (sreal_verify_basics): New function.
17638 (verify_aritmetics): Likewise.
17639 (sreal_verify_arithmetics): Likewise.
17640 (verify_shifting): Likewise.
17641 (sreal_verify_shifting): Likewise.
17642 (void sreal_c_tests): Likewise.
17643
17644 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17645
17646 PR rtl-optimization/71916
17647 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17648 bb which have a single succ fake edge.
17649
17650 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17651
17652 PR debug/71855
17653 * dwarf2out.c (gen_subprogram_die): Only call
17654 gen_unspecified_parameters_die while dumping early dwarf.
17655
17656 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17657
17658 PR middle-end/71874
17659 * gimple-fold.c (fold_builtin_memory_op): Use
17660 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17661
17662 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17663
17664 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17665 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17666 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17667 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17668 * combine.c: Ditto.
17669 * cse.c: Ditto.
17670 * dojump.c: Ditto.
17671 * double-int.c: Ditto.
17672 * dse.c: Ditto.
17673 * dwarf2out.c: Ditto.
17674 * expmed.c: Ditto.
17675 * expr.c: Ditto.
17676 * fold-const.c: Ditto.
17677 * function.c: Ditto.
17678 * fwprop.c: Ditto.
17679 * genmodes.c: Ditto.
17680 * hwint.c: Ditto.
17681 * hwint.h: Ditto.
17682 * ifcvt.c: Ditto.
17683 * loop-doloop.c: Ditto.
17684 * loop-invariant.c: Ditto.
17685 * loop-iv.c: Ditto.
17686 * match.pd: Ditto.
17687 * optabs.c: Ditto.
17688 * real.c: Ditto.
17689 * reload.c: Ditto.
17690 * rtlanal.c: Ditto.
17691 * simplify-rtx.c: Ditto.
17692 * stor-layout.c: Ditto.
17693 * toplev.c: Ditto.
17694 * tree-ssa-loop-ivopts.c: Ditto.
17695 * tree-vect-generic.c: Ditto.
17696 * tree-vect-patterns.c: Ditto.
17697 * tree.c: Ditto.
17698 * tree.h: Ditto.
17699 * ubsan.c: Ditto.
17700 * varasm.c: Ditto.
17701 * wide-int-print.cc: Ditto.
17702 * wide-int.cc: Ditto.
17703 * wide-int.h: Ditto.
17704
17705 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17706
17707 * selftest.c (selftest::assert_streq): Handle NULL values of
17708 val_actual and val_expected.
17709
17710 2016-07-19 Martin Jambor <mjambor@suse.cz>
17711
17712 PR fortran/71688
17713 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17714 rather than cgraph_create_node to get a call graph node.
17715
17716 2016-07-19 Richard Biener <rguenther@suse.de>
17717
17718 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17719 handle all tcc_constant bases and valueize SSA names.
17720 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17721 tcc_constant bases.
17722
17723 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17724
17725 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17726 the flags of the exit block and bb2, not just the entry block.
17727
17728 2016-07-19 Richard Biener <rguenther@suse.de>
17729
17730 PR tree-optimization/71901
17731 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17732 align member, group stuff with the bitfield.
17733 (vn_ref_op_align_unit): New inline.
17734 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17735 record element alignment and operand 3 unchanged.
17736 (ao_ref_init_from_vn_reference): Adjust.
17737 (valueize_refs_1): Likewise.
17738 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17739
17740 2016-07-19 Richard Biener <rguenther@suse.de>
17741
17742 PR tree-optimization/71908
17743 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17744 symbolic constants in a more reliable way.
17745
17746 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17747
17748 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17749 comment.
17750 (vect_update_inits_of_drs): Likewise.
17751 (vect_create_cond_for_alias_checks): Likewise.
17752 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17753
17754 2016-07-19 Richard Biener <rguenther@suse.de>
17755
17756 PR lto/71907
17757 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17758 with an abstract origin that is not an inlined function outer
17759 scope add a self-reference as abstract origin.
17760 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17761
17762 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17763
17764 PR target/71493
17765 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17766 unintentional System V.4 structure return breakage for structures
17767 with a single floating point element.
17768
17769 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17770
17771 PR tree-optimization/71734
17772 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17773 contains REF, use it to check safelen, assume that safelen value
17774 must be greater 1, fix style.
17775 (ref_indep_loop_p_2): Add REF_LOOP argument.
17776 (ref_indep_loop_p): Pass LOOP as additional argument to
17777 ref_indep_loop_p_2.
17778
17779 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17780
17781 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17782 allocation in the prologue.
17783 * explow.c (get_dynamic_stack_base): New function to return an address
17784 expression for the dynamic stack base.
17785 (get_dynamic_stack_size): New function to do the required dynamic stack
17786 space size calculations.
17787 (allocate_dynamic_stack_space): Use new functions.
17788 (align_dynamic_address): Move some code from
17789 allocate_dynamic_stack_space to new function.
17790 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17791
17792 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17793
17794 * config/s390/s390.c (s390_encode_section_info): Always set
17795 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17796 found.
17797
17798 2016-07-18 Richard Biener <rguenther@suse.de>
17799
17800 PR tree-optimization/71893
17801 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17802 for sizetype cast added by array_ref_element_size.
17803 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17804
17805 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17806
17807 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17808 register parameters. Remove code to initialize argument pointer
17809 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17810 using a pc-relative branch. Cleanup conditional code.
17811 * config/pa/pa.md (call_mcount): New expander.
17812 (call_mcount_nonpic): New insn.
17813 (call_mcount_pic): New insn and split.
17814 (call_mcount_pic_post_reload): New insn.
17815 (call_mcount_64bit): New insn and split.
17816 (call_mcount_64bit_post_reload): New insn.
17817
17818 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17819
17820 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17821 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17822 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17823 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17824 (*usum_widenqihi3, *udiff_widenqihi3)
17825 (*addhi3_zero_extend.const): New combiner insns.
17826 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17827 just 1 bit is affected.
17828 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17829 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17830
17831 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17832
17833 * omp-low.c (lower_omp_target): Mark data clauses with
17834 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17835 zero-length subarrays.
17836
17837 2016-07-15 Richard Biener <rguenther@suse.de>
17838
17839 PR tree-optimization/71881
17840 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17841 reverse DOM order to make debug temp generation happy.
17842
17843 2016-07-15 Richard Biener <rguenther@suse.de>
17844
17845 PR tree-optimization/71887
17846 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17847 verify it is not zero for division / modulo handling.
17848 (value_replacement): Adjust.
17849
17850 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17851 Julian Brown <julian@codesourcery.com>
17852
17853 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17854 * config/aarch64/aarch64-cost-tables.h
17855 (vulcan_extra_costs): New variable.
17856 * config/aarch64/aarch64.c
17857 (vulcan_addrcost_table): Likewise.
17858 (vulcan_regmove_cost): Likewise.
17859 (vulcan_vector_cost): Likewise.
17860 (vulcan_branch_cost): Likewise.
17861 (vulcan_tunings): Likewise.
17862
17863 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17864
17865 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17866 (output_in_order): Loop over undefined variables too. Output them
17867 via assemble_undefined_decl. Skip variables that correspond to hard
17868 registers or have value-exprs.
17869 * varpool.c (symbol_table::output_variables): Handle undefined
17870 variables together with defined ones.
17871
17872 2016-07-15 Richard Biener <rguenther@suse.de>
17873
17874 * tree-ssa-pre.c (get_representative_for): Make sure to return
17875 the value number of SSA names.
17876 (phi_translate_1): get_representative_for cannot return NULL.
17877 (do_pre_regular_insertion): Remove redundant call to
17878 fully_constant_expression.
17879 (do_pre_partial_partial_insertion): Likewise.
17880
17881 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17882
17883 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17884 (derive_simple_iv_with_niters): New function.
17885 (simple_iv): Rewrite using simple_iv_with_niters.
17886 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17887 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17888 function.
17889 (number_of_iterations_exit): Rewrite using above function.
17890 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17891 Decl.
17892
17893 2016-07-15 Richard Biener <rguenther@suse.de>
17894
17895 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17896 vec_construct cost.
17897
17898 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR tree-optimization/71872
17901 * tree-data-ref.c (get_references_in_stmt): Ignore references
17902 with is_gimple_constant get_base_address.
17903
17904 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17905
17906 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17907 (TARGET_HAVE_LDACQD): New macro.
17908 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17909 than TARGET_HAVE_LDACQ.
17910 (arm_load_acquire_exclusivedi): Likewise.
17911 (arm_store_release_exclusivedi): Likewise.
17912
17913 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17914
17915 PR rtl-optimization/71878
17916 * lra-constraints.c (match_reload): Pass information about other
17917 output operands. Create new unique register value if matching input
17918 operand shares same register value as output operand being considered.
17919 (curr_insn_transform): Record output operands already processed.
17920
17921 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17922
17923 PR target/65951
17924 PR tree-optimization/70923
17925 * tree-vect-patterns.c: Include mult-synthesis.h.
17926 (target_supports_mult_synth_alg): New function.
17927 (synth_lshift_by_additions): Likewise.
17928 (apply_binop_and_append_stmt): Likewise.
17929 (vect_synth_mult_by_constant): Likewise.
17930 (target_has_vecop_for_code): Likewise.
17931 (vect_recog_mult_pattern): Use above functions to synthesize vector
17932 multiplication by integer constants.
17933
17934 2016-07-14 Alan Modra <amodra@gmail.com>
17935
17936 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17937 gpr alternatives. Correct '*' placement on Y,r alternative.
17938 Add '*' on operand 1 of r,r alternative.
17939
17940 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17941
17942 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17943 * expmed.h: ... Here.
17944
17945 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17946
17947 * gimple.h (stmt_can_terminate_bb_p): New function.
17948 * tree-cfg.c (need_fake_edge_p): Rename to ...
17949 (stmt_can_terminate_bb_p): ... this; return true if stmt can
17950 throw external; handle const and pure calls.
17951 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
17952
17953 2016-07-14 Richard Biener <rguenther@suse.de>
17954
17955 PR tree-optimization/71866
17956 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
17957 (do_hoist_insertion): Avoid endless recursion when we
17958 didn't insert anything because we managed to simplify
17959 things down to a constant or SSA name.
17960 (fully_constant_expression): Re-write in terms of ...
17961 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
17962 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
17963 vn_nary_build_or_lookup_1.
17964 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
17965 (vn_nary_build_or_lookup): ... this which now wraps it.
17966
17967 2016-07-14 Alan Modra <amodra@gmail.com>
17968
17969 PR target/71733
17970 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
17971 with p9_vector override before power9-dform override.
17972
17973 2016-07-13 Andi Kleen <ak@linux.intel.com>
17974
17975 * value-prof.c (gimple_value_profile_transformations): Don't run
17976 when auto_profile is on.
17977
17978 2016-07-13 Andi Kleen <ak@linux.intel.com>
17979
17980 * auto-profile.c (update_inlined_ind_target,
17981 afdo_indirect_call): Print information to dump file.
17982
17983 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
17984
17985 * genrecog.c (special_predicate_operand_p): New function.
17986 (predicate_name): Move function.
17987 (validate_pattern): Don't warn about missing mode for all
17988 define_special_predicate predicates.
17989
17990 2016-07-13 Bin Cheng <bin.cheng@arm.com>
17991
17992 * tree-vect-data-refs.c (vect_no_alias_p): New function.
17993 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
17994 resolve alias checks which are known at compilation time.
17995 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
17996 alias checks are resolved. Move dump info for too many runtime
17997 alias checks to here...
17998 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
17999
18000 2016-07-13 Richard Biener <rguenther@suse.de>
18001
18002 PR tree-optimization/24574
18003 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
18004 position and add shift, rotate, divison and modulo support
18005 for left zero.
18006 (value_replacement): Pass in argument position to absorbing_element_p.
18007
18008 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
18009
18010 PR ipa/71633
18011 * ipa-inline-transform.c (inline_call): Support
18012 instrumented thunks.
18013
18014 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18015
18016 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18017 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18018 divide feature.
18019 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18020 Baseline. Make initial alternative TARGET_32BIT only.
18021 (udivsi3): Likewise.
18022 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18023 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18024 target.
18025
18026 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18027
18028 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18029 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18030 availability with TARGET_HAVE_MOVT.
18031 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18032 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18033 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18034 UINTVAL.
18035 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18036 extra instruction if MOVW is available. Use a cost variable
18037 incremented by COSTS_N_INSNS (1) when the condition match rather than
18038 returning an arithmetic expression based on COSTS_N_INSNS. Make
18039 constant with bottom half word zero cost 2 instruction if MOVW is
18040 available.
18041 * config/arm/arm.md (define_attr "arch"): Add v8mb.
18042 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18043 target is ARMv8-M Baseline.
18044 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18045 (arm_movtas_ze): Likewise.
18046 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18047 alternative for constants satisfying j constraint.
18048 (thumb1_movsi_insn): Likewise.
18049 (movsi splitter for K alternative): Tighten condition to not trigger
18050 if movt is available and j constraint is satisfied.
18051 (Pe immediate splitter): Likewise.
18052 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18053 constant fitting in an halfword to use MOVW.
18054 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18055 effective target.
18056
18057 2016-07-13 Richard Biener <rguenther@suse.de>
18058
18059 PR middle-end/71104
18060 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18061 gimplifying the LHS. Make sure to gimplify a returning twice
18062 call LHS without using SSA names.
18063
18064 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18065
18066 * tree-data-ref.c (find_data_references_in_stmt): Remove
18067 unnecessary call to vec::release.
18068 (graphite_find_data_references_in_stmt): Likewise.
18069 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18070 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18071
18072 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18073
18074 * cfgexpand.c (expand_used_vars): Make the type of a local
18075 variable auto_vec.
18076 * genmatch.c (lower_for): Likewise.
18077 * haifa-sched.c (haifa_sched_init): Likewise.
18078 (add_to_speculative_block): Likewise.
18079 (create_check_block_twin): Likewise.
18080 * predict.c (handle_missing_profiles): Likewise.
18081 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18082 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18083 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18084 Likewise.
18085 (maybe_lower_iteration_bound): Likewise.
18086 * tree-ssa-sccvn.c (DFS): Likewise.
18087 * tree-stdarg.c (reachable_at_most_once): Likewise.
18088 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18089 (vectorizable_store): Likewise.
18090
18091 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18092
18093 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18094 (sccvn_dom_walker): make cond_stack an auto_vec.
18095
18096 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18097
18098 * ree.c (struct ext_state): Make type of members auto_vec.
18099 (find_and_remove_re): Adjust.
18100
18101 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18102
18103 * cfgexpand.c (struct stack_vars_data): Make type of fields
18104 auto_vec.
18105 (expand_used_vars): Adjust.
18106
18107 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18108
18109 * ipa.c (record_cdtor_fn): Adjust.
18110 (build_cdtor_fns): Likewise.
18111 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18112 variables.
18113
18114 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18115
18116 * genextract.c (struct accum_extract): Add constructor and make
18117 members auto_vec.
18118 (gen_insn): Adjust.
18119
18120 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18121
18122 * tree.c (struct free_lang_data_d): Add constructor and change
18123 types of members to ones that automatically manage resources.
18124 (fld_worklist_push): Adjust.
18125 (find_decls_types): Likewise.
18126 (find_decls_types_in_eh_region): Likewise.
18127 (free_lang_data_in_cgraph): Stop manually creating and
18128 destroying members of free_lang_data_d.
18129
18130 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18131
18132 PR rtl-optimization/68961
18133 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18134 peephole variant. Use sse_reg_operand predicates.
18135
18136 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18137
18138 * config/i386/predicates.md (x86_64_immediate_operand)
18139 <case CONST_INT>: Remove unneeded truncation to DImode.
18140 <case CONST>: Ditto.
18141 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18142
18143 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18144
18145 PR target/71805
18146 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18147 The xxperm and xxpermr instructions require that the 2nd input
18148 operand overlap with the output operand, and not the 1st.
18149 (altivec_vperm_v8hiv16qi): Likewise.
18150 (altivec_vperm_<mode>_uns_internal): Likewise.
18151 (altivec_vpermr_<mode>_internal): Likewise.
18152 (vperm_v8hiv4si): Likewise.
18153 (vperm_v16qiv8hi): Likewise.
18154
18155 2016-07-12 Nathan Sidwell <nathan@acm.org>
18156
18157 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18158 when -mno-pic-data-is-text-relative is in effect, by default.
18159 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18160 behavior and clarify.
18161
18162 2016-07-12 Martin Liska <mliska@suse.cz>
18163
18164 * params.def: Add avg-loop niter.
18165 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18166 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18167 * doc/invoke.texi: Document the new parameter.
18168
18169 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18170
18171 PR middle-end/71700
18172 * expr.c (store_constructor): Mask sign-extended bits when widening
18173 sub-word constructor element at the start of a word.
18174
18175 2016-07-12 Martin Liska <mliska@suse.cz>
18176
18177 * Makefile.in: Append rule for params-options.h.
18178 * params-options.h: New file.
18179
18180 2016-07-12 Martin Liska <mliska@suse.cz>
18181
18182 * ira-build.c (mark_loops_for_removal): Properly iterate
18183 loops.
18184
18185 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18186 Richard Biener <rguenther@suse.de>
18187
18188 PR tree-optimization/23286
18189 PR tree-optimization/70159
18190 * doc/invoke.texi: Document -fcode-hoisting.
18191 * common.opt (fcode-hoisting): New flag.
18192 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18193 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18194 (do_regular_insertion): Rename to ...
18195 (do_pre_regular_insertion): ... this and amend general comments
18196 on insertion strathegy.
18197 (do_partial_partial_insertion): Rename to ...
18198 (do_pre_partial_partial_insertion): ... this.
18199 (do_hoist_insertion): New function.
18200 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18201 and call do_hoist_insertion properly.
18202 (insert): Adjust.
18203 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18204 (pass_pre::execute): Register hoist_insert stats.
18205
18206 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18207
18208 PR middle-end/71716
18209 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18210 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18211 is different from mode's bitsize. Small cleanup.
18212
18213 2016-07-12 Richard Biener <rguenther@suse.de>
18214
18215 PR rtl-optimization/68961
18216 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18217 to simplify to a non-constant.
18218
18219 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18220
18221 PR middle-end/71758
18222 * omp-low.c (expand_omp_target): Gimplify device.
18223
18224 PR tree-optimization/71823
18225 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18226 to get vec_oprnds2 from op2.
18227
18228 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18229
18230 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18231 Hoist common subexpressions.
18232 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18233
18234 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18235
18236 PR target/71800
18237 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18238 prevent generation of 'stxsiwx' on pre Power8 hardware.
18239
18240 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18241
18242 * input.c: Include cpplib.h.
18243 (selftest::temp_source_file): New class.
18244 (selftest::temp_source_file::temp_source_file): New ctor.
18245 (selftest::temp_source_file::~temp_source_file): New dtor.
18246 (selftest::should_have_column_data_p): New function.
18247 (selftest::test_should_have_column_data_p): New function.
18248 (selftest::temp_line_table): New class.
18249 (selftest::temp_line_table::temp_line_table): New ctor.
18250 (selftest::temp_line_table::~temp_line_table): New dtor.
18251 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18252 it to create a temp_line_table.
18253 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18254 locations that are known to have column data.
18255 (selftest::line_table_case): New struct.
18256 (selftest::test_reading_source_line): Move tempfile handling
18257 to class temp_source_file.
18258 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18259 (selftest::assert_token_loc_eq): New function.
18260 (ASSERT_TOKEN_LOC_EQ): New macro.
18261 (selftest::test_lexer): New function.
18262 (selftest::boundary_locations): New array.
18263 (selftest::input_c_tests): Call test_should_have_column_data_p.
18264 Loop over a test matrix of interesting values of location and
18265 default_range_bits, calling test_lexer on each case in the matrix.
18266 Move call to test_accessing_ordinary_linemaps into the matrix.
18267 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18268 (ASSERT_EQ_AT): New macro.
18269
18270 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18271
18272 PR target/71801
18273 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18274 Don't convert TImode in debug insn.
18275
18276 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18277
18278 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18279 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18280 (tree_type_common::lang_flag_7): New.
18281 (tree_type_common::spare): Reduce size.
18282 * tree.h (TYPE_ALIGN_OK): Remove.
18283 (TYPE_LANG_FLAG_7): New.
18284 (get_inner_reference): Adjust header.
18285 * print-tree.c (print_node): Adjust.
18286 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18287 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18288 calls to get_inner_reference.
18289 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18290 handling of TYPE_ALIGN_OK.
18291 * builtins.c (get_object_alignment_2): Adjust call to
18292 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18293 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18294 TYPE_ALIGN_OK.
18295 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18296 * cfgexpand.c (expand_debug_expr): Likewise.
18297 * dbxout.c (dbxout_expand_expr): Likewise.
18298 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18299 loc_list_from_tree, fortran_common): Likewise.
18300 * fold-const.c (optimize_bit_field_compare,
18301 decode_field_reference, fold_unary_loc, fold_comparison,
18302 split_address_to_core_and_offset): Likewise.
18303 * gimple-laddress.c (execute): Likewise.
18304 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18305 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18306 * hsa-gen.c (gen_hsa_addr): Likewise.
18307 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18308 * tsan.c (instrument_expr): Likewise.
18309 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18310 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18311 * tree-affine.c (tree_to_aff_combination,
18312 get_inner_reference_aff): Adjust calls to get_inner_reference.
18313 * tree-data-ref.c (split_constant_offset_1,
18314 dr_analyze_innermost): Likewise.
18315 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18316 * tree-sra.c (ipa_sra_check_caller): Likewise.
18317 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18318 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18319 bswap_replace): Likewise.
18320 * tree-vect-data-refs.c (vect_check_gather,
18321 vect_analyze_data_refs): Likewise.
18322 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18323 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18324 TYPE_ALIGN_OK.
18325
18326 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18327
18328 * Makefile.in (selftest-valgrind): New phony target.
18329 * function-tests.c (selftest::build_cfg): Delete pass instances
18330 created by the test.
18331 (selftest::convert_to_ssa): Likewise.
18332 (selftest::test_expansion_to_rtl): Likewise.
18333 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18334 vectors.
18335 (selftest::test_diamond): Likewise.
18336
18337 2016-07-11 Richard Biener <rguenther@suse.de>
18338
18339 PR tree-optimization/71816
18340 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18341 than replacing all of its operands.
18342
18343 2016-07-11 Alan Modra <amodra@gmail.com>
18344
18345 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18346 (ctr<mode>): Add unspec.
18347 (ctr<mode>_internal*): Likewise.
18348
18349 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18350
18351 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18352 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18353
18354 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18355
18356 PR rtl-optimization/71621
18357 * lra-constraints.c (process_alt_operands): Check combination of
18358 reg class and mode.
18359
18360 2016-07-08 Jason Merrill <jason@redhat.com>
18361 Richard Biener <rguenther@suse.de>
18362
18363 P0145: Refining Expression Order for C++.
18364 * gimplify.c (initial_rhs_predicate_for): New.
18365 (gimplfy_modify_expr): Gimplify RHS before LHS.
18366
18367 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18368
18369 PR target/71297
18370 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18371 Allow standard error handling to take over when a wrong number
18372 of arguments is presented to __builtin_vec_ld () or
18373 __builtin_vec_st ().
18374
18375 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18376
18377 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18378 variants.
18379 (smin): Likewise.
18380 (fmax): New entry.
18381 (fmin): Likewise.
18382 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18383 __builtin_aarch64_fmaxv2sf.
18384 (vmaxnmq_f32): Likewise.
18385 (vmaxnmq_f64): Likewise.
18386 (vminnm_f32): Likewise.
18387 (vminnmq_f32): Likewise.
18388 (vminnmq_f64): Likewise.
18389
18390 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18391
18392 PR target/71806
18393 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18394 enable -mfloat128-hardware by default.
18395 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18396 that IEEE 128-bit hardware support needs.
18397 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18398 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18399 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18400 floating point requires.
18401 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18402 -mfloat128 and -mfloat128-hardware changes.
18403
18404 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18405
18406 PR tree-optimization/71667
18407 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18408
18409 2016-07-08 Martin Liska <mliska@suse.cz>
18410
18411 PR middle-end/71606
18412 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18413 folding produces SAVE_EXPRs, thus return false for the type.
18414
18415 2016-07-07 Martin Liska <mliska@suse.cz>
18416
18417 * file-find.c (remove_prefix): New function.
18418 * file-find.h (remove_prefix): Declare the function.
18419 * gcc-ar.c (main): Skip a folder of the wrapper if
18420 a wrapped binary would point to the same file.
18421
18422 2016-07-07 Jan Hubicka <jh@suse.cz>
18423
18424 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18425 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18426 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18427
18428 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18429
18430 PR ipa/71624
18431 * ipa-inline-analysis.c (compute_inline_parameters): Set
18432 local.can_change_signature to false for intrumentation
18433 thunk callees.
18434
18435 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18436
18437 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18438 with TARGET_HAVE_MOVT.
18439 (TARGET_HAVE_MOVT): Define.
18440 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18441 availability with TARGET_HAVE_MOVT.
18442 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18443 availability.
18444 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18445 TARGET_THUMB2.
18446 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18447 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18448 * config/arm/constraints.md (define_constraint "j"): Use
18449 TARGET_HAVE_MOVT to check MOVT availability.
18450
18451 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18452
18453 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18454
18455 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18456
18457 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18458 (armv8-m.main): Likewise.
18459 (armv8-m.main+dsp): Likewise.
18460 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18461 (FL_FOR_ARCH8M_MAIN): Likewise.
18462 * config/arm/arm-tables.opt: Regenerate.
18463 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18464 armv8-m.main+dsp to BE8_LINK_SPEC.
18465 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18466 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18467 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18468 Baseline and Mainline.
18469 (arm_option_override_internal): Also disable arm_restrict_it when
18470 !arm_arch_notm. Update comment for -munaligned-access to also cover
18471 ARMv8-M Baseline.
18472 (arm_file_start): Increase buffer size for printing architecture name.
18473 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18474 and armv8-m.main+dsp.
18475 (mno-unaligned-access): Clarify that this is disabled by default for
18476 ARMv8-M Baseline architectures as well.
18477
18478 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18479
18480 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18481 decide whether to prevent some libgcc routines being included for some
18482 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18483 link between this condition and the one in
18484 libgcc/config/arm/lib1func.S.
18485
18486 2016-07-07 Richard Biener <rguenther@suse.de>
18487
18488 * tree-ssa-pre.c: Include alias.h.
18489 (compute_avail): If we have multiple VN_REFERENCEs with the
18490 same hashtable entry adjust that to make it a valid replacement
18491 for all of them with respect to alignment and aliasing
18492 when doing insertion.
18493 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18494 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18495
18496 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18497
18498 PR target/70098
18499 PR target/71763
18500 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18501 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18502 constraint.
18503
18504 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18505
18506 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18507 (adjust_mems): Adjust.
18508 (adjust_insn): Likewise.
18509 (prepare_call_arguments): Likewise.
18510
18511 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18512
18513 * gcse.c (struct ls_expr): Make stores field a vector.
18514 (ldst_entry): Adjust.
18515 (free_ldst_entry): Likewise.
18516 (print_ldst_list): Likewise.
18517 (compute_ld_motion_mems): Likewise.
18518 (update_ld_motion_stores): Likewise.
18519
18520 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18521
18522 * gcse.c (struct ls_expr): Remove loads field.
18523 (ldst_entry): Adjust.
18524 (free_ldst_entry): Likewise.
18525 (print_ldst_list): Likewise.
18526 (compute_ld_motion_mems): Likewise.
18527
18528 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18529
18530 * store-motion.c (struct st_expr): Make antic_stores a vector.
18531 (st_expr_entry): Adjust.
18532 (free_st_expr_entry): Likewise.
18533 (print_store_motion_mems): Likewise.
18534 (find_moveable_store): Likewise.
18535 (compute_store_table): Likewise.
18536 (remove_reachable_equiv_notes): Likewise.
18537 (replace_store_insn): Likewise.
18538 (build_store_vectors): Likewise.
18539
18540 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18541
18542 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18543 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18544
18545 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18546
18547 PR tree-optimization/71518
18548 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18549 misalign also for outer loops with negative step.
18550
18551 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18552
18553 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18554 (cortex_a53_shift): Add mov_shift.
18555 (cortex_a53_shift_reg): Add new reservation for register shifts.
18556 (cortex_a53_alu): Remove bfm.
18557 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18558 (cortex_a53_alu_extr): Add new reservation for EXTR.
18559 (bypasses): Improve bypass modelling.
18560
18561 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18562
18563 PR target/50739
18564 * config/avr/avr.c (avr_asm_select_section): Strip off
18565 SECTION_DECLARED from flags when calling get_section.
18566
18567 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18568
18569 * tree-vectorizer.h (vect_memory_access_type): Add
18570 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18571 * tree-vect-stmts.c (compare_step_with_zero): New function.
18572 (perm_mask_for_reverse): Move further up file.
18573 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18574 step is negative.
18575 (get_negative_load_store_type): New function.
18576 (get_load_store_type): Call it. Add an ncopies argument.
18577 (vectorizable_mask_load_store): Update call accordingly and
18578 remove tests for negative steps.
18579 (vectorizable_store, vectorizable_load): Likewise. Handle new
18580 memory_access_types.
18581
18582 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18583
18584 * tree-vectorizer.h (vect_memory_access_type): New enum.
18585 (_stmt_vec_info): Add a memory_access_type field.
18586 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18587 (vect_model_store_cost): Take an access type instead of a boolean.
18588 (vect_model_load_cost): Likewise.
18589 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18590 vect_model_store_cost and vect_model_load_cost.
18591 * tree-vect-stmts.c (vec_load_store_type): New enum.
18592 (vect_model_store_cost): Take an access type instead of a
18593 store_lanes_p boolean. Simplify tests.
18594 (vect_model_load_cost): Likewise, but for load_lanes_p.
18595 (get_group_load_store_type, get_load_store_type): New functions.
18596 (vectorizable_store): Use get_load_store_type. Record the access
18597 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18598 (vectorizable_load): Likewise.
18599 (vectorizable_mask_load_store): Likewise. Replace is_store
18600 variable with vls_type.
18601
18602 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18603
18604 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18605 single_element_p parameter.
18606 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18607 Check the PR65518 case here rather than in vectorizable_load.
18608 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18609 * tree-vect-stmts.c (vectorizable_load): Likewise.
18610
18611 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18612
18613 * tree-vectorizer.h (gather_scatter_info): New structure.
18614 (vect_check_gather_scatter): Return a bool rather than a decl.
18615 Replace return-by-pointer arguments with a single
18616 gather_scatter_info *.
18617 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18618 (vect_analyze_data_refs): Update call accordingly.
18619 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18620 (vectorizable_mask_load_store): Likewise. Also record the
18621 offset dt and vectype in the gather_scatter_info.
18622 (vectorizable_store): Likewise.
18623 (vectorizable_load): Likewise.
18624
18625 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18626
18627 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18628 strided groups, use the cost of N scalar accesses instead
18629 of ncopies vector accesses.
18630 (vect_model_load_cost): Likewise.
18631
18632 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18633
18634 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18635 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18636 variable to indicate when once-per-group costs are being used.
18637 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18638
18639 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18640
18641 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18642 peeling-for-gaps condition.
18643
18644 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18645
18646 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18647 element to register if it doesn't match general_operand.
18648
18649 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18650 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18651
18652 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18653 prototype.
18654 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18655 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18656 (SIGNBIT): New mode iterator.
18657 (Fsignbit): New mode attribute.
18658 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18659 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18660 when direct moves are available.
18661 (signbit<mode>2_dm): New define_insn_and_split).
18662 (signbit<mode>2_dm2): New define_insn.
18663
18664 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18665
18666 PR rtl-optimization/71594
18667 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18668 into subregs of appropriate mode before trying to emit a conditional
18669 move.
18670
18671 2016-07-05 Jan Hubicka <jh@suse.cz>
18672
18673 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18674 (simple_iv): Use it.
18675
18676 2016-07-05 Jan Hubicka <jh@suse.cz>
18677
18678 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18679
18680 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18681
18682 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18683 "offmemok".
18684
18685 2016-07-05 Jan Hubicka <jh@suse.cz>
18686
18687 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18688 IV can overflow.
18689
18690 2016-07-05 Richard Biener <rguenther@suse.de>
18691
18692 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18693 Handle empty else block.
18694 (is_feasible_trace): Likewise.
18695 (split_paths): Likewise.
18696
18697 2016-07-05 Richard Biener <rguenther@suse.de>
18698
18699 * tree-loop-distribution.c (distribute_loop): Fix issue with
18700 the cost model loop.
18701
18702 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18703
18704 * config/arm/neon-testgen.ml: Delete.
18705 * config/arm/neon.ml: Delete.
18706
18707 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18708
18709 PR c++/71739
18710 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18711 directly using TREE_PURPOSE.
18712
18713 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18714
18715 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18716 * config/aarch64/aarch64_neon.h: Likewise.
18717 * config/aarch64/arm_neon.h: Likewise.
18718 * config/aarch64/atomics.md: Likewise.
18719 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18720 * doc/invoke.texi: Likewise.
18721
18722 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18723
18724 * config/s390/s390.md: Add "z13" cpu_facility.
18725 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18726 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18727 condition" type instructions.
18728
18729 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18730 Jeff Law <law@redhat.com>
18731
18732 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18733 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18734
18735 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18736
18737 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18738 permutation for TARGET_AVX512F.
18739 (ix86_expand_vec_one_operand_perm_avx512): New function.
18740 (expand_vec_perm_1): Invoke introduced function.
18741 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18742 it may be not valid after vectorization.
18743
18744 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18745
18746 PR target/63874
18747 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18748 typo in comment. Only force to memory if it is a weak
18749 external reference.
18750
18751 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18752 Jiong Wang <jiong.wang@arm.com>
18753
18754 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18755 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18756 (AARCH64_FL_F16): New.
18757 (AARCH64_FL_FOR_ARCH8_2): New.
18758 (AARCH64_ISA_8_2): New.
18759 (AARCH64_ISA_F16): New.
18760 (TARGET_FP_F16INST): New.
18761 (TARGET_SIMD_F16INST): New.
18762 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18763 ("fp"): Disabling "fp" also disables "fp16".
18764 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18765 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18766 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18767 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18768
18769 2016-07-04 Jan Beulich <jbeulich@suse.com>
18770
18771 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18772
18773 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18774
18775 PR target/71720
18776 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18777 the insns, use an insn form that does not adjust the offset on
18778 little endian systems.
18779
18780 2016-07-01 Jan Beulich <jbeulich@suse.com>
18781
18782 * varasm.c (get_variable_section): Validate initializer in
18783 named .bss-like sections.
18784
18785 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18786
18787 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18788 Exchange the order of the second and third operands in the vpermr
18789 instruction tmeplate.
18790
18791 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18792
18793 PR target/71698
18794 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18795 Disallow TDmode values.
18796
18797 2016-07-01 Alan Modra <amodra@gmail.com>
18798
18799 PR rtl-optimization/71709
18800 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18801 being set, not referenced.
18802
18803 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18804
18805 PR tree-optimization/70729
18806 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18807 of loop since it can be not valid after transformation.
18808
18809 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18810
18811 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18812 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18813
18814 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18815
18816 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18817 for NULL decl.
18818
18819 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18820
18821 PR target/71677
18822 * config/rs6000/constraints.md (wY constraint): New constraint to
18823 match the requirements for the LXSD and STXSD instructions.
18824 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18825 predicate to match the requirements for the LXSD and STXSD
18826 instructions.
18827 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18828 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18829 to make sure that the bottom 2 bits of offset are 0, the address
18830 form is offsettable, and no updating is done in the address mode.
18831 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18832 (movdi_internal32): Likewise
18833 (movdi_internal64): Likewise.
18834
18835 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18836
18837 PR tree-optimization/71707
18838 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18839 strinfo even for ADDR_EXPR ptr.
18840
18841 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18842
18843 * config/rs6000/altivec.md (darn_32): Change the condition to
18844 TARGET_P9_MISC instead of TARGET_MODULO.
18845 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18846 condition expression.
18847 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18848 condition expression.
18849 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18850 (DFP_TEST): New code iterator.
18851 (dfptstsfi_<code>_mode>): New define_expand.
18852 (*dfp_sgnfcnc_<mode>): New define_insn.
18853 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18854 definition next to BU_P9_MISC_1 definition and change the MASK
18855 value to RS6000_BTM_P9_MISC.
18856 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18857 (BU_P9_64BIT_MISC_0): Likewise.
18858 (BU_P9_DFP_MISC_0): New macro definition.
18859 (BU_P9_DFP_MISC_1): New macro definition.
18860 (BU_P9_DFP_MISC_2): New macro definition.
18861 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18862 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18863 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18864 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18865 (TSTSFI_LT_TD): Likewise.
18866 (TSTSFI_EQ_DD): Likewise.
18867 (TSTSFI_EQ_TD): Likewise.
18868 (TSTSFI_GT_DD): Likewise.
18869 (TSTSFI_GT_TD): Likewise.
18870 (TSTSFI_OV_DD): Likewise.
18871 (TSTSFI_OV_TD): Likewise.
18872 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18873 (TSTSFI_LT_DD): Likewise.
18874 (TSTSFI_LT_TD): Likewise.
18875 (TSTSFI_EQ): Likewise.
18876 (TSTSFI_EQ_DD): Likewise.
18877 (TSTSFI_EQ_TD): Likewise.
18878 (TSTSFI_GT): Likewise.
18879 (TSTSFI_GT_DD): Likewise.
18880 (TSTSFI_GT_TD): Likewise.
18881 (TSTSFI_OV): Likewise.
18882 (TSTSFI_OV_DD): Likewise.
18883 (TSTSFI_OV_TD): Likewise.
18884 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18885 overloaded test significance functions.
18886 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18887 OPTION_MASK_P9_MISC into the representation of this mask.
18888 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18889 of this mask.
18890 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18891 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18892 non-zero.
18893 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18894 argument is a 6-bit unsigned literal value if the icode argument
18895 represents a DFP test significance built-in call.
18896 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18897 flag used independently and in combination with the
18898 RS6000_BTM_64BIT flag.
18899 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18900 (rs6000_builtin_mask_names): Add entry for power9-misc
18901 command-line option.
18902 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18903 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18904 RS6000_BTM_P9_MISC macros.
18905 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18906 option and change the description of the -mpower9-vector option to
18907 enable only vector instructions, removing its erroneously claimed
18908 support for scalar instructions.
18909 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18910 the ISA 3.0 digital floating point test significance built-in
18911 functions.
18912
18913 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18914
18915 * config/aarch64/aarch64.c (cortexa35_tunings):
18916 Enable AES fusion. Use cortexa57_branch_cost.
18917 (cortexa53_tunings): Use cortexa57_branch_cost.
18918 (cortexa72_tunings): Use cortexa57_branch_cost.
18919 Use AUTOPREFETCHER_WEAK.
18920 (cortexa73_tunings): Use cortexa57_branch_cost.
18921
18922 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18923 James Greenhalgh <james.greenhalgh@arm.com>
18924
18925 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18926 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18927 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18928 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18929 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18930 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18931 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18932 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18933 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18934 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18935 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18936 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18937 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18938 New intrinsics.
18939
18940 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18941 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18942
18943 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18944 New define_insn.
18945 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18946
18947 2016-06-30 David Malcolm <dmalcolm@redhat.com>
18948
18949 PR driver/71651
18950 * gcc.c (driver::build_option_suggestions): Pass "option" to
18951 add_misspelling_candidates.
18952 * opts-common.c (add_misspelling_candidates): Add "option" param;
18953 use it to avoid adding negated forms for options marked with
18954 RejectNegative.
18955 * opts.h (add_misspelling_candidates): Add "option" param.
18956
18957 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18958
18959 PR middle-end/71693
18960 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
18961 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
18962 first when permuting bitwise operation with rotate. Cast
18963 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
18964
18965 2016-06-29 David Malcolm <dmalcolm@redhat.com>
18966
18967 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
18968 for misspelled param names.
18969 * params.c: Include spellcheck.h.
18970 (find_param_fuzzy): New function.
18971 * params.h (find_param_fuzzy): New prototype.
18972 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
18973 * spellcheck.h (struct edit_distance_traits<const char *>):
18974 ...here.
18975
18976 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
18977
18978 * config/rs6000/predicates.md (const_0_to_7_operand): New
18979 predicate, recognize 0..7.
18980 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
18981 support for doing extracts from V16QImode, V8HImode, V4SImode
18982 under ISA 3.0.
18983 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
18984 vector extract support.
18985 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
18986 for ISA 3.0 vector extract.
18987 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
18988 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
18989 extracts of a constant element number from small integer vectors
18990 on 64-bit ISA 3.0 systems.
18991 (vsx_extract_<mode>_di): Likewise.
18992 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
18993 say when we can do ISA 3.0 vector extracts.
18994 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
18995 registers, using the stxsiwx instruction.
18996
18997 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
18998
18999 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
19000 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
19001 qdf24xx_regmove_cost, qdf24xx_tunings): New.
19002 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
19003 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
19004 * config/arm/arm.c (arm_qdf24xx_tune): New.
19005
19006 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
19007
19008 * config/aarch64/aarch64.c (cortexa53_tunings):
19009 Increase loop alignment to 8. Set function alignment to 16.
19010 (cortexa35_tunings): Likewise.
19011 (cortexa57_tunings): Increase loop alignment to 8.
19012 (cortexa72_tunings): Likewise.
19013 (cortexa73_tunings): Likewise.
19014
19015 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
19016
19017 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19018 for arm_fp16_ok and arm_fp16_hw.
19019 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19020 arm_fp16_alternative.
19021
19022 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
19023
19024 PR tree-optimization/71655
19025 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19026 types when swapping operands.
19027
19028 2016-06-29 Martin Liska <mliska@suse.cz>
19029
19030 PR middle-end/71585
19031 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19032 * ipa-inline-transform.c (inline_call): Remove unnecessary call
19033 of build_optimization_node.
19034
19035 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19036
19037 PR tree-optimization/70729
19038 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19039 independent in loops having positive safelen value.
19040 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19041 it may be not valid after vectorization.
19042
19043 2016-06-29 Jakub Jelinek <jakub@redhat.com>
19044
19045 PR tree-optimization/71625
19046 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
19047 is sorted by ascending list->offset. If PTR is non-NULL and there is
19048 previous strinfo, call get_stridx_plus_constant.
19049 (get_stridx): Pass exp as second argument to get_addr_stridx.
19050 (addr_stridxptr): Add missing list = list->next, so that there can be
19051 more than one entries in the list. Bump limit from 16 to 32. Ensure
19052 the list is sorted by ascending list->offset.
19053 (get_stridx_plus_constant): Adjust so that it can be also called with
19054 ADDR_EXPR instead of SSA_NAME as PTR.
19055 (handle_char_store): Pass NULL_TREE as second argument to
19056 get_addr_stridx.
19057
19058 2016-06-29 Richard Biener <rguenther@suse.de>
19059
19060 PR rtl-optimization/68961
19061 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19062
19063 2016-06-29 Richard Biener <rguenther@suse.de>
19064
19065 PR middle-end/71002
19066 * alias.c (component_uses_parent_alias_set_from): Handle
19067 type punning through union accesses by using the union alias set.
19068 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19069
19070 2016-07-29 Richard Biener <rguenther@suse.de>
19071
19072 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19073 precision not matching mode precision.
19074
19075 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19076
19077 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19078 pa_output_arg_descriptor.
19079 (call_val_symref_64bit_post_reload): Likewise.
19080 (call_val_powf_64bit_post_reload): Likewise.
19081 (sibcall_internal_symref_64bit): Likewise.
19082 (sibcall_value_internal_symref_64bit): Likewise.
19083
19084 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19085
19086 PR middle-end/71626
19087 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19088 a constant, force its SUBREG_REG into memory or register instead
19089 of whole op1.
19090
19091 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19092
19093 PR target/58655
19094 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19095 * doc/invoke.texi (AVR Options): Document it.
19096
19097 2016-06-28 Walter Lee <walt@tilera.com>
19098
19099 * config/tilegx/linux.h: Do not include arch/icache.h
19100 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19101 * config/tilepro/linux.h: Do not include arch/icache.h
19102 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19103
19104 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19105
19106 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19107 for big-endian BIT_FIELD_REF.
19108
19109 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19110
19111 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19112 ('size' attribute): Add '128'.
19113 Include power9.md.
19114 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19115 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19116 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19117 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19118 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19119 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19120 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19121 *trunc<mode>df2_odd): Set size attribute to '128'.
19122 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19123 * config/rs6000/power6.md (power6-fp): Include dfp type.
19124 * config/rs6000/power7.md (power7-fp): Likewise.
19125 * config/rs6000/power8.md (power8-fp): Likewise.
19126 * config/rs6000/power9.md: New file.
19127 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19128 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19129 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19130 htmsimple.
19131 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19132 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19133 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19134 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19135 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19136 dfp_dscri_<mode>): Change type attribute to dfp.
19137 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19138 attribute to vecsimple.
19139 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19140 and prefetch streams.
19141 (rs6000_option_override_internal): Remove temporary code setting
19142 tuning to power8. Don't set rs6000_sched_groups for power9.
19143 (last_scheduled_insn): Change to rtx_insn *.
19144 (divide_cnt, vec_load_pendulum): New variables.
19145 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19146 (rs6000_issue_rate): Set issue rate for Power9.
19147 (is_power9_pairable_vec_type): New.
19148 (power9_sched_reorder2): New.
19149 (rs6000_sched_reorder2): Call new function for Power9 specific
19150 reordering.
19151 (insn_must_be_first_in_group): Remove Power9.
19152 (insn_must_be_last_in_group): Likewise.
19153 (force_new_group): Likewise.
19154 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19155 Initialize divide_cnt/vec_load_pendulum.
19156 (_rs6000_sched_context, rs6000_init_sched_context,
19157 rs6000_set_sched_context): Handle context save/restore of new
19158 variables.
19159
19160 2016-06-28 Richard Biener <rguenther@suse.de>
19161
19162 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19163 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19164 COMPONENT_REF operand.
19165 (nonoverlapping_component_refs_p): Likewise.
19166 * stor-layout.c (start_bitfield_representative): Mark
19167 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19168
19169 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19170
19171 * Makefile.in: Don't cat ../stage_current if it does not exist.
19172
19173 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19174 last argument is a bit-field.
19175
19176 PR rtl-optimization/71673
19177 * internal-fn.c (expand_arith_overflow_result_store): Use
19178 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19179 expand_simple_binop.
19180
19181 PR middle-end/66867
19182 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19183 expand_ifn_atomic_compare_exchange): New functions.
19184 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19185 * tree.h (build_call_expr_internal_loc): Rename to ...
19186 (build_call_expr_internal_loc_array): ... this. Fix up type of
19187 last argument.
19188 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19189 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19190 ATOMIC_COMPARE_EXCHANGE result.
19191 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19192 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19193 fold_builtin_atomic_compare_exchange): New prototypes.
19194 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19195 fold_builtin_atomic_compare_exchange): New functions..
19196 * tree-ssa.c (execute_update_addresses_taken): If
19197 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19198 of call when finding addressable vars, and if such var becomes
19199 non-addressable, call fold_builtin_atomic_compare_exchange.
19200
19201 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19202
19203 PR target/71670
19204 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19205 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19206
19207 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19208
19209 * config/rs6000/rs6000.md ('type' attribute): Add
19210 veclogical,veccmpfx,vecexts,vecmove insn types.
19211 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19212 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19213 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19214 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19215 *nabs<mode>2_hw): Change type to vecmove.
19216 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19217 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19218 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19219 *ieee_128bit_vsx_abs<mode>2_internal,
19220 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19221 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19222 *ieee128_mtvsrd_32bit): Change type to veclogical.
19223 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19224 *movdi_internal32, *movdi_internal64): Update insn types.
19225 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19226 vsx_extract_<mode>): Change type to veclogical.
19227 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19228 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19229 *vsx_sign_extend_si_v2di): Change type to vecexts.
19230 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19231 type to veclogical.
19232 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19233 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19234 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19235 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19236 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19237 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19238 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19239 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19240 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19241 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19242 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19243 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19244 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19245 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19246 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19247 (ppc7450-vecsimple): Add veclogical, vecmove.
19248 (ppc7450-veccmp): Add veccmpfx.
19249 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19250 vecmove.
19251 (ppc8540_vector_compare): Add veccmpfx.
19252 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19253 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19254 (cell-vecsimple): Add veclogical, vecmove.
19255 (cell-veccmp): Add veccmpfx.
19256 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19257 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19258 veccmpfx.
19259 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19260 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19261 (power4-vecsimple): Add veclogical, vecmove.
19262 (power4-veccmp): Add veccmpfx.
19263 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19264 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19265 (power6-vecsimple): Add veclogical, vecmove.
19266 (power6-veccmp): Add veccmpfx.
19267 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19268 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19269 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19270 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19271 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19272 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19273 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19274 fpsimple.
19275 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19276
19277 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19278
19279 PR target/71656
19280 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19281 OPTION_MASK_P9_DFORM_VECTOR.
19282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19283 disable -mpower9-dform-vector when using reload.
19284 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19285 New 'strict' argument. Update all callers. Add strict addressing
19286 support.
19287 (rs6000_legitimate_offset_address_p): Remove call to
19288 virtual_stack_registers_memory_p.
19289 (rs6000_legitimize_reload_address): Add quad address support.
19290 (rs6000_legitimate_address_p): Move call to quad_address_p above
19291 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19292 to account for new strict usage.
19293 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19294 for new strict usage.
19295 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19296
19297 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19298
19299 PR target/70902
19300 PR target/71453
19301 PR target/71555
19302 PR target/71596
19303 PR target/71657
19304 * config/i386/i386.c (ix86_spill_class): Disable condition to
19305 always return NO_REGS.
19306
19307 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19308
19309 * predict.c: Include gimple-pretty-print.h
19310 (predicted_by_loop_heuristics_p): Check also
19311 PRED_LOOP_EXIT_WITH_RECURSION
19312 (predict_loops): Find self recursive calls and use special purpose
19313 predictors for them; dump log about decisions.
19314 (pass_profile::execute): Dump info about #of iterations.
19315 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19316 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19317
19318 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19319
19320 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19321 output_asm_insn calls and shorten long lines. Output .CALL
19322 argument descriptor using pa_output_arg_descriptor. Add various
19323 inline $$dyncall and other optimizations.
19324 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19325
19326 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19327
19328 PR tree-optimization/71643
19329 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19330 EH preds.
19331
19332 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19333 leak a bitmap if dep_bb is NULL.
19334
19335 PR tree-optimization/71631
19336 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19337 to rewrite_expr_tree even if negate_result, move new_lhs var
19338 declaration and initialization earlier, for powi_result set afterwards
19339 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19340 if new_lhs != lhs, and don't shadow gsi var.
19341
19342 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19343
19344 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19345 Add in_loop parameter.
19346 (predict_loops): Add loop guard heuristics.
19347 * predict.def (PRED_LOOP_GUARD): New heuristics.
19348
19349 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19350
19351 * predict.c: Include ipa-utils.h
19352 (tree_bb_level_prediction): Predict recursive calls.
19353 (tree_estimate_probability_bb): Skip inexpensive calls for call
19354 predictor.
19355 * predict.def (PRED_RECURSIVE_CALL): New.
19356
19357 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19358
19359 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19360 (BU_FLOAT128_1): Likewise.
19361 (FABSQ): Likewise.
19362 (COPYSIGNQ): Likewise.
19363 (RS6000_BUILTIN_NANQ): Likewise.
19364 (RS6000_BUILTIN_NANSQ): Likewise.
19365 (RS6000_BUILTIN_INFQ): Likewise.
19366 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19367 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19368 (TARGET_FOLD_BUILTIN): New #define.
19369 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19370 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19371 (rs6000_fold_builtin): New target hook implementation, handling
19372 folding of 128-bit NaNs and infinities.
19373 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19374 entries are filled in to avoid problems during bootstrap
19375 self-test; define builtins for 128-bit NaNs and infinities.
19376 (rs6000_opt_mask): Add entry for float128.
19377 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19378 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19379 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19380 (const_str_type_node): New #define.
19381 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19382 to a define_expand that dispatches to either copysign<mode>3_soft
19383 or copysign<mode>3_hard.
19384 (copysign<mode>3_hard): Rename from copysign<mode>3.
19385 (copysign<mode>3_soft): New define_insn.
19386 * doc/extend.texi: Document new builtins.
19387
19388 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19389
19390 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19391 PRIu64 instead of lu.
19392
19393 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19394
19395 PR debug/71642
19396 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19397 copy the type name.
19398
19399 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19400
19401 PR tree-optimization/71647
19402 * omp-low.c (lower_rec_input_clauses): Convert
19403 omp_clause_aligned_alignment (c) to size_type_node for the
19404 last argument of __builtin_assume_aligned.
19405
19406 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19407
19408 * configure.ac (calling ___tls_get_addr via GOT): New
19409 assembler/linker check.
19410 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19411 assembler and linker supports calling ___tls_get_addr via GOT.
19412 Otherise, defined to 0.
19413 * config.in: Regenerated.
19414 * configure: Likewise.
19415 * config/i386/constraints.md (Yb): New constraint.
19416 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19417 (REG_CLASS_NAMES): Likewise.
19418 (REG_CLASS_CONTENTS): Likewise.
19419 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19420 the b constraint with the Yb constraint. Call ___tls_get_addr
19421 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19422 is 1.
19423 (*tls_local_dynamic_base_32_gnu): Likewise.
19424 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19425 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19426 (*tls_local_dynamic_base_64_<mode>): Likewise.
19427
19428 2016-06-24 Martin Liska <mliska@suse.cz>
19429
19430 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19431 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19432 few functions.
19433 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19434 argument to true if the expected number of iterations is
19435 loop-based.
19436
19437 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19438
19439 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19440 assemble for 32bit target.
19441 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19442 and $ld_ix86_gld_32_opt to link for 32bit target.
19443 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19444 * configure: Regenerate.
19445
19446 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19447
19448 * config/arm/arm.c (int_log2): Delete definition and prototype.
19449 (shift_op): Use exact_log2 instead of int_log2.
19450 (vfp3_const_double_for_fract_bits): Likewise.
19451
19452 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19453
19454 * internal-fn.c (expand_arith_set_overflow): New function.
19455 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19456 Use it.
19457 (expand_arith_overflow_result_store): Likewise. Handle precision
19458 smaller than mode precision.
19459 * tree-vrp.c (extract_range_basic): For imag part, handle
19460 properly signed 1-bit precision result.
19461 * doc/extend.texi (__builtin_add_overflow): Document that last
19462 argument can't be pointer to enumerated or boolean type.
19463 (__builtin_add_overflow_p): Document that last argument can't
19464 have enumerated or boolean type.
19465
19466 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19467 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19468
19469 * config/rs6000/predicates.md (splat_input_operand): Rework.
19470 Don't allow constants, since the insns that use this predicate
19471 don't support constants. Constants are handled by other insns
19472 that are created via combine. During and after register
19473 allocation, only allow indexed or indirect addresses, and not
19474 general addresses. Only allow modes supported by the hardware.
19475 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19476 comment. Move check for using VSPLTIS<x> to a common location,
19477 instead of doing it in two different places.
19478
19479 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19480
19481 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19482 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19483 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19484 signature_CENTAUR_ebx.
19485
19486 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19487
19488 PR target/66232
19489 PR target/67400
19490 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19491 (as_ix86_gas_32_opt): This.
19492 (ld_ix86_tls_ldm_opt): Renamed to ...
19493 (ld_ix86_gld_32_opt): This.
19494 (R_386_TLS_LDM reloc): Updated.
19495 (R_386_GOT32X reloc): New assembler/linker check.
19496 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19497 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19498 defined to 0.
19499 * config.in: Regenerated.
19500 * configure: Likewise.
19501 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19502 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19503 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19504 if ix86_force_load_from_GOT_p returns true.
19505 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19506 ix86_force_load_from_GOT_p returns true.
19507 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19508 the external function address via the GOT slot.
19509 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19510 HAVE_AS_IX86_GOT32X before returning false.
19511 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19512 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19513
19514 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19515
19516 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19517
19518 2016-06-23 Andi Kleen <ak@linux.intel.com>
19519
19520 * Makefile.in: Regenerate.
19521 * doc/install.texi: Document autoprofiledbootstrap.
19522
19523 2016-06-23 Andi Kleen <ak@linux.intel.com>
19524
19525 * config/i386/gcc-auto-profile: New file.
19526
19527 2016-06-23 Martin Liska <mliska@suse.cz>
19528
19529 PR middle-end/71619
19530 * predict.c (predict_loops): Revert the hunk that was removed
19531 in r237103.
19532
19533 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19534
19535 * config.gcc: Add support for arm*-*-phoenix* targets.
19536 * config/arm/t-phoenix: New.
19537 * config/phoenix.h: New.
19538
19539 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19540 H.J. Lu <hongjiu.lu@intel.com>
19541
19542 PR target/67400
19543 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19544 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19545 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19546 ix86_force_load_from_GOT_p returns true.
19547 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19548 ix86_force_load_from_GOT_p returns true.
19549 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19550 ix86_force_load_from_GOT_p returns true.
19551 (ix86_expand_move): Load the external function address via the
19552 GOT slot if ix86_force_load_from_GOT_p returns true.
19553 * config/i386/predicates.md (x86_64_immediate_operand): Return
19554 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19555 (x86_64_zext_immediate_operand): Ditto.
19556
19557 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19558
19559 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19560
19561 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19562
19563 PR c/70339
19564 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19565 * diagnostic.c (pedwarn_at_rich_loc): New function.
19566 * spellcheck.h (best_match::best_match): Add a
19567 "best_distance_so_far" optional parameter.
19568 (best_match::set_best_so_far): New method.
19569 (best_match::get_best_distance): New accessor.
19570 (best_match::get_best_candidate_length): New accessor.
19571
19572 2016-06-22 Nick Clifton <nickc@redhat.com>
19573
19574 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19575 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19576 modes are accepted as well.
19577 (ucompare_loc_descriptor): Likewise.
19578 (minmax_loc_descriptor): Likewise.
19579 (clz_loc_descriptor): Likewise.
19580 (popcount_loc_descriptor): Likewise.
19581 (bswap_loc_descriptor): Likewise.
19582 (rotate_loc_descriptor): Likewise.
19583 (mem_loc_descriptor): Likewise.
19584 (loc_descriptor): Likewise.
19585
19586 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19587
19588 * common.opt (fdiagnostics-parseable-fixits): New option.
19589 * diagnostic.c: Include "selftest.h".
19590 (print_escaped_string): New function.
19591 (print_parseable_fixits): New function.
19592 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19593 (selftest::assert_print_escaped_string): New function.
19594 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19595 (selftest::test_print_escaped_string): New function.
19596 (selftest::test_print_parseable_fixits_none): New function.
19597 (selftest::test_print_parseable_fixits_insert): New function.
19598 (selftest::test_print_parseable_fixits_remove): New function.
19599 (selftest::test_print_parseable_fixits_replace): New function.
19600 (selftest::diagnostic_c_tests): New function.
19601 * diagnostic.h (struct diagnostic_context): Add field
19602 "parseable_fixits_p".
19603 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19604 -fdiagnostics-parseable-fixits.
19605 (-fdiagnostics-parseable-fixits): New option.
19606 * opts.c (common_handle_option): Handle
19607 -fdiagnostics-parseable-fixits.
19608 * selftest-run-tests.c (selftest::run_tests): Call
19609 selftest::diagnostic_c_tests.
19610 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19611
19612 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19613
19614 PR tree-optimization/71488
19615 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19616 comparison of boolean vectors.
19617 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19618 of boolean vectors using bitwise operations.
19619
19620 2016-06-22 Andreas Schwab <schwab@suse.de>
19621
19622 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19623 Remove declaration.
19624
19625 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19626
19627 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19628
19629 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19630
19631 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19632 print FLAGS_REG.
19633
19634 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19635
19636 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19637 * config/arm/arm-cores.def (cortex-a73): New entry.
19638 (cortex-a73.cortex-a35): Likewise.
19639 (cortex-a73.cortex-a53): Likewise.
19640 * config/arm/arm-tables.opt: Regenerate.
19641 * config/arm/arm-tune.md: Likewise.
19642 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19643 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19644 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19645 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19646 * doc/invoke.texi (ARM Options): Document cortex-a73,
19647 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19648
19649 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19650
19651 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19652 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19653 (cortex-a73.cortex-a35): Likewise.
19654 (cortex-a73.cortex-a53): Likewise.
19655 * config/aarch64/aarch64-tune.md: Regenerate.
19656 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19657 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19658 -mcpu and -mtune.
19659
19660 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19661
19662 * configure.ac (gcc_cv_as_compress_debug): Remove
19663 --compress-debug-sections as extra as switch.
19664 Handle gas --compress-debug-sections=type.
19665 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19666 Handle gld --compress-debug-sections=type.
19667 * configure: Regenerate.
19668
19669 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19670
19671 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19672
19673 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19674
19675 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19676 (do_rewrite): likewise.
19677
19678 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19679
19680 * common/config/mep/mep-common.c: Remove.
19681 * config.gcc: Remove mep-* support.
19682 * config/mep/constraints.md: Remove.
19683 * config/mep/default.h: Remove.
19684 * config/mep/intrinsics.h: Remove.
19685 * config/mep/intrinsics.md: Remove.
19686 * config/mep/ivc2-template.h: Remove.
19687 * config/mep/mep-c5.cpu: Remove.
19688 * config/mep/mep-core.cpu: Remove.
19689 * config/mep/mep-default.cpu: Remove.
19690 * config/mep/mep-ext-cop.cpu: Remove.
19691 * config/mep/mep-intrin.h: Remove.
19692 * config/mep/mep-ivc2.cpu: Remove.
19693 * config/mep/mep-pragma.c: Remove.
19694 * config/mep/mep-protos.h: Remove.
19695 * config/mep/mep.c: Remove.
19696 * config/mep/mep.cpu: Remove.
19697 * config/mep/mep.h: Remove.
19698 * config/mep/mep.md: Remove.
19699 * config/mep/mep.opt: Remove.
19700 * config/mep/predicates.md: Remove.
19701 * config/mep/t-mep: Remove.
19702 * doc/install.texi: Remove mep-* documentation.
19703 * doc/md.texi: Likewise.
19704
19705 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19706
19707 * config.gcc: Remove support for avr-rtems.
19708 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19709 * config/avr/rtems.h: Remove.
19710 * config/avr/t-rtems: Remove.
19711
19712 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19713
19714 * config.gcc: Remove m32r-rtems support.
19715 * config/m32r/rtems.h: Remove.
19716
19717 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19718
19719 * config.gcc: Remove h8300-rtems support.
19720 * config/h8300/rtems.h: Remove.
19721 * config/h8300/t-rtems: Remove.
19722
19723 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19724
19725 * config.gcc: Remove support for knetbsd.
19726 * configure.ac: Likewise.
19727 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19728 * config/knetbsd-gnu.h: Remove.
19729 * configure: Regenerate.
19730
19731 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19732
19733 * config.gcc: Remove support for openbsd 2 and 3.
19734 * config/openbsd-oldgas.h: Remove.
19735
19736 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19737
19738 * config.gcc: Remove interix support.
19739 * config/i386/i386-interix.h: Remove.
19740 * config/i386/interix.opt: Remove.
19741 * config/i386/t-interix: Remove.
19742 * configure: Regenerate.
19743 * configure.ac: Remove interix support.
19744 * doc/install.texi: Remove interix documentation.
19745
19746 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19747
19748 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19749 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19750 not defined.
19751
19752 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19753
19754 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19755 they are both PLACEHOLDER_EXPRs.
19756
19757 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19758
19759 * stor-layout.c (layout_type): Move setting complex MODE to
19760 layout_type, instead of setting it ahead of time by the caller.
19761 * tree.c (build_complex_type): Likewise.
19762
19763 2016-06-21 Martin Liska <mliska@suse.cz>
19764
19765 * predict.c (force_edge_cold): Replace imposisble with
19766 impossible.
19767
19768 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19769
19770 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19771 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19772
19773 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19774
19775 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19776
19777 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19778 Ilya Enkovich <ilya.enkovich@intel.com>
19779
19780 PR target/71549
19781 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19782 New member function to convert V1TImode register to SUBREG
19783 TImode in debug insn.
19784 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19785 after changing register mode to V1TImode.
19786
19787 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19788
19789 * config/aarch64/aarch64-cores.def (vulcan): New core.
19790 * config/aarch64/aarch64-tune.md: Regenerate.
19791 * doc/invoke.texi: Document vulcan as an available option.
19792
19793 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19794
19795 * cse.c (canon_asm_operands): New function extracted from...
19796 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19797 either standalone or member of a PARALLEL.
19798
19799 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19800
19801 PR target/30417
19802 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19803 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19804 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19805
19806 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19807
19808 PR target/71103
19809 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19810 constant addresses if can_create_pseudo_p.
19811
19812 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19813
19814 PR tree-optimization/71588
19815 * tree-ssa-strlen.c (valid_builtin_call): New function.
19816 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19817 it.
19818
19819 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19820
19821 PR middle-end/71581
19822 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19823 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19824 for conversion of scalar user var to complex type and use the
19825 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19826 punt.
19827
19828 PR rtl-optimization/71591
19829 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19830 don't run any tests.
19831
19832 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19833
19834 PR target/71571
19835 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19836 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19837 space for PIC with non-v32 and the common non-PIC "jump".
19838
19839 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19840
19841 PR target/71559
19842 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19843 returned values and add UN*/LTGT/*ORDERED cases with values matching
19844 D operand modifier on vcmp for AVX.
19845
19846 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19847
19848 * config/aarch64/aarch64.opt
19849 (mpc-relative-literal-loads): Rename internal option name.
19850 * config/aarch64/aarch64.c
19851 (aarch64_nopcrelative_literal_loads): Rename to
19852 aarch64_pcrelative_literal_loads.
19853 (aarch64_expand_mov_immediate): Likewise.
19854 (aarch64_secondary_reload): Likewise.
19855 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19856 (aarch64_override_options_after_change_1): Rename and simplify logic.
19857 (aarch64_classify_symbol): Merge large model checks into switch,
19858 remove pc-relative load check.
19859
19860 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19861
19862 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19863 costs relative to the cost of a register move.
19864
19865 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19866
19867 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19868 (vcvt_n_f64_u64): Likewise.
19869 (vcvt_n_s64_f64): Likewise.
19870 (vcvt_n_u64_f64): Likewise.
19871 (vcvt_f64_s64): Likewise.
19872 (vrecpe_f64): Likewise.
19873 (vcvt_f64_u64): Likewise.
19874 (vrecps_f64): Likewise.
19875
19876 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19877
19878 * config/aarch64/aarch64.md
19879 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19880 iterators.
19881 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19882 attributes.
19883 * config/aarch64/aarch64-builtins.c
19884 (aarch64_types_binop_uss_qualifiers): Delete.
19885 (TYPES_BINOP_USS): Likewise.
19886 (aarch64_types_binop_sus_qualifiers): Likewise.
19887 (TYPES_BINOP_SUS): Likewise.
19888 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19889 (TYPES_FCVTIMM_SUS): Likewise.
19890 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19891 rather than BINOP.
19892 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19893 (fcvtzs): Use SHIFTIMM rather than BINOP.
19894 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19895
19896 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19897
19898 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19899 costs relative to the cost of a register move.
19900
19901 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19902
19903 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19904 Allow scalar/single vector modes to be tieable.
19905
19906 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19907
19908 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19909
19910 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19911
19912 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19913 "alignement".
19914 * tree.h (TYPE_ALIGN): Likewise.
19915
19916 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19917
19918 PR target/71103
19919 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19920
19921 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19922
19923 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19924 literal" build warnings.
19925 (avr_print_operand_address): Dito.
19926
19927 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19928
19929 PR target/71375
19930 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19931 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19932
19933 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19934
19935 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19936
19937 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19938
19939 PR bootstrap/71435
19940 * reload1.c (reload): Pass 0 to finish_spills when called because
19941 update_eliminables_and_spill returns true and remove did_spill.
19942 (finish_spills): Adjust comment and document GLOBAL parameter.
19943
19944 2016-06-17 DJ Delorie <dj@redhat.com>
19945
19946 PR target/71338
19947 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
19948 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
19949 (umulqihi3_virt): Likewise.
19950 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
19951 (umulqihi3_real): Likewise.
19952
19953 2016-06-17 Martin Liska <mliska@suse.cz>
19954
19955 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
19956
19957 2016-06-17 Martin Liska <mliska@suse.cz>
19958
19959 * predict.def: PRED_LOOP_EXIT from 92 to 85.
19960
19961 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
19962
19963 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
19964 __FAST_MATH__.
19965 (vaddq_f32): Likewise.
19966 (vmul_f32): Likewise.
19967 (vmulq_f32): Likewise.
19968 (vsub_f32): Likewise.
19969 (vsubq_f32): Likewise.
19970
19971 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19972
19973 PR tree-optimization/71347
19974 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19975 cost for all uses in group.
19976
19977 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19978
19979 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
19980 insert gimple seq if it's not empty.
19981
19982 2016-06-17 Bin Cheng <bin.cheng@arm.com>
19983
19984 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
19985 member OFFSET.
19986 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
19987 rather than OFFSET.
19988 (comp_dr_with_seg_len_pair): Ditto.
19989 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
19990 struct dr_with_seg_len_pair against DR_OFFSET.
19991 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
19992 DR_OFFSET directly.
19993
19994 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
19995
19996 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
19997
19998 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
19999
20000 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
20001 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
20002 (pa_output_millicode_call): Likewise.
20003 (pa_output_call): Likewise.
20004 (pa_output_indirect_call): Likewise.
20005 (pa_asm_output_mi_thunk): Likewise.
20006
20007 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20008
20009 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
20010
20011 2016-06-16 Martin Liska <mliska@suse.cz>
20012
20013 * predict.c (combine_predictions_for_insn): When we find a first
20014 match predictor, we should consider just predictors with
20015 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
20016 DS theory predictor.
20017 (combine_predictions_for_bb): Likewise.
20018
20019 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20020
20021 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20022 with base of reference to struct.
20023
20024 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20025
20026 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20027
20028 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20029
20030 PR target/71151
20031 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20032 progmem_swtable_section.
20033 (progmem_swtable_section): Remove.
20034 (avr_asm_function_rodata_section): Remove.
20035 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20036 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20037
20038 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
20039
20040 * config/i386/driver-i386.c (host_detect_local_cpu): Set
20041 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20042 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20043 signature_CENTAUR_ebx.
20044 * config/i386/i386.c (ix86_option_override_internal): Add
20045 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20046 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20047 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20048
20049 2016-06-16 Martin Liska <mliska@suse.cz>
20050
20051 * predict.def: Add fortran loop preheader predictor.
20052 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20053 fold IFN_BUILTIN_EXPECT with a known constant argument.
20054
20055 2016-06-16 Martin Liska <mliska@suse.cz>
20056
20057 * predict.def: Add 'Fortran' to display text of all
20058 PRED_FORTRAN_* predictors.
20059
20060 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20061
20062 PR target/71242
20063 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20064 [IA64_BUILTIN_NANSQ]: Ditto.
20065 (ia64_fold_builtin): New function.
20066 (TARGET_FOLD_BUILTIN): New define.
20067 (ia64_init_builtins) Declare const_string_type node.
20068 Add __builtin_nanq and __builtin_nansq builtin functions.
20069 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20070
20071 2016-06-16 Nick Clifton <nickc@redhat.com>
20072
20073 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20074 MSP430_HWMULT_ prefix to enum values.
20075 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20076 * config/msp430/msp430.c: Update use of enum values.
20077 * config/msp430/msp430.md: Likewise.
20078 * config/msp430/msp430.opt: Likewise.
20079
20080 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20081
20082 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20083 of comparsions in the last iteration.
20084
20085 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20086 Joern Rennecke <joern.rennecke@embecosm.com>
20087
20088 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20089 addresses.
20090 (arc_needs_pcl_p): Add GOTOFFPC.
20091 (arc_legitimate_pic_addr_p): Likewise.
20092 (arc_output_pic_addr_const): Likewise.
20093 (arc_legitimize_pic_address): Generate a pc-relative address using
20094 GOTOFFPC.
20095 (arc_output_libcall): Use @pcl syntax.
20096 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20097 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20098 (*movsi_insn): Use @pcl syntax.
20099 (doloop_begin_i): Likewise.
20100
20101 2016-06-16 Martin Liska <mliska@suse.cz>
20102
20103 * predict.def: Define a new predictor.
20104
20105 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20106
20107 * config/arc/arc.opt (mtp-regno): Update text.
20108
20109 2016-06-16 Renlin Li <renlin.li@arm.com>
20110
20111 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20112
20113 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20114
20115 PR target/71554
20116 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20117 (setcc + and peephole2): Likewise.
20118
20119 PR rtl-optimization/71532
20120 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20121 memory slots.
20122
20123 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20124
20125 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20126 DImode constants with XXSPLTIB in vector registers.
20127 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20128 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20129 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20130 extraction of the element at the top of the register as a scalar
20131 value.
20132 (vsx_extract_<mode>_internal1): Likewise.
20133 (vsx_extract_<mode>_internal2): Likewise.
20134 * config/rs6000/constraints.md (wi constraint): Remove a comment
20135 about DImode not being allowed in Altivec registers.
20136 (wB constraint): New constraint for constants that can be
20137 generated in Altivec registers with VSPLTISW/VUPKHSW.
20138 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20139 comments.
20140 (xxspltib_constant_nosplit): Likewise.
20141 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20142 support for -mupper-regs-di to enable DImode to go into Altivec
20143 registers.
20144 (POWERPC_MASKS): Likewise.
20145 (power7 cpu): Likewise.
20146 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20147 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20148 for DImode being allowed in Altivec registers. Update wi/wj
20149 constraints. Set scalar_in_vmx_p flag.
20150 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20151 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20152 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20153 (rs6000_opt_masks): Add -mupper-regs-di.
20154 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20155 direct move to use wi and not wj.
20156 (lfiwzx): Likewise.
20157 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20158 alternative.
20159 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20160 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20161 any VSX register, instead of just Altivec registers, to allow
20162 either operand to be an Altivec register or both.
20163 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20164 (movdi_internal32): Add support for -mupper-regs-di. Add support
20165 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20166 the alternatives and attributes to be lined up to be easier to
20167 read.
20168 (movdi_internal64): Likewise.
20169 (64-bit DImode splitters): Change predicates to only split loading
20170 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20171 load constants in ISA 3.0 or ISA 2.07 respectively.
20172 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20173 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20174 mention -mcpu=power9 sets these options.
20175 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20176 wB constraint.
20177
20178 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20179
20180 PR target/67353
20181 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20182 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20183 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20184 by default to warn misspelled interrupt/ signal handler.
20185 * doc/invoke.texi (AVR Options): Document it. Update description
20186 for -nodevicelib option.
20187
20188 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20189
20190 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20191 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20192 (aarch64_<sur>shll2_n<mode>): Likewise.
20193
20194 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20195
20196 PR middle-end/71529
20197 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20198 DECL_CONTEXT for copied arguments.
20199
20200 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20201
20202 PR tree-optimization/71483
20203 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20204 for slp
20205
20206 2016-06-15 Martin Liska <mliska@suse.cz>
20207
20208 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20209 instead of predict_edge w/o a probability.
20210
20211 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20212
20213 PR tree-optimization/71439
20214 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20215 live PHIs.
20216
20217 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20218
20219 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20220 register subregs in SET_SRC.
20221
20222 2016-06-15 Richard Biener <rguenther@suse.de>
20223
20224 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20225 store restrictions.
20226
20227 2016-06-15 Richard Biener <rguenther@suse.de>
20228
20229 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20230 not consider dependences between accesses that belong to the
20231 same group.
20232 (vect_analyze_data_ref_dependences): Do not analyze read-read
20233 or self-dependences.
20234
20235 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20236
20237 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20238 spellcheck.h.
20239 (find_closest_identifier): Reimplement in terms of
20240 best_match<tree,tree>.
20241 * spellcheck-tree.h: New file.
20242 * spellcheck.c (struct edit_distance_traits<const char *>): New
20243 struct.
20244 (find_closest_string): Reimplement in terms of
20245 best_match<const char *, const char *>.
20246 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20247 overload to spellcheck-tree.h.
20248 (find_closest_identifier): Likewise.
20249 (struct edit_distance_traits<T>): New template.
20250 (class best_match): New class.
20251
20252 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20253
20254 * selftest-run-tests.c (selftest::run_tests): Call
20255 selftest::spellcheck_tree_c_tests.
20256 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20257 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20258 (selftest::test_find_closest_identifier): New function.
20259 (selftest::spellcheck_tree_c_tests): New function.
20260 * spellcheck.c (selftest::test_find_closest_string): Verify that
20261 the order of the vec does not affect the results for this case.
20262 (selftest::test_data): New array.
20263 (selftest::test_metric_conditions): New function.
20264 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20265 Call selftest::test_metric_conditions.
20266
20267 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20268
20269 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20270 (BU_P9_MISC_1): Likewise.
20271 (BU_P9_64BIT_MISC_0): Likewise.
20272 (BU_P9_MISC_0): Likewise.
20273
20274 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20275
20276 * gcc-rich-location.c
20277 (gcc_rich_location::add_fixit_misspelled_id): New method.
20278 * gcc-rich-location.h
20279 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20280
20281 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20282
20283 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20284 FreeBSD 11 and above.
20285
20286 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20287
20288 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20289
20290 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20291
20292 * expmed.h: Close parenthesis in "at your option" in copyright
20293 boilerplate.
20294 * lower-subreg.h: Likewise.
20295
20296 2016-06-14 Richard Biener <rguenther@suse.de>
20297
20298 PR middle-end/71526
20299 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20300 if available.
20301
20302 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20303
20304 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20305 New function.
20306 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20307 mask+shift version.
20308 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20309 New prototype.
20310 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20311 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20312
20313 2016-06-14 Richard Biener <rguenther@suse.de>
20314
20315 PR tree-optimization/71522
20316 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20317 copying into float copying.
20318
20319 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20320
20321 PR tree-optimization/71520
20322 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20323 (replace_block_by): Move user labels from bb1 to bb2.
20324
20325 2016-06-14 Richard Biener <rguenther@suse.de>
20326
20327 PR middle-end/71310
20328 PR bootstrap/71510
20329 * expr.h (get_bit_range): Declare.
20330 * expr.c (get_bit_range): Export.
20331 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20332 word_mode again to constrain the bitfield access.
20333
20334 2016-06-14 Richard Biener <rguenther@suse.de>
20335
20336 PR tree-optimization/71521
20337 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20338 division int_const_binop against zero divisor.
20339
20340 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20341
20342 * config/i386/i386.md (signbittf2): New expander.
20343 * config/i386/sse.md (ptesttf2): New insn pattern.
20344
20345 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20346
20347 PR bootstrap/71481
20348 * input.c (selftest::test_reading_source_line): Avoid reading from
20349 __FILE__ by creating a tempfile with known content and reading
20350 from that instead.
20351
20352 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20353
20354 * pretty-print.c (assert_pp_format_colored): Skip the test if
20355 GCC_COLORS is set.
20356 (test_pp_format): Remove comment about GCC_COLORS.
20357
20358 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20359
20360 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20361 * pretty-print.c (assert_pp_format_va): Add location param and use
20362 it with ASSERT_STREQ_AT.
20363 (assert_pp_format): Add location param and pass it to
20364 assert_pp_format_va.
20365 (assert_pp_format_colored): Likewise.
20366 (ASSERT_PP_FORMAT_1): New.
20367 (ASSERT_PP_FORMAT_2): New.
20368 (ASSERT_PP_FORMAT_3): New.
20369 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20370 explicitly, or implicitly via the above macros.
20371 * selftest.c (selftest::pass): Use a selftest::location rather
20372 than file and line.
20373 (selftest::fail): Likewise. Print the function name.
20374 (selftest::fail_formatted): Likewise.
20375 (selftest::assert_streq): Use a selftest::location rather than
20376 file and line.
20377 * selftest.h (selftest::location): New struct.
20378 (SELFTEST_LOCATION): New macro.
20379 (selftest::pass): Accept a const location & rather than file
20380 and line.
20381 (selftest::fail): Likewise.
20382 (selftest::fail_formatted): Likewise.
20383 (selftest::assert_streq): Likewise.
20384 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20385 (ASSERT_FALSE): Likewise.
20386 (ASSERT_EQ): Likewise.
20387 (ASSERT_NE): Likewise.
20388 (ASSERT_STREQ): Likewise.
20389 (ASSERT_PRED1): Likewise.
20390 (ASSERT_STREQ_AT): New macro.
20391
20392 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20393
20394 * selftest.c (selftest::fail_formatted): New function.
20395 (selftest::assert_streq): New function.
20396 * selftest.h (selftests::fail_formatted): New decl.
20397 (selftest::assert_streq): New decl.
20398 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20399
20400 2016-06-13 Jeff Law <law@redhat.com>
20401
20402 PR tree-optimization/71403
20403 * tree-ssa-threadbackward.c
20404 (convert_and_register_jump_thread_path): No longer accept reference
20405 to path. Do not pop items off the path anymore.
20406 (fsm_find_control_statement_thread_paths): Do not allow threading
20407 to a deeper loop nest. Pop the last item off the path here rather
20408 than in convert_and_register_jump_thread_path.
20409
20410 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20411 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20412
20413 [AArch64] Emit division using the Newton series
20414
20415 * config/aarch64/aarch64-protos.h
20416 (cpu_approx_modes): Add new member "division".
20417 (aarch64_emit_approx_div): Declare new function.
20418 * config/aarch64/aarch64.c
20419 (generic_approx_modes): New member "division".
20420 (exynosm1_approx_modes): Likewise.
20421 (xgene1_approx_modes): Likewise.
20422 (aarch64_emit_approx_div): Define new function.
20423 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20424 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20425 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20426 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20427
20428 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20429 Wilco Dijkstra <wilco.dijkstra@arm.com>
20430
20431 [AArch64] Emit square root using the Newton series
20432
20433 * config/aarch64/aarch64-protos.h
20434 (aarch64_emit_approx_rsqrt): Replace with new function
20435 "aarch64_emit_approx_sqrt".
20436 (cpu_approx_modes): New member "sqrt".
20437 * config/aarch64/aarch64.c
20438 (generic_approx_modes): New member "sqrt".
20439 (exynosm1_approx_modes): Likewise.
20440 (xgene1_approx_modes): Likewise.
20441 (aarch64_emit_approx_rsqrt): Replace with new function
20442 "aarch64_emit_approx_sqrt".
20443 (aarch64_override_options_after_change_1): Handle new option.
20444 * config/aarch64/aarch64-simd.md
20445 (rsqrt<mode>2): Use new function instead.
20446 (sqrt<mode>2): New expansion and insn definitions.
20447 * config/aarch64/aarch64.md: Likewise.
20448 * config/aarch64/aarch64.opt
20449 (mlow-precision-sqrt): Add new option description.
20450 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20451
20452 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20453
20454 [AArch64] Add more choices for the reciprocal square root approximation
20455
20456 Allow a target to prefer such operation depending on the operation mode.
20457
20458 * config/aarch64/aarch64-protos.h
20459 (AARCH64_APPROX_MODE): New macro.
20460 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20461 (cpu_approx_modes): New structure.
20462 (tune_params): New member "approx_modes".
20463 * config/aarch64/aarch64-tuning-flags.def
20464 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20465 * config/aarch64/aarch64.c
20466 (generic_approx_modes): New core "cpu_approx_modes" structure.
20467 (exynosm1_approx_modes): Likewise.
20468 (xgene1_approx_modes): Likewise.
20469 (generic_tunings): New member "approx_modes".
20470 (cortexa35_tunings): Likewise.
20471 (cortexa53_tunings): Likewise.
20472 (cortexa57_tunings): Likewise.
20473 (cortexa72_tunings): Likewise.
20474 (exynosm1_tunings): Likewise.
20475 (thunderx_tunings): Likewise.
20476 (xgene1_tunings): Likewise.
20477 (use_rsqrt_p): New argument for the mode and use new member from
20478 "tune_params".
20479 (aarch64_builtin_reciprocal): Devise mode from builtin.
20480 (aarch64_optab_supported_p): New argument for the mode.
20481 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20482
20483 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20484
20485 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20486 RS6000_BTM_MODULO flag into the set of flags that are considered
20487 to be part of the common configuration.
20488
20489 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20490
20491 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20492 difference unsigned.
20493 (vec_absdb): New macro for vector absolute difference unsigned
20494 byte.
20495 (vec_absdh): New macro for vector absolute difference unsigned
20496 half-word.
20497 (vec_absdw): New macro for vector absolute difference unsigned word.
20498 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20499 (vadu<mode>3): New insn.
20500 (*p9_vadu<mode>3): New insn.
20501 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20502 definition.
20503 (vaduh): New built-in definition.
20504 (vaduw): New built-in definition.
20505 (vadu): New overloaded built-in definition.
20506 (vadub): New overloaded built-in definition.
20507 (vaduh): New overloaded built-in definition.
20508 (vaduw): New overloaded built-in definition.
20509 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20510 overloaded vector absolute difference unsigned functions.
20511 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20512 the ISA 3.0 vector absolute difference unsigned built-in functions.
20513
20514 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20515
20516 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20517 update shared_lookup_references only once after changing operands.
20518
20519 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20520
20521 PR middle-end/71373
20522 * tree-nested.c (convert_nonlocal_omp_clauses)
20523 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20524
20525 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20526 * tree.def (CASE_LABEL_EXPR): Likewise.
20527
20528 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20529
20530 PR bootstrap/71481
20531 * input.c (test_builtins): Fix an assertion.
20532
20533 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20534
20535 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20536 (paritysi2): Ditto.
20537 (isinfxf2): Ditto.
20538 (isinf<mode>2): Ditto.
20539
20540 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20541
20542 * ggc-tests.c (test_finalization): Only test need_finalization_p
20543 for GCC_VERSION >= 4003.
20544
20545 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20546
20547 * config/s390/vecintrin.h: Fix file description in comment.
20548
20549 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20550
20551 * config/s390/s390-builtin-types.def: Change builtin type naming
20552 scheme to match builtin-types.def.
20553
20554 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20555
20556 * fold-const.c (optimize_minmax_comparison): Remove.
20557 (fold_comparison): Remove call to the above.
20558 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20559 New transformations.
20560
20561 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20562
20563 PR tree-optimization/71416
20564 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20565 multiple entries
20566
20567 2016-06-13 Martin Liska <mliska@suse.cz>
20568
20569 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20570 (combine_predictions_for_insn): Likewise.
20571 (prune_predictions_for_bb): Likewise.
20572 (combine_predictions_for_bb): Likewise.
20573
20574 2016-06-13 Richard Biener <rguenther@suse.de>
20575
20576 PR tree-optimization/71505
20577 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20578 assert match comment.
20579
20580 2016-06-13 Marek Polacek <polacek@redhat.com>
20581
20582 PR middle-end/71476
20583 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20584 gimplify_switch_expr.
20585 (warn_switch_unreachable_r): New function.
20586
20587 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20588
20589 PR target/71379
20590 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20591 one.
20592
20593 2016-06-13 Richard Biener <rguenther@suse.de>
20594
20595 PR middle-end/64516
20596 * fold-const.c (fold_unary_loc): Preserve alignment when
20597 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20598
20599 2016-06-13 Martin Liska <mliska@suse.cz>
20600
20601 PR sanitizer/71458
20602 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20603 w/ -fsanitize=bounds.
20604
20605 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20606
20607 * config/i386/i386.c (ix86_init_builtins): Calculate
20608 FLOAT128_FTYPE_CONST_STRING function type only once.
20609 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20610 built-in functions are available for x86-32 and x86-64 targets.
20611
20612 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20613
20614 PR target/71241
20615 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20616 New primitive type.
20617 (FLOAT128_FTYPE_CONST_STRING): New function type.
20618 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20619 [IX86_BUILTIN_NANSQ]: Ditto.
20620 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20621 (ix86_init_builtin_types): Declare const_string_type_node.
20622 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20623 builtin functions.
20624 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20625 * doc/extend.texi (x86 Built-in Functions): Document
20626 __builtin_nanq and __builtin_nansq.
20627
20628 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20629
20630 PR target/71061
20631 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20632 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20633 length for pop patterns.
20634 (arm_attr_length_push_multi): Update comments.
20635 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20636 attribute.
20637 (*pop_multiple_with_writeback_and_return): Likewise.
20638 (*pop_multiple_with_return): Likewise.
20639
20640 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20641
20642 PR middle-end/71310
20643 * fold-const.c (optimize_bit_field_compare): Don't try to use
20644 word_mode unconditionally for reading the bit field, look at
20645 DECL_BIT_FIELD_REPRESENTATIVE instead.
20646
20647 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20648
20649 PR middle-end/71478
20650 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20651 vector integer type.
20652
20653 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20654
20655 PR middle-end/71494
20656 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20657 without LABEL_DECL, set *handled_ops_p to false instead of true.
20658
20659 2016-06-10 Martin Sebor <msebor@redhat.com>
20660
20661 PR c/71392
20662 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20663 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20664 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20665 them.
20666 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20667 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20668 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20669 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20670 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20671 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20672 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20673 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20674
20675 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20676
20677 * config/arm/arm.h (pool_vector_label,
20678 return_used_this_function): Remove.
20679
20680 2016-06-10 Jeff Law <law@redhat.com>
20681
20682 PR tree-optimization/71335
20683 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20684 zero length paths here.
20685 (convert_and_register_jump_thread_path): Remove hacks related to
20686 duplicated blocks in the jump thread path.
20687 (fsm_find_control_statement_thread_paths): Avoid putting the same
20688 block on the thread path twice, but ensure the thread path is
20689 unchanged from the caller's point of view.
20690
20691 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20692
20693 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20694 * predict.def (PRED_LOOP_BRANCH): Remove.
20695
20696 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20697
20698 * Makefile.in (OBJS): Add ggc-tests.o.
20699 (GTFILES): Add ggc-tests.c.
20700 * ggc-tests.c: New file.
20701 * selftest-run-tests.c (selftest::run_tests): Call
20702 selftest::ggc_tests_c_tests.
20703 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20704
20705 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20706
20707 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20708
20709 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20710
20711 PR sanitizer/71480
20712 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20713 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20714
20715 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20716
20717 * profile.c: Include cfgloop.h.
20718 (branch_prob): Compute estimated number of iterations.
20719 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20720 recompute estimate number of iterations from profile.
20721
20722 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20723
20724 PR inline-asm/68843
20725 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20726 must be grouped on top of stack. Don't force early clobber
20727 on ordinary reg outputs.
20728
20729 2016-06-10 Richard Biener <rguenther@suse.de>
20730
20731 * targhooks.c (default_builtin_vectorization_cost): Adjust
20732 vec_construct cost.
20733
20734 2016-06-10 Richard Biener <rguenther@suse.de>
20735
20736 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20737 to fold the RHS to a constant if possible.
20738
20739 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20740
20741 PR middle-end/71373
20742 * tree-nested.c (convert_nonlocal_omp_clauses)
20743 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20744 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20745 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20746
20747 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20748 OMP_CLAUSE_TILE.
20749 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20750
20751 * omp-low.c (scan_sharing_clauses): Don't expect
20752 OMP_CLAUSE__CACHE_.
20753
20754 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20755
20756 PR tree-optimization/71407
20757 PR tree-optimization/71416
20758 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20759 BIT_FIELD_REF type.
20760
20761 2016-06-10 Richard Biener <rguenther@suse.de>
20762
20763 PR middle-end/71477
20764 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20765
20766 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20767
20768 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20769
20770 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20771 Jiong Wang <jiong.wang@arm.com>
20772
20773 PR rtl-optimization/70751
20774 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20775 spilled into memory.
20776
20777 2016-06-09 Jonathan Yong <10walls@gmail.com>
20778
20779 Revert:
20780 2015-09-21 Jonathan Yong <10walls@gmail.com>
20781
20782 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20783 sysroot/usr/lib/32api for additional win32 libraries,
20784 fixes failing Cygwin bootstrapping.
20785
20786 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20787
20788 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20789 Delete.
20790
20791 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20792
20793 PR bootstrap/71471
20794 * pretty-print.c (pp_indent): Specify that %p is printed in a
20795 host-dependent manner.
20796 (test_pp_format): Remove the test for %p.
20797
20798 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20799
20800 * config/mips/mips.c (mips_output_jump): Fix formatting.
20801
20802 2016-06-09 Richard Biener <rguenther@suse.de>
20803
20804 PR tree-optimization/71462
20805 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20806 removed blocks.
20807
20808 2016-06-09 Martin Liska <mliska@suse.cz>
20809
20810 * predict.c (dump_prediction): Add new argument.
20811 (enum predictor_reason): New enum.
20812 (struct predictor_hash): New struct.
20813 (predictor_hash::hash): New function.
20814 (predictor_hash::equal): Likewise.
20815 (not_removed_prediction_p): New function.
20816 (prune_predictions_for_bb): Likewise.
20817 (combine_predictions_for_bb): Prune predictions.
20818
20819 2016-06-09 Martin Liska <mliska@suse.cz>
20820
20821 * predict.c (filter_predictions): New function.
20822 (remove_predictions_associated_with_edge): Use the filter
20823 function.
20824 (equal_edge_p): New function.
20825
20826 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20827
20828 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20829 Correct usage of @samp vs @option, add @samp where appropriate.
20830 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20831 Add armv6s-m and document it, as it is no official ARM name.
20832
20833 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20834
20835 * ifcvt.c (struct noce_if_info): Add transform_name field.
20836 (noce_try_move): Set if_info->transform_name to the function name.
20837 (noce_try_ifelse_collapse): Likewise.
20838 (noce_try_store_flag): Likewise.
20839 (noce_try_inverse_constants): Likewise.
20840 (noce_try_store_flag_constants): Likewise.
20841 (noce_try_addcc): Likewise.
20842 (noce_try_store_flag_mask): Likewise.
20843 (noce_try_cmove): Likewise.
20844 (noce_try_cmove_arith): Likewise.
20845 (noce_try_minmax): Likewise.
20846 (noce_try_abs): Likewise.
20847 (noce_try_sign_mask): Likewise.
20848 (noce_try_bitop): Likewise.
20849 (noce_convert_multiple_sets): Likewise.
20850 (noce_process_if_block): Print if_info->transform_name to
20851 dump_file if transformation succeeded.
20852
20853 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20854
20855 * config/arm/cortex-a57.md (cortex_a57_alu):
20856 Handle csel type.
20857
20858 2016-06-08 Martin Sebor <msebor@redhat.com>
20859 Jakub Jelinek <jakub@redhat.com>
20860
20861 PR c++/70507
20862 PR c/68120
20863 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20864 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20865 * builtins.c: Include gimple-fold.h.
20866 (fold_builtin_arith_overflow): Handle
20867 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20868 (fold_builtin_3): Likewise.
20869 * doc/extend.texi (Integer Overflow Builtins): Document
20870 __builtin_{add,sub,mul}_overflow_p.
20871
20872 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20873
20874 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20875 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20876
20877 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20878
20879 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20880 Rewrite, looking one level down for records and arrays.
20881
20882 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20883
20884 * pretty-print.c: Include "selftest.h".
20885 (pp_format): Fix comment.
20886 (identifier_to_locale): Likewise.
20887 (selftest::test_basic_printing): New function.
20888 (selftest::assert_pp_format): New function.
20889 (selftest::test_pp_format): New function.
20890 (selftest::pretty_print_c_tests): New function.
20891 * selftest-run-tests.c (selftest::run_tests): Call
20892 selftest::pretty_print_c_tests.
20893 * selftest.h (pretty_print_c_tests): New declaration.
20894
20895 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20896
20897 * invoke.texi (max-loop-headers-insns): Document.
20898 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20899 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20900 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20901
20902 2016-06-08 Richard Biener <rguenther@suse.de>
20903
20904 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20905 on strided SLP loads and fall back to scalar loads in case
20906 we can't chunk them.
20907
20908 2016-06-08 Richard Biener <rguenther@suse.de>
20909
20910 PR tree-optimization/71452
20911 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20912 type used for the SSA rewrite has enough precision to cover
20913 the dynamic type of the location.
20914
20915 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20916 Richard Biener <rguenther@suse.de>
20917
20918 PR c++/71448
20919 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20920 the same as DECL_P (base0) for indirect_base0. Use equality_code
20921 in one further place.
20922
20923 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20924
20925 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20926 to one word if the field is known to overlap other words.
20927 (extract_bit_field_1): Likewise.
20928 (store_split_bit_field): Remove compensating code.
20929 (extract_split_bit_field): Likewise.
20930
20931 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20932
20933 PR debug/71432
20934 PR ada/71413
20935 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20936
20937 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20938
20939 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20940 VDQF.
20941 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20942 (arch64_addpv4sf): Delete.
20943 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20944 "gen_aarch64_addpv4sf".
20945 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20946 builtin.
20947 (vpadds_f32): Likewise.
20948 (vpaddq_f32): Likewise.
20949 (vpaddq_f64): Likewise.
20950
20951 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20952
20953 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
20954 VALLF.
20955 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
20956 to VALLF. Rename to "fabd<mode>3".
20957 "*fabd_scalar<mode>3): Delete.
20958 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
20959 Use builtin.
20960 (vabdd_f64): Likewise.
20961 (vabd_f32): Likewise.
20962 (vabd_f64): Likewise.
20963 (vabdq_f32): Likewise.
20964 (vabdq_f64): Likewise.
20965
20966 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20967
20968 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
20969 VALLF.
20970 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
20971 "aarch64_rsqrts<mode>".
20972 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
20973 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
20974 builtin.
20975 (vrsqrtsd_f64): Likewise.
20976 (vrsqrts_f32): Likewise.
20977 (vrsqrts_f64): Likewise.
20978 (vrsqrtsq_f32): Likewise.
20979 (vrsqrtsq_f64): Likewise.
20980
20981 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20982
20983 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
20984 VALLF.
20985 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
20986 "aarch64_rsqrte<mode>".
20987 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
20988 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
20989 builtin.
20990 (vrsqrted_f64): Likewise.
20991 (vrsqrte_f32): Likewise.
20992 (vrsqrte_f64): Likewise.
20993 (vrsqrteq_f32): Likewise.
20994 (vrsqrteq_f64): Likewise.
20995
20996 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20997
20998 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
20999 (ucvtf): Likewise.
21000 (fcvtzs): Likewise.
21001 (fcvtzu): Likewise.
21002 * config/aarch64/aarch64-simd.md
21003 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
21004 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
21005 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
21006 Use builtin.
21007 (vcvt_n_f32_u32): Likewise.
21008 (vcvt_n_s32_f32): Likewise.
21009 (vcvt_n_u32_f32): Likewise.
21010 (vcvtq_n_f32_s32): Likewise.
21011 (vcvtq_n_f32_u32): Likewise.
21012 (vcvtq_n_f64_s64): Likewise.
21013 (vcvtq_n_f64_u64): Likewise.
21014 (vcvtq_n_s32_f32): Likewise.
21015 (vcvtq_n_s64_f64): Likewise.
21016 (vcvtq_n_u32_f32): Likewise.
21017 (vcvtq_n_u64_f64): Likewise.
21018 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21019 (VSDQ_SDI): Likewise.
21020 (fcvt_target): Support V4DI, V4SI and V2SI.
21021 (FCVT_TARGET): Likewise.
21022
21023 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21024
21025 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21026 (TYPES_BINOP_SUS): Likewise.
21027 (aarch64_simd_builtin_data): Update include file name.
21028 (aarch64_builtins): Likewise.
21029 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21030 for conversion between scalar float-point and fixed-point.
21031 (ucvtf): Likewise.
21032 (fcvtzs): Likewise.
21033 (fcvtzu): Likewise.
21034 * config/aarch64/aarch64.md
21035 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21036 pattern for conversion between scalar float to fixed-pointer.
21037 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21038 (UNSPEC_FCVTZS): New UNSPEC enumeration.
21039 (UNSPEC_FCVTZU): Likewise.
21040 (UNSPEC_SCVTF): Likewise.
21041 (UNSPEC_UCVTF): Likewise.
21042 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21043 Use builtin.
21044 (vcvtd_n_f64_u64): Likewise.
21045 (vcvtd_n_s64_f64): Likewise.
21046 (vcvtd_n_u64_f64): Likewise.
21047 (vcvtd_n_f32_s32): Likewise.
21048 (vcvts_n_f32_u32): Likewise.
21049 (vcvtd_n_s32_f32): Likewise.
21050 (vcvts_n_u32_f32): Likewise.
21051 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21052 mapping.
21053 (FCVT_TARGET): Likewise.
21054 (FCVT_FIXED2F): New iterator.
21055 (FCVT_F2FIXED): Likewise.
21056 (fcvt_fixed_insn): New define_int_attr.
21057
21058 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21059
21060 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21061 some statements was removed.
21062
21063 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21064
21065 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21066 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21067 (vect_can_advance_ivs_p): likewise.
21068 (vect_update_ivs_after_vectorizer): likewise.
21069 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21070 (vect_analyze_scalar_cycles_1): likewise.
21071 (vect_analyze_loop_operations): likewise.
21072 (report_vect_op): likewise.
21073 (vect_is_slp_reduction): likewise.
21074 (vect_is_simple_reduction): likewise.
21075 (get_initial_def_for_induction): likewise.
21076 (vect_transform_loop): likewise.
21077 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21078 (vect_recog_sad_pattern): likewise.
21079 (vect_recog_widen_sum_pattern): likewise.
21080 (vect_recog_widening_pattern): likewise.
21081 (vect_recog_divmod_pattern): likewise.
21082 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21083 (vect_analyze_slp_instance): likewise.
21084 (vect_transform_slp_perm_load): likewise.
21085 (vect_schedule_slp_instance): likewise.
21086
21087 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21088
21089 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21090 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21091 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21092 (PRED_LOOP_BRANCH): Document predictor as broken.
21093 (PRED_LOOP_EXIT): Change hitrate 91->92.
21094 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21095 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21096 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21097 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21098 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21099 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21100 (PRED_CALL): Chane hitrate 71->67.
21101 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21102 (PRED_GOTO): Document as unused right now.
21103 (PRED_CONST_RETURN): Change hitrate 67->69
21104 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21105 (PRED_NULL_RETURN): Change hitrate 91->90.
21106 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21107 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21108 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21109
21110 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21111
21112 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21113 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21114 special case Altivec builtin.
21115 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21116 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21117 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21118 code for ALTIVEC_BUILTIN_VEC_MUL.
21119 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21120 for __builtin_vec_mul.
21121
21122 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21123
21124 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21125 -mno-htm.
21126
21127 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21128
21129 * spellcheck.c (selftest::test_find_closest_string): New function.
21130 (spellcheck_c_tests): Call the above.
21131
21132 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21133
21134 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21135
21136 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21137
21138 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21139 Yv=Yv,C alternatives.
21140
21141 2016-06-07 Richard Biener <rguenther@suse.de>
21142
21143 PR c/61564
21144 * common.opt (ffast-math): Make Optimization.
21145
21146 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21147 Prachi Godbole <prachi.godbole@imgtec.com>
21148
21149 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21150 `fabs' and `fneg' type attributes.
21151 (p5600_fpu_fabs): Add `fmove' to the comment.
21152
21153 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21154
21155 * gimple.c: Include builtins.h
21156 (gimple_inexpensive_call_p): New function.
21157 * gimple.h (gimple_inexpensive_call_p): Declare.
21158 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21159 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21160 fix formatting.
21161
21162 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21163
21164 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21165 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21166 warning_at_rich_loc, warning_n, pedwarn, permerror,
21167 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21168 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21169 Use the above.
21170
21171 2016-06-07 Richard Biener <rguenther@suse.de>
21172
21173 PR tree-optimization/71428
21174 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21175 BIT_FIELD_REF op vs. load.
21176
21177 2016-06-07 Richard Biener <rguenther@suse.de>
21178
21179 PR middle-end/71423
21180 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21181 for signed ops.
21182
21183 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21184
21185 * config/pa/pa.md (call): Generate indirect long calls to non-local
21186 functions on TARGET_64BIT.
21187 (call_value): Likewise.
21188
21189 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21190
21191 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21192 pattern and subsequent splitters.
21193 (call_val_reg_64bit_post_reload): Likewise.
21194
21195 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21196
21197 PR middle-end/71408
21198 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21199 propagate_op_to_single_use.
21200
21201 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21202
21203 PR middle-end/71281
21204 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21205
21206 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21207
21208 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21209 (enum x86_dirflag_state): New enum.
21210 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21211 (machine_function): Remove needs_cld.
21212 (ix86_current_function_needs_cld): Remove.
21213 * config/i386/i386.c (ix86_set_func_type): Set
21214 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21215 (ix86_expand_prologue): Do not emit CLD here.
21216 (ix86_dirflag_mode_needed): New function.
21217 (ix86_dirflag_mode_entry): Ditto.
21218 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21219 (ix86_mode_after): Ditto.
21220 (ix86_mode_entry): Ditto.
21221 (ix86_mode_exit): Ditto.
21222 (ix86_emit_mode_set): Ditto.
21223 * config/i386/i386.md (strmov_singleop): Set
21224 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21225 Do not set ix86_current_function_needs_cld.
21226 (rep_mov): Ditto.
21227 (strset_singleop): Ditto.
21228 (rep_stos): Ditto.
21229 (cmpstrnqi_nz_1): Ditto.
21230 (cmpstrnqi_1): Ditto.
21231 (strlenqi_1): Ditto.
21232
21233 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21234
21235 PR tree-optimization/71259
21236 * tree-vect-slp.c (vect_get_constant_vectors): For
21237 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21238 one for constant op, and use COND_EXPR for non-constant.
21239
21240 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21241
21242 * Makefile.in (OBJS): Add function-tests.o,
21243 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21244 selftest-run-tests.o.
21245 (OBJS-libcommon): Add selftest.o.
21246 (OBJS-libcommon-target): Add selftest.o.
21247 (all.internal): Add "selftest".
21248 (all.cross): Likewise.
21249 (selftest): New phony target.
21250 (s-selftest): New target.
21251 (selftest-gdb): New phony target.
21252 (COLLECT2_OBJS): Add selftest.o.
21253 * bitmap.c: Include "selftest.h".
21254 (selftest::test_gc_alloc): New function.
21255 (selftest::test_set_range): New function.
21256 (selftest::test_clear_bit_in_middle): New function.
21257 (selftest::test_copying): New function.
21258 (selftest::test_bitmap_single_bit_set_p): New function.
21259 (selftest::bitmap_c_tests): New function.
21260 * common.opt (fself-test): New.
21261 * diagnostic-show-locus.c: Include "selftest.h".
21262 (make_range): New function.
21263 (test_range_contains_point_for_single_point): New function.
21264 (test_range_contains_point_for_single_line): New function.
21265 (test_range_contains_point_for_multiple_lines): New function.
21266 (assert_eq): New function.
21267 (test_get_line_width_without_trailing_whitespace): New function.
21268 (selftest::diagnostic_show_locus_c_tests): New function.
21269 * et-forest.c: Include "selftest.h".
21270 (selftest::test_single_node): New function.
21271 (selftest::test_simple_tree): New function.
21272 (selftest::test_disconnected_nodes): New function.
21273 (selftest::et_forest_c_tests): New function.
21274 * fold-const.c: Include "selftest.h".
21275 (selftest::assert_binop_folds_to_const): New function.
21276 (selftest::assert_binop_folds_to_nonlvalue): New function.
21277 (selftest::test_arithmetic_folding): New function.
21278 (selftest::fold_const_c_tests): New function.
21279 * function-tests.c: New file.
21280 * gimple.c: Include "selftest.h".
21281 Include "gimple-pretty-print.h".
21282 (selftest::verify_gimple_pp): New function.
21283 (selftest::test_assign_single): New function.
21284 (selftest::test_assign_binop): New function.
21285 (selftest::test_nop_stmt): New function.
21286 (selftest::test_return_stmt): New function.
21287 (selftest::test_return_without_value): New function.
21288 (selftest::gimple_c_tests): New function.
21289 * hash-map-tests.c: New file.
21290 * hash-set-tests.c: New file.
21291 * input.c: Include "selftest.h".
21292 (selftest::assert_loceq): New function.
21293 (selftest::test_accessing_ordinary_linemaps): New function.
21294 (selftest::test_unknown_location): New function.
21295 (selftest::test_builtins): New function.
21296 (selftest::test_reading_source_line): New function.
21297 (selftest::input_c_tests): New function.
21298 * rtl-tests.c: New file.
21299 * selftest-run-tests.c: New file.
21300 * selftest.c: New file.
21301 * selftest.h: New file.
21302 * spellcheck.c: Include "selftest.h".
21303 (selftest::levenshtein_distance_unit_test_oneway): New function,
21304 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21305 (selftest::levenshtein_distance_unit_test): Likewise.
21306 (selftest::spellcheck_c_tests): Likewise.
21307 * toplev.c: Include selftest.h.
21308 (toplev::run_self_tests): New.
21309 (toplev::main): Handle -fself-test.
21310 * toplev.h (toplev::run_self_tests): New.
21311 * tree.c: Include "selftest.h".
21312 (selftest::test_integer_constants): New function.
21313 (selftest::test_identifiers): New function.
21314 (selftest::test_labels): New function.
21315 (selftest::tree_c_tests): New function.
21316 * tree-cfg.c: Include "selftest.h".
21317 (selftest::push_fndecl): New function.
21318 (selftest::test_linear_chain): New function.
21319 (selftest::test_diamond): New function.
21320 (selftest::test_fully_connected): New function.
21321 (selftest::tree_cfg_c_tests): New function.
21322 * vec.c: Include "selftest.h".
21323 (selftest::safe_push_range): New function.
21324 (selftest::test_quick_push): New function.
21325 (selftest::test_safe_push): New function.
21326 (selftest::test_truncate): New function.
21327 (selftest::test_safe_grow_cleared): New function.
21328 (selftest::test_pop): New function.
21329 (selftest::test_safe_insert): New function.
21330 (selftest::test_ordered_remove): New function.
21331 (selftest::test_unordered_remove): New function.
21332 (selftest::test_block_remove): New function.
21333 (selftest::reverse_cmp): New function.
21334 (selftest::test_qsort): New function.
21335 (selftest::vec_c_tests): New function.c.
21336 * wide-int.cc: Include selftest.h and wide-int-print.h.
21337 (selftest::from_int <wide_int>): New function.
21338 (selftest::from_int <offset_int>): New function.
21339 (selftest::from_int <widest_int>): New function.
21340 (selftest::assert_deceq): New function.
21341 (selftest::assert_hexeq): New function.
21342 (selftest::test_printing <VALUE_TYPE>): New function template.
21343 (selftest::test_ops <VALUE_TYPE>): New function template.
21344 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21345 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21346 template.
21347 (selftest::wide_int_cc_tests): New function.
21348
21349 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21350
21351 PR middle-end/37780
21352 * ifcvt.c (noce_try_ifelse_collapse): New function.
21353 Declare prototype.
21354 (noce_process_if_block): Call noce_try_ifelse_collapse.
21355 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21356 (simplify_ternary_operation): Use the above to simplify
21357 conditional CLZ/CTZ expressions.
21358
21359 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21360
21361 PR middle-end/37780
21362 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21363 define_insn_and_split.
21364
21365 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21366
21367 PR middle-end/37780
21368 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21369
21370 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21371
21372 PR c/24414
21373 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21374 Implicitly clobber memory for basic asm with non-empty assembler
21375 string. Use targetm.md_asm_adjust also here.
21376 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21377 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21378 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21379 non-empty assembler string.
21380 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21381 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21382 (decode_asm_operands): Handle basic asm in PARALLEL block.
21383 (extract_insn): Handle basic asm in PARALLEL block.
21384 * doc/extend.texi: Mention new behavior of basic asm.
21385 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21386 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21387 branch_needs_nop_p): Use asm_noperands.
21388
21389 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21390
21391 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21392 Include the M7 SPARC DFA scheduler.
21393 New attribute v3pipe.
21394 Annotate insns with v3pipe where appropriate.
21395 Define cpu_feature vis4.
21396 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21397 Add (V8QI "8") to vbits.
21398 Add insns {add,sub}v8qi3
21399 Add insns ss{add,sub}v8qi3
21400 Add insns us{add,sub}{v8qi,v4hi}3
21401 Add insns {min,max}{v8qi,v4hi,v2si}3
21402 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21403 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21404 * config/sparc/niagara4.md: Add a comment explaining the
21405 discrepancy between the documented latenty numbers and the
21406 implemented ones.
21407 * config/sparc/niagara7.md: New file.
21408 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21409 supports SPARC5 and VIS 4.0 instructions.
21410 * configure: Regenerate.
21411 * config.in: Likewise.
21412 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21413 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21414 TARGET_CPU_niagara7.
21415 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21416 (CPP_CPU_SPEC): Handle niagara7.
21417 (ASM_CPU_SPEC): Likewise.
21418 * config/sparc/sparc-opts.h (processor_type): Add
21419 PROCESSOR_NIAGARA7.
21420 (mvis4): New option.
21421 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21422 (AS_NIAGARA7_FLAG): Define.
21423 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21424 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21425 (CPP_CPU_SPEC): Handle niagara7.
21426 (ASM_CPU_SPEC): Likewise.
21427 * config/sparc/sparc.c (niagara7_costs): Define.
21428 (sparc_option_override): Handle niagara7 and adjust cache-related
21429 parameters with better values for niagara cpus. Also support VIS4.
21430 (sparc32_initialize_trampoline): Likewise.
21431 (sparc_use_sched_lookahead): Likewise.
21432 (sparc_issue_rate): Likewise.
21433 (sparc_register_move_cost): Likewise.
21434 (dump_target_flag_bits): Support VIS4.
21435 (sparc_vis_init_builtins): Likewise.
21436 (sparc_builtins): Likewise.
21437 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21438 VIS4 4.0.
21439 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21440 UltraSparc M7.
21441 * config/sparc/sparc.opt (sparc_processor_type): New value
21442 niagara7.
21443 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21444 VIS4 builtins.
21445 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21446 -mvis4.
21447 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21448 VIS4 builtins.
21449
21450 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21451
21452 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21453
21454 2016-06-06 Richard Biener <rguenther@suse.de>
21455
21456 PR tree-optimization/71398
21457 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21458 remove edges.
21459
21460 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21461
21462 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21463 ft32_expand_prolog, ft32_expand_epilogue):
21464 Handle pretend_args.
21465 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21466 * config/ft32/ft32.md: Add pretend_returner.
21467
21468 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21469
21470 PR target/71389
21471 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21472 Copy op1 RTX to avoid invalid sharing.
21473 (ix86_expand_vector_move_misalign): Ditto.
21474
21475 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21476
21477 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21478 ATTRIBUTE_UNUSED.
21479
21480 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21481
21482 * predict.c (predicted_by_loop_heuristics_p): New function.
21483 (predict_iv_comparison): Use it.
21484 (predict_loops): Walk from innermost loops; do not predict edges
21485 leaving multiple loops multiple times; implement
21486 PRED_LOOP_ITERATIONS_MAX heuristics.
21487 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21488
21489 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21490
21491 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21492 only edges out of BB are EH edges.
21493
21494 2016-06-04 Martin Sebor <msebor@redhat.com>
21495 Marcin Baczyński <marbacz@gmail.com>
21496
21497 PR c/48116
21498 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21499 a void expression in a void function.
21500
21501 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21502
21503 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21504 aux; dump reasons of decisions.
21505 (should_duplicate_loop_header_p): Likewise.
21506 (do_while_loop_p): Likewise.
21507 (ch_base::copy_headers): Dump asi num insns duplicated.
21508
21509 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21510
21511 PR tree-optimization/71405
21512 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21513 incompatible type, build a new clobber with the right type instead
21514 of building a VIEW_CONVERT_EXPR around it.
21515
21516 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21517
21518 PR tree-optimization/52171
21519 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21520 by_pieces_ninsns instead of move_by_pieces_ninsns.
21521
21522 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21523
21524 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21525 for reg+reg addressing mode.
21526
21527 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21528
21529 * rs6000-c.c (c/c-tree.h): Add #include.
21530 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21531 in C++ when found in the base position of vec_ld or vec_st.
21532
21533 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21534
21535 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21536 use of profile unless profile status is PROFILE_READ.
21537 * profile.c (compute_branch_probabilities): Set profile status
21538 only after reporting predictor hitrates.
21539
21540 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21541
21542 PR target/71276
21543 PR target/71277
21544 * common.opt (ffp-int-builtin-inexact): New option.
21545 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21546 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21547 (ceil@var{m}2): Document dependence on this option.
21548 * ipa-inline-transform.c (inline_call): Handle
21549 flag_fp_int_builtin_inexact.
21550 * ipa-inline.c (can_inline_edge_p): Likewise.
21551 * config/i386/i386.md (rintxf2): Do not test
21552 flag_unsafe_math_optimizations.
21553 (rint<mode>2_frndint): New define_insn.
21554 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21555 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21556 for 387 instead of extending and truncating.
21557 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21558 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21559 Change to frndint<mode>2_<rounding>.
21560 (frndintxf2_<rounding>_i387): Likewise. Change to
21561 frndint<mode>2_<rounding>_i387.
21562 (<rounding_insn>xf2): Likewise.
21563 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21564 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21565 x87. Test TARGET_ROUND || !flag_trapping_math ||
21566 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21567 SSE. Use ROUND_NO_EXC in constant operand of
21568 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21569 for 387 instead of extending and truncating.
21570
21571 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21572 Julia Koval <julia.koval@intel.com>
21573
21574 PR target/66960
21575 PR target/67630
21576 PR target/67634
21577 PR target/67841
21578 PR target/68037
21579 PR target/68618
21580 PR target/68661
21581 PR target/69575
21582 PR target/69596
21583 PR target/69734
21584 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21585 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21586 all registers, except for function return registers if there are
21587 no caller-saved registers.
21588 (ix86_set_func_type): New function.
21589 (ix86_set_current_function): Call ix86_set_func_type to set
21590 no_caller_saved_registers and func_type. Call reinit_regs if
21591 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21592 nor x87 instructions in interrupt handler nor function with
21593 no_caller_saved_registers attribute.
21594 (ix86_function_ok_for_sibcall): Return false if there are no
21595 caller-saved registers.
21596 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21597 handler.
21598 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21599 (ix86_function_arg): Return special arguments in interrupt handler.
21600 (ix86_promote_function_mode): Promote pointer to word_mode only
21601 for normal functions.
21602 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21603 interrupt handler.
21604 (ix86_epilogue_uses): New function.
21605 (ix86_hard_regno_scratch_ok): Likewise.
21606 (ix86_save_reg): Preserve all registers in interrupt handler
21607 after reload. Preserve all registers, except for function return
21608 registers, if there are no caller-saved registers after reload.
21609 (find_drap_reg): Always use callee-saved register if there are
21610 no caller-saved registers.
21611 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21612 for interrupt handler.
21613 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21614 Emit cld instruction if stringops are used in interrupt handler
21615 or interrupt handler isn't a leaf function.
21616 (ix86_expand_epilogue): Generate interrupt return for interrupt
21617 handler and pop the 'ERROR_CODE' off the stack before interrupt
21618 return in exception handler.
21619 (ix86_expand_call): Disallow calling interrupt handler directly.
21620 If there are no caller-saved registers, mark all registers that
21621 are clobbered by the call which returns as clobbered.
21622 (ix86_handle_no_caller_saved_registers_attribute): New function.
21623 (ix86_handle_interrupt_attribute): Likewise.
21624 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21625 attributes.
21626 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21627 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21628 accumulation in interrupt function if stack may be realigned to
21629 avoid DRAP.
21630 (EPILOGUE_USES): New.
21631 (function_type): New enum.
21632 (machine_function): Add func_type and no_caller_saved_registers.
21633 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21634 (interrupt_return): New pattern.
21635 * doc/extend.texi: Document x86 interrupt and
21636 no_caller_saved_registers attributes.
21637
21638 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21639
21640 PR tree-optimization/52171
21641 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21642 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21643 Look for constant strings. Move some code to emit_block_cmp_hints
21644 and use it.
21645 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21646 * defaults.h (COMPARE_MAX_PIECES): New macro.
21647 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21648 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21649 (clear_by_pieces_1): Don't declare. Move definition before use.
21650 (can_do_by_pieces): New static function.
21651 (can_move_by_pieces): Use it. Return bool.
21652 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21653 OP. All callers changed. Handle COMPARE_BY_PIECES.
21654 (class pieces_addr); New.
21655 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21656 pieces_addr::adjust, pieces_addr::increment_address,
21657 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21658 functions for it.
21659 (class op_by_pieces_d): New.
21660 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21661 functions for it.
21662 (class move_by_pieces_d, class compare_by_pieces_d,
21663 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21664 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21665 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21666 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21667 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21668 compare_by_pieces_d::finish_mode): New member functions.
21669 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21670 functions.
21671 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21672 (emit_block_cmp_hints): New function.
21673 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21674 use the newly defined classes.
21675 * expr.h (by_pieces_constfn): New typedef.
21676 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21677 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21678 (move_by_pieces_ninsns): Don't declare.
21679 (can_move_by_pieces): Change return value to bool.
21680 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21681 (compare_by_pieces_branch_ratio): New hook.
21682 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21683 (by_pieces_ninsns): Declare.
21684 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21685 COMPARE_BY_PIECES.
21686 (default_compare_by_pieces_branch_ratio): New function.
21687 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21688 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21689 * doc/tm.texi: Regenerate.
21690 * tree-ssa-strlen.c: Include "builtins.h".
21691 (handle_builtin_memcmp): New static function.
21692 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21693 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21694
21695 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21696
21697 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21698 relevant stmts which are simple and invariant.
21699 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21700 instead of simple and invariant
21701
21702 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21703
21704 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21705 (vectorizable_reduction): Check for new relevant state.
21706 (vectorizable_live_operation): vectorize live stmts using
21707 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21708 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21709 (vect_stmt_relevant_p): Check for stmts which are only used live.
21710 (process_use): Use of a stmt does not inherit it's live value.
21711 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21712 (vect_analyze_stmt): Check for new relevant state.
21713 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21714 outside the loop, but not inside it.
21715
21716 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21717
21718 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21719 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21720 (vect_get_vec_def_for_operand): Split out code.
21721
21722 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21723
21724 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21725
21726 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21727
21728 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21729
21730 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21731
21732 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21733
21734 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21735
21736 PR middle-end/71387
21737 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21738 to noreturn e->callee->decl that has void return type and void
21739 arguments, adjust gimple_call_fntype and remove lhs even if it had
21740 previously addressable type.
21741
21742 2016-06-02 Jeff Law <law@redhat.com>
21743
21744 PR tree-optimization/71328
21745 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21746 error when checking for a jump back onto the copied path.
21747
21748 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21749
21750 * config/microblaze/microblaze.c (get_branch_target): Add return
21751 NULL_RTX for the non-CALL_P case.
21752 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21753 (insert_wic): Remove unused local "j".
21754
21755 2016-06-02 Martin Liska <mliska@suse.cz>
21756
21757 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21758
21759 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21760 Julia Koval <julia.koval@intel.com>
21761
21762 * function.c (assign_parm_setup_stack): Force source into a
21763 register if needed.
21764 * target.def (function_incoming_arg): Update documentation to
21765 allow arbitrary address computation based on hard register.
21766 * doc/tm.texi: Regenerated.
21767
21768 2016-06-02 Martin Liska <mliska@suse.cz>
21769
21770 * predict.c (combine_predictions_for_bb): Fix first match in
21771 cases where a first predictor contains more than one occurence
21772 in list of predictors. Take the best value in such case.
21773
21774 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21775
21776 PR rtl-optimization/71295
21777 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21778 offset would go over the size of the inner mode reject it.
21779
21780 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21781
21782 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21783 x=x,x and v=v,m instead of x=x,m.
21784
21785 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21786 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21787 alternative to v=rm,C.
21788
21789 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21790 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21791 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21792 instead of vex for the last two above mentioned alternatives.
21793
21794 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21795
21796 PR target/70830
21797 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21798
21799 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21800
21801 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21802
21803 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21804
21805 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21806 from int to unsigned.
21807
21808 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21809
21810 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21811 alternatives, eliminating preferred register class. Add support
21812 for the MTVSRDD instruction in ISA 3.0.
21813 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21814 reg_or_indexed_operand.
21815 (vsx_splat_v4sf_internal): Likewise.
21816
21817 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21818
21819 PR target/71186
21820 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21821 for loading up all 0's or all 1's.
21822
21823 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21824
21825 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21826
21827 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21828
21829 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21830 extension.
21831 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21832 * gcc.c (set_source_date_epoch_envvar): New function, sets
21833 the SOURCE_DATE_EPOCH environment variable to the current time.
21834
21835 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21836
21837 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21838 the factor for live Phi nodes.
21839
21840 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21841
21842 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21843 * tree-parloops.c (parallelize_loops): likewise.
21844 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21845 tree_unswitch_outer_loop): likewise.
21846
21847 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21848
21849 PR middle-end/71371
21850 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21851 around creation of the temporary.
21852
21853 2016-06-01 Richard Biener <rguenther@suse.de>
21854
21855 PR tree-optimization/71366
21856 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21857 (unloop_loops): Move removing edges here ...
21858 (try_unroll_loop_completely): ... from here.
21859 (try_peel_loop): ... and here.
21860 (tree_unroll_loops_completely_1): Track parent loops via
21861 bitmap of header BBs.
21862 (tree_unroll_loops_completely): Adjust for that.
21863
21864 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21865
21866 * config/rs6000/altivec.h (vec_slv): New macro.
21867 (vec_srv): New macro.
21868 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21869 (UNSPEC_VSRV): New value.
21870 (vslv): New insn.
21871 (vsrv): New insn.
21872 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21873 (vsrv): New builtin definition.
21874 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21875 define argument types for new builtin.
21876 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21877 new builtin.
21878 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21879 functions.
21880
21881 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21882 Jocelyn Mayer <l_indien@magic.fr>
21883
21884 PR target/67310
21885 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21886 detect processor family for signature_CENTAUR_ebx.
21887 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21888 signature_CENTAUR_ebx.
21889 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21890 <default>: Pass x86-64 for has_longmode.
21891
21892 2016-06-01 Nathan Sidwell <nathan@acm.org>
21893
21894 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21895 undefined weak.
21896
21897 2016-06-01 Richard Biener <rguenther@suse.de>
21898
21899 PR tree-optimization/71261
21900 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21901 of stmts successfully put in the bool pattern. Remove
21902 single-use restriction.
21903 (adjust_bool_pattern_cast): Add cast at the use site via the
21904 pattern def sequence.
21905 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21906 of patterned defs. Use the pattern def seqence instead of
21907 multiple independent patterns.
21908 (sort_after_uid): New qsort compare function.
21909 (adjust_bool_stmts): New function to process stmts in the bool
21910 pattern in IL order.
21911 (vect_recog_bool_pattern): Adjust.
21912 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21913 (ifcvt_walk_pattern_tree): Likewise.
21914 (stmt_is_root_of_bool_pattern): Likewise.
21915 (ifcvt_repair_bool_pattern): Likewise.
21916 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21917
21918 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21919
21920 * loop-unroll.c (decide_unroll_constant_iterations,
21921 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21922 likely upper bounds.
21923 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21924
21925 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21926
21927 * tree-core.h (enum omp_clause_code): Remove
21928 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21929
21930 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21931
21932 * config/arm/sync.md (arm_store_exclusive<mode>):
21933 Use 'H' output modifier on operands[2] rather than creating a new
21934 entry in out-of-bounds memory of the operands array.
21935 (arm_store_release_exclusivedi): Likewise.
21936
21937 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21938
21939 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21940 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21941 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21942 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21943
21944 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21945
21946 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21947 into account live statements for mask producers.
21948
21949 2016-06-01 Richard Biener <rguenther@suse.de>
21950
21951 PR tree-optimization/71311
21952 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
21953 restrict to non-INTEGER_CST @0.
21954
21955 2016-06-01 Richard Biener <rguenther@suse.de>
21956
21957 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
21958 (relational patterns): Use :c to avoid pattern duplications.
21959
21960 2016-06-01 Richard Biener <rguenther@suse.de>
21961
21962 * genmatch.c (comparison_code_p): New predicate.
21963 (swap_tree_comparison): New function.
21964 (commutate): Add for_vec parameter to append new for entries.
21965 Support commutating relational operators by swapping it alongside
21966 operands.
21967 (lower_commutative): Adjust.
21968 (dt_simplify::gen): Do not pass artificial operators to gen
21969 functions.
21970 (decision_tree::gen): Do not add artificial operators as parameters.
21971 (parser::parse_expr): Verify operator commutativity when :c is
21972 applied. Allow :C to override this.
21973 * match.pd: Adjust patterns to use :C instead of :c where required.
21974
21975 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
21976
21977 PR tree-optimization/71077
21978 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
21979 the combining step, use boolean_false_node and boolean_true_node
21980 as the designated false/true return values.
21981
21982 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21983
21984 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
21985 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
21986 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
21987 PRED_LOOP_EXIT.
21988
21989 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
21990
21991 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
21992 of flags impliying the register renaming.
21993 * toplev.c (process_options): Do not imply flag_rename_registers with
21994 loop peeling.
21995
21996 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
21997
21998 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
21999 default implementation.
22000
22001 2016-05-31 Nathan Sidwell <nathan@acm.org>
22002
22003 * dwarf2out.c (cur_line_info_table): Add GTY marker.
22004
22005 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22006
22007 * config/sh/constraints.md (b): Remove constraint.
22008 * config/sh/predicates.md (arith_reg_operand): Remove
22009 TARGET_REGISTER_P.
22010 * config/sh/sh-modes.def (PDI): Remove.
22011 * config/sh/sh.c (sh_target_reg_class,
22012 sh_optimize_target_register_callee_saved): Remove functions.
22013 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22014 (sh_expand_epilogue): Update comment.
22015 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22016 sh_secondary_reload): Remove TARGET_REGS related code.
22017 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22018 TARGET_REGISTER_P): Remove macros.
22019 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22020 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22021 TR1_REG, TR2_REG): Remove constants.
22022 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22023
22024 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22025
22026 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22027 define_expand patterns.
22028 (adddi3_compact): Rename to adddi3.
22029 (subdi3_compact): Rename to subdi3.
22030 (*negdi2): Rename to negdi2.
22031 (*abs<mode>2): Rename to abs<mode>2.
22032
22033 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22034
22035 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22036 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22037 (atomic_sub_fetchsi): ... this new pattern.
22038 (mvtc): Add CC_REG clobber.
22039
22040 2016-05-31 Marek Polacek <polacek@redhat.com>
22041
22042 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22043
22044 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22045
22046 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22047 aarch64_fusion_enabled_p to check for fusion capabilities.
22048
22049 2016-05-31 Richard Biener <rguenther@suse.de>
22050
22051 PR tree-optimization/71352
22052 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22053 minus one and a negate.
22054
22055 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22056
22057 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22058 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22059 Delete prototype.
22060 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22061 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22062 Remove use of aarch64_simd_attr_length_move, set length attribute
22063 directly.
22064 (*aarch64_be_movoi): Likewise.
22065 (*aarch64_be_movci): Likewise.
22066 (*aarch64_be_movxi): Likewise.
22067
22068 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22069
22070 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22071 It no longer does that.
22072 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22073
22074 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22075
22076 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22077 attribute __unused__.
22078
22079 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22080
22081 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22082 * config/arm/arm.c (arm_arch_thumb1): Define.
22083 (arm_option_override): Initialize arm_arch_thumb1.
22084 * config/arm/arm.h (arm_arch_thumb1): Declare.
22085 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22086 support Thumb-1 ISA.
22087
22088 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22089
22090 PR target/71346
22091 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22092 `Yv' for scalar operand.
22093
22094 2016-05-31 Tom de Vries <tom@codesourcery.com>
22095
22096 PR tree-optimization/69068
22097 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22098 phis with more than two args.
22099
22100 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22101
22102 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22103 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22104 target.
22105
22106 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22107
22108 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22109 tune_64.
22110 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22111 support on SPARC.
22112 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22113 cpu_32, cpu_64, tune_32 and tune_64.
22114 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22115
22116 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22117
22118 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22119
22120 2016-05-30 Andi Kleen <ak@linux.intel.com>
22121
22122 * auto-profile.c (read_profile): Replace asserts with errors
22123 when file does not exist.
22124 * gcov-io.c (gcov_read_words): Dito.
22125
22126 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22127
22128 * tree-cfg.c (print_loop): Print likely upper bounds.
22129
22130 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22131
22132 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22133 * opts.c (default_options): Enable peel loops at -O3.
22134 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22135 (try_peel_loop): Do not re-peel already peeled loops;
22136 use likely upper bounds; fix profile updating.
22137 (pass_complete_unroll::execute): Initialize peeled_loops.
22138
22139 2016-05-30 Martin Liska <mliska@suse.cz>
22140
22141 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22142 computed costs by frequency of BB they belong to.
22143 (get_scaled_computation_cost_at): New function.
22144
22145 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22146 Marc Glisse <marc.glisse@inria.fr>
22147
22148 PR tree-optimization/71289
22149 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22150
22151 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22152
22153 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22154
22155 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22156
22157 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22158 for peeled copies; avoid underflow when updating estimates; correctly
22159 scale loop profile.
22160
22161 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22162
22163 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22164 r236875. Corrected oe3 to oe2 as obvious.
22165
22166 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22167
22168 PR middle-end/71269
22169 PR middle-end/71252
22170 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22171 that inserted stmt will not dominate stmts that defines its operand.
22172 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22173 (rewrite_expr_tree_parallel): Likewise.
22174
22175 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22176
22177 PR middle-end/71252
22178 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22179 all fields including stmt_to_insert are swapped.
22180
22181 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22182
22183 * predict.h (force_edge_cold): Declare.
22184 * predict.c (force_edge_cold): New function.
22185 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22186 updating.
22187 (canonicalize_loop_induction_variables): Fix formating.
22188
22189 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22190
22191 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22192 (visium_expand_copysign): Use gen_int_mode directly.
22193 (visium_compute_frame_size): Minor tweaks.
22194
22195 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22196
22197 * tree-vect-loop.c (vect_analyze_loop_2): Use
22198 likely_max_stmt_executions_int.
22199
22200 2016-05-30 Tom de Vries <tom@codesourcery.com>
22201
22202 PR tree-optimization/69067
22203 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22204
22205 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22206
22207 PR target/71245
22208 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22209 New peepholes to remove unneeded fild/fistp pairs.
22210 (define_peephole2 atomic_loaddi_fpu): Ditto.
22211
22212 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22213
22214 * predict.c (maybe_hot_frequency_p): Avoid division.
22215
22216 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22217
22218 * doc/install.texi: Use https for shop.fsf.org.
22219
22220 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22221
22222 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22223 likely_max_stmt_executions_int.
22224
22225 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22226
22227 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22228 likely_max_stmt_executions_int.
22229
22230 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22231
22232 * profile.c (compute_branch_probabilities): Do not report hitrates
22233 here.
22234 (branch_prob): Report hitrates here.
22235 * predict.c (gimple_predict_edge): Do not assert profile status;
22236 fix formatting issues.
22237
22238 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22239
22240 * predict.c (edge_predicted_by_p): New function.
22241 (predict_paths_for_bb): Do not put multiple predictions of the same type
22242 on one edge.
22243
22244 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22245
22246 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22247 commit.
22248
22249 2016-05-28 Alan Modra <amodra@gmail.com>
22250
22251 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22252
22253 2016-05-28 Alan Modra <amodra@gmail.com>
22254
22255 PR rtl-optimization/71275
22256 * ira.c (ira): Free dominance info.
22257
22258 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22259
22260 * doc/sourcebuild.texi: New address for upstream Go repository.
22261
22262 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22263
22264 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22265 (TARGET_ARM_V7M): Likewise.
22266
22267 2016-05-26 Jeff Law <law@redhat.com>
22268
22269 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22270 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22271 * passes.def: Add jump threading passes before DOM/VRP.
22272 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22273 argument to a basic block from an edge. Remove tests which are
22274 handled elsewhere.
22275 (pass_data_thread_jumps, class pass_thread_jumps): New.
22276 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22277 (make_pass_thread_jumps): Likewise.
22278 * tree-pass.h (make_pass_thread_jumps): Declare.
22279
22280 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22281
22282 * config/visium/visium-protos.h (split_double_move): Rename into...
22283 (visium_split_double_move): ...this.
22284 (visium_split_double_add): Declare.
22285 * config/visium/visium.c (split_double_move): Rename into...
22286 (visium_split_double_move): ...this.
22287 (visium_split_double_add): New function.
22288 (visium_expand_copysign): Renumber operands for consistency.
22289 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22290 (DFmode move splitter): Likewise.
22291 (*addi3_insn): Split by means of visium_split_double_add.
22292 (*adddi3_insn_flags): Delete.
22293 (*plus_plus_sltu<subst_arith>): New insn.
22294 (*subdi3_insn): Split by means of visium_split_double_add.
22295 (subdi3_insn_flags): Delete.
22296 (*minus_minus_sltu<subst_arith>): New insn.
22297 (*negdi2_insn): Split by means of visium_split_double_add.
22298 (*negdi2_insn_flags): Delete.
22299
22300 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22301
22302 * configure.ac: Treat a --with-headers option without argument
22303 the same as the default (i.e. consult sys-include directory).
22304 * configure: Regenerate.
22305
22306 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22307
22308 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22309 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22310 prototype.
22311 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22312 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22313
22314 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22315
22316 PR target/63596
22317 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22318 tree-stdarg analysis results.
22319 (aarch64_setup_incoming_varargs): Likewise.
22320
22321 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22322
22323 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22324 va_list_gpr_counter_field and va_list_fpr_counter_field.
22325
22326 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22327
22328 PR67609
22329 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22330 * config/aarch64/aarch64.c
22331 (aarch64_cannot_change_mode_class): Remove function.
22332 * config/aarch64/aarch64-protos.h
22333 (aarch64_cannot_change_mode_class): Remove.
22334
22335 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22336
22337 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22338 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22339 get_likely_max_loop_iterations_int): New.
22340 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22341 any_likely_upper_bound.
22342 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22343 Declare.
22344 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22345 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22346 upper bound.
22347 (unroll_loop_constant_iterations): Likewise.
22348 (unroll_loop_runtime_iterations): Likewise.
22349 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22350 * lto-streamer-out.c (output_cfg): Likewise.
22351 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22352 bounds.
22353 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22354 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22355 (likely_max_loop_iterations): New.
22356 (likely_max_loop_iterations_int): New.
22357 (likely_max_stmt_executions): New.
22358 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22359 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22360 likely_max_stmt_executions): Declare.
22361
22362 2016-05-27 Marek Polacek <polacek@redhat.com>
22363
22364 PR middle-end/71308
22365 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22366
22367 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22368
22369 * config/s390/s390.md (2x risbg splitters): Use
22370 reg_overlap_mentioned_p instead of rtx_equal_p.
22371
22372 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22373
22374 * combine.c (make_compound_operation): Take known zero bits into
22375 account when checking for possible zero_extend.
22376
22377 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22378
22379 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22380 Use const_int_operand for operand 2 predicate. Simplify expand code
22381 as a result.
22382
22383 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22384
22385 PR middle-end/71279
22386 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22387 into comparison.
22388
22389 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22390
22391 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22392 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22393 that returns CC_SESWPmode and CC_ZESWPmode.
22394 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22395 and CC_SESWPmode.
22396 (aarch64_rtx_costs): Likewise.
22397
22398 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22399
22400 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22401 for ISA 3.0 min/max support.
22402 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22403 conditional move support.
22404 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22405 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22406 available.
22407 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22408 conditional moves where the comparison type is different from move
22409 type.
22410 (fp_minmax): New code iterator for smin/smax.
22411 (minmax): New code attributes for min/max.
22412 (SMINMAX): Likewise.
22413 (smax<mode>3): Combine min, max insns into one insn using the
22414 fp_minmax code iterator. Add support for ISA 3.0 min/max
22415 instructions that don't need -ffast-math.
22416 (s<minmax><mode>3): Likewise.
22417 (smax<mode>3_vsx): Likewise.
22418 (smin<mode>3): Likewise.
22419 (s<minmax><mode>3_vsx): Likewise.
22420 (smin<mode>3_vsx): Likewise.
22421 (pre-VSX min/max splitters): Likewise.
22422 (s<minmax><mode>3_fpr): Likewise.
22423 (movsfcc): Rewrite floating point conditional moves to combine
22424 SFmode/DFmode into a single insn.
22425 (mov<mode>cc): Likewise.
22426 (movdfcc): Likewise.
22427 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22428 SFDF2 iterators to handle all combinations.
22429 (fseldfsf4): Likewise.
22430 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22431 (fseldfdf4): Likewise.
22432 (fselsfdf4): Likewise.
22433 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22434 comparison instructions that set a 0/-1 mask, and use it for
22435 floating point conditional move via XXSEL.
22436 (fpmask<mode>): Likewise.
22437 (xxsel<mode>): Likewise.
22438 * config/rs6000/predicates.md (min_max_operator): Delete, no
22439 longer used.
22440 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22441 instructions that generate a 0/-1 mask for use with XXSEL.
22442 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22443 say whether floating point min/max is available, either through
22444 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22445 (TARGET_MINMAX_DF): Likewise.
22446
22447 2016-05-27 Alan Modra <amodra@gmail.com>
22448
22449 PR rtl-optimization/71275
22450 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22451 for update_equiv_regs and combine_and_move_insns.
22452
22453 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22454
22455 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22456 if_then_else or cond RTXes to calculate attribute value.
22457 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22458 <attr "length_immediate>: Ditto.
22459 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22460 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22461 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22462 <attr "type">: Ditto.
22463 <attr "prefix_data16">: Ditto.
22464 <attr "prefix_extra">: Ditto.
22465 <attr "length_immediate">: Ditto.
22466 <attr "prefix">: Ditto.
22467 (vec_set<mode>_0) <attr "isa">: Ditto.
22468 <attr "prefix_extra">: Ditto.
22469 <attr "length_immediate">: Ditto.
22470 <attr "prefix">: Ditto.
22471 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22472 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22473 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22474 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22475 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22476 <attr "length_immediate">: Ditto.
22477 <attr "prefix">: Ditto.
22478 (sse2_movsd) <attr "length_immediate">: Ditto.
22479 <attr "prefix">: Ditto.
22480 (vec_concatv2df) <attr "isa">: Ditto.
22481 <attr "prefix">: Ditto.
22482 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22483 (*vec_extractv2di_1) <attr "isa">: Ditto.
22484 <attr "type">: Ditto.
22485 <attr "length_immediate">: Ditto.
22486 <attr "prefix_rex">: Ditto.
22487 <attr "prefix_extra">: Ditto.
22488 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22489 <attr "prefix_extra">: Ditto.
22490 <attr "length_immediate">: Ditto.
22491 (vec_concatv2di) <attr "isa">: Ditto.
22492 <attr "prefix_extra">: Ditto.
22493 <attr "length_immediate">: Ditto.
22494 <attr "prefix">: Ditto.
22495
22496 2016-05-26 Martin Liska <mliska@suse.cz>
22497
22498 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22499 function.
22500 (operator+): Likewise.
22501 (operator-): Likewise.
22502 (comp_cost::operator+=): Likewise.
22503 (comp_cost::operator-=): Likewise.
22504 (comp_cost::operator/=): Likewise.
22505 (comp_cost::operator*=): Likewise.
22506 (operator<): Likewise.
22507 (operator==): Likewise.
22508 (operator<=): Likewise.
22509 (new_cost): Remove.
22510 (infinite_cost_p): Likewise.
22511 (add_costs): Likewise.
22512 (sub_costs): Likewise.
22513 (compare_costs): Likewise.
22514 (set_group_iv_cost): Use the newly introduced functions.
22515 (get_address_cost): Likewise.
22516 (get_shiftadd_cost): Likewise.
22517 (force_expr_to_var_cost): Likewise.
22518 (split_address_cost): Likewise.
22519 (ptr_difference_cost): Likewise.
22520 (difference_cost): Likewise.
22521 (get_computation_cost_at): Likewise.
22522 (determine_group_iv_cost_generic): Likewise.
22523 (determine_group_iv_cost_address): Likewise.
22524 (determine_group_iv_cost_cond): Likewise.
22525 (autoinc_possible_for_pair): Likewise.
22526 (determine_group_iv_costs): Likewise.
22527 (cheaper_cost_pair): Likewise.
22528 (iv_ca_recount_cost): Likewise.
22529 (iv_ca_set_no_cp): Likewise.
22530 (iv_ca_set_cp): Likewise.
22531 (iv_ca_cost): Likewise.
22532 (iv_ca_new): Likewise.
22533 (iv_ca_dump): Likewise.
22534 (iv_ca_narrow): Likewise.
22535 (iv_ca_prune): Likewise.
22536 (iv_ca_replace): Likewise.
22537 (try_add_cand_for): Likewise.
22538 (try_improve_iv_set): Likewise.
22539 (find_optimal_iv_set): Likewise.
22540
22541 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22542
22543 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22544 that internal functions will clobber all caller-saved registers.
22545
22546 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22547
22548 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22549 Return a better case_values_threshold when optimizing.
22550
22551 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22552
22553 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22554 Add ? to integer variant.
22555 (aarch64_combinez_be): Likewise.
22556
22557 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22558
22559 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22560 instead of x constraint.
22561 (vcvtps2ph256<mask_name>): Likewise.
22562
22563 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22564 alternative. Formatting fix.
22565
22566 * config/i386/sse.md
22567 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22568 to ...
22569 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22570 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22571 maybe_evex prefix instead of vex.
22572 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22573 EXT_REX_SSE_REG_P (op0) case in the splitter.
22574
22575 2016-05-25 Jeff Law <law@redhat.com>
22576
22577 PR tree-optimization/71272
22578 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22579 Update comments. Add test for empty path.
22580
22581 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22582
22583 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22584 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22585 special case builtin.
22586 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22587 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22588 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22589 for __builtin_vec_cmpne.
22590
22591 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22592
22593 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22594 redundant test and bail out if the type of the new operand is not
22595 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22596
22597 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22598
22599 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22600 (x_ix86_target_flags_explicit): Remove.
22601 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22602 x_ix86_target_flags_explicit.
22603 (ix86_function_specific_restore): Ditto.
22604
22605 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22606 H.J. Lu <hongjiu.lu@intel.com>
22607
22608 PR target/70738
22609 * common/config/i386/i386-common.c
22610 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22611 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22612 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22613 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22614 (-mgeneral-regs-only): Add new option.
22615 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22616 x87 instructions if only general registers are allowed.
22617 (ix86_target_string): Add ix86_flags argument. Handle additional
22618 flags options through ix86_flags argument. Update all callers.
22619 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22620
22621 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22622
22623 PR rtl-optimization/66940
22624 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22625 decrementing desired_val will not overflow before performing these
22626 operations.
22627
22628 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22629
22630 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22631 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22632 * config/i386/i386.c (enum ix86_builtins): Add
22633 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22634 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22635 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22636 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22637 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22638 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22639 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22640 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22641 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22642 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22643 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22644 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22645 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22646 __builtin_ia32_cvtps2dq512_mask.
22647 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22648 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22649 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22650 * config/i386/sse.md
22651 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22652 Rename to ...
22653 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22654 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22655 to ...
22656 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22657 (avx512f_vec_pack_sfix_v8df): New define_expand.
22658 (avx512f_roundpd512): Rename to ...
22659 (avx512f_round<castmode>512): ... this. Change iterator.
22660 (avx512f_roundps512_sfix): New define_expand.
22661 (round<mode>2_sfix): Change iterator.
22662
22663 2016-05-25 Nick Clifton <nickc@redhat.com>
22664
22665 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22666 static interrupt handler is detected.
22667 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22668 default linker script.
22669 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22670 the low part of a symbolic pointer.
22671
22672 2016-05-25 Richard Biener <rguenther@suse.de>
22673
22674 PR tree-optimization/71261
22675 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22676 interesting stmt instead of immediate uses when looking
22677 for the use operand to replace.
22678
22679 2016-05-25 Martin Liska <mliska@suse.cz>
22680
22681 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22682
22683 2016-05-25 Richard Biener <rguenther@suse.de>
22684
22685 PR tree-optimization/71264
22686 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22687 vector type val.
22688
22689 2016-05-25 Martin Liska <mliska@suse.cz>
22690
22691 PR tree-optimization/71239
22692 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22693 if DECL_SIZE is NULL.
22694
22695 2016-05-25 Richard Biener <rguenther@suse.de>
22696
22697 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22698 * tree-if-conv.c (pass_data_if_conversion): Use it.
22699
22700 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22701
22702 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22703 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22704 * varpool.c (varpool_node::get_availability): Likewise.
22705
22706 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22707
22708 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22709 VNEGW/VNEGD instructions.
22710 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22711 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22712 support for ISA 3.0 VNEGW/VNEGD instructions.
22713
22714 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22715
22716 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22717 pointers inside OACC_DATA regions.
22718 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22719 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22720 (gimplify_adjust_omp_clauses): Fix typo in comment.
22721
22722 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22723
22724 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22725 parity built-in functions.
22726 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22727 zeros.
22728 (p9v_parity<mode>2): Likewise.
22729 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22730 parity.
22731 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22732 (parity<mode>2): ISA 3.0 expander for vector parity.
22733 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22734 power9 built-ins.
22735 (BU_P9_64BIT_MISC_0): Likewise.
22736 (BU_P9_MISC_0): Likewise.
22737 (BU_P9V_AV_1): Likewise.
22738 (BU_P9V_AV_2): Likewise.
22739 (BU_P9V_AV_3): Likewise.
22740 (BU_P9V_AV_P): Likewise.
22741 (BU_P9V_VSX_1): Likewise.
22742 (BU_P9V_OVERLOAD_1): Likewise.
22743 (BU_P9V_OVERLOAD_2): Likewise.
22744 (BU_P9V_OVERLOAD_3): Likewise.
22745 (VCTZB): Add vector count trailing zeros support.
22746 (VCTZH): Likewise.
22747 (VCTZW): Likewise.
22748 (VCTZD): Likewise.
22749 (VPRTYBD): Add vector parity support.
22750 (VPRTYBQ): Likewise.
22751 (VPRTYBW): Likewise.
22752 (VCTZ): Add overloaded vector count trailing zeros support.
22753 (VPRTYB): Add overloaded vector parity support.
22754 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22755 overloaded vector count trailing zeros and parity instructions.
22756 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22757 vector parity support.
22758 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22759 trailing zeros support.
22760 (vec_cntlz): Likewise.
22761 (vec_vctzb): Likewise.
22762 (vec_vctzd): Likewise.
22763 (vec_vctzh): Likewise.
22764 (vec_vctzw): Likewise.
22765 (vec_vprtyb): Add ISA 3.0 vector parity support.
22766 (vec_vprtybd): Likewise.
22767 (vec_vprtybw): Likewise.
22768 (vec_vprtybq): Likewise.
22769 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22770 the ISA 3.0 vector count trailing zeros and vector parity built-in
22771 functions.
22772
22773 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22774
22775 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22776 when there is stmt_to_insert.
22777
22778 2016-05-24 Martin Sebor <msebor@redhat.com>
22779
22780 PR c++/71147
22781 * tree.h (complete_or_array_type_p): New inline function.
22782
22783 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22784
22785 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22786 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22787 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22788
22789 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22790 Limit 1st alternative to noavx isa, split 2nd alternative into one
22791 noavx and one avx alternative, use *x and Bm in the former and
22792 x and m in the latter.
22793
22794 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22795 of sse4 for the first alternative, drop %v from the template
22796 and d operand modifier. Split second alternative into one sse4_noavx
22797 and one avx alternative, use *x instead of *v in the former and v
22798 instead of *v in the latter.
22799 (*sse4_1_extractps): Use noavx isa instead of * for the first
22800 alternative, drop %v from the template. Split second alternative into
22801 one noavx and one avx alternative, use *x instead of *v in the
22802 former and v instead of *v in the latter.
22803 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22804 with noavx and the last one with avx.
22805 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22806 split the second one into one noavx and one avx alternative,
22807 use *x and Bm in the former and x and m in the latter one.
22808 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22809 alternatives.
22810
22811 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22812 first two alternatives to noavx, use *x instead of *v in the second
22813 one, add avx alternative without *.
22814 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22815 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22816 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22817
22818 2016-05-24 Jeff Law <law@redhat.com>
22819
22820 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22821 New function, extracted from...
22822 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22823 Allow simple copies and constant initializations in the SSA chain.
22824
22825 2016-05-24 Marek Polacek <polacek@redhat.com>
22826
22827 PR c/71249
22828 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22829 scope.
22830
22831 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22832
22833 PR c++/71257
22834 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22835 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22836 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22837 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22838 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22839
22840 2016-05-24 Richard Biener <rguenther@suse.de>
22841
22842 PR tree-optimization/71240
22843 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22844 has integral type.
22845
22846 2016-05-24 Richard Biener <rguenther@suse.de>
22847
22848 PR tree-optimization/71230
22849 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22850
22851 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22852
22853 * tree-vectorizer.h (vectorizable_comparison): Delete.
22854 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22855 PURE_SLP_STMT check.
22856 * tree-vect-stmts.c (vectorizable_call): Likewise.
22857 (vectorizable_simd_clone_call): Likewise.
22858 (vectorizable_conversion): Likewise.
22859 (vectorizable_assignment): Likewise.
22860 (vectorizable_shift): Likewise.
22861 (vectorizable_operation): Likewise.
22862 (vectorizable_load): Likewise.
22863 (vectorizable_condition): Likewise.
22864 (vectorizable_store): Likewise. Assert that we don't have
22865 hybrid SLP.
22866 (vectorizable_comparison): Make static. Remove redundant
22867 PURE_SLP_STMT check.
22868 (vect_transform_stmt): Assert that we always have an slp_node
22869 if PURE_SLP_STMT.
22870
22871 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22872
22873 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22874 operands[2] against 1 with comparison against CONST1_RTX.
22875 (<shift>di3_neon): Likewise.
22876 * config/arm/predicates.md (const0_operand): Replace with comparison
22877 against CONST0_RTX.
22878
22879 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22880
22881 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22882 operands[2] against 1 with comparison against CONST1_RTX.
22883 (ashrdi3): Likewise.
22884 (lshrdi3): Likewise.
22885 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22886 UINTVAL.
22887 (ashrsi3): Likewise.
22888 (lshrsi3): Likewise.
22889 (rotrsi3): Likewise.
22890 (define_split above *compareqi_eq0): Likewise.
22891 (define_split above "prologue"): Likewise.
22892 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22893 * config/arm/predicates.md (shift_operator): Likewise.
22894 (shift_nomul_operator): Likewise.
22895 (sat_shift_operator): Likewise.
22896 (thumb1_cmp_operand): Likewise.
22897 (const_neon_scalar_shift_amount_operand): Replace manual range
22898 check with IN_RANGE.
22899 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22900 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22901
22902 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22903
22904 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22905 with HOST_WIDE_INT_1.
22906 (insv): Likewise.
22907 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22908 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22909 (arm_canonicalize_comparison): Likewise.
22910 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22911 HOST_WIDE_INT_1.
22912 (thumb1_size_rtx_costs): Likewise.
22913 (vfp_const_double_index): Replace cast of 1 to unsigned
22914 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22915 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22916 HOST_WIDE_INT_1.
22917 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22918 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22919 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22920 HOST_WIDE_INT with HOST_WIDE_INT_1.
22921
22922 2016-05-24 Marek Polacek <polacek@redhat.com>
22923
22924 * tree-cfg.h (should_remove_lhs_p): New predicate.
22925 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22926 * gimplify.c (gimplify_modify_expr): Likewise.
22927 * tree-cfg.c (verify_gimple_call): Likewise.
22928 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22929 * gimple-fold.c: Include "tree-cfg.h".
22930 (gimple_fold_call): Use should_remove_lhs_p.
22931
22932 2016-05-24 Richard Biener <rguenther@suse.de>
22933
22934 PR tree-optimization/71253
22935 * cfganal.h (control_dependences): Make robust against edge
22936 and BB removal.
22937 (control_dependences::control_dependences): Remove edge_list argument.
22938 (control_dependences::get_edge): Remove.
22939 (control_dependences::get_edge_src): Add.
22940 (control_dependences::get_edge_dest): Likewise.
22941 (control_dependences::m_el): Make a vector of edge src/dest index.
22942 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22943 (control_dependences::control_dependences): Likewise.
22944 (control_dependences::~control_dependence): Likewise.
22945 (control_dependences::get_edge): Remove.
22946 (control_dependences::get_edge_src): Add.
22947 (control_dependences::get_edge_dest): Likewise.
22948 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
22949 get_edge_src.
22950 (perform_tree_ssa_dce): Adjust.
22951 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
22952 get_edge_src.
22953 (pass_loop_distribution::execute): Adjust. Do loop destroying
22954 conditional on changed.
22955
22956 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22957
22958 PR target/69857
22959 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
22960 return. Reindent transformation comment and mention the ARM state
22961 behavior.
22962
22963 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22964
22965 PR middle-end/71252
22966 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
22967 after build_and_add_sum creates new use stmt.
22968
22969 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22970
22971 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
22972 load_lanes/grouped_load classification comes first. Don't check
22973 whether the vectorization factor is a multiple of the group size
22974 for load_lanes.
22975
22976 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22977
22978 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
22979 GROUP_GAP for single-element interleaving.
22980 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
22981 variable.
22982
22983 2016-05-24 Richard Biener <rguenther@suse.de>
22984
22985 PR middle-end/70434
22986 PR c/69504
22987 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
22988 bases which are accessed with non-invariant indices.
22989 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
22990 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
22991
22992 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22993
22994 PR middle-end/71170
22995 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
22996 (add_to_ops_vec): Add stmt_to_insert.
22997 (add_repeat_to_ops_vec): Init stmt_to_insert.
22998 (insert_stmt_before_use): New.
22999 (transform_add_to_multiply): Remove mult_stmt insertion and add it
23000 to ops vector.
23001 (get_ops): Init stmt_to_insert.
23002 (maybe_optimize_range_tests): Likewise.
23003 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
23004 (rewrite_expr_tree_parallel): Likewise.
23005 (reassociate_bb): Likewise.
23006
23007 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23008
23009 PR target/71201
23010 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
23011 ISA 3.0 xxperm fusion alternative.
23012 (altivec_vperm_v8hiv16qi): Likewise.
23013 (altivec_vperm_<mode>_uns_internal): Likewise.
23014 (vperm_v8hiv4si): Likewise.
23015 (vperm_v16qiv8hi): Likewise.
23016
23017 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23018 Kelvin Nilsen <kelvin@gcc.gnu.org>
23019
23020 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23021 vpermr/xxpermr on ISA 3.0.
23022 (altivec_expand_vec_perm_le): Likewise.
23023 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23024 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23025 ISA 3.0.
23026
23027 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
23028
23029 * config/i386/i386.h (IS_STACK_MODE): Enable for
23030 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
23031 SSE_FLOAT_MODE_P macros.
23032 * config/i386/i386.c (ix86_preferred_reload_class): Use
23033 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23034 Cleanup regclass processing for CONST_DOUBLE_P.
23035 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23036 (ix86_rtx_costs): Remove redundant TARGET_80387 check
23037 with IS_STACK_MODE macro.
23038 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23039 with TARGET_SSE2.
23040 (*movdf_internal): Use IS_STACK_MODE macro.
23041 (*movsf_internal): Ditto.
23042
23043 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
23044
23045 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23046 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23047
23048 2016-05-23 Jeff Law <law@redhat.com>
23049
23050 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23051 extracted from ...
23052 (fsm_find_control_statement_thread_paths): Call it.
23053
23054 2016-05-23 Martin Jambor <mjambor@suse.cz>
23055
23056 PR ipa/71234
23057 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23058 from_global_constant if t is not NULL.
23059
23060 2016-05-23 Marek Polacek <polacek@redhat.com>
23061
23062 PR c/49859
23063 * common.opt (Wswitch-unreachable): New option.
23064 * doc/invoke.texi: Document -Wswitch-unreachable.
23065 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23066 warning.
23067
23068 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23069
23070 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23071 TMR_INDEX is non-NULL.
23072
23073 2016-05-23 Richard Biener <rguenther@suse.de>
23074
23075 PR tree-optimization/71230
23076 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23077 (try_special_add_to_ops): ... here. Always test for single-use.
23078
23079 2016-05-23 Martin Jambor <mjambor@suse.cz>
23080
23081 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23082 default block if a PHI node in the original one would be resized.
23083
23084 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23085
23086 PR tree-optimization/58135
23087 * tree-vect-slp.c: When group size is not multiple
23088 of vector size, allow splitting of store group at
23089 vector boundary.
23090
23091 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23092
23093 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23094
23095 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23096
23097 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23098 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23099 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23100 of 64x2.
23101
23102 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23103 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23104 v constraint instead of x and vinserti32x4 insn.
23105
23106 * config/i386/sse.md (i128vldq): New mode iterator.
23107 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23108 avx512dq and avx512vl alternatives.
23109
23110 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23111 constraint, use maybe_evex prefix instead of vex.
23112 (vec_dupv4sf): Use v constraint instead of x for output
23113 operand except for noavx alternative, use Yv constraint
23114 instead of x for input. Use maybe_evex prefix instead of vex.
23115 (*vec_dupv4si): Likewise.
23116 (*vec_dupv2di): Likewise.
23117
23118 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23119
23120 PR middle-end/40921
23121 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23122 (linearize_expr_tree): Call try_special_add_to_ops.
23123 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23124
23125 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23126
23127 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23128 to computed stack_usage.
23129
23130 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23131
23132 PR target/71103
23133 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23134 operand is subreg (symbol_ref) then move the symbol ref to register.
23135
23136 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23137
23138 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23139
23140 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23141
23142 PR middle-end/71179
23143 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23144 VECTOR type.
23145
23146 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23147
23148 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23149 ranges by calling get_single_symbol and tidy up. Look more closely
23150 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23151
23152 2016-05-20 Jeff Law <law@redhat.com>
23153
23154 * bitmap.c (bitmap_find_bit): Remove useless test.
23155
23156 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23157
23158 * function.c (thread_prologue_and_epilogue_insns): Commit the
23159 insertion of the epilogue.
23160
23161 2016-05-20 Martin Jambor <mjambor@suse.cz>
23162
23163 PR tree-optimization/70884
23164 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23165 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23166 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23167 of constant pool data as a reason for scalarization.
23168
23169 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23170
23171 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23172 for naked functions.
23173 (thumb1_expand_prologue): Likewise.
23174
23175 2016-05-20 Nathan Sidwell <nathan@acm.org>
23176
23177 * config/nvptx/nptx.c (nvptx_option_override): Only set
23178 flag_toplevel_reorder, if not explicitly specified. Set
23179 flag_no_common, unless explicitly specified.
23180
23181 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23182
23183 * calls.c (can_implement_as_sibling_call_p): Mark param
23184 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23185
23186 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23187
23188 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23189 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23190 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23191 constants.
23192 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23193 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23194 and CASE_CONST_ANY.
23195
23196 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23197
23198 * config/nvptx/nvptx.md (sincossf3): New pattern.
23199
23200 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23201
23202 * calls.c (maybe_complain_about_tail_call): New function.
23203 (initialize_argument_information): Call
23204 maybe_complain_about_tail_call when clearing *may_tailcall.
23205 (can_implement_as_sibling_call_p): Call
23206 maybe_complain_about_tail_call when returning false.
23207 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23208 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23209 if tail-call optimization fails.
23210 * cfgexpand.c (expand_call_stmt): Initialize
23211 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23212 * gimple-pretty-print.c (dump_gimple_call): Dump
23213 gimple_call_must_tail_p.
23214 * gimple.c (gimple_build_call_from_tree): Call
23215 gimple_call_set_must_tail with the value of
23216 CALL_EXPR_MUST_TAIL_CALL.
23217 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23218 (gimple_call_set_must_tail): New function.
23219 (gimple_call_must_tail_p): New function.
23220 * print-tree.c (print_node): Update printing of TREE_STATIC
23221 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23222 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23223 trailing comment listing applicable flags.
23224 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23225
23226 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23227
23228 * calls.c (expand_call): Move "Rest of purposes for tail call
23229 optimizations to fail" to...
23230 (can_implement_as_sibling_call_p): ...this new function, and
23231 split into multiple "if" statements.
23232
23233 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23234
23235 * cfgloop.h (expected_loop_iterations_unbounded,
23236 expected_loop_iterations): Unconstify.
23237 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23238 profile with known upper bound; return 3 when profile is absent.
23239 (expected_loop_iterations): Update.
23240
23241 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23242
23243 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23244 and get_max_loop_iterations_int.
23245
23246 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23247
23248 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23249 realistic upper bounds here.
23250
23251 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23252
23253 PR c++/71210
23254 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23255 calls if the LHS is variable length or has addressable type.
23256 If targets[0]->decl is a noreturn call with void return type and
23257 zero arguments, adjust fntype and remove lhs in that case.
23258
23259 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23260
23261 PR tree-optimization/71079
23262 PR tree-optimization/71206
23263 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23264
23265 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23266
23267 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23268 (get_vec_alignment_for_array_decl): Likewise.
23269 (get_vec_alignment_for_record_decl): Likewise.
23270 (increase_alignment::execute): Move code to find alignment to
23271 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23272 (type_align_map): New hash_map.
23273
23274 2016-05-20 Richard Guenther <rguenther@suse.de>
23275
23276 PR tree-optimization/29756
23277 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23278 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23279 * fold-const.c (operand_equal_p): Likewise.
23280 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23281 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23282 * tree-inline.c (estimate_operator_cost): Likewise.
23283 * tree-pretty-print.c (dump_generic_node): Likewise.
23284 * tree-ssa-operands.c (get_expr_operands): Likewise.
23285 * cfgexpand.c (expand_debug_expr): Likewise.
23286 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23287 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23288 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23289 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23290 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23291 (execute_update_addresses_taken): Do it.
23292
23293 2016-05-20 Richard Biener <rguenther@suse.de>
23294
23295 PR tree-optimization/71185
23296 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23297 register operations.
23298
23299 2016-05-20 Richard Biener <rguenther@suse.de>
23300
23301 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23302 gimple_seq_add_seq_without_update.
23303 (release_bb_predicate): Assert we have no operands to free.
23304 (if_convertible_loop_p_1): Calculate post dominators later.
23305 Do not free BB predicates here.
23306 (combine_blocks): Do not recompute BB predicates.
23307 (version_loop_for_if_conversion): Save BB predicates around
23308 loop versioning.
23309
23310 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23311
23312 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23313 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23314 code. Ignore sibcalls on EDGE_IGNORE edges.
23315 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23316 on edges for sibcalls that run without prologue. The rest of the
23317 function is combined from...
23318 (fix_fake_fallthrough_edge): ... this, and ...
23319 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23320 function argument, make it a local variable.
23321
23322 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23323
23324 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23325 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23326 for 32-bit mode and SEH for 64-bit.
23327 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23328 TARGET_64BIT_DEFAULT.
23329
23330 2016-05-19 Ryan Burn <contact@rnburn.com>
23331
23332 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23333 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23334
23335 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23336
23337 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23338 force pending loads from memory.
23339
23340 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23341
23342 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23343 (UNSPEC_DARN_32): New unspec constant.
23344 (UNSPEC_DARN_RAW): New unspec constant.
23345 (darn_32): New instruction.
23346 (darn_raw): New instruction.
23347 (darn): New instruction.
23348 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23349 support and documentation for this macro.
23350 (BU_P9_MISC_1): New macro definition.
23351 (BU_P9_64BIT_MISC_0): New macro definition.
23352 (BU_P9_MISC_0): New macro definition.
23353 (darn_32): New builtin definition.
23354 (darn_raw): New builtin definition.
23355 (darn): New builtin definition.
23356 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23357 RS6000_BUILTIN_0 directives to surround each occurrence of
23358 #include "rs6000-builtin.def".
23359 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23360 RS6000_BTM_64BIT flags to the returned mask, depending on
23361 configuration.
23362 (def_builtin): Correct an error in the assignments made to the
23363 debugging variable attr_string.
23364 (rs6000_expand_builtin): Add support for no-operand built-in
23365 functions.
23366 (builtin_function_type): Remove fatal_error assertion that is no
23367 longer valid.
23368 (rs6000_common_init_builtins): Add support for no-operand built-in
23369 functions.
23370 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23371 definition.
23372 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23373 definition.
23374 (RS6000_BTM_64BIT): New macro definition.
23375 * doc/extend.texi: Document __builtin_darn (void),
23376 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23377 functions.
23378
23379 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23380
23381 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23382 max_loop_iterations_int.
23383
23384 2016-05-19 Marek Polacek <polacek@redhat.com>
23385
23386 PR tree-optimization/71031
23387 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23388 condition and adjust the code a bit.
23389
23390 2016-05-19 Martin Liska <mliska@suse.cz>
23391
23392 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23393 auto_vec instead of vec.
23394
23395 2016-05-19 Martin Liska <mliska@suse.cz>
23396
23397 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23398
23399 2016-05-19 Martin Liska <mliska@suse.cz>
23400
23401 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23402
23403 2016-05-19 Martin Liska <mliska@suse.cz>
23404
23405 * ipa-pure-const.c (set_function_state): Remove an existing
23406 funct_state.
23407 (remove_node_data): Do not free it as it's released
23408 in set_function_state.
23409
23410 2016-05-19 Martin Liska <mliska@suse.cz>
23411
23412 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23413 bitmap.
23414
23415 2016-05-19 Martin Liska <mliska@suse.cz>
23416
23417 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23418
23419 2016-05-19 Martin Liska <mliska@suse.cz>
23420
23421 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23422 an auto_vec instead of re-creating it.
23423
23424 2016-05-19 Martin Liska <mliska@suse.cz>
23425
23426 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23427 auto_vec instead of vec.
23428
23429 2016-05-19 Martin Liska <mliska@suse.cz>
23430
23431 * lto-section-in.c (lto_get_section_data): Call
23432 lto_check_version with additional argument.
23433 * lto-streamer.c (lto_check_version): Add new argument.
23434 * lto-streamer.h (lto_check_version): Likewise.
23435
23436 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23437
23438 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23439 Don't add cost of inner memory when handling sign-extended loads.
23440
23441 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23442
23443 PR rtl-optimization/71148
23444 * cse.c (cse_main): Free dominance info.
23445 (rest_of_handle_cse): Don't free dominance info.
23446 (rest_of_handle_cse2): Likewise.
23447 (rest_of_handle_cse_after_global_opts): Likewise.
23448
23449 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23450
23451 PR target/71056
23452 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23453 NULL_TREE early if NEON is not available. Remove now redundant check
23454 in ARM_CHECK_BUILTIN_MODE.
23455
23456 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23457
23458 PR sanitizer/64354
23459 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23460 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23461 * doc/cpp.texi: Document new macros.
23462
23463 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23464
23465 PR tree-optimization/69848
23466 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23467 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23468
23469 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23470
23471 * function.c (thread_prologue_and_epilogue_insn): Move the
23472 "goto epilogue_done" one block later.
23473
23474 2016-05-19 Richard Biener <rguenther@suse.de>
23475
23476 PR tree-optimization/70729
23477 * passes.def: Move LIM pass before PRE. Remove no longer
23478 required copyprop and move first DCE out of the loop pipeline.
23479
23480 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23481
23482 PR driver/69265
23483 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23484 (OBJS-libcommon-target): ...here.
23485 * opts-common.c: Include spellcheck.h.
23486 (cmdline_handle_error): Build a vec of valid options and use it
23487 to suggest provide hints for misspelled arguments.
23488
23489 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23490
23491 PR c++/71100
23492 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23493 lhs if it has TREE_ADDRESSABLE type.
23494
23495 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23496
23497 PR target/71145
23498 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23499 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23500
23501 2016-05-18 Martin Jambor <mjambor@suse.cz>
23502
23503 PR ipa/69708
23504 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23505 input for NOP_EXPR pass-through functions.
23506 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23507 aggregate global constant VAR_DECLs in constant jump functions.
23508
23509 2016-05-18 Martin Jambor <mjambor@suse.cz>
23510
23511 PR ipa/69708
23512 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23513 from TREE_READONLY parameters.
23514
23515 2016-05-18 Martin Jambor <mjambor@suse.cz>
23516
23517 PR ipa/69708
23518 * cgraph.h (cgraph_indirect_call_info): New field
23519 guaranteed_unmodified.
23520 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23521 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23522 appropriate.
23523 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23524 pass the parameter value to ipa_find_agg_cst_for_param.
23525 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23526 guaranteed_unmodified, store AA results there instead of bailing out
23527 if present.
23528 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23529 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23530 (find_constructor_constant_at_offset): New function.
23531 (ipa_find_agg_cst_from_init): Likewise.
23532 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23533 static initializers of contants, report back through a new paameter
23534 from_global_constant if that was the case.
23535 (try_make_edge_direct_simple_call): Also pass parameter value to
23536 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23537 appropriate.
23538 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23539 (ipa_read_indirect_edge_info): Likewise.
23540 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23541 (ipa_load_from_parm_agg): Likewise.
23542
23543 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23544
23545 PR rtl-optimization/71150
23546 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23547 check.
23548
23549 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23550
23551 PR target/70915
23552 * config/rs6000/constraints.md (wE constraint): New constraint
23553 for a vector constant that can be loaded with XXSPLTIB.
23554 (wM constraint): New constraint for a vector constant of a 1's.
23555 (wS constraint): New constraint for a vector constant that can be
23556 loaded with XXSPLTIB and a vector sign extend instruction.
23557 * config/rs6000/predicates.md (xxspltib_constant_split): New
23558 predicates for wE/wS constraints.
23559 (xxspltib_constant_nosplit): Likewise.
23560 (easy_vector_constant): Add support for constants that can be
23561 loaded via XXSPLTIB.
23562 (all_ones_constant): New predicate for vector constant with all
23563 1's set.
23564 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23565 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23566 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23567 instruction and possibly with a sign extension.
23568 (output_vec_const_move): Add support for XXSPLTIB. If we are
23569 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23570 instead of XXLXOR/XXLORC.
23571 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23572 operations.
23573 (rs6000_legitimize_reload_address): Likewise.
23574 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23575 constants.
23576 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23577 combine VSX_M and VSX_M2 into one iterator.
23578 (VSX_M2): Likewise.
23579 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23580 (VSINT_842): Likewise.
23581 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23582 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23583 XXSPLTIB instruction.
23584 (xxspltib_<mode>_nosplit): Likewise.
23585 (xxspltib_<mode>_split): New insn to load up constants with
23586 XXSPLTIB and a sign extend instruction.
23587 (vsx_mov<mode>): Replace single move that handled all vector types
23588 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23589 moves (when -mvsx-timode is in effect) into the main vector
23590 moves. Eliminate separate moves for <VSr> <VSa>, where the
23591 preferred register class (<VSr>) is listed first, and the
23592 secondary register class (<VSa>) is listed second with a '?' to
23593 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23594 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23595 that if the register was involved in a slow operation, the
23596 clear/set operation does not wait for the slow operation to
23597 finish. Adjust the length attributes for 32-bit mode. Use
23598 rs6000_output_move_128bit and drop the use of the string
23599 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23600 spacing so that the alternatives and attributes don't generate
23601 long lines, and put things in columns, so that it is easier to
23602 match up the operands and attributes with the insn alternatives.
23603 (vsx_mov<mode>_64bit): Likewise.
23604 (vsx_mov<mode>_32bit): Likewise.
23605 (vsx_movti_64bit): Fold movti into normal vector moves.
23606 (vsx_movti_32bit): Likewise.
23607 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23608 splat instructions.
23609 (vsx_splat_v4si_internal): Likewise.
23610 (vsx_splat_v4sf_internal): Likewise.
23611 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23612 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23613 extend vector elements.
23614 (vsx_sign_extend_hi_<mode>): Likewise.
23615 (vsx_sign_extend_si_v2di): Likewise.
23616 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23617 declaration.
23618 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23619 constraints. Add trailing period to wL documentation.
23620
23621 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23622
23623 PR middle-end/71020
23624 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23625 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23626 * tree-call-cdce.c: Include tree-dfa.h.
23627 (can_guard_call_p): New function, extracted from...
23628 (can_use_internal_fn): ...here.
23629 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23630 and return void.
23631 (shrink_wrap_one_built_in_call): Likewise.
23632 (use_internal_fn): Likewise.
23633 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23634 and return void. Call replace_abnormal_ssa_names.
23635 (pass_call_cdce::execute): Check can_guard_call_p during the
23636 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23637 will always change something.
23638
23639 2016-05-18 Martin Jambor <mjambor@suse.cz>
23640
23641 PR ipa/70646
23642 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23643 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23644
23645 2016-05-18 Martin Jambor <mjambor@suse.cz>
23646
23647 PR ipa/70646
23648 * ipa-inline.h (condition): New field size.
23649 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23650 for comaprison and store it into the new condition.
23651 (evaluate_conditions_for_known_args): Use condition size to check
23652 access sizes for all but CHANGED conditions.
23653 (unmodified_parm_1): New parameter size_p, store access size into it.
23654 (unmodified_parm): Likewise.
23655 (unmodified_parm_or_parm_agg_item): Likewise.
23656 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23657 (set_cond_stmt_execution_predicate): Extract access sizes and store
23658 them to conditions.
23659 (set_switch_stmt_execution_predicate): Likewise.
23660 (will_be_nonconstant_expr_predicate): Likewise.
23661 (will_be_nonconstant_predicate): Likewise.
23662 (inline_read_section): Stream condition size.
23663 (inline_write_summary): Likewise.
23664
23665 2016-05-18 Richard Biener <rguenther@suse.de>
23666
23667 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23668 condition cost to PHI cost instead of total_cost.
23669
23670 2016-05-18 Martin Liska <mliska@suse.cz>
23671
23672 PR fortran/70856
23673 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23674 merged variables.
23675
23676 2016-05-18 Richard Biener <rguenther@suse.de>
23677
23678 * lto-streamer.h (LTO_major_version): Bump to 6.
23679
23680 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23681
23682 * function.c (make_split_prologue_seq, make_prologue_seq,
23683 make_epilogue_seq): New functions, factored out from...
23684 (thread_prologue_and_epilogue_insns): Here.
23685
23686 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23687
23688 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23689 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23690 of before. Add a comment.
23691
23692 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23693
23694 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23695 expression pointer, not pointer to the pointer.
23696
23697 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23698
23699 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23700 (avx2_pbroadcast<mode>): Add another alternative with v instead
23701 of x constraints in it, using <pbroadcast_evex_isa> isa.
23702 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23703
23704 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23705 constraint x instead of v in second alternative, add avx512bw
23706 alternative.
23707
23708 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23709 constraint x instead of v in second alternative, add avx512bw
23710 alternative.
23711
23712 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23713 constraint x instead of v in second alternative, add avx512bw
23714 alternative.
23715
23716 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23717 avx512bw alternative.
23718
23719 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23720
23721 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23722 array to 128 chars.
23723 (define_insn "*andnottf3"): Ditto.
23724 (define_insn "*<code><mode>3"/any_logic): Ditto.
23725 (define_insn "*<code>tf3"/any_logic): Ditto.
23726 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23727 operand to block AVX-512VL insn variant emit when it is not enabled.
23728
23729 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23730
23731 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23732 constraint fot SF mode.
23733
23734 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23735 Kirill Yukhin <kirill.yukhin@intel.com>
23736
23737 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23738 modifiers.
23739 (define_insn "rsqrt14<mode>"): Ditto.
23740 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23741 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23742 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23743 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23744 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23745 Ditto.
23746 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23747 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23748 * config/i386/i386.c (ix86_print_operand): Expand check for size
23749 override codes for Intel syntax.
23750
23751 2016-05-18 Richard Biener <rguenther@suse.de>
23752
23753 PR tree-optimization/71168
23754 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23755 initialization earlier.
23756
23757 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23758
23759 * config/aarch64/aarch64-simd.md
23760 (aarch64_reduc_plus_internal<mode>): Rename to...
23761 (reduc_plus_scal): ...This, and remove previous implementation.
23762
23763 2016-05-18 Richard Biener <rguenther@suse.de>
23764
23765 * passes.def: Put late dse and cd_dce in canonical order.
23766
23767 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23768
23769 * ipa-inline-transform.c (preserve_function_body_p): Look for
23770 first non-thunk clone.
23771 (save_function_body): Save into first non-thunk.
23772 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23773 up call stmt id.
23774 (lto_output_node): Inline thunks don't need body in every
23775 partition.
23776 * lto-streamer-in.c: Do not fixup thunk clones.
23777 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23778 thunks.
23779 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23780 folding suceeds.
23781
23782 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23783
23784 PR middle-end/63586
23785 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23786 (reassociate_bb): Call transform_add_to_multiply.
23787
23788 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23789
23790 * config/aarch64/aarch64.c (all_extensions): Removed unused
23791 static variable.
23792
23793 2016-05-17 Nathan Sidwell <nathan@acm.org>
23794
23795 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23796 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23797
23798 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23799
23800 PR tree-optimization/54579
23801 PR middle-end/55299
23802 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23803
23804 2016-05-17 Marek Polacek <polacek@redhat.com>
23805
23806 PR ipa/71146
23807 * tree-inline.c (expand_call_inline): Call
23808 maybe_remove_unused_call_args.
23809
23810 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23811
23812 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23813 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23814 * doc/md.texi (fmin@var{m}3): Likewise.
23815
23816 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23817
23818 * match.pd (X & C): New transformation.
23819
23820 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23821
23822 * match.pd (~X & Y): New transformation.
23823
23824 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23825
23826 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23827 information for new SSA_NAME.
23828 (simplify_conversion_using_ranges): Get range through get_range_info
23829 instead of get_value_range.
23830
23831 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23832
23833 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23834 Remove inline assembly.
23835 (vmvn_s16): Likewise.
23836 (vmvn_s32): Likewise.
23837 (vmvn_u8): Likewise.
23838 (vmvn_u16): Likewise.
23839 (vmvn_u32): Likewise.
23840 (vmvnq_s8): Likewise.
23841 (vmvnq_s16): Likewise.
23842 (vmvnq_s32): Likewise.
23843 (vmvnq_u8): Likewise.
23844 (vmvnq_u16): Likewise.
23845 (vmvnq_u32): Likewise.
23846 (vmvn_p8): Likewise.
23847 (vmvnq_p16): Likewise.
23848
23849 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23850
23851 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23852 Use builtin.
23853 (vmul_n_s16): Likewise.
23854 (vmul_n_s32): Likewise.
23855 (vmul_n_u16): Likewise.
23856 (vmul_n_u32): Likewise.
23857 (vmulq_n_f32): Likewise.
23858 (vmulq_n_f64): Likewise.
23859 (vmulq_n_s16): Likewise.
23860 (vmulq_n_s32): Likewise.
23861 (vmulq_n_u16): Likewise.
23862 (vmulq_n_u32): Likewise.
23863
23864 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23865
23866 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23867 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23868
23869 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23870
23871 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23872 to *aarch64_fma4_elt_from_dup<mode>.
23873 (*aarch64_fnma4_elt_to_128df): Rename to
23874 *aarch64_fnma4_elt_from_dup<mode>.
23875 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23876 (vfms_n_f32): Likewise.
23877 (vfms_n_f64): Likewise.
23878 (vfmsq_n_f32): Likewise.
23879 (vfmsq_n_f64): Likewise.
23880
23881 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23882
23883 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23884
23885 2016-05-17 Richard Biener <rguenther@suse.de>
23886
23887 PR tree-optimization/71132
23888 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23889 Only add control dependences for blocks in the loop.
23890 (build_rdg): Adjust.
23891 (generate_code_for_partition): Return whether loop should
23892 be destroyed and delay that.
23893 (distribute_loop): Likewise.
23894 (pass_loop_distribution::execute): Record loops to be destroyed
23895 and perform delayed destroying of loops.
23896
23897 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23898
23899 PR target/70809
23900 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23901
23902 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23903
23904 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23905
23906 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23907
23908 PR target/71114
23909 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23910 insertion point for instructions generated by validize_mem.
23911
23912 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23913
23914 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23915 in brackets.
23916
23917 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23918
23919 * config/aarch64/aarch64.c
23920 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23921 rather than a macro.
23922
23923 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23924
23925 * doc/invoke.texi (AArch64 Options): Various updates.
23926
23927 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23928
23929 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23930 into instrumentation thunks.
23931 * cif-code.def (CIF_CHKP): New.
23932
23933 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23934
23935 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23936
23937 2016-05-16 Martin Jambor <mjambor@suse.cz>
23938
23939 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23940 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23941
23942 2016-05-16 Marek Polacek <polacek@redhat.com>
23943
23944 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23945 commentary.
23946
23947 2016-05-16 Martin Jambor <mjambor@suse.cz>
23948
23949 PR hsa/70857
23950 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
23951 the outlined kernel function.
23952
23953 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
23954
23955 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
23956 (ISA_HAS_DLSA): Ditto.
23957
23958 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23959
23960 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
23961
23962 2016-05-16 Nathan Sidwell <nathan@acm.org>
23963
23964 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
23965 (nvptx_name_replacement): Restore. Add comment.
23966 (write_fn_proto, write_fn_proto_from_insn,
23967 nvptx_output_call_insn): Restore
23968 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
23969
23970 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23971
23972 * config/aarch64/aarch64.md
23973 (add<mode>3_compareC_cconly_imm): Remove use of %w.
23974 (add<mode>3_compareC_imm): Likewise.
23975 (<optab>si3_uxtw): Split into register and immediate variants.
23976 (andsi3_compare0_uxtw): Likewise.
23977 (and<mode>3_compare0): Likewise.
23978 (and<mode>3nr_compare0): Likewise.
23979 (stack_protect_test_<mode>): Don't use %x for memory operands.
23980
23981 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
23982
23983 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
23984
23985 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23986
23987 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
23988 Split integer shifts into shift_reg and bfm.
23989 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
23990 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
23991 (ror<mode>3_insn): Likewise.
23992 (<optab>si3_insn_uxtw): Likewise.
23993 (<optab><mode>3_insn): Change to rotate_imm.
23994 (extr<mode>5_insn_alt): Likewise.
23995 (extrsi5_insn_uxtw): Likewise.
23996 (extrsi5_insn_uxtw_alt): Likewise.
23997
23998 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
23999
24000 * doc/tm.texi: Regenerate.
24001 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
24002 (TARGET_INVALID_RETURN_TYPE): Remove.
24003 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
24004 TARGET_INVALID_RETURN_TYPE.
24005 * target.def (invalid_parameter_type): Remove.
24006 (invalid_return_type): Remove.
24007
24008 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24009
24010 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
24011 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
24012 calls from thunk.
24013 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24014 gimple body.
24015 (preserve_function_body_p): No need to preserve function body
24016 * cif-codes.def (CIF_THUNK): Remove.
24017 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24018
24019 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24020
24021 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24022
24023 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24024
24025 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24026 for thunks.
24027
24028 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24029
24030 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24031 (inline_small_functions): Do not look for function symbol when
24032 resetting caches.
24033
24034 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24035
24036 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24037 of inline thunks
24038
24039 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24040 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24041 Jiong Wang <jiong.wang@arm.com>
24042
24043 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24044 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24045 Define __ARM_FP16_ARGS when appropriate.
24046 * config/arm/arm.c (arm_invalid_parameter_type): Remove
24047 declaration.
24048 (arm_invalid_return_type): Likewise.
24049 (TARGET_INVALID_PARAMETER_TYPE): Remove.
24050 (TARGET_INVALID_RETURN_TYPE): Remove.
24051 (aapcs_vfp_sub_candidate): Allow HFmode.
24052 (aapcs_vfp_allocate): Add comment. Support HFmode.
24053 (aapcs_vfp_allocate_return_reg): Likewise.
24054 (struct aapcs_cp_arg_layout): Slightly reword comments for
24055 is_return_candidate and allocate_return_reg.
24056 (output_mov_vfp): Update assert.
24057 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24058 condition.
24059 (arm_invalid_parameter_type): Remove.
24060 (amr_invalid_return_type): Remove.
24061 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24062 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24063 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24064
24065 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24066
24067 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24068 * config/aarch64/arch64-protos.h
24069 (aarch64_legitimize_reload_address): Remove.
24070 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24071 Remove.
24072
24073 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24074
24075 * configure.ac: Add ACX_NONCANONICAL_HOST.
24076 * configure: Regenerate.
24077 * Makefile.in: Set host_noncanonical.
24078
24079 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24080
24081 PR target/71097
24082 * config/i386/i386.md (*movtf_internal): Before register allocation,
24083 do not allow FP constants for CM_MEDIUM memory model, allow only
24084 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24085 (*movxf_internal): Ditto.
24086 (*movdf_internal): Ditto.
24087 (*movsf_internal): Ditto.
24088
24089 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24090
24091 PR rtl-optimization/67483
24092 * combine.c (make_compound_operation): Don't call extract_left_shift
24093 with negative shift amounts.
24094
24095 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24096
24097 PR bootstrap/71071
24098 * fold-const.c (fold_checksum_tree): Allow modification
24099 of TYPE_ALIAS_SET during folding.
24100
24101 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24102 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24103 (ix86_split_to_parts): Likewise. Fix up formatting.
24104
24105 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24106
24107 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24108 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24109 printf format.
24110
24111 2016-05-13 Nathan Sidwell <nathan@acm.org>
24112
24113 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24114 (nvptx_name_replacement): Delete.
24115 (write_fn_proto, write_fn_proto_from_insn,
24116 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24117 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24118 * langhooks.c (add_builtin_funcction_common): Call
24119 targetm.mangle_decl_assembler_name.
24120
24121 * config/nvptx/nvptx.c (write_fn_proto): Handle
24122 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24123
24124 2016-05-13 Martin Liska <mliska@suse.cz>
24125
24126 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24127 and PRIu64 in printf format.
24128
24129 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24130
24131 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24132 comment.
24133
24134 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24135
24136 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24137 Change --param max-completely-peeled-times to
24138 --param max-completely-peel-times in dump file printing.
24139
24140 2016-05-13 Richard Biener <rguenther@suse.de>
24141
24142 PR tree-optimization/42587
24143 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24144 (find_bswap_or_nop_1): Likewise.
24145 (bswap_replace): Likewise.
24146
24147 2016-05-13 Martin Liska <mliska@suse.cz>
24148
24149 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24150 Initialize a variable with default value.
24151
24152 2016-05-13 Martin Liska <mliska@suse.cz>
24153
24154 * doc/invoke.texi: Enhance explanation of error recovery
24155 of sanitizers.
24156
24157 2016-05-13 Martin Liska <mliska@suse.cz>
24158
24159 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24160 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24161 (iv_inv_expr_ent *).
24162 (struct iv_inv_expr_ent): Comment struct fields.
24163 (sort_iv_inv_expr_ent): New function.
24164 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24165 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24166 a hash_map between iv_inv_expr_ent and number of usages.
24167 (niter_for_exit): Fix coding style.
24168 (tree_ssa_iv_optimize_init): Use renamed variable.
24169 (determine_base_object): Fix coding style.
24170 (alloc_iv): Likewise.
24171 (find_interesting_uses_outside): Likewise.
24172 (add_candidate_1): Likewise.
24173 (add_standard_iv_candidates): Likewise.
24174 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24175 (prepare_decl_rtl): Fix coding style.
24176 (get_address_cost): Likewise.
24177 (get_shiftadd_cost): Likewise.
24178 (force_expr_to_var_cost): Likewise.
24179 (compare_aff_trees): Likewise.
24180 (get_expr_id): Restructure the function.
24181 (get_loop_invariant_expr_id): Renamed to
24182 get_loop_invariant_expr.
24183 (get_computation_cost_at): Replace usage of inv_expr_id with
24184 inv_expr.
24185 (get_computation_cost): Likewise.
24186 (determine_group_iv_cost_generic): Likewise.
24187 (determine_group_iv_cost_address): Likewise.
24188 (iv_period): Fix coding style.
24189 (iv_elimination_compare_lt): Likewise.
24190 (may_eliminate_iv): Likewise.
24191 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24192 inv_expr.
24193 (determine_group_iv_costs): Dump invariant expressions.
24194 (iv_ca_recount_cost): Use the newly added hash_map.
24195 (iv_ca_set_remove_invariants): Fix coding style.
24196 (iv_ca_set_add_invariants): Fix coding style.
24197 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24198 invariants.
24199 (iv_ca_set_cp): Likewise.
24200 (iv_ca_new): Initialize the newly added hash_map and remove
24201 initialization of fields.
24202 (iv_ca_free): Delete the hash_map.
24203 (iv_ca_dump): Dump invariant expressions.
24204 (iv_ca_extend): Fix coding style.
24205 (try_add_cand_for): Likewise.
24206 (create_new_ivs): Dump information about # of avg iterations and
24207 # of used invariant expressions.
24208 (rewrite_use_compare): Fix coding style.
24209 (free_loop_data): Set default value for max_inv_expr_id.
24210
24211 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24212
24213 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24214 returned value cse_cfg_altered computation.
24215 (rest_of_handle_cse2): Likewise.
24216 (rest_of_handle_cse_after_global_opts): Likewise.
24217
24218 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24219
24220 PR target/53440
24221 * config/arm/arm.c (arm32_output_mi_thunk): New.
24222 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24223 to split Thumb1 vs TARGET_32BIT functionality.
24224 (arm_thumb1_mi_thunk): New.
24225
24226 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24227
24228 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24229 to true.
24230
24231 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24232
24233 PR target/71080
24234 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24235
24236 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24237
24238 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24239 (expand_builtin_trap): Emit a regular call.
24240 (set_builtin_user_assembler_name): Remove obsolete cases.
24241 * dse.c (scan_insn): Adjust.
24242 * except.c: Include calls.h.
24243 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24244 emit a regular call to setjmp.
24245 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24246 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24247 (emit_block_move_via_libcall): Delete.
24248 (block_move_fn): Delete.
24249 (init_block_move_fn): Likewise.
24250 (emit_block_move_libcall_fn): Likewise.
24251 (emit_block_op_via_libcall): New function.
24252 (set_storage_via_libcall): Tidy up and use memset builtin.
24253 (block_clear_fn): Delete.
24254 (init_block_clear_fn): Likewise.
24255 (clear_storage_libcall_fn): Likewise.
24256 (expand_assignment): Call emit_block_move_via_libcall.
24257 Do not include gt-expr.h.
24258 * expr.h (emit_block_op_via_libcall): Declare.
24259 (emit_block_copy_via_libcall): New inline function.
24260 (emit_block_move_via_libcall): Likewise.
24261 (emit_block_comp_via_libcall): Likewise.
24262 (block_clear_fn): Delete.
24263 (init_block_move_fn): Likewise.
24264 (init_block_clear_fn): Likewise.
24265 (emit_block_move_via_libcall): Likewise.
24266 (set_storage_via_libcall): Add default parameter value.
24267 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24268 (abort_libfunc): Delete.
24269 (memcpy_libfunc): Likewise.
24270 (memmove_libfunc): Likewise.
24271 (memcmp_libfunc): Likewise.
24272 (memset_libfunc): Likewise.
24273 (setbits_libfunc): Likewise.
24274 (setjmp_libfunc): Likewise.
24275 (longjmp_libfunc): Likewise.
24276 (profile_function_entry_libfunc): Likewise.
24277 (profile_function_exit_libfunc): Likewise.
24278 (gcov_flush_libfunc): Likewise.
24279 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24280 and DECL_VISIBILITY on the declaration.
24281 (init_optabs): Do not initialize obsolete libfuncs.
24282 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24283 * tree-core.h (ECF_RET1): Define.
24284 (ECF_TM_PURE): Adjust.
24285 (ECF_TM_BUILTIN): Likewise.
24286 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24287 (build_common_builtin_nodes): Initialize abort builtin.
24288 Add ECF_RET1 on memcpy, memmove and memset builtins.
24289 Pass final flags for alloca and alloca_with_align builtins.
24290 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24291 obsolete builtins.
24292 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24293 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24294 set_storage_via_libcall and call emit_block_copy_via_libcall.
24295
24296 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24297
24298 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24299 DImode before it is passed to ix86_output_call_operand.
24300 (*call_value_got_x32): Ditto for operand 1.
24301
24302 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24303
24304 PR rtl-optimization/70904
24305 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24306 reload for wide mode.
24307
24308 2016-05-12 Marek Polacek <polacek@redhat.com>
24309
24310 PR c/70756
24311 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24312 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24313 * langhooks.h (incomplete_type_error): Likewise.
24314 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24315 parameter, pass it down to incomplete_type_error.
24316 * tree.h (size_in_bytes): New inline overload.
24317 (size_in_bytes_loc): Renamed from size_in_bytes.
24318
24319 2016-05-12 Richard Biener <rguenther@suse.de>
24320
24321 PR tree-optimization/71059
24322 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24323 nary before looking up or entering the expression into the VN
24324 hashes.
24325 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24326 Make sure to re-use NARYs without result as inserted by
24327 phi-translation.
24328
24329 2016-05-12 Richard Biener <rguenther@suse.de>
24330
24331 PR tree-optimization/71062
24332 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24333 field.
24334 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24335 vars_contains_restrict if the var is a restrict tag.
24336 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24337 do not disambiguate pointers against it.
24338 (dump_points_to_solution): Re-structure and adjust for new
24339 vars_contains_restrict flag.
24340 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24341
24342 2016-05-12 Martin Liska <mliska@suse.cz>
24343
24344 * doc/invoke.texi: Explain connection between
24345 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24346
24347 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24348
24349 PR tree-optimization/71006
24350 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24351 consider COND_EXPR as a mask producer.
24352
24353 2016-05-12 Marek Polacek <polacek@redhat.com>
24354
24355 PR driver/71063
24356 * opts.c (common_handle_option): Detect missing argument for --help^.
24357
24358 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24359
24360 PR target/70830
24361 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24362 when popping the PC and within an interrupt handler routine.
24363 Add missing tab to output of "ldmfd".
24364 (output_return_instruction): Output LDMFD with SP update rather
24365 than POP when returning from interrupt handler.
24366
24367 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24368
24369 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24370 TARGET_64BIT && TARGET_AVX512DQ.
24371 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24372 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24373 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24374 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24375 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24376 (*vec_extractv4si_zext): Add avx512dq alternative.
24377 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24378 use v instead of x constraint in other alternatives where possible.
24379
24380 * config/i386/sse.md (sse2_loadld): Use v instead of x
24381 constraint in alternatives 0,1,4.
24382
24383 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24384 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24385 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24386
24387 PR target/71019
24388 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24389 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24390 is not emitted unless TARGET_AVX512BW.
24391 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24392 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24393 for the result operand.
24394
24395 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24396 constraint instead of x in avx alternatives. Use maybe_evex instead
24397 of vex prefix.
24398
24399 * config/i386/constraints.md (Yv): New constraint.
24400 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24401 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24402 * config/i386/i386.md (avx512fvecmode): New mode attr.
24403 (*pushtf): Use v constraint instead of x.
24404 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24405 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24406 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24407 (*absnegtf2_sse): Likewise.
24408 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24409 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24410 avx512f alternatives.
24411 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24412
24413 2016-05-12 Richard Biener <rguenther@suse.de>
24414
24415 PR tree-optimization/71060
24416 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24417 require exact match of DR_BASE_OBJECT but only matching address and
24418 type.
24419
24420 2016-05-12 Richard Biener <rguenther@suse.de>
24421
24422 PR tree-optimization/70986
24423 * cfganal.c: Include cfgloop.h.
24424 (dfs_find_deadend): Prefer to take edges exiting loops.
24425
24426 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24427
24428 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24429 compile and run time.
24430
24431 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24432
24433 PR c/43651
24434 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24435
24436 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24437
24438 * config/i386/i386.c (legitimize_pic_address): Use
24439 copy_to_suggested_reg instead of gen_movsi.
24440
24441 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24442
24443 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24444 the code into quad_address_p and call it to share code with
24445 vsx_quad_dform_memory_operand.
24446 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24447 d-form support.
24448 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24449 bit instead of being a separate word. Split -mpower9-dform into
24450 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24451 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24452 for the register class supporting 128-bit quad word memory offsets.
24453 (mode_supports_vsx_dform_quad): Helper function to return if the
24454 register class uses quad word memory offsets.
24455 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24456 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24457 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24458 instructions are enabled, set up the appropriate addr_masks for
24459 128-bit types.
24460 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24461 -mpower9-dform-scalar, instead of -mpower9-dform.
24462 (rs6000_option_override_internal): Split -mpower9-dform into two
24463 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24464 -mpower9-dform switch sets or clears both. If we are not using
24465 the LRA register allocator, do not enable -mpower9-dform-vector by
24466 default. If we are using LRA, enable -mpower9-dform-vector and
24467 -mvsx-timode if it is appropriate. Issue a warning if either
24468 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24469 enabling LRA.
24470 (quad_address_offset_p): New helper function to return if the
24471 offset is legal for quad word memory instructions.
24472 (quad_address_p): New function to determin if GPR or vector
24473 register quad word memory addresses are legal.
24474 (mem_operand_gpr): Validate quad word address offsets.
24475 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24476 d-form (register + offset) instructions.
24477 (offsettable_ok_by_alignment): Likewise.
24478 (rs6000_legitimate_offset_address_p): Likewise.
24479 (legitimate_lo_sum_address_p): Likewise.
24480 (rs6000_legitimize_address): Likewise.
24481 (rs6000_legitimize_reload_address): Add more debug statements for
24482 -mdebug=addr.
24483 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24484 d-form instructions.
24485 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24486 d-form instructions. Distinguish different cases in debug
24487 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24488 d-form instructions.
24489 (rs6000_preferred_reload_class): Likewise.
24490 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24491 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24492 of the ISA 2.06 indexed memory instructions.
24493 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24494 use them to save/restore the saved vector registers instead of
24495 using Altivec instructions.
24496 (rs6000_emit_epilogue): Likewise.
24497 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24498 (rs6000_opt_masks): Split -mpower9-dform into
24499 -mpower9-dform-scalar and -mpower9-dform-vector.
24500 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24501 was not selected.
24502 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24503 ISA 3.0 vector indexed memory instructions, and fold the code into
24504 the normal mov<mode> patterns.
24505 (p9_vecstore_<mode>): Likewise.
24506 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24507 instructions.
24508 (vsx_movti_64bit): Likewise.
24509 (vsx_movti_32bit): Likewise.
24510 * config/rs6000/constraints.md (wO constraint): New constraint for
24511 ISA 3.0 vector d-form support.
24512 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24513 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24514 include -mpower9-dform-vector until we switch over to LRA.
24515 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24516 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24517 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24518 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24519 for -mpower9-dform and -mlra.
24520 * doc/md.texi (wO constraint): Document wO constraint.
24521
24522 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24523
24524 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24525 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24526 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24527 Move handling of non-insn arguments inline into the sole user:
24528 (output_trans_func): ...here.
24529 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24530 in emitted function prototype.
24531 (output_internal_insn_latency_func): Ditto. Simplify.
24532 (output_internal_maximal_insn_latency_func): Ditto. Delete
24533 always-unused argument.
24534 (output_insn_latency_func): Ditto.
24535 (output_maximal_insn_latency_func): Ditto.
24536
24537 2016-05-11 Richard Biener <rguenther@suse.de>
24538
24539 PR tree-optimization/71055
24540 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24541 sth with precision not equal to access size verify we don't chop
24542 off bits.
24543
24544 2016-05-11 Richard Biener <rguenther@suse.de>
24545
24546 PR debug/71057
24547 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24548 (dwarf2out_finish): Move retry_incomplete_types call ...
24549 (dwarf2out_early_finish): ... here.
24550
24551 2016-05-11 Richard Biener <rguenther@suse.de>
24552
24553 PR middle-end/71002
24554 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24555 if the langhook insists on it.
24556 * fold-const.c (make_bit_field_ref): Add arg for the original
24557 reference and preserve its alias-set.
24558 (decode_field_reference): Take exp by reference and adjust it
24559 to the original memory reference.
24560 (optimize_bit_field_compare): Adjust callers.
24561 (fold_truth_andor_1): Likewise.
24562 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24563
24564 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24565
24566 PR middle-end/70807
24567 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24568 * cfgrtl.c (delete_insn_and_edges): Likewise.
24569 * config/i386/i386.c (convert_scalars_to_vector): Remove
24570 redundant code.
24571 * cse.c (cse_insn): Compute cse_cfg_altered.
24572 (delete_trivially_dead_insns): Likewise.
24573 (cse_cc_succs): Likewise.
24574 (rest_of_handle_cse): Free dominance info if required.
24575 (rest_of_handle_cse2): Likewise.
24576 (rest_of_handle_cse_after_global_opts): Likewise.
24577
24578 2016-05-11 Alan Modra <amodra@gmail.com>
24579
24580 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24581 abi_v4_pass_in_fpr): New functions.
24582 (rs6000_function_arg_boundary): Exclude complex IBM long double
24583 from 64-bit alignment when ABI_V4.
24584 (rs6000_function_arg, rs6000_function_arg_advance_1,
24585 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24586
24587 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24588
24589 PR rtl-optimization/71028
24590 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24591 jump with just a return in the fallthrough block if the branch
24592 block contains just a return as well.
24593
24594 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24595
24596 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24597 * match.pd ((X & Y) ^ Y): ... this.
24598 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24599 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24600
24601 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24602
24603 * read-md.c (require_char_ws): New function.
24604 (read_string): Simplify using require_char_ws.
24605 (handle_constants): Likewise.
24606 (handle_enum): Likewise.
24607 (handle_file): Likewise.
24608 * read-md.h (require_char_ws): New declaration.
24609 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24610 (read_mapping): Likewise.
24611 (read_rtx_code): Likewise.
24612 (read_nested_rtx): Likewise.
24613
24614 2016-05-10 James Norris <jnorris@codesourcery.com>
24615
24616 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24617 if offloading is enabled and -fopenacc or -fopenmp is specified.
24618 (CRTOFFLOADEND): Likewise.
24619 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24620 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24621
24622 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24623
24624 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24625 gotoff_operand code paths. Use copy_to_suggested_regs and
24626 expand_simple_binop where appropriate. Cleanup.
24627
24628 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24629
24630 PR target/70799
24631 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24632 integer constants.
24633 (dimode_scalar_chain::vector_const_cost): New.
24634 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24635 (dimode_scalar_chain::convert_op): Likewise.
24636 (dimode_scalar_chain::convert_insn): Likewise.
24637
24638 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24639
24640 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24641 unary operation, not a binary one.
24642
24643 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24644
24645 PR middle-end/70877
24646 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24647 calls with type casted fndecl.
24648
24649 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24650
24651 PR tree-optimization/70786
24652 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24653 * calls.c (initialize_argument_information): Bind bounds
24654 with corresponding args passed by reference.
24655
24656 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24657
24658 PR target/70927
24659 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24660 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24661 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24662 accordingly.
24663
24664 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24665
24666 PR target/70963
24667 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24668 code for a zero scale factor.
24669 (vsx_xvcvdpuxds_scale): Likewise.
24670
24671 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24672
24673 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24674 if show_ruler_p was set on the context.
24675 (layout::show_ruler): New method.
24676 * diagnostic.h (struct diagnostic_context): Add field
24677 "show_ruler_p".
24678
24679 2016-05-10 Richard Biener <rguenther@suse.de>
24680
24681 PR tree-optimization/71039
24682 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24683 (chk_uses): New function.
24684 (propagate_with_phi): Verify we can safely replicate the lhs of an
24685 aggregate assignment on all incoming edges.
24686
24687 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24688
24689 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24690 Forward declare.
24691 (rx_atomic_sequence): New class.
24692 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24693 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24694 non-inline.
24695 (rx_atomic_sequence::rx_atomic_sequence,
24696 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24697 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24698 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24699 CTRLREG_INTB): New constants.
24700 (FETCHOP): New code iterator.
24701 (fethcop_name, fetchop_name2): New iterator code attributes.
24702 (QIHI): New mode iterator.
24703 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24704 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24705 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24706
24707 2016-05-10 Martin Liska <mliska@suse.cz>
24708
24709 * tree-inline.c (remap_dependence_clique): Do not remap
24710 debugging statements.
24711
24712 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24713
24714 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24715 ("*fixuns_truncdfdi2_z13")
24716 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24717 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24718 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24719
24720 2016-05-10 Richard Biener <rguenther@suse.de>
24721
24722 PR tree-optimization/70497
24723 PR tree-optimization/28367
24724 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24725 split out from ...
24726 (visit_reference_op_load): ... here.
24727 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24728 with simplified BIT_FIELD_REFs.
24729 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24730 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24731 correctly.
24732
24733 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24734
24735 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24736 documentation comment. For BLOCK nodes, add a
24737 DW_AT_abstract_origin attribute that points to the DIE generated
24738 for the origin BLOCK.
24739 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24740 blocks from inlined functions.
24741
24742 2016-05-10 Alan Modra <amodra@gmail.com>
24743
24744 PR target/70947
24745 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24746 regrename modifying insns saving lr before __morestack call.
24747 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24748 insns restoring lr after __morestack call.
24749
24750 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24751
24752 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24753 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24754 expanders.
24755 * config/i386/sse.md (vec_interleave_high<mode>,
24756 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24757 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24758
24759 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24760
24761 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24762 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24763 parallel reassociation for power8 and forward.
24764
24765 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24766
24767 * config/i386/i386.md (absneg splitters with general regs): Use
24768 general_reg_operand predicate.
24769 (btsq peephole2): Use x86_64_immediate_operand to check if new
24770 value is suitable for immediate operand. Generate emitted insn
24771 using RTL expressions.
24772 (btcq peephole2): Ditto.
24773 (btrq peephole2): Ditto. Generate correct immediate operand
24774 for AND masking.
24775
24776 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24777
24778 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24779 bitpos.
24780
24781 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24782
24783 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24784 pointer dereference.
24785
24786 2016-05-09 Richard Biener <rguenther@suse.de>
24787
24788 PR tree-optimization/70985
24789 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24790 op0 isn't a gimple register.
24791
24792 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24793
24794 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24795 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24796 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24797 (i6400_fpu_mult): New cpu units.
24798 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24799 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24800 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24801 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24802 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24803 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24804 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24805 (i6400_msa_long_float4, i6400_msa_long_float5)
24806 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24807 (i6400_msa_fdiv_sf): New reservations.
24808 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24809 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24810 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24811 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24812 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24813 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24814 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24815 (msa_short_store4, msa_long_load, msa_short_store)
24816 (msa_long_logic, msa_long_float2, msa_long_float4)
24817 (msa_long_float5, msa_long_float8, msa_long_mult)
24818 (msa_long_fdiv, msa_long_div): New reservations.
24819
24820 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24821 Sameera Deshpande <sameera.deshpande@imgtec.com>
24822 Matthew Fortune <matthew.fortune@imgtec.com>
24823 Graham Stott <graham.stott@imgtec.com>
24824 Chao-ying Fu <chao-ying.fu@imgtec.com>
24825
24826 * config.gcc: Add MSA header file for mips*-*-* target.
24827 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24828 (Ubv8i, Urv8): New constraints.
24829 * config/mips/mips-ftypes.def: Add function types for MSA
24830 builtins.
24831 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24832 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24833 * config/mips/mips-msa.md: New file.
24834 * config/mips/mips-protos.h
24835 (mips_split_128bit_const_insns): New prototype.
24836 (mips_msa_idiv_insns): Likewise.
24837 (mips_split_128bit_move): Likewise.
24838 (mips_split_128bit_move_p): Likewise.
24839 (mips_split_msa_copy_d): Likewise.
24840 (mips_split_msa_insert_d): Likewise.
24841 (mips_split_msa_fill_d): Likewise.
24842 (mips_expand_msa_branch): Likewise.
24843 (mips_const_vector_same_val_p): Likewise.
24844 (mips_const_vector_same_bytes_p): Likewise.
24845 (mips_const_vector_same_int_p): Likewise.
24846 (mips_const_vector_shuffle_set_p): Likewise.
24847 (mips_const_vector_bitimm_set_p): Likewise.
24848 (mips_const_vector_bitimm_clr_p): Likewise.
24849 (mips_msa_vec_parallel_const_half): Likewise.
24850 (mips_msa_output_division): Likewise.
24851 (mips_ldst_scaled_shift): Likewise.
24852 (mips_expand_vec_cond_expr): Likewise.
24853 * config/mips/mips.c (enum mips_builtin_type): Add
24854 MIPS_BUILTIN_MSA_TEST_BRANCH.
24855 (mips_gen_const_int_vector_shuffle): New prototype.
24856 (mips_const_vector_bitimm_set_p): New function.
24857 (mips_const_vector_bitimm_clr_p): Likewise.
24858 (mips_const_vector_same_val_p): Likewise.
24859 (mips_const_vector_same_bytes_p): Likewise.
24860 (mips_const_vector_same_int_p): Likewise.
24861 (mips_const_vector_shuffle_set_p): Likewise.
24862 (mips_symbol_insns): Forbid loading symbols via immediate for
24863 MSA.
24864 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24865 stores.
24866 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24867 MSA.
24868 (mips_lx_address_p): Add support load indexed address for MSA.
24869 (mips_address_insns): Add calculation of instructions needed for
24870 stores and loads for MSA.
24871 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24872 CONST_VECTOR for MSA and let it fall through.
24873 (mips_ldst_scaled_shift): New function.
24874 (mips_subword_at_byte): Likewise.
24875 (mips_msa_idiv_insns): Likewise.
24876 (mips_legitimize_move): Validate MSA moves.
24877 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24878 calculation of costs for MSA division.
24879 (mips_split_move_p): Check if MSA moves need splitting.
24880 (mips_split_move): Split MSA moves if necessary.
24881 (mips_split_128bit_move_p): New function.
24882 (mips_split_128bit_move): Likewise.
24883 (mips_split_msa_copy_d): Likewise.
24884 (mips_split_msa_insert_d): Likewise.
24885 (mips_split_msa_fill_d): Likewise.
24886 (mips_output_move): Handle MSA moves.
24887 (mips_expand_msa_branch): New function.
24888 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24889 Reinstate 'y' modifier.
24890 (mips_file_start): Add MSA .gnu_attribute.
24891 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24892 FPRs.
24893 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24894 (mips_class_max_nregs): Add register size for MSA supported mode.
24895 (mips_cannot_change_mode_class): Allow conversion between MSA
24896 vector modes and TImode.
24897 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24898 instruction.
24899 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24900 (mips_preferred_simd_mode): Add preffered modes for MSA.
24901 (mips_vector_mode_supported_p): Add MSA supported modes.
24902 (mips_autovectorize_vector_sizes): New function.
24903 (mips_msa_output_division): Likewise.
24904 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24905 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24906 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24907 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24908 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24909 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24910 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24911 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24912 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24913 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24914 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24915 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24916 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24917 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24918 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24919 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24920 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24921 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24922 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24923 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24924 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24925 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24926 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24927 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24928 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24929 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24930 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24931 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24932 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24933 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24934 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24935 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24936 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24937 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24938 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24939 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24940 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24941 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24942 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24943 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24944 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24945 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24946 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24947 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
24948 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24949 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24950 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24951 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24952 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
24953 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
24954 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
24955 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
24956 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
24957 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
24958 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
24959 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
24960 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
24961 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
24962 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
24963 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
24964 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
24965 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
24966 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
24967 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
24968 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
24969 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
24970 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
24971 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
24972 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
24973 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
24974 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
24975 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
24976 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
24977 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
24978 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
24979 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
24980 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
24981 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
24982 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
24983 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
24984 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
24985 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
24986 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
24987 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
24988 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
24989 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
24990 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
24991 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
24992 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
24993 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
24994 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
24995 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
24996 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
24997 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
24998 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
24999 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
25000 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
25001 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
25002 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
25003 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
25004 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
25005 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
25006 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
25007 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
25008 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
25009 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
25010 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
25011 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
25012 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
25013 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25014 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25015 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25016 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25017 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25018 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25019 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25020 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25021 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25022 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25023 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25024 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25025 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25026 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25027 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25028 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25029 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25030 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25031 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25032 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25033 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25034 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25035 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25036 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25037 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25038 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25039 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25040 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25041 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25042 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25043 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25044 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25045 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25046 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25047 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25048 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25049 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25050 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25051 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25052 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25053 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25054 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25055 move_v builtins.
25056 (mips_get_builtin_decl_index): New array.
25057 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25058 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25059 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25060 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25061 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25062 array.
25063 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25064 hook.
25065 (mips_expand_builtin_insn): Prepare operands for
25066 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25067 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25068 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25069 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25070 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25071 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25072 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25073 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25074 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25075 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25076 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25077 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25078 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25079 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25080 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25081 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25082 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25083 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25084 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25085 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25086 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25087 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25088 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25089 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25090 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25091 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25092 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25093 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25094 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25095 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25096 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25097 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25098 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25099 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25100 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25101 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25102 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25103 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25104 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25105 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25106 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25107 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25108 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25109 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25110 These are set implicitly and an error is reported if overridden.
25111 (mips_expand_builtin_msa_test_branch): New function.
25112 (mips_expand_msa_shuffle): Likewise.
25113 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25114 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25115 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25116 (mips_expand_vec_unpack): Add support for MSA.
25117 (mips_expand_vector_init): Likewise.
25118 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25119 instead of const0_rtx.
25120 (mips_msa_vec_parallel_const_half): New function.
25121 (mips_gen_const_int_vector): Likewise.
25122 (mips_gen_const_int_vector_shuffle): Likewise.
25123 (mips_expand_msa_cmp): Likewise.
25124 (mips_expand_vec_cond_expr): Likewise.
25125 * config/mips/mips.h
25126 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25127 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25128 specified.
25129 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25130 (ISA_HAS_MSA): New macro.
25131 (UNITS_PER_MSA_REG): Likewise.
25132 (BITS_PER_MSA_REG): Likewise.
25133 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25134 (MSA_REG_FIRST): New macro.
25135 (MSA_REG_LAST): Likewise.
25136 (MSA_REG_NUM): Likewise.
25137 (MSA_REG_P): Likewise.
25138 (MSA_REG_RTX_P): Likewise.
25139 (MSA_SUPPORTED_MODE_P): Likewise.
25140 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25141 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25142 * config/mips/mips.md: Include mips-msa.md.
25143 (alu_type): Add simd_add.
25144 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25145 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25146 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25147 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25148 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25149 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25150 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25151 simd_move, simd_load, simd_store. Choose "multi" for moves
25152 for "qword_mode".
25153 (qword_mode): New attribute.
25154 (insn_count): Add instruction count for quad moves.
25155 Increase the count for MIPS SIMD division.
25156 (UNITMODE): Add UNITMODEs for vector types.
25157 (addsub): New code iterator.
25158 * config/mips/mips.opt (mmsa): New option.
25159 * config/mips/msa.h: New file.
25160 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25161 specified.
25162 * config/mips/mti-linux.h: Likewise.
25163 * config/mips/predicates.md
25164 (const_msa_branch_operand): New constraint.
25165 (const_uimm3_operand): Likewise.
25166 (const_uimm4_operand): Likewise.
25167 (const_uimm5_operand): Likewise.
25168 (const_uimm8_operand): Likewise.
25169 (const_imm5_operand): Likewise.
25170 (aq10b_operand): Likewise.
25171 (aq10h_operand): Likewise.
25172 (aq10w_operand): Likewise.
25173 (aq10d_operand): Likewise.
25174 (const_m1_operand): Likewise.
25175 (reg_or_m1_operand): Likewise.
25176 (const_exp_2_operand): Likewise.
25177 (const_exp_4_operand): Likewise.
25178 (const_exp_8_operand): Likewise.
25179 (const_exp_16_operand): Likewise.
25180 (const_vector_same_val_operand): Likewise.
25181 (const_vector_same_simm5_operand): Likewise.
25182 (const_vector_same_uimm5_operand): Likewise.
25183 (const_vector_same_uimm6_operand): Likewise.
25184 (const_vector_same_uimm8_operand): Likewise.
25185 (par_const_vector_shf_set_operand): Likewise.
25186 (reg_or_vector_same_val_operand): Likewise.
25187 (reg_or_vector_same_simm5_operand): Likewise.
25188 (reg_or_vector_same_uimm6_operand): Likewise.
25189 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25190 section.
25191 * doc/invoke.texi (-mmsa): Document new option.
25192
25193 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25194
25195 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25196 * configure: Regenerate.
25197 * config.in: Regenerate.
25198 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25199 on -fvtable-verify.
25200 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25201 (ENDFILE_VTV_SPEC): Define.
25202
25203 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25204
25205 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25206 registers in all interrupt handlers if necessary.
25207 (rl78_option_override): Add warning.
25208 (MUST_SAVE_MDUC_REGISTERS): New macro.
25209 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25210 * config/rl78/rl78.c (check_mduc_usage): New function.
25211 (mduc_regs): New structure to hold MDUC register data.
25212 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25213 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25214 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25215 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25216 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25217 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25218
25219 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25220
25221 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25222 (tree-ssa-loop-niter.h): Ditto.
25223 (idx_within_array_bound, ref_within_array_bound): New functions.
25224 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25225 Factor out check on writable base object to ...
25226 (base_object_writable): ... here.
25227
25228 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25229
25230 * config/arm/arm.md (probe_stack): Add modes to set source
25231 and destination.
25232
25233 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25234
25235 * regrename.c (base_reg_class_for_rename): New static function.
25236 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25237
25238 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25239
25240 * cgraph.c (thunk_adjust): Export.
25241 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25242 * cgraphunit.c (thunk_adjust): Export.
25243 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25244 thunks.
25245 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25246 inlinable.
25247 * tree-inline.c (expand_call_inline): Expand thunks inline.
25248
25249 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25250
25251 PR target/70998
25252 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25253 (*sse2_vd_cvtss2sd): Ditto.
25254 * config/i386/i386.md
25255 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25256 Generate *sse2_vd_cvtsd2ss pattern.
25257 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25258 Generate *sse2_vd_cvtss2sd pattern.
25259
25260 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25261
25262 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25263 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25264 users.
25265
25266 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25267
25268 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25269 * config/sh/sh.c: Define and declare variables on first use throughout
25270 the file.
25271 (current_function_interrupt): Change to bool type.
25272 (frame_insn): Rename to emit_frame_insn and update users.
25273 (push_regs): Use bool for 'interrupt_handler' argument.
25274 (save_schedule_s): Remove.
25275 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25276 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25277 targetm.asm_out.unaligned_op.di.
25278 (gen_far_branch): Remove redundant forward declaration.
25279 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25280 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25281 (sh_set_return_address, sh_function_ok_for_sibcall,
25282 scavenge_reg): Update comments.
25283 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25284 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25285 (sh_attr_renesas_p): Remove unnecessary parentheses.
25286 (branch_dest): Simplify.
25287 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25288 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25289 (CUMULATIVE_ARGS): Change macro to typedef.
25290 (current_function_interrupt): Change to bool type.
25291 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25292 Surround with __cplusplus ifdef.
25293 (sh_compare_op0, sh_compare_op1): Remove.
25294 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25295
25296 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25297
25298 * config/arm/arm.md (arch): Add neon.
25299 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25300 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25301 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25302 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25303 attributes for alt renumbering. Mark alt 3 as non-predicable.
25304 (thumb2_movdf_vfp): Likewise.
25305
25306 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25307
25308 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25309 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25310 (*andqi_1): Add preferred_for_speed attribute to disparage
25311 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25312 (*<code>qi_1): Ditto.
25313 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25314 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25315 (*ashlqi3_1): Ditto.
25316 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25317 Add preferred_for_size attribute to disparage alternative 0 and
25318 preferred_for_speed attribute to disparage alternative 1 for
25319 TARGET_PARTIAL_REG_STALL targets.
25320
25321 2016-05-07 Tom de Vries <tom@codesourcery.com>
25322
25323 PR tree-optimization/70956
25324 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25325 def.
25326
25327 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25328
25329 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25330 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25331 * config/sh/sh.md (branch_zero): Remove define_attr.
25332 (define_delay): Disable delay slot if branch distance is one insn.
25333
25334 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25335
25336 * config/i386/i386.md (LEAMODE): New mode attribute.
25337 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25338 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25339 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25340 operand 2 predicate.
25341 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25342 (*lea<mode>_general_3): Ditto.
25343 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25344
25345 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25346
25347 * genmddump.c (main): Convert argv from char ** to const char **.
25348
25349 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25350
25351 * coretypes.h (OVERRIDE): New macro.
25352 (FINAL): New macro.
25353
25354 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25355
25356 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25357 allow coalescing if the types are compatible.
25358
25359 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25360
25361 * pass_manager.h (pass_manager::register_pass_name): New method.
25362 (pass_manager::get_pass_by_name): New method.
25363 (pass_manager::create_pass_tab): New method.
25364 (pass_manager::m_name_to_pass_map): New field.
25365 * passes.c (name_to_pass_map): Delete global in favor of field
25366 "m_name_to_pass_map" of pass_manager.
25367 (register_pass_name): Rename from a function to...
25368 (pass_manager::register_pass_name): ...this method, updating
25369 for renaming of global "name_to_pass_map" to field
25370 "m_name_to_pass_map".
25371 (create_pass_tab): Rename from a function to...
25372 (pass_manager::create_pass_tab): ...this method, updating
25373 for renaming of global "name_to_pass_map" to field.
25374 (get_pass_by_name): Rename from a function to...
25375 (pass_manager::get_pass_by_name): ...this method.
25376 (enable_disable_pass): Convert use of get_pass_by_name to
25377 a method call, locating the pass_manager singleton.
25378
25379 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25380
25381 * genattr-common.c (main): Convert argv from char ** to const char **.
25382 * genattr.c (main): Likewise.
25383 * genattrtab.c (main): Likewise.
25384 * genautomata.c (initiate_automaton_gen): Likewise.
25385 (main): Likewise.
25386 * gencodes.c (main): Likewise.
25387 * genconditions.c (main): Likewise.
25388 * genconfig.c (main): Likewise.
25389 * genconstants.c (main): Likewise.
25390 * genemit.c (main): Likewise.
25391 * genenums.c (main): Likewise.
25392 * genextract.c (main): Likewise.
25393 * genflags.c (main): Likewise.
25394 * genmddeps.c (main): Likewise.
25395 * genopinit.c (main): Likewise.
25396 * genoutput.c (main): Likewise.
25397 * genpeep.c (main): Likewise.
25398 * genpreds.c (main): Likewise.
25399 * genrecog.c (main): Likewise.
25400 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25401 (init_rtx_reader_args): Likewise.
25402 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25403 (init_rtx_reader_args): Likewise.
25404 * gentarget-def.c (main): Likewise.
25405 * read-md.c (read_md_files): Likewise.
25406 * read-md.h (read_md_files): Likewise.
25407
25408 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25409
25410 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25411 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25412 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25413 Remove unused predicate.
25414 (register_and_not_fp_reg_operand): Ditto.
25415
25416 2016-05-06 Martin Liska <mliska@suse.cz>
25417
25418 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25419 instead of vec as the vector is local to the function.
25420
25421 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25422
25423 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25424 avx512bw alternative.
25425
25426 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25427 before the ashr<mode>3 pattern.
25428
25429 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25430 v instead of x in vex or maybe_vex alternatives, use
25431 maybe_evex instead of vex in prefix.
25432
25433 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25434 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25435 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25436 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25437 in prefix.
25438
25439 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25440 v instead of x in vex or maybe_vex alternatives, use
25441 maybe_evex instead of vex in prefix.
25442
25443 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25444 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25445 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25446 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25447 alternatives, use maybe_evex instead of vex in prefix.
25448
25449 * config/i386/sse.md (vec_interleave_lowv4sf,
25450 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25451 v instead of x in vex or maybe_vex alternatives, use
25452 maybe_evex instead of vex in prefix.
25453
25454 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25455 v instead of x in vex or maybe_vex alternatives, use
25456 maybe_evex instead of vex in prefix.
25457
25458 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25459 v constraint instead of x.
25460
25461 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25462
25463 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25464 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25465 equality first.
25466
25467 2016-05-06 Richard Biener <rguenther@suse.de>
25468
25469 PR tree-optimization/70948
25470 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25471 Properly clobber all fields of va_list for __builtin_va_start.
25472
25473 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25474
25475 PR debug/70935
25476 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25477 loop latch destination.
25478
25479 2016-05-06 Martin Liska <mliska@suse.cz>
25480
25481 * tree-ssa-uninit.c: Apply manual changes
25482 to the GNU coding style.
25483 (prune_uninit_phi_opnds): Rename from
25484 prune_uninit_phi_opnds_in_unrealizable_paths.
25485
25486 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25487
25488 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25489 mspace): Remove deprecated options.
25490 * doc/invoke.texi (SH options): Remove -mspace.
25491
25492 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25493
25494 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25495
25496 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25497
25498 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25499 corresponding combine split pattern.
25500
25501 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25502
25503 PR target/58219
25504 * config/sh/predicates.md (long_displacement_mem_operand): New.
25505 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25506 Add movi20, movi20s alternatives. Adjust length attribute for
25507 alternatives.
25508 (movsi_ie): Allow for any FPU. Adjust length attribute for
25509 alternatives.
25510 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25511 attribute for alternatives.
25512 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25513 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25514 length attribute for alternatives.
25515
25516 2016-05-06 Richard Biener <rguenther@suse.de>
25517
25518 PR tree-optimization/70960
25519 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25520
25521 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25522
25523 PR target/52933
25524 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25525 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25526
25527 2016-05-06 Marek Polacek <polacek@redhat.com>
25528
25529 PR sanitizer/70875
25530 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25531
25532 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25533
25534 PR target/54089
25535 * config/sh/sh.md (*rotcr): Add another variant.
25536
25537 2016-05-06 Richard Biener <rguenther@suse.de>
25538
25539 PR middle-end/70931
25540 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25541
25542 2016-05-06 Richard Biener <rguenther@suse.de>
25543
25544 PR middle-end/70941
25545 * fold-const.c (split_tree): Always convert to the original type
25546 before negating.
25547
25548 2016-05-06 Richard Biener <rguenther@suse.de>
25549
25550 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25551 (fwprop_addr): Likewise.
25552
25553 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25554
25555 PR target/70873
25556 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25557 New prototype.
25558 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25559 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25560 the splitter condition.
25561 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25562 the splitter condition.
25563 (FP float_extend load splitter): Ditto.
25564
25565 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25566
25567 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25568 to REGNO in all peephole2 patterns.
25569 (post-reload splitters): Change true_regnum to REGNO in
25570 post-reload splitters.
25571 (zero_extend splitters): Use general_reg_operand and
25572 nonimmediate_gr_operand predicates.
25573
25574 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25575
25576 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25577 v constraint instead of x.
25578
25579 2016-05-05 Alan Modra <amodra@gmail.com>
25580
25581 PR target/68662
25582 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25583 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25584 TARGET_NO_FP_IN_TOC for -mrelocatable.
25585 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25586 TARGET_RELOCATABLE test.
25587 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25588 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25589 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25590 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25591 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25592 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25593 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25594 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25595 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25596 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25597 Likewise.
25598 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25599 (rs6000_stack_info): Likewise.
25600 (rs6000_elf_asm_out_constructor): Likewise.
25601 (rs6000_elf_asm_out_destructor): Likewise.
25602 (rs6000_elf_declare_function_name): Likewise.
25603 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25604 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25605 Don't define.
25606
25607 2016-05-05 Alan Modra <amodra@gmail.com>
25608
25609 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25610
25611 2016-05-05 Alan Modra <amodra@gmail.com>
25612
25613 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25614 out-of-line gpr restore for one or two regs if that would add
25615 a save of lr.
25616
25617 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25618
25619 PR target/70873
25620 * config/i386/i386.md
25621 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25622 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25623 as operand 0 predicate.
25624 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25625 Ditto.
25626 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25627 Ditto. Emit the pattern using RTX.
25628
25629 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25630 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25631 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25632 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25633 Ditto.
25634 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25635 sse_reg_operand as operand 0 predicate.
25636
25637 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25638 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25639 instead of gen_rtx_REG.
25640 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25641 Ditto.
25642
25643 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25644
25645 * function.c (emit_use_return_register_into_block): Delete.
25646 (gen_return_pattern): Delete.
25647 (emit_return_into_block): Delete.
25648 (active_insn_between): Delete.
25649 (convert_jumps_to_returns): Delete.
25650 (emit_return_for_exit): Delete.
25651 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25652 simple_return for shrink-wrapped blocks.
25653 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25654 end of blocks that need one.
25655 (get_unconverted_simple_return): Delete.
25656 (convert_to_simple_return): Delete.
25657 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25658 (convert_to_simple_return): Ditto.
25659
25660 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25661
25662 * cfgcleanup.c (bb_is_just_return): New function.
25663 (try_optimize_cfg): Simplify jumps to return, branches to return,
25664 and branches around return.
25665
25666 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25667
25668 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25669 branch to a return.
25670
25671 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25672
25673 PR c++/70906
25674 PR c++/70933
25675 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25676 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25677 assert flags & OEP_HASH_CHECK, instead of asserting it
25678 never happens. Handle TARGET_EXPR.
25679 * fold-const.c (operand_equal_p): For hash verification,
25680 or in OEP_HASH_CHECK into flags.
25681
25682 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25683
25684 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25685 comment.
25686 (compute_samebase_partition_bases): Fix typo.
25687
25688 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25689
25690 * config/i386/sse.md (vec_interleave_highv8sf,
25691 vec_interleave_lowv8sf, vec_interleave_highv4df,
25692 vec_interleave_lowv4df): Remove constraints from expanders.
25693
25694 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25695
25696 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25697
25698 * tree-inline.c (expand_call_inline): Fix path dealing with
25699 making lhs of call statement undefined.
25700
25701 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25702
25703 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25704 Check availability on NODE, too.
25705 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25706 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25707 (varpool_node::call_for_symbol_and_aliase): Likewise.
25708 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25709 (propagate_pure_const): Propagate across interposable functions, too.
25710 (skip_function_for_local_pure_const): Do not skip interposable bodies
25711 with aliases.
25712 (pass_local_pure_const::execute): Update.
25713
25714 2016-05-04 Marek Polacek <polacek@redhat.com>
25715
25716 * doc/invoke.texi: Document -Wdangling-else.
25717
25718 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25719
25720 * config.gcc: Error out when conflicting multilib is detected. Do not
25721 loop over multilibs since no combination is legal.
25722
25723 2016-05-04 Alan Modra <amodra@gmail.com>
25724
25725 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25726 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25727 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25728 Align .toc.
25729
25730 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25731
25732 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25733 Clean up p5600 comments.
25734
25735 2016-05-04 Richard Biener <rguenther@suse.de>
25736
25737 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25738 constructor simplifications.
25739 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25740
25741 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25742
25743 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25744 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25745 result.set_rtx is null instead of aborting.
25746 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25747 Always enable.
25748 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25749 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25750 *mov<mode>_store_postinc): New patterns.
25751
25752 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25753
25754 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25755 as commutative. Check both conversions are NOP.
25756 ((A & B) OP (C & B)): Remove.
25757
25758 2016-05-04 Alan Modra <amodra@gmail.com>
25759
25760 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25761
25762 2016-05-04 Alan Modra <amodra@gmail.com>
25763
25764 PR target/70866
25765 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25766 when cr2,3,4 are all fixed regs.
25767
25768 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25769
25770 PR rtl-optimization/57193
25771 * opts.c (default_options_table): Revert OPT_frename_registers change.
25772 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25773
25774 2016-05-03 Martin Sebor <msebor@redhat.com>
25775
25776 PR c++/66561
25777 * builtins.c (fold_builtin_FILE): New function.
25778 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25779 (fold_builtin_0): Call them.
25780 * gimplify.c (gimplify_call_expr): Remove the handling of
25781 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25782
25783 PR c++/66561
25784 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25785 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25786 constants.
25787
25788 PR c++/66639
25789 * doc/extend.texi (Function Names as Strings): Update __func__,
25790 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25791 constants.
25792
25793 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25794 Richard Biener <rguenther@suse.de>
25795
25796 PR tree-optimization/70916
25797 * tree-if-conv.c: Include cfganal.h.
25798 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25799 and remove_fake_exit_edges around the optimization pass.
25800
25801 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25802
25803 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25804 (cgraph_edge::make_direct): Likewise.
25805 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25806 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25807 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25808 (CIF_THUNK): New code.
25809 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25810 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25811 (compute_inline_parameters): Set inline_failed for thunks.
25812 (inline_analyze_function): Cleanup.
25813 * ipa-inline.c (can_inline_edge_p): Do not deal with
25814 call_stmt_cannot_inline_p.
25815 (can_early_inline_edge_p): Likewise.
25816 (early_inliner): Initialize inline_failed.
25817 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25818
25819 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25820
25821 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25822 from nonimm_ssenomem_operand.
25823 (nonimm_ssenomem_operand): New predicate.
25824 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25825 as operand 0 predicate.
25826 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25827 Disable unsupported alternatives using "enabled" attribute.
25828 Use register_ssemem_operand as operand 0 predicate.
25829 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25830
25831 2016-05-03 Marek Polacek <polacek@redhat.com>
25832
25833 PR c/70859
25834 * input.c (expansion_point_location): New function.
25835 * input.h (expansion_point_location): Declare.
25836
25837 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25838
25839 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25840 occurence with frame_offset_ ones.
25841
25842 2016-05-03 Alan Modra <amodra@gmail.com>
25843
25844 PR rtl-optimization/70890
25845 * ira.c (combine_and_move_insns): When moving def_insn, remove
25846 equivs on use_insn.
25847
25848 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25849
25850 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25851 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25852 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25853 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25854
25855 2016-05-03 Alan Modra <amodra@gmail.com>
25856
25857 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25858 for SAVE_MULTIPLE/STORE_MULTIPLE.
25859
25860 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25861
25862 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25863 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25864
25865 2016-05-03 Richard Biener <rguenther@suse.de>
25866
25867 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25868 default true.
25869 (gimplify_arg): Likewise.
25870 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25871 re-writing the result to a decl if required.
25872 (internal_get_tmp_var): Add allow_ssa parameter
25873 and override into_ssa with it.
25874 (get_formal_tmp_var): Adjust.
25875 (get_initialized_tmp_var): Add allow_ssa parameter.
25876 (gimplify_arg): Add allow_ssa parameter and avoid generating
25877 SSA names for the result false.
25878 (gimplify_call_expr): If the call may return twice do not
25879 gimplify parameters into SSA.
25880 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25881 (gimplify_modify_expr): Adjust assert. For noreturn calls
25882 with a SSA name LHS adjust its def.
25883 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25884 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25885 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25886 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25887 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25888 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25889 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25890 (optimize_target_teams): Do not allow SSA names for clause operands.
25891 (gimplify_expr): Likewise for where we mark the result addressable.
25892 * passes.def (pass_init_datastructures): Remove.
25893 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25894 (rewrite_stmt): Likewise.
25895 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25896 (replace_locals_op): Replace SSA names.
25897 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25898 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25899 * cgraph.c (release_function_body): Free CFG annotations only
25900 when we have a CFG. Simplify.
25901 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25902 force_gimple_operand instead of get_initialized_tmp_var.
25903 * tree-pass.h (make_pass_init_datastructures): Remove.
25904 * tree-ssa.c (execute_init_datastructures): Remove.
25905 (pass_data_init_datastructures): Likewise.
25906 (class pass_init_datastructures): Likewise.
25907 (make_pass_init_datastructures): Likewise.
25908 * omp-low.c (create_omp_child_function): Init SSA data structures.
25909 (grid_expand_target_grid_body): Likewise.
25910 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25911 name before adding it to names_to_release.
25912 (remove_bb): Always release SSA defs.
25913 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25914 before dereferencing it.
25915 * cgraphunit.c (init_lowered_empty_function): Always
25916 int SSA data structures.
25917 * tree-ssanames.c (release_defs): Remove assert that we are in
25918 SSA form.
25919 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25920
25921 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25922 Uros Bizjak <ubizjak@gmail.com>
25923
25924 PR rtl-optimization/70467
25925 * config/i386/predicates.md (x86_64_hilo_int_operand,
25926 x86_64_hilo_general_operand): New predicates.
25927 * config/i386/constraints.md (Wd): New constraint.
25928 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25929 (general_hilo_operand): New mode attr.
25930 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25931 instead of <general_operand>.
25932 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25933 x86_64_hilo_general_operand instead of <general_operand>.
25934
25935 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25936
25937 PR tree-optimization/70916
25938 * tree-if-conv.c (constant_or_ssa_name): Removed.
25939 (fold_build_cond_expr): Use is_gimple_val instead of
25940 constant_or_ssa_name.
25941
25942 PR tree-optimization/70916
25943 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25944 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25945
25946 PR target/49244
25947 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
25948 (optimize_atomic_bit_test_and): New function.
25949 (pass_fold_builtins::execute): Use it.
25950 * optabs.def (atomic_bit_test_and_set_optab,
25951 atomic_bit_test_and_complement_optab,
25952 atomic_bit_test_and_reset_optab): New optabs.
25953 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
25954 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
25955 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
25956 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
25957 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
25958 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
25959 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
25960 * doc/md.texi (atomic_bit_test_and_set@var{mode},
25961 atomic_bit_test_and_complement@var{mode},
25962 atomic_bit_test_and_reset@var{mode}): Document.
25963 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
25964 atomic_bit_test_and_complement<mode>,
25965 atomic_bit_test_and_reset<mode>): New expanders.
25966 (atomic_bit_test_and_set<mode>_1,
25967 atomic_bit_test_and_complement<mode>_1,
25968 atomic_bit_test_and_reset<mode>_1): New insns.
25969
25970 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
25971
25972 PR rtl-optimization/70687
25973 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
25974 instead of unsigned HOST_WIDE_INT.
25975
25976 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
25977
25978 PR rtl-optimization/44281
25979 * hard-reg-set.h (struct target_hard_regs): New field
25980 x_fixed_nonglobal_reg_set.
25981 (fixed_nonglobal_reg_set): New macro.
25982 * reginfo.c (init_reg_sets_1): Initialize it.
25983 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
25984 of fixed_reg_set.
25985 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
25986
25987 2016-05-03 Bin Cheng <bin.cheng@arm.com>
25988
25989 PR tree-optimization/56541
25990 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
25991 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
25992 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
25993 (any_complicated_phi): new static variable.
25994 (aggressive_if_conv): delete.
25995 (if_convertible_phi_p): support phis with more than two arguments.
25996 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
25997 critical pred edges.
25998 (ifcvt_split_critical_edges): support phis with more than two
25999 arguments by checking new parameter. only split critical edges
26000 if needed.
26001 (tree_if_conversion): handle simd pragma marked loop using new
26002 local variable aggressive_if_conv. check any_complicated_phi.
26003
26004 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26005
26006 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
26007 before using it.
26008
26009 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26010
26011 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26012 cbase.
26013
26014 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26015
26016 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26017 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26018 define_insn_and_split.
26019 (mulsi3_i): New define_insn_and_split.
26020 (mulsi3_call): Convert to define_insn.
26021 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26022 Remove constraints.
26023
26024 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26025
26026 * machmode.h (mode_complex): Add support to give the complex mode
26027 for a given mode.
26028 (GET_MODE_COMPLEX_MODE): Likewise.
26029 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26030 stored by build_complex_type and gfc_build_complex_type instead of
26031 trying to figure out the appropriate mode based on the size. Raise
26032 an assertion error, if the type was not set.
26033 * genmodes.c (struct mode_data): Add field for the complex type of
26034 the given type.
26035 (blank_mode): Likewise.
26036 (make_complex_modes): Remember the complex mode created in the
26037 base type.
26038 (emit_mode_complex): Write out the mode_complex array to map a
26039 type mode to the complex version.
26040 (emit_insn_modes_c): Likewise.
26041 * tree.c (build_complex_type): Set the complex type to use before
26042 calling layout_type.
26043 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26044 support for __float128 complex datatypes.
26045 (rs6000_hard_regno_mode_ok): Likewise.
26046 (rs6000_setup_reg_addr_masks): Likewise.
26047 (rs6000_complex_function_value): Likewise.
26048 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26049 __float128 and __ibm128 complex.
26050 (FLOAT128_IBM_P): Likewise.
26051 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26052 * doc/extend.texi (Additional Floating Types): Document that
26053 -mfloat128 must be used to enable __float128. Document complex
26054 __float128 and __ibm128 support.
26055
26056 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26057
26058 PR target/49244
26059 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26060 char/short arguments promoted to int because of promote_prototypes.
26061
26062 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26063
26064 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26065 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26066 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26067 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26068 alternatives using "enabled" attribute. Use register_ssemem_operand
26069 as operand 1 predicate.
26070 (*cmpi<unord>xf_i387): Split XFmode pattern from
26071 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26072 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26073 *absneg<mode>2_i387. Disable unsupported alternatives using
26074 "enabled" attribute.
26075 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26076
26077 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26078
26079 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26080 marker.
26081 (oacc_loop_process): Check mask for loop termination.
26082
26083 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26084
26085 * cif-code.def (CIF_THUNK): Add.
26086 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26087 accidental change.
26088
26089 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26090
26091 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26092 (dump_inline_summary): Dump it.
26093 (fp_expression_p): New predicate.
26094 (estimate_function_body_sizes): Use it.
26095 (inline_merge_summary): Merge fp_expressions.
26096 (inline_read_section): Read fp_expressions.
26097 (inline_write_summary): Write fp_expressions.
26098 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26099 codegen boundary if either caller or callee is !fp_expressions.
26100 * ipa-inline.h (inline_summary): Add fp_expressions.
26101 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26102 to fp_expressions be sure the fp generation flags are updated.
26103
26104 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26105
26106 PR rtl-optimization/70467
26107 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26108
26109 PR rtl-optimization/70467
26110 * ipa-pure-const.c (check_call): Handle internal calls even in
26111 ipa mode like in local mode.
26112
26113 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26114
26115 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26116
26117 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26118
26119 * match.pd (X u< X, X u> X): New transformations.
26120
26121 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26122
26123 * flag-types.h (enum warn_strict_overflow_code): Move ...
26124 * coretypes.h: ... here.
26125 * fold-const.h (fold_overflow_warning): Declare.
26126 * fold-const.c (fold_overflow_warning): Make non-static.
26127 (fold_comparison): Move the transformation of X +- C1 CMP C2
26128 into X CMP C2 -+ C1 ...
26129 * match.pd: ... here.
26130 * gimple-fold.c (fold_stmt_1): Protect with
26131 fold_defer_overflow_warnings.
26132
26133 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26134
26135 * omp-low.c (struct oacc_loop): Add 'inner' field.
26136 (new_oacc_loop_raw): Initialize it to zero.
26137 (oacc_loop_fixed_partitions): Initialize it.
26138 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26139 available partitioning.
26140
26141 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26142
26143 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26144 register_operand.
26145 (umulsidi3): Likewise.
26146 (indirect_jump): Fix jump instruction assembly patterns.
26147
26148 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26149
26150 PR target/70860
26151 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26152 (nvptx_function_value): Assert non-NULL cfun.
26153
26154 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26155
26156 PR rtl-optimization/70886
26157 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26158
26159 * cselib.h (rtx_equal_for_cselib_1): Declare.
26160 (rtx_equal_for_cselib_p: New inline function.
26161 * cselib.c (rtx_equal_for_cselib_p): Delete.
26162 (rtx_equal_for_cselib_1): Make public.
26163
26164 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26165
26166 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26167 (register_mixssei387nonimm_operand): Remove predicate.
26168 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26169 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26170 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26171 for TARGET_MIX_SSE_I387 alternatives.
26172 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26173 Disable unsupported alternatives using "enabled" attribute. Use
26174 nonimm_ssenomem_operand as operand 1 predicate. Also check
26175 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26176
26177 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26178
26179 * tree.c (cst_and_fits_in_hwi): Simplify.
26180
26181 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26182
26183 * tree.h (wi::to_wide): New function.
26184 * expr.c (expand_expr_real_1): Use wi::to_wide.
26185 * fold-const.c (int_const_binop_1): Likewise.
26186 (extract_muldiv_1): Likewise.
26187
26188 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26189
26190 * wide-int.h: Update offset_int and widest_int documentation.
26191 (WI_SIGNED_SHIFT_RESULT): New macro.
26192 (wi::binary_shift): Define signed_shift_result_type for
26193 shifts on offset_int- and widest_int-like types.
26194 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26195 * tree.h (int_bit_position): Use shift operators instead of wi::
26196 shifts.
26197 * alias.c (adjust_offset_for_component_ref): Likewise.
26198 * expr.c (get_inner_reference): Likewise.
26199 * fold-const.c (fold_comparison): Likewise.
26200 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26201 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26202 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26203 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26204 (stmt_kills_ref_p): Likewise.
26205 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26206 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26207 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26208 (ao_ref_init_from_vn_reference): Likewise.
26209
26210 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26211
26212 * wide-int.h: Update offset_int and widest_int documentation.
26213 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26214 (wi::binary_traits): Allow ordered comparisons between offset_int and
26215 offset_int, between widest_int and widest_int, and between either
26216 of these types and basic C types.
26217 (operator <, <=, >, >=): Define for the same combinations.
26218 * tree.h (tree_int_cst_lt): Use comparison operators instead
26219 of wi:: comparisons.
26220 (tree_int_cst_le): Likewise.
26221 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26222 (fold_nonarray_ctor_reference): Likewise.
26223 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26224 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26225 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26226 * tree-sra.c (completely_scalarize): Likewise.
26227 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26228 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26229 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26230 (check_for_binary_op_overflow): Likewise.
26231 (search_for_addr_array): Likewise.
26232 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26233
26234 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26235
26236 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26237 (arc_save_restore): Likewise.
26238 (arc_dwarf_register_span): Likewise.
26239 (arc_output_pic_addr_const): Initialize suffix variable.
26240
26241 2016-05-02 Martin Liska <mliska@suse.cz>
26242
26243 * symbol-summary.h (function_summary::function_summary):
26244 Remove checking assert for all cgraph nodes.
26245 (function_summary::get): Check summary_uid.
26246 (symtab_insertion): Check summary_uid.
26247
26248 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26249
26250 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26251 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26252 bmaskn instruction.
26253 (arc_dwarf_register_span): Remove enum keyword.
26254 (compact_memory_operand_p): New function.
26255 * config/arc/arc.h (reg_class): Add code density register classes.
26256 (REG_CLASS_NAMES): Likewise.
26257 (REG_CLASS_CONTENTS): Likewise.
26258 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26259 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26260 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26261 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26262 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26263 constraints.
26264 (h, Rcd, Rsd, Rzd): New register constraints.
26265 (T): Use compact_memory_operand_p function.
26266 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26267
26268 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26269
26270 * config/sh/sh.md (*negnegt, *movtt): Remove.
26271
26272 2016-05-02 Marek Polacek <polacek@redhat.com>
26273 Tom de Vries <tom@codesourcery.com>
26274
26275 PR tree-optimization/70700
26276 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26277 bigger than FIRST_REF_NODE.
26278
26279 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26280
26281 PR target/52898
26282 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26283 TARGET_CMPEQDI_T.
26284 (prepare_cbranch_operands): Don't use scratch register. Assume that
26285 function is used when pseudos can be created.
26286 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26287 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26288 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26289 define_expand. Allow it only when pseudos can be created.
26290 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26291
26292 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26293
26294 * config/i386/constraints.md (BC): Only allow -1 operands.
26295 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26296 Add "enabled" attribute. Update XI mode attribute calculation.
26297 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26298 (*movoi_internal_avx): Update XI mode attribute calculation.
26299 (*movti_internal): Ditto.
26300
26301 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26302
26303 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26304 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26305
26306 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26307
26308 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26309 statement on instruction code. Remove trailing spaces.
26310 (altivec_expand_stv_builtin): Likewise.
26311
26312 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26313
26314 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26315 (TARGET_FPU_DOUBLE): Simplify.
26316 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26317 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26318 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26319 with 'TARGET_FPU_DOUBLE'.
26320 * config/sh/sh.md: Likewise.
26321
26322 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26323
26324 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26325 SH_DIV_STR_FOR_SIZE): Remove.
26326 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26327 SH_DIV_STR_FOR_SIZE): Remove.
26328
26329 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26330
26331 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26332 logical_reg_operand): Delete.
26333 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26334 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26335 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26336 match_operand and match_test.
26337 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26338 variables on their first use. Return bool values.
26339 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26340 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26341 arith_reg_operand for input operand. Remove empty constraints.
26342 (xorsi3): Delete.
26343 (*xorsi3_compact): Rename to xorsi3.
26344 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26345 (*zero_extend<mode>si2_disp_mem): Update comment.
26346 (mov_nop): Delete.
26347
26348 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26349
26350 * config/sh/t-sh: Remove SH5 support.
26351 * config.gcc: Likewise.
26352 * configure: Likewise.
26353
26354 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26355
26356 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26357
26358 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26359
26360 * config/sh/sh.c (register_sh_passes, sh_option_override,
26361 sh_print_operand, prepare_move_operands,
26362 sh_can_follow_jump): Remove TARGET_SH1 checks.
26363 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26364 PROMOTE_MODE): Likewise.
26365 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26366 movdi): Likewise.
26367
26368 2016-04-30 Alan Modra <amodra@gmail.com>
26369
26370 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26371 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26372 Check for user regs later to avoid unnecessary looping over regs.
26373 Merge user reg check with non-saved reg check. Don't force
26374 inline VR restore when static chain used.
26375 (rs6000_frame_related): Omit eh_frame info for user regs when
26376 saving.
26377 (fixed_regs_p): Delete.
26378
26379 2016-04-30 Alan Modra <amodra@gmail.com>
26380
26381 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26382 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26383 Update all uses.
26384
26385 2016-04-30 Alan Modra <amodra@gmail.com>
26386
26387 PR target/69645
26388 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26389 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26390 Update all uses.
26391
26392 2016-04-30 Alan Modra <amodra@gmail.com>
26393
26394 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26395 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26396 flag_pic test for Darwin.
26397
26398 2016-04-30 Alan Modra <amodra@gmail.com>
26399
26400 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26401 throw_calls_crossed.
26402 (REG_FREQ_CALLS_CROSSED): Delete.
26403 (REG_N_THROWING_CALLS_CROSSED): Delete.
26404 * regstat.c (regstat_bb_compute_ri): Don't calculate
26405 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26406 (dump_reg_info): Don't print call cross frequency.
26407 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26408 and REG_N_THROWING_CALLS_CROSSED.
26409
26410 2016-04-30 Alan Modra <amodra@gmail.com>
26411
26412 * regs.h (struct reg_info_t): Delete live_length.
26413 (REG_LIVE_LENGTH): Delete macro.
26414 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26415 local_live, local_processed and local_live_last_luid params.
26416 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26417 Formatting fixes.
26418 (regstat_compute_ri): Adjust for above. Don't set
26419 REG_LIVE_LENGTH.
26420 (dump_reg_info): Don't print live length.
26421 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26422 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26423 Localize loop_depth var.
26424
26425 2016-04-30 Alan Modra <amodra@gmail.com>
26426
26427 * ira.c (enum valid_equiv): New.
26428 (validate_equiv_mem): Return enum.
26429 (update_equiv_mem): Create replacement in more cases.
26430 (add_store_equivs): Update validate_equiv_mem call.
26431
26432 2016-04-30 Alan Modra <amodra@gmail.com>
26433
26434 * ira.c (combine_and_move_insns): Rather than scanning insns,
26435 use DF infrastucture to find use and def insns.
26436
26437 2016-04-30 Alan Modra <amodra@gmail.com>
26438
26439 ira.c (combine_and_move_insns): Move invariant conditions..
26440 (ira.c): ..to here. Call combine_and_move_insns before
26441 add_store_equivs. Call grow_reg_equivs later. Allocate
26442 req_equiv later using max_reg_num() rather than global max_regno.
26443 (contains_replace_regs): Delete.
26444 (add_store_equivs): Remove contains_replace_regs test.
26445
26446 2016-04-30 Alan Modra <amodra@gmail.com>
26447
26448 * ira.c (struct equiv_mem_data): New.
26449 (equiv_mem, equiv_mem_modified): Delete static vars.
26450 (validate_equiv_mem_from_store): Use "data" param to communicate..
26451 (validate_equiv_mem): ..from here.
26452
26453 2016-04-30 Alan Modra <amodra@gmail.com>
26454
26455 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26456 split out from..
26457 (update_reg_equivs): ..here. Move allocation and freeing of
26458 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26459 end_alias_analysis to..
26460 (ira): ..here.
26461
26462 2016-04-30 Alan Modra <amodra@gmail.com>
26463
26464 * ira.c (pdx_subregs): Delete.
26465 (struct equivalence): Add pdx_subregs field.
26466 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26467 pdx_subregs access.
26468 (update_equiv_regs): Don't create or free pdx_subregs. Update
26469 pdx_subregs access.
26470
26471 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26472
26473 * config/rs6000/altivec.h: Change definitions of vec_xl and
26474 vec_xst.
26475 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26476 (LD_ELEMREV_V2DI): New.
26477 (LD_ELEMREV_V4SF): New.
26478 (LD_ELEMREV_V4SI): New.
26479 (LD_ELEMREV_V8HI): New.
26480 (LD_ELEMREV_V16QI): New.
26481 (ST_ELEMREV_V2DF): New.
26482 (ST_ELEMREV_V2DI): New.
26483 (ST_ELEMREV_V4SF): New.
26484 (ST_ELEMREV_V4SI): New.
26485 (ST_ELEMREV_V8HI): New.
26486 (ST_ELEMREV_V16QI): New.
26487 (XL): New.
26488 (XST): New.
26489 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26490 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26491 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26492 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26493 (altivec_expand_builtin): Add handling for
26494 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26495 (rs6000_invalid_builtin): Add error-checking for
26496 RS6000_BTM_P9_VECTOR.
26497 (altivec_init_builtins): Define builtins used to implement vec_xl
26498 and vec_xst.
26499 (rs6000_builtin_mask_names): Define power9-vector.
26500 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26501 (RS6000_BTM_P9_VECTOR): Define.
26502 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26503 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26504 (vsx_ld_elemrev_v2df): Likewise.
26505 (vsx_ld_elemrev_v4sf): Likewise.
26506 (vsx_ld_elemrev_v4si): Likewise.
26507 (vsx_ld_elemrev_v8hi): Likewise.
26508 (vsx_ld_elemrev_v16qi): Likewise.
26509 (vsx_st_elemrev_v2df): Likewise.
26510 (vsx_st_elemrev_v2di): Likewise.
26511 (vsx_st_elemrev_v4sf): Likewise.
26512 (vsx_st_elemrev_v4si): Likewise.
26513 (vsx_st_elemrev_v8hi): Likewise.
26514 (vsx_st_elemrev_v16qi): Likewise.
26515 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26516 grammar.
26517
26518 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26519
26520 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26521 out into ...
26522 (simplify_control_stmt_condition_1): ... here. Recurse into
26523 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26524
26525 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26526
26527 PR target/69810
26528 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26529 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26530 define_insn_and_split to define_insn.
26531 (zero_extendqi<mode>2_dot2): Same.
26532 (extendqi<mode>2_dot): Same.
26533 (extendqi<mode>2_dot2): Same.
26534
26535 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26536
26537 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26538 (probe_stack): New expander.
26539 (probe_stack_<mode>): New insn pattern.
26540
26541 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26542
26543 * config/i386/i386.md
26544 (operations with memory inputs setting flags peephole2):
26545 Remove uneeded REG_P checks. Cleanup pattern generation.
26546
26547 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26548
26549 * tree-vect-loop.c (vect_transform_loop): Fix
26550 nb_iterations_upper_bound computation for vectorized loop.
26551
26552 2016-04-29 Marek Polacek <polacek@redhat.com>
26553 Jakub Jelinek <jakub@redhat.com>
26554
26555 PR sanitizer/70342
26556 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26557 TARGET_EXPR_SLOT as a base.
26558
26559 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26560
26561 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26562 with 'rCm2' constraints to limit possible immediate size.
26563 (*load_zeroextendqisi_update): Likewise.
26564 (*load_signextendqisi_update): Likewise.
26565 (*loadhi_update): Likewise.
26566 (*load_zeroextendhisi_update): Likewise.
26567 (*load_signextendhisi_update): Likewise.
26568 (*loadsi_update): Likewise.
26569 (*loadsf_update): Likewise.
26570
26571 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26572
26573 * config/i386/predicates.md (constm1_operand): Fix comparison.
26574
26575 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26576
26577 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26578
26579 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26580
26581 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26582 remaining SH5 related settings.
26583 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26584 shmedia_prepare_call_address): Delete.
26585 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26586 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26587 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26588 UNSUPPORTED_SH2A): Remove m5 checks.
26589 (sh_divide_strategy_e): Remove SH5 division strategies.
26590 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26591 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26592
26593 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26594
26595 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26596
26597 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26598
26599 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26600 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26601 Change lder to ldr.
26602 * config/s390/vector.md ("mov<mode>"): Likewise.
26603
26604 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26605
26606 * config/s390/constraints.md ("U", "W"): Invoke
26607 s390_mem_constraint with "ZR" and "ZT".
26608 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26609 addresses when using LRA. Accept also short displacements for S
26610 and T constraints. Do not check for long displacement target for
26611 S and T constraints.
26612 (s390_mem_constraint): Remove handling of U and W constraints.
26613 * config/s390/s390.md (various patterns): Remove the short
26614 displacement constraints (Q and R) if a long displacement
26615 constraint is present. Add longdisp as required CPU capability.
26616 * config/s390/vector.md: Likewise.
26617 * config/s390/vx-builtins.md: Likewise.
26618
26619 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26620
26621 PR target/60040
26622 * reload1.c (reload): Call finish_spills before
26623 restarting reload loop. Skip select_reload_regs
26624 if update_eliminables_and_spill returns true.
26625
26626 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26627
26628 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26629 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26630 (umulhisi3_imm): Update predicates and constraint letters.
26631 (umulhisi3_reg): Declare instruction as commutative.
26632 * config/arc/constraints.md (J12, J16): New constraints.
26633 * config/arc/predicates.md (short_unsigned_const_operand): New
26634 predicate.
26635 (arc_short_operand): Likewise.
26636 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26637
26638 2016-04-29 Richard Biener <rguenther@suse.de>
26639
26640 PR tree-optimization/13962
26641 PR tree-optimization/65686
26642 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26643 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26644 using PTA to compare pointers.
26645 * match.pd: Add pattern for pointer equality compare simplification
26646 using ptrs_compare_unequal.
26647
26648 2016-04-29 Richard Biener <rguenther@suse.de>
26649
26650 * stor-layout.c (layout_type): Do not build a pointer-to-element
26651 type for arrays.
26652
26653 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26654
26655 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26656 Use SWI mode iterator. Use general_reg_operand predicate.
26657 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26658 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26659 predicates.
26660
26661 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26662
26663 PR middle-end/70843
26664 * fold-const.c (operand_equal_p): Don't verify hash value equality
26665 if arg0 == arg1.
26666 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26667 and OMP_CLAUSE.
26668
26669 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26670
26671 PR target/70858
26672 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26673 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26674 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26675 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26676 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26677
26678 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26679
26680 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26681 to info. Don't initialize separate fields to 0. Clean up
26682 formatting a bit.
26683
26684 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26685
26686 * config/i386/i386.md (peephole2s for operations with memory inputs):
26687 Use SWI mode iterator.
26688 (peephole2s for operations with memory outputs): Ditto.
26689 Do not check for stack checking probe.
26690
26691 (probe_stack): Remove expander.
26692
26693 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26694 Andrew Burgess <andrew.burgess@embecosm.com>
26695
26696 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26697 operands as 32-bits.
26698
26699 2016-04-28 Jason Merrill <jason@redhat.com>
26700
26701 * gdbinit.in: Skip line-map.h.
26702
26703 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26704 Andrew Burgess <andrew.burgess@embecosm.com>
26705
26706 * config/arc/arc.c (arc_conditional_register_usage): Take
26707 TARGET_RRQ_CLASS into account.
26708 (arc_print_operand): Support printing 'p' and 's' operands.
26709 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26710 as 0.
26711 (TARGET_RRQ_CLASS): Define.
26712 (IS_POWEROF2_OR_0_P): Define.
26713 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26714 alternatives.
26715 (*tst_movb): New define_insn.
26716 (*tst): Avoid recognition if it could prevent '*tst_movb'
26717 combination; replace c/CnL with c/Chs alternative.
26718 (*tst_bitfield_tst): New define_insn.
26719 (*tst_bitfield_asr): New define_insn.
26720 (*tst_bitfield): New define_insn.
26721 (andsi3_i): Add Rrq variant.
26722 (extzv): New define_expand.
26723 (insv): New define_expand.
26724 (*insv_i): New define_insn.
26725 (*movb): New define_insn.
26726 (*movb_signed): New define_insn.
26727 (*movb_high): New define_insn.
26728 (*movb_high_signed): New define_insn.
26729 (*movb_high_signed + 1): New define_split pattern.
26730 (*mrgb): New define_insn.
26731 (*mrgb + 1): New define_peephole2 pattern.
26732 (*mrgb + 2): New define_peephole2 pattern.
26733 * config/arc/arc.opt (mbitops): New option for nps400, uses
26734 TARGET_NPS_BITOPS_DEFAULT.
26735 * config/arc/constraints.md (q): Make register class conditional.
26736 (Rrq): New register constraint.
26737 (Chs): New constraint.
26738 (Clo): New constraint.
26739 (Chi): New constraint.
26740 (Cbf): New constraint.
26741 (Cbn): New constraint.
26742 (C18): New constraint.
26743 (Cbi): New constraint.
26744
26745 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26746
26747 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26748 dst->popcount.
26749 (bitmap_intersection_of_preds): Ditto.
26750 (bitmap_union_of_succs): Ditto.
26751 (bitmap_union_of_preds): Ditto.
26752 * sbitmap.c (do_popcount): Delete.
26753 (BITMAP_DEBUGGING): Delete.
26754 (sbitmap_verify_popcount): Delete.
26755 (sbitmap_alloc): Don't initialize the popcount field.
26756 (sbitmap_alloc_with_popcount): Delete.
26757 (sbitmap_resize): Don't resize the popcount array.
26758 (sbitmap_vector_alloc): Don't initialize the popcount field.
26759 (bitmap_copy): Don't copy the popcount array.
26760 (bitmap_clear): Don't clear the popcount array.
26761 (bitmap_clear): Delete the popcount array handling.
26762 (bitmap_ior_and_compl): Delete the popcount assert.
26763 (bitmap_not): Ditto.
26764 (bitmap_and_compl): Ditto.
26765 (bitmap_and): Delete the popcount array handling.
26766 (bitmap_xor): Ditto.
26767 (bitmap_ior): Ditto.
26768 (bitmap_or_and): Delete the popcount assert.
26769 (bitmap_and_or): Ditto.
26770 (popcount_table): Delete.
26771 (sbitmap_elt_popcount): Delete.
26772 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26773 (bitmap_set_bit): Delete the popcount assert.
26774 (bitmap_clear_bit): Ditto.
26775 (sbitmap_free): Don't free the popcount array.
26776 (sbitmap_alloc_with_popcount): Delete declaration.
26777 (sbitmap_popcount): Ditto.
26778
26779 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26780 Andrew Burgess <andrew.burgess@embecosm.com>
26781
26782 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26783 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26784 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26785 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26786 * config/arc/arc.opt (mcmem): New option.
26787 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26788 supply length for r/m alternative.
26789 (*extendqisi2_ac): Likewise.
26790 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26791 r/Uex alternative.
26792 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26793 (movhi_insn): Likewise.
26794 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26795 (*zero_extendqihi2_i): Add r/Ucm alternative.
26796 (*zero_extendqisi2_ac): Likewise.
26797 (*zero_extendhisi2_i): Likewise.
26798 * config/arc/constraints.md (Uex): New memory constraint.
26799 (Ucm): New define_constraint.
26800 * config/arc/predicates.md (long_immediate_loadstore_operand):
26801 Return 0 for MEM with cmem_address address.
26802 (cmem_address_0): New predicates.
26803 (cmem_address_1): Likewise.
26804 (cmem_address_2): Likewise.
26805 (cmem_address): Likewise.
26806
26807 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26808
26809 * config/rs6000/rs6000.c (machine_function): Rename
26810 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26811 (rs6000_stack_info): Adjust.
26812
26813 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26814 Andrew Burgess <andrew.burgess@embecosm.com>
26815
26816 * config/arc/constraints.md (Usd): Convert to define_constraint.
26817 (Us<): Likewise.
26818 (Us>): Likewise.
26819
26820 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26821
26822 PR target/70821
26823 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26824 Add new peephole2 where the first insn is *mov<mode>_or instead of
26825 *mov<mode>_internal.
26826
26827 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26828
26829 * tracer.c (bb_seen): Make static.
26830
26831 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26832
26833 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26834 support, setup defaults.
26835 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26836 * config/arc/arc.c (arc_init): Add NPS400 support.
26837 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26838 (TARGET_ARC700): NPS400 is also an ARC700.
26839 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26840
26841 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26842
26843 PR target/70668
26844 * config/nds32/nds32.md (casesi): Don't access the operands array
26845 out of bounds.
26846
26847 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26848
26849 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26850 (or $-1,reg peephole2): Ditto.
26851 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26852
26853 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26854
26855 * doc/extend.texi (Common Function Attributes) [optimize]:
26856 Discourage use of the optimize attribute.
26857
26858 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26859
26860 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26861 special case builtin.
26862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26863 ALTIVEC_BUILTIN_VEC_ADDE.
26864 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26865 support for ALTIVEC_BUILTIN_VEC_ADDE.
26866 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26867 for __builtin_vec_adde.
26868
26869 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26870
26871 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26872 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26873
26874 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26875
26876 PR testsuite/70595
26877 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26878 attributes): Document cilkplus_runtime.
26879
26880 2016-04-28 Martin Jambor <mjambor@suse.cz>
26881
26882 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26883 this function. Call verify_expr on MEM_REFs and bases of other
26884 handled_components.
26885
26886 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26887
26888 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26889 for WORD_REGISTER_OPERATIONS to runtime check.
26890
26891 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26892
26893 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26894
26895 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26896
26897 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26898 big-endian compilation.
26899 * config/arc/arc.md (addf3): Likewise.
26900 (subdf3): Likewise.
26901 (muldf3): Likewise.
26902
26903 2016-04-28 Richard Biener <rguenther@suse.de>
26904
26905 PR tree-optimization/70840
26906 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26907 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26908 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26909 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26910
26911 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26912
26913 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26914 and explain why in a comment.
26915
26916 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26917
26918 * config/arc/arc.md (cpu_facility): Add fpx variant.
26919 (subdf3): Prohibit use reverse sub when assist operations option
26920 is enabled.
26921 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26922 instructions only when FPX is enabled.
26923 * testsuite/gcc.target/arc/trsub.c: New test.
26924
26925 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26926
26927 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26928 mult_operator when calculating "type" attribute.
26929 (*fop_<mode>_1_i387): Ditto.
26930 (*fop_xf_1_i387): Ditto.
26931 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26932 Use std::swap to swap operands. Use RTL expressions to generate
26933 converted pattern.
26934
26935 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26936 Joern Rennecke <joern.rennecke@embecosm.com>
26937
26938 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26939 declaration.
26940 (emit_pic_move): Remove.
26941 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26942 * config/arc/arc.c (emit_pic_move): Removed.
26943 (TARGET_HAVE_TLS): Define.
26944 (arc_conditional_register_usage): Test for arc_tp_regno.
26945 (arc_print_operand, arc_print_operand_address): Handle TLS
26946 unspecs.
26947 (arc_needs_pcl_p): New function.
26948 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
26949 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
26950 (arc_raw_symbolic_reference_mentioned_p): Likewise.
26951 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
26952 (arc_legitimize_tls_address): Likewise.
26953 (DTPOFF_ZERO_SYM): Define.
26954 (arc_legitimize_pic_address): Make it static, handle TLS cases.
26955 (arc_output_pic_addr_const): Print TLS unspecs.
26956 (prepare_pic_move): New function, replaces emit_pic_move.
26957 (arc_legitimate_constant_p): Handle TLS unspecs.
26958 (arc_legitimate_address_p): Likewise.
26959 (arc_rewrite_small_data_p): Use assert for TLS constants.
26960 (prepare_move_operands): Use prepare_pic_move.
26961 (arc_legitimize_address): Legitimize tls addresses.
26962 (arc_epilogue_uses): Check for arc_tp_regno.
26963 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
26964 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
26965 Define.
26966 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
26967 Likewise.
26968 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
26969 %(arc_tls_extra_start_spec).
26970 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
26971 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
26972 (EH_USES): Define.
26973 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
26974 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
26975 (UNSPEC_TLS_OFF): Add.
26976 (R10_REG): Define.
26977 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
26978 (get_thread_pointersi): New patterns.
26979 * config/arc/arc.opt (mtp-regno): New option.
26980 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
26981 (move_dest_operand): Likewise.
26982 * configure: Regenerate.
26983 * configure.ac: Add arc*-*-* case to test for tls.
26984 * doc/invoke.texi (ARC options): Document mtp-regno.
26985
26986 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26987
26988 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
26989 the new ARC HS SIMD instructions.
26990 (arc_preferred_simd_mode): New function.
26991 (arc_autovectorize_vector_sizes): Likewise.
26992 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26993 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
26994 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
26995 (arc_init_builtins): Add new SIMD builtin types.
26996 (arc_split_move): Handle 64 bit vector moves.
26997 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
26998 (TARGET_PLUS_QMACW): Define.
26999 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
27000 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
27001 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
27002 (VSUBADD4H): New builtins.
27003 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
27004 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
27005
27006 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
27007 Matthias Klose <doko@debian.org>
27008
27009 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
27010
27011 2016-04-28 Richard Biener <rguenther@suse.de>
27012
27013 PR middle-end/70777
27014 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27015 canonicalization.
27016
27017 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
27018
27019 * common/config/sh/sh-common.c: Remove SH5 support.
27020 * config/sh/constraints.md: Likewise.
27021 * config/sh/config/sh/elf.h: Likewise.
27022 * config/sh/linux.h: Likewise.
27023 * config/sh/netbsd-elf.h: Likewise.
27024 * config/sh/predicates.md: Likewise.
27025 * config/sh/sh-c.c: Likewise.
27026 * config/sh/sh-protos.h: Likewise.
27027 * config/sh/sh.c: Likewise.
27028 * config/sh/sh.h: Likewise.
27029 * config/sh/sh.md: Likewise.
27030 * config/sh/sh.opt: Likewise.
27031 * config/sh/sync.md: Likewise.
27032 * config/sh/sh64.h: Delete.
27033 * config/sh/shmedia.h: Likewise.
27034 * config/sh/shmedia.md: Likewise.
27035 * config/sh/sshmedia.h: Likewise.
27036 * config/sh/t-netbsd-sh5-64: Likewise.
27037 * config/sh/t-sh64: Likewise.
27038 * config/sh/ushmedia.h: Likewise.
27039
27040 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27041
27042 * config/i386/i386.md (sign_extend to memory peephole2s): Use
27043 general_reg_operand instead of register_operand predicate.
27044
27045 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27046
27047 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27048
27049 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
27050
27051 * match.pd (A - B > A, A + B < A): New transformations.
27052
27053 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27054
27055 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27056 which defaults to true. Emit an outer pair of parentheses only if
27057 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27058 don't emit parentheses for the right-hand operand.
27059
27060 2016-04-27 Jeff Law <law@redhat.com>
27061
27062 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27063
27064 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27065
27066 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27067 (altivec_lvx_<mode>_internal): Document.
27068 (altivec_lvx_<mode>_2op): New define_insn.
27069 (altivec_lvx_<mode>_1op): Likewise.
27070 (altivec_lvx_<mode>_2op_si): Likewise.
27071 (altivec_lvx_<mode>_1op_si): Likewise.
27072 (altivec_stvx_<mode>): Remove.
27073 (altivec_stvx_<mode>_internal): Document.
27074 (altivec_stvx_<mode>_2op): New define_insn.
27075 (altivec_stvx_<mode>_1op): Likewise.
27076 (altivec_stvx_<mode>_2op_si): Likewise.
27077 (altivec_stvx_<mode>_1op_si): Likewise.
27078 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27079 Expand vec_ld and vec_st during parsing.
27080 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27081 changes.
27082 (altivec_expand_stvx_be): Likewise.
27083 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27084 address-masking behavior in RTL.
27085 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27086 address-masking behavior in RTL.
27087 (altivec_expand_builtin): Change builtin code arguments for calls
27088 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27089 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27090 presence of lvx/stvx patterns.
27091 (alignment_with_canonical_addr): New function.
27092 (alignment_mask): Likewise.
27093 (find_alignment_op): Likewise.
27094 (recombine_lvx_pattern): Likewise.
27095 (recombine_stvx_pattern): Likewise.
27096 (recombine_lvx_stvx_patterns): Likewise.
27097 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27098 stvx patterns from expand.
27099 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27100 expansions.
27101 (vector_altivec_store_<mode>): Likewise.
27102
27103 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27104
27105 * config/aarch64/aarch64.md
27106 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27107 remove the "fp" attributes.
27108 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27109 add the "simd" attributes.
27110 (*movdf_aarch64): Likewise.
27111 (*movtf_aarch64): Remove the "fp" attributes.
27112 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27113 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27114
27115 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27116
27117 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27118 rtx to rtx_code_label *.
27119 * rtl.h (maybe_set_first_label_num): Likewise.
27120
27121 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27122
27123 * df-core.c (df_add_problem): Make the problem param be const.
27124 (df_remove_problem): Make local "problem" be const.
27125 * df-problems.c (problem_RD): Make const.
27126 (problem_LR): Likewise.
27127 (problem_LIVE): Likewise.
27128 (problem_MIR): Likewise.
27129 (problem_CHAIN): Likewise.
27130 (problem_WORD_LR): Likewise.
27131 (problem_NOTE): Likewise.
27132 (problem_MD): Likewise.
27133 * df-scan.c (problem_SCAN): Likewise.
27134 * df.h (struct df_problem): Make field "dependent_problem" be
27135 const.
27136 (struct dataflow): Likewise for field "problem".
27137 (df_add_problem): Make param const.
27138
27139 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27140
27141 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27142 inter-unit moves to/from vector registers are enabled. Do not disable
27143 for TARGET_MMX.
27144
27145 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27146
27147 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27148 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27149 #define to...
27150 (enum df_problem_id): ...this new enum.
27151 (struct df_problem): Convert field "id" from "int" to
27152 enum df_problem_id.
27153
27154 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27155
27156 * rtl.def: Update comment for "things in the instruction chain" to
27157 reflect the removal of the leading "i" field for INSN_UID in
27158 r210360. Fix bogus apostrophe.
27159
27160 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27161
27162 * config/i386/i386.md
27163 (lea arith with mem operand + setcc peephole2): Set operator mode.
27164
27165 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27166
27167 PR target/70155
27168 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27169 (dimode_scalar_to_vector_candidate_p): This.
27170 (timode_scalar_to_vector_candidate_p): New function.
27171 (scalar_to_vector_candidate_p): Likewise.
27172 (timode_check_non_convertible_regs): Likewise.
27173 (timode_remove_non_convertible_regs): Likewise.
27174 (remove_non_convertible_regs): Likewise.
27175 (remove_non_convertible_regs): Renamed to ...
27176 (dimode_remove_non_convertible_regs): This.
27177 (scalar_chain::~scalar_chain): Make it virtual.
27178 (scalar_chain::compute_convert_gain): Make it pure virtual.
27179 (scalar_chain::mark_dual_mode_def): Likewise.
27180 (scalar_chain::convert_insn): Likewise.
27181 (scalar_chain::convert_registers): Likewise.
27182 (scalar_chain::add_to_queue): Make it protected.
27183 (scalar_chain::emit_conversion_insns): Likewise.
27184 (scalar_chain::replace_with_subreg): Likewise.
27185 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27186 (scalar_chain::convert_op): Likewise.
27187 (scalar_chain::convert_reg): Likewise.
27188 (scalar_chain::make_vector_copies): Likewise.
27189 (scalar_chain::convert_registers): New pure virtual function.
27190 (class dimode_scalar_chain): New class.
27191 (class timode_scalar_chain): Likewise.
27192 (scalar_chain::mark_dual_mode_def): Renamed to ...
27193 (dimode_scalar_chain::mark_dual_mode_def): This.
27194 (timode_scalar_chain::mark_dual_mode_def): New function.
27195 (timode_scalar_chain::convert_insn): Likewise.
27196 (dimode_scalar_chain::convert_registers): Likewise.
27197 (scalar_chain::compute_convert_gain): Renamed to ...
27198 (dimode_scalar_chain::compute_convert_gain): This.
27199 (scalar_chain::replace_with_subreg): Renamed to ...
27200 (dimode_scalar_chain::replace_with_subreg): This.
27201 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27202 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27203 (scalar_chain::make_vector_copies): Renamed to ...
27204 (dimode_scalar_chain::make_vector_copies): This.
27205 (scalar_chain::convert_reg): Renamed to ...
27206 (dimode_scalar_chain::convert_reg ): This.
27207 (scalar_chain::convert_op): Renamed to ...
27208 (dimode_scalar_chain::convert_op): This.
27209 (scalar_chain::convert_insn): Renamed to ...
27210 (dimode_scalar_chain::convert_insn): This.
27211 (scalar_chain::convert): Call convert_registers.
27212 (convert_scalars_to_vector): Change to scalar_chain pointer to
27213 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27214 in 32-bit mode. Delete scalar_chain pointer. Call
27215 free_dominance_info in 64-bit mode.
27216 (pass_stv::gate): Remove TARGET_64BIT check.
27217 (ix86_option_override): Put the 64-bit STV pass before the CSE
27218 pass.
27219
27220 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27221
27222 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27223 dw_loc_frame_offset field.
27224 * dwarf2out.c (new_loc_descr): Likewise.
27225 (resolve_args_picking_1): Turn the VISITED hash set into a
27226 FRAME_OFFSET hash map. Use it to associate a frame offset to
27227 visited nodes. Remove uses of the CHECKING_P macro.
27228 (resolve_args_picking): Update call to resolve_args_picking_1.
27229
27230 2016-04-27 Martin Liska <mliska@suse.cz>
27231
27232 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27233 (free_loop_data): Release vuses of groups.
27234
27235 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27236
27237 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27238 instead of redundant use_id and boolean have_use_for.
27239 (struct iv_use): Change sub_id into group_id. Remove field next.
27240 Move fields: related_cands, n_map_members, cost_map and selected
27241 to ...
27242 (struct iv_group): ... here. New structure.
27243 (struct iv_common_cand): Use structure declaration directly.
27244 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27245 (MAX_CONSIDERED_USES): Rename macro to ...
27246 (MAX_CONSIDERED_GROUPS): ... here.
27247 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27248 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27249 (dump_uses): Rename to ...
27250 (dump_groups): ... here. Update all uses.
27251 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27252 (find_induction_variables): Refactor format of dump information.
27253 (record_sub_use): Delete.
27254 (record_use): Update all uses.
27255 (record_group): New function.
27256 (record_group_use, find_interesting_uses_op): Call above functions.
27257 Update all uses.
27258 (find_interesting_uses_cond): Ditto.
27259 (group_compare_offset): New function.
27260 (split_all_small_groups): Rename to ...
27261 (split_small_address_groups_p): ... here. Update all uses.
27262 (split_address_groups): Update all uses.
27263 (find_interesting_uses): Refactor format of dump information.
27264 (add_candidate_1): Update all uses. Remove redundant check on iv,
27265 base and step.
27266 (add_candidate, record_common_cand): Remove redundant assert.
27267 (add_iv_candidate_for_biv): Update use.
27268 (add_iv_candidate_derived_from_uses): Update all uses.
27269 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27270 (alloc_use_cost_map): Ditto.
27271 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27272 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27273 (determine_use_iv_cost_generic): Ditto.
27274 (determine_group_iv_cost_generic): Ditto.
27275 (determine_use_iv_cost_address): Ditto.
27276 (determine_group_iv_cost_address): Ditto.
27277 (determine_use_iv_cost_condition): Ditto.
27278 (determine_group_iv_cost_cond): Ditto.
27279 (determine_use_iv_cost): Ditto.
27280 (determine_group_iv_cost): Ditto.
27281 (set_autoinc_for_original_candidates): Update all uses.
27282 (find_iv_candidates): Update all uses. Refactor dump information.
27283 (determine_use_iv_costs): Ditto.
27284 (determine_iv_costs): Ditto.
27285 (iv_ca_cand_for_use): Rename to ...
27286 (iv_ca_cand_for_group): ... here. Update all uses.
27287 (iv_ca_add_use, iv_ca_add_group): Ditto.
27288 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27289 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27290 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27291 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27292 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27293 (create_new_iv, adjust_iv_update_pos): Ditto.
27294 (rewrite_use_address): Delete.
27295 (rewrite_use_address_1): Rename to ...
27296 (rewrite_use_address): ... here.
27297 (rewrite_use_compare): Update all uses.
27298 (rewrite_use): Delete.
27299 (rewrite_uses): Rename to ...
27300 (rewrite_groups): ... here. Update all uses.
27301 (remove_unused_ivs, free_loop_data): Update all uses.
27302 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27303
27304 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27305
27306 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27307 for WORD_REGISTER_OPERATIONS to runtime check.
27308
27309 2016-04-27 Richard Biener <rguenther@suse.de>
27310
27311 PR ipa/70760
27312 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27313 aggregate_value_p to determine if a function result is
27314 returned by reference.
27315 (ipa_pta_execute): Functions having their address taken are
27316 not automatically nonlocal.
27317
27318 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27319
27320 PR sanitizer/70683
27321 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27322 * fold-const.c (operand_equal_p): If flag_checking and
27323 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27324 and if it returns non-zero, assert iterative_hash_expr on both
27325 args is the same.
27326
27327 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27328
27329 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27330
27331 2016-04-27 Nick Clifton <nickc@redhat.com>
27332
27333 PR middle-end/49889
27334 * varasm.c (merge_weak): Generate an error if an attempt is made
27335 to convert a non-weak static function into a weak, public function.
27336
27337 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27338
27339 * params.def (MAX_PARTITION_SIZE): New param.
27340 * doc/invoke.texi: Document lto-max-partition.
27341
27342 2016-04-27 Richard Biener <rguenther@suse.de>
27343
27344 PR ipa/70785
27345 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27346 function cummulating used_from_other_partition, externally_visible
27347 and force_output from aliases.
27348 (refered_from_nonlocal_var): Likewise.
27349 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27350 node flags properly.
27351
27352 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27353
27354 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27355 (-Wmemset-elt-size): New item.
27356
27357 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27358
27359 PR ada/70759
27360 * stor-layout.h (internal_reference_types): Delete.
27361 * stor-layout.c (reference_types_internal): Likewise.
27362 (internal_reference_types): Likewise.
27363 (layout_type) <REFERENCE_TYPE>: Adjust.
27364
27365 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27366
27367 PR sanitizer/70683
27368 * tree.h (inchash::add_expr): Add FLAGS argument.
27369 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27370 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27371 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27372 Formatting fix. Adjust recursive calls. For tcc_comparison,
27373 if swap_tree_comparison (code) is smaller than code, hash that
27374 and arguments in the other order. Hash CONVERT_EXPR the same
27375 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27376 of ADDR_EXPR of decl as the decl itself. Add or remove
27377 OEP_ADDRESS_OF from recursive flags as needed. For
27378 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27379 operands commutatively and only the third one normally.
27380 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27381
27382 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27383
27384 * config/rtems.h (LIB_SPEC): Add -latomic.
27385
27386 2016-04-27 Joel Sherrill <joel@rtems.org>
27387
27388 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27389 xilink.ld and flags not relevant to RTEMS.
27390
27391 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27392
27393 * toplev.c (backend_init_target): Avoid calling init_reload when using
27394 LRA.
27395
27396 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27397
27398 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27399 for loops rather than one for the whole function.
27400
27401 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27402
27403 * match.pd (X + CST CMP X): New transformation.
27404
27405 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27406
27407 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27408 * fold-const.c (fold_binary_loc): Remove 2 transformations
27409 superseded by match.pd.
27410 * match.pd (x+x -> x*2): Generalize to integers.
27411
27412 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27413
27414 * config/i386/i386.md (operation on memory peephole): Duplicate an
27415 existing peephole and adapt it to match lea rather than an operation
27416 that clobbers CC.
27417
27418 PR rtl-optimization/57193
27419 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27420 and above.
27421 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27422
27423 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27424
27425 * tree-if-conv.c (any_pred_load_store): New static variable.
27426 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27427 any_pred_load_store instead of and_mask_load_store.
27428 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27429 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27430 (combine_blocks, tree_if_conversion): Ditto.
27431
27432 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27433
27434 PR tree-optimization/70771
27435 PR tree-optimization/70775
27436 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27437 virtual PHI nodes. Delete parameter.
27438 (if_convertible_loop_p_1): Delete argument to above function.
27439 (predicate_all_scalar_phis): Delete code handling single-argument
27440 PHIs.
27441 (tree_if_conversion): Mark and update virtual SSA.
27442
27443 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27444
27445 PR target/61821
27446 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27447 (x86_elf_aligned_common): Rename to ...
27448 (x86_elf_aligned_decl_common): ... this.
27449 Add decl arg. Switch to .lbss for largecomm object. Use
27450 LARGECOMM_SECTION_ASM_OP.
27451 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27452 renaming.
27453 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27454 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27455 Pass new decl arg.
27456 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27457 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27458
27459 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27460
27461 PR target/59407
27462 * config/i386/i386.c (SECTION_LARGE): Define.
27463 (x86_64_elf_select_section): Set it for large data/bss sections.
27464 Only clear SECTION_WRITE for .lrodata.
27465 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27466 data/bss sections.
27467 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27468 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27469 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27470 SECTION_MACH_DEP.
27471 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27472 * doc/tm.texi: Regenerate.
27473
27474 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27475
27476 PR bootstrap/70704
27477 * configure.ac (--enable-checking): Document extra flag, for
27478 non-release builds default to --enable-checking=yes,extra.
27479 If misc checking and extra checking, define CHECKING_P to 2 instead
27480 of 1.
27481 * common.opt (fchecking=): Add.
27482 * doc/invoke.texi (-fchecking=): Document.
27483 * doc/install.texi: Document --enable-checking changes.
27484 * configure: Regenerated.
27485 * config.in: Regenerated.
27486
27487 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27488
27489 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27490 attribute instead of which_alternative.
27491 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27492 Use EXT_REX_SSE_REG_P where appropriate.
27493
27494 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27495
27496 * config/i386/predicates.md (const0_operand): Do not match
27497 const_wide_int code.
27498 (const1_operand): Ditto.
27499
27500 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27501
27502 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27503 for SSE constm1 operands and TARGET_AVX512VL.
27504 (*movti_internal): Ditto.
27505 (*mov<mode>_or): Use constm1_operand predicate.
27506 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27507 for SSE vector_all_ones operands and TARGET_AVX512VL.
27508 * config/i386/predicates.md (constm1_operand): New predicate.
27509 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27510 emission of constant -1 load.
27511
27512 2016-04-25 Jason Merrill <jason@redhat.com>
27513
27514 * gdbinit.in: Skip is-a.h.
27515
27516 * attribs.c (register_scoped_attributes): Fix logic.
27517 * attribs.h: Declare register_scoped_attributes.
27518
27519 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27520
27521 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27522 stxvd2x and stxvw4x built-in functions.
27523
27524 2016-04-25 DJ Delorie <dj@redhat.com>
27525
27526 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27527 (ashrhi3): Likewise.
27528 (lshrhi3): Likewise.
27529
27530 2016-04-25 Richard Biener <rguenther@suse.de>
27531
27532 PR tree-optimization/70780
27533 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27534 wasn't visited yet.
27535 (compute_antic): Mark blocks with abnormal preds as visited as
27536 they have a final empty antic-in solution already.
27537
27538 2016-04-25 Michael Collison <michael.collison@linaro.org>
27539
27540 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27541
27542 2016-04-25 Michael Collison <michael.collison@linaro.org>
27543
27544 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27545 mode is VQI to improve mixed mode vectorization.
27546 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27547 define_insn to match low half of signed vaddw.
27548 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27549 define_insn to match high half of signed vaddw.
27550 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27551 define_insn to match low half of unsigned vaddw.
27552 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27553 define_insn to match high half of unsigned vaddw.
27554 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27555 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27556 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27557 for new function.
27558 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27559 * config/arm/predicates.md (vect_par_constant_high): Support
27560 big endian and simplify by calling
27561 arm_simd_check_vect_par_cnst_half
27562 (vect_par_constant_low): Likewise.
27563
27564 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27565
27566 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27567 predicate for operand 2.
27568
27569 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27570 H.J. Lu <hongjiu.lu@intel.com>
27571
27572 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27573 machine_mode argument.
27574 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27575 constm1_rtx operands. For VOIDmode constants, get mode from
27576 pred_mode. Check mode size if the mode is supported by ABI.
27577 (standard_sse_constant_opcode): Do not use standard_constant_p.
27578 Strictly check ABI support for all-ones operands.
27579 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27580 immediates. Update calls to standard_sse_constant_p.
27581 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27582 (ix86_rtx_costs): Ditto.
27583 * config/i386/i386.md (*movxi_internal_avx512f): Use
27584 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27585 Use (v,BC) alternative instead of (v,C). Use register_operand
27586 checks instead of MEM_P.
27587 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27588 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27589 isa attribute. Use register_operand checks instead of MEM_P.
27590 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27591 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27592 alternative and corresponding sse2 isa attribute.
27593 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27594 to standard_sse_constant_p.
27595 (FP constant splitters): Ditto.
27596 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27597 (C): Ditto.
27598 * config/i386/predicates.md (constm1_operand): Remove.
27599 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27600 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27601 vector_all_ones_operand instead of constm1_operand.
27602
27603 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27604
27605 * print-rtl.c (print_rtx_insn_vec): New function.
27606 * print-rtl.h: New prototype.
27607 * store-motion.c (struct st_expr): Make avail_stores a vector.
27608 (st_expr_entry): Adjust.
27609 (free_st_expr_entry): Likewise.
27610 (print_store_motion_mems): Likewise.
27611 (find_moveable_store): Likewise.
27612 (compute_store_table): Likewise.
27613 (delete_store): Likewise.
27614 (build_store_vectors): Likewise.
27615
27616 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27617
27618 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27619
27620 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27621
27622 * vec.h (vec_safe_contains): New function.
27623 (vec::contains): Likewise.
27624 (vec::begin): Likewise.
27625 (vec::end): Likewise.
27626
27627 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27628
27629 PR sanitizer/70712
27630 * cfgexpand.c (expand_stack_vars): Fix typo.
27631
27632 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27633
27634 * system.h (list, map, set, vector): Include conditionally.
27635 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27636 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27637 * ipa-icf.c (INCLUDE_LIST): Define.
27638 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27639 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27640 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27641 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27642 * cp/logic.cc (INCLUDE_LIST): Define.
27643 * fortran/trans-common.c (INCLUDE_MAP): Define.
27644
27645 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27646
27647 * auto-profile.c: Remove <string.h> include.
27648 * ipa-icf-gimple.c: Remove <list> include.
27649 * diagnostic.c: Remove <new> include.
27650 * genmatch.c: Likewise.
27651 * pretty-print.c: Likewise.
27652 * toplev.c: Likewise
27653 * c/c-objc-common.c: Likewise.
27654 * cp/error.c: Likewise.
27655 * fortran/error.c: Likewise.
27656
27657 2016-04-22 Richard Biener <rguenther@suse.de>
27658
27659 * lto-streamer-in.c (input_ssa_names): Do not allocate
27660 GIMPLE_NOP for all SSA names.
27661 * lto-streamer-out.c (output_ssa_names): Do not output
27662 SSA names that should have been released.
27663
27664 2016-04-22 Richard Biener <rguenther@suse.de>
27665
27666 PR tree-optimization/70740
27667 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27668 VDEF.
27669
27670 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27671
27672 PR target/70750
27673 * config/i386/predicates.md (call_insn_operand): Replace
27674 sibcall_memory_operand with memory_operand.
27675
27676 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27677
27678 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27679 has_single_use() tests.
27680 (register_edge_assert_for_1): Likewise.
27681 (find_assert_locations_1): Check the liveness bitmap instead of
27682 checking has_single_use().
27683
27684 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27685
27686 PR target/70728
27687 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27688 Extract AVX-512BW constraint from AVX.
27689
27690 2016-04-21 Richard Biener <rguenther@suse.de>
27691
27692 PR tree-optimization/70725
27693 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27694 for phi_convertible_by_degenerating_args.
27695 (predicate_all_scalar_phis): Handle single-argument PHIs.
27696
27697 2016-04-21 Richard Biener <rguenther@suse.de>
27698
27699 PR middle-end/70747
27700 * fold-const.c (fold_comparison): Return properly typed
27701 constant boolean.
27702
27703 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27704
27705 PR tree-optimization/70715
27706 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27707 after expanding BASE using expand_simple_operations.
27708
27709 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27710
27711 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27712 New transformations.
27713
27714 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27715
27716 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27717
27718 2016-04-20 Jan Hubicka <jh@suse.cz>
27719
27720 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27721 ultiimate_alias_target.
27722 (update_callee_keys): Likewise.
27723 (lookup_recursive_calls): Likewise.
27724 (speculation_useful_p): Likewise.
27725
27726 2016-04-20 Jan Hubicka <jh@suse.cz>
27727
27728 PR ipa/70018
27729 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27730 (set_nothrow_flag_1): ... this; handle interposition correctly;
27731 recurse on aliases and thunks.
27732 (cgraph_node::set_nothrow_flag): New.
27733 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27734 functions compiled with non-call exceptions that binds to current
27735 def.
27736 (propagate_nothrow): Be safe WRT interposition.
27737 * cgraph.h (set_nothrow_flag): Update prototype.
27738
27739 2016-04-18 Jan Hubicka <jh@suse.cz>
27740
27741 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27742 max_loop_iterations_int.
27743 (tree_unswitch_outer_loop): Likewise.
27744
27745 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27746
27747 PR tree-optimization/69489
27748 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27749 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27750 Revise dump message.
27751 (if_convertible_bb_p): Remove check on edge count of basic block's
27752 predecessors.
27753
27754 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27755
27756 PR tree-optimization/56625
27757 PR tree-optimization/69489
27758 * tree-data-ref.h (DR_INNERMOST): New macro.
27759 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27760 hashing struct innermost_loop_behavior.
27761 (ref_DR_map): Remove.
27762 (innermost_DR_map): New map.
27763 (baseref_DR_map): Revise comment.
27764 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27765 to innermost_DR_map accroding to its innermost loop behavior.
27766 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27767 to its innermost loop behavior.
27768 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27769 Add initialization for innermost_DR_map. Record memory reference
27770 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27771 have innermost loop behavior.
27772 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27773 innermost_DR_map.
27774
27775 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27776
27777 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27778 *lea_general_1. Use explicit SWI12 mode interator.
27779 (*lea<mode>_general_2): Rename from *lea_general_2.
27780 Use explicit SWI12 mode interator.
27781 (*lea<mode>_general_3): Rename from *lea_general_3.
27782 Use explicit SWI12 mode interator.
27783 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27784 Use explicit SWI12 mode interator.
27785 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27786 Use explicit SWI48 mode interator.
27787
27788 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27789
27790 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27791 Short-cut unaligned load and store cases. Handle all integer
27792 vector modes.
27793 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27794 and store cases. Call ix86_avx256_split_vector_move_misalign
27795 directly without checking mode class.
27796
27797 2016-04-20 Andrew Pinski <apinski@cavium.com>
27798 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27799
27800 PR target/64971
27801 * config/aarch64/aarch64.md (sibcall): Force call
27802 address to be DImode for ILP32.
27803 (sibcall_value): Likewise.
27804
27805 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27806
27807 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27808
27809 2016-04-20 Richard Biener <rguenther@suse.de>
27810
27811 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27812 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27813 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27814 (maybe_push_res_to_seq): Adjust.
27815 * gimple-fold.c (maybe_build_generic_op): Likewise.
27816
27817 2016-04-20 Marek Polacek <polacek@redhat.com>
27818
27819 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27820 rather than true.
27821
27822 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27823
27824 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27825 use kmovw to support AVX512F target.
27826
27827 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27828
27829 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27830
27831 2016-04-20 Marek Polacek <polacek@redhat.com>
27832
27833 PR tree-optimization/70725
27834 * tree-if-conv.c (is_false_predicate): New function.
27835 (predicate_mem_writes): Use it.
27836
27837 2016-04-20 Richard Biener <rguenther@suse.de>
27838
27839 PR tree-optimization/70726
27840 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27841 shift amounts from a pattern stmt operand.
27842
27843 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27844
27845 PR target/70674
27846 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27847 stack_restore_from_fpr pattern when restoring r15.
27848 (s390_optimize_prologue): Strip away the memory barrier in the
27849 parallel when trying to get rid of restore insns.
27850 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27851 definition for loading the stack pointer from an FPR. Compared to
27852 the normal move insn this pattern includes a full memory barrier.
27853
27854 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27855
27856 PR middle-end/70680
27857 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27858 implicitly linear or lastprivate iterator on the outer context.
27859
27860 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27861
27862 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27863 alignment check.
27864 * config/i386/i386.md (ssememalign): Removed.
27865 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27866
27867 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27868
27869 PR target/69201
27870 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27871 const short * to __builtin_ia32_loaddquhi512_mask.
27872 (_mm512_maskz_loadu_epi16): Likewise.
27873 (_mm512_mask_storeu_epi16): Pass short * to
27874 __builtin_ia32_storedquhi512_mask.
27875 (_mm512_mask_loadu_epi8): Pass const char * to
27876 __builtin_ia32_loaddquqi512_mask.
27877 (_mm512_maskz_loadu_epi8): Likewise.
27878 (_mm512_mask_storeu_epi8): Pass char * to
27879 __builtin_ia32_storedquqi512_mask.
27880 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27881 const double * to __builtin_ia32_loadupd512_mask.
27882 (_mm512_mask_loadu_pd): Likewise.
27883 (_mm512_maskz_loadu_pd): Likewise.
27884 (_mm512_storeu_pd): Pass double * to
27885 __builtin_ia32_storeupd512_mask.
27886 (_mm512_mask_storeu_pd): Likewise.
27887 (_mm512_loadu_ps): Pass const float * to
27888 __builtin_ia32_loadups512_mask.
27889 (_mm512_mask_loadu_ps): Likewise.
27890 (_mm512_maskz_loadu_ps): Likewise.
27891 (_mm512_storeu_ps): Pass float * to
27892 __builtin_ia32_storeups512_mask.
27893 (_mm512_mask_storeu_ps): Likewise.
27894 (_mm512_mask_loadu_epi64): Pass const long long * to
27895 __builtin_ia32_loaddqudi512_mask.
27896 (_mm512_maskz_loadu_epi64): Likewise.
27897 (_mm512_mask_storeu_epi64): Pass long long *
27898 to __builtin_ia32_storedqudi512_mask.
27899 (_mm512_loadu_si512): Pass const int * to
27900 __builtin_ia32_loaddqusi512_mask.
27901 (_mm512_mask_loadu_epi32): Likewise.
27902 (_mm512_maskz_loadu_epi32): Likewise.
27903 (_mm512_storeu_si512): Pass int * to
27904 __builtin_ia32_storedqusi512_mask.
27905 (_mm512_mask_storeu_epi32): Likewise.
27906 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27907 char * to __builtin_ia32_storedquqi256_mask.
27908 (_mm_mask_storeu_epi8): Likewise.
27909 (_mm256_mask_loadu_epi16): Pass const short * to
27910 __builtin_ia32_loaddquhi256_mask.
27911 (_mm256_maskz_loadu_epi16): Likewise.
27912 (_mm_mask_loadu_epi16): Pass const short * to
27913 __builtin_ia32_loaddquhi128_mask.
27914 (_mm_maskz_loadu_epi16): Likewise.
27915 (_mm256_mask_loadu_epi8): Pass const char * to
27916 __builtin_ia32_loaddquqi256_mask.
27917 (_mm256_maskz_loadu_epi8): Likewise.
27918 (_mm_mask_loadu_epi8): Pass const char * to
27919 __builtin_ia32_loaddquqi128_mask.
27920 (_mm_maskz_loadu_epi8): Likewise.
27921 (_mm256_mask_storeu_epi16): Pass short * to.
27922 __builtin_ia32_storedquhi256_mask.
27923 (_mm_mask_storeu_epi16): Pass short * to.
27924 __builtin_ia32_storedquhi128_mask.
27925 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27926 const double * to __builtin_ia32_loadupd256_mask.
27927 (_mm256_maskz_loadu_pd): Likewise.
27928 (_mm_mask_loadu_pd): Pass onst double * to
27929 __builtin_ia32_loadupd128_mask.
27930 (_mm_maskz_loadu_pd): Likewise.
27931 (_mm256_mask_storeu_pd): Pass double * to
27932 __builtin_ia32_storeupd256_mask.
27933 (_mm_mask_storeu_pd): Pass double * to
27934 __builtin_ia32_storeupd128_mask.
27935 (_mm256_mask_loadu_ps): Pass const float * to
27936 __builtin_ia32_loadups256_mask.
27937 (_mm256_maskz_loadu_ps): Likewise.
27938 (_mm_mask_loadu_ps): Pass const float * to
27939 __builtin_ia32_loadups128_mask.
27940 (_mm_maskz_loadu_ps): Likewise.
27941 (_mm256_mask_storeu_ps): Pass float * to
27942 __builtin_ia32_storeups256_mask.
27943 (_mm_mask_storeu_ps): ass float * to
27944 __builtin_ia32_storeups128_mask.
27945 (_mm256_mask_loadu_epi64): Pass const long long * to
27946 __builtin_ia32_loaddqudi256_mask.
27947 (_mm256_maskz_loadu_epi64): Likewise.
27948 (_mm_mask_loadu_epi64): Pass const long long * to
27949 __builtin_ia32_loaddqudi128_mask.
27950 (_mm_maskz_loadu_epi64): Likewise.
27951 (_mm256_mask_storeu_epi64): Pass long long * to
27952 __builtin_ia32_storedqudi256_mask.
27953 (_mm_mask_storeu_epi64): Pass long long * to
27954 __builtin_ia32_storedqudi128_mask.
27955 (_mm256_mask_loadu_epi32): Pass const int * to
27956 __builtin_ia32_loaddqusi256_mask.
27957 (_mm256_maskz_loadu_epi32): Likewise.
27958 (_mm_mask_loadu_epi32): Pass const int * to
27959 __builtin_ia32_loaddqusi128_mask.
27960 (_mm_maskz_loadu_epi32): Likewise.
27961 (_mm256_mask_storeu_epi32): Pass int * to
27962 __builtin_ia32_storedqusi256_mask.
27963 (_mm_mask_storeu_epi32): Pass int * to
27964 __builtin_ia32_storedqusi128_mask.
27965 * config/i386/i386-builtin-types.def (PCSHORT): New.
27966 (PINT64): Likewise.
27967 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
27968 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
27969 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
27970 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
27971 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
27972 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
27973 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
27974 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
27975 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
27976 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
27977 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
27978 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
27979 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
27980 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
27981 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
27982 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
27983 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
27984 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
27985 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
27986 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
27987 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
27988 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
27989 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
27990 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
27991 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
27992 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
27993 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
27994 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
27995 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
27996 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
27997 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
27998 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
27999 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
28000 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
28001 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
28002 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
28003 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
28004 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
28005 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
28006 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
28007 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
28008 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
28009 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
28010 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
28011 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
28012 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
28013 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28014 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28015 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28016 use UNSPEC_STOREU.
28017 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28018 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28019 load nor store.
28020 (ix86_expand_vector_move_misalign): Likewise.
28021 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28022 to scalar function prototype for unaligned load/store builtins.
28023 (ix86_expand_special_args_builtin): Updated.
28024 * config/i386/sse.md (UNSPEC_LOADU): Removed.
28025 (UNSPEC_STOREU): Likewise.
28026 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28027 (VI_ULOADSTORE_F_AVX512VL): Likewise.
28028 (ssescalarsize): Handle V4TI, V2TI and V1TI.
28029 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28030 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28031 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28032 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28033 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28034 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28035 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28036 (<avx512>_storedqu<mode>_mask): Likewise.
28037 (*sse4_2_pcmpestr_unaligned): Likewise.
28038 (*sse4_2_pcmpistr_unaligned): Likewise.
28039 (*mov<mode>_internal): Renamed to ...
28040 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
28041 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28042 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28043 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28044
28045 2016-04-19 Richard Biener <rguenther@suse.de>
28046
28047 PR tree-optimization/70171
28048 * tree-ssa-phiprop.c: Include stor-layout.h.
28049 (phiprop_insert_phi): Handle the aggregate copy case.
28050 (propagate_with_phi): Likewise.
28051
28052 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28053
28054 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28055 instead of simplify_gen_subreg (... , 0).
28056 (ix86_delegitimize_address): Ditto.
28057 (ix86_split_divmod): Ditto.
28058 (ix86_split_copysign_const): Ditto.
28059 (ix86_split_copysign_var): Ditto.
28060 (ix86_expand_args_builtin): Ditto.
28061 (ix86_expand_round_builtin): Ditto.
28062 (ix86_expand_special_args_builtin): Ditto.
28063 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28064 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28065 (udivmodqi4): Ditto.
28066 (absneg splitters): Ditto.
28067 (*jcc_bt<mode>_1): Ditto.
28068
28069 2016-04-19 Richard Biener <rguenther@suse.de>
28070
28071 PR tree-optimization/70724
28072 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28073 restoring out from ...
28074 (free_scc_vn): ... here.
28075 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28076 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28077 tail merging.
28078 (pass_fre::execute): Restore SSA info.
28079
28080 2016-04-19 Richard Biener <rguenther@suse.de>
28081
28082 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28083 * gimple-walk.c (walk_gimple_op): Initialize it.
28084 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28085 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28086 remapping SSA names of defs.
28087 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28088 adjustment.
28089
28090 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28091
28092 PR middle-end/70689
28093 * lra-constraints.c (equiv_substition_p): New.
28094 (process_alt_operands): Use it.
28095 (swap_operands): Swap it.
28096 (curr_insn_transform): Update it.
28097
28098 2016-04-18 Michael Matz <matz@suse.de>
28099
28100 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28101 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28102 * tree-core.h (tree_type_common.align): Use bit-field.
28103 (tree_type_common.spare): New.
28104 (tree_decl_common.off_align): Make smaller.
28105 (tree_decl_common.align): Use bit-field.
28106
28107 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28108 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28109 (scan_sharing_clauses): Ditto.
28110 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28111 (omp_finish_file): Ditto.
28112 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28113 (layout_decl): Ditto.
28114 (relayout_decl): Ditto.
28115 (finalize_record_size): Use SET_TYPE_ALIGN.
28116 (finalize_type_size): Ditto.
28117 (finish_builtin_struct): Ditto.
28118 (layout_type): Ditto.
28119 (initialize_sizetypes): Ditto.
28120 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28121 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28122 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28123 (get_chain_field): Ditto.
28124 (get_trampoline_type): Ditto.
28125 (get_nl_goto_field): Ditto.
28126 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28127 SET_DECL_ALIGN.
28128 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28129 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28130 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28131 (build_qualified_type): Use SET_TYPE_ALIGN.
28132 (build_aligned_type, build_range_type_1): Ditto.
28133 (build_atomic_base): Ditto.
28134 (build_common_tree_nodes): Ditto.
28135 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28136 (expand_one_stack_var_at): Ditto.
28137 * coverage.c (build_var): Use SET_DECL_ALIGN.
28138 * except.c (init_eh): Ditto.
28139 * function.c (assign_parm_setup_block): Ditto.
28140 * symtab.c (increase_alignment_1): Ditto.
28141 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28142 * tree-vect-stmts.c (ensure_base_align): Ditto.
28143 * varasm.c (align_variable): Ditto.
28144 (assemble_variable): Ditto.
28145 (build_constant_desc): Ditto.
28146 (output_constant_def_contents): Ditto.
28147
28148 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28149 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28150 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28151 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28152 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28153
28154 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28155
28156 PR target/70708
28157 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28158 replace %vmovsd with "%vmovq".
28159 (vec_concatv2df): Likewise.
28160
28161 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28162
28163 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28164 (*vec_extractv2si_0): Ditto.
28165 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28166 (zero_extended_scalar_load_operand splitters): Ditto.
28167 (vec_extract splitters): Ditto.
28168 (*vec_extractv4si_0_zext): Ditto.
28169 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28170 and lowpart_subreg.
28171 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28172 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28173 (*sse4_1_extractps): Use lowpart_subreg.
28174 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28175
28176 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28177
28178 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28179 gld requirements.
28180 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28181 Mention Solaris 11 packaging changes.
28182 Update gas and gld requirements.
28183 Remove reference to pre-Solaris 10 bug.
28184 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28185 systems and bugs.
28186 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28187 with cc.
28188
28189 2016-04-17 Jan Hubicka <jh@suse.cz>
28190
28191 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28192 max_loop_iterations_int.
28193
28194 2016-04-18 Richard Biener <rguenther@suse.de>
28195
28196 PR tree-optimization/43434
28197 * tree-ssa-structalias.c (struct vls_data): New.
28198 (visit_loadstore): Handle all pointer-based accesses.
28199 (compute_dependence_clique): Compute a bitmap of restrict tags
28200 assigned bases and pass it to visit_loadstore.
28201
28202 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28203
28204 PR target/70711
28205 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28206 armv8.1-a and armv8.1-a+crc.
28207
28208 2016-04-18 Richard Biener <rguenther@suse.de>
28209
28210 PR tree-optimization/70701
28211 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28212 references after translating through a memcpy.
28213
28214 2016-04-18 Richard Biener <rguenther@suse.de>
28215
28216 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28217 (compute_antic): ... here. For partial antic use regular
28218 postorder and scrap iteration.
28219 (compute_partial_antic_aux): Remove unused return value.
28220 (init_pre): Do not allocate postorder.
28221 (fini_pre): Do not free postorder.
28222
28223 2016-04-18 Richard Biener <rguenther@suse.de>
28224
28225 PR middle-end/37870
28226 * expmed.c (extract_bit_field_1): Remove broken case
28227 using a wider MODE_INT mode.
28228
28229 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28230
28231 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28232 unless compiling with at least GCC-4.8.
28233
28234 2016-04-17 Jan Hubicka <jh@suse.cz>
28235
28236 PR bootstrap/70706
28237 * graphite.c (graphite_finalize): Update call to
28238 tree_estimate_probability.
28239 * predict.h (tree_estimate_probability): Update prototype.
28240
28241 2016-04-17 Jan Hubicka <jh@suse.cz>
28242
28243 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28244 (tree_estimate_probability): Likewise.
28245 (pass_profile::execute): Update.
28246 (report_predictor_hitrates): New function.
28247 * profile.c (compute_branch_probabilities): Use it.
28248 * predict.h (report_predictor_hitrates): Declare.
28249
28250 2016-04-17 Jan Hubicka <jh@suse.cz>
28251
28252 PR ipa/70018
28253 * cgraph.h (cgraph_node::set_const_flag,
28254 cgraph_node::set_pure_flag): Update prototype to return bool;
28255 update comment.
28256 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28257 of interposable symbol are interposable, too.
28258 (cgraph_set_const_flag_1): Rename to ...
28259 (set_const_flag_1): ... this one; change to self recursive function
28260 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28261 clearnig the flag in all variants and also virtual thunks of const
28262 functions are pure; track if any change was done.
28263 (cgraph_node::set_const_flag): Update.
28264 (struct set_pure_flag_info): New struct.
28265 (cgraph_set_pure_flag_1): Rename to ...
28266 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28267 rather than pointer encoded flags; track if any changes was done;
28268 handle correctly clearning flag and setting flag of aliases already
28269 declared const.
28270 (cgraph_node::set_pure_flag): Update.
28271 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28272
28273 2016-04-17 Tom de Vries <tom@codesourcery.com>
28274
28275 PR other/70433
28276 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28277 backslash in label.
28278
28279 2016-04-17 Tom de Vries <tom@codesourcery.com>
28280
28281 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28282 '{}<> ' as escape-for-record.
28283
28284 2016-04-17 Tom de Vries <tom@codesourcery.com>
28285
28286 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28287 structure.
28288
28289 2016-04-17 Tom de Vries <tom@codesourcery.com>
28290
28291 PR other/70185
28292 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28293 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28294 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28295 * passes.c (finish_optimization_passes): Only call
28296 finish_graph_dump_file if dfi->graph_dump_initialized.
28297 (execute_function_dump, pass_init_dump_file): Use
28298 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28299
28300 2016-04-17 Tom de Vries <tom@codesourcery.com>
28301
28302 PR tree-optimization/70256
28303 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28304 (debug_varmap): New function.
28305
28306 2016-04-17 Tom de Vries <tom@codesourcery.com>
28307
28308 PR other/70183
28309 * passes.c (pass_manager::register_pass): Propagate pflags.
28310
28311 2016-04-17 Tom de Vries <tom@codesourcery.com>
28312
28313 PR other/68875
28314 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28315 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28316 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28317 check if it's equal to p_start.
28318 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28319
28320 2016-04-15 Jan Hubicka <jh@suse.cz>
28321
28322 PR ipa/70018
28323 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28324 function does not bind to current def.
28325 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28326 handle conservatively calls to functions that does not need to bind
28327 to current def.
28328 (check_call): Update call of worse_state.
28329 (ignore_edge_for_nothrow): Update.
28330 (ignore_edge_for_pure_const): Likewise.
28331 (propagate_pure_const): Update calls to worse_state.
28332 (skip_function_for_local_pure_const): Reformat comments.
28333
28334 2016-04-15 Jan Hubicka <jh@suse.cz>
28335
28336 PR ipa/70018
28337 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28338 (cgraph_node::function_symbol): Likewise.
28339 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28340 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28341 (symtab_node::ultimate_alias_target): Add REF parameter.
28342 (symtab_node::binds_to_current_def_p): Declare.
28343 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28344 (cgraph_node::function_symbol): Likewise.
28345 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28346 (cgraph_node::get_availability): Likewise.
28347 (cgraph_edge::binds_to_current_def_p): New inline function.
28348 (varpool_node::get_availability): Add REF parameter.
28349 (varpool_node::ultimate_alias_target): Likewise.
28350 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28351 (symtab_node::binds_to_current_def_p): Likewise.
28352 * varpool.c (varpool_node::get_availability): Likewise.
28353
28354 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28355
28356 PR target/70662
28357 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28358 Fix mode size check.
28359
28360 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28361
28362 * BASE-VER: Set to 7.0.0.
28363
28364 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28365
28366 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28367
28368 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28369
28370 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28371 architecture revisions.
28372
28373 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28374
28375 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28376 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28377 * config/i386/i386.md (stack decrement to push peepholes): Guard
28378 with !x86_using_red_zone ().
28379
28380 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28381
28382 PR c++/70675
28383 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28384 to dump_generic_node.
28385 (NIY): Pass also flags to do_niy.
28386
28387 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28388
28389 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28390 (simd_clone_vector_of_formal_parm_types)
28391 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28392 (simd_clone_mangle, simd_clone_create)
28393 (simd_clone_adjust_return_type, create_tmp_simd_array)
28394 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28395 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28396 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28397 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28398 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28399 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28400 * omp-simd-clone.c: ... this new file.
28401 (simd_clone_vector_of_formal_parm_types): Make it static.
28402 * Makefile.in (OBJS): Add omp-simd-clone.o.
28403
28404 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28405
28406 PR target/70662
28407 * config/i386/sse.md: Use proper memory operand modifiers.
28408
28409
28410 2016-04-15 Richard Biener <rguenther@suse.de>
28411 Alan Modra <amodra@gmail.com>
28412
28413 PR tree-optimization/70130
28414 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28415 when alignment stays not the same and no not use the realign
28416 scheme then.
28417
28418 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28419
28420 PR target/70669
28421 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28422 direct move handlers for KFmode. Change TFmode handlers test from
28423 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28424
28425 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28426
28427 PR c++/70594
28428 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28429 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28430 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28431 * tree-ssa-live.c (remove_unused_scope_block_p): When
28432 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28433 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28434 block_ultimate_origin is FUNCTION_DECL.
28435 (remove_unused_locals): If current_function_decl is
28436 polymorphic_ctor_dtor_p, pass initial true to
28437 remove_unused_scope_block_p' is_ctor_dtor_block.
28438
28439 2016-04-14 Martin Sebor <msebor@redhat.com>
28440
28441 PR c++/69517
28442 PR c++/70019
28443 PR c++/70588
28444 * doc/extend.texi (Variable Length): Revert.
28445
28446 2016-04-14 Marek Polacek <polacek@redhat.com>
28447 Jan Hubicka <hubicka@ucw.cz>
28448
28449 PR c++/70029
28450 * tree.c (verify_type): Disable the canonical type of main variant
28451 check.
28452
28453 2016-04-14 Jason Merrill <jason@redhat.com>
28454
28455 * cfgexpand.c, expr.c: Revert previous change.
28456
28457 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28458
28459 PR middle-end/70643
28460 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28461 when building a mem ref for the incoming reduction variable.
28462
28463 2016-04-14 Richard Biener <rguenther@suse.de>
28464
28465 PR tree-optimization/70614
28466 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28467 loop if the evolution dropped to chrec_dont_know.
28468 (interpret_condition_phi): Likewise.
28469
28470 2016-04-14 Richard Biener <rguenther@suse.de>
28471
28472 PR tree-optimization/70623
28473 * tree-ssa-pre.c (changed_blocks): Make global ...
28474 (compute_antic): ... local here. Move and fix worklist
28475 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28476 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28477 worklist handling, dump when ANTIC_IN changed.
28478 (compute_partial_antic_aux): Remove worklist handling.
28479 (init_pre): Do not compute post dominators. Add a comment about
28480 the CFG order chosen.
28481 (fini_pre): Do not free post dominators.
28482
28483 2016-04-13 Martin Sebor <msebor@redhat.com>
28484
28485 PR c++/69517
28486 PR c++/70019
28487 PR c++/70588
28488 * doc/extend.texi (Variable Length): Document C++ specifics.
28489
28490 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28491
28492 PR c++/70641
28493 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28494 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28495 eh edges have been purged.
28496
28497 PR c++/70594
28498 * tree-sra.c (create_access_replacement,
28499 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28500 gets fancy name.
28501 * tree-pretty-print.c (dump_fancy_name): New function.
28502 (dump_decl_name, dump_generic_node): Use it.
28503
28504 2016-04-13 Jason Merrill <jason@redhat.com>
28505
28506 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28507 * expr.c (expand_expr_real_1): Likewise.
28508
28509 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28510
28511 * config/i386/i386.md (kunpckhi): Swap operands.
28512 (kunpcksi): Likewise.
28513 (kunpckdi): Likewise.
28514 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28515 (vec_pack_trunc_<mode>): Likewise.
28516
28517 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28518
28519 PR debug/70628
28520 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28521
28522 PR middle-end/70633
28523 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28524 gimplification turns some element into non-constant.
28525
28526 PR debug/70628
28527 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28528 * explow.c (convert_memory_address_addr_space_1): No longer static,
28529 add NO_EMIT argument and don't call convert_modes if true, pass
28530 it down recursively, remove break after return.
28531 (convert_memory_address_addr_space): Adjust caller.
28532 * simplify-rtx.c (simplify_unary_operation_1): Call
28533 convert_memory_address_addr_space_1 instead of convert_memory_address,
28534 if it returns NULL, don't simplify.
28535
28536 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28537
28538 PR target/70630
28539 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28540
28541 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28542
28543 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28544 Bump the upper SIMDLEN limits, so that if the return type or
28545 characteristic type if the return type is void can be passed in
28546 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28547 allowed.
28548
28549 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28550
28551 PR target/70640
28552 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28553 Do not use "=" constraint on an input constraint.
28554 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28555 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28556 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28557 generates (neg (abs ...)) instead of (abs ...).
28558
28559 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28560
28561 PR rtl-optimization/70596
28562 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28563 just invalidate LRA data and reset them. Adjust dump wording.
28564
28565 2016-04-12 Martin Liska <mliska@suse.cz>
28566
28567 Revert
28568 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28569
28570 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28571 estimates here.
28572 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28573 max_loop_iterations_int.
28574 (tree_unswitch_outer_loop): Likewise.
28575 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28576 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28577
28578 2016-04-12 Tom de Vries <tom@codesourcery.com>
28579
28580 PR tree-optimization/68756
28581 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28582 instead of new_name.
28583
28584 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28585
28586 PR tree-optimization/70602
28587 * tree-sra.c (generate_subtree_copies): Don't write anything into
28588 constant pool decls.
28589
28590 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28591 regardless whether there are depend clauses or not.
28592
28593 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28594
28595 PR target/70381
28596 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28597 target attribute and pragma from changing the -mfloat128
28598 and -mfloat128-hardware options.
28599
28600 * doc/extend.texi (Additional Floating Types): Document PowerPC
28601 __float128 restrictions.
28602
28603 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28604
28605 PR target/70133
28606 * config/aarch64/driver-aarch64.c
28607 (aarch64_get_extension_string_for_isa_flags): New.
28608 (arch_extension): Rename to...
28609 (aarch64_arch_extension): ...This.
28610 (ext_to_feat_string): Rename to...
28611 (aarch64_extensions): ...This.
28612 (aarch64_core_data): Keep track of architecture extension flags.
28613 (cpu_data): Rename to...
28614 (aarch64_cpu_data): ...This.
28615 (aarch64_arch_driver_info): Keep track of architecture extension
28616 flags.
28617 (get_arch_name_from_id): Rename to...
28618 (get_arch_from_id): ...This, change return type.
28619 (host_detect_local_cpu): Update and reformat for renames, handle
28620 extensions through common infrastructure.
28621
28622 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28623
28624 PR target/70133
28625 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28626 track of a canonical flag name.
28627 (all_extensions): Likewise.
28628 (arch_to_arch_name): Also track extension flags enabled by the arch.
28629 (all_architectures): Likewise.
28630 (aarch64_parse_extension): Move to here.
28631 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28632 rework.
28633 (aarch64_rewrite_selected_cpu): Update for above change.
28634 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28635 are handled, such that the single explicit value enabled by an
28636 extension is kept seperate from the implicit values it also enables.
28637 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28638 to here.
28639 (aarch64_parse_extension): New.
28640 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28641 here to config/aarch64/aarch64-protos.h.
28642 (aarch64_parse_extension): Move from here to
28643 common/config/aarch64/aarch64-common.c.
28644 (aarch64_option_print): Update.
28645 (aarch64_declare_function_name): Likewise.
28646 (aarch64_start_file): Likewise.
28647 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28648 the canonical flag for extensions.
28649 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28650 flags.
28651
28652 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28653
28654 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28655 AARCH64_FL_CRC.
28656
28657 2016-04-09 Tom de Vries <tom@codesourcery.com>
28658
28659 PR tree-optimization/68953
28660 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28661 first to last subscript.
28662
28663 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28664
28665 PR tree-optimization/70586
28666 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28667 for any calls.
28668
28669 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28670
28671 PR lto/70289
28672 PR ipa/70348
28673 PR tree-optimization/70373
28674 PR middle-end/70533
28675 PR middle-end/70534
28676 PR middle-end/70535
28677 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28678 clauses for acc parallel reductions as necessary. Error on those
28679 that are private.
28680 * omp-low.c (scan_sharing_clauses): Don't install variables which
28681 are used in acc parallel reductions.
28682 (lower_rec_input_clauses): Remove dead code.
28683 (lower_oacc_reductions): Add support for reference reductions.
28684 (lower_reduction_clauses): Remove dead code.
28685 (lower_omp_target): Don't remap variables appearing in acc parallel
28686 reductions.
28687 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28688
28689 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28690
28691 PR middle-end/70593
28692 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28693 with multiple SSA_NAME defs, force the outputs other than first
28694 to be live before calling live_track_process_def on each output.
28695
28696 PR rtl-optimization/70574
28697 * fwprop.c (forward_propagate_and_simplify): Don't add
28698 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28699 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28700 paradoxical subregs within *loc.
28701
28702 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28703
28704 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28705 -ftree-parallelize-loops={0,1}.
28706 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28707 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28708 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28709 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28710 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28711
28712 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28713
28714 PR sanitizer/70541
28715 * asan.c (instrument_derefs): If we get unknown location, extract it
28716 with EXPR_LOCATION.
28717 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28718
28719 2016-04-08 Tom de Vries <tom@codesourcery.com>
28720
28721 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28722 implicit firstprivate clause.
28723
28724 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28725
28726 PR target/70566
28727 * config/arm/thumb2.md (tst + branch-> lsls + branch
28728 peephole below *orsi_not_shiftsi_si): Require that condition
28729 register is dead after the peephole.
28730 (second peephole after the above): Likewise.
28731
28732 2016-04-08 Alan Modra <amodra@gmail.com>
28733
28734 PR target/70117
28735 * builtins.c (fold_builtin_classify): For IBM extended precision,
28736 look at just the high-order double to test for NaN.
28737 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28738 test just the high double for Inf but both doubles for subnormal
28739 limit.
28740
28741 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28742
28743 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28744 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28745 node->simdclone->mask_mode != VOIDmode masks.
28746 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28747 earlier, use it instead of node->simdclone.
28748 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28749 Set clonei->mask_mode.
28750
28751 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28752
28753 PR c/70436
28754 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28755 Pass it through to cp_parser_already_scoped_statement.
28756 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28757 it through to cp_parser_statement.
28758 (cp_parser_statement): Pass IF_P through to
28759 cp_parser_iteration_statement.
28760 (cp_parser_pragma): Adjust call to
28761 cp_parser_iteration_statement.
28762
28763 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28764
28765 PR c/70436
28766 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28767 resolve a future -Wparentheses warning.
28768 * omp-low.c (scan_sharing_clauses): Likewise.
28769 * tree-parloops.c (eliminate_local_variables): Likewise.
28770
28771 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28772
28773 PR rtl-optimization/70398
28774 * lra-constraints.c (process_address_1): Check zero scale and code
28775 for reloading with zero scale.
28776
28777 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28778
28779 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28780 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28781
28782 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28783
28784 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28785 Add support for AVX512F clones, include them by default for
28786 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28787 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28788 up to 128.
28789
28790 PR middle-end/70550
28791 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28792 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28793 firstprivate clauses.
28794 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28795 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28796 (lower_omp_target): Set TREE_NO_WARNING for
28797 non-addressable possibly uninitialized vars which are copied into
28798 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28799
28800 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28801
28802 * config/pa/predicates.md (integer_store_memory_operand): Accept
28803 REG+D operands with a large offset when reload_in_progress is true.
28804 (floating_point_store_memory_operand): Likewise.
28805
28806 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28807
28808 PR c++/70336
28809 * match.pd (nested int casts): Limit to GIMPLE.
28810
28811 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28812
28813 PR ipa/66223
28814 * ipa-devirt.c (maybe_record_node): Fix comment; use
28815 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28816
28817 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28818
28819 PR rtl-optimization/70542
28820 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28821 if there are any uses other than insn or debug insns.
28822
28823 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28824 Jakub Jelinek <jakub@redhat.com>
28825
28826 PR tree-optimization/70509
28827 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28828 Shift HOST_WIDE_INT_1U instead of 1.
28829
28830 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28831
28832 PR tree-optimization/70509
28833 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28834 of the vector base type for index.
28835
28836 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28837
28838 PR target/70510
28839 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28840
28841 2016-04-05 Richard Biener <rguenther@suse.de>
28842
28843 PR tree-optimization/70526
28844 * tree-sra.c (build_ref_for_offset): Use prev_base to
28845 extract the alias pointer type.
28846
28847 2016-04-05 Richard Biener <rguenther@suse.de>
28848
28849 * dse.c (struct store_info): Remove alias_set member.
28850 (struct read_info_type): Likewise.
28851 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28852 spill_deleted, clear_alias_set_lookup): Remove.
28853 (get_group_info): Remove dead base == NULL_RTX case.
28854 (dse_step0): Remove initialization of removed variables.
28855 (delete_dead_store_insn): Reomve alias set dumping.
28856 (free_read_records): Remove alias_set handling.
28857 (canon_address): Remove alias_set_out parameter.
28858 (record_store): Remove spill_alias_set, it's always zero.
28859 (check_mem_read_rtx): Likewise.
28860 (dse_step2): Rename from ...
28861 (dse_step2_nospill): ... this. Adjust.
28862 (scan_stores): Rename from ...
28863 (scan_stores_nospill): ... this.
28864 (scan_reads): Rename from ...
28865 (scan_reads_nospill): ... this.
28866 (scan_stores_spill, scan_reads_spill): Remove.
28867 (dse_step3_scan): Remove for_spills argument which is always false.
28868 (dse_step3): Likewise.
28869 (dse_step5): Rename from ...
28870 (dse_step5_nospill): ... this. Remove alias_set handling.
28871 (rest_of_handle_dse): Adjust.
28872
28873 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28874
28875 PR target/70525
28876 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28877 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28878 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28879 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28880
28881 2016-04-05 Richard Biener <rguenther@suse.de>
28882
28883 PR middle-end/70499
28884 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28885 non-register type temporaries into SSA.
28886
28887 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28888
28889 PR ipa/66223
28890 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28891 calls when sanitizing.
28892 (possible_polymorphic_call_target_p): Fix formatting.
28893
28894 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28895 Jakub Jelinek <jakub@redhat.com>
28896
28897 PR middle-end/70457
28898 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28899 to ensure a call statement is compatible with a built-in's
28900 prototype.
28901 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28902 Likewise.
28903
28904 2016-04-04 Richard Biener <rguenther@suse.de>
28905
28906 PR rtl-optimization/70484
28907 * rtl.h (canon_output_dependence): Declare.
28908 * alias.c (canon_output_dependence): New function.
28909 * dse.c (record_store): Use canon_output_dependence rather
28910 than canon_true_dependence.
28911
28912 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28913
28914 PR ipa/68881
28915 * cgraph.h (symtab_node::copy_visibility_from): New function.
28916 * symtab.c (symtab_node::copy_visibility_from): New function.
28917 * ipa-visibility.c (optimize_weakref): New function.
28918 (function_and_variable_visibility): Use it.
28919
28920 2016-04-04 Martin Liska <mliska@suse.cz>
28921
28922 PR hsa/70402
28923 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28924 value that is really in range handled by SBR instruction.
28925 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28926 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28927 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28928
28929 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28930
28931 PR target/70416
28932 PR target/67391
28933 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28934 set, but not for SP_REG operands.
28935
28936 2016-04-02 Martin Sebor <msebor@redhat.com>
28937
28938 PR c++/67376
28939 * fold-const.c (maybe_nonzero_address): New function.
28940 (fold_comparison): Call it. Fold equality and relational
28941 expressions involving null pointers.
28942 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28943
28944 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28945
28946 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28947 the "Y" constraint (scalar FP 0.0 immediate).
28948
28949 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
28950 Add the "const_double" to the list of operand constraints.
28951
28952 2016-04-01 Jakub Jelinek <jakub@redhat.com>
28953
28954 PR rtl-optimization/70467
28955 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
28956 If low word of the last operand is 0, just emit addition/subtraction
28957 for the high word.
28958
28959 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28960
28961 PR target/70404
28962 * config/s390/s390.c (s390_expand_insv): Check for everything
28963 constant instead of just VOIDmode stuff.
28964
28965 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28966
28967 PR target/70496
28968 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
28969
28970 2016-04-01 Nathan Sidwell <nathan@acm.org>
28971
28972 * tree.def (TRY_CATCH_EXPR): Correct documentation.
28973
28974 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
28975
28976 PR rtl-optimization/70461
28977 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
28978 is necessary.
28979
28980 2016-03-31 Martin Liska <mliska@suse.cz>
28981
28982 PR hsa/70399
28983 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
28984 a tree value or an immediate integer value to a buffer
28985 that is eventually copied to a BRIG section.
28986 (emit_immediate_operand): Call the function here.
28987 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
28988 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
28989 of class' fields that are removed.
28990 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
28991 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
28992 m_brig_repr_size fields.
28993
28994 2016-03-31 Martin Liska <mliska@suse.cz>
28995
28996 PR hsa/70391
28997 * hsa-gen.c (hsa_function_representation::update_dominance): New
28998 function.
28999 (convert_addr_to_flat_segment): Likewise.
29000 (gen_hsa_memory_set): New alignment argument.
29001 (gen_hsa_ctor_assignment): Likewise.
29002 (gen_hsa_insns_for_single_assignment): Provide alignment
29003 to gen_hsa_ctor_assignment.
29004 (gen_hsa_insns_for_direct_call): Add new argument.
29005 (expand_lhs_of_string_op): New function.
29006 (expand_string_operation_builtin): Likewise.
29007 (expand_memory_copy): New function.
29008 (expand_memory_set): New function.
29009 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
29010 (convert_switch_statements): Change signature.
29011 (generate_hsa): Use a return value of the function.
29012 (pass_gen_hsail::execute): Do not call
29013 convert_switch_statements here.
29014 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29015 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29016 (hsa_function_representation::update_dominance): New function.
29017
29018 2016-03-31 Martin Liska <mliska@suse.cz>
29019
29020 PR hsa/70391
29021 * hsa-brig.c (emit_directive_variable): Emit alignment
29022 according to hsa_symbol::m_align.
29023 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29024 (dump_hsa_symbol): Dump alignment of HSA symbols.
29025 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29026 (gen_hsa_addr_with_align): New function.
29027 (hsa_bitmemref_alignment): Use newly added function.
29028 (gen_hsa_insns_for_load): Likewise.
29029 (gen_hsa_insns_for_store): Likewise.
29030 (gen_hsa_memory_copy): New argument added.
29031 (gen_hsa_insns_for_single_assignment): Respect
29032 alignment for assignments processed via gen_hsa_memory_copy.
29033 (gen_hsa_insns_for_direct_call): Likewise.
29034 (gen_hsa_insns_for_return): Likewise.
29035 (gen_function_def_parameters): Set default alignment.
29036 * hsa.c (hsa_object_alignment): New function.
29037 (hsa_byte_alignment): Pasted function.
29038 * hsa.h (hsa_symbol::m_align): New field.
29039
29040 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29041
29042 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29043 scratch field for goto case.
29044
29045 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
29046
29047 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29048
29049 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29050
29051 PR target/70442
29052 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29053 (scalar_chain::convert_insn): Call convert_op for reg
29054 moves to handle undefined registers.
29055
29056 2016-03-31 Nathan Sidwell <nathan@acm.org>
29057
29058 PR c++/70393
29059 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29060 Assert we don't want to move backwards.
29061
29062 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29063
29064 PR target/70453
29065 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29066
29067 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29068
29069 PR rtl-optimization/70460
29070 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29071 with operand from REG_LABEL_OPERAND, instead substitute
29072 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29073 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29074
29075 2016-03-31 Martin Liska <mliska@suse.cz>
29076
29077 * passes.c (execute_one_pass): Do not call
29078 todo_after for a discarded function.
29079
29080 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29081
29082 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29083 (no_cost, infinite_cost): Initialize the new field.
29084 (get_computation_cost_at): Record setup cost.
29085 (determine_use_iv_cost_address): Skip cost computation for sub
29086 uses if we can estimate it without losing accuracy.
29087
29088 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29089
29090 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29091 estimates here.
29092 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29093 max_loop_iterations_int.
29094 (tree_unswitch_outer_loop): Likewise.
29095 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29096 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29097
29098 2016-03-30 Richard Biener <rguenther@suse.de>
29099
29100 PR middle-end/70450
29101 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29102
29103 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29104
29105 PR target/70421
29106 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29107 in gen_blendm expander.
29108
29109 2016-03-30 Nick Clifton <nickc@redhat.com>
29110
29111 PR target/62254
29112 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29113 case where we are already provided with an SImode SUBREG.
29114
29115 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29116
29117 PR target/70439
29118 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29119 conflict between DRAP register and __builtin_eh_return.
29120
29121 2016-03-30 Michael Matz <matz@suse.de>
29122 Richard Biener <rguenther@suse.de>
29123
29124 PR ipa/12392
29125 * ipa-polymorphic-call.c (struct type_change_info): Change
29126 speculative to an unsigned allowing to limit the work we do.
29127 (csftc_abort_walking_p): New inline function..
29128 (check_stmt_for_type_change): Limit the number of may-defs
29129 skipped for speculative devirtualization to
29130 max-speculative-devirt-maydefs.
29131 * params.def (max-speculative-devirt-maydefs): New param.
29132 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29133
29134 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29135
29136 PR target/63890
29137 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29138 and TARGET_MACHO.
29139
29140 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29141
29142 PR tree-optimization/59124
29143 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29144 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29145
29146 2016-03-29 Jeff Law <law@redhat.com>
29147
29148 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29149
29150 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29151
29152 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29153 to HOST_WIDE_INT.
29154
29155 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29156
29157 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29158 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29159 gcrt0.o if linking dynamically.
29160
29161 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29162
29163 PR ipa/70283
29164 * ipa-devirt.c (methods_equal_p): New function.
29165 (compare_virtual_tables): Use it.
29166 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29167 * cgraphclones.c (clone_function_name_1): Use
29168 symbol_table::symbol_suffix_separator.
29169 * coverage.c (build_var): Likewise.
29170 * symtab.c (symbol_table::symbol_suffix_separator): New.
29171
29172 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29173
29174 PR rtl-optimization/70429
29175 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29176 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29177 mode != result_mode.
29178
29179 PR c++/70353
29180 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29181
29182 PR tree-optimization/70405
29183 * ssa-iterators.h (num_imm_uses): Add missing braces.
29184
29185 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29186
29187 PR rtl-optimization/68695
29188 * ira-color.c (allocno_copy_cost_saving): New.
29189 (improve_allocation): Use it.
29190
29191 2016-03-29 Richard Henderson <rth@redhat.com>
29192
29193 PR middle-end/70355
29194 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29195
29196 2016-03-29 Richard Biener <rguenther@suse.de>
29197
29198 PR middle-end/70424
29199 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29200 use alignment returned by get_pointer_alignment_1 if it is
29201 bigger than BITS_PER_UNIT.
29202 * builtins.c (get_pointer_alignment_1): Do not return true
29203 for alignment extracted from SSA info.
29204
29205 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29206
29207 * config/ft32/ft32.opt (mnodiv): New.
29208 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29209 * doc/invoke.texi (FT32 Options -mnodiv): New.
29210
29211 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29212
29213 PR target/70406
29214 * config/i386/i386.md (define_split, andn): Fix modes.
29215
29216 2016-03-26 Richard Biener <rguenther@suse.de>
29217 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29218
29219 PR ipa/70366
29220 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29221 instead of
29222 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29223 as 2nd argument to cl_optimization_restore().
29224
29225 2016-03-25 Richard Henderson <rth@redhat.com>
29226
29227 PR target/70120
29228 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29229 * config/aarch64/aarch64-protos.h: Declare it.
29230 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29231
29232 2016-03-25 Alan Modra <amodra@gmail.com>
29233
29234 PR target/70052
29235 * config/rs6000/constraints.md (j): Simplify.
29236 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29237 decimal float 0.D.
29238 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29239 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29240 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29241 in all constraint alternatives.
29242 (movtd_64bit_nodm): Delete "j" constraint alternative.
29243
29244 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29245
29246 * tree-ssa-propagate.c: Enhance docs for
29247 SSA_PROP_NOT_INTERESTING.
29248
29249 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29250
29251 * doc/extend.texi: Fix typo in documentation to pure attribute.
29252
29253 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29254
29255 PR target/70319
29256 * config/pa/pa.md (bswapdi2): Use a scratch register.
29257
29258 2016-03-24 Richard Henderson <rth@redhat.com>
29259
29260 PR middle-end/69845
29261 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29262 overflow.
29263
29264 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29265
29266 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29267 using ix86_expand_binary_operator instead of gen_andsi3.
29268
29269 2016-03-24 Richard Biener <rguenther@suse.de>
29270
29271 PR tree-optimization/70396
29272 * tree-vect-stmts.c (vectorizable_comparison): Use
29273 get_vectype_for_scalar_type.
29274
29275 2016-03-24 Richard Biener <rguenther@suse.de>
29276
29277 PR middle-end/70370
29278 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29279 with register bases.
29280
29281 2016-03-24 Richard Biener <rguenther@suse.de>
29282
29283 PR tree-optimization/70372
29284 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29285 build_all_ones_cst to also handle vector types correctly.
29286
29287 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29288
29289 PR target/70381
29290 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29291 -mfloat128 here.
29292
29293 2016-03-23 Marek Polacek <polacek@redhat.com>
29294
29295 PR c++/69884
29296 * doc/invoke.texi: Document -Wignored-attributes.
29297
29298 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29299
29300 PR tree-optimization/69042
29301 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29302 parameter from 30 to 40.
29303
29304 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29305
29306 PR tree-optimization/69042
29307 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29308 for use with constant offset stripped in base.
29309
29310 2016-03-23 Richard Biener <rguenther@suse.de>
29311
29312 PR middle-end/70251
29313 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29314 mode compatibility check.
29315 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29316
29317 2016-03-23 Jeff Law <law@redhat.com>
29318
29319 PR tree-optimization/64058
29320 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29321 CONFLICT_COUNT.
29322 (struct ssa_conflicts): Move up earlier in the file.
29323 (conflicts_, var_map_): New static variables.
29324 (initialize_conflict_count): New function to initialize the
29325 CONFLICT_COUNT field for each conflict pair.
29326 (compare_pairs): Lazily initialize the conflict count and use it
29327 as the first tie-breaker.
29328 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29329 and wipe conflicts_ and map_ around the call to qsort. Remove
29330 special case for 2 coalesce pairs.
29331 * bitmap.c (bitmap_count_unique_bits): New function.
29332 (bitmap_count_bits_in_word): New function, extracted from
29333 bitmap_count_bits.
29334 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29335 * bitmap.h (bitmap_count_unique_bits): Declare it.
29336
29337 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29338
29339 PR target/69917
29340 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29341 transparent alias chain for decl assembler name.
29342 * config/sol2.c (solaris_assemble_visibility): Likewise.
29343
29344 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29345
29346 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29347 duration.
29348 (v10_fdivs): Likewise.
29349 (v10_fdivd): Likewise.
29350
29351 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29352
29353 PR driver/70132
29354 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29355 to not call fclose twice on file.
29356
29357 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29358
29359 PR tree-optimization/70354
29360 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29361 oprnd0 is wider than oprnd1 and there is a cast from the wider
29362 type to oprnd1, mask it with the mask of the narrower type.
29363
29364 PR target/70321
29365 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29366 Optimize TARGET_STV splitters, if high or low word of last argument
29367 is 0 or -1.
29368
29369 2016-03-22 Jeff Law <law@redhat.com>
29370
29371 PR target/70232
29372 tree-ssa-threadbackward.c
29373 (fsm_find_control_statement_thread_paths): Correctly distinguish
29374 between old style jump threads vs FSM jump threads.
29375
29376 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29377
29378 PR target/70302
29379 * config/i386/i386.c (scalar_chain::convert_op): Support
29380 uninitialized register usage case.
29381
29382 2016-03-22 Richard Biener <rguenther@suse.de>
29383
29384 PR middle-end/70251
29385 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29386 int...
29387 (capture::gen_transform): ... to change behavior when substituting
29388 a condition into cond or not-cond expr context.
29389 (dt_simplify::gen_1): Adjust.
29390 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29391 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29392 last change and instead change to
29393 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29394 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29395
29396 2016-03-22 Anthony Green <green@moxielogic.com>
29397
29398 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29399 issue for moxiebox targets.
29400 (CC1PLUS_SPEC): Ditto.
29401
29402 2016-03-22 Richard Biener <rguenther@suse.de>
29403
29404 PR middle-end/70333
29405 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29406 in the wide type.
29407
29408 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29409
29410 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29411
29412 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29413
29414 PR target/70325
29415 * config/i386/i386.c (def_builtin): Handle
29416 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29417 bits.
29418 (const struct builtin_description bdesc_special_args[]):
29419 Remove duplicate ISA bits.
29420
29421 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29422
29423 PR target/70329
29424 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29425 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29426 in a way that works also for AVX512BW.
29427
29428 PR target/70300
29429 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29430 instead of source if operands[1] is xmm16 and above and
29431 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29432 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29433
29434 PR c++/70295
29435 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29436 on assign if (*from_p) is a comparison, set it to
29437 TREE_NO_WARNING (*from_p).
29438
29439 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29440
29441 PR middle-end/70326
29442 * lra.c (restore_scratches): Ignore deleted insns.
29443
29444 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29445 Jakub Jelinek <jakub@redhat.com>
29446
29447 PR tree-optimization/70317
29448 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29449 to HONOR_NANS.
29450
29451 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29452
29453 PR target/70327
29454 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29455 of ix86_expand_move.
29456 (movoi): Ditto.
29457 (movti): Use general_operand for operand 1 predicate.
29458
29459 2016-03-21 Martin Liska <mliska@suse.cz>
29460
29461 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29462 insns.
29463 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29464
29465 2016-03-21 Martin Liska <mliska@suse.cz>
29466
29467 PR ipa/70306
29468 * ipa-icf.c (sem_function::parse): Skip static
29469 constructors and destructors.
29470
29471 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29472
29473 PR target/70296
29474 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29475 function-like macro, peek following token(s) if it is followed
29476 by CPP_OPEN_PAREN token with optional padding in between, and
29477 if not, don't treat it like a macro.
29478
29479 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29480 Alexander Monakov <amonakov@ispras.ru>
29481
29482 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29483 for the stabs debug format.
29484
29485 2016-03-21 Richard Biener <rguenther@suse.de>
29486
29487 PR tree-optimization/70310
29488 * tree-vect-generic.c (expand_vector_condition): Fold the built
29489 condition.
29490
29491 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29492
29493 PR target/70293
29494 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29495 Block third alternative for AVX-512VL target,
29496
29497 2016-03-21 Martin Liska <mliska@suse.cz>
29498
29499 PR hsa/70234
29500 * hsa-brig.c (emit_function_directives): Mark unemitted
29501 global variables for emission.
29502 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29503 (get_symbol_for_decl): Likewise.
29504 * hsa.h (struct hsa_symbol): New flag.
29505
29506 2016-03-21 Richard Biener <rguenther@suse.de>
29507
29508 PR tree-optimization/70288
29509 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29510 we do not estimate unsimplified all-constant conditionals or
29511 switches as optimized away.
29512
29513 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29514
29515 PR rtl-optimization/69102
29516 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29517 when we have a readonly dependency context.
29518
29519 2016-03-18 Jeff Law <law@redhat.com>
29520
29521 PR rtl-optimization/70263
29522 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29523 (update_equiv_regs): When trying to move a store to after the insn
29524 that sets the source of the store, make sure the store occurs after
29525 the insn that sets the source of the store. When successful note
29526 the REG_EQUIV note created in the dump file.
29527
29528 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29529 Bernd Schmidt <bschmidt@redhat.com>
29530
29531 * doc/extend.texi: Document more potential problems with basic asms.
29532
29533 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29534
29535 PR rtl-optimization/70278
29536 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29537 VOIDmode.
29538
29539 2016-03-18 Jason Merrill <jason@redhat.com>
29540
29541 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29542
29543 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29544
29545 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29546 values to 128b regs.
29547
29548 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29549
29550 PR tree-optimization/70252
29551 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29552 boolean vector has a proper number of elements.
29553 (supportable_narrowing_operation): Likewise.
29554
29555 2016-03-18 Tom de Vries <tom@codesourcery.com>
29556
29557 PR ipa/70269
29558 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29559
29560 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29561
29562 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29563 instead of replace_rtx for DEBUG_INSNs.
29564
29565 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29566
29567 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29568 load type reservations.
29569
29570 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29571
29572 PR target/70188
29573 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29574 define_constraint for "Q" and "T" constraints.
29575
29576 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29577
29578 Tweak the pipeline model for Exynos M1
29579
29580 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29581 model.
29582
29583 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29584
29585 PR c/70264
29586 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29587 where one or both locations aren't within a line_map.
29588
29589 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29590
29591 PR driver/70192
29592 * opts.c (finish_options): Don't set flag_pie to the default if
29593 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29594 if it is -1.
29595
29596 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29597
29598 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29599 true as ALL_REGS argument to replace_rtx.
29600
29601 2016-03-17 Richard Biener <rguenther@suse.de>
29602
29603 PR debug/70271
29604 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29605 last.
29606
29607 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29608
29609 PR target/70245
29610 * rtl.h (replace_rtx): Add ALL_REGS argument.
29611 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29612 equality and assert mode is the same, instead of just rtx pointer
29613 equality.
29614 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29615 true as ALL_REGS argument to replace_rtx.
29616
29617 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29618
29619 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29620 for boolean vector with vector mode only.
29621 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29622
29623 2016-03-17 Nick Clifton <nickc@redhat.com>
29624
29625 PR target/70162
29626 * config/rx/rx.c (rx_print_integer): Print negative constants in
29627 decimal.
29628
29629 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29630
29631 PR target/70261
29632 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29633
29634 2016-03-16 Richard Henderson <rth@redhat.com>
29635 Richard Biener <rguenth@suse.de>
29636
29637 PR middle-end/70240
29638 PR middle-end/68215
29639 PR tree-opt/68714
29640 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29641 first operand as is_gimple_condexpr.
29642
29643 PR middle-end/70240
29644 PR middle-end/68215
29645 Revert r231575
29646 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29647 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29648 Do not gimplify the result.
29649 (do_unop): Adjust call to tree_vec_extract.
29650 (do_binop): Likewise.
29651 (do_compare): Likewise.
29652 (do_plus_minus): Likewise.
29653 (do_negate): Likewise.
29654 (expand_vector_condition): Likewise.
29655 (do_cond): Likewise.
29656
29657 2016-03-16 Richard Henderson <rth@redhat.com>
29658
29659 PR target/70048
29660 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29661 (aarch64_classify_address): Use it.
29662 (aarch64_legitimize_address): Force all subexpressions of PLUS
29663 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29664
29665 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29666 Richard Biener <rguenth@suse.de>
29667
29668 PR target/70245
29669 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29670 return to even if only REGNO is equal, and assert
29671 mode is the same.
29672
29673 2016-03-11 Jeff Law <law@redhat.com>
29674
29675 PR rtl-optimization/70224
29676 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29677
29678 2016-03-16 Richard Henderson <rth@redhat.com>
29679
29680 PR middle-end/70199
29681 * function.h (struct function): Add has_forced_label_in_static.
29682 * gimplify.c (force_labels_r): Set it.
29683 * lto-streamer-in.c (input_struct_function_base): Read it.
29684 * lto-streamer-out.c (output_struct_function_base): Write it.
29685 * tree-inline.c (has_label_address_in_static_1): Remove.
29686 (copy_forbidden): Remove fndecl parameter; test
29687 has_forced_label_in_static.
29688 (inline_forbidden_p): Update call to copy_forbidden.
29689 (tree_versionable_function_p): Likewise.
29690 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29691 (chkp_versioning): Likewise.
29692 * tree-inline.h (copy_forbidden): Update decl.
29693
29694 2016-03-16 Marek Polacek <polacek@redhat.com>
29695
29696 PR c/70093
29697 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29698 function being thunked if the result type doesn't have fixed size.
29699 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29700 doesn't have fixed size.
29701
29702 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29703
29704 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29705 reporting malformed loop nest.
29706
29707 2016-03-16 Tom de Vries <tom@codesourcery.com>
29708
29709 PR lto/70187
29710 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29711 nodes.length () == 1 test to before first nodes[0] access.
29712
29713 2016-03-16 Tom de Vries <tom@codesourcery.com>
29714
29715 PR tree-optimization/68715
29716 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29717 single_pred_p test.
29718
29719 2016-03-16 Tom de Vries <tom@codesourcery.com>
29720
29721 PR tree-optimization/68809
29722 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29723 are the same.
29724
29725 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29726 Sandra Loosemore <sandra@codesourcery.com>
29727
29728 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29729 on leaf attribute. Mention ELF interposition problems.
29730
29731 2016-03-16 Alan Modra <amodra@gmail.com>
29732
29733 PR rtl-optimization/69195
29734 PR rtl-optimization/47992
29735 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29736 Add comments.
29737
29738 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29739
29740 PR bootstrap/69513
29741 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29742
29743 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29744
29745 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29746
29747 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29748
29749 PR rtl-optimization/70222
29750 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29751 optimization if mode is different from result_mode, queue up masking
29752 of the result in outer_op. Formatting fix.
29753
29754 PR middle-end/70239
29755 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29756 of safe_grow.
29757
29758 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29759
29760 PR rtl-optimization/69032
29761 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29762 looping backwards over basic block insns.
29763
29764 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29765
29766 PR target/66660
29767 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29768 to non-speculative when propagating trap bits.
29769
29770 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29771
29772 PR rtl-optimization/63384
29773 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29774 DEBUG_INSN_P insns.
29775
29776 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29777
29778 PR target/64411
29779 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29780 factored out from ...
29781 (sched_analyze_insn): ... here.
29782 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29783 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29784 get_implicit_reg_pending_clobbers in it.
29785 (setup_id_reg_sets): Use setup_id_implicit_regs.
29786 (deps_init_id): Ditto.
29787
29788 2016-03-15 Tom de Vries <tom@codesourcery.com>
29789
29790 PR ipa/70161
29791 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29792 dump_file_name.
29793 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29794 execute_function_dump.
29795 (execute_one_pass): Don't dump function if it will be dumped after ipa
29796 transform.
29797
29798 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29799
29800 * genrecog.c (match_pattern_2): If pred is NULL don't call
29801 safe_predicate_mode on it.
29802
29803 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29804
29805 PR middle-end/70219
29806 * lra-constraints.c (delete_move_and_clobber): Change assertion
29807 to also allow dregno == 0.
29808
29809 2016-03-14 Richard Henderson <rth@redhat.com>
29810
29811 PR tree-opt/68714
29812 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29813 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29814 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29815 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29816 on vectors.
29817
29818 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29819
29820 PR target/70083
29821 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29822 regs.
29823 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29824 VOIDmode.
29825 * lra-constraints.c (split_reg): For hard regs, try to find the
29826 biggest single-register mode used in the function.
29827
29828 2016-03-14 Richard Biener <rguenther@suse.de>
29829
29830 PR tree-optimization/56365
29831 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29832 constants to compare against.
29833
29834 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29835
29836 PR target/70098
29837 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29838 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29839 (define_split for the GPR case): Use int_reg_operand instead of
29840 gpc_reg_operand for the output.
29841
29842 2016-03-14 Tom de Vries <tom@codesourcery.com>
29843
29844 PR tree-optimization/70045
29845 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29846 create_empty_if_region_on_edge argument.
29847
29848 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29849
29850 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29851 (STACK_CHECK_PROTECT): Likewise.
29852 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29853 (STACK_CHECK_PROTECT): Likewise.
29854 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29855 (STACK_CHECK_PROTECT): Likewise.
29856 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29857 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29858 (STACK_CHECK_PROTECT): Likewise.
29859
29860 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29861
29862 PR rtl-optimization/69307
29863 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29864 registers in modes that span more than one register.
29865
29866 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29867
29868 PR target/69614
29869 * lra-constraints.c (delete_move_and_clobber): New.
29870 (remove_inheritance_pseudos): Use it.
29871
29872 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29873
29874 PR ada/70017
29875 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29876 the libcall is LCT_THROW.
29877 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29878 for the checking routine.
29879
29880 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29881
29882 PR target/70131
29883 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29884 optimization if we have direct move.
29885 (roundu32<mode>2_fprs): Likewise.
29886
29887 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29888
29889 PR target/70123
29890 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29891 be rematerialized.
29892 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29893 Arguments swapped. All callers changed. Take reg_renumber into
29894 account, and Calculate and compare register ranges for hard regs.
29895
29896 2016-03-11 Jeff Law <law@redhat.com>
29897
29898 PR tree-optimization/70190
29899 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29900 Handle cases where we can not extract the taken edge, even though we
29901 found a constant value.
29902
29903 PR tree-optimization/64058
29904 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29905 (num_coalesce_pairs): Move up earlier in file.
29906 (find_coalesce_pair): Initialize the INDEX field for each pair
29907 discovered.
29908 (compare_pairs): No longer sort on the elements in each pair.
29909 Instead break ties with the index of the coalesce pair.
29910
29911 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29912
29913 PR target/70002
29914 * config/aarch64/aarch64-protos.h
29915 (aarch64_save_restore_target_globals): New prototype.
29916 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29917 Call the above when popping pragma.
29918 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29919 New function.
29920 (aarch64_set_current_function): Rewrite using the above.
29921
29922 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29923
29924 PR tree-optimization/70177
29925 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29926 (extract_ops_from_tree): ... this. In the 2 argument
29927 overload remove _1 suffix.
29928 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29929 (extract_ops_from_tree): ... this.
29930 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29931 Adjust callers.
29932 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29933 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29934 extract_ops_from_tree instead of 2 operand one.
29935
29936 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29937
29938 PR tree-optimization/70013
29939 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29940 for constant-pool entries.
29941
29942 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29943
29944 PR rtl-optimization/70174
29945 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29946 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29947
29948 PR tree-optimization/70169
29949 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
29950 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
29951 for unknown codes.
29952
29953 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29954 Jakub Jelinek <jakub@redhat.com>
29955
29956 PR target/70160
29957 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
29958 of uninitialized values.
29959
29960 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29961
29962 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
29963 define_expand.
29964 ("*trunctddd2"): New pattern definition.
29965 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
29966 TD->DD truncation.
29967
29968 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29969
29970 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
29971 definitions for BFP and DFP rounding modes.
29972 ("fixuns_truncdddi2", "fixuns_trunctddi2")
29973 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
29974 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
29975 ("fix_trunctf<mode>2"): Use the new constants instead of magic
29976 numbers.
29977
29978 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29979
29980 * config/s390/constraints.md: Adjust comment.
29981 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
29982 s390_decompose_addrstyle_without_index.
29983 * config/s390/predicates.md (shift_count_or_setmem_operand):
29984 Rename to setmem_operand.
29985 * config/s390/s390-protos.h
29986 (s390_decompose_shift_count): Rename to
29987 s390_decompose_addrstyle_without_index.
29988 * config/s390/s390.c (s390_decompose_shift_count)
29989 (s390_mem_constraint, print_shift_count_operand)
29990 (print_operand_address, print_operand): Rename
29991 s390_decompose_shift_count to
29992 s390_decompose_addrstyle_without_index and rename
29993 print_shift_count_operand to print_addrstyle_operand troughout the
29994 file.
29995 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
29996 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
29997 Rename shift_count_or_setmem_operand to setmem_operand.
29998 * config/s390/vx-builtins.md ("vec_insert<mode>")
29999 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
30000 nonmemory_operand.
30001
30002 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30003
30004 PR target/70168
30005 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30006 Handle overlapping retval and newval.
30007
30008 2016-03-10 Nick Clifton <nickc@redhat.com>
30009
30010 PR target/7044
30011 * config/aarch64/aarch64.c
30012 (aarch64_override_options_after_change_1): When forcing
30013 flag_omit_frame_pointer to be true, use a special value that can
30014 be detected if this function is called again, thus preventing
30015 flag_omit_leaf_frame_pointer from being forced to be false.
30016
30017 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30018
30019 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30020 Set x_flag_omit_leaf_frame_pointer when handling
30021 -momit-leaf-frame-pointer.
30022
30023 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30024
30025 PR lto/69589
30026 * cgraph.c (cgraph_node::dump): Dump split_part and
30027 indirect_call_target.
30028 * cgraph.h (cgraph_node): Add indirect_call_target flag.
30029 * ipa.c (has_addr_references_p): Cleanup.
30030 (is_indirect_call_target_p): New.
30031 (walk_polymorphic_call_targets): Do not mark virtuals that may be
30032 called indirectly as local.
30033 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30034
30035 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30036
30037 PR ipa/69630
30038 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30039 on cxa_pure_virtual.
30040
30041 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30042
30043 PR lto/69589
30044 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30045
30046 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30047
30048 PR lto/69589
30049 * tree.c (need_assembler_name_p): Only record main variant type names.
30050
30051 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30052
30053 PR target/70113.
30054 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30055 Always define to 0 or 1.
30056 (TARGET_FIX_ERR_A53_843419): New macro.
30057 * config/aarch64/aarch64-elf-raw.h
30058 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30059 * config/aarch64/aarch64-linux.h: Likewise.
30060 * config/aarch64/aarch64.c
30061 (aarch64_override_options_after_change_1): Do not default
30062 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30063 843419 is on.
30064 (aarch64_attributes): Handle fix-cortex-a53-843419.
30065 (aarch64_can_inline_p): Likewise.
30066 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30067
30068 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30069 Jakub Jelinek <jakub@redhat.com>
30070
30071 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30072 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30073 DECL_COMMONS if flag_unconstrained_commons is set.
30074 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30075 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30076 (funconstrained-commons): Document.
30077
30078 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30079
30080 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30081 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30082
30083 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30084
30085 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30086 has a proper number of elements.
30087
30088 2016-03-10 Alan Modra <amodra@gmail.com>
30089
30090 PR rtl-optimization/69195
30091 PR rtl-optimization/47992
30092 * ira.c (recorded_label_ref): Delete.
30093 (update_equiv_regs): Return void.
30094 (indirect_jump_optimize): New function.
30095 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30096 before regstat_compute_ri. Don't rebuild_jump_labels here.
30097 Delete update_regstat.
30098
30099 2016-03-10 Richard Biener <rguenther@suse.de>
30100
30101 PR tree-optimization/70128
30102 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30103 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30104
30105 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30106
30107 PR tree-optimization/70152
30108 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30109 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30110
30111 PR target/70086
30112 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30113 instead of gen_sse2_loadlpd.
30114 * config/i386/sse.md (*vec_concatv2df): Rename to...
30115 (vec_concatv2df): ... this.
30116
30117 PR tree-optimization/70127
30118 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30119
30120 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30121
30122 PR c/68473
30123 PR c++/70105
30124 * diagnostic-show-locus.c (compatible_locations_p): New function.
30125 (layout::layout): Sanitize ranges using compatible_locations_p.
30126
30127 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30128
30129 PR c/68473
30130 PR c++/70105
30131 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30132 location_range param with three const expanded_locations * and a
30133 bool.
30134 (layout::layout): Replace call to
30135 rich_location::lazily_expand_location with get_expanded_location.
30136 Extract the range and perform location expansion here, passing
30137 the results to the layout_range ctor.
30138 * diagnostic.c (source_range::debug): Delete.
30139 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30140 of rich_location::get_expanded_location.
30141 * gcc-rich-location.c (get_range_for_expr): Delete.
30142 (gcc_rich_location::add_expr): Reimplement to avoid the
30143 rich_location::add_range overload that took a location_range,
30144 passing a location_t instead.
30145
30146 2016-03-09 Richard Biener <rguenther@suse.de>
30147 Jakub Jelinek <jakub@redhat.com>
30148
30149 PR tree-optimization/70138
30150 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30151 Also skip vect_double_reduction_def.
30152
30153 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30154
30155 PR target/70049
30156 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30157 if the operand is "m".
30158
30159 2016-03-09 Nathan Sidwell <nathan@acm.org>
30160
30161 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30162
30163 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30164
30165 * config/i386/i386.c (processor_target_table): Fix cost table
30166 intialization order for znver1.
30167
30168 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30169
30170 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30171 - becuase -> because.
30172 * ipa-reference.c (ignore_module_statics): Likewise.
30173 * cgraph.c (cgraph_node::get_body): Likewise.
30174 * ipa-inline.c (early_inliner): Likewise.
30175 * ipa-devirt.c (types_same_for_odr): Likewise.
30176 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30177 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30178
30179 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30180
30181 * tree-ssa-math-opts.c: Fix typo in comment.
30182
30183 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30184
30185 PR target/70110
30186 * config/i386/i386.c (scalar_chain::make_vector_copies,
30187 scalar_chain::convert_reg): Call end_sequence in between
30188 get_insns and emit_conversion_insns rather than after both
30189 calls.
30190
30191 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30192
30193 PR target/70064
30194 * config/i386/i386.h (machine_function): Add
30195 pc_thunk_call_expanded flag.
30196 (ix86_pc_thunk_call_expanded): New define.
30197 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30198 (*set_got): Rename insn pattern from set_got.
30199 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30200 * config/i386/i386.c (ix86_compute_frame_layout): Use
30201 ix86_pc_thunk_call_expanded to prevent red-zone.
30202
30203 2016-03-07 Martin Jambor <mjambor@suse.cz>
30204
30205 * hsa.h (hsa_get_ctor_statements): Declare.
30206 (hsa_get_dtor_statements): Likewise.
30207 (hsa_get_kernel_dispatch_type): Likewise.
30208 * hsa.c (hsa_get_ctor_statements): New function.
30209 (hsa_get_dtor_statements): Likewise.
30210 (hsa_get_kernel_dispatch_type): Likewise.
30211 * hsa-brig.c (hsa_cdtor_statements): Removed.
30212 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30213 hsa_get_dtor_statements.
30214 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30215 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30216
30217 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30218
30219 * config/arm/arm-cores.def (cortex-r8): New.
30220 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30221 * config/arm/arm-tune.md: Likewise.
30222 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30223
30224 2016-03-07 Martin Sebor <msebor@redhat.com>
30225
30226 PR rtl-optimization/19705
30227 * doc/invoke.texi (Options That Control Optimization): Clarify
30228 -fno-branch-count-reg.
30229
30230 2016-02-26 Richard Biener <rguenther@suse.de>
30231 Jeff Law <law@redhat.com>
30232
30233 PR tree-optimization/69740
30234 * cfghooks.c (remove_edge): Request loop fixups if we delete
30235 an edge that might turn an irreducible loop into a natural
30236 loop.
30237 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30238 Move after definition of loops_state_clear.
30239
30240 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30241
30242 PR rtl-optimization/69052
30243 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30244 to CONST_WIDE_INT.
30245
30246 2016-03-07 Tom de Vries <tom@codesourcery.com>
30247
30248 PR tree-optimization/70116
30249 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30250 is_tm_ending stmts and ubsan/asan internal functions.
30251 (find_duplicate): Use it. Don't test is_tm_ending here.
30252
30253 2016-03-07 Richard Biener <rguenther@suse.de>
30254
30255 PR tree-optimization/70115
30256 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30257 (propagate_constants_for_unrolling): Use replace_uses_by.
30258
30259 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30260
30261 PR middle-end/69916
30262 * omp-low.c (struct oacc_loop): Add ifns.
30263 (new_oacc_loop_raw): Initialize it.
30264 (finish_oacc_loop): Clear mask & flags if no ifns.
30265 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30266 (oacc_loop_xform_loop): Add ifns arg & adjust.
30267 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30268
30269 2016-03-07 Richard Henderson <rth@redhat.com>
30270
30271 PR rtl-opt/70061
30272 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30273 (insert_value_copy_on_edge): Likewise.
30274
30275 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30276
30277 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30278
30279 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30280
30281 PR target/62281
30282 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30283
30284 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30285
30286 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30287
30288 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30289
30290 Fix sseimul type attribute.
30291 * config/i386/znver1.md
30292 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30293 znver1_sseimul_avx256_load) : Fix the type attribute.
30294 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30295 pipe usage and latency.
30296
30297 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30298
30299 PR c++/70084
30300 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30301 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30302 to the right type.
30303
30304 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30305
30306 PR c/69973
30307 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30308
30309 PR rtl-optimization/69941
30310 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30311 the reg share its mode.
30312
30313 2016-03-04 Jeff Law <law@redhat.com>
30314
30315 PR tree-optimization/69196
30316 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30317 If the both SSA_NAMEs are anonymous, then consider them unassociated
30318 and include the PHI in the statement count.
30319
30320 2016-03-05 Tom de Vries <tom@codesourcery.com>
30321
30322 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30323 construct in oacc routine. Check for oacc region in oacc routine.
30324
30325 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30326
30327 PR target/70062
30328 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30329 2016-02-22 changes, instead don't recurse if RECUR is already true.
30330 Don't change *dynamic_check if RECUR. Adjust recursive caller
30331 to pass true to the new argument.
30332 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30333
30334 PR target/70059
30335 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30336 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30337 fixes.
30338 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30339
30340 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30341
30342 PR rtl-optimization/57676
30343 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30344 with flag_checking.
30345
30346 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30347
30348 * tree-vect-patterns.c (search_type_for_mask): Handle
30349 comparison of booleans.
30350
30351 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30352
30353 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30354 Fix @xref usage.
30355
30356 PR debug/69947
30357 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30358 all other ops that have dw_val_class_die_ref operands,
30359 and DW_OP_GNU_entry_value.
30360
30361 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30362
30363 PR rtl-optimization/69904
30364 * config/arm/arm.c (arm_cannot_copy_insn_p):
30365 Return true for load-exclusive instructions.
30366
30367 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30368
30369 PR target/70021
30370 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30371 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30372 the pattern no matter if it is used just by non-pattern, pattern
30373 or mix thereof.
30374 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30375 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30376 oprnd1 def_stmt is in pattern, don't look through it.
30377
30378 2016-03-03 Marek Polacek <polacek@redhat.com>
30379
30380 PR middle-end/70050
30381 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30382
30383 2016-03-03 Martin Liska <mliska@suse.cz>
30384
30385 PR tree-optimization/70043
30386 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30387 previous statement if we see a debug statement.
30388
30389 2016-03-03 Richard Biener <rguenther@suse.de>
30390
30391 PR tree-optimization/55936
30392 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30393 parameter and guard unsafe equivalence use.
30394 (vrp_evaluate_conditional_warnv_with_ops): Always use
30395 safe equivalences but not via the quadratic compare_names
30396 helper.
30397
30398 2016-03-03 Michael Collison <michael.collison@linaro.org>
30399
30400 PR target/70014
30401 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30402 for operand 1 to s_register_operand. Change predicate for operand
30403 2 to arm_not_immediate_operand.
30404
30405 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30406
30407 * doc/tm.texi: Regenerated.
30408
30409 2016-03-02 Richard Henderson <rth@redhat.com>
30410
30411 PR rtl-opt/67145
30412 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30413 simplification when all args are positive non-fixed registers.
30414
30415 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30416
30417 * target.def (lra_p): Specify that new ports should use LRA.
30418
30419 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30420
30421 PR libgomp/69555
30422 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30423 gimplify_type_sizes the type they refer to.
30424 (omp_notice_variable): Handle reference vars to VLAs.
30425 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30426 reference to VLA decls in the second pass instead of first pass.
30427
30428 2016-03-02 Tom de Vries <tom@codesourcery.com>
30429
30430 PR tree-optimization/68659
30431 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30432 new_expr == NULL_TREE.
30433 (get_new_name): Handle ADDR_EXPR.
30434
30435 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30436
30437 PR rtl-optimization/69052
30438 * loop-invariant.c (canonicalize_address): New function.
30439 (inv_can_prop_to_addr_use): Check validity of address expression
30440 which is canonicalized by above function.
30441
30442 2016-03-02 Alan Modra <amodra@gmail.com>
30443
30444 PR ipa/69990
30445 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30446 larger alignment.
30447
30448 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30449
30450 PR target/70028
30451 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30452 (*movhi_internal): Put mask moves from and to memory separately
30453 from moves from/to GPRs.
30454
30455 2016-03-02 Richard Biener <rguenther@suse.de>
30456
30457 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30458 GENERIC expressions in GIMPLE.
30459
30460 2016-03-02 Richard Biener <rguenther@suse.de>
30461
30462 * config/i386/i386.c (type_natural_mode): Fix typo.
30463
30464 2016-03-02 Nick Clifton <nickc@redhat.com>
30465
30466 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30467
30468 2016-03-02 Richard Biener <rguenther@suse.de>
30469 Uros Bizjak <ubizjak@gmail.com>
30470
30471 PR target/67278
30472 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30473
30474 2016-03-02 Richard Biener <rguenther@suse.de>
30475
30476 PR middle-end/67278
30477 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30478
30479 2016-03-02 Marek Polacek <polacek@redhat.com>
30480
30481 PR c/67854
30482 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30483 "is promoted to" warning.
30484
30485 2016-03-01 DJ Delorie <dj@redhat.com>
30486
30487 * config.gcc: Deprecate mep-*.
30488
30489 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30490
30491 PR middle-end/70025
30492 * lra-constraints.c (regno_val_use_in): New.
30493 (match_reload): Use it instead of regno_use_in.
30494
30495 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30496
30497 PR rtl-optimization/70007
30498 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30499 references present in REG_EQUAL notes attached to non-SET patterns.
30500
30501 2016-03-01 Jeff Law <law@redhat.com>
30502
30503 PR tree-optimization/69196
30504 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30505 Appropriately clamp the number of statements to copy when the
30506 thread path does not traverse a loop backedge.
30507
30508 PR tree-optimization/69196
30509 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30510 Do count some PHIs in the thread path against the insn count. Decrease
30511 final statement count by one as the control statement in the last
30512 block will get removed. Remove special cased code for handling PHIs
30513 in the last block.
30514
30515 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30516
30517 PR target/70027
30518 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30519 asm dialect alternatives to explicit GOTPCREL calls.
30520
30521 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30522
30523 PR ada/70017
30524 * ira.c (do_reload): Issue warning for generic stack checking here...
30525 * reload1.c (reload): ...instead of here and streamline it.
30526
30527 2016-03-01 Nick Clifton <nickc@redhat.com>
30528
30529 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30530
30531 2016-03-01 Richard Biener <rguenther@suse.de>
30532
30533 PR tree-optimization/69983
30534 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30535 types and fall back to operand_equal_p.
30536
30537 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30538
30539 Revert
30540 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30541
30542 * config/s390/constraints.md ("jm8"): New constraint.
30543 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30544 predicate.
30545 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30546 into ...
30547 ("*setmem_long<setmem_and>"): New pattern.
30548 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30549 into ...
30550 ("*setmem_long_31z<setmem_and>"): New pattern.
30551 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30552 New substitution rules with the required attributes.
30553
30554
30555 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30556
30557 Revert
30558 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30559
30560 * gensupport.c (process_substs_on_one_elem): Split loop to
30561 complete mark_operands_used_in_match_dup on all expressions in the
30562 vector first.
30563 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30564 and remove function.
30565
30566 2016-03-01 Richard Biener <rguenther@suse.de>
30567
30568 PR middle-end/70022
30569 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30570 vector BIT_FIELD_REF extract.
30571
30572 2016-03-01 Richard Biener <rguenther@suse.de>
30573
30574 PR tree-optimization/69994
30575 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30576
30577 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30578
30579 PR tree-optimization/69956
30580 * tree-vect-stmts.c (supportable_widening_operation): Support
30581 multi-step conversion of boolean vectors.
30582 (supportable_narrowing_operation): Likewise.
30583
30584 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30585
30586 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30587 anymore.
30588
30589 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30590
30591 * config/s390/subst.md (DSI_VI): New mode iterator.
30592 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30593 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30594 the insn definition.
30595 ("*vec_set<mode>"): Change predicate and add alternative to
30596 support only either register or const_int operands as element
30597 selector.
30598 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30599 operands.
30600 ("vec_extract<mode>"): New expander.
30601 ("*vec_extract<mode>"): New insn definition supporting reg and
30602 const_int element selectors.
30603 ("*vec_extract<mode>_plus"): New insn definition supporting
30604 reg+const_int element selectors.
30605 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30606 following expander+insn definition.
30607 ("<vec_shifts_name><mode>3"): New expander.
30608 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30609
30610 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30611
30612 * config/s390/s390.md ("*tabort_1"): Change predicate to
30613 nonmemory_operand. Add a second alternative to cover
30614 register as well as const int operands.
30615 ("*tabort_1_plus"): New pattern definition.
30616
30617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30618
30619 * config/s390/s390.md ("*ashrdi3_cc_31")
30620 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30621 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30622 Merge insn definitions into ...
30623 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30624 New pattern definition.
30625 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30626 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30627 ("*ashr<mode>3_and"): Merge insn definitions into ...
30628 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30629 New pattern definition.
30630 * config/s390/subst.md ("addr_style_op_cc_subst")
30631 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30632 substitutions patterns plus attributes.
30633 Add ashiftrt to SUBST iterator.
30634
30635 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30636
30637 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30638 op2 to nonmemory_operand.
30639 ("*<shift>di3_31", "*<shift>di3_31_and"):
30640 Merge into single pattern definition ...
30641 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30642 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30643 pattern definition ...
30644 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30645 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30646 iterator.
30647
30648 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30649
30650 * config/s390/predicates.md (const_int_6bitset_operand): New
30651 predicate.
30652 * config/s390/s390.md: Include subst.md.
30653 ("rotl<mode>3"): New expander.
30654 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30655 ...
30656 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30657 * config/s390/subst.md: New file.
30658
30659 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30660
30661 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30662 Remove RRR type. It doesn't really exist.
30663 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30664 attributes.
30665 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30666 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30667 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30668 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30669 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30670 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30671 `enabled' attribute.
30672
30673 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30674
30675 * gensupport.c (process_substs_on_one_elem): Split loop to
30676 complete mark_operands_used_in_match_dup on all expressions in the
30677 vector first.
30678 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30679 and remove function.
30680
30681 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30682
30683 PR target/69706
30684 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30685 (CEIL_NWORDS): ...this. Use CEIL macro.
30686 (compute_fp_layout): Adjust to above renaming.
30687 (function_arg_union_value): Likewise.
30688 (sparc_arg_partial_bytes): Likewise.
30689 (sparc_function_arg_advance): Likewise.
30690
30691 2016-02-29 Jeff Law <law@redhat.com>
30692
30693 PR tree-optimization/70005
30694 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30695 where an object with a boolean range is compared against a value
30696 outside [0..1].
30697
30698 PR tree-optimization/69999
30699 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30700 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30701 loop cleanups.
30702
30703 2016-02-29 Richard Biener <rguenther@suse.de>
30704
30705 PR tree-optimization/69994
30706 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30707 (get_unary_op): Look through nop conversions.
30708 (ops_equal_values_p): New function, look for equality diregarding
30709 nop conversions.
30710 (eliminate_plus_minus_pair): Use ops_equal_values_p
30711 (repropagate_negates): Do not use get_unary_op here.
30712
30713 2016-02-29 Martin Liska <mliska@suse.cz>
30714
30715 * system.h: Poison ENABLE_CHECKING macro.
30716
30717 2016-02-29 Martin Liska <mliska@suse.cz>
30718
30719 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30720 is presented in dump flags.
30721 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30722 (hsa_regalloc): Likewise.
30723
30724 2016-02-19 Richard Biener <rguenther@suse.de>
30725
30726 PR tree-optimization/69980
30727 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30728 permutation of those we need to keep.
30729
30730 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30731
30732 PR target/69706
30733 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30734 (NWORDS_UP): ...this
30735 (init_cumulative_args): Minor tweaks.
30736 (sparc_promote_function_mode): Likewise.
30737 (scan_record_type): Delete.
30738 (traverse_record_type): New function template.
30739 (classify_data_t): New structure type.
30740 (classify_registers): New inline function.
30741 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30742 exhausted. Instantiate traverse_record_type on classify_registers and
30743 deal with the case of a structure passed in slot #15 with no FP field
30744 in the first word.
30745 (assign_data_t): New structure type.
30746 (compute_int_layout): New static function.
30747 (compute_fp_layout): Likewise.
30748 (count_registers): New inline function.
30749 (assign_int_registers): New static function.
30750 (assign_fp_registers): Likewise.
30751 (assign_registers): New inline function.
30752 (function_arg_record_value_1): Delete.
30753 (function_arg_record_value_2): Likewise.
30754 (function_arg_record_value_3): Likewise.
30755 (function_arg_record_value): Adjust to above changes. Instantiate
30756 traverse_record_type on count_registers to first count the number of
30757 registers to be used and then on assign_registers to assign them.
30758 (function_arg_union_value): Adjust to above renaming.
30759 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30760 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30761 case of a structure passed in slot #15
30762 (sparc_function_arg_advance): Likewise.
30763 (function_arg_padding): Minor tweak.
30764
30765 2016-02-29 Richard Biener <rguenther@suse.de>
30766
30767 PR tree-optimization/69720
30768 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30769 the adjustment_def path for possibly vectorized defs.
30770 (vect_create_epilog_for_reduction): Handle vectorized initial
30771 defs properly.
30772
30773 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30774
30775 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30776
30777 2016-02-27 Jeff Law <law@redhat.com>
30778
30779 Revert
30780 2016-02-26 Richard Biener <rguenther@suse.de>
30781 Jeff Law <law@redhat.com>
30782
30783 PR tree-optimization/69740
30784 * cfghooks.c (remove_edge): Request loop fixups if we delete
30785 an edge that might turn an irreducible loop into a natural
30786 loop.
30787
30788 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30789
30790 PR rtl-optimization/69896
30791 * tree-vect-generic.c (get_compute_type): Avoid single element
30792 vector types.
30793
30794 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30795
30796 Rename the AArch64 tuning option and related functions to enable the
30797 Newton series for the reciprocal square root to reflect its
30798 approximative characteristic.
30799
30800 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30801 function to "aarch64_emit_approx_rsqrt".
30802 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30803 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30804 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30805 (xgene1_tunings): Likewise.
30806 (use_rsqrt_p): Likewise.
30807 (aarch64_emit_swrsqrt): Use new function name.
30808 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30809 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30810 text explaining this option.
30811 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30812
30813 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30814
30815 PR target/69969
30816 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30817 complain about -mallow-movmisalign without -mvsx if
30818 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30819
30820 2016-02-26 Joel Sherrill <joel@rtems.org>
30821
30822 * config.gcc: Add x86_64-*-rtems*.
30823 * config/i386/rtems-64.h: New file.
30824
30825 2016-02-26 Joel Sherrill <joel@rtems.org>
30826
30827 * config.gcc: Add aarch64-*-rtems*.
30828 * config/aarch64/rtems.h: New file.
30829
30830 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30831
30832 PR target/69946
30833 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30834 shift amount using %h. Add comment.
30835
30836 2016-02-26 Richard Biener <rguenther@suse.de>
30837 Jeff Law <law@redhat.com>
30838
30839 PR tree-optimization/69740
30840 * cfghooks.c (remove_edge): Request loop fixups if we delete
30841 an edge that might turn an irreducible loop into a natural
30842 loop.
30843
30844 2016-02-26 Martin Jambor <mjambor@suse.cz>
30845
30846 PR middle-end/69920
30847 * tree-sra.c (sra_modify_assign): Do not remove loads of
30848 uninitialized aggregates to SSA_NAMEs.
30849
30850 2016-02-26 Richard Henderson <rth@redhat.com>
30851
30852 PR target/69709
30853 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30854 pseudo in case the target rtx matches the source of the left
30855 shift.
30856
30857 2016-02-26 Martin Jambor <mjambor@suse.cz>
30858
30859 PR hsa/69568
30860 * hsa.h (hsa_type_packed_p): Declare.
30861 * hsa.c (hsa_type_packed_p): New function.
30862 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30863 loads.
30864 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30865 * hsa-brig.c (emit_basic_insn): Likewise.
30866
30867 2016-02-26 Martin Jambor <mjambor@suse.cz>
30868
30869 pr hsa/69674
30870 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30871 pointers.
30872 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30873
30874 2016-02-26 Martin Jambor <mjambor@suse.cz>
30875
30876 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30877 hsa_op_with_type operands.
30878 (hsa_unsigned_type_for_type): Declare.
30879 * hsa.c (hsa_unsigned_type_for_type): New function.
30880 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30881 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30882 the finalizer. Do not emit extra move.
30883
30884 2016-02-26 Martin Jambor <mjambor@suse.cz>
30885
30886 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30887 atomic operations in private segment.
30888
30889 2016-02-26 Martin Jambor <mjambor@suse.cz>
30890
30891 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30892 statements to wi->info. Also disallow omp simd constructs.
30893 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30894 for not gridifying. Dump special string for omp_for.
30895
30896 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30897
30898 PR target/69245
30899 * config/aarch64/aarch64.c (aarch64_set_current_function):
30900 Save/restore target globals when switching to
30901 target_option_default_node.
30902
30903 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30904
30905 PR target/69613
30906 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30907 Return 0 if !SHIFT_COUNT_TRUNCATED.
30908
30909 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30910 Eric Botcazou <ebotcazou@adacore.com>
30911
30912 PR rtl-optimization/69891
30913 * dse.c (scan_insn): If we can't figure out memset arguments
30914 or they are non-constant, call clear_rhs_from_active_local_stores.
30915
30916 2016-02-26 Martin Liska <mliska@suse.cz>
30917
30918 * doc/extend.texi: Mention clog10, clog10f an clog10l
30919 in Builtins section.
30920
30921 2016-02-26 Martin Liska <mliska@suse.cz>
30922
30923 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30924 CHECKING_P.
30925 (resolve_args_picking_1): Likewise.
30926 * dwarf2out.h (struct GTY): Likewise.
30927
30928 2016-02-26 Martin Liska <mliska@suse.cz>
30929
30930 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30931 with flag_checking.
30932 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30933
30934 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30935 Martin Liska <mliska@suse.cz>
30936
30937 * doc/install.texi: Mention --enable-valgrind-annotations.
30938
30939 2016-02-26 Richard Biener <rguenther@suse.de>
30940
30941 PR tree-optimization/69551
30942 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30943 looking through aliases adjust DECL_PT_UID to refer to the
30944 ultimate alias target.
30945
30946 2016-02-25 Martin Liska <mliska@suse.cz>
30947
30948 PR middle-end/69919
30949 * alloc-pool.c (after_memory_report): New variable.
30950 * alloc-pool.h (base_pool_allocator ::release): Do not use
30951 the infrastructure if after_memory_report.
30952 * toplev.c (toplev::main): Mark after memory report.
30953
30954 2016-02-25 Richard Biener <rguenther@suse.de>
30955
30956 PR tree-optimization/48795
30957 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
30958
30959 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
30960
30961 PR driver/68463
30962 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
30963 offloading is enabled and -fopenacc or -fopenmp is specified.
30964 (CRTOFFLOADEND): Likewise.
30965 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
30966 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
30967 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
30968 (offload_objects_file_name): New static var.
30969 (tool_cleanup): Remove offload_objects_file_name file.
30970 (find_offloadbeginend): Replace with ...
30971 (find_crtoffloadtable): ... this.
30972 (run_gcc): Remove offload_argc and offload_argv.
30973 Get offload_objects_file_name from -foffload-objects=... option.
30974 Read names of object files with offload from this file, pass them to
30975 compile_images_for_offload_targets. Don't call find_offloadbeginend and
30976 don't pass offloadbegin and offloadend to the linker. Don't pass
30977 offload non-LTO files to the linker, because now they're not claimed.
30978
30979 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
30980
30981 PR ipa/69630
30982 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30983 on builtin_unreachable.
30984
30985 2016-02-25 Jakub Jelinek <jakub@redhat.com>
30986
30987 PR rtl-optimization/69896
30988 * regcprop.c: Include cfgrtl.h.
30989 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
30990 than remembered mode, either delete it (if noop_move_p), or
30991 treat like copy_p but not noop_p instruction.
30992
30993 2016-02-24 Jakub Jelinek <jakub@redhat.com>
30994
30995 PR debug/69705
30996 * dwarf2out.c (gen_variable_die): Work around buggy LTO
30997 - allow NULL decl for Fortran DW_TAG_common_block variables.
30998
30999 2016-02-24 Jason Merrill <jason@redhat.com>
31000
31001 * common.opt (flifetime-dse): Add -flifetime-dse=1.
31002
31003 2016-02-24 Richard Biener <rguenther@suse.de>
31004 Jakub Jelinek <jakub@redhat.com>
31005
31006 PR middle-end/69760
31007 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
31008 conditionally executed ops to well-defined overflow behavior.
31009
31010 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31011
31012 PR middle-end/69915
31013 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31014 elements.
31015
31016 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31017
31018 PR rtl-optimization/69886
31019 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31020 argument. Use it when checking validity of set instructions.
31021 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31022 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31023 callsite.
31024 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31025 * store-motion.c (find_moveable_store): Update
31026 can_assign_to_reg_without_clobbers_p callsite.
31027
31028 2016-02-24 Richard Biener <rguenther@suse.de>
31029
31030 PR middle-end/68963
31031 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31032 bogus check.
31033 (record_nonwrapping_iv): Do not fall back to the low/high bound
31034 for non-constant IV bases if the stmt is not always executed.
31035
31036 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31037
31038 * config/arm/arm-cores.def (cortex-a32): New entry.
31039 * config/arm/arm-tables.opt: Regenerate.
31040 * config/arm/arm-tune.md: Regenerate.
31041 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31042 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31043 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31044 for -mcpu and -mtune.
31045
31046 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31047
31048 PR target/69875
31049 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31050 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31051 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31052 (atomic_loaddi_1): Delete.
31053 (atomic_loaddi): Rewrite expander using the above changes.
31054
31055 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31056
31057 PR c/69918
31058 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31059 2 to 3.
31060
31061 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31062 Richard Biener <rguenth@suse.de>
31063
31064 PR middle-end/69909
31065 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31066 set_mem_attributes if tem is SSA_NAME which got expanded
31067 as a MEM.
31068
31069 2016-02-24 Richard Biener <rguenther@suse.de>
31070
31071 PR tree-optimization/69907
31072 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31073 end of permutations for BB vectorization.
31074
31075 2016-02-24 Christian Bruel <christian.bruel@st.com>
31076
31077 * config/arm/arm-c.c (arm_option_override): Initialize
31078 target_option_current_node.
31079 * config/arm/arm.c (arm_pragma_target_parse): Replace
31080 build_target_option_node call by target_option_current_node.
31081 Set target_option_current_node.
31082 Fix comments.
31083
31084 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31085
31086 PR target/69810
31087 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31088 define_insn_and_split to define_insn.
31089 (zero_extendqi<mode>2_dot2): Same.
31090 (extendqi<mode>2_dot): Same.
31091 (extendqi<mode>2_dot2): Same.
31092
31093 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31094
31095 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31096 and add bypass for AES{D,E} and AESMC pairs.
31097 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31098 and AESMC pairs.
31099
31100 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31101
31102 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31103 series for reciprocal square root in Exynos M1.
31104
31105 2016-02-23 Martin Sebor <msebor@redhat.com>
31106
31107 PR c/69759
31108 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31109 __builtin_alloca_with_align.
31110
31111 2016-02-23 Richard Henderson <rth@redhat.com>
31112
31113 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31114 (ix86_register_pragmas): Remove __seg_tls.
31115 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31116 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31117 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31118 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31119 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31120 * doc/extend.texi (__seg_tls): Remove item.
31121
31122 2016-02-23 Richard Biener <rguenther@suse.de>
31123
31124 * alloc-pool.h (struct allocation_object): Make id member
31125 conditional on CHECKING_P again.
31126 (get_instance): Adjust.
31127 (base_pool_allocator): Likewise.
31128
31129 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31130
31131 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31132 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31133 zero.
31134 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31135 flag_openacc.
31136 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31137
31138 2016-02-23 Richard Biener <rguenther@suse.de>
31139
31140 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31141 * bitmap.h (struct bitmap_usage): Likewise.
31142 (bitmap_move): Declare.
31143 * bitmap.c (register_overhead): Take size_t argument.
31144 (bitmap_move): New function.
31145 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31146 to properly account overhead.
31147 * tree.c (free_node): Use tree_size.
31148
31149 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31150
31151 PR c++/69902
31152 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31153 when inverting comparison.
31154
31155 PR c/69900
31156 * common.opt (Wunreachable-code): Add Warning flag.
31157
31158 2016-02-23 Mark Wielaard <mjw@redhat.com>
31159 Jakub Jelinek <jakub@redhat.com>
31160
31161 PR c/69911
31162 * cgraphunit.c (check_global_declaration): Check main_input_filename
31163 and DECL_SOURCE_FILE are not NULL.
31164
31165 2016-02-23 Martin Jambor <mjambor@suse.cz>
31166
31167 PR tree-optimization/69666
31168 * tree-sra.c (sra_modify_assign): Do not attempt to create
31169 default_def replacements for unscalarizable regions.
31170
31171 2016-02-20 Mark Wielaard <mjw@redhat.com>
31172
31173 PR c/28901
31174 * cgraphunit.c (check_global_declaration): Check level of
31175 warn_unused_const_variable and main_input_filename.
31176 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31177 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31178 (-Wunused-const-variable): Explain levels 1 and 2.
31179
31180 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31181
31182 PR target/69888
31183 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31184 identical arguments. Formatting and spelling fixes.
31185
31186 PR target/69885
31187 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31188 be specified.
31189
31190 PR target/69894
31191 PR target/69895
31192 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31193 and m68k-devices.def.
31194 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31195 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31196
31197 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31198
31199 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31200 and HImode registers.
31201
31202 2016-02-22 Richard Biener <rguenther@suse.de>
31203
31204 PR tree-optimization/69882
31205 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31206 preserve permutations present because of gaps.
31207 (vect_supported_load_permutation_p): Always continue checking
31208 permutations after vect_attempt_slp_rearrange_stmts.
31209
31210 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31211
31212 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31213 min_profitable_estimate, rather than min_profitable_iters.
31214
31215 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31216
31217 PR target/69885
31218 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31219 SImode for last match_operand.
31220
31221 2016-02-22 Martin Liska <mliska@suse.cz>
31222
31223 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31224 return bitsize - 1 as the return value.
31225
31226 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31227
31228 PR target/69806
31229 PR target/54089
31230 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31231 Handle negative shift counts.
31232 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31233 force_reg on the shift constant.
31234 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31235 (lshrsi3_d): Handle negative shift counts.
31236
31237 2016-02-22 Richard Biener <rguenther@suse.de>
31238 Tom de Vries <tom@codesourcery.com>
31239
31240 * graph.c: Include dumpfile.h.
31241 (print_graph_cfg): Split into three overloads.
31242 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31243
31244 2016-02-22 Tom de Vries <tom@codesourcery.com>
31245
31246 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31247 dump-fn.
31248
31249 2016-02-22 Richard Biener <rguenther@suse.de>
31250
31251 PR ipa/37448
31252 * ipa-inline-transform.c (inline_call): When not updating
31253 overall summaries adjust self size by the growth estimate.
31254 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31255 hash-set, do not update overall summaries here. Renamed from ...
31256 (inline_to_all_callers): ... this which is now wrapping the
31257 above and performing delayed overall summary update.
31258 (early_inline_small_functions): Delay updating of the overall
31259 summary.
31260
31261 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31262
31263 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31264 variable.
31265
31266 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31267
31268 PR driver/69805
31269 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31270 :%* in %:gt() argument.
31271 (greater_than_spec_func): Adjust for expecting only numbers,
31272 if there are more than two numbers, compare the last two.
31273
31274 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31275
31276 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31277 -Wnarrowing with -std.
31278
31279 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31280
31281 PR c++/69851
31282 * expr.c (store_field): Don't use bit-field path if exp is
31283 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31284 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31285 and the assignment can be performed by bitwise copy. Formatting
31286 fix.
31287
31288 PR middle-end/69838
31289 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31290 call copy_reg_eh_region_note_forward on before and/or after sequences
31291 and remove note from insn if it no longer can throw.
31292
31293 PR target/69820
31294 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31295 if TARGET_AVX512BW.
31296
31297 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31298
31299 * config/s390/vector.md: Add missing commutative operand markers
31300 to the patterns which qualify for one.
31301 * config/s390/vx-builtins.md: Likewise.
31302
31303 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31304
31305 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31306 types to mode iterators.
31307 (vec_double): ... and mode attribute.
31308 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31309
31310 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31311
31312 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31313 Change the predicate of op2 from nonimmediate to general and let
31314 reload fix it if necessary.
31315
31316 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31317
31318 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31319
31320 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31321
31322 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31323 mode.
31324
31325 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31326
31327 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31328 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31329 * config/s390/s390.md ("movstr<P:mode>"): Call
31330 s390_expand_vec_movstr.
31331
31332 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31333
31334 * config/s390/s390.md: Add missing output modifier for operand 1
31335 to print it as address properly.
31336
31337 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31338
31339 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31340 * config/s390/2964.md: New file.
31341 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31342 of insn grouping attributes depending on the CPU level.
31343 (s390_get_unit_mask): New function.
31344 (s390_sched_score): Remove the OOO from the scheduling macros.
31345 Add loop to calculate a score for the instruction mix.
31346 (s390_sched_reorder): Likewise plus improve debug output.
31347 (s390_sched_variable_issue): Rename macros as above. Calculate
31348 the unit distances after actually scheduling an insn. Improve
31349 debug output.
31350 (s390_sched_init): Clear last_scheduled_unit_distance array.
31351 * config/s390/s390.md: Include 2964.md.
31352
31353 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31354
31355 PR target/69671
31356 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31357 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31358 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31359 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31360 *avx512f_<code>v8div16qi2_mask_1): New insns.
31361
31362 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31363
31364 PR target/68404
31365 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31366 2016-02-09 change.
31367
31368 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31369 earlyclobber from target. Use wF constraint for fused memory
31370 address.
31371 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31372
31373 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31374 Martin Liska <mliska@suse.cz>
31375
31376 PR sanitizer/69863
31377 * cfgexpand.c (asan_sanitize_stack_p): New function.
31378 (partition_stack_vars): Use the function.
31379 (expand_stack_vars): Likewise.
31380 (defer_stack_allocation): Likewise.
31381 (expand_used_vars): Likewise.
31382
31383 2016-02-18 Richard Biener <rguenther@suse.de>
31384
31385 PR middle-end/69553
31386 * fold-const.c (operand_equal_p): Properly compare offsets for
31387 IMAGPART_EXPR and ARRAY_REF.
31388
31389 2016-02-18 Nick Clifton <nickc@redhat.com>
31390
31391 PR target/62254
31392 PR target/69610
31393 * config/arm/arm.c (arm_option_override_internal): Disable
31394 interworking if the target does not support thumb instructions.
31395 (arm_reload_in_hi): Handle the case where a register to register
31396 move needs reloading because there is no simple pattern to handle
31397 it.
31398 (arm_reload_out_hi): Likewise.
31399
31400 2016-02-18 Richard Biener <rguenther@suse.de>
31401
31402 PR middle-end/69854
31403 * match.pd: Don't use fold_binary or fold_unary for folding
31404 constants.
31405
31406 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31407
31408 PR c++/69850
31409 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31410 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31411 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31412 warn on gimple_no_warning_p statements.
31413
31414 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31415
31416 * doc/extend.texi (C++ Attributes): Correct description of
31417 warn_unused type attribute.
31418
31419 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31420
31421 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31422 correct instruction.
31423
31424 2016-02-17 Richard Biener <rguenther@suse.de>
31425
31426 PR rtl-optimization/69609
31427 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31428 (find_traces_1_round): When ending a trace update cached priority
31429 of successors.
31430 (bb_to_key): Use cached priority when available.
31431 (copy_bb): Initialize cached priority.
31432 (reorder_basic_blocks_software_trace_cache): Likewise.
31433
31434 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31435
31436 PR target/69161
31437 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31438 New predicate.
31439 (aarch64_comparison_operator): Break overly long line into two.
31440 (aarch64_comparison_operation): Likewise.
31441 * config/aarch64/aarch64.md (cstorecc4): Use
31442 aarch64_comparison_operator_mode instead of
31443 aarch64_comparison_operator.
31444 (cstore<mode>4): Likewise.
31445 (aarch64_cstore<mode>): Likewise.
31446 (*cstoresi_insn_uxtw): Likewise.
31447 (cstore<mode>_neg): Likewise.
31448 (*cstoresi_neg_uxtw): Likewise.
31449
31450 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31451
31452 PR target/69161
31453 * config/arm/predicates.md (arm_comparison_operator_mode):
31454 New predicate.
31455 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31456 instead of arm_comparison_operator.
31457 (*mov_negscc): Likewise.
31458 (*mov_notscc): Likewise.
31459 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31460 (*thumb2_mov_negscc): Likewise.
31461 (*thumb2_mov_negscc_strict_it): Likewise.
31462 (*thumb2_mov_notscc): Likewise.
31463 (*thumb2_mov_notscc_strict_it): Likewise.
31464
31465 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31466
31467 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31468 Add missing return.
31469
31470 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31471
31472 * config/visium/visium.c (machine_libfunc_index): New enum.
31473 (machine_libfuncs): New structure.
31474 (visium_libfuncs): New static variable.
31475 (TARGET_INIT_LIBFUNCS): Define to...
31476 (visium_init_libfuncs): ...this. New function.
31477 (expand_block_move_4): Use the appropriate libfunc.
31478 (expand_block_move_2): Likewise.
31479 (expand_block_move_1): Likewise.
31480 (expand_block_set_4): Likewise.
31481 (expand_block_set_2): Likewise.
31482 (expand_block_set_1): Likewise.
31483 (visium_trampoline_init): Likewise.
31484
31485 2016-02-17 Nick Clifton <nickc@redhat.com>
31486
31487 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31488 TI's devices.csv file as of March 2016.
31489
31490 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31491
31492 PR Target/48344
31493 * opts-global.c (handle_common_deferred_options): Introduce and
31494 initialize two global variables to remember command-line options
31495 specifying a stack-limiting register.
31496 * opts.h: Add extern declarations of the two new global variables.
31497 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31498 variable based on the values of the two new global variables.
31499
31500 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31501
31502 PR c/69835
31503 * common.opt (Wnonnull-compare): New warning.
31504 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31505 of arguments against NULL.
31506 (-Wnonnull-compare): Document.
31507 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31508 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31509 * passes.def (pass_warn_nonnull_compare): Add.
31510 * gimple-ssa-nonnull-compare.c: New file.
31511
31512 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31513
31514 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31515 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31516
31517 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31518
31519 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31520 reciprocal sqrt for -mlow-precision-recip-sqrt.
31521
31522 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31523 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31524
31525 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31526 always use lane loads to construct non-constant vectors.
31527
31528 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31529
31530 * config/aarch64/aarch64.md
31531 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31532 constraints for operand 3.
31533 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31534
31535 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31536 Richard Biener <rguenther@suse.de>
31537
31538 PR tree-optimization/69820
31539 * tree-vect-patterns.c (type_conversion_p): Return false if
31540 *orig_type is unsigned single precision or boolean.
31541 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31542 Formatting fix.
31543
31544 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31545
31546 PR rtl-optimization/69764
31547 PR rtl-optimization/69771
31548 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31549 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31550
31551 2016-02-16 Richard Biener <rguenther@suse.de>
31552
31553 PR tree-optimization/69776
31554 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31555 sets from caller.
31556 (indirect_refs_may_alias_p): Likewise.
31557 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31558 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31559 according to tbaa_p.
31560 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31561 (optimize_stmt): For redundant store discovery do not allow tbaa.
31562
31563 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31564
31565 PR tree-optimization/69714
31566 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31567 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31568
31569 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31570
31571 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31572 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31573 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31574 * config/arc/arc.c (arc_init): Check FPU options.
31575 (get_arc_condition_code): Handle new CC_FPU* modes.
31576 (arc_select_cc_mode): Likewise.
31577 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31578 register pair only. Allow access for ARCv2 accumulator.
31579 (gen_compare_reg): Whenever we have FPU support use FPU compare
31580 instructions.
31581 (arc_reorg): Don't generate brcc insns when FPU compare
31582 instructions are involved.
31583 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31584 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31585 floating point emulation.
31586 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31587 (REVERSE_CONDITION): Add new CC_FPU* modes.
31588 (TARGET_FP_SP_BASE): Define.
31589 (TARGET_FP_DP_BASE): Likewise.
31590 (TARGET_FP_SP_FUSED): Likewise.
31591 (TARGET_FP_DP_FUSED): Likewise.
31592 (TARGET_FP_SP_CONV): Likewise.
31593 (TARGET_FP_DP_CONV): Likewise.
31594 (TARGET_FP_SP_SQRT): Likewise.
31595 (TARGET_FP_DP_SQRT): Likewise.
31596 (TARGET_FP_DP_AX): Likewise.
31597 * config/arc/arc.md (ARCV2_ACC): New constant.
31598 (type): New fpu type attribute.
31599 (SDF): Conditional iterator.
31600 (cstore<mode>, cbranch<mode>): Change expand condition.
31601 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31602 handles FPU/FPX cases as well.
31603 * config/arc/arc.opt (mfpu): New option.
31604 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31605 Renamed.
31606 (adddf3, muldf3, subdf3): Removed.
31607 * config/arc/predicates.md (proper_comparison_operator): Recognize
31608 CC_FPU* modes.
31609 * config/arc/fpu.md: New file.
31610 * doc/invoke.texi (ARC Options): Document mfpu option.
31611
31612 2016-02-16 Richard Biener <rguenther@suse.de>
31613
31614 PR rtl-optimization/69291
31615 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31616 noce_operand_ok check.
31617
31618 2016-02-16 Tom de Vries <tom@codesourcery.com>
31619
31620 PR lto/67709
31621 * omp-low.c (simd_clone_create): Remove call to
31622 symtab->call_cgraph_insertion_hooks.
31623
31624 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31625
31626 PR tree-optimization/69802
31627 * tree-ssa-reassoc.c (update_range_test): If op is
31628 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31629 op == 1 test of precision 1 integral op, otherwise handle
31630 that case as op itself. Fix up formatting.
31631 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31632 up formatting.
31633
31634 2016-02-16 Richard Biener <rguenther@suse.de>
31635
31636 PR tree-optimization/69586
31637 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31638 types for conversion sources.
31639
31640 2016-02-16 Richard Biener <rguenther@suse.de>
31641
31642 PR middle-end/69801
31643 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31644 mask OEP_ADDRESS_OF.
31645
31646 2016-02-16 Alan Modra <amodra@gmail.com>
31647
31648 PR target/68973
31649 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31650 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31651 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31652 (p8_mtvsrwz): New.
31653 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31654 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31655 (p8_fmrgow_<mode>): Likewise.
31656 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31657 changes.
31658 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31659 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31660 to use movdi_internal64. Remove op0_di.
31661 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31662
31663 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31664
31665 Add support for the FCCMP insn types
31666
31667 * config/aarch64/aarch64.md (fccmp): Change insn type.
31668 (fccmpe): Likewise.
31669 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31670 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31671 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31672 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31673 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31674 * config/arm/types.md (fccmps): Add new insn type.
31675 (fccmpd): Likewise.
31676
31677 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31678
31679 * alias.c (get_alias_set): Fix a typo in comment.
31680
31681 2016-02-15 Richard Biener <rguenther@suse.de>
31682
31683 PR tree-optimization/69595
31684 * match.pd: Complete range test simplification to true.
31685
31686 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31687
31688 PR rtl-optimization/69648
31689 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31690 pic_offset_table_rtx.
31691
31692 PR rtl-optimization/69752
31693 * ira.c (update_equiv_regs): When looking for more than a single SET,
31694 also take other side effects into account.
31695
31696 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31697
31698 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31699 for z900+ CPUs in 31-bit mode.
31700
31701 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31702
31703 * common/config/s390/s390-common.c (s390_supports_split_stack):
31704 New function.
31705 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31706 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31707 * config/s390/s390.c (struct machine_function): New field
31708 split_stack_varargs_pointer.
31709 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31710 in s390_emit_prologue.
31711 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31712 vararg pointer.
31713 (morestack_ref): New global.
31714 (SPLIT_STACK_AVAILABLE): New macro.
31715 (s390_expand_split_stack_prologue): New function.
31716 (s390_live_on_entry): New function.
31717 (s390_va_start): Use split-stack vararg pointer if appropriate.
31718 (s390_asm_file_end): Emit the split-stack note sections.
31719 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31720 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31721 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31722 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31723 (split_stack_prologue): New expand.
31724 (split_stack_space_check): New expand.
31725 (split_stack_data): New insn.
31726 (split_stack_call): New expand.
31727 (split_stack_call_*): New insn.
31728 (split_stack_cond_call): New expand.
31729 (split_stack_cond_call_*): New insn.
31730
31731 2016-02-15 Richard Biener <rguenther@suse.de>
31732
31733 PR tree-optimization/69783
31734 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31735 Add trivially correct cases.
31736
31737 2016-02-15 Tom de Vries <tom@codesourcery.com>
31738
31739 PR lto/69655
31740 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31741 do_force_output.
31742 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31743
31744 2016-02-15 Richard Biener <rguenther@suse.de>
31745
31746 PR tree-optimization/69776
31747 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31748 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31749 indicate whether we can use TBAA to disambiguate against stores.
31750 Use alias-set zero if not.
31751 (visit_reference_op_store): Do not use TBAA when looking up
31752 redundant stores.
31753 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31754 (eliminate_dom_walker::before_dom_children): But not when looking
31755 up redundant stores.
31756
31757 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31758
31759 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31760
31761 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31762
31763 * config/i386/znver1.md
31764 (znver1_pop, znver1_pop_mem,
31765 znver1_load_imov_double_store,
31766 znver1_load_imov_direct_store,
31767 znver1_load_imov_direct_load,
31768 znver1_load_imov_double_load): Add new.
31769 (znver1_insn, znver1_insn_load): Add icmov type.
31770 (znver1_sseavx_fma,
31771 znver1_sseavx_fma_load,
31772 znver1_avx256_fma,
31773 znver1_avx256_fma_load): Fix pipe usage.
31774
31775 2016-02-14 Alan Modra <amodra@gmail.com>
31776
31777 PR target/68973
31778 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31779 with an invalid hard reg, reload just the reg not the entire
31780 pre/post-inc/dec address expression.
31781
31782 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31783
31784 PR target/67260
31785 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31786 fixed R1_REG scratch reg.
31787 (sibcall_value_pcrel_fdpic): Likewise.
31788
31789 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31790
31791 PR target/67636
31792 PR target/64345
31793 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31794
31795 2016-02-12 Walter Lee <walt@tilera.com>
31796
31797 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31798 * config/tilegx/t-tilegx: Likewise.
31799
31800 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31801
31802 PR other/69554
31803 * diagnostic-show-locus.c (struct line_span): New struct.
31804 (layout::get_first_line): Delete.
31805 (layout::get_last_line): Delete.
31806 (layout::get_num_line_spans): New member function.
31807 (layout::get_line_span): Likewise.
31808 (layout::print_heading_for_line_span_index_p): Likewise.
31809 (layout::get_expanded_location): Likewise.
31810 (layout::calculate_line_spans): Likewise.
31811 (layout::m_first_line): Delete.
31812 (layout::m_last_line): Delete.
31813 (layout::m_line_spans): New field.
31814 (layout::layout): Update comment. Replace m_first_line and
31815 m_last_line with m_line_spans, replacing their initialization
31816 with a call to calculate_line_spans.
31817 (diagnostic_show_locus): When printing source lines and
31818 annotations, rather than looping over a single span
31819 of lines, instead loop over each line_span within
31820 the layout, with an inner loop over the lines within them.
31821 Call the context's start_span callback when changing line spans.
31822 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31823 (diagnostic_build_prefix): Break out the building of the location
31824 part of the string into...
31825 (diagnostic_get_location_text): ...this new function, rewriting
31826 it from nested ternary expressions to a sequence of "if"
31827 statements.
31828 (default_diagnostic_start_span_fn): New function.
31829 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31830 (diagnostic_context::start_span): New field.
31831 (default_diagnostic_start_span_fn): New prototype.
31832
31833 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31834
31835 PR driver/69779
31836 * gcc.c (driver::finalize): Fix cleanup of "specs".
31837
31838 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31839
31840 PR driver/69265
31841 PR driver/69453
31842 * gcc.c (driver::driver): Initialize m_option_suggestions.
31843 (driver::~driver): Clean up m_option_suggestions.
31844 (suggest_option): Convert to...
31845 (driver::suggest_option): ...this, and split out into
31846 driver::build_option_suggestions and find_closest_string.
31847 (driver::build_option_suggestions): New function, from
31848 first half of suggest_option. Special-case
31849 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31850 the sanitizer_opts array. For options of enum types, add the
31851 various enum values to the candidate strings.
31852 (driver::handle_unrecognized_options): Remove "const".
31853 * gcc.h (driver::handle_unrecognized_options): Likewise.
31854 (driver::build_option_suggestions): New decl.
31855 (driver::suggest_option): New decl.
31856 (driver::m_option_suggestions): New field.
31857 * opts-common.c (add_misspelling_candidates): New function.
31858 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31859 and make non-static.
31860 * opts.h (sanitizer_opts): New array decl.
31861 (add_misspelling_candidates): New function decl.
31862 * spellcheck.c (find_closest_string): New function.
31863 * spellcheck.h (find_closest_string): New function decl.
31864
31865 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31866
31867 PR rtl-optimization/69764
31868 PR rtl-optimization/69771
31869 * optabs.c (expand_binop_directly): For shift_optab_p, force
31870 convert_modes with VOIDmode if xop1 has VOIDmode.
31871
31872 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31873
31874 PR target/69729
31875 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31876 to correctly determine instrumentation thunks.
31877
31878 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31879
31880 PR ipa/69241
31881 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31882 type by reference, force lhs on the call.
31883
31884 PR ipa/68672
31885 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31886 Compute retval and retbnd early in all cases if split_part_return_p
31887 and return_bb is not EXIT. Remove all clobber stmts and reset
31888 all debug stmts that refer to SSA_NAMEs defined in split part,
31889 except if it is retval, in that case replace the old retval with the
31890 lhs of the call to the split part.
31891
31892 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31893
31894 revert:
31895 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31896
31897 PR middle-end/66726
31898 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31899 whose result is used in PHI.
31900 (maybe_optimize_range_tests): Likewise.
31901 (final_range_test_p): Likweise.
31902
31903 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31904
31905 PR middle-end/66726
31906 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31907 whose result is used in PHI.
31908 (maybe_optimize_range_tests): Likewise.
31909 (final_range_test_p): Likweise.
31910
31911 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31912
31913 * cgraph.c: Spelling fixes - behaviour -> behavior and
31914 neighbour -> neighbor.
31915 * target.def: Likewise.
31916 * sel-sched.c: Likewise.
31917 * config/mips/mips.c: Likewise.
31918 * config/arc/arc.md: Likewise.
31919 * config/arm/cortex-a57.md: Likewise.
31920 * config/arm/arm.c: Likewise.
31921 * config/arm/neon.md: Likewise.
31922 * config/arm/arm-c.c: Likewise.
31923 * config/vms/vms-c.c: Likewise.
31924 * config/s390/s390.c: Likewise.
31925 * config/i386/znver1.md: Likewise.
31926 * config/i386/i386.c: Likewise.
31927 * config/ia64/hpux-unix2003.h: Likewise.
31928 * config/msp430/msp430.md: Likewise.
31929 * config/rx/rx.c: Likewise.
31930 * config/rx/rx.md: Likewise.
31931 * config/aarch64/aarch64-simd.md: Likewise.
31932 * config/aarch64/aarch64.c: Likewise.
31933 * config/nvptx/nvptx.c: Likewise.
31934 * config/bfin/bfin.c: Likewise.
31935 * config/cris/cris.opt: Likewise.
31936 * config/rs6000/rs6000.c: Likewise.
31937 * target.h: Likewise.
31938 * spellcheck.c: Likewise.
31939 * ira-build.c: Likewise.
31940 * tree-inline.c: Likewise.
31941 * builtins.c: Likewise.
31942 * lra-constraints.c: Likewise.
31943 * explow.c: Likewise.
31944 * hwint.h: Likewise.
31945 * targhooks.c: Likewise.
31946 * tree-vect-data-refs.c: Likewise.
31947 * expr.c: Likewise.
31948 * doc/tm.texi: Likewise.
31949 * doc/extend.texi: Likewise.
31950 * doc/install.texi: Likewise.
31951 * doc/md.texi: Likewise.
31952 * tree-ssa-tail-merge.c: Likewise.
31953 * sched-int.h: Likewise.
31954 * match.pd: Likewise.
31955 * sched-ebb.c: Likewise.
31956 * target.def (omit_struct_return_reg): Likewise.
31957 * gimple-ssa-isolate-paths.c: Likewise.
31958 (find_implicit_erroneous_behaviour): Renamed to...
31959 (find_implicit_erroneous_behavior): ... this.
31960 (find_explicit_erroneous_behaviour): Renamed to...
31961 (find_explicit_erroneous_behavior): ... this.
31962 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
31963
31964 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
31965
31966 PR rtl-optimization/64682
31967 PR rtl-optimization/69567
31968 PR rtl-optimization/69737
31969 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
31970 in I2 as well, just lose it.
31971
31972 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31973
31974 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
31975 New variable.
31976 (aarch64_last_printed_tune_string): Likewise.
31977 (aarch64_declare_function_name): Only output .arch assembler
31978 directive if it will be different from the previously output
31979 directive. Same for .tune comment but only if -dA is set.
31980 (aarch64_start_file): New function.
31981 (TARGET_ASM_FILE_START): Define.
31982
31983 2016-02-11 David Malcolm <dmalcolm@redhat.com>
31984
31985 PR plugins/69758
31986 * Makefile.in (PLUGIN_HEADERS): Add params.list.
31987
31988 2016-02-11 Jakub Jelinek <jakub@redhat.com>
31989
31990 PR target/65313
31991 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
31992 -Wmaybe-uninitialized warning.
31993
31994 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
31995
31996 PR target/69713
31997 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
31998
31999 2016-02-11 Richard Biener <rguenther@suse.de>
32000
32001 PR rtl-optimization/69291
32002 * ifcvt.c (noce_try_store_flag_constants): Do not allow
32003 subexpressions affected by changing the result.
32004
32005 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
32006
32007 PR target/69148
32008 * lra-constraints.c (curr_insn_transform): Find in/out operands
32009 for secondary memory moves. Update dups.
32010
32011 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
32012
32013 PR tree-optimization/69652
32014 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32015 to nested loop, did source re-formatting, skip debug statements,
32016 add check on statement with volatile operand, remove dead scalar
32017 statements.
32018
32019 2016-02-10 Jakub Jelinek <jakub@redhat.com>
32020 Patrick Palka <ppalka@gcc.gnu.org>
32021
32022 PR ipa/69241
32023 PR c++/69649
32024 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32025 calls if the return type is TREE_ADDRESSABLE.
32026 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32027 * ipa-split.c (split_function): Fix doubled "we" in comment.
32028 Use void return type for the split part even if
32029 !split_point->split_part_set_retval.
32030
32031 2016-02-10 Bin Cheng <bin.cheng@arm.com>
32032
32033 PR tree-optimization/68021
32034 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32035 when computing the value of biv cand by itself.
32036
32037 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32038
32039 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32040 (cortexa57_tunings): Likewise.
32041 (cortexa72_tunings): Likewise.
32042 (arch_macro_fusion_pair_p): Add support for AES fusion.
32043 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32044 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32045 Allow virtual registers before reload so early scheduling works.
32046 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32047 correct latency and pipeline.
32048 (cortex_a57_crypto_complex): Likewise.
32049 (cortex_a57_crypto_xor): Likewise.
32050 (define_bypass): Add AES bypass.
32051
32052 2016-02-10 Richard Biener <rguenther@suse.de>
32053
32054 PR tree-optimization/69726
32055 * passes.def: Add DCE pass before late uninit.
32056 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32057 really fixup if-conversions job.
32058
32059 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32060
32061 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32062 (arm_cortex_a57_tune): Likewise.
32063 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32064 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32065
32066 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32067
32068 * timevar.def (TV_PHASE_DBGINFO): Delete.
32069 (TV_PHASE_CHECK_DBGINFO): Likewise.
32070 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32071
32072 2016-02-10 Richard Biener <rguenther@suse.de>
32073
32074 PR tree-optimization/69719
32075 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32076 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32077
32078 2016-02-09 Andrew Pinski <apinski@cavium.com>
32079
32080 PR tree-opt/69282
32081 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32082 get_vcond_mask_icode returns false.
32083
32084 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32085
32086 PR target/68404
32087 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32088 an ADDIS that adds a pointer to a large constant that sets the
32089 upper16 bits with a load operation.
32090
32091 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32092
32093 PR target/68532
32094 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32095 order.
32096 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32097 endian.
32098 (vzipq_s16): Likewise.
32099 (vzipq_s32): Likewise.
32100 (vzipq_f32): Likewise.
32101 (vzipq_u8): Likewise.
32102 (vzipq_u16): Likewise.
32103 (vzipq_u32): Likewise.
32104 (vzipq_p8): Likewise.
32105 (vzipq_p16): Likewise.
32106
32107 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32108
32109 PR target/68532
32110 * config/arm/arm.c (neon_endian_lane_map): New function.
32111 (neon_vector_pair_endian_lane_map): New function.
32112 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32113 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32114 endian.
32115 (vuzpq_s16): Likewise.
32116 (vuzpq_s32): Likewise.
32117 (vuzpq_f32): Likewise.
32118 (vuzpq_u8): Likewise.
32119 (vuzpq_u16): Likewise.
32120 (vuzpq_u32): Likewise.
32121 (vuzpq_p8): Likewise.
32122 (vuzpq_p16): Likewise.
32123
32124 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32125
32126 PR target/69634
32127 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32128 debug insns.
32129
32130 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32131
32132 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32133 truncate const_int operand 1 to QImode.
32134
32135 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32136
32137 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32138 corresponding to an abnormal edge.
32139
32140 2016-02-09 Tom de Vries <tom@codesourcery.com>
32141
32142 PR tree-optimization/69599
32143 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32144 function.
32145 (find_func_aliases_for_builtin_call, find_func_clobbers)
32146 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32147 partition.
32148
32149 2016-02-09 Richard Biener <rguenther@suse.de>
32150
32151 PR tree-optimization/69715
32152 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32153 LHS on calls as non-rewritable.
32154
32155 2016-02-09 Tom de Vries <tom@codesourcery.com>
32156
32157 PR lto/69707
32158 * lto-wrapper.c (append_diag_options): New function.
32159 (compile_offload_image): Call append_diag_options.
32160
32161 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32162
32163 PR other/69722
32164 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32165 Minor copy-edit to fix verb tenses.
32166
32167 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32168
32169 PR tree-optimization/69209
32170 * ipa-split.c (split_function): If split part is not
32171 returning retval, retval has gimple type but is not
32172 gimple value, force it into a SSA_NAME first.
32173
32174 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32175
32176 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32177 outdated section.
32178
32179 2016-02-08 Jason Merrill <jason@redhat.com>
32180
32181 PR c++/69631
32182 * convert.c (convert_to_integer_1): Check dofold on truncation
32183 distribution.
32184 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32185 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32186 Rename from *_nofold.
32187 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32188 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32189
32190 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32191
32192 PR target/60410
32193 * tree.c (build_common_tree_nodes): Remove short_double argument.
32194 All callers changed.
32195 * tree.h (build_common_tree_nodes): Adjust declaration.
32196 * doc/invoke.texi (-fshort-double): Remove documentation.
32197 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32198 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32199 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32200 (append_linker_options): Don't handle OPT_fshort_double.
32201
32202 PR rtl-optimization/68730
32203 * lra-remat.c (insn_to_cand_activation): New static variable.
32204 (lra_remat): Allocate and free it.
32205 (create_cand): New arg activation. Initialize a field in
32206 insn_to_cand_activation if it is nonnull.
32207 (create_cands): Pass the activation insn to create_cand when making
32208 a candidate involving an output reload. Reorganize code a little.
32209 (do_remat): Keep track of active status of candidates in a separate
32210 bitmap.
32211
32212 2016-02-08 Richard Biener <rguenther@suse.de>
32213
32214 PR tree-optimization/69719
32215 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32216 Properly use absolute of the difference of the two offsets to
32217 compare or adjust the segment length.
32218
32219 2016-02-08 Richard Biener <rguenther@suse.de>
32220 Jeff Law <law@redhat.com>
32221
32222 PR target/68273
32223 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32224 types for anonymous SSA names.
32225
32226 2016-02-08 Richard Biener <rguenther@suse.de>
32227
32228 PR rtl-optimization/69274
32229 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32230
32231 2016-02-08 Jeff Law <law@redhat.com>
32232
32233 PR tree-optimization/65917
32234 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32235 equivalences from if (x == y) style conditionals.
32236 (loop_depth_of_name): Remove.
32237 (record_equality): Remove loop depth check.
32238 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32239 (const_and_copies::record_const_or_copy_raw): New member function.
32240 * tree-ssa-scopedtables.c
32241 (const_and_copies::record_const_or_copy_raw): New, factored out of
32242 (const_and_copies::record_const_or_copy): Call new member function.
32243
32244 2016-02-05 Jeff Law <law@redhat.com>
32245
32246 PR tree-optimization/68541
32247 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32248 (count_stmts_in_block): New function.
32249 (poor_ifcvt_candidate_code): Likewise.
32250 (is_feasible_trace): Add some heuristics to determine when path
32251 splitting is profitable.
32252 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32253 is a diamond with a single exit.
32254
32255 2016-02-05 Martin Sebor <msebor@redhat.com>
32256
32257 PR c++/69662
32258 * doc/invoke.texi: Update -Wplacement-new to take an optional
32259 argument.
32260
32261 2016-02-06 Richard Henderson <rth@redhat.com>
32262
32263 PR c/69643
32264 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32265 out of non-standard address spaces.
32266
32267 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32268
32269 PR rtl-optimization/69691
32270 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32271
32272 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32273
32274 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32275 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32276 (*ieee128_mfvsrd_64bit): Likewise.
32277 (*ieee128_mfvsrd_32bit): Likewise.
32278
32279 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32280
32281 PR target/69369
32282 Revert r232560:
32283 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32284
32285 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32286 instrumented_version.
32287
32288 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32289
32290 * doc/invoke.texi (Optimize Options): In table of --param options
32291 rename second occurrence of tracer-min-branch-ratio to
32292 tracer-min-branch-probability, rename
32293 tracer-min-branch-ratio-feedback to
32294 tracer-min-branch-probability-feedback and clarify description,
32295 rename sched-spec-state-edge-prob-cutoff to
32296 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32297 to selsched-insns-to-rename, rename lto-minpartition to
32298 lto-min-partition, delete reorder-blocks-duplicate and
32299 reorder-blocks-duplicate-feedback.
32300
32301 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32302
32303 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32304 superfluous loops.
32305
32306 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32307
32308 * doc/extend.texi: S/390: Correct some typos.
32309
32310 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32311
32312 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32313
32314 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32315
32316 PR target/69625
32317 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32318 (s390_register_info_gprtofpr): Use new macros above.
32319 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32320 its name.
32321 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32322 its name. Adjust restore and save gpr ranges.
32323 (s390_register_info_set_ranges): New function.
32324 (s390_register_info): Use new macros above. Call
32325 s390_register_info_set_ranges.
32326 (s390_optimize_register_info): Likewise.
32327 (s390_hard_regno_rename_ok): Use new macros.
32328 (s390_hard_regno_scratch_ok): Likewise.
32329 (s390_emit_epilogue): Likewise.
32330 (s390_can_use_return_insn): Likewise.
32331 (s390_optimize_prologue): Likewise.
32332 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32333
32334 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32335
32336 PR bootstrap/69677
32337 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32338 alignment fixes.
32339 (ix86_option_override_internal): Disable TARGET_STV even for
32340 -m{incoming,preferred}-stack-boundary=3.
32341
32342 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32343
32344 * config.gcc: Mark deprecated rtems targets as obsolete.
32345
32346 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32347
32348 PR rtl-optimization/64682
32349 PR rtl-optimization/69567
32350 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32351 before I2 only if the register is both used and set in I2.
32352
32353 2016-02-04 DJ Delorie <dj@redhat.com>
32354
32355 * config/msp430/msp430.c (msp430_start_function): Add function type.
32356
32357 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32358
32359 PR fortran/69368
32360 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32361
32362 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32363
32364 PR rtl-optimization/69577
32365 Revert:
32366 2015-10-29 Richard Henderson <rth@redhat.com>
32367
32368 PR target/68124
32369 PR rtl-opt/67609
32370 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32371 sse check to the exact conditions of PR 67609.
32372
32373 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32374
32375 PR target/69667
32376 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32377 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32378 not allowed into the traditional Altivec registers.
32379 (movtd_64bit_nodm): Likewise.
32380 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32381
32382 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32383
32384 * config/aarch64/cortex-a57-fma-steering.c
32385 (aarch64_register_fma_steering): Remove "static" from arguments
32386 to register_pass.
32387
32388 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32389
32390 PR target/69619
32391 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32392 twice when complex.
32393
32394 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32395
32396 * doc/invoke.texi: Delete -mno-fma4.
32397
32398 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32399
32400 PR rtl-optimization/69577
32401 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32402 (find_subregs_of_mode): Update accordingly. Iterate over partial
32403 definitions.
32404
32405 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32406
32407 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32408 * config/arm/arm.c (neon_reinterpret): Remove.
32409 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32410 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32411 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32412 vreinterpretti): Remove.
32413 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32414 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32415 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32416 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32417 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32418 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32419 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32420 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32421 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32422 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32423 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32424 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32425 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32426 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32427 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32428 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32429 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32430 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32431 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32432 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32433 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32434 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32435 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32436 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32437 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32438 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32439 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32440 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32441 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32442 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32443 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32444 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32445 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32446 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32447 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32448 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32449 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32450 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32451 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32452 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32453 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32454 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32455 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32456 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32457 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32458 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32459 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32460 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32461 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32462 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32463 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32464 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32465 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32466 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32467 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32468 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32469 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32470 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32471 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32472 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32473 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32474 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32475 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32476 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32477 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32478 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32479 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32480 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32481 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32482 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32483 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32484 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32485 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32486 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32487 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32488 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32489 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32490 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32491 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32492 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32493 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32494 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32495 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32496 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32497 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32498 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32499 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32500 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32501 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32502 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32503 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32504 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32505 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32506 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32507 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32508 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32509 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32510 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32511 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32512 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32513 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32514 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32515 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32516
32517 2016-02-04 Martin Liska <mliska@suse.cz>
32518
32519 PR sanitizer/69276
32520 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32521 that are gimple_store_p.
32522 (maybe_instrument_call): Likewise.
32523
32524 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32525
32526 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32527 register scaling out of memory reference and comment why.
32528
32529 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32530
32531 PR target/65932
32532 PR target/67714
32533 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32534 folding the source of a SET.
32535
32536 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32537
32538 PR target/65932
32539 PR target/67714
32540 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32541 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32542
32543 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32544
32545 PR target/65932
32546 PR target/67714
32547 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32548 HImode.
32549
32550 2016-02-04 Christian Bruel <christian.bruel@st.com>
32551
32552 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32553 * config/arm/arm.c (arm_set_current_function): Likewise.
32554
32555 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32556 Ilya Enkovich <enkovich.gnu@gmail.com>
32557 H.J. Lu <hongjiu.lu@intel.com>
32558
32559 PR target/69454
32560 * config/i386/i386.c (convert_scalars_to_vector): Remove
32561 stack alignment fixes.
32562 (ix86_option_override_internal): Disable TARGET_STV if stack
32563 might not be aligned enough.
32564 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32565
32566 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32567
32568 * config/i386/x86-tune.def: Disable default prefetching
32569 for -march=znver1.
32570
32571 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32572 Vladimir Makarov <vmakarov@redhat.com>
32573
32574 PR target/69461
32575 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32576 in validating fused toc addresses.
32577
32578 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32579
32580 PR c/69627
32581 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32582 range->m_caret fields if range->m_show_caret_p is false.
32583
32584 PR target/69644
32585 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32586 Force oldval into register if it does not satisfy reg_or_short_operand
32587 predicate. Fix up formatting.
32588
32589 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32590 Alexandre Oliva <aoliva@redhat.com>
32591
32592 PR target/69461
32593 * lra-constraints.c (simplify_operand_subreg): Check additionally
32594 address validity after potential reloading.
32595 (process_address_1): Check insns validity. In case of failure do
32596 nothing.
32597
32598 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32599
32600 PR target/69118
32601 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32602 Fix target.
32603
32604 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32605
32606 * wide-int.cc (canonize_uhwi): New function.
32607 (wi::divmod_internal): Use it.
32608
32609 2016-02-02 James Norris <jnorris@codesourcery.com>
32610
32611 * gimplify.c (omp_notice_variable): Add usage check.
32612
32613 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32614
32615 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32616 like LE, GE, LT, GT when emitting relational operator.
32617
32618 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32619
32620 * ira-costs.c (find_costs_and_classes): Add extra argument.
32621 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32622 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32623 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32624 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32625 Add best_class parameter, and return it if not ALL_REGS.
32626 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32627 Add parameter.
32628 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32629 Update target hook.
32630
32631 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32632
32633 * config/aarch64/aarch64.c
32634 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32635 (aarch64_ira_change_pseudo_allocno_class): New function.
32636
32637 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32638
32639 PR target/67032
32640 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32641
32642 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32643
32644 * config/avr/avr.c (avr_option_override): Set
32645 PARAM_ALLOW_STORE_DATA_RACES to 1.
32646
32647 2016-02-02 Richard Biener <rguenther@suse.de>
32648
32649 PR tree-optimization/69595
32650 * match.pd: Add range test simplifications to true/false.
32651
32652 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32653
32654 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32655 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32656 instead.
32657
32658 2016-02-02 Richard Biener <rguenther@suse.de>
32659
32660 PR tree-optimization/69606
32661 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32662 info on the result before moving a stmt.
32663
32664 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32665
32666 PR middle-end/68542
32667 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32668 branch with vector comparison.
32669 * config/i386/sse.md (VI48_AVX): New mode iterator.
32670 (define_expand "cbranch<mode>4): Add support for conditional branch
32671 with vector comparison.
32672 * tree-vect-loop.c (optimize_mask_stores): New function.
32673 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32674 has_mask_store field of vect_info.
32675 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32676 vectorized loops having masked stores after vec_info destroy.
32677 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32678 correspondent macros.
32679 (optimize_mask_stores): Add prototype.
32680
32681 2016-02-02 Alan Modra <amodra@gmail.com>
32682
32683 PR target/69548
32684 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32685 allow subregs.
32686
32687 2016-02-02 Alan Modra <amodra@gmail.com>
32688
32689 PR target/68662
32690 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32691 whenever toc_label_name used.
32692 (rs6000_file_start): Don't set up toc section here,
32693 (rs6000_output_function_epilogue): do so here instead,
32694 (rs6000_xcoff_file_start): and here.
32695 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32696 (load_toc_aix_di): Likewise.
32697
32698 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32699
32700 PR rtl-optimization/69592
32701 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32702 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32703 (num_sign_bit_copies_binary_arith_p): New inline function.
32704 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32705
32706 2016-02-01 Jeff Law <law@redhat.com>
32707
32708 PR tree-optimization/69580
32709 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32710 * tree-ssa-threadbackward.c
32711 (fsm_find_control_statement_thread_paths): Do not try to walk
32712 through large PHI nodes.
32713
32714 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32715
32716 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32717 when count is incremented above limit, don't analyze further
32718 insns afterwards.
32719
32720 * omp-low.c (oacc_parse_default_dims): Avoid
32721 -Wsign-compare warning, make sure value fits into int
32722 rather than just unsigned int.
32723
32724 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32725
32726 PR tree-optimization/67921
32727 * fold-const.c (split_tree): New parameters. Convert pointer
32728 type variable part to proper type before negating.
32729 (fold_binary_loc): Pass new arguments to split_tree.
32730
32731 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32732
32733 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32734 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32735 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32736 * doc/tm.texti: Rebuilt.
32737 * doc/invoke.texi (fopenacc-dim): Document.
32738 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32739 (append_compiler_options): Likewise.
32740 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32741 (oacc_parse_default_dims): New.
32742 (oacc_validate_dims): Add USED arg. Select non-unity default when
32743 possible.
32744 (oacc_loop_fixed_partitions): Return mask of used partitions.
32745 (oacc_loop_auto_partitions): Emit dump info.
32746 (oacc_loop_partition): Return mask of used partitions.
32747 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32748 loop partitioning and validation calls.
32749
32750 2016-02-01 Richard Biener <rguenther@suse.de>
32751
32752 PR middle-end/69556
32753 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32754
32755 2016-02-01 Richard Biener <rguenther@suse.de>
32756
32757 PR tree-optimization/69574
32758 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32759 of asserting return chrec_dont_know.
32760
32761 2016-02-01 Martin Liska <mliska@suse.cz>
32762
32763 * mem-stats-traits.h: Add copyright header.
32764 * mem-stats.h: Likewise.
32765
32766 2016-02-01 Richard Biener <rguenther@suse.de>
32767
32768 PR tree-optimization/69579
32769 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32770 Do not propagate through abnormal PHI results.
32771
32772 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32773
32774 * postreload.c (reload_cse_simplify): Remove dead code.
32775
32776 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32777
32778 PR rtl-optimization/69570
32779 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32780 if there is more than one set, not if there is a single set.
32781
32782 2016-02-01 Richard Henderson <rth@redhat.com>
32783
32784 PR rtl-opt/69535
32785 * combine.c (make_compound_operation): When looking through a
32786 subreg, make sure to re-extend to the width of the outer mode.
32787
32788 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32789
32790 PR tree-optimization/69546
32791 * wide-int.cc (wi::divmod_internal): For unsigned division
32792 where both operands fit into uhwi, if o1 is 1 and o0 has
32793 msb set, if divident_prec is larger than bits per hwi,
32794 clear another quotient word and return 2 instead of 1.
32795 Similarly for remainder with msb in HWI set, if dividend_prec
32796 is larger than bits per hwi.
32797
32798 2016-01-29 Martin Jambor <mjambor@suse.cz>
32799
32800 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32801 Use short lowercase names.
32802 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32803 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32804 acq_rel one. Protect warning agains segfaults if
32805 get_memory_order_name returns NULL.
32806 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32807 with release semantics. Do not warn if get_memory_order already did.
32808 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32809 semantics. Fix check for relaxed or acquire semantics. Do not warn
32810 if get_memory_order already did.
32811
32812 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32813
32814 * doc/install.texi: Document that isl-0.16 is supported.
32815
32816 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32817
32818 PR target/69299
32819 * config/i386/constraints.md (Bm): Describe as special memory
32820 constraint.
32821 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32822 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32823 * genpreds.c (struct constraint_data): Add is_special_memory.
32824 (have_special_memory_constraints, special_memory_start): New
32825 static vars.
32826 (special_memory_end): Ditto.
32827 (add_constraint): Add new arg is_special_memory. Add code to
32828 process its true value. Update have_special_memory_constraints.
32829 (process_define_constraint): Pass the new arg.
32830 (process_define_register_constraint): Ditto.
32831 (choose_enum_order): Process special memory.
32832 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32833 function insn_extra_special_memory_constraint.
32834 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32835 * gensupport.c (process_rtx): Process
32836 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32837 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32838 * ira-lives.c (single_reg_class): Use
32839 insn_extra_special_memory_constraint.
32840 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32841 * lra-constraints.c (process_alt_operands): Ditto.
32842 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32843 * recog.c (asm_operand_ok, preprocess_constraints): Process
32844 CT_SPECIAL_MEMORY.
32845 * reload.c (find_reloads): Ditto.
32846 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32847 * stmt.c (parse_input_constraint): Use
32848 insn_extra_special_memory_constraint.
32849
32850 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32851
32852 PR target/69530
32853 * lra-splill.c (lra_final_code_change): Revert r229087 by
32854 removing all sub-registers.
32855
32856 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32857
32858 PR target/65604
32859 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32860
32861 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32862
32863 PR target/69551
32864 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32865 SSE1, copy target into the temporary reg first before recursing
32866 on it.
32867
32868 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32869
32870 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32871 with vm.
32872
32873 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32874
32875 * ginclude/stdarg.h: Test __cplusplus instead of
32876 __GXX_EXPERIMENTAL_CXX0X__.
32877
32878 2016-01-29 Richard Biener <rguenther@suse.de>
32879
32880 PR tree-optimization/69547
32881 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32882 Do not mark clobbers necessary.
32883 (mark_all_reaching_defs_necessary_1): Likewise.
32884
32885 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32886
32887 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32888 declaration name with %qs and print it in both error messages.
32889 Also fix indentation.
32890
32891 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32892
32893 PR other/69006
32894 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32895 trailing blank line from error message.
32896
32897 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32898
32899 PR c++/69462
32900 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32901 for C++-11.
32902
32903 2016-01-29 Richard Biener <rguenther@suse.de>
32904
32905 PR middle-end/69537
32906 * match.pd: Allow all integral types when simplifying a
32907 widening or sign-changing conversion.
32908
32909 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32910
32911 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32912 back to setting codegen_error to fail codegen.
32913
32914 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32915
32916 PR target/69459
32917 * config/i386/constraints.md (C): Only accept constant zero operand.
32918 (BC): New constraint.
32919 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32920 instead of C constraint.
32921 * doc/md.texi (Machine Constraints): Update description
32922 of C constraint.
32923
32924 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32925
32926 PR target/68400
32927 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32928
32929 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32930
32931 PR middle-end/69542
32932 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32933 non-debug insns.
32934
32935 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32936
32937 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32938 branches if using guessed profile.
32939
32940 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32941
32942 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32943
32944 2016-01-28 Richard Henderson <rth@redhat.com>
32945
32946 PR target/69305
32947 * config/aarch64/aarch64-modes.def (CC_Cmode): New
32948 * config/aarch64/aarch64-protos.h: Update.
32949 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
32950 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
32951 (aarch64_get_condition_code_1): Handle CC_Cmode.
32952 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
32953 (*add<mode>3_compareC_cconly_imm): New.
32954 (*add<mode>3_compareC_cconly): New.
32955 (*add<mode>3_compareC_imm): New.
32956 (add<mode>3_compareC): New.
32957 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
32958 to be first. Use aarch64_carry_operation.
32959 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
32960 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
32961 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
32962 (subti3): Use subdi3_compare1.
32963 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
32964 (sub<mode>3_compare1): New.
32965 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
32966 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
32967 (*subsi3_carryin_uxtw): Likewise.
32968 (*ngc<mode>, *ngcsi_uxtw): Likewise.
32969 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
32970 * config/aarch64/iterators.md (DWI): New.
32971 * config/aarch64/predicates.md (aarch64_carry_operation): New.
32972 (aarch64_borrow_operation): New.
32973
32974 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
32975
32976 * graphite-optimize-isl.c (optimize_isl): Print a different debug
32977 message when isl does not return a valid schedule.
32978
32979 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32980
32981 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
32982 Remove comments from class declarations: they are already in the code
32983 close by the defs.
32984
32985 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32986
32987 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
32988 codegen_error_p.
32989 (ternary_op_to_tree): Same.
32990 (unary_op_to_tree): Same.
32991 (nary_op_to_tree): Same.
32992 (gcc_expression_from_isl_expr_op): Same.
32993 (gcc_expression_from_isl_expression): Same.
32994 (graphite_create_new_loop): Same.
32995 (graphite_create_new_loop_guard): Same.
32996 (build_iv_mapping): Same.
32997 (graphite_create_new_guard): Same.
32998 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
32999 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
33000
33001 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33002
33003 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
33004 instead of setting codegen_error to fail codegen.
33005
33006 2016-01-28 Jason Merrill <jason@redhat.com>
33007
33008 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
33009
33010 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33011
33012 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33013 Remove CONST_INT_P check in CCMP cost calculation.
33014
33015 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33016
33017 * config/aarch64/aarch64.c (generic_vector_cost):
33018 Set vec_permute_cost.
33019 (cortexa57_vector_cost): Likewise.
33020 (exynosm1_vector_cost): Likewise.
33021 (xgene1_vector_cost): Likewise.
33022 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33023 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33024 Add vec_permute_cost entry.
33025
33026 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33027
33028 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33029 immediate as %1.
33030 (add<mode>3_compare0): Likewise.
33031 (addsi3_compare0_uxtw): Likewise.
33032 (add<mode>3nr_compare0): Likewise.
33033 (compare_neg<mode>): Likewise.
33034 (<optab><mode>3): Likewise.
33035
33036 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
33037
33038 * tree-vect-stmts.c (vectorizable_comparison): Add
33039 NULL check for vectype.
33040
33041 2016-01-28 Richard Biener <rguenther@suse.de>
33042
33043 PR tree-optimization/69466
33044 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33045 Account for PHIs we couldn't duplicate.
33046
33047 2016-01-28 Martin Liska <mliska@suse.cz>
33048
33049 PR pch/68758
33050 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33051 instead of ENABLE_VALGRIND_CHECKING.
33052
33053 2016-01-27 Richard Henderson <rth@redhat.com>
33054
33055 PR rtl-opt/69447
33056 * lra-remat.c (subreg_regs): New.
33057 (dump_candidates_and_remat_bb_data): Dump it.
33058 (operand_to_remat): Reject if operand in subreg_regs.
33059 (set_bb_regs): Collect subreg_regs.
33060 (lra_remat): Init and free subreg_regs. Compute
33061 calculate_local_reg_remat_bb_data before create_cands.
33062
33063 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33064
33065 PR target/68986
33066 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33067 change stack_alignment_needed for __tls_get_addr call.
33068
33069 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33070
33071 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33072
33073 2016-01-27 Jeff Law <law@redhat.com>
33074
33075 PR tree-optimization/68398
33076 PR tree-optimization/69196
33077 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33078 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33079 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33080 Only count PHIs in the last block in the path. The others will
33081 const/copy propagate away. Add heuristic to allow more irreducible
33082 subloops to be created when it is likely profitable to do so.
33083
33084 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33085 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33086 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33087
33088 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33089
33090 PR lto/69254
33091 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33092 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33093 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33094 * tree-streamer-in.c: Include asan.h.
33095 (streamer_get_builtin_tree): For builtins in sanitizer
33096 range call initialize_sanitizer_builtins and retry.
33097
33098 2016-01-27 Ian Lance Taylor <iant@google.com>
33099
33100 * common.opt (fkeep-gc-roots-live): New undocumented option.
33101 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33102 -fkeep-gc-roots-live, skip pointers.
33103 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33104 NULL.
33105
33106 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33107
33108 PR target/69512
33109 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33110 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33111
33112 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33113
33114 PR target/68380
33115 * configure.ac: NetBSD provides SSP in its C library.
33116 * configure: Updated.
33117
33118 2016-01-27 Richard Biener <rguenther@suse.de>
33119
33120 PR tree-optimization/69166
33121 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33122 reduction code for commutativity / associativity.
33123
33124 2016-01-27 Martin Jambor <mjambor@suse.cz>
33125
33126 PR tree-optimization/69355
33127 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33128 total_scalarization fails.
33129
33130 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33131
33132 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33133 power9.
33134
33135 2016-01-27 Christian Bruel <christian.bruel@st.com>
33136
33137 PR target/69245
33138 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33139 Move arm_reset_previous_fndecl and set_target_option_current_node in
33140 the conditional part. Call save_restore_target_globals.
33141 * config/arm/arm.c (arm_set_current_function):
33142 Refactor to better support #pragma target and attribute mix.
33143 Call save_restore_target_globals.
33144 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33145
33146 2016-01-27 Martin Liska <mliska@suse.cz>
33147
33148 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33149 reference for an HSA kernel and its host function.
33150
33151 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33152
33153 PR tree-optimization/69399
33154 * wide-int.h (wi::lrshift): For larger precisions, only
33155 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33156
33157 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33158
33159 * config/arc/predicates.md (proper_comparison_operator): Reject
33160 constant-constant comparison.
33161
33162 2016-01-26 Tom de Vries <tom@codesourcery.com>
33163
33164 PR tree-optimization/69110
33165 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33166 DR_NUM_DIMENSIONS == 0.
33167
33168 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33169 Sebastian Pop <s.pop@samsung.com>
33170
33171 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33172 isl_ast_op_cond and isl_ast_op_select.
33173 (gcc_expression_from_isl_expr_op): Same.
33174
33175 2016-01-26 Jason Merrill <jason@redhat.com>
33176
33177 PR c++/68782
33178 * tree.c (recompute_constructor_flags): Split out from
33179 build_constructor.
33180 (verify_constructor_flags): New.
33181 * tree.h: Declare them.
33182
33183 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33184
33185 PR rtl-optimization/69217
33186 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33187 are no TYPE_FIELDS set for the record type.
33188
33189 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33190
33191 PR target/68662
33192 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33193 toc_label_name unconditionally.
33194 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33195 SYMBOL_REF string. Use toc_label_name instead of constructing
33196 LCTOC1.
33197 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33198 constructing LCTOC1.
33199
33200 2016-01-26 Martin Sebor <msebor@redhat.com>
33201
33202 PR other/69477
33203 * doc/extend.texi (Common Type Attributes): Move text that talks about
33204 attribute packed from attribute aligned to the section discussing
33205 the former attribute for clarity.
33206
33207 2016-01-26 Richard Henderson <rth@redhat.com>
33208
33209 PR middle-end/60908
33210 * trans-mem.c (tm_region_init): Mark entry block as visited.
33211
33212 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33213
33214 PR other/69006
33215 * diagnostic-show-locus.c (layout::print_source_line): Replace
33216 call to pp_newline with call to layout::print_newline.
33217 (layout::print_annotation_line): Likewise.
33218 (layout::move_to_column): Likewise.
33219 (layout::print_any_fixits): After printing any fixits, print a
33220 trailing newline, if necessary.
33221 (layout::print_newline): New method, resetting any colorization
33222 before a newline.
33223 (diagnostic_show_locus): Move the pp_newline to before the
33224 early bailout. Remove dummy block enclosing the layout instance.
33225 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33226 of pp_newline_and_flush with pp_flush.
33227 (diagnostic_append_note): Delete use of pp_newline.
33228 (diagnostic_append_note_at_rich_loc): Delete.
33229 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33230 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33231 when newline characters are added to the buffer.
33232
33233 2016-01-26 Michael Matz <matz@suse.de>
33234
33235 * configure.ac (ac_cv_std_swap_in_utility): New test.
33236 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33237 * configure: Regenerate.
33238 * config.in: Regenerate.
33239
33240 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33241
33242 * config/arc/arc.md (cstoresi4): Force operand into register.
33243 (arcset<code>): Fix predicate.
33244 (arcsetltu): Likewise.
33245 (arcsetgeu): Likewise.
33246 (arcsethi): Likewise.
33247 (arcsetls): Likewise.
33248
33249 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33250
33251 PR tree-optimization/69483
33252 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33253 if base has error_mark_node type.
33254
33255 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33256
33257 PR target/68620
33258 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33259 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33260 New helper macros.
33261 (vget_lane_f16): Handle big-endian.
33262 (vgetq_lane_f16): Likewise.
33263 (vset_lane_f16): Likewise.
33264 (vsetq_lane_f16): Likewise.
33265 * config/arm/iterators.md (VQXMOV): Add V8HF.
33266 (VDQ): Add V4HF and V8HF.
33267 (V_reg): Handle V4HF and V8HF.
33268 (Is_float_mode): Likewise.
33269 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33270 neon_vdup_nv8hf): New patterns.
33271 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33272 Use VD_LANE iterator.
33273 (neon_vld1_dup<mode>): Use VQ2 iterator.
33274
33275 2016-01-26 Nathan Sidwell <nathan@acm.org>
33276
33277 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33278 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33279 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33280 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33281 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33282 (oacc_validate_dims): Add LEVEL arg, don't return level.
33283 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33284 oacc_validate_dims.
33285 (execute_oacc_device_lower): Adjust, add more dump output.
33286 * tree-ssa-loop.c (gate_oacc_kernels): Use
33287 oacc_fn_attrib_kernels_p.
33288 * tree-parloops.c (create_parallel_loop): Adjust
33289 set_oacc_fn_attrib call.
33290
33291 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33292
33293 PR lto/69254
33294 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33295 (append_compiler_options): Handle -fcilkplus.
33296 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33297
33298 2016-01-26 Nick Clifton <nickc@redhat.com>
33299
33300 PR target/66655
33301 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33302 been marked as DECL_ONE_ONLY but we do not the means to make it
33303 so, then do not allow it to bind locally.
33304
33305 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33306
33307 PR lto/69254
33308 * opts.h (parse_sanitizer_options): New prototype.
33309 * opts.c (sanitizer_opts): New array.
33310 (parse_sanitizer_options): New function.
33311 (common_handle_option): Use parse_sanitizer_options.
33312
33313 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33314
33315 PR target/68986
33316 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33317 alignment adjustment to ...
33318 (ix86_update_stack_boundary): Here. Don't over-align stack for
33319 __tls_get_addr.
33320 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33321 if __tls_get_addr is called.
33322
33323 2016-01-26 Christian Bruel <christian.bruel@st.com>
33324
33325 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33326
33327 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33328
33329 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33330
33331 2016-01-26 Richard Biener <rguenther@suse.de>
33332
33333 PR middle-end/69467
33334 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33335
33336 2016-01-26 Richard Biener <rguenther@suse.de>
33337
33338 PR tree-optimization/69452
33339 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33340 (move_computations_dom_walker::before_dom_children): Rename
33341 to ...
33342 (move_computations_worker): This.
33343 (move_computations): Perform an RPO rather than a DOM walk.
33344
33345 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33346
33347 PR target/69442
33348 * combine.c (combine_instructions): For REG_EQUAL note with
33349 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33350 to the underlying register.
33351 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33352 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33353
33354 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33355
33356 PR target/67896
33357 * config/aarch64/aarch64-builtins.c
33358 (aarch64_init_simd_builtin_types): Do not set structural
33359 equality to __Poly{8,16,64,128}_t types.
33360
33361 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33362
33363 PR tree-optimization/69400
33364 * wide-int.cc (wi_pack): Take the precision as argument and
33365 perform canonicalization here rather than in the callers.
33366 Use the main loop to handle all full-width HWIs. Add a
33367 zero HWI if in_len isn't a full result.
33368 (wi::divmod_internal): Update accordingly.
33369 (wi::mul_internal): Likewise. Simplify.
33370
33371 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33372 Sebastian Pop <s.pop@samsung.com>
33373
33374 * graphite-poly.c (apply_poly_transforms): Simplify.
33375 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33376 (print_isl_map): Same.
33377 (print_isl_union_map): Same.
33378 (print_isl_schedule): New.
33379 (debug_isl_schedule): New.
33380 * graphite-dependences.c (scop_get_reads): Do not call
33381 isl_union_map_add_map that is undocumented isl functionality.
33382 (scop_get_must_writes): Same.
33383 (scop_get_may_writes): Same.
33384 (scop_get_original_schedule): Remove.
33385 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33386 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33387 (compute_deps): Remove.
33388 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33389 (debug_schedule_ast): New.
33390 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33391 set_separate_option.
33392 (graphite_regenerate_ast_isl): Add dump.
33393 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33394 from scop->transformed_schedule.
33395 (graphite_regenerate_ast_isl): Add more dump.
33396 * graphite-optimize-isl.c (optimize_isl): Set
33397 scop->transformed_schedule. Check whether schedules are equal.
33398 (apply_poly_transforms): Move here.
33399 * graphite-poly.c (apply_poly_transforms): ... from here.
33400 (free_poly_bb): Static.
33401 (free_scop): Static.
33402 (pbb_number_of_iterations_at_time): Remove.
33403 (print_isl_ast): New.
33404 (debug_isl_ast): New.
33405 (debug_scop_pbb): New.
33406 * graphite-scop-detection.c (print_edge): Move.
33407 (print_sese): Move.
33408 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33409 (build_scop_scattering): Remove.
33410 (create_pw_aff_from_tree): Assert instead of bailing out.
33411 (add_condition_to_pbb): Remove unused code, do not fail.
33412 (add_conditions_to_domain): Same.
33413 (add_conditions_to_constraints): Remove.
33414 (build_scop_context): New.
33415 (add_iter_domain_dimension): New.
33416 (build_iteration_domains): Initialize pbb->iterators.
33417 Call add_conditions_to_domain.
33418 (nested_in): New.
33419 (loop_at): New.
33420 (index_outermost_in_loop): New.
33421 (index_pbb_in_loop): New.
33422 (outermost_pbb_in): New.
33423 (add_in_sequence): New.
33424 (add_outer_projection): New.
33425 (outer_projection_mupa): New.
33426 (add_loop_schedule): New.
33427 (build_schedule_pbb): New.
33428 (build_schedule_loop): New.
33429 (embed_in_surrounding_loops): New.
33430 (build_schedule_loop_nest): New.
33431 (build_original_schedule): New.
33432 (build_poly_scop): Call build_original_schedule.
33433 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33434 (free_poly_dr): Remove.
33435 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33436 (free_poly_bb): Remove.
33437 (debug_loop_vec): Remove.
33438 (print_isl_ast): Declare.
33439 (debug_isl_ast): Declare.
33440 (scop_do_interchange): Remove.
33441 (scop_do_strip_mine): Remove.
33442 (scop_do_block): Remove.
33443 (flatten_all_loops): Remove.
33444 (optimize_isl): Remove.
33445 (pbb_number_of_iterations_at_time): Remove.
33446 (debug_scop_pbb): Declare.
33447 (print_schedule_ast): Declare.
33448 (debug_schedule_ast): Declare.
33449 (struct scop): Remove schedule. Add original_schedule,
33450 transformed_schedule.
33451 (free_gimple_poly_bb): Remove.
33452 (print_generated_program): Remove.
33453 (debug_generated_program): Remove.
33454 (unify_scattering_dimensions): Remove.
33455 * sese.c (print_edge): ... here.
33456 (print_sese): ... here.
33457 (debug_edge): ... here.
33458 (debug_sese): ... here.
33459 * sese.h (print_edge): Declare.
33460 (print_sese): Declare.
33461 (dump_edge): Declare.
33462 (dump_sese): Declare.
33463
33464 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33465 Sebastian Pop <s.pop@samsung.com>
33466
33467 * Makefile.in: Set ISLVER in site.exp.
33468
33469 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33470
33471 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33472 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33473 through DECL_VALUE_EXPR for expansion.
33474
33475 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33476
33477 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33478 the frame info after reload completed.
33479
33480 2016-01-25 Jeff Law <law@redhat.com>
33481
33482 PR tree-optimization/69196
33483 PR tree-optimization/68398
33484 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33485 tree-ssa-threadupdate.c.
33486 (determine_bb_domination_status): Prototype
33487 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33488 (determine_bb_domination_status): No longer static.
33489 (valid_jump_thread_path): Remove code to detect characteristics
33490 of the jump thread path not associated with correctness.
33491 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33492 Correct test for thread path length. Count PHIs for real operands as
33493 statements that need to be copied. Do not count ASSERT_EXPRs.
33494 Look at all the blocks in the thread path. Compute and selectively
33495 filter thread paths based on threading through the latch, threading
33496 a multiway branch or crossing a multiway branch.
33497
33498 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33499
33500 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33501 decl with __attribute__ ((unused)) annotation.
33502
33503 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33504
33505 PR target/69421
33506 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33507 of operands is compatible with a statement vectype.
33508
33509 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33510
33511 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33512 improve wording for mixed storage order support.
33513
33514 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33515
33516 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33517 (vcvt_u64_f64): Likewise.
33518 (vcvta_s64_f64): Likewise.
33519 (vcvta_u64_f64): Likewise.
33520 (vcvtm_s64_f64): Likewise.
33521 (vcvtm_u64_f64): Likewise.
33522 (vcvtn_s64_f64): Likewise.
33523 (vcvtn_u64_f64): Likewise.
33524 (vcvtp_s64_f64): Likewise.
33525 (vcvtp_u64_f64): Likewise.
33526
33527 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33528
33529 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33530 (arc_init): Check validity mll64 option.
33531 (arc_save_restore): Use double load/store instruction.
33532 (arc_expand_movmem): Likewise.
33533 (arc_split_move): Don't split if we have double load/store
33534 instructions. Returns a boolean.
33535 (arc_process_double_reg_moves): Change function to return boolean
33536 instead of a sequence of instructions.
33537 (arc_dwarf_register_span): New function.
33538 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33539 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33540 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33541 (*movdf_insn): Likewise.
33542 * config/arc/arc.opt (mll64): New option.
33543 * config/arc/predicates.md (even_register_operand): New predicate.
33544 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33545
33546 2016-01-25 Richard Biener <rguenther@suse.de>
33547
33548 PR lto/69393
33549 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33550 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33551 DECL_NAMELESS.
33552 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33553
33554 2016-01-25 Richard Biener <rguenther@suse.de>
33555
33556 PR tree-optimization/69376
33557 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33558 flag.
33559 (VN_INFO_ANTI_RANGE_P): New inline.
33560 (VN_INFO_RANGE_TYPE): Likewise.
33561 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33562 SSA_NAME_ANTI_RANGE_P.
33563 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33564 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33565 Properly query VN_INFO_RANGE_TYPE.
33566
33567 2016-01-25 Nick Clifton <nickc@redhat.com>
33568
33569 PR target/66655
33570 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33571
33572 2016-01-23 Tom de Vries <tom@codesourcery.com>
33573
33574 PR tree-optimization/69426
33575 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33576 removed clobber.
33577
33578 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33579
33580 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33581 "the the" with "the" in the comments.
33582 * ipa-devirt.c (build_type_inheritance_graph,
33583 update_type_inheritance_graph): Likewise.
33584 * tree.c (build_function_type_list_1): Likewise.
33585 * cfgloopmanip.c (scale_loop_profile): Likewise.
33586 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33587 * gimple-ssa-split-paths.c
33588 (find_block_to_duplicate_for_splitting_paths): Likewise.
33589 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33590 * expr.c (convert_move): Likewise.
33591 * var-tracking.c (vt_stack_adjustments): Likewise.
33592 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33593 * tree-vrp.c (test_for_singularity): Likewise.
33594
33595 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33596 directly instead of building a temporary tree.
33597
33598 PR bootstrap/69434
33599 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33600 remove <algorithm> include.
33601
33602 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33603
33604 PR target/69432
33605 * config/i386/i386.c: Include dojump.h.
33606 (expand_small_movmem_or_setmem,
33607 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33608 fixes.
33609 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33610 if dynamic_check != -1.
33611
33612 2016-01-21 Jeff Law <law@redhat.com>
33613
33614 PR middle-end/69347
33615 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33616 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33617 into dominated_by_p.
33618 (cprop_into_successor_phis): Avoid unnecessary tests.
33619
33620 2016-01-22 Richard Henderson <rth@redhat.com>
33621
33622 PR target/69416
33623 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33624 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33625
33626 2016-01-22 Michael Matz <matz@suse.de>
33627
33628 * system.h (string, algorithm): Include only conditionally.
33629 (new): Include always under C++.
33630 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33631 * final.c (toplevel): Ditto.
33632 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33633 * genconditions.c (write_header): Make gencondmd.c define
33634 INCLUDE_STRING.
33635 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33636
33637 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33638 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33639
33640 2016-01-22 Christian Bruel <christian.bruel@st.com>
33641
33642 PR target/68674
33643 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33644
33645 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33646
33647 PR target/69403
33648 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33649 define_insn_and_split. Ensure operands[1] and operands[0] do not
33650 get assigned the same register.
33651
33652 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33653
33654 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33655
33656 2016-01-22 Christian Bruel <christian.bruel@st.com>
33657
33658 * config/arm/arm-c.c (arm_pragma_target_parse):
33659 Remove warn_builtin_macro_redefined overwrite.
33660
33661 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33662
33663 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33664 flag_non_call_exceptions compatibility.
33665
33666 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33667
33668 PR debug/66668
33669 * dwarf2out.c (add_child_die_after): New function.
33670 (dwarf_qual_info_t): New type.
33671 (dwarf_qual_info): New variable.
33672 (qualified_die_p): New function.
33673 (modified_type_die): For -fdebug-types-section, ensure
33674 canonical order of qualifiers. Put qualified DIEs adjacent
33675 to the corresponding non-qualified type DIE and search there
33676 for existing qualified DIEs.
33677
33678 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33679
33680 * doc/extend.texi (scalar_storage_order type attribute): Document
33681 restriction on type punning and aliasing, and remove future tense.
33682
33683 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33684
33685 PR target/69252
33686 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33687 first stage.
33688
33689 2016-01-21 Jeff Law <law@redhat.com>
33690
33691 PR middle-end/69347
33692 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33693 useless call to record_temporary_equivalences.
33694 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33695 allocate 10 slots in the bb_path vector and let it grow as needed.
33696 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33697 vector.
33698
33699 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33700
33701 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33702 Detangle.
33703 * configure: Regenerate.
33704
33705 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33706
33707 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33708 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33709
33710 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33711
33712 PR middle-end/66178
33713 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33714 drop EXPAND_INITIALIZER.
33715 * rtl.h (contains_symbolic_reference_p): Declare.
33716 * rtlanal.c (contains_symbolic_reference_p): New function.
33717 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33718 a subtraction into a NOT if symbolic constants are involved.
33719
33720 2016-01-21 Anton Blanchard <anton@samba.org>
33721 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33722
33723 PR target/63354
33724 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33725 #define.
33726 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33727 function.
33728
33729 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33730
33731 * config/microblaze/microblaze.c
33732 (get_branch_target): New.
33733 (insert_wic_for_ilb_runout): New.
33734 (insert_wic): New.
33735 (microblaze_machine_dependent_reorg): New.
33736 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33737 * config/microblaze/microblaze.md
33738 (UNSPEC_IPREFETCH): Define.
33739 (iprefetch): New pattern
33740 * config/microblaze/microblaze.opt
33741 (mxl-prefetch): New flag.
33742
33743 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33744
33745 * config/microblaze/microblaze.h
33746 (FIXED_REGISTERS): Update in macro.
33747 (CALL_USED_REGISTERS): Update in macro.
33748
33749 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33750
33751 PR rtl-optimization/68920
33752 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33753 moves.
33754
33755 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33756
33757 PR rtl-optimization/68990
33758 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33759 pseudo instead of inheritance ones.
33760
33761 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33762 Nick Clifton <nickc@redhat.com>
33763
33764 PR target/69129
33765 PR target/69012
33766 * config/mips/mips.c (mips_compute_frame_info): Initialise
33767 args_size and hard_frame_pointer_offset fields of the frame
33768 structure before calling mips_global_pointer.
33769
33770 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33771
33772 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33773 label reference.
33774 * configure: Regenerate.
33775
33776 2016-01-21 Richard Biener <rguenther@suse.de>
33777
33778 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33779
33780 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33781
33782 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33783 to actually emit the .size directive.
33784
33785 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33786 Jakub Jelinek <jakub@redhat.com>
33787
33788 PR target/69187
33789 PR target/65624
33790 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33791 args array size by one to avoid buffer overflow.
33792
33793 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33794
33795 * config/s390/s390.md (pool_section_start): Use switch_to_section
33796 to select proper read-only data section instead of hardcoding
33797 .rodata.
33798 (pool_section_end): Use switch_to_section to match the above.
33799
33800 2016-01-21 Richard Biener <rguenther@suse.de>
33801
33802 PR tree-optimization/69378
33803 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33804 (set_ssa_val_to): Use it for dominance checks taking into
33805 account not executable edges.
33806
33807 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33808
33809 PR c++/69355
33810 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33811 for bitsize instead of GET_MODE_PRECISION (mode).
33812
33813 2016-01-20 Martin Sebor <msebor@redhat.com>
33814
33815 PR c/52291
33816 * extend.texi (__sync Builtins): Clarify the semantics of
33817 __sync_fetch_and_OP built-ins on pointers.
33818 (__atomic Builtins): Same.
33819
33820 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33821 Sebastian Pop <s.pop@samsung.com>
33822
33823 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33824 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33825 (is_valid_rename): Same.
33826 (translate_isl_ast_to_gimple::get_rename): Same.
33827 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33828 (translate_isl_ast_to_gimple::rename_uses): Same.
33829 (get_new_name): Check for close_phi nodes.
33830 (copy_loop_phi_args): Use phi_node_kind.
33831 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33832 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33833
33834 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33835 Sebastian Pop <s.pop@samsung.com>
33836
33837 Revert commit r229783.
33838 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33839 Remove use of parameter_rename_map.
33840 (copy_def): Remove.
33841 (copy_internal_parameters): Remove.
33842 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33843 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33844 (free_sese_info): Do not free parameter_rename_map.
33845 (set_rename): Do not use parameter_rename_map.
33846 (rename_uses): Update call to set_rename.
33847 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33848 * sese.h (parameter_rename_map_t): Remove.
33849 (struct sese_info_t): Remove field parameter_rename_map.
33850
33851 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33852 Sebastian Pop <s.pop@samsung.com>
33853
33854 * graphite-isl-ast-to-gimple.c: Fix comment.
33855 * graphite-scop-detection.c (defined_in_loop_p): New.
33856 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33857 names defined in loop.
33858
33859 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33860 Sebastian Pop <s.pop@samsung.com>
33861
33862 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33863 Discard unstructured if-then-else regions.
33864
33865 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33866 Sebastian Pop <s.pop@samsung.com>
33867
33868 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33869 (cleanup_loop_iter_dom): Remove.
33870 (build_loop_iteration_domains): Remove.
33871 (build_scop_context): Remove.
33872 (build_scop_iteration_domain): Remove.
33873 (add_loop_constraints): New.
33874 (build_iteration_domains): New.
33875 (build_poly_scop): Call build_iteration_domains.
33876
33877 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33878 Sebastian Pop <s.pop@samsung.com>
33879
33880 * graphite-scop-detection.c
33881 (scop_detection::harmful_loop_in_region): Free dom and loops.
33882 (scop_detection::loop_body_is_valid_scop): Free bbs.
33883
33884 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33885 Sebastian Pop <s.pop@samsung.com>
33886
33887 * graphite-scop-detection.c (record_loop_in_sese): New.
33888 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33889 (build_scops): Remove call to build_sese_loop_nests.
33890 * sese.c (sese_record_loop): Remove.
33891 (build_sese_loop_nests): Remove.
33892 (new_sese_info): Remove region->loops.
33893 (free_sese_info): Same.
33894 * sese.h (sese_contains_loop): Same.
33895 (build_sese_loop_nests): Remove.
33896 (sese_contains_loop): Remove.
33897
33898 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33899 Sebastian Pop <s.pop@samsung.com>
33900
33901 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33902 loop_is_valid_in_scop.
33903 (scop_detection::harmful_stmt_in_region): Renamed
33904 harmful_loop_in_region.
33905 Call loop_is_valid_in_scop.
33906
33907 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33908 Sebastian Pop <s.pop@samsung.com>
33909
33910 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33911 isl_ast_node_mark.
33912
33913 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33914 Sebastian Pop <s.pop@samsung.com>
33915
33916 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33917 * graphite.h (struct poly_bb): Remove field is_reduction.
33918 (PBB_IS_REDUCTION): Remove.
33919
33920 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33921 Sebastian Pop <s.pop@samsung.com>
33922
33923 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33924 (add_pdr_constraints): Same.
33925 (scop_get_reads): Same.
33926 (scop_get_must_writes): Same.
33927 (scop_get_may_writes): Same.
33928 (scop_get_original_schedule): Same.
33929 (extend_schedule): Same.
33930 (apply_schedule_on_deps): Same.
33931 (carries_deps): Same.
33932 (compute_deps): Same.
33933 (scop_get_dependences): Same.
33934 * graphite-isl-ast-to-gimple.c
33935 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33936 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33937 (get_schedule_for_band_list): Same.
33938 (get_schedule_map): Same.
33939 (apply_schedule_map_to_scop): Same.
33940 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33941 (build_loop_iteration_domains): Same.
33942 (add_condition_to_pbb): Same.
33943 (add_param_constraints): Same.
33944 (pdr_add_memory_accesses): Same.
33945 (pdr_add_data_dimensions): Same.
33946
33947 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33948
33949 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
33950 requirements.
33951
33952 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
33953
33954 * common.opt (feliminate-dwarf2-dups): Replace references to
33955 "DWARF 2" with just "DWARF".
33956 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
33957 * doc/extend.texi: Likewise.
33958 * doc/cpp.texi: Likewise.
33959 * doc/invoke.texi: Likewise.
33960 (Option Summary): Add -gdwarf to list of Debugging Options.
33961 (Debugging Options): Document -gdwarf.
33962 * doc/contrib.texi: Spell "DWARF" like that.
33963
33964 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33965
33966 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
33967 warning. Fix up formatting.
33968
33969 PR middle-end/67653
33970 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
33971 attempt to mark memory input operand addressable and
33972 call prepare_gimple_addressable in that case. Don't adjust
33973 input_location for diagnostics, use error_at instead.
33974
33975 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
33976
33977 * config/rs6000/ppc-auxv.h: New file.
33978 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
33979 (cpu_is): Likewise.
33980 (cpu_supports): Likewise.
33981 * config/rs6000/rs6000.c: include "ppc-auxv.h".
33982 (cpu_is_info): New variable.
33983 (cpu_supports_info): Likewise.
33984 (tcb_verification_symbol): Likewise.
33985 (cpu_builtin_p): Likewise.
33986 (cpu_expand_builtin): New function.
33987 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
33988 (rs6000_init_builtins): Likewise.
33989 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
33990 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
33991 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
33992 * configure: Regenerate.
33993 * config.in: Likewise.
33994 * doc/extend.texi (PowerPC Built-in Functions): Document
33995 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
33996
33997 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
33998
33999 PR target/68609
34000 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
34001 domain check.
34002 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
34003 for V4SFmode.
34004
34005 2016-01-20 Richard Henderson <rth@redhat.com>
34006
34007 PR bootstrap/69343
34008 PR bootstrap/69339
34009 PR tree-opt/68964
34010 Revert:
34011 * tree.c (tm_define_builtin): New.
34012 (find_tm_vector_type): New.
34013 (build_tm_vector_builtins): New.
34014 (build_common_builtin_nodes): Call it.
34015
34016 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
34017
34018 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34019 (arm_fp_ok): Likewise.
34020 (arm_fp): Likewise.
34021 (arm_crypto): Likewise.
34022
34023 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
34024 Richard Biener <rguenther@suse.de>
34025
34026 PR tree-optimization/69328
34027 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34028 vectors have same number of elements.
34029 (vectorizable_condition): Fix masked version recognition.
34030
34031 2016-01-20 Richard Biener <rguenther@suse.de>
34032
34033 PR tree-optimization/69345
34034 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34035 (VN_INFO_PTR_INFO): Likewise.
34036 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34037 info when it is equal between non-dominating SSA names.
34038 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34039 Make sure to look at original SSA infos.
34040
34041 2016-01-20 Jeff Law <law@redhat.com>
34042
34043 PR target/25114
34044 * config/m68k/predicates.md (pow2_m1_operand): New predicate
34045 extracted from ...
34046 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34047 (pc_or_label_operand): New predicate.
34048 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34049 tests for small integers that are 2^n - 1.
34050
34051 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34052
34053 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34054
34055 2016-01-19 Jeff Law <law@redhat.com>
34056
34057 PR middle-end/69347
34058 * tree-ssa-threadbackwards.c
34059 (fsm_find_control_statement_thread_paths): Do not try to lookup
34060 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34061
34062 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34063
34064 * doc/lto.texi: Remove text that says only Gold has linker plugin
34065 support.
34066
34067 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34068
34069 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34070 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34071 the DIE accordingly.
34072 (modified_type_die): Add REVERSE parameter and pass it recursively,
34073 as well as to base_type_die. Adjust presence check accordingly.
34074 (base_type_for_mode): Adjust call to modified_type_die.
34075 (add_type_attribute): Add REVERSE parameter and pass it to
34076 modified_type_die.
34077 (generic_parameter_die): Adjust call to add_type_attribute.
34078 (add_scalar_info): Likewise.
34079 (add_subscript_info): Likewise.
34080 (gen_array_type_die): Likewise.
34081 (gen_descr_array_type_die): Likewise.
34082 (gen_entry_point_die): Likewise.
34083 (gen_enumeration_type_die): Likewise.
34084 (gen_formal_parameter_die): Likewise.
34085 (gen_subprogram_die): Likewise.
34086 (gen_variable_die ): Likewise.
34087 (gen_const_die): Likewise.
34088 (gen_field_die): Likewise.
34089 (gen_pointer_type_die): Likewise.
34090 (gen_reference_type_die): Likewise.
34091 (gen_ptr_to_mbr_type_die): Likewise.
34092 (gen_inheritance_die): Likewise.
34093 (gen_subroutine_type_die): Likewise.
34094 (gen_typedef_die): Likewise.
34095 (force_type_die): Adjust call to modified_type_die.
34096
34097 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34098
34099 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34100 flow throughout the file. Fix broken link to Objective-C 2.0
34101 documentation.
34102 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34103 errors.
34104
34105 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34106
34107 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34108
34109 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34110
34111 PR ipa/66223
34112 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34113 (maybe_record_node): Record cxa_pure_virtual as the only possible
34114 target if there are not ohter candidates.
34115 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34116
34117 2016-01-19 Richard Biener <rguenther@suse.de>
34118
34119 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34120 (get_memory_order): Likewise.
34121
34122 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34123
34124 * tree-vect-stmts.c (vectorizable_store): Check
34125 rhs vectype.
34126
34127 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34128
34129 PR jit/68446
34130 * gcc.c (driver::decode_argv): Add call to
34131 init_opts_obstack before init_options_struct.
34132 * opts.c (init_opts_obstack): Remove idempotency.
34133 (init_options_struct): Replace call to init_opts_obstack
34134 with a gcc_assert to verify that it has already been called.
34135 * toplev.c (toplev::main): Add call to init_opts_obstack before
34136 calls to init_options_struct.
34137 (toplev::finalize): Move cleanup of opts_obstack next to
34138 cleanup of save_decoded_options, clearing the latter, and
34139 save_decoded_options_count.
34140
34141 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34142
34143 PR target/69135
34144 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34145 attribute to unconditional. Remove %? from output template.
34146
34147 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34148 Jiong Wang <jiong.wang@arm.com>
34149
34150 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34151 generated from different expand order.
34152
34153 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34154
34155 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34156 Add support for CCMP costing.
34157
34158 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34159
34160 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34161 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34162 (fccmpe<mode>): Likewise.
34163 (fcmp): Rename to fcmp and globalize pattern.
34164 (fcmpe): Likewise.
34165 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34166 (aarch64_gen_ccmp_next): Add FP support.
34167
34168 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34169
34170 * target.def (gen_ccmp_first): Update documentation.
34171 (gen_ccmp_next): Likewise.
34172 * doc/tm.texi (gen_ccmp_first): Update documentation.
34173 (gen_ccmp_next): Likewise.
34174 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34175 expand_ccmp_expr_1. Improve comments.
34176 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34177 (ccmp_ior<mode>): Remove pattern.
34178 (cmp<mode>): Remove expand.
34179 (cmp): Globalize pattern.
34180 (cstorecc4): Use cc_register.
34181 (mov<mode>cc): Remove ccmp_cc_register check.
34182 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34183 Simplify after removal of CC_DNE/* modes.
34184 (aarch64_ccmp_mode_to_code): Remove.
34185 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34186 In 'k' case use integer as condition.
34187 (aarch64_nzcv_codes): Remove inverted cases.
34188 (aarch64_code_to_ccmode): Remove.
34189 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34190 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34191 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34192 pattern. Return the comparison with CC register. Invert conditions
34193 when bitcode is OR.
34194 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34195 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34196
34197 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34198
34199 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34200 instrumented_version.
34201
34202 2016-01-19 Richard Biener <rguenther@suse.de>
34203
34204 PR tree-optimization/69336
34205 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34206 handled components with get_ref_base_and_extent.
34207 (equal_mem_array_ref_p): Adjust.
34208
34209 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34210
34211 PR debug/65779
34212 * shrink-wrap.c: Include valtrack.h.
34213 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34214 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34215 in between insn and where it will be moved to. Call
34216 dead_debug_insert_temp.
34217 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34218 first and dead_debug_local_finish at the end.
34219 For uses and defs bitmap, handle all regs in between REGNO and
34220 END_REGNO, not just the first one.
34221
34222 2016-01-19 Richard Biener <rguenther@suse.de>
34223
34224 PR tree-optimization/69352
34225 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34226 (equal_mem_array_ref_p): Constrain size and max size properly.
34227 Compare the reverse flag.
34228
34229 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34230
34231 * ira.c (ira): Update regstat data if we deleted insns.
34232
34233 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34234
34235 PR rtl-optimization/68955
34236 PR rtl-optimization/64557
34237 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34238 here. Fix up formatting.
34239 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34240
34241 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34242
34243 PR lto/69133
34244 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34245 assume that the node has body.
34246 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34247 check.
34248
34249 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34250
34251 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34252 thunks.
34253
34254 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34255
34256 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34257 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34258
34259 2016-01-19 Martin Jambor <mjambor@suse.cz>
34260 Martin Liska <mliska@suse.cz>
34261 Michael Matz <matz@suse.de>
34262
34263 * Makefile.in (OBJS): Add new source files.
34264 (GTFILES): Add hsa.c.
34265 * common.opt (disable_hsa): New variable.
34266 (-Whsa): New warning.
34267 * config.in (ENABLE_HSA): New.
34268 * configure.ac: Treat hsa differently from other accelerators.
34269 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34270 $enable_offloading.
34271 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34272 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34273 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34274 --with-hsa-kmt-lib.
34275 * doc/invoke.texi (-Whsa): Document.
34276 (hsa-gen-debug-stores): Likewise.
34277 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34278 to invoke offload compiler for hsa acclerator.
34279 * opts.c (common_handle_option): Determine whether HSA offloading
34280 should be performed.
34281 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34282 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34283 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34284 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34285 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34286 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34287 GF_OMP_FOR_KIND_GRID_LOOP.
34288 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34289 (pp_gimple_stmt_1): Likewise.
34290 * gimple-walk.c (walk_gimple_stmt): Likewise.
34291 * gimple.c (gimple_build_omp_grid_body): New function.
34292 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34293 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34294 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34295 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34296 GF_OMP_TEAMS_GRID_PHONY.
34297 (gimple_statement_omp_single_layout): Updated comments.
34298 (gimple_build_omp_grid_body): New function.
34299 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34300 (gimple_omp_for_grid_phony): New function.
34301 (gimple_omp_for_set_grid_phony): Likewise.
34302 (gimple_omp_parallel_grid_phony): Likewise.
34303 (gimple_omp_parallel_set_grid_phony): Likewise.
34304 (gimple_omp_teams_grid_phony): Likewise.
34305 (gimple_omp_teams_set_grid_phony): Likewise.
34306 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34307 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34308 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34309 (BUILT_IN_GOMP_TARGET): Updated type.
34310 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34311 (adjust_for_condition): New function.
34312 (get_omp_for_step_from_incr): Likewise.
34313 (extract_omp_for_data): Moved parts to adjust_for_condition and
34314 get_omp_for_step_from_incr.
34315 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34316 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34317 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34318 (scan_omp_parallel): Do not create child functions for phony
34319 constructs.
34320 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34321 (scan_omp_1_op): Checking assert we are not remapping to
34322 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34323 (parallel_needs_hsa_kernel_p): New function.
34324 (expand_parallel_call): Register apprpriate parallel child
34325 functions as HSA kernels.
34326 (grid_launch_attributes_trees): New type.
34327 (grid_attr_trees): New variable.
34328 (grid_create_kernel_launch_attr_types): New function.
34329 (grid_insert_store_range_dim): Likewise.
34330 (grid_get_kernel_launch_attributes): Likewise.
34331 (get_target_argument_identifier_1): Likewise.
34332 (get_target_argument_identifier): Likewise.
34333 (get_target_argument_value): Likewise.
34334 (push_target_argument_according_to_value): Likewise.
34335 (get_target_arguments): Likewise.
34336 (expand_omp_target): Call get_target_arguments instead of looking
34337 up for teams and thread limit.
34338 (grid_expand_omp_for_loop): New function.
34339 (grid_arg_decl_map): New type.
34340 (grid_remap_kernel_arg_accesses): New function.
34341 (grid_expand_target_kernel_body): New function.
34342 (expand_omp): Call it.
34343 (lower_omp_for): Do not emit phony constructs.
34344 (lower_omp_taskreg): Do not emit phony constructs but create for them
34345 a temporary variable receiver_decl.
34346 (lower_omp_taskreg): Do not emit phony constructs.
34347 (lower_omp_teams): Likewise.
34348 (lower_omp_grid_body): New function.
34349 (lower_omp_1): Call it.
34350 (grid_reg_assignment_to_local_var_p): New function.
34351 (grid_seq_only_contains_local_assignments): Likewise.
34352 (grid_find_single_omp_among_assignments_1): Likewise.
34353 (grid_find_single_omp_among_assignments): Likewise.
34354 (grid_find_ungridifiable_statement): Likewise.
34355 (grid_target_follows_gridifiable_pattern): Likewise.
34356 (grid_remap_prebody_decls): Likewise.
34357 (grid_copy_leading_local_assignments): Likewise.
34358 (grid_process_kernel_body_copy): Likewise.
34359 (grid_attempt_target_gridification): Likewise.
34360 (grid_gridify_all_targets_stmt): Likewise.
34361 (grid_gridify_all_targets): Likewise.
34362 (execute_lower_omp): Call grid_gridify_all_targets.
34363 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34364 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34365 (tree_omp_clause): Added union field dimension.
34366 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34367 * tree.c (omp_clause_num_ops): Added number of arguments of
34368 OMP_CLAUSE__GRIDDIM_.
34369 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34370 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34371 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34372 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34373 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34374 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34375 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34376 * tree-pass.h (make_pass_gen_hsail): Declare.
34377 (make_pass_ipa_hsa): Likewise.
34378 * ipa-hsa.c: New file.
34379 * lto-section-in.c (lto_section_name): Add hsa section name.
34380 * lto-streamer.h (lto_section_type): Add hsa section.
34381 * timevar.def (TV_IPA_HSA): New.
34382 * hsa-brig-format.h: New file.
34383 * hsa-brig.c: New file.
34384 * hsa-dump.c: Likewise.
34385 * hsa-gen.c: Likewise.
34386 * hsa.c: Likewise.
34387 * hsa.h: Likewise.
34388 * toplev.c (compile_file): Call hsa_output_brig.
34389 * hsa-regalloc.c: New file.
34390
34391 2016-01-18 Jeff Law <law@redhat.com>
34392
34393 PR tree-optimization/69320
34394 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34395 ranged object, do nothing if the RHS constant is not [0..1].
34396 (optimize_stmt): Comparing a boolean ranged object against a
34397 constant outside [0..1] results in a compile-time constant.
34398
34399 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34400 test.
34401
34402 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34403
34404 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34405 (Option Summary): Update to reflect new section and moved options.
34406 (C++ Dialect Options): Move -fstats to new section.
34407 (Debugging Options): Move all dump, statistics, and other GCC
34408 developer options to new section. Rewrite section introduction
34409 and re-order remaining options to put the more basic ones first.
34410 (Optimization Options): Move -fira-verbose and -flto-report* to
34411 new section.
34412 (Developer Options): New section incorporating moved options.
34413 * doc/cppopts.texi (-dM): Update cross-reference.
34414
34415 2016-01-18 Richard Henderson <rth@redhat.com>
34416
34417 PR target/69176
34418 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34419 operands to pseudo only if CSE is expected. Split long immediate
34420 operands only after reload, and for the stack pointer.
34421 (*add<GPI>3_pluslong): Remove.
34422 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34423 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34424 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34425 (*add<GPI>3 peepholes): New.
34426 (*add<GPI>3 splitters): New.
34427 * config/aarch64/constraints.md (Upl): New.
34428 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34429
34430 2016-01-18 Richard Biener <rguenther@suse.de>
34431
34432 PR tree-optimization/69297
34433 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34434 stmt at most once.
34435 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34436
34437 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34438
34439 PR middle-end/68542
34440 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34441 of mixind vector and scalar types.
34442 (fold_relational_const): Add handling of vector
34443 comparison with boolean result.
34444 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34445 comparison of vector operands with boolean result for EQ/NE only.
34446 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34447 (verify_gimple_cond): Likewise.
34448 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34449 valid type of VAL.
34450
34451 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34452
34453 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34454 !TARGET_OCTEON.
34455
34456 2016-01-18 Richard Biener <rguenther@suse.de>
34457
34458 PR middle-end/69308
34459 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34460
34461 2016-01-18 Tom de Vries <tom@codesourcery.com>
34462
34463 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34464
34465 2016-01-18 Tom de Vries <tom@codesourcery.com>
34466
34467 * omp-low.c (set_oacc_fn_attrib): Make extern.
34468 * omp-low.h (set_oacc_fn_attrib): Declare.
34469 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34470 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34471 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34472 Add and handle function parameter oacc_kernels_p.
34473 (find_reduc_addr, get_omp_data_i_param): New function.
34474 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34475 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34476 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34477 Calculate dominance info. Skip loops that are not in a kernels region
34478 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34479 (pass_parallelize_loops::execute): Call parallelize_loops with
34480 oacc_kernels_p argument.
34481 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34482 New member function.
34483 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34484 * passes.def: Add argument to pass_parallelize_loops instantation.
34485
34486 2016-01-18 Tom de Vries <tom@codesourcery.com>
34487
34488 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34489 pass_parallelize_loops to be run outside the loop pipeline.
34490
34491 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34492
34493 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34494 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34495
34496 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34497
34498 PR target/63679
34499 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34500 using get_ref_base_and_extent.
34501 (equal_mem_array_ref_p): New.
34502 (hashable_expr_equal_p): Add call to previous.
34503
34504 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34505
34506 PR target/63679
34507 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34508 (sra_initialize): Allocate disqualified_constants.
34509 (sra_deinitialize): Free disqualified_constants.
34510 (disqualify_candidate): Update disqualified_constants when appropriate.
34511 (create_access): Scan for constant-pool entries as we go along.
34512 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34513 (maybe_add_sra_candidate): Allow constant-pool entries.
34514 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34515 (initialize_constant_pool_replacements): New.
34516 (sra_modify_assign): Avoid mangling assignments created by previous,
34517 and don't generate writes into constant pool.
34518 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34519
34520 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34521
34522 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34523 andnot instruction.
34524 (scalar_chain::convert_op): Likewise.
34525 * config/i386/i386.md (*andndi3_doubleword): New.
34526
34527 2016-01-18 Richard Biener <rguenther@suse.de>
34528
34529 PR tree-optimization/69170
34530 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34531 building a vector from scalar results of a pattern stmt.
34532
34533 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34534
34535 * haifa-sched.c (autopref_multipass_init): Work around
34536 -Wmaybe-uninitialized warning.
34537
34538 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34539
34540 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34541 against the constant 0.
34542
34543 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34544
34545 PR tree-optimization/68799
34546 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34547 look up phi candidates in the statement-candidate map.
34548 (phi_add_costs): Likewise.
34549 (record_phi_increments): Likewise.
34550 (phi_incr_cost): Likewise.
34551 (ncd_with_phi): Likewise.
34552 (all_phi_incrs_profitable): Likewise.
34553
34554 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34555
34556 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34557 -Wmaybe-uninitialized warning.
34558
34559 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34560
34561 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34562 (Option Summary): Update to reflect new section and moved options.
34563 (C++ Dialect Options): Move -fvtable-verify and related options.
34564 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34565 and profiling-related options.
34566 (Optimization Options): Move profile generation options and
34567 -fstack-protector and related options.
34568 (Instrumentation Options): New section incorporating moved options.
34569 (Code Generation Options): Move -finstrument-functions and
34570 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34571
34572 2016-01-16 Tom de Vries <tom@codesourcery.com>
34573
34574 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34575
34576 2016-01-16 Tom de Vries <tom@codesourcery.com>
34577
34578 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34579
34580 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34581
34582 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34583 that checks whether the table is already empty. Rename the
34584 original implementation to...
34585 (hash_table::empty_slot): ...this new private function.
34586
34587 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34588
34589 PR diagnostic/68899
34590 * diagnostic-show-locus.c (layout::print_source_line): Move x
34591 offset of line until after call to
34592 get_line_width_without_trailing_whitespace.
34593
34594 2016-01-15 Jeff Law <law@redhat.com>
34595
34596 PR tree-optimization/69270
34597 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34598 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34599 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34600 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34601 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34602 ssa_name_has_boolean_range and constant_boolean_node.
34603
34604 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34605
34606 PR rtl-optimization/69030
34607 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34608 returning bool.
34609 (spill_pseudos): Delete debug insn for dead pseudo.
34610 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34611
34612 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34613
34614 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34615 New.
34616 (TYPES_UNOPUS): Likewise.
34617 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34618 builtin type, from UNOP to UNOPUS.
34619 (lbtruncuv4sf): Likewise.
34620 (lbtruncuv2df): Likewise.
34621 (lrounduv2sf): Likewise.
34622 (lrounduv4sf): Likewise.
34623 (lrounduv2df): Likewise.
34624 (lroundusf): Likewise.
34625 (lroundusf): Likewise.
34626 (lceiluv2sf): Likewise.
34627 (lceiluv4sf): Likewise.
34628 (lceiluv2df): Likewise.
34629 (lceilusf): Likewise.
34630 (lceiludf): Likewise.
34631 (lflooruv2sf): Likewise.
34632 (lflooruv4sf): Likewise.
34633 (lflooruv2df): Likewise.
34634 (lfloorusf): Likewise.
34635 (lfloorudf): Likewise.
34636 (lfrintnuv2sf): Likewise.
34637 (lfrintnuv4sf): Likewise.
34638 (lfrintnuv2df): Likewise.
34639 (lfrintnusf): Likewise.
34640 (lfrintnudf): Likewise.
34641 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34642 conversion.
34643 (vcvtq_u32_f32): Likewise.
34644 (vcvtq_u64_f64): Likewise.
34645 (vcvta_u32_f32): Likewise.
34646 (vcvtaq_u32_f32): Likewise.
34647 (vcvtaq_u64_f64): Likewise.
34648 (vcvtm_u32_f32): Likewise.
34649 (vcvtmq_u32_f32): Likewise.
34650 (vcvtmq_u64_f64): Likewise.
34651 (vcvtn_u32_f32): Likwise.
34652 (vcvtnq_u32_f32): Likewise.
34653 (vcvtnq_u64_f64): Likewise.
34654 (vcvtp_u32_f32): Likewise.
34655 (vcvtpq_u32_f32): Likewise.
34656 (vcvtpq_u64_f64): Likewise.
34657 (vcvtmd_u64_f64): Likewise.
34658 (vcvtms_u32_f32): Likewise.
34659 (vcvtad_u64_f64): Likewise.
34660 (vcvtas_u32_f32): Likewise.
34661 (vcvtnd_u64_f64): Likewise.
34662 (vcvtns_u32_f32): Likewise.
34663 (vcvtpd_u64_f64): Likewise.
34664 (vcvtps_u32_f32): Likewise.
34665
34666 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34667
34668 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34669 CSEL of zero_extended registers.
34670
34671 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34672
34673 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34674 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34675
34676 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34677
34678 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34679 false when argument string is not found in the attributes table
34680 at all.
34681
34682 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34683
34684 PR target/68609
34685 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34686 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34687 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34688 precision estimate.
34689
34690 2016-01-15 Richard Biener <rguenther@suse.de>
34691
34692 PR tree-optimization/66856
34693 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34694 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34695 (vect_create_new_slp_node): Increment stmt reference count.
34696 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34697 an SLP tree before swapping operands.
34698 (vect_build_slp_tree): Likewise.
34699 (destroy_bb_vec_info): Free stmt info after SLP instances.
34700 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34701 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34702 (STMT_VINFO_NUM_SLP_USES): New macro.
34703
34704 2016-01-15 Richard Biener <rguenther@suse.de>
34705
34706 PR debug/69137
34707 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34708 (add_linkage_name): ... here.
34709 (gen_typedef_die): Use add_linkage_name_raw instead of
34710 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34711 if necessary.
34712
34713 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34714
34715 * gimplify.c (oacc_default_clause): Decode reference and pointer
34716 types for both kernels and parallel regions.
34717
34718 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34719
34720 PR middle-end/69246
34721 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34722
34723 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34724
34725 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34726 (convert_scalars_to_vector): Likewise.
34727
34728 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34729
34730 * doc/extend.texi (Type Traits): Fix grammar.
34731
34732 2016-01-15 Martin Jambor <mjambor@suse.cz>
34733
34734 * tree-inline.c (remap_decl): Use existing dclarations if
34735 remapping a type and prevent_decl_creation_for_types.
34736 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34737 decls first. Do real remapping with
34738 prevent_decl_creation_for_types set.
34739 * tree-inline.h (copy_body_data): New field
34740 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34741 padding.
34742
34743 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34744
34745 * config/s390/s390.opt (mmvcle): More verbose help text.
34746
34747 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34748
34749 * config/s390/s390.opt: Add period to -mzvector option text.
34750
34751 2016-01-15 Richard Biener <rguenther@suse.de>
34752
34753 PR tree-optimization/68961
34754 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34755 of invariants in stores again.
34756
34757 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34758
34759 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34760
34761 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34762
34763 * config/i386/i386.c (ix86_expand_branch): Don't split
34764 DI mode xor instruction to SI mode.
34765
34766 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34767
34768 PR ipa/68148
34769 * ipa-icf.c (sem_function::merge): Virtual functions may become
34770 reachable even if they address is not taken and there are no
34771 idrect calls.
34772
34773 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34774
34775 * lto-streamer-out.c (subtract_estimated_size): New function.
34776 (get_symbol_initial_value): Use it.
34777
34778 2016-01-15 Christian Bruel <christian.bruel@st.com>
34779
34780 PR target/65837
34781 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34782 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34783 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34784 use add_builtin_function_ext_scope instead of add_builtin_function.
34785 (neon_set_p, neon_crypto_set_p): Remove.
34786 (arm_init_builtins): Always call arm_init_neon_builtins and
34787 arm_init_crypto_builtins.
34788 (arm_expand_builtin): Check that builtins are allowed for the arch.
34789 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34790 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34791 arm_init_neon_builtins call.
34792
34793 2016-01-15 Richard Biener <rguenther@suse.de>
34794
34795 PR tree-optimization/69117
34796 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34797 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34798 of the leader conservatively.
34799 (free_scc_vn): Restore original SSA name infos.
34800
34801 2016-01-14 Jeff Law <law@redhat.com>
34802
34803 PR tree-optimization/69270
34804 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34805 single bit of precision, verify it's also unsigned.
34806 (record_edge_info): Use constant_boolean_node rather than fold_convert
34807 to convert boolean_true/boolean_false to the right type.
34808
34809 2016-01-14 Richard Henderson <rth@redhat.com>
34810
34811 PR rtl-opt/69014
34812 * loop-doloop.c (record_reg_sets): New.
34813 (doloop_optimize): Reject the transform if the sequence
34814 clobbers registers live at the end of the loop block.
34815 (doloop_optimize_loops): Enable df_live if needed.
34816
34817 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34818
34819 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34820 * config/rs6000/rs6000.c: Likewise.
34821 * config/rs6000/rs6000.h: Likewise.
34822 * config/rs6000/rs6000.md: Likewise.
34823 * doc/extend.texi: Likewsie.
34824
34825 2016-01-14 Jeff Law <law@redhat.com>
34826
34827 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34828 typo.
34829
34830 2016-01-14 Richard Henderson <rth@redhat.com>
34831
34832 PR c/69272
34833 PR tree-opt/68964
34834 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34835 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34836 instead of builtin_decl_declared_p to test for declaration.
34837
34838 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34839
34840 * doc/loop.texi (Loop Analysis and Representation): Document
34841 loop_depth function.
34842
34843 2016-01-14 Tom de Vries <tom@codesourcery.com>
34844
34845 PR tree-optimization/68773
34846 * omp-low.c (expand_omp_target): Don't set force_output.
34847 * varpool.c (varpool_node::get_create): Same.
34848 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34849 offload_funcs with force_output.
34850
34851 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34852
34853 PR debug/69244
34854 * lra-eliminations.c (move_plus_up): Don't change anything if either
34855 the outer or inner subreg mode is not MODE_INT.
34856 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34857 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34858
34859 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34860
34861 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34862 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34863 reduc_uplus_@var{m}): Remove.
34864 * expr.c (expand_expr_real_2): Remove expansion path for
34865 reduc_[us](min|max|plus) optabs.
34866 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34867 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34868 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34869 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34870 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34871 reduc_[us](min|max|plus) optabs.
34872
34873 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34874
34875 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34876 (reduc_plus_scal_v2sf): New.
34877 (reduc_smax_v2sf): Rename to...
34878 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34879 (reduc_smin_v2sf): Rename to...
34880 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34881
34882 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34883
34884 * alias.c (compare_base_symbol_refs): New function.
34885 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34886 it.
34887
34888 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34889
34890 PR middle-end/68146
34891 PR tree-optimization/69155
34892 * tree-complex.c: Include cfganal.h.
34893 (phis_to_revisit): New variable.
34894 (extract_component): Add phiarg_p argument. Assert that returned
34895 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34896 (update_phi_components): Partly rewrite to use loop over real/imag
34897 components instead of code duplication. If extract_component returns
34898 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34899 create_tmp_reg into the PHI node instead, and mention the phi triplet
34900 in phis_to_revisit.
34901 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34902 in phis_to_revisit at the end.
34903
34904 2016-01-14 Richard Biener <rguenther@suse.de>
34905
34906 PR tree-optimization/68060
34907 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34908 outer loop reduction is only used in the inner loop before
34909 detecting a double reduction.
34910
34911 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34912
34913 PR target/68269
34914 * combine.c (expand_field_assignment): Punt if compute_mode is
34915 unsupported scalar mode.
34916
34917 2016-01-14 Richard Biener <rguenther@suse.de>
34918
34919 PR tree-optimization/66856
34920 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34921 SLP node only if it built successfully.
34922 (vect_analyze_slp_instance): Adjust.
34923
34924 2016-01-14 Jeff Law <law@redhat.com>
34925
34926 PR tree-optimization/69270
34927 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34928 (record_edge_info): Use it. Convert boolean_{true,false}_node
34929 to the type of op0.
34930
34931 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34932
34933 PR ipa/66487
34934 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34935 use block_ultimate_origin
34936 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34937
34938 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34939
34940 * doc/invoke.texi (Submodel Options): Rename section to
34941 "Machine-Dependent Options" to better reflect its content.
34942 Rewrite introductory text to remove archaic CPU names.
34943 Update references.
34944
34945 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34946
34947 * doc/invoke.texi (Code Gen Options): Move section up in file,
34948 before target-specific options. Update menu and option summary
34949 to reflect the new section ordering.
34950
34951 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
34952
34953 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
34954 (C++ Dialect Options): Add cross-reference to -std option.
34955 * doc/standards.texi (C++ Language): Document C++14 support.
34956
34957 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
34958
34959 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
34960 for pack/unpack functions for __ibm128.
34961 (PACK_IF): Likewise.
34962 (UNPACK_IF): Likewise.
34963
34964 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
34965 support for __ibm128 pack/unpack functions.
34966 (rs6000_invalid_builtin): Likewise.
34967 (rs6000_init_builtins): Likewise.
34968 (rs6000_opt_masks): Likewise.
34969
34970 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
34971 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
34972 functions
34973 (RS6000_BTM_COMMON): Likewise.
34974
34975 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
34976 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
34977 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
34978 128-bit floating point. Add support for the double values to be
34979 in Altivec registers for TF/IF packing and unpacking, but restrict
34980 TD packing sub-fields to be FPR registers. Don't allow overlapped
34981 register support for packing. Allow pack inputs to be memory
34982 locations. Don't build generator functions for unpack<mode>_dm
34983 and unpack<mode>_nodm.
34984 (unpack<mode>_dm): Likewise.
34985 (unpack<mode>_nodm): Likewise.
34986 (pack<mode>): Likewise.
34987
34988 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
34989 built-in functions to pack/unpack explicit __ibm128 values.
34990 (__builtin_unpack_ibm128): Likewise.
34991
34992 * doc/extend.texi (PowerPC Built-in Functions): Document
34993 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
34994
34995 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
34996
34997 PR c/66208
34998 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
34999 Add new arg loc and pass it down as context.
35000 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
35001 to the location to use for the warning.
35002 (check_function_arguments): New arg loc. All callers changed. Pass
35003 it to check_function_nonnull.
35004 * c-common.h (check_function_arguments): Adjust declaration.
35005
35006 2016-01-13 Jakub Jelinek <jakub@redhat.com>
35007
35008 PR tree-optimization/69156
35009 * gimple.c (validate_type): Removed.
35010 (gimple_builtin_call_types_compatible_p): Use
35011 useless_type_conversion_p instead of validate_type.
35012 * value-prof.c (gimple_stringop_fixed_value): Fold
35013 icall_size to correct type.
35014
35015 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35016
35017 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35018 effects.
35019
35020 2016-01-13 Richard Henderson <rth@redhat.com>
35021
35022 PR tree-opt/68964
35023 * target.def (builtin_tm_load, builtin_tm_store): Remove.
35024 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35025 (ix86_builtin_tm_store): Remove.
35026 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35027 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35028 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35029 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35030 * doc/tm.texi: Rebuild.
35031
35032 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35033 (BUILT_IN_TM_MEMCPY_RTWN): New.
35034 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35035 fallback from vector to integer helpers.
35036 (build_tm_load): Handle vector types directly, instead of
35037 via target hook.
35038 (build_tm_store): Likewise.
35039 (expand_assign_tm): Prepare for register types not handled by
35040 the above. Copy them to memory and use memcpy.
35041 * tree.c (tm_define_builtin): New.
35042 (find_tm_vector_type): New.
35043 (build_tm_vector_builtins): New.
35044 (build_common_builtin_nodes): Call it.
35045
35046 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
35047
35048 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35049 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
35050
35051 2016-01-13 Tom de Vries <tom@codesourcery.com>
35052
35053 PR tree-optimization/69169
35054 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35055 handled_struct_type param.
35056 (create_variable_info_for, intra_create_variable_infos): Call
35057 create_variable_info_for_1 with extra arg.
35058
35059 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35060
35061 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35062 and "armv8.1-a+crc" entries.
35063
35064 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35065
35066 PR target/69228
35067 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35068 Change first operand predicate from register_or_constm1_operand
35069 to register_operand.
35070 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35071 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35072 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35073 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35074 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35075 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35076 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35077 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35078 comparison with constm1_rtx from vec_prefetch_gen part.
35079
35080 2016-01-13 Richard Biener <rguenther@suse.de>
35081
35082 PR tree-optimization/69013
35083 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35084 Exchange assert for a test.
35085
35086 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35087
35088 PR target/69247
35089 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35090
35091 2016-01-13 Richard Biener <rguenther@suse.de>
35092
35093 PR tree-optimization/69242
35094 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35095 assert with a check.
35096
35097 2016-01-13 Richard Biener <rguenther@suse.de>
35098
35099 PR tree-optimization/69186
35100 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35101 Properly guard vect_update_misalignment_for_peel call.
35102
35103 2016-01-12 Jeff Law <law@redhat.com>
35104
35105 PR tree-optimization/pr67755
35106 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35107 "need_profile_correction".
35108 (thread_block_1): Initialize new field to false by default. If we
35109 have multiple thread paths through a common joiner to different
35110 final targets, then set new field to true.
35111 (compute_path_counts): Only do count adjustment when it's really
35112 needed.
35113
35114 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35115
35116 * doc/invoke.texi (Spec Files): Move section down in file, past
35117 all command-line option descriptions.
35118
35119 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35120
35121 PR middle-end/54809
35122 * doc/gty.texi: Remove documentation of mark_hook.
35123 * gengtype.c (struct write_types_data): Remove code to support
35124 mark_hook attribute.
35125 (walk_type): Likewise.
35126 (write_func_for_structure): Likewise.
35127
35128 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35129
35130 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35131 Directory Options, and -specs= to Overall Options.
35132 (Overall Options): Adjust similarly. Reorder to group related
35133 options together. Make -specs= cross-reference the spec file details.
35134 (Directory Options): Adjust similarly.
35135
35136 2016-01-12 Jeff Law <law@redhat.com>
35137
35138 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35139
35140 2016-01-12 Olivier Hainque <hainque@adacore.com>
35141
35142 * gcc.c (spec_undefvar_allowed): New global.
35143 (process_command): Set to true when running for --version or --help,
35144 alone or together.
35145 (getenv_spec_function): When the variable is not defined, use the
35146 variable name as the variable value if we're allowed not to issue
35147 a fatal error.
35148
35149 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35150
35151 PR tree-optimization/68911
35152 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35153 information computed for expression "init + nit * step".
35154
35155 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35156
35157 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35158 about name of GCC executable. Remove deleted node from menu.
35159 (Directory Options) <-B>: Remove cross-reference to deleted node.
35160 (Target Options): Delete section.
35161
35162 2016-01-12 Christian Bruel <christian.bruel@st.com>
35163
35164 PR target/69180
35165 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35166 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35167
35168 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35169
35170 PR target/69198
35171 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35172 aligned_mem is properly set for AVX512-VL floating point masked
35173 stores.
35174
35175 PR target/69175
35176 * ifcvt.c (cond_exec_process_if_block): When removing the last
35177 insn from then_bb, remove also any possible barriers that follow it.
35178
35179 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35180
35181 PR target/68456
35182 PR target/69226
35183 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35184 (PTRDIFF_TYPE): Likewise.
35185 (WCHAR_TYPE): Likewise.
35186 (WCHAR_TYPE_SIZE): Likewise.
35187 (STDINT_LONG32): Likewise.
35188
35189 2016-01-12 Richard Biener <rguenther@suse.de>
35190
35191 PR tree-optimization/69053
35192 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35193 convert initial value for cond reductions.
35194
35195 2016-01-12 Richard Biener <rguenther@suse.de>
35196
35197 PR tree-optimization/69007
35198 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35199 widen_sum after dot_prod and sad.
35200
35201 2016-01-12 Richard Biener <rguenther@suse.de>
35202
35203 PR tree-optimization/69168
35204 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35205 pattern stmt SLP type.
35206 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35207 end up unused so cope with that case.
35208
35209 2016-01-12 Richard Biener <rguenther@suse.de>
35210
35211 PR tree-optimization/69157
35212 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35213 stmts def type only during analyze phase.
35214 (vectorizable_call): Likewise.
35215 (vectorizable_simd_clone_call): Likewise.
35216 (vectorizable_conversion): Likewise.
35217 (vectorizable_assignment): Likewise.
35218 (vectorizable_shift): Likewise.
35219 (vectorizable_operation): Likewise.
35220 (vectorizable_store): Likewise.
35221 (vectorizable_load): Likewise.
35222
35223 2016-01-12 Richard Biener <rguenther@suse.de>
35224
35225 PR tree-optimization/69174
35226 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35227 space.
35228 (vectorizable_load): Properly compute the number of loads needed
35229 for permuted strided SLP loads and do not spuriously assign
35230 to SLP_TREE_VEC_STMTS.
35231
35232 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35233
35234 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35235 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35236 (MD_EXEC_PREFIX): Remove.
35237 (MD_STARTFILE_PREFIX) Removee.
35238 (FILE_NAME_ABSOLUTE_P): Remove.
35239 (CPP_SPEC): Do not read macros from sys/version.h.
35240 (LINK_COMMAND_SPEC): Remove.
35241 (LOCAL_INCLUDE_DIR): Remove.
35242 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35243 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35244 (POST_LINK_SPEC): Define to invoke stubify after linker
35245 (LIBSTDCXX): Remove define
35246 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35247 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35248 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35249 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35250 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35251 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35252 (i386_djgpp_asm_named_section): Add propotype of new procedure
35253
35254 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35255 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35256 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35257 in config/i386/djgpp.h).
35258 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35259 STANDARD_STARTFILE_PREFIX_1.
35260 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35261 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35262 installation errors.
35263 (MAX_OFILE_ALIGNMENT): Define to 128.
35264 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35265
35266 * config/i386/djgpp.c: New file. Add implementation of
35267 i386_djgpp_asm_named_section.
35268
35269 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35270
35271 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35272 Add rule for building djgpp.o.
35273
35274 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35275
35276 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35277 (rtx_is_swappable_p): Reductions are swappable.
35278 (insn_is_swappable_p): V2DF reductions are swappable.
35279
35280 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35281
35282 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35283 reloads for other unsupported memory operands.
35284
35285 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35286 Jim Wilson <jim.wilson@linaro.org>
35287
35288 PR target/69194
35289 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35290 copy_to_mode_reg instead of force_reg.
35291
35292 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35293
35294 PR target/69225
35295 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35296 TARGET_80387 is true.
35297
35298 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35299
35300 PR target/69071
35301 * lra-eliminations.c (move_plus_up): Only move plus up
35302 if subreg of the constant can be simplified into constant
35303 and use the simplified subreg of the constant instead of
35304 the original constant.
35305
35306 * fold-const.c (fold_convertible_p): Don't return true
35307 for conversion of VECTOR_TYPE to same sized integral type.
35308 (fold_convert_loc): Fix up formatting. Fold conversion of
35309 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35310 instead of NOP_EXPR.
35311
35312 PR tree-optimization/69214
35313 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35314 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35315 Formatting fix.
35316
35317 PR tree-optimization/69207
35318 * tree-vect-slp.c (vect_get_constant_vectors): For
35319 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35320 fold_convertible_p to vector_type's element type, and always
35321 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35322
35323 2016-01-11 Richard Biener <rguenther@suse.de>
35324
35325 PR tree-optimization/69173
35326 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35327 fixup the cycle if all stmts are in a pattern.
35328
35329 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35330
35331 PR middle-end/68999
35332 * alias.c (base_alias_check): Move check for addresses with
35333 alignment ANDs before the call for compare_base_decls.
35334 (memrefs_conflict_p): Return -1 for different decls
35335 that went through alignment adjustments.
35336
35337 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35338
35339 PR rtl-optimization/68796
35340 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35341 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35342 and QImode comparisons against zero with CC_NZmode.
35343 * config/aarch64/iterators.md (short_mask): New mode_attr.
35344
35345 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35346
35347 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35348 (<avx512>_store<mode>_mask): Likewise.
35349
35350 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35351 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35352
35353 PR rtl-optimization/68841
35354 * ifcvt.c (struct noce_if_info): Add orig_x field.
35355 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35356 Don't record conflicts on to_rename if it's present.
35357 Allow memory destinations in sets.
35358 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35359 blocks, passing orig_x to the checks.
35360 (noce_process_if_block): Set if_info->orig_x appropriately.
35361
35362 2016-01-11 Tom de Vries <tom@codesourcery.com>
35363
35364 PR tree-optimization/69069
35365 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35366
35367 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35368
35369 PR rtl-optimization/68920
35370 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35371 of conditional moves for RTL if-conversion to 1 for
35372 TARGET_ONE_IF_CONV_INSN.
35373 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35374 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35375 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35376 parameter to restirct number of conditional moves for
35377 RTL if-conversion.
35378 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35379 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35380 conditionl moves.
35381
35382 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35383
35384 PR bootstrap/69123
35385 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35386 onepart vars. Fix typo in comment. Fix reversed condition in
35387 unshare test.
35388 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35389
35390 PR bootstrap/69123
35391 * var-tracking.c (dump_onepart_variable_differences): New.
35392 (dataflow_set_different): If a detailed dump is requested,
35393 delay early returns and dump differences between onepart
35394 variables present before and after, and added variables.
35395
35396 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35397
35398 PR target/69010
35399 * expr.c (expand_expr_real_1): For boolean vector constants
35400 with a scalar mode use const_scalar_mask_from_tree.
35401 (const_scalar_mask_from_tree): New.
35402 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35403 assigned to a mask type to handle constants.
35404
35405 2016-01-11 Martin Jambor <mjambor@suse.cz>
35406
35407 PR ipa/69044
35408 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35409 useless parameters if we cannot change function signature.
35410
35411 2016-01-11 Martin Jambor <mjambor@suse.cz>
35412
35413 PR ipa/66616
35414 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35415 flag.
35416
35417 2016-01-11 Tom de Vries <tom@codesourcery.com>
35418
35419 PR tree-optimization/69109
35420 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35421 latch with phi.
35422
35423 2016-01-11 Tom de Vries <tom@codesourcery.com>
35424
35425 PR tree-optimization/69108
35426 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35427 res is not used in a phi.
35428
35429 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35430
35431 PR 67425
35432 * common.opt (frandom-seed): Fix parameter name.
35433 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35434
35435 2016-01-11 Tom de Vries <tom@codesourcery.com>
35436
35437 PR tree-optimization/69058
35438 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35439 not supported.
35440
35441 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35442
35443 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35444 (mcode-density): Likewise.
35445
35446 2016-01-10 Tom de Vries <tom@codesourcery.com>
35447
35448 PR tree-optimization/69062
35449 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35450 (parallelize_loops): Don't paralelize loop that has phi with address
35451 arg.
35452
35453 2016-01-10 Tom de Vries <tom@codesourcery.com>
35454
35455 PR tree-optimization/69039
35456 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35457 phi for reduction.
35458
35459 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35460
35461 PR middle-end/68743
35462 * match.pd: Require target has function_c99_misc before doing
35463 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35464
35465 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35466
35467 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35468 use GMPINC.
35469 * configure: Regenerate.
35470
35471 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35472
35473 PR middle-end/50865
35474 PR tree-optimization/69097
35475 * fold-const.h (expr_not_equal_to): New prototype.
35476 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35477 (expr_not_equal_to): New function.
35478 * match.pd (X % -Y is the same as X % Y): Don't optimize
35479 unless X is known not to be equal to minimum or Y is known
35480 not to be equal to -1.
35481 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35482 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35483 (simplify_stmt_using_ranges): Adjust caller.
35484 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35485 substitute_and_fold.
35486
35487 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35488
35489 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35490 w/o DECL_NAME.
35491
35492 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35493
35494 PR tree-optimization/69167
35495 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35496 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35497 ops[0] comparison.
35498 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35499
35500 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35501 Richard Biener <rguenther@suse.de>
35502
35503 PR tree-optimization/68707
35504 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35505 instances that can be handled via vect_load_lanes.
35506
35507 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35508
35509 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35510 if we can't determine address equivalence.
35511 * alias.c (compare_base_decl): Update for changed return value of
35512 symtab_node::equal_address_to.
35513
35514 2016-01-08 Jason Merrill <jason@redhat.com>
35515
35516 PR c++/68983
35517 PR c++/67557
35518 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35519 * expr.c (store_field): Not here.
35520 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35521 call with TREE_ADDRESSABLE type.
35522 * tree-cfg.c (verify_gimple_call): Adjust.
35523
35524 2016-01-08 Olivier Hainque <hainque@adacore.com>
35525
35526 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35527 libc_internal.
35528
35529 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35530
35531 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35532 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35533 (reduc_smin_v2sf): Rename to...
35534 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35535 (reduc_splus_v2sf): Rename to...
35536 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35537
35538 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35539
35540 PR tree-optimization/69162
35541 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35542 valist argument in another argument.
35543 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35544 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35545 to determine the va_list type, build a MEM_REF instead of
35546 build_fold_indirect_ref.
35547
35548 PR tree-optimization/69172
35549 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35550 gimple_build.
35551
35552 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35553
35554 PR tree-optimization/67781
35555 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35556 and cmpnop in two steps: first the ones not accessed in original
35557 gimple expression in a endian independent way and then the ones not
35558 accessed in the final result in an endian-specific way.
35559
35560 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35561
35562 PR tree-optimization/69083
35563 * tree-vect-slp.c (vect_get_constant_vectors): For
35564 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35565 element type. If op is fold_convertible_p to vector_type's element
35566 type, use NOP_EXPR instead of VCE.
35567
35568 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35569
35570 PR rtl-optimization/67778
35571 PR rtl-optimization/68634
35572 PR rtl-optimization/68909
35573 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35574 block from the stack until done with it. Remove a superfluous
35575 bitmap set. Remove a superfluous bitmap test.
35576
35577 2016-01-07 Martin Sebor <msebor@redhat.com>
35578
35579 PR c/68966
35580 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35581 constraint on the type of arguments.
35582
35583 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35584
35585 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35586 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35587 unaligned_access on the gcc_options set.
35588 * config/arm/arm.c (arm_option_override_internal): Use
35589 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35590
35591 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35592
35593 PR target/69140
35594 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35595 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35596
35597 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35598
35599 Revert
35600 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35601
35602 PR target/69140
35603 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35604 depending on frame_pointer_needed before remaining integer and SSE
35605 registers are saved.
35606
35607 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35608
35609 PR 1078
35610 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35611
35612 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35613
35614 PR target/69171
35615 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35616 Use the "xBm" constraint.
35617 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35618 Likewise.
35619 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35620 (sse_cvtsi2ssq<round_name>): Likewise.
35621 (sse_cvtss2si<round_name>): Likewise.
35622 (sse_cvtss2siq<round_name>): Likewise.
35623 (sse2_cvtsi2sdq<round_name>): Likewise.
35624 (sse2_cvtsd2si<round_name>): Likewise.
35625 (sse2_cvtsd2siq<round_name>): Likewise.
35626 * config/i386/subst.md (round_nimm_scalar_predicate): New
35627 predicate.
35628
35629 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35630
35631 PR middle-end/67639
35632 * varasm.c (make_decl_rtl): Mark invalid register vars as
35633 DECL_EXTERNAL.
35634
35635 PR rtl-optimization/66206
35636 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35637 All callers changed.
35638
35639 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35640
35641 PR tree-optimization/69141
35642 * tree-ssa-pre.c: Include langhooks.h.
35643 (eliminate_dom_walker::before_dom_children): Use
35644 lang_hooks.decl_printable_name instead of
35645 cgraph_node::get ()->name ().
35646
35647 PR middle-end/68960
35648 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35649 it and DECL_ALIGN too.
35650
35651 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35652
35653 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35654
35655 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35656
35657 PR target/69140
35658 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35659 depending on frame_pointer_needed before remaining integer and SSE
35660 registers are saved.
35661
35662 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35663
35664 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35665 mode iterator with VSX_M2.
35666 (*p9_vecstore_<mode>): Likewise.
35667 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35668 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35669 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35670 (define_split for VSX_LE128 stores): Likewise.
35671 (define_peephole2 for TImode LE swaps): Likewise.
35672 (define_split for VSX_LE128 post-reload stores): Likewise.
35673
35674 2016-01-06 Marek Polacek <polacek@redhat.com>
35675
35676 PR sanitizer/69099
35677 * convert.c (convert_to_integer_1): Adjust call to
35678 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35679 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35680 EXPR instead of ARG.
35681 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35682
35683 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35684
35685 PR 1078
35686 * doc/extend.texi (RL78 Variable Attributes): New section.
35687
35688 2016-01-05 Marek Polacek <polacek@redhat.com>
35689
35690 PR c/69104
35691 * builtins.c (get_memmodel): Use expansion point location rather than
35692 the input location. Call warning_at rather than warning.
35693 (expand_builtin_atomic_compare_exchange): Likewise.
35694 (expand_builtin_atomic_load): Likewise.
35695 (expand_builtin_atomic_store): Likewise.
35696 (expand_builtin_atomic_clear): Likewise.
35697
35698 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35699
35700 PR target/68991
35701 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35702 Replace nonimmediate_operand with vector_operand.
35703 * config/i386/predicates.md (vector_operand): New predicate.
35704 (general_vector_operand): Replace nonimmediate_operand with
35705 vector_operand.
35706 * config/i386/sse.md: Replace nonimmediate_operand with
35707 vector_operand and m constraint with Bm constraint on SSE
35708 patterns with 16-byte memory operand.
35709 * config/i386/subst.md (round_nimm_predicate): Replace
35710 nonimmediate_operand with vector_operand.
35711 (round_saeonly_nimm_predicate): Likewise.
35712 (round_saeonly_nimm_scalar_predicate): New.
35713
35714 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35715
35716 PR target/68991
35717 * config/i386/constraints.md (Bm): New constraint.
35718 * config/i386/predicates.md (vector_memory_operand): New
35719 predicate.
35720 * config/i386/sse.md: Replace xm with xBm in plusminus and
35721 any_logic patterns.
35722
35723 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35724
35725 PR 1078
35726 * doc/extend.texi (V850 Function Attributes): New section.
35727 (V850 Variable Attributes): New section.
35728
35729 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35730
35731 PR 1078
35732 * doc/extend.texi (MicroBlaze Function Attributes): Document
35733 interrupt_handler and fast_interrupt attributes.
35734
35735 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35736
35737 PR other/60465
35738 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35739 for local symbolic operands.
35740 * config/ia64/predicates.md (local_symbolic_operand64): New
35741 predicate.
35742
35743 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35744
35745 PR rtl-optimization/68651
35746 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35747 x << 1.
35748
35749 2016-01-05 Nathan Sidwell <nathan@acm.org>
35750
35751 * alias.c (compare_base_decls): Use symtab_node::get.
35752
35753 2016-01-05 Nick Clifton <nickc@redhat.com>
35754
35755 PR target/68770
35756 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35757 secondary_reload_info structure.
35758
35759 PR target/66655
35760 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35761 decls if weak support is available.
35762
35763 2016-01-04 Martin Sebor <msebor@redhat.com>
35764
35765 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35766
35767 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35768
35769 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35770 OPTION_MASK_P9_DFORM.
35771
35772 * config/rs6000/constraints.md (wo constraint): New constraint for
35773 ISA 3.0 (power9).
35774
35775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35776 for wo constraint.
35777 (rs6000_init_hard_regno_mode_ok): Likewise.
35778
35779 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35780 wo constraint.
35781
35782 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35783 expanders not to have constraints. Add support for ISA 3.0 xxperm
35784 instruction. Add support for fusing xxlor with xxperm.
35785 (altivec_vperm_<mode>_internal): Likewise.
35786 (altivec_vperm_v8hiv16qi): Likewise.
35787 (altivec_vperm_<mode>v16q): Likewise.
35788 (altivec_vperm_<mode>_uns): Likewise.
35789 (vperm_v8hiv4si): Likewise.
35790 (vperm_v16qiv8hi): Likewise.
35791
35792 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35793
35794 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35795
35796 Update copyright years.
35797
35798 * gcc.c (process_command): Update copyright notice dates.
35799 * gcov-dump.c (print_version): Ditto.
35800 * gcov.c (print_version): Ditto.
35801 * gcov-tool.c (print_version): Ditto.
35802 * gengtype.c (create_file): Ditto.
35803 * doc/cpp.texi: Bump @copying's copyright year.
35804 * doc/cppinternals.texi: Ditto.
35805 * doc/gcc.texi: Ditto.
35806 * doc/gccint.texi: Ditto.
35807 * doc/gcov.texi: Ditto.
35808 * doc/install.texi: Ditto.
35809 * doc/invoke.texi: Ditto.
35810
35811 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35812
35813 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35814 modes larger than TImode as TImode if NEON is not enabled.
35815
35816 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35817
35818 PR target/69100
35819 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35820 mode for %f0-%f31 only if TARGET_FPU.
35821
35822 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35823
35824 PR target/69072
35825 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35826 to compute the PACKED_P predicate.
35827 (function_arg_record_value): Minor tweaks.
35828
35829 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35830
35831 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35832 option for arm*-*-* targets.
35833
35834 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35835
35836 * doc/extend.texi (Common Function Attributes): Move docs for
35837 MSP430-specific attributes to....
35838 (MSP430 Function Attributes): ...here. Delete the redundant
35839 entries and copy-edit the remaining text.
35840 (MSP430 Variable Attributes): Use uniform format for index
35841 entries and add a cross-reference to the corresponding function
35842 attribute docs.
35843
35844 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35845
35846 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35847 -finite-math typo.
35848 (x86 Options): Likewise.
35849
35850 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35851
35852 PR 1078
35853
35854 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35855 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35856 to corresponding attribute.
35857
35858 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35859
35860 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35861 to correct alphabetization of table. Copy-edit and correct
35862 markup.
35863 <stack_protect>: Likewise.
35864 <target_clones>: Likewise.
35865 <simd>: Likewise.
35866 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35867 Correct punctuation.
35868 (Code Gen Options) <-fno-plt>: Copy-edit.
35869
35870 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35871
35872 PR target/68917
35873 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35874 SI values. Explicitly convert SI to DI and vice-versa.
35875
35876 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35877
35878 PR tree-optimization/69070
35879 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35880 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35881
35882 PR sanitizer/69055
35883 * ubsan.c (ubsan_instrument_float_cast): Call
35884 initialize_sanitizer_builtins.
35885
35886 PR target/69015
35887 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35888 \f
35889 Copyright (C) 2016 Free Software Foundation, Inc.
35890
35891 Copying and distribution of this file, with or without modification,
35892 are permitted in any medium without royalty provided the copyright
35893 notice and this notice are preserved.