]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
nvptx: do not assume that crtl->is_leaf is unset
[gcc.git] / gcc / ChangeLog
1 2016-12-21 Alexander Monakov <amonakov@ispras.ru>
2
3 PR target/78831
4 * config/nvptx/nvptx.c (init_softstack_frame): Remove assert. Compute
5 crtl->is_leaf only if unset. Adjust comment.
6
7 2016-12-21 Andrew Pinski <apinski@cavium.com>
8
9 * match.pd (max:c @0 (plus@2 @0 INTEGER_CST@1)): New Pattern.
10 (min:c @0 (plus@2 @0 INTEGER_CST@1)) : New Pattern.
11
12 2016-12-20 James Greenhalgh <james.greenhalghj@arm.com>
13
14 * common.opt (excess_precision): Tag as SetByCombined.
15 * opts.c (set_fast_math_flags): Also set
16 flag_excess_precision_cmdline.
17 (fast_math_flags_set_p): Also check flag_excess_precision_cmdline.
18 * doc/invoke.texi (-fexcess-precision): Drop text saying the
19 option has no effect under -ffast-math, make it clear that
20 -ffast-math will cause -fexcess-precision=fast by default even for
21 standards compliant modes.
22 (-ffast-math): Document that this sets -fexcess-precision=fast.
23
24 2016-12-20 Richard Biener <rguenther@suse.de>
25
26 * passes.c (execute_one_pass): Handle going out of SSA w/o
27 hitting pass_startwith. Handle skipping property providers.
28
29 2016-12-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30
31 PR target/78694
32 * config/arm/arm.c (dump_minipool): Copy mp->value before emitting it
33 in the minipool to avoid invalid RTL sharing.
34
35 2016-12-19 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
36
37 * config/rs6000/rs6000-protos.h (expand_strn_compare): Declare.
38 * config/rs6000/rs6000.md (UNSPEC_CMPB): New unspec.
39 (cmpb<mode>3): pattern for generating cmpb.
40 (cmpstrnsi): pattern to expand strncmp ().
41 * config/rs6000/rs6000.opt (mstring-compare-inline-limit): Add a new
42 target option for controlling how much code inline expansion of
43 strncmp() will be allowed to generate.
44 * config/rs6000/rs6000.c (expand_strncmp_align_check): generate code
45 for runtime page crossing check of strncmp () args.
46 (expand_strn_compare): Function to do builtin expansion of strncmp ().
47
48 2016-12-19 David Malcolm <dmalcolm@redhat.com>
49
50 * print-rtl-function.c (print_rtx_function): Update
51 example in comment to reflect current format.
52
53 2016-12-19 Uros Bizjak <ubizjak@gmail.com>
54
55 * config/i386/i386.md (*popcounthi2_1): New insn_and_split pattern.
56
57 2016-12-19 Sandra Loosemore <sandra@codesourcery.com>
58
59 * doc/cpp.texi: Clean up anachronistic C99 references and remove
60 discussion of very old GCC versions.
61 (Differences from previous versions): Delete entire section.
62
63 2016-12-19 Will Schmidt <will_schmidt@vnet.ibm.com>
64
65 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
66 early expansion of vector multiply and subtract builtins.
67
68 2016-12-19 David Malcolm <dmalcolm@redhat.com>
69
70 * print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
71 non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
72 rather than using a '%' prefix.
73 * rtl-tests.c (selftest::test_dumping_regs): Update for above change.
74
75 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
76
77 PR target/78748
78 * config/s390/s390.md ("*andc_split_<mode>"): Allow memory destination
79 only if it coincides with operand 2.
80
81 2016-12-19 Dominik Vogt <vogt@linux.vnet.ibm.com>
82
83 * combine.c (change_zero_ext): Skip generation of redundant AND.
84
85 2016-12-19 Krister Walfridsson <krister.walfridsson@gmail.com>
86
87 * config/netbsd.h (LINK_EH_SPEC): Define.
88
89 2016-12-18 Eric Botcazou <ebotcazou@adacore.com>
90
91 * lra-constraints.c (process_address): Add forward declaration.
92 (simplify_operand_subreg): In the MEM case, if the adjusted memory
93 reference is not sufficient aligned and the address was invalid,
94 reload the address before reloading the original memory reference.
95 Fix long lines and add a final return for the sake of clarity.
96
97 2016-12-17 Jakub Jelinek <jakub@redhat.com>
98
99 PR sanitizer/78832
100 * sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
101 continue if gsi_next should be skipped.
102 (sanitize_asan_mark_poison): Remove prev variable, use continue if
103 gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
104 first and gsi_remove on a previously made copy of the iterator.
105
106 2016-12-17 Andrew Senkevich <andrew.senkevich@intel.com>
107
108 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
109 * config/i386/avx512dqintrin.h: Ditto.
110 * config/i386/avx512fintrin.h: Ditto.
111 * config/i386/i386-builtin.def (__builtin_ia32_kaddqi,
112 __builtin_ia32_kaddhi, __builtin_ia32_kaddsi,
113 __builtin_ia32_kadddi): New.
114 * config/i386/sse.md (kadd<mode>): New.
115
116 2016-12-17 Uros Bizjak <ubizjak@gmail.com>
117
118 * config/i386/i386.md (*tzcnt<mode>_1): Merge *tzcnt<mode>_1_falsedep_1
119 and *tzcnt<mode>_1 to define_insn_and_split pattern. Adjust split
120 condition to split after epilogue_completed.
121 (ctz<mode>2): Remove expander.
122 (ctz<mode>2): Merge *ctz<mode>2_falsedep_1 and *ctz<mode>2 to
123 define_insn_and_split pattern. Adjust split condition to split
124 after epilogue_completed.
125 (clz<mode>2_lznct): Remove expander.
126 (clz<mode>2_lzcnt): Merge *clz<mode>2_lzcnt_falsedep_1 and
127 *clz<mode>2 to define_insn_and_split pattern. Adjust split
128 condition to split after epilogue_completed.
129 (<lt_zcnt>_<mode>): Remove expander.
130 (<lt_zcnt>_<mode>): Merge *<lt_zcnt>_<mode>_falsedep_1 and
131 *<lt_zcnt>_<mode> to define_insn_and_split pattern. Adjust split
132 condition to split after epilogue_completed.
133 (<lt_zcnt>_hi): New insn pattern.
134 (popcount<mode>2): Remove expander.
135 (popcount<mode>2): Merge *popcount<mode>2_falsedep_1 and
136 *popcount<mode>2 to define_insn_and_split pattern. Adjust split
137 condition to split after epilogue_completed.
138 (popcounthi2): New insn pattern.
139
140 2016-12-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
141
142 * config/rs6000/altivec.md (UNSPEC_CMPRB): New unspec value.
143 (UNSPEC_CMPRB2): New unspec value.
144 (UNSPEC_CMPEQB): New unspec value.
145 (cmprb): New expansion.
146 (*cmprb_internal): New insn.
147 (*setb_internal): New insn.
148 (cmprb2): New expansion.
149 (*cmprb2_internal): New insn.
150 (cmpeqb): New expansion.
151 (*cmpeqb_internal): New insn.
152 * config/rs6000/rs6000-builtin.def (BU_P9_2): New macro.
153 (BU_P9_64BIT_2): Likewise.
154 (BU_P9_OVERLOAD_2): Likewise.
155 (CMPRB): Add byte-in-range built-in function.
156 (CMBRB2): Add byte-in-either-range built-in function.
157 (CMPEQB): Add byte-in-set built-in function.
158 (CMPRB): Add overload support for byte-in-range function.
159 (CMPRB2): Add overload support for byte-in-either-range function.
160 (CMPEQB): Add overload support for byte-in-set built-in function.
161 * config/rs6000/rs6000-c.c (P9_BUILTIN_CMPRB): Macro expansion to
162 define argument types for new builtin.
163 (P9_BUILTIN_CMPRB2): Likewise.
164 (P9_BUILTIN_CMPEQB): Likewise.
165 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Rearrange
166 the order of presentation for certain built-in functions
167 (scalar_extract_exp, scalar_extract_sig, scalar_insert_exp)
168 (scalar_cmp_exp_gt, scalar_cmp_exp_lt, scalar_cmp_exp_eq)
169 (scalar_cmp_exp_unordered, scalar_test_data_class)
170 (scalar_test_neg) to improve locality and flow. Document
171 the new __builtin_scalar_byte_in_set,
172 __builtin_scalar_byte_in_range, and
173 __builtin_scalar_byte_in_either_range functions.
174
175 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
176
177 * config/aarch64/aarch64.md: New define_split above bswap<mode>2.
178
179 2016-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
180
181 * config/aarch64/aarch64.md: New define_split above insv<mode>.
182
183 2016-12-16 Jakub Jelinek <jakub@redhat.com>
184
185 PR c/78408
186 * tree-ssa-ccp.c: Include tree-dfa.h.
187 (optimize_memcpy): New function.
188 (pass_fold_builtins::execute): Use it. Remove useless conditional
189 break after BUILT_IN_VA_*.
190
191 2016-12-16 Marek Polacek <polacek@redhat.com>
192
193 PR tree-optimization/78819
194 * tree-vrp.c (find_switch_asserts): Return if the insertion limit is 0.
195 Don't register an assertion if the default case shares a label with
196 another case.
197
198 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
199
200 * config/arm/arm.md (subsi3_carryin): Add Thumb-2 RSC #0.
201 (arm_negdi2) Rename to negdi2_insn, allow on Thumb-2.
202 * config/arm/thumb2.md (thumb2_negdi2): Remove pattern.
203
204 2016-12-16 Wilco Dijkstra <wdijkstr@arm.com>
205
206 * config/arm/arm.c (thumb_core_reg_alloc_order): Swap R12 and R14.
207
208 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
209
210 * config/arc/arc.md (call_prof): Remove.
211 (call_value_prof): Likewise.
212 (sibcall_prof): Likewise.
213 (sibcall_value_prof): Likewise.
214
215 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
216
217 * config/arc/arc.h (LINK_SPEC): Tidy up.
218 (ENDFILE_SPEC): Likewise.
219 (LIB_SPEC): Likewise.
220 (STARTFILE_SPEC): Include gcrt0 when profiling.
221 (FUNCTION_PROFILER): Use __mcount.
222 * config/arc/arc.opt (mucb-mcount): Remove.
223 * doc/invoke.texi (ARC): Remove mucb-mcount doc.
224 * arc/arc-protos.h (arc_profile_call): Remove.
225 * config/arc/arc.c (write_profile_sections): Likewise.
226 (arc_profile_call): Likewise.
227 (unspec_prof_hash): Likewise.
228 (unspec_prof_htab_eq): Likewise.
229 (arc_legitimate_constant_p): Remove UNSPEC_PROF.
230 (arc_reorg): Remove call to write_profile_sections.
231 * config/arc/arc.md (call): Remove call to arc_profile_call.
232 (call_value): Likewise.
233 (sibcall): Likewise.
234 (sibcall_value): Likewise.
235 (define_constants): Remove UNSPEC_PROF.
236
237 2016-12-16 Claudiu Zissulescu <claziss@synopsys.com>
238
239 * config/arc/arc.md (mulsidi_600): Change to insn_and_split,
240 generate new mul64 insn for core multiplication work.
241 (umulsidi_600): Likewise, but use mulu64 insn.
242 (mul64): New pattern, content taken from old mulsidi_600 insn pattern.
243 (mulu64): Likewise, but using umulsidi_600.
244 (mulsidi3): Remove move to destination, this is now handled by
245 mulsidi_600 insn_and_split.
246 (umulsidi3): Likewise, but using umulsidi_600.
247
248 2016-12-16 Richard Biener <rguenther@suse.de>
249
250 PR c++/71694
251 * langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
252 (LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
253 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
254 * langhooks.h (struct lang_hooks_for_types): Add
255 unit_size_without_reusable_padding.
256 * langhooks.c (lhd_unit_size_without_reusable_padding): New.
257 * stor-layout.c (finish_bitfield_representative): Use
258 unit_size_without_reusable_padding langhook to decide on the
259 last representatives size.
260
261 2016-12-16 Richard Biener <rguenther@suse.de>
262
263 PR middle-end/71632
264 * expr.c (expand_cond_expr_using_cmove): Bail out early if
265 we end up recursing via TER.
266
267 2016-12-15 Martin Sebor <msebor@redhat.com>
268
269 PR bootstrap/78817
270 * vec.h (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Assert
271 a pointer is non-null.
272
273 2016-12-15 Andrew Senkevich <andrew.senkevich@intel.com>
274
275 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
276 * config/i386/avx512dqintrin.h: Ditto.
277 * config/i386/avx512fintrin.h: Ditto.
278 * config/i386/i386-builtin.def (__builtin_ia32_kmovb,
279 __builtin_ia32_kmovd, __builtin_ia32_kmovq): New.
280 (__builtin_ia32_kmov16): Rename to __builtin_ia32_kmovw.
281 * config/i386/sse.md (kmov<mskmodesuffix>): New.
282
283 2016-12-15 Uros Bizjak <ubizjak@gmail.com>
284
285 * config/i386/i386.md (ffs<mode>2): Generate CCCmode flags register
286 for TARGET_BMI.
287 (ffssi2_no_cmove): Ditto.
288 (*tzcnt<mode>_1_falsedep_1): New insn_and_split pattern.
289 (*tzcnt<mode>_1_falsedep): New insn pattern.
290
291 (LT_ZCNT): New mode iterator.
292 (lt_zcnt): New mode attribute.
293 (lt_zcnt_type): New mode attribute.
294 (<lt_zcnt>_<mode>): Macroize expander from bmi_tzcnt_<mode> and
295 lzcnt_<mode> using LT_ZCNT mode iterator.
296 (*<lt_zcnt>_<mode>_falsedep_1): Macroize insn from
297 *bmi_tzcnt_<mode>_falsedep_1 and *lzcnt_<mode>_falsedep_1
298 using LT_ZCNT mode iterator.
299 (*<lt_zcnt>_<mode>_falsedep): Macroize insn from
300 *bmi_tzcnt_<mode>_falsedep and *lzcnt_<mode>_falsedep
301 using LT_ZCNT mode iterator.
302 (*<lt_zcnt>_<mode>): Macroize insn from *bmi_tzcnt_<mode>
303 and *lzcnt_<mode> using LT_ZCNT mode iterator.
304 * config/i386/i386-builtin.def (__builtin_ia32_tzcnt_u16)
305 (__builtin_ia32_tzcnt_u32, __builtin_ia32_tzcnt_u64, __builtin_ctzs):
306 Update for rename.
307
308 2016-12-15 Jakub Jelinek <jakub@redhat.com>
309
310 * ipa-cp.c (class ipcp_bits_lattice): Formatting fixes.
311 (print_ipcp_constant_value): Likewise.
312 (ipcp_cloning_candidate_p): Likewise.
313 (ipcp_bits_lattice::get_value_and_mask): Likewise.
314 (ipcp_bits_lattice::meet_with_1): Likewise.
315 (ipcp_bits_lattice::meet_with): Likewise.
316 (initialize_node_lattices): Likewise.
317 (ipcp_lattice::add_value): Likewise.
318 (propagate_vals_accross_pass_through): Renamed to ...
319 (propagate_vals_across_pass_through): ... this function.
320 (propagate_vals_accross_ancestor): Renamed to ...
321 (propagate_vals_across_ancestor): ... this.
322 (propagate_scalar_accross_jump_function): Renamed to ...
323 (propagate_scalar_across_jump_function): ... this.
324 Adjust calls to above functions.
325 (propagate_context_accross_jump_function): Renamed to ...
326 (propagate_context_across_jump_function): ... this.
327 (propagate_bits_accross_jump_function): Renamed to ...
328 (propagate_bits_accross_jump_function): ... this. Formatting fixes.
329 (propagate_vr_accross_jump_function): Renamed to ...
330 (propagate_vr_across_jump_function): ... this.
331 (merge_agg_lats_step): Formatting fixes.
332 (propagate_constants_accross_call): Renamed to ...
333 (propagate_constants_across_call): ... this. Adjust calls to above
334 functions.
335 (ipa_get_indirect_edge_target_1): Formatting fixes.
336 (gather_context_independent_values): Likewise.
337 (estimate_local_effects): Likewise.
338 (add_all_node_vals_to_toposort): Likewise.
339 (propagate_constants_topo): Adjust calls to above functions.
340 (get_replacement_map): Formatting fixes.
341 (dump_profile_updates): Likewise.
342 (update_profiling_info): Likewise.
343 (update_specialized_profile): Likewise.
344 (create_specialized_node): Likewise.
345 (find_more_contexts_for_caller_subset): Likewise.
346 (decide_whether_version_node): Likewise.
347 (identify_dead_nodes): Likewise.
348 (ipcp_decision_stage): Likewise.
349 (ipcp_store_bits_results): Likewise.
350 (ipcp_store_vr_results): Likewise.
351 (ipcp_driver): Likewise.
352
353 2016-12-15 David Malcolm <dmalcolm@redhat.com>
354
355 PR preprocessor/78680
356 PR preprocessor/78811
357 * input.c (struct selftest::lexer_test): Add field
358 m_implicitly_expect_EOF.
359 (selftest::lexer_error_sink): New class.
360 (selftest::lexer_error_sink::s_singleton): New global.
361 (selftest::lexer_test::lexer_test): Initialize new field
362 "m_implicitly_expect_EOF".
363 (selftest::lexer_test::~lexer_test): Conditionalize the
364 check for the EOF token on the new field.
365 (selftest::test_lexer_string_locations_raw_string_unterminated):
366 New function.
367 (selftest::input_c_tests): Call the new test.
368
369 2016-12-15 Wilco Dijkstra <wdijkstr@arm.com>
370
371 * config/arm/arm.h (TARGET_BACKTRACE): Use crtl->is_leaf.
372 * config/arm/arm.c (arm_option_check_internal): Improve comment.
373 (thumb_force_lr_save): Use crtl->is_leaf.
374 (arm_get_frame_offsets): Remove comment. Use crtl->is_leaf.
375 (thumb_far_jump_used_p): Remove comment.
376 (arm_frame_pointer_required): Use crtl->is_leaf.
377
378 2016-12-15 Jakub Jelinek <jakub@redhat.com>
379
380 * doc/extend.texi: Clean up @xref{...} uses.
381 * doc/invoke.texi: Likewise.
382
383 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
384
385 * arm-fpus.def: Add CNAME field to all FPU definitions.
386 * genopt.sh: Use explicit enumeration tags for FPU entries.
387 * arm-tables.opt: Regenerated.
388 * arm.opt (mfpu): Provide initial value.
389 * arm-opts.h (enum fpu_type): Build the enumeration from the list of
390 available FPUs. Add 'auto' entry on the end.
391 * arm.c (arm_configure_build_target): Only do explicit configuration
392 of the FPU features if the selected FPU is not 'auto'.
393 (arm_option_override): Adjust initialization of arm_fpu_index.
394 Emit an error if we have a hard float ABI request, but the processor
395 does not support floating-point.
396 (arm_option_print): Handle -mfpu=auto.
397 (arm_valid_target_attribute_rec): Don't permit fpu=auto in pragmas
398 or function attributes.
399 (arm_identify_fpu_from_isa): Handle effective soft-float when
400 the FPU is automatically detected.
401 * arm-cores.def (arm1136jf-s): Add feature ISA_FP_DBL.
402 (arm1176jzf-s): Likewise.
403 (mpcore): Likewise.
404 (arm1156t2f-s): Likewise.
405
406 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
407
408 * arm-fpus.def (ARM_FPU): Remove features field from all definitions.
409 * arm.h (arm_fpu_feature_set): Delete typedef.
410 (FPU_FL_NONE): Delete.
411 (FPU_FL_NEON): Delete.
412 (FPU_FL_FP16): Delete.
413 (FPU_FL_CRYPTO): Delete.
414 (FPU_FL_DBL): Delete.
415 (FPU_FL_D32): Delete.
416 (FPU_FL_VFPv2): Delete.
417 (FPU_FL_VFPv3): Delete.
418 (FPU_FL_VFPv4): Delete.
419 (FPU_FL_VFPv5): Delete.
420 (FPU_FL_AMRv8): Delete.
421 (FPU_VFPv2): Delete.
422 (FPU_VFPv3): Delete.
423 (FPU_VFPv4): Delete.
424 (FPU_VFPv5): Delete.
425 (FPU_ARMv8): Delete.
426 (FPU_DBL): Delete.
427 (FPU_D32): Delete.
428 (FPU_NEON): Delete.
429 (FPU_CRYPTO): Delete.
430 (FPU_FP16): Delete.
431 (arm_fpu_desc): Delete features field.
432 * arm.c (all_fpus): Don't initialize feature field.
433
434 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
435
436 * arm.c (arm_can_inline_p): Use ISA features for determining
437 inlinability.
438
439 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
440
441 * arm-protos.h (arm_configure_build_target): Change second argument
442 to cl_target_options.
443 * arm.c (arm_configure_build_target): Likewise.
444 (arm_option_restore): Update accordingly.
445 (arm_option_override): Create the target_option_default_node before
446 calling arm_configure_build_target. Use it in call of latter.
447 Resynchronize after all other overrides have been calculated.
448 (arm_valid_target_attribute_tree): Use the target options for
449 reconfiguration. Resynchronize after performing override checks.
450 * arm-c.c (arm_pragma_target_parse): Use target optiosn from cur_tree
451 to reconfigure the build target.
452
453 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
454
455 * arm.h (TARGET_VFPD32): Use arm_active_target.
456 (TARGET_VFP3): Likewise.
457 (TARGET_VFP5): Likewise.
458 (TARGET_VFP_SINGLE): Likewise.
459 (TARGET_VFP_DOUBLE): Likewise.
460 (TARGET_NEON_FP16): Likewise.
461 (TARGET_FP16): Likewise.
462 (TARGET_FMA): Likewise.
463 (TARGET_FPU_ARMV8): Likewise.
464 (TARGET_CRYPTO): Likewise.
465 (TARGET_NEON): Likewise.
466 (TARGET_FPU_FEATURES): Delete.
467 * arm.c (arm_option_check_internal): Check for iwmmxt conflict with
468 Neon using arm_active_target.
469
470 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
471
472 * arm.h (TARGET_FPU_NAME): Delete.
473 * arm.c (arm_identify_fpu_from_isa): New function.
474 (arm_declare_function_name): Use it to get the name for the FPU.
475
476 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
477
478 * arm-protos.h: Include sbitmap.h
479 (arm_configure_build_target): Make public.
480 * arm.c (arm_configure_build_target): Now not static.
481 (arm_valid_target_attribute_rec): Move internal option check to...
482 (arm_valid_target_attribute_tree0: ... here. Also reconfingure the
483 active target.
484 (arm_override_options_after_change): Call arm_configure_build_target.
485 (isa_all_fpubits): Renamed from isa_fpubits.
486 (arm_option_restore): New function.
487 (TARGET_OPTION_RESTORE): Register it.
488 (arm_configure_build_target): Initialize the FPU capability bits in
489 the isa.
490 (arm_option_override): Move the code that forces the setting of the
491 FPU option before the call to arm_configure_build_target.
492 * arm.opt (march): Mark as Save.
493 (mcpu, mtune): Likewise.
494 * arm-c.c (arm_pragma_target_parse): Reconfigure the build target
495 after pragmas change the target options.
496
497 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
498
499 * arm-isa.h (isa_feature): Add bits for VFPv4, FPv5, fp16conv,
500 fP_dbl, fp_d32 and fp_crypto.
501 (ISA_ALL_FPU): Add all the new bits.
502 (ISA_VFPv2, ISA_VFPv3, ISA_VFPv4, ISA_FPv5): New macros.
503 (ISA_FP_ARMv8, ISA_FP_DBL, ISA_FP_D32, ISA_NEON, ISA_CRYPTO): Likewise.
504 * arm-fpus.def: Add ISA features to all FPUs.
505 * arm.h: (arm_fpu_desc): Add new field for ISA bits.
506 * arm.c (all_fpus): Initialize it.
507 * arm-tables.opt: Regenerated.
508
509 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
510
511 * arm.h (FPU_FL_VFPv2) New feature bit.
512 (FPU_FL_VFPv3, FPU_FL_VFPv4, FPU_FL_VFPv5, FPU_FL_ARMv8): Likewise.
513 (FPU_VFPv2, FPU_VFPv3, FPU_VFPv4, FPU_VFPv5, FPU_ARMv8): New helper
514 macros.
515 (FPU_DBL, FPU_D32, FPU_NEON, FPU_CRYPTO, FPU_FP16): Likewise.
516 (TARGET_FPU_REV): Delete.
517 (TARGET_VFP3): Use feature bits.
518 (TARGET_VFP5): Likewise.
519 (TARGET_FMA): Likewise.
520 (TARGET_FPU_ARMV8): Likewise.
521 (struct arm_fpu_desc): Delete rev field.
522 * arm-fpus.def: Delete REV entry, use new feature bits and macros.
523 * arm.c (all_fpus): Delete rev field.
524
525 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
526
527 * arm.h (vfp_reg_type): Delete.
528 (TARGET_FPU_REGS): Delete.
529 (arm_fpu_desc): Delete regs field.
530 (FPU_FL_NONE, FPU_FL_NEON, FPU_FL_FP16, FPU_FL_CRYPTO): Use unsigned
531 values.
532 (FPU_FL_DBL, FPU_FL_D32): Define.
533 (TARGET_VFPD32): Use feature test.
534 (TARGET_VFP_SINGLE): Likewise.
535 (TARGET_VFP_DOUBLE): Likewise.
536 * arm-fpus.def: Update all entries for new feature bits.
537 * arm.c (all_fpus): Update initializer macro.
538 (arm_can_inline_p): Remove test on fpu regs.
539
540 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
541
542 * arm.h (arm_fp_model): Delete.
543
544 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
545
546 * arm-cores.def: Remove FLAGS field from all core definitions.
547 * arm-arches.def: Likewise.
548 * arm-opts.h (enum processor_type): Remove FLAGS parameter from
549 ARM_CORES macro.
550 (arm_arch_core_flags): Likewise, plus ARM_ARCH macro.
551 * arm-protos.h (FL_*): Delete.
552 (arm_feature_set): Delete.
553 (ARM_FSET_*): Delete.
554 * arm.c (struct processors): Delete flags field.
555 (all_cores): Delete FLAGS parameter from macro, don't initialize flags.
556 (all architectures): Likewise.
557
558 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
559
560 * arm-opts.h (struct arm_arch_core_flag): Add new field ISA.
561 Initialize it.
562 (arm_arch_core_flag): Delete flags field.
563 (arm_arch_core_flags): Don't initialize flags field.
564 * common/config/arm/arm-common.c (check_isa_bits_for): New function.
565 (arm_target_thumb_only): Use new isa bits arrays.
566
567 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
568
569 * arm-protos.h (insn_flags): Delete declaration.
570 (arm_arch7ve): Declare.
571 * arm.c (insn_flags): Delete.
572 (arm_arch7ve): New variable.
573 (arm_selected_cpu): Delete.
574 (arm_option_check_internal): Use new ISA bitmap.
575 (arm_option_override_internal): Likewise.
576 (arm_configure_build_target): Declare arm_selected_cpu locally.
577 (arm_option_override): Use new ISA bitmap. Initialize arm_arch7ve.
578 Rearrange variable intialization by general function.
579 * arm.h (TARGET_HAVE_LPAE): Use arm_arch7ve.
580
581 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
582
583 * arm-builtins.c: Include sbitmap.h.
584 (def_mbuiltin): Change first parameter to a flag bit. Use it to test
585 available features in the current target.
586 (struct builtin_description): Change type of feature field.
587 (IWMMXT_BUILTIN): Use the isa_features types.
588 (IWMMXT2_BUILTIN): Likewise.
589 (IWMMXT_BUILTIN2): Likewise.
590 (IWMMXT2_BUILTIN2): Likewise.
591 (CRC32_BUILTIN): Likewise.
592 (CRYPTO_BUILTIN): Likewise.
593 (iwmmx_builtin): Likewise.
594 (iwmmx2_builtin): Likewise.
595 (arm_iwmmxt_builtin): Check for specific feature bits.
596
597 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
598
599 * arm-isa.h (enum isa_feature): Add isa_quirk_cm3_ldrd.
600 (ISA_ALL_QUIRKS): New macro.
601 * arm-cores.def (cortex-m3): Add isa_quirk_cm3_ldrd to isa feature list.
602 * arm.c (isa_quirkbits): New feature-list bitmap.
603 (arm_configure_build_target): Ignore quirk bits when comparing an
604 architecture feature list with a CPU feature list.
605 (arm_option_override): Initialize_isa_quirkbits. If the user has
606 not specified -m[no-]fix-cortex-m3-ldrd, automatically enable the
607 feature if isa_quirk_cm3_ldrd appears in the isa feature list.
608
609 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
610
611 * arm.c (arm_option_override): Use arm_active_target as source of
612 information for arm_base_arch and arm_arch_name.
613 * (arm_file_start): Use arm_active_target for core name.
614
615 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
616
617 * arm.c (arm_selected_tune): Delete static variable.
618 (arm_selected_arch): Likewise.
619 (arm_configure_build_target): Declare local versions of arm_selected
620 target and arm_selected_arch. Initialize more fields in target
621 data structure.
622 (arm_option_override): Use arm_active_target instead of
623 arm_selected_tune and arm_selected_arch.
624 (asm_file_start): Use arm_active_target.
625
626 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
627
628 * arm-protos.h (arm_build_target): New structure.
629 (arm_active_target): Declare it.
630 * arm.c (arm_active_target): New variable.
631 (bitmap_popcount): New function.
632 (feature_count): Delete.
633 (arm_initialize_isa): New function.
634 isa_fpubits): New variable.
635 (arm_configure_build_target): New function.
636 (arm_option_override): Initialize isa_fpubits and arm_active_target.isa.
637 Use arm_configure_build_target.
638
639 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
640
641 * arm-isa.h: New file.
642 * arm-protos.h: Include it.
643 * arm-arches.def: Add new ISA field to all entries. Drop bogus
644 armv8.1-a+crc architecture.
645 * arm-cores.def: Similarly. Group ARMv8 cores by profile.
646 * arm-opts.h (enum processor_type): Adjust for new field.
647 * arm.c (struct processors): New field 'isa_bits'.
648 (all_cores, all_architectures): Initialize new field.
649 * arm-tables.opt: Regenerated.
650 * arm-tune.md: Regenerated.
651
652 2016-12-15 Richard Earnshaw <rearnsha@arm.com>
653
654 * arm-arches.def (ARM_ARCH): Add extra field TUNE_FLAGS, move
655 tuning properties from architectural FLAGS field.
656 * arm-cores.def (ARM_CORE): Likewise.
657 * arm-protos.h (TF_LDSCHED, TF_WBUF, TF_CO_PROC): New macros.
658 (TF_SMALLMUL, TF_STRONG, TF_SCALE, TF_NOMODE32): New macros.
659 (FL_LDSCHED, FL_STRONG, FL_WBUF, FL_SMALLMUL): Delete.
660 (FL_TUNE): Remove deleted elements.
661 (tune_flags): Convert type to unsigned int.
662 * arm.c (struct processors): Add new field tune_flags.
663 (all_cores, all_arches): Initialize it.
664 (arm_option_override): Adapt uses of tune_flags. Use tune_flags
665 for deciding when we should have slow multiply operations.
666
667 2016-12-14 Martin Sebor <msebor@redhat.com>
668
669 PR middle-end/78519
670 * gimple-ssa-sprintf.c (format_string): Handle null pointers.
671 (format_directive): Diagnose null pointer arguments.
672 (pass_sprintf_length::handle_gimple_call): Diagnose null destination
673 pointers. Correct location of null format string in diagnostics.
674
675 2016-12-14 David Malcolm <dmalcolm@redhat.com>
676
677 * Makefile.in (SELFTEST_FLAGS): Add path argument to -fself-test.
678 (s-selftest): Add dependency on the selftests data directory.
679 * common.opt (fself-test): Rename to...
680 (fself-test=): ...this, documenting the meaning of the argument.
681 * selftest-run-tests.c (along): Likewise.
682 * selftest-run-tests.c: Include "options.h".
683 (selftest::run_tests): Initialize selftest::path_to_selftest_files
684 from flag_self_test.
685 * selftest.c (selftest::path_to_selftest_files): New global.
686 (selftest::locate_file): New function.
687 (selftest::test_locate_file): New function.
688 (selftest_c_tests): Likewise.
689 (selftest::selftest_c_tests): Call test_locate_file.
690 * selftest.h (selftest::locate_file): New decl.
691 (selftest::path_to_selftest_files): New decl.
692
693 2016-12-14 Andrew Pinski <apinski@cavium.com>
694
695 * config/aarch64/aarch64-cores.def: Add -1 as the variant to all
696 of the cores.
697 (thunderx): Update to include LSE by default.
698 (thunderxt88p1): New core.
699 (thunderxt88): New core.
700 (thunderxt81): New core.
701 (thunderxt83): New core.
702 * config/aarch64/driver-aarch64.c (struct aarch64_core_data):
703 Add variant field.
704 (ALL_VARIANTS): New define.
705 (AARCH64_CORE): Support VARIANT operand.
706 (cpu_data): Likewise.
707 (host_detect_local_cpu): Parse variant field of /proc/cpuinfo.
708 Combine the arch and single core case and support variant searching.
709 * common/config/aarch64/aarch64-common.c (AARCH64_CORE):
710 Add VARIANT operand.
711 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Likewise.
712 * config/aarch64/aarch64.c (AARCH64_CORE): Likewise.
713 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
714 * config/aarch64/aarch64-tune.md: Regenerate.
715 * doc/invoke.texi (AARCH64/mtune): Document thunderxt88,
716 thunderxt88p1, thunderxt81, thunderxt83 as available options.
717
718 2016-12-14 Martin Jambor <mjambor@suse.cz>
719
720 * omp-offload.c: Fix coding style.
721 * omp-expand.c: Likewise.
722 * omp-general.c: Likewise.
723 * omp-grid.c: Likewise.
724 * omp-low.c: Fix coding style of parts touched by the
725 previous splitting patch.
726
727 2016-12-14 Martin Jambor <mjambor@suse.cz>
728
729 * omp-general.h: New file.
730 * omp-general.c: New file.
731 * omp-expand.h: Likewise.
732 * omp-expand.c: Likewise.
733 * omp-offload.h: Likewise.
734 * omp-offload.c: Likewise.
735 * omp-grid.c: Likewise.
736 * omp-grid.c: Likewise.
737 * omp-low.h: Include omp-general.h and omp-grid.h. Removed includes
738 of params.h, symbol-summary.h, lto-section-names.h, cilk.h, tree-eh.h,
739 ipa-prop.h, tree-cfgcleanup.h, cfgloop.h, except.h, expr.h, stmt.h,
740 varasm.h, calls.h, explow.h, dojump.h, flags.h, tree-into-ssa.h,
741 tree-cfg.h, cfganal.h, alias.h, emit-rtl.h, optabs.h, expmed.h,
742 alloc-pool.h, cfghooks.h, rtl.h and memmodel.h.
743 (omp_find_combined_for): Declare.
744 (find_omp_clause): Renamed to omp_find_clause and moved to
745 omp-general.h.
746 (free_omp_regions): Renamed to omp_free_regions and moved to
747 omp-expand.h.
748 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
749 to omp-general.h.
750 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
751 omp-general.h.
752 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
753 moved to omp-general.h.
754 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
755 omp-general.h.
756 (oacc_fn_attrib_kernels_p): Moved to omp-general.h.
757 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
758 omp-general.c.
759 (omp_expand_local): Moved to omp-expand.h.
760 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
761 omp-expand.h.
762 (omp_finish_file): Moved to omp-offload.h.
763 (default_goacc_validate_dims): Renamed to
764 oacc_default_goacc_validate_dims and moved to omp-offload.h.
765 (offload_funcs, offload_vars): Moved to omp-offload.h.
766 * omp-low.c: Include omp-general.h, omp-offload.h and omp-grid.h.
767 (omp_region): Moved to omp-expand.c.
768 (omp_for_data_loop): Moved to omp-general.h.
769 (omp_for_data): Likewise.
770 (oacc_loop): Moved to omp-offload.c.
771 (oacc_loop_flags): Moved to omp-general.h.
772 (offload_funcs, offload_vars): Moved to omp-offload.c.
773 (root_omp_region): Moved to omp-expand.c.
774 (omp_any_child_fn_dumped): Likewise.
775 (find_omp_clause): Renamed to omp_find_clause and moved to
776 omp-general.c.
777 (is_combined_parallel): Moved to omp-expand.c.
778 (is_reference): Renamed to omp_is_reference and and moved to
779 omp-general.c.
780 (adjust_for_condition): Renamed to omp_adjust_for_condition and moved
781 to omp-general.c.
782 (get_omp_for_step_from_incr): Renamed to omp_get_for_step_from_incr
783 and moved to omp-general.c.
784 (extract_omp_for_data): Renamed to omp_extract_for_data and moved to
785 omp-general.c.
786 (workshare_safe_to_combine_p): Moved to omp-expand.c.
787 (omp_adjust_chunk_size): Likewise.
788 (get_ws_args_for): Likewise.
789 (get_base_type): Removed.
790 (dump_omp_region): Moved to omp-expand.c.
791 (debug_omp_region): Likewise.
792 (debug_all_omp_regions): Likewise.
793 (new_omp_region): Likewise.
794 (free_omp_region_1): Likewise.
795 (free_omp_regions): Renamed to omp_free_regions and moved to
796 omp-expand.c.
797 (find_combined_for): Renamed to omp_find_combined_for, made global.
798 (build_omp_barrier): Renamed to omp_build_barrier and moved to
799 omp-general.c.
800 (omp_max_vf): Moved to omp-general.c.
801 (omp_max_simt_vf): Likewise.
802 (gimple_build_cond_empty): Moved to omp-expand.c.
803 (parallel_needs_hsa_kernel_p): Likewise.
804 (expand_omp_build_assign): Moved declaration to omp-expand.c.
805 (expand_parallel_call): Moved to omp-expand.c.
806 (expand_cilk_for_call): Likewise.
807 (expand_task_call): Likewise.
808 (vec2chain): Likewise.
809 (remove_exit_barrier): Likewise.
810 (remove_exit_barriers): Likewise.
811 (optimize_omp_library_calls): Likewise.
812 (expand_omp_regimplify_p): Likewise.
813 (expand_omp_build_assign): Likewise.
814 (expand_omp_taskreg): Likewise.
815 (oacc_collapse): Likewise.
816 (expand_oacc_collapse_init): Likewise.
817 (expand_oacc_collapse_vars): Likewise.
818 (expand_omp_for_init_counts): Likewise.
819 (expand_omp_for_init_vars): Likewise.
820 (extract_omp_for_update_vars): Likewise.
821 (expand_omp_ordered_source): Likewise.
822 (expand_omp_ordered_sink): Likewise.
823 (expand_omp_ordered_source_sink): Likewise.
824 (expand_omp_for_ordered_loops): Likewise.
825 (expand_omp_for_generic): Likewise.
826 (expand_omp_for_static_nochunk): Likewise.
827 (find_phi_with_arg_on_edge): Likewise.
828 (expand_omp_for_static_chunk): Likewise.
829 (expand_cilk_for): Likewise.
830 (expand_omp_simd): Likewise.
831 (expand_omp_taskloop_for_outer): Likewise.
832 (expand_omp_taskloop_for_inner): Likewise.
833 (expand_oacc_for): Likewise.
834 (expand_omp_for): Likewise.
835 (expand_omp_sections): Likewise.
836 (expand_omp_single): Likewise.
837 (expand_omp_synch): Likewise.
838 (expand_omp_atomic_load): Likewise.
839 (expand_omp_atomic_store): Likewise.
840 (expand_omp_atomic_fetch_op): Likewise.
841 (expand_omp_atomic_pipeline): Likewise.
842 (expand_omp_atomic_mutex): Likewise.
843 (expand_omp_atomic): Likewise.
844 (oacc_launch_pack): and moved to omp-general.c, made public.
845 (OACC_FN_ATTRIB): Likewise.
846 (replace_oacc_fn_attrib): Renamed to oacc_replace_fn_attrib and moved
847 to omp-general.c.
848 (set_oacc_fn_attrib): Renamed to oacc_set_fn_attrib and moved to
849 omp-general.c.
850 (build_oacc_routine_dims): Renamed to oacc_build_routine_dims and
851 moved to omp-general.c.
852 (get_oacc_fn_attrib): Renamed to oacc_get_fn_attrib and moved to
853 omp-general.c.
854 (oacc_fn_attrib_kernels_p): Moved to omp-general.c.
855 (oacc_fn_attrib_level): Moved to omp-offload.c.
856 (get_oacc_fn_dim_size): Renamed to oacc_get_fn_dim_size and moved to
857 omp-general.c.
858 (get_oacc_ifn_dim_arg): Renamed to oacc_get_ifn_dim_arg and moved to
859 omp-general.c.
860 (mark_loops_in_oacc_kernels_region): Moved to omp-expand.c.
861 (grid_launch_attributes_trees): Likewise.
862 (grid_attr_trees): Likewise.
863 (grid_create_kernel_launch_attr_types): Likewise.
864 (grid_insert_store_range_dim): Likewise.
865 (grid_get_kernel_launch_attributes): Likewise.
866 (get_target_argument_identifier_1): Likewise.
867 (get_target_argument_identifier): Likewise.
868 (get_target_argument_value): Likewise.
869 (push_target_argument_according_to_value): Likewise.
870 (get_target_arguments): Likewise.
871 (expand_omp_target): Likewise.
872 (grid_expand_omp_for_loop): Moved to omp-grid.c.
873 (grid_arg_decl_map): Likewise.
874 (grid_remap_kernel_arg_accesses): Likewise.
875 (grid_expand_target_grid_body): Likewise.
876 (expand_omp): Renamed to omp_expand and moved to omp-expand.c.
877 (build_omp_regions_1): Moved to omp-expand.c.
878 (build_omp_regions_root): Likewise.
879 (omp_expand_local): Likewise.
880 (build_omp_regions): Likewise.
881 (execute_expand_omp): Likewise.
882 (pass_data_expand_omp): Likewise.
883 (pass_expand_omp): Likewise.
884 (make_pass_expand_omp): Likewise.
885 (pass_data_expand_omp_ssa): Likewise.
886 (pass_expand_omp_ssa): Likewise.
887 (make_pass_expand_omp_ssa): Likewise.
888 (grid_lastprivate_predicate): Renamed to
889 omp_grid_lastprivate_predicate and moved to omp-grid.c, made public.
890 (grid_prop): Moved to omp-grid.c.
891 (GRID_MISSED_MSG_PREFIX): Likewise.
892 (grid_safe_assignment_p): Likewise.
893 (grid_seq_only_contains_local_assignments): Likewise.
894 (grid_find_single_omp_among_assignments_1): Likewise.
895 (grid_find_single_omp_among_assignments): Likewise.
896 (grid_find_ungridifiable_statement): Likewise.
897 (grid_parallel_clauses_gridifiable): Likewise.
898 (grid_inner_loop_gridifiable_p): Likewise.
899 (grid_dist_follows_simple_pattern): Likewise.
900 (grid_gfor_follows_tiling_pattern): Likewise.
901 (grid_call_permissible_in_distribute_p): Likewise.
902 (grid_handle_call_in_distribute): Likewise.
903 (grid_dist_follows_tiling_pattern): Likewise.
904 (grid_target_follows_gridifiable_pattern): Likewise.
905 (grid_remap_prebody_decls): Likewise.
906 (grid_var_segment): Likewise.
907 (grid_mark_variable_segment): Likewise.
908 (grid_copy_leading_local_assignments): Likewise.
909 (grid_process_grid_body): Likewise.
910 (grid_eliminate_combined_simd_part): Likewise.
911 (grid_mark_tiling_loops): Likewise.
912 (grid_mark_tiling_parallels_and_loops): Likewise.
913 (grid_process_kernel_body_copy): Likewise.
914 (grid_attempt_target_gridification): Likewise.
915 (grid_gridify_all_targets_stmt): Likewise.
916 (grid_gridify_all_targets): Renamed to omp_grid_gridify_all_targets
917 and moved to omp-grid.c, made public.
918 (make_gimple_omp_edges): Renamed to omp_make_gimple_edges and moved to
919 omp-expand.c.
920 (add_decls_addresses_to_decl_constructor): Moved to omp-offload.c.
921 (omp_finish_file): Likewise.
922 (oacc_thread_numbers): Likewise.
923 (oacc_xform_loop): Likewise.
924 (oacc_default_dims, oacc_min_dims): Likewise.
925 (oacc_parse_default_dims): Likewise.
926 (oacc_validate_dims): Likewise.
927 (new_oacc_loop_raw): Likewise.
928 (new_oacc_loop_outer): Likewise.
929 (new_oacc_loop): Likewise.
930 (new_oacc_loop_routine): Likewise.
931 (finish_oacc_loop): Likewise.
932 (free_oacc_loop): Likewise.
933 (dump_oacc_loop_part): Likewise.
934 (dump_oacc_loop): Likewise.
935 (debug_oacc_loop): Likewise.
936 (oacc_loop_discover_walk): Likewise.
937 (oacc_loop_sibling_nreverse): Likewise.
938 (oacc_loop_discovery): Likewise.
939 (oacc_loop_xform_head_tail): Likewise.
940 (oacc_loop_xform_loop): Likewise.
941 (oacc_loop_process): Likewise.
942 (oacc_loop_fixed_partitions): Likewise.
943 (oacc_loop_auto_partitions): Likewise.
944 (oacc_loop_partition): Likewise.
945 (default_goacc_fork_join): Likewise.
946 (default_goacc_reduction): Likewise.
947 (execute_oacc_device_lower): Likewise.
948 (default_goacc_validate_dims): Likewise.
949 (default_goacc_dim_limit): Likewise.
950 (pass_data_oacc_device_lower): Likewise.
951 (pass_oacc_device_lower): Likewise.
952 (make_pass_oacc_device_lower): Likewise.
953 (execute_omp_device_lower): Likewise.
954 (pass_data_omp_device_lower): Likewise.
955 (pass_omp_device_lower): Likewise.
956 (make_pass_omp_device_lower): Likewise.
957 (pass_data_omp_target_link): Likewise.
958 (pass_omp_target_link): Likewise.
959 (find_link_var_op): Likewise.
960 (pass_omp_target_link::execute): Likewise.
961 (make_pass_omp_target_link): Likewise.
962 * Makefile.in (OBJS): Added omp-offload.o, omp-expand.o, omp-general.o
963 and omp-grid.o.
964 (GTFILES): Added omp-offload.h, omp-offload.c and omp-expand.c, removed
965 omp-low.h.
966 * gimple-fold.c: Include omp-general.h instead of omp-low.h.
967 (fold_internal_goacc_dim): Adjusted calls to
968 get_oacc_ifn_dim_arg and get_oacc_fn_dim_size to use their new names.
969 * gimplify.c: Include omp-low.h.
970 (omp_notice_variable): Adjust the call to get_oacc_fn_attrib to use
971 its new name.
972 (gimplify_omp_task): Adjusted calls to find_omp_clause to use its new
973 name.
974 (gimplify_omp_for): Likewise.
975 * lto-cgraph.c: Include omp-offload.h instead of omp-low.h.
976 * toplev.c: Include omp-offload.h instead of omp-low.h.
977 * tree-cfg.c: Include omp-general.h instead of omp-low.h. Also
978 include omp-expand.h.
979 (make_edges_bb): Adjusted the call to make_gimple_omp_edges to use its
980 new name.
981 (make_edges): Adjust the call to free_omp_regions to use its new name.
982 * tree-parloops.c: Include omp-general.h.
983 (create_parallel_loop): Adjusted the call to set_oacc_fn_attrib to use
984 its new name.
985 (parallelize_loops): Adjusted the call to get_oacc_fn_attrib to use
986 its new name.
987 * tree-ssa-loop.c: Include omp-general.h instead of omp-low.h.
988 (gate_oacc_kernels): Adjusted the call to get_oacc_fn_attrib to use
989 its new name.
990 * tree-vrp.c: Include omp-general.h instead of omp-low.h.
991 (extract_range_basic): Adjusted calls to get_oacc_ifn_dim_arg and
992 get_oacc_fn_dim_size to use their new names.
993 * varpool.c: Include omp-offload.h instead of omp-low.h.
994 * gengtype.c (open_base_files): Replace omp-low.h with omp-offload.h in
995 ifiles.
996 * config/nvptx/nvptx.c: Include omp-general.c.
997 (nvptx_expand_call): Adjusted the call to get_oacc_fn_attrib to use
998 its new name.
999 (nvptx_reorg): Likewise.
1000 (nvptx_record_offload_symbol): Likewise.
1001
1002 2016-12-14 Martin Sebor <msebor@redhat.com>
1003
1004 PR middle-end/78786
1005 * gimple-ssa-sprintf.c (target_dir_max): New macro.
1006 (get_mpfr_format_length): New function.
1007 (format_integer): Use HOST_WIDE_INT instead of int.
1008 (format_floating_max): Same.
1009 (format_floating): Call get_mpfr_format_length.
1010 (format_directive): Use target_dir_max.
1011
1012 2016-12-14 Jakub Jelinek <jakub@redhat.com>
1013
1014 PR target/78791
1015 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_STV_TEMP.
1016 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies,
1017 dimode_scalar_chain::convert_reg): Use SLOT_STV_TEMP instead of
1018 SLOT_TEMP.
1019
1020 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
1021
1022 PR target/59874
1023 * config/i386/i386-builtin.def: Add __builtin_clzs and __builtin_ctzs.
1024 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
1025 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
1026 (*clzhi2): Ditto.
1027
1028 2016-12-14 Jakub Jelinek <jakub@redhat.com>
1029
1030 PR debug/77844
1031 * valtrack.c: Include rtl-iter.h.
1032 (struct rtx_subst_pair): Add insn field.
1033 (propagate_for_debug_subst): If pair->to contains at least 2
1034 regs, create a DEBUG_INSN with a debug temp before pair->insn
1035 and replace from with the debug temp instead of pair->to.
1036 (propagate_for_debug): Initialize p.insn.
1037 * combine.c (insn_uid_check): New inline function.
1038 (INSN_COST, LOG_LINKS): Use it instead of INSN_UID.
1039 (find_single_use, combine_instructions,
1040 cant_combine_insn_p, try_combine): Use NONDEBUG_INSN_P instead of
1041 INSN_P.
1042
1043 2016-12-14 Martin Sebor <msebor@redhat.com>
1044
1045 PR c/17308
1046 * builtin-attrs.def (ATTR_NONNULL_1_1, ATTR_NONNULL_1_2): Defined.
1047 (ATTR_NONNULL_1_3, ATTR_NONNULL_1_4, ATTR_NONNULL_1_5): Same.
1048 (ATTR_NOTHROW_NONNULL_1_1, ATTR_NOTHROW_NONNULL_1_2): Same.
1049 (ATTR_NOTHROW_NONNULL_1_3, ATTR_NOTHROW_NONNULL_1_4): Same.
1050 (ATTR_NOTHROW_NONNULL_1_5): Same.
1051 (ATTR_NONNULL_1_FORMAT_PRINTF_1_2): Same.
1052 (ATTR_NONNULL_1_FORMAT_PRINTF_2_0): Same.
1053 (ATTR_NONNULL_1_FORMAT_PRINTF_2_3): Same.
1054 (ATTR_NONNULL_1_FORMAT_PRINTF_3_0): Same.
1055 (ATTR_NONNULL_1_FORMAT_PRINTF_3_4): Same.
1056 (ATTR_NONNULL_1_FORMAT_PRINTF_4_0): Same.
1057 (ATTR_NONNULL_1_FORMAT_PRINTF_4_5): Same.
1058 * builtins.c (validate_arg): Add argument. Treat null pointers
1059 passed to nonnull arguments as invalid.
1060 (validate_arglist): Same.
1061 * builtins.def (fprintf, fprintf_unlocked): Add nonnull attribute.
1062 (printf, printf_unlocked, sprintf. vfprintf, vsprintf): Same.
1063 (__sprintf_chk, __vsprintf_chk, __fprintf_chk, __vfprintf_chk): Same.
1064 * calls.c (get_nonnull_ags, maybe_warn_null_arg): New functions.
1065 (initialize_argument_information): Diagnose null pointers passed to
1066 arguments declared nonnull.
1067 * calls.h (get_nonnull_args): Declared.
1068
1069 2016-12-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1070
1071 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): On ISA
1072 3.0/power9, add support to use the VEXTU{B,H,W}{L,R}X extract
1073 instructions.
1074 * config/rs6000/vsx.md (VSr2): Add IEEE 128-bit floating point
1075 type constraint registers.
1076 (VSr3): Likewise.
1077 (FL_CONV): New mode iterator for binary floating types that have a
1078 direct conversion from 64-bit integer to floating point.
1079 (vsx_extract_<mode>_p9): Add support for the ISA 3.0/power9
1080 VEXTU{B,H,W}{L,R}X extract instructions.
1081 (vsx_extract_<mode>_p9 splitter): Add splitter to load up the
1082 extract byte position into the GPR if we are using the
1083 VEXTU{B,H,W}{L,R}X extract instructions.
1084 (vsx_extract_<mode>_di_p9): Support extracts to GPRs.
1085 (vsx_extract_<mode>_store_p9): Support extracting to GPRs so that
1086 we can use reg+offset address instructions.
1087 (vsx_extract_<mode>_var): Support extracts to GPRs.
1088 (vsx_extract_<VSX_EXTRACT_I:mode>_<SDI:mode>_var): New combiner
1089 insn to combine vector extracts with zero_extend.
1090 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Optimize
1091 extracting a small integer vector element and converting it to a
1092 floating point type.
1093 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
1094 (UNSPEC_XXEXTRACTUW): New unspec.
1095 (UNSPEC_XXINSERTW): Likewise.
1096 (vextract4b): Add support for the vec_vextract4b built-in
1097 function.
1098 (vextract4b_internal): Likewise.
1099 (vinsert4b): Add support for the vec_insert4b built-in function.
1100 Include both a version that inserts element 1 from a V4SI object
1101 and one that inserts a DI object.
1102 (vinsert4b_internal): Likewise.
1103 (vinsert4b_di): Likewise.
1104 (vinsert4b_di_internal): Likewise.
1105 * config/rs6000/predicates.md (const_0_to_11_operand): New
1106 predicate, match 0..11.
1107 * config/rs6000/rs6000-builtin.def (BU_P9V_VSX_3): Set built-in
1108 type to ternary, not binary.
1109 (BU_P9V_64BIT_VSX_3): Likewise.
1110 (P9V_BUILTIN_VEXTRACT4B): Add support for vec_vinsert4b and
1111 vec_extract4b non-overloaded built-in functions.
1112 (P9V_BUILTIN_VINSERT4B): Likewise.
1113 (P9V_BUILTIN_VINSERT4B_DI): Likewise.
1114 (P9V_BUILTIN_VEC_VEXTULX): Move to section that adds 2 operand ISA
1115 3.0 built-in functions.
1116 (P9V_BUILTIN_VEC_VEXTURX): Likewise.
1117 (P9V_BUILTIN_VEC_VEXTRACT4B): Add support for overloaded
1118 vec_insert4b and vec_extract4 built-in functions.
1119 (P9V_BUILTIN_VEC_VINSERT4B): Likewise.
1120 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1121 overloaded support for vec_vinsert4b and vec_extract4b.
1122 * config/rs6000/rs6000.c (altivec_expand_builtin): Add checks for
1123 the vec_insert4b and vec_extract4b byte number being a constant in
1124 the range 0..11.
1125 * config/rs6000/altivec.h (vec_vinsert4b): Support vec_vinsert4b
1126 and vec_extract4b built-in functions.
1127 * doc/extend.doc (PowerPC VSX built-in functions): Document
1128 vec_insert4b and vec_extract4b.
1129
1130 2016-12-14 Martin Liska <mliska@suse.cz>
1131
1132 * gimple-pretty-print.c (dump_probability): New function.
1133 (dump_edge_probability): Use the function.
1134 (dump_gimple_label): Likewise.
1135 (dump_gimple_bb_header): Likewise.
1136
1137 2016-12-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1138 Jakub Jelinek <jakub@redhat.com>
1139
1140 * tree-ssa-strlen.c (fold_strstr_to_memcmp): New function.
1141 (strlen_optimize_stmt): Call fold_strstr_to_memcmp.
1142
1143 2016-12-14 Eric Botcazou <ebotcazou@adacore.com>
1144
1145 * lra-constraints.c (process_address_1): Do not attempt to decompose
1146 addresses for MEMs that satisfy fixed-form constraints.
1147
1148 2016-12-14 Richard Biener <rguenther@suse.de>
1149
1150 PR tree-optimization/78788
1151 * tree-vrp.c (set_value_range): Allow [-INF(OVF), +INF(OVF)].
1152 (set_and_canonicalize_value_range): Do not drop the above to
1153 VARYING.
1154
1155 2016-12-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1156
1157 * config/rs6000/rs600.c (rs6000_builtin_vectorization_cost):
1158 Adjust unaligned load cost.
1159
1160 2016-12-13 Uros Bizjak <ubizjak@gmail.com>
1161
1162 PR target/78794
1163 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
1164 Calculate additional gain for andnot for targets without BMI.
1165
1166 2016-12-13 Carl Love <cel@us.ibm.com>
1167
1168 * config/rs6000/rs6000-c.c: Add built-in support for
1169 vector float vec_pack (vector double, vector double)
1170 vector double vec_sld (vector double, vector double)
1171 * config/rs6000/rs6000.c: Add icode check for vsldoi_v2df to allow
1172 4-bit unsigned literal.
1173 * config/rs6000/rs6000-builtin.def: Add definition for VSLDOI_2DF
1174 * doc/extend.texi: Update the built-in documentation file for the
1175 new powerpc vec_pack and vec_sld built-ins.
1176
1177 2016-12-13 Martin Liska <mliska@suse.cz>
1178
1179 * sanopt.c (sanopt_optimize_walker): Set contains_asan_mark.
1180 (sanopt_optimize): Add new argument.
1181 (sanitize_asan_mark_unpoison): New function.
1182 (maybe_contains_asan_check): Likewise.
1183 (sanitize_asan_mark_poison): Likewise.
1184 (pass_sanopt::execute): Call the new functions.
1185
1186 2016-12-13 Martin Liska <mliska@suse.cz>
1187
1188 PR tree-optimization/78428
1189 * expr.c (store_constructor_field): Add new arguments to the function.
1190 (store_constructor): Set up bitregion_end and add gcc_unreachable to
1191 fields that have either non-constant size or (and) offset.
1192
1193 2016-12-13 Marek Polacek <polacek@redhat.com>
1194
1195 * tree-data-ref.c (compute_overlap_steps_for_affine_univar): Change
1196 parameters' type from int to HOST_WIDE_INT.
1197 (compute_overlap_steps_for_affine_1_2): Change parameters' type from
1198 int to HOST_WIDE_INT.
1199 (build_classic_dist_vector_1): Likewise.
1200 (add_multivariate_self_dist): Likewise.
1201
1202 2016-12-13 Michael Matz <matz@suse.de>
1203
1204 PR tree-optimization/78725
1205 * tree-ssa-loop-split.c (split_at_bb_p): Check for overflow and
1206 at correct use point.
1207
1208 2016-12-13 Martin Liska <mliska@suse.cz>
1209
1210 * asan.c (asan_expand_mark_ifn): Use renamed
1211 BUILT_IN_ASAN_{UN}CLOBBER_N to BUILT_IN_ASAN_{UN}POISON_STACK_MEMORY.
1212 * sanitizer.def: Likewise.
1213
1214 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1215
1216 * doc/extend.texi (Half-Precision): Update to document current
1217 compiler behaviour.
1218
1219 2016-12-13 James Greenhalgh <james.greenhalgh@arm.com>
1220
1221 * doc/extend.texi (Floating Types): Document availability of
1222 _Float16 on ARM/AArch64.
1223
1224 2016-12-13 Richard Biener <rguenther@suse.de>
1225
1226 PR tree-optimization/78699
1227 * tree-vect-data-refs.c (vect_analyze_group_access_1): Limit
1228 group size.
1229
1230 2016-12-13 Richard Biener <rguenther@suse.de>
1231
1232 PR middle-end/78742
1233 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
1234 * tree-object-size.c (compute_builtin_object_size): Use
1235 tree_fits_shwi_p.
1236 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
1237
1238 2016-12-13 Martin Liska <mliska@suse.cz>
1239
1240 * asan.c (asan_mark_poison_p): Remove.
1241 (asan_mark_p): New function.
1242 (transform_statements): Use the function.
1243 (asan_expand_mark_ifn): Do not use masked enum.
1244 * asan.h (enum asan_mark_flags): Declare it via a macro.
1245 * gimple-pretty-print.c (dump_gimple_call_args): Dump first
1246 argument of ASAN_MARK.
1247 * gimplify.c (build_asan_poison_call_expr): Use new enum values.
1248 (asan_poison_variable): Likewise.
1249
1250 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1251
1252 PR ipa/77905
1253 * ipa-pure-const.c (cdtor_p): Return true for
1254 DECL_STATIC_{CON,DE}STRUCTOR even when it is
1255 DECL_LOOPING_CONST_OR_PURE_P.
1256
1257 2016-12-12 Jakub Jelinek <jakub@redhat.com>
1258
1259 PR tree-optimization/78777
1260 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge,
1261 insert_initializers): Use stmt_ends_bb_p instead of is_ctrl_stmt.
1262
1263 PR other/78766
1264 * opt-functions.awk (opt_args): Use [{] instead of { in regexps.
1265 Formatting fix.
1266
1267 2016-12-12 Martin Sebor <msebor@redhat.com>
1268
1269 PR middle-end/78622
1270 PR middle-end78606
1271 * gimple-ssa-sprintf.c (min_bytes_remaining): Use res.knownrange
1272 rather than res.bounded.
1273 (get_width_and_precision): Set precision to -1 when negative.
1274 (adjust_range_for_overflow): New function.
1275 (format_integer): Correct the handling of the space, plus, and pound
1276 flags, and the special case of zero precision.
1277 Always set res.bounded to true unless either precision or width
1278 is specified and unknown.
1279 Call adjust_range_for_overflow.
1280 Avoid use zero as the shortest value when precision is specified
1281 but unknown.
1282 (format_directive): Remove vestigial quoting. Always inform of
1283 argument value or range when it's available.
1284 (add_bytes): Correct the computation of boundrange used to
1285 decide whether a warning is of a "maybe" or "defnitely" kind.
1286
1287 2016-12-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
1288
1289 * combine.c (change_zero_ext): Handle mode expanding zero_extracts.
1290
1291 2016-12-12 Uros Bizjak <ubizjak@gmail.com>
1292
1293 PR target/78738
1294 * config/i386/i386.h (X87_ENABLE_ARITH): Also enable for
1295 flag_unsafe_math_optimizations.
1296 (X87_ENABLE_FLOAT): Ditto.
1297
1298 2016-12-12 Marek Polacek <polacek@redhat.com>
1299
1300 PR middle-end/78716
1301 * gimplify.c (gimplify_va_arg_expr): Don't require ADDR_EXPR for
1302 Case 1; check POINTER_TYPE_P instead.
1303
1304 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
1305
1306 PR rtl-optimization/78669
1307 * ira.c (combine_and_move_insns): When deleting an insn, clear the
1308 replace flag for all used regs in that insn.
1309
1310 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
1311
1312 * config/arm/arm-opts.h: Move struct arm_arch_core_flag and
1313 arm_arch_core_flags to ...
1314 * common/config/arm/arm-common.c: There.
1315
1316 2016-12-12 Eric Botcazou <ebotcazou@adacore.com>
1317
1318 * config/sparc/constraints.md (T): Use special memory constraint.
1319 (U): Minor tweak.
1320 (W): Add TARGET_ARCH64 test.
1321 * config/sparc/sparc.md (*movdi_insn_sp32): Replace 'W' with 'T'.
1322 (*movdf_insn_sp32): Likewise.
1323 (*mov<VM64:mode>_insn_sp32): Likewise. Replace 'e' with 'f' in
1324 conjunction with offsettable memory references.
1325
1326 2016-12-11 Sandra Loosemore <sandra@codesourcery.com>
1327
1328 * config/nios2/nios2.c (nios2_emit_move_sequence): Call copy_rtx
1329 to avoid shared structure error.
1330
1331 2016-12-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1332
1333 PR target/78695
1334 * config/rs6000/rs6000.c (find_alignment_op): Discard from
1335 consideration any artificial definition.
1336
1337 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1338
1339 * configure.ac (CROSS directory tests): Remove the assumption that
1340 Darwin hosts contain suitable target sysroots in "/".
1341 * configure: Regenerate.
1342
1343 2016-12-11 Iain Sandoe <iain@codesourcery.com>
1344
1345 PR rtl-optimization/71496
1346 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
1347 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
1348 reload_macho_picbase_di): Likewise.
1349
1350 2012-12-11 John David Anglin <danglin@gcc.gnu.org>
1351
1352 * config/pa/pa.c (pa_callee_copies): New function.
1353 * config/pa/pa.opt (mcaller-copies): New option.
1354 * doc/invoke.texi (mcaller-copies): Document option.
1355
1356 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
1357
1358 PR target/70799
1359 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
1360 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
1361 Add FIXME comment.
1362 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
1363 constant shifts larger or equal than 32.
1364
1365 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1366
1367 * config/i386/x86-64.h: Append --32 to the assembler options when
1368 -m16 is used on non-glibc systems as well.
1369
1370 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
1371
1372 PR target/70118
1373 * config/i386/mmintrin.h (__m64_u): New type
1374 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
1375 Make the allowed unaligned memory access explicit.
1376
1377 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
1378
1379 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
1380 Generally use cpu generic.
1381
1382 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1383 Marc Glisse <marc.glisse@inria.fr>
1384
1385 PR tree-optimization/78720
1386 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
1387 is negative, sign extend to @1's type and than AND with C.
1388
1389 2016-12-10 Jakub Jelinek <jakub@redhat.com>
1390
1391 PR fortran/78758
1392 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
1393 non-zero low bound or non-standard element sizes.
1394
1395 PR sanitizer/78708
1396 * lto-streamer-in.c (input_function): In addition to debug stmts
1397 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
1398 bit is not enabled.
1399
1400 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1401
1402 * config/rs6000/rs6000-passes.def: New file.
1403 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
1404 * config/rs6000/rs6000.c (rs6000_option_override): Remove
1405 registration of machine-specific passes.
1406 (pass_analyze_swaps::clone): New function.
1407 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
1408
1409 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
1410
1411 PR ipa/78721
1412 * ipa-cp.c (propagate_vr_accross_jump_function): Call
1413 drop_tree_overflow after fold_convert.
1414
1415 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1416
1417 PR target/72742
1418 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
1419 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
1420 condition.
1421
1422 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
1423
1424 PR target/78683
1425 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
1426 GET_MODE_BITSIZE. Return 2.
1427 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
1428 TARGET_POPCNTD the same as TARGET_CTZ.
1429 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
1430 (ffs<mode>2): Reimplement.
1431
1432 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
1433
1434 PR rtl-optimization/78255
1435 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
1436 NO_FUNCTION_CSE is true.
1437
1438 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
1439
1440 PR ipa/78027
1441 * ipa-icf.c (sem_function::parse): Don't process functions with
1442 oacc decl attributes, as they may be OpenACC routines.
1443
1444 2016-12-09 David Malcolm <dmalcolm@redhat.com>
1445
1446 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
1447 pointer.
1448
1449 2016-12-09 Nathan Sidwell <nathan@acm.org>
1450
1451 PR C++/78550
1452 * convert.c (convert_to_integer_1): Maybe fold conversions to
1453 integral types with fewer bits than its mode.
1454
1455 2016-12-09 Martin Liska <mliska@suse.cz>
1456
1457 * tree-pretty-print.c (pretty_print_string): Escape non-printable
1458 chars in strings.
1459
1460 2016-12-09 Jakub Jelinek <jakub@redhat.com>
1461
1462 PR tree-optimization/78726
1463 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
1464 argument. For lhs uses in debug stmts, don't replace lhs with
1465 new_lhs, but with a debug temp set to new_lhs opcode op.
1466 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
1467 OP down to make_new_ssa_for_def.
1468 (zero_one_operation): Call make_new_ssa_for_all_defs even when
1469 stmts_to_fix is empty, if *def has not changed yet. Pass
1470 OPCODE to make_new_ssa_for_all_defs.
1471
1472 2016-12-08 Martin Sebor <msebor@redhat.com>
1473
1474 PR c/78284
1475 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
1476 identifier tree nodes.
1477 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
1478 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
1479 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
1480 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
1481 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
1482 * builtins.c (expand_builtin_alloca): Call
1483 maybe_warn_alloc_args_overflow.
1484 * builtins.def (aligned_alloc, calloc, malloc, realloc):
1485 Add attribute alloc_size.
1486 (alloca): Add attribute alloc_size and returns_nonnull.
1487 * calls.h (maybe_warn_alloc_args_overflow): Declare.
1488 * calls.c (alloc_max_size, operand_signed_p): New functions.
1489 (maybe_warn_alloc_args_overflow): Define.
1490 (initialize_argument_information): Diagnose overflow in functions
1491 declared with attaribute alloc_size.
1492 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
1493 -Walloc-size-larger-than.
1494
1495 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
1496
1497 PR rtl-optimization/78671
1498 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
1499 allocno class.
1500
1501 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
1502
1503 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
1504 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
1505
1506 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
1507
1508 PR target/78733
1509 * config/aarch64/aarch64.c (aarch64_classify_address):
1510 Set load_store_pair_p for TImode and TFmode.
1511
1512 2016-12-08 David Malcolm <dmalcolm@redhat.com>
1513
1514 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
1515 regno_reg_rtx resizing logic to...
1516 (emit_status::ensure_regno_capacity): ...this new method,
1517 and ensure that the buffers are large enough.
1518 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
1519 rather than ggc_vec_alloc.
1520 * function.h (emit_status::ensure_regno_capacity): New method.
1521
1522 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
1523
1524 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
1525 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
1526 * doc/invoke.texi (-fsanitize=kernel-address):
1527 Don't say that it enables -fsanitize-address-use-after-scope.
1528
1529 2016-12-08 Bin Cheng <bin.cheng@arm.com>
1530
1531 PR middle-end/78684
1532 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
1533 sign bit for index step of data reference.
1534
1535 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1536
1537 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1538 Handle SYMBOL_SMALL_TLSGD for ILP32.
1539 * config/aarch64/aarch64.md : tlsgd_small modified into
1540 tlsgd_small_<mode> to support SImode and DImode.
1541 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
1542 DImode.
1543
1544 2016-12-08 Andrew Pinski <apinski@cavium.com>
1545
1546 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1547 Access the lower part of RTX appropriately.
1548
1549 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1550
1551 * genpreds.c (write_tm_constrs_h): Update for renaming of
1552 rtx_reader_ptr to md_reader_ptr.
1553 (write_tm_preds_h): Likewise.
1554 (write_insn_preds_c): Likewise.
1555 * read-md.c (rtx_reader_ptr): Rename to...
1556 (md_reader_ptr): ...this, and convert from an
1557 rtx_reader * to a md_reader *.
1558 (rtx_reader::set_md_ptr_loc): Rename to...
1559 (md_reader::set_md_ptr_loc): ...this.
1560 (rtx_reader::get_md_ptr_loc): Rename to...
1561 (md_reader::get_md_ptr_loc): ...this.
1562 (rtx_reader::copy_md_ptr_loc): Rename to...
1563 (md_reader::copy_md_ptr_loc): ...this.
1564 (rtx_reader::fprint_md_ptr_loc): Rename to...
1565 (md_reader::fprint_md_ptr_loc): ...this.
1566 (rtx_reader::print_md_ptr_loc): Rename to...
1567 (md_reader::print_md_ptr_loc): ...this.
1568 (rtx_reader::join_c_conditions): Rename to...
1569 (md_reader::join_c_conditions): ...this.
1570 (rtx_reader::fprint_c_condition): ...this.
1571 (rtx_reader::print_c_condition): Rename to...
1572 (md_reader::print_c_condition): ...this.
1573 (fatal_with_file_and_line): Update for renaming of
1574 rtx_reader_ptr to md_reader_ptr.
1575 (rtx_reader::require_char): Rename to...
1576 (md_reader::require_char): ...this.
1577 (rtx_reader::require_char_ws): Rename to...
1578 (md_reader::require_char_ws): ...this.
1579 (rtx_reader::require_word_ws): Rename to...
1580 (md_reader::require_word_ws): ...this.
1581 (rtx_reader::read_char): Rename to...
1582 (md_reader::read_char): ...this.
1583 (rtx_reader::unread_char): Rename to...
1584 (md_reader::unread_char): ...this.
1585 (rtx_reader::peek_char): Rename to...
1586 (md_reader::peek_char): ...this.
1587 (rtx_reader::read_name): Rename to...
1588 (md_reader::read_name): ...this.
1589 (rtx_reader::read_escape): Rename to...
1590 (md_reader::read_escape): ...this.
1591 (rtx_reader::read_quoted_string): Rename to...
1592 (md_reader::read_quoted_string): ...this.
1593 (rtx_reader::read_braced_string): Rename to...
1594 (md_reader::read_braced_string): ...this.
1595 (rtx_reader::read_string): Rename to...
1596 (md_reader::read_string): ...this.
1597 (rtx_reader::read_skip_construct): Rename to...
1598 (md_reader::read_skip_construct): ...this.
1599 (rtx_reader::handle_constants): Rename to...
1600 (md_reader::handle_constants): ...this.
1601 (rtx_reader::traverse_md_constants): Rename to...
1602 (md_reader::traverse_md_constants): ...this.
1603 (rtx_reader::handle_enum): Rename to...
1604 (md_reader::handle_enum): ...this.
1605 (rtx_reader::lookup_enum_type): Rename to...
1606 (md_reader::lookup_enum_type): ...this.
1607 (rtx_reader::traverse_enum_types): Rename to...
1608 (md_reader::traverse_enum_types): ...this.
1609 (rtx_reader::rtx_reader): Rename to...
1610 (md_reader::md_reader): ...this, and update for renaming of
1611 rtx_reader_ptr to md_reader_ptr.
1612 (rtx_reader::~rtx_reader): Rename to...
1613 (md_reader::~md_reader): ...this, and update for renaming of
1614 rtx_reader_ptr to md_reader_ptr.
1615 (rtx_reader::handle_include): Rename to...
1616 (md_reader::handle_include): ...this.
1617 (rtx_reader::handle_file): Rename to...
1618 (md_reader::handle_file): ...this.
1619 (rtx_reader::handle_toplevel_file): Rename to...
1620 (md_reader::handle_toplevel_file): ...this.
1621 (rtx_reader::get_current_location): Rename to...
1622 (md_reader::get_current_location): ...this.
1623 (rtx_reader::add_include_path): Rename to...
1624 (md_reader::add_include_path): ...this.
1625 (rtx_reader::read_md_files): Rename to...
1626 (md_reader::read_md_files): ...this.
1627 * read-md.h (class rtx_reader): Split into...
1628 (class md_reader): ...new class.
1629 (rtx_reader_ptr): Rename to...
1630 (md_reader_ptr): ...this, and convert to a md_reader *.
1631 (class noop_reader): Update base class to be md_reader.
1632 (class rtx_reader): Reintroduce as a subclass of md_reader.
1633 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
1634 (read_char): Update for renaming of rtx_reader_ptr to
1635 md_reader_ptr.
1636 (unread_char): Likewise.
1637 * read-rtl.c (rtx_reader_ptr): New global.
1638 (rtx_reader::apply_iterator_to_string): Rename to...
1639 (md_reader::apply_iterator_to_string): ...this.
1640 (rtx_reader::copy_rtx_for_iterators): Rename to...
1641 (md_reader::copy_rtx_for_iterators): ...this.
1642 (rtx_reader::read_conditions): Rename to...
1643 (md_reader::read_conditions): ...this.
1644 (rtx_reader::record_potential_iterator_use): Rename to...
1645 (md_reader::record_potential_iterator_use): ...this.
1646 (rtx_reader::read_mapping): Rename to...
1647 (md_reader::read_mapping): ...this.
1648 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
1649 read_rtx_code.
1650 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
1651 than directly accessing m_string_obstack.
1652 (rtx_reader::rtx_reader): New ctor.
1653 (rtx_reader::~rtx_reader): New dtor.
1654
1655 2016-12-07 Martin Sebor <msebor@redhat.com>
1656
1657 PR middle-end/77784
1658 PR middle-end/78149
1659 PR middle-end/78138
1660
1661 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
1662 functions.
1663 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
1664 (check_memop_sizes): Same.
1665 (expand_builtin_memcpy): Call check memop_sizes.
1666 (expand_builtin_mempcpy): Same.
1667 (expand_builtin_memset): Same,
1668 (expand_builtin_bzero): Same.
1669 (expand_builtin_memory_chk): Call check_sizes.
1670 (expand_builtin_strcpy): Same.
1671 (expand_builtin_strncpy): Same.
1672 (maybe_emit_sprintf_chk_warning): Same.
1673 (expand_builtin): Handle strcat and strncat.
1674 (fini_object_sizes): Reset pointers.
1675 (compute_object_size): New function.
1676 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1677 Avoid issuing warnings also issued during built-in expansion.
1678 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
1679
1680 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1681
1682 PR target/72717
1683 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
1684 V2DImode elements are SUBREG's convert the result into DImode
1685 rather than failing in emit_move_insn.
1686
1687 2016-12-07 Jakub Jelinek <jakub@redhat.com>
1688
1689 * builtins.c (fold_builtin_strstr): Removed.
1690 (fold_builtin_2): Don't call fold_builtin_strstr.
1691 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
1692 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
1693 (gimple_fold_builtin_strstr): New function.
1694 (gimple_fold_builtin): Call it.
1695 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
1696
1697 PR c++/78692
1698 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
1699 var to lhs of new_stmt right before noreturn handling rather than to
1700 lhs of e->call_stmt early.
1701
1702 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1703
1704 * read-md.c (rtx_reader::require_char): New method.
1705 (require_char_ws): Convert from function to...
1706 (rtx_reader::require_char_ws): ...method.
1707 (rtx_reader::require_word_ws): New method.
1708 * read-md.h (rtx_reader::require_char): New method decl.
1709 (require_char_ws): Remove global decl in favor of...
1710 (rtx_reader::require_char_ws): ...new method decl.
1711 (rtx_reader::require_word_ws): New method decl.
1712 (rtx_reader::peek_char): New method decl.
1713
1714 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
1715
1716 PR rtl-optimization/78617
1717 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
1718 registers, also setting hard registers mapped to pseudo registers.
1719
1720 2016-12-07 David Malcolm <dmalcolm@redhat.com>
1721
1722 * cfgexpand.c (pass_expand::execute): Move stack initializations
1723 to rtl_data::init_stack_alignment and call it.
1724 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
1725 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
1726
1727 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1728
1729 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
1730 (ira): Move initialization of crtl->is_leaf earlier.
1731
1732 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
1733
1734 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
1735 (movtf_aarch64): Likewise.
1736 * config/aarch64/aarch64.c (aarch64_classify_address):
1737 Use correct intersection of offsets.
1738 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
1739 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
1740 Use 7-bit signed scaled mode for modes > 16 bytes.
1741
1742 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
1743
1744 PR rtl-optimization/78561
1745 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
1746 constant_pool_empty_p in place of get_pool_size_upper_bound.
1747 (rs6000_stack_info): Likewise.
1748 (rs6000_emit_prologue): Likewise.
1749 (rs6000_elf_declare_function_name): Likewise.
1750 (rs6000_set_up_by_prologue): Likewise.
1751 (rs6000_can_eliminate): Likewise.
1752 * output.h (get_pool_size_upper_bound): Delete.
1753 (constant_pool_empty_p): New.
1754 * varasm.c (get_pool_size_upper_bound): Delete
1755 (constant_pool_empty_p): New.
1756
1757 2016-12-07 Bin Cheng <bin.cheng@arm.com>
1758
1759 PR tree-optimization/78691
1760 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
1761 Require integral type for the outer expression.
1762
1763 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1764
1765 * config/aarch64/aarch64.c
1766 (aarch64_builtin_support_vector_misalignment): New.
1767 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
1768
1769 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1770
1771 PR bootstrap/78705
1772 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
1773 Conditionalize the string comparison on Pmode == DImode.
1774
1775 2016-12-06 Tom de Vries <tom@codesourcery.com>
1776
1777 PR tree-optimization/67955
1778 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
1779 (stmt_kills_ref_p): Use it.
1780
1781 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1782
1783 PR middle-end/78700
1784 * calls.c (expand_call): Move back call to prepare_call_address.
1785
1786 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1787
1788 PR target/78658
1789 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
1790 ?* constraints for the ISA 3.0 patterns, so the register allocator
1791 is more likely to allocate QImode/HImode to vector registers for
1792 conversion to floating point unless a reload is needed.
1793 (zero_extendhi<mode>2): Likewise.
1794 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
1795 first alternative which is converting QImode/HImode to floating
1796 point and the QImode/HImode value is in a vector register, and
1797 does not allocate the second pseudo register. Remove zero
1798 extending into traditional floating point registers, since the
1799 instruction used only works on traditional altivec registers.
1800 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
1801
1802 2016-12-06 David Malcolm <dmalcolm@redhat.com>
1803
1804 * config/i386/i386.c: Include print-rtl.h.
1805 (selftest::ix86_test_dumping_memory_blockage): New function.
1806 (selftest::ix86_run_selftests): Call it.
1807 * print-rtl-function.c (print_rtx_function): Create an
1808 rtx_reuse_manager and use it.
1809 * print-rtl.c: Include "rtl-iter.h".
1810 (rtx_writer::rtx_writer): Add reuse_manager param.
1811 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
1812 (uses_rtx_reuse_p): New function.
1813 (rtx_reuse_manager::preprocess): New function.
1814 (rtx_reuse_manager::has_reuse_id): New function.
1815 (rtx_reuse_manager::seen_def_p): New function.
1816 (rtx_reuse_manager::set_seen_def): New function.
1817 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
1818 prefix the first time in_rtx is seen, and print reuse_rtx
1819 subsequently.
1820 (print_inline_rtx): Supply NULL for new reuse_manager param.
1821 (debug_rtx): Likewise.
1822 (print_rtl): Likewise.
1823 (print_rtl_single): Likewise.
1824 (rtx_writer::print_rtl_single_with_indent): Likewise.
1825 * print-rtl.h: Include bitmap.h when building for host.
1826 (rtx_writer::rtx_writer): Add reuse_manager param.
1827 (rtx_writer::m_rtx_reuse_manager): New field.
1828 (class rtx_reuse_manager): New class.
1829 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
1830 param and use it when constructing rtx_writer.
1831 (selftest::test_dumping_rtx_reuse): New function.
1832 (selftest::rtl_tests_c_tests): Call it.
1833 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
1834 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
1835 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
1836 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
1837
1838 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
1839
1840 PR target/77761
1841 * lra-lives.c (process_bb_lives): Update biggest mode for
1842 implicitly used hard reg.
1843
1844 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
1845
1846 * config/i386/predicates.md (general_gr_operand): New predicate.
1847 * config/i386/i386.md (TImode and DImode push_operand splitter):
1848 Use general_gr_operand. Macroize using DWI mode macro.
1849 (TImode and DImode nonimmediate_operand splitter): Use
1850 nonimmediate_gr_operand and general_gr_operand. Macroize using
1851 DWI mode macro.
1852 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
1853 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
1854 and general_gr_operand.
1855 (XFmode nonimmediate_operand splitter): Ditto.
1856 (DFmode nonimmediate_operand splitter): Ditto.
1857 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
1858
1859 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1860
1861 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
1862 alphabetical order with respect to other ARMv8 processors.
1863 * config/arm/arm-tables.opt: Regenerate.
1864 * config/arm/arm-tune.md: Likewise.
1865
1866 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
1867
1868 * config/mips/mips.c (mips_expand_builtin_insn): Check input
1869 ranges of literal integer arguments.
1870
1871 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1872
1873 PR middle-end/78548
1874 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
1875 destroy_predicate_vecs.
1876 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
1877
1878 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
1879
1880 PR middle-end/78566
1881 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
1882 argument type to a pred_chain.
1883 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
1884 worklist.
1885 (flatten_out_predicate_chains): Remove.
1886 (uninit_uses_cannot_happen): Rename from
1887 uninit_ops_invalidate_phi_use.
1888 Change logic so that we are checking that the PHI use will
1889 invalidate _ALL_ possibly uninitialized operands.
1890 (is_use_properly_guarded): Rename call to
1891 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
1892
1893 2016-12-06 Tamar Christina <tamar.christina@arm.com>
1894
1895 * gcc/config/aarch64/arm_neon.h
1896 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
1897 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
1898 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
1899 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
1900 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
1901 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
1902 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
1903 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
1904 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
1905 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
1906 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
1907 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
1908 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
1909 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
1910
1911 2016-12-06 Jakub Jelinek <jakub@redhat.com>
1912
1913 PR c++/71537
1914 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
1915 plus offset is non-zero. For maybe_nonzero_address decl base0,
1916 require indirect_base0.
1917
1918 PR c++/71537
1919 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
1920 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
1921 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
1922 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
1923 and arguments have no side-effects, return 0.
1924 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
1925
1926 PR c++/71537
1927 * fold-const-call.c (fold_const_call): Handle
1928 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
1929
1930 PR tree-optimization/78675
1931 * tree-vect-loop.c (vectorizable_live_operation): For
1932 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
1933 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
1934
1935 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
1936
1937 PR middle-end/78642
1938 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
1939 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
1940 (copy_insn_1) <CLOBBER>: Likewise.
1941
1942 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
1943
1944 PR target/78688
1945 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
1946 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
1947 comparing signed to unsigned values.
1948 (FUNCTION_ARG_REGNO_P): Likewise.
1949
1950 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1951 Stefan Freudenberger <stefan@reservoir.com>
1952
1953 PR tree-optimization/78646
1954 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
1955 addition used for the memory base expression should have the type
1956 of the candidate.
1957
1958 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
1959
1960 PR target/71721
1961 * config.gcc (*-*-uclinux*): Enable posix threads.
1962
1963 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
1964
1965 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
1966 * config/i386/avx512dqintrin.h: Ditto.
1967 * config/i386/avx512fintrin.h: Ditto.
1968 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
1969 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
1970 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
1971 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
1972 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
1973 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
1974 function types.
1975 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
1976 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
1977 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
1978 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
1979 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
1980 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
1981 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
1982 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
1983 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
1984
1985 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
1986
1987 * combine.c: Revert r243162.
1988
1989 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
1990
1991 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
1992 X tests a single bit.
1993
1994 2016-12-05 Nathan Sidwell <nathan@acm.org>
1995
1996 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
1997 (diagnostic_action_after_output): ... here.
1998 (diagnostic_report_diagnostic): Call it for non-notes.
1999 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
2000 (diagnostic_check_max_errors): Declare.
2001
2002 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
2003
2004 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
2005 (ENDFILE_SPEC): Likewise.
2006
2007 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
2008
2009 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
2010 * config/arc/arc.c (arc_unspec_offset): New function.
2011 (arc_finalize_pic): Change.
2012 (arc_emit_call_tls_get_addr): Likewise.
2013 (arc_legitimize_tls_address): Likewise.
2014 (arc_legitimize_pic_address): Likewise.
2015 (insn_is_tls_gd_dispatch): Remove.
2016 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
2017 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
2018 (tls_gd_dispatch): Likewise.
2019
2020 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
2021
2022 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
2023 location.
2024
2025 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
2026
2027 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
2028 (sparc_split_reg_mem_legitimate): ...this.
2029 (sparc_split_reg_mem): Declare.
2030 (sparc_split_mem_reg): Likewise.
2031 (sparc_split_regreg_legitimate): Rename to...
2032 (sparc_split_reg_reg_legitimate): ...this.
2033 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
2034 (sparc_split_reg_mem_legitimate): ...this.
2035 (sparc_split_reg_mem): New function.
2036 (sparc_split_mem_reg): Likewise.
2037 (sparc_split_regreg_legitimate): Rename to...
2038 (sparc_split_reg_reg_legitimate): ...this.
2039 (sparc_split_reg_reg): New function.
2040 * config/sparc/sparc.md (lra): Remove "none" value.
2041 (enabled): Adjust to above change.
2042 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
2043 (DImode splitters): Adjust to above renamings and use new functions.
2044 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
2045 (DFmode splitters): Adjust to above renamings and use new functions.
2046 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
2047 constraint in conjunction with e.
2048 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
2049 alternative and reorder others.
2050 (VM64:mode splitters): Adjust to above renamings and use new functions.
2051
2052 2016-12-04 Martin Sebor <msebor@redhat.com>
2053
2054 PR c/78668
2055 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
2056 identifier tree nodes.
2057 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
2058 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
2059 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
2060 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
2061 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
2062 * builtins.def (aligned_alloc, calloc, malloc, realloc):
2063 Add attribute alloc_size.
2064 (alloca): Add attribute alloc_size and returns_nonnull.
2065
2066 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
2067
2068 PR target/70322
2069 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
2070 (dimode_scalar_chain::compute_convert_gain): Ditto.
2071 (dimode_scalar_chain::convert_insn): Ditto.
2072
2073 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2074
2075 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
2076 cases to build a lowpart SUBREG.
2077
2078 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
2079 David S. Miller <davem@davemloft.net>
2080
2081 * config/sparc/constraints.md (U): Adjust comment.
2082 * config/sparc/sparc.md (lra): New attribute.
2083 (enabled): For base instructions, if the lra attribute is set,
2084 return 1 if it is in keeping with TARGET_LRA.
2085 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
2086 constraint and duplicate them with U replaced by r.
2087 (*movdf_insn_sp32): Likewise.
2088 (*mov<VM64:mode>_insn_sp32): Likewise.
2089 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
2090
2091 2016-12-02 Jeff Law <law@redhat.com>
2092
2093 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
2094 variable main_variant.
2095
2096 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2097
2098 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
2099 default on PowerPC linux systems.
2100
2101 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
2102
2103 PR rtl-optimization/78638
2104 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
2105 GET_MODE (op). Fix this.
2106
2107 2016-12-02 David Malcolm <dmalcolm@redhat.com>
2108
2109 PR bootstrap/78616
2110 * selftest.c (selftest::assert_strndup_eq): Rename to...
2111 (selftest::assert_xstrndup_eq): ...this, and remove call to
2112 strndup.
2113 (selftest::test_strndup): Rename to...
2114 (selftest::test_xstrndup): ...this, updating for above renaming.
2115 (selftest::test_libiberty): Update for renaming.
2116
2117 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
2118
2119 PR target/78639
2120 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
2121 subversion id 242679 that causes the wrong store instruction to be
2122 generated if a DImode is in an Altivec register using REG+REG
2123 addressing.
2124
2125 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2126
2127 PR target/70322
2128 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
2129 and corresponding post-reload splitter.
2130
2131 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2132
2133 * config/aarch64/aarch64.h (machine_function): Add
2134 reg_is_wrapped_separately field.
2135 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
2136 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
2137 rtx_insn *.
2138 (aarch64_save_callee_saves): Don't save registers that are wrapped
2139 separately.
2140 (aarch64_restore_callee_saves): Don't restore registers that are
2141 wrapped separately.
2142 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
2143 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
2144 (aarch64_get_separate_components): New function.
2145 (aarch64_get_next_set_bit): Likewise.
2146 (aarch64_components_for_bb): Likewise.
2147 (aarch64_disqualify_components): Likewise.
2148 (aarch64_emit_prologue_components): Likewise.
2149 (aarch64_emit_epilogue_components): Likewise.
2150 (aarch64_set_handled_components): Likewise.
2151 (aarch64_process_components): Likewise.
2152 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2153 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2154 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2155 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2156 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2157 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2158
2159 2016-12-02 Martin Jambor <mjambor@suse.cz>
2160
2161 * passes.def: Move pass_rebuild_cgraph_edges to the end of
2162 pass_build_ssa_passes.
2163
2164 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
2165
2166 * config/alpha/alpha.md (exception_receiver): Copy
2167 alpha_gp_ave_rtx return value.
2168
2169 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
2170
2171 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
2172 for several include directories that may be relative to sysroot.
2173 * config/i386/x-mingw32 (gplus_includedir): Define.
2174 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
2175 (native_system_includedir): Likewise.
2176 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
2177 override if TARGET_SYSTEM_ROOT is defined.
2178 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
2179
2180 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2181
2182 PR target/70322
2183 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
2184 (dimode_scalar_chain::compute_convert_gain): Likewise.
2185 (dimode_scalar_chain::convert_insn): Likewise.
2186 * config/i386/i386.md (*one_cmpldi2_doubleword): New
2187 define_insn_and_split.
2188 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
2189
2190 PR target/78614
2191 * rtl.c (copy_rtx): Don't clear used flag here.
2192 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
2193 is shareable.
2194 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
2195 'E' in format, copy all vectors.
2196 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
2197 * valtrack.c (cleanup_auto_inc_dec): Likewise.
2198 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
2199
2200 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2201 Thomas Preud'homme <thomas.preudhomme@arm.com>
2202
2203 * config/arm/arm-builtins.c (arm_builtins): Define
2204 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
2205 (bdesc_2arg): Add line for cmse_nonsecure_caller.
2206 (arm_init_builtins): Handle cmse_nonsecure_caller.
2207 (arm_expand_builtin): Likewise.
2208 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
2209
2210 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2211 Thomas Preud'homme <thomas.preudhomme@arm.com>
2212
2213 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
2214 (cmse_nonsecure_call_clear_caller_saved): New.
2215 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
2216 (arm_function_ok_for_sibcall): Disable sibcalls for
2217 cmse_nonsecure_call.
2218 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
2219 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
2220 (call_value): Likewise.
2221 (nonsecure_call_internal): New.
2222 (nonsecure_call_value_internal): New.
2223 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
2224 (*nonsecure_call_value_reg_thumb1_v5): New.
2225 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
2226 (*nonsecure_call_value_reg_thumb2): New.
2227 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
2228
2229 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2230 Thomas Preud'homme <thomas.preudhomme@arm.com>
2231
2232 * config/arm/arm.c (gimplify.h): New include.
2233 (arm_handle_cmse_nonsecure_call): New.
2234 (arm_attribute_table): Added cmse_nonsecure_call.
2235 (arm_comp_type_attributes): Deny compatibility of function types
2236 with without the cmse_nonsecure_call attribute.
2237 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2238
2239 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2240 Thomas Preud'homme <thomas.preudhomme@arm.com>
2241
2242 * config/arm/arm.c (output_return_instruction): Clear
2243 registers.
2244 (thumb2_expand_return): Likewise.
2245 (thumb1_expand_epilogue): Likewise.
2246 (thumb_exit): Likewise.
2247 (arm_expand_epilogue): Likewise.
2248 (cmse_nonsecure_entry_clear_before_return): New.
2249 (comp_not_to_clear_mask_str_un): New.
2250 (compute_not_to_clear_mask): New.
2251 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
2252 * config/arm/thumb2.md (*thumb2_return): Disable for
2253 cmse_nonsecure_entry functions.
2254 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
2255 cmse_nonsecure_entry functions.
2256
2257 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2258 Thomas Preud'homme <thomas.preudhomme@arm.com>
2259
2260 * config/arm/arm.c (use_return_insn): Change to return with bxns
2261 when cmse_nonsecure_entry.
2262 (output_return_instruction): Likewise.
2263 (arm_output_function_prologue): Likewise.
2264 (thumb_pop): Likewise.
2265 (thumb_exit): Likewise.
2266 (thumb2_expand_return): Assert that entry functions always have simple
2267 returns.
2268 (arm_expand_epilogue): Handle entry functions.
2269 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
2270 (arm_asm_declare_function_name): New.
2271 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
2272 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
2273 use arm_asm_declare_function_name.
2274
2275 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2276 Thomas Preud'homme <thomas.preudhomme@arm.com>
2277
2278 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
2279 (arm_attribute_table): Added cmse_nonsecure_entry
2280 (arm_compute_func_type): Handle cmse_nonsecure_entry.
2281 (cmse_func_args_or_return_in_stack): New.
2282 (arm_handle_cmse_nonsecure_entry): New.
2283 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
2284 (IS_CMSE_ENTRY): Likewise.
2285 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
2286
2287 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
2288 Thomas Preud'homme <thomas.preudhomme@arm.com>
2289
2290 * config.gcc (extra_headers): Added arm_cmse.h.
2291 * config/arm/arm-arches.def (ARM_ARCH):
2292 (armv8-m): Add FL2_CMSE.
2293 (armv8-m.main): Likewise.
2294 (armv8-m.main+dsp): Likewise.
2295 * config/arm/arm-c.c
2296 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
2297 * config/arm/arm-flags.h: Define FL2_CMSE.
2298 * config/arm.c (arm_arch_cmse): New.
2299 (arm_option_override): New error for unsupported cmse target.
2300 * config/arm/arm.h (arm_arch_cmse): New.
2301 * config/arm/arm.opt (mcmse): New.
2302 * config/arm/arm_cmse.h: New file.
2303 * doc/invoke.texi (ARM Options): Add -mcmse.
2304 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
2305 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
2306
2307 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2308
2309 * config/avr/avr.c: Fix coding rule glitches.
2310
2311 2016-12-02 Martin Jambor <mjambor@suse.cz>
2312
2313 * hsa.c (hsa_callable_function_p): Return false for artificial
2314 functions.
2315
2316 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2317
2318 PR rtl-optimization/78561
2319 * varasm.c (recompute_pool_offsets): New.
2320 (output_constant_pool): Call it.
2321
2322 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
2323
2324 PR rtl-optimization/78561
2325 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
2326 get_pool_size to get_pool_size_upper_bound.
2327 (rs6000_stack_info): Likewise.
2328 (rs6000_emit_prologue): Likewise.
2329 (rs6000_elf_declare_function_name): Likewise.
2330 (rs6000_set_up_by_prologue): Likewise.
2331 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
2332 * output.h (get_pool_size): Rename to...
2333 (get_pool_size_upper_bound): ...This.
2334 * varasm.c (get_pool_size): Rename to...
2335 (get_pool_size_upper_bound): ...This.
2336
2337 2016-12-02 Bin Cheng <bin.cheng@arm.com>
2338
2339 * match.pd: Add new pattern:
2340 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
2341
2342 2016-12-02 Nathan Sidwell <nathan@acm.org>
2343
2344 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
2345 braces.
2346
2347 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
2348
2349 PR middle-end/78328
2350 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
2351 VR_ANTI_RANGE.
2352
2353 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2354
2355 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
2356 problem.
2357
2358 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2359
2360 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
2361 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
2362 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
2363 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
2364 avr_mcu_types.flash_size to compute default value.
2365 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
2366 mcu->flash_size to compute value for spec.
2367
2368 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
2369
2370 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
2371 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
2372 about linker description to avoid progmem altogether.
2373 [absdata]: Point to -mabsdata option.
2374
2375 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2376
2377 PR rtl-optimization/78547
2378 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
2379 DECL_INCOMING_RTL is not shared.
2380 * config/i386/i386.c (convert_scalars_to_vectors): If any
2381 insns have been converted, adjust all parameter's DEC_RTL and
2382 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
2383 TImode.
2384
2385 PR rtl-optimization/78575
2386 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
2387 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
2388 if not already wrapped in a subreg. Make sure df_insn_rescan does not
2389 affect further iterations.
2390
2391 2016-12-02 Martin Liska <mliska@suse.cz>
2392
2393 PR ipa/78555
2394 * sreal.c (sreal::to_int): Make absolute value before shifting.
2395 (sreal::operator/): Likewise.
2396 (sreal_verify_negative_division): New test.
2397 (void sreal_c_tests): Call the new test.
2398 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
2399 SREAL_SIGN macros.
2400 (sreal::normalize_down): Likewise.
2401
2402 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2403
2404 * combine.c (combine_simplify_rtx): Suppress replacement of
2405 "(and (reg) (const_int bit))" with "if_then_else".
2406
2407 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2408
2409 PR target/77822
2410 * config/s390/s390.md ("extzv")
2411 ("*extzv<mode><clobbercc_or_nocc>")
2412 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
2413 ("*<risbg_n>_ior_and_sr_ze")
2414 ("*extract1bitdi<clobbercc_or_nocc>")
2415 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
2416 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
2417 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
2418 to validate the arguments of zero_extract and sign_extract.
2419
2420 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
2421
2422 PR target/77822
2423 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
2424
2425 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2426
2427 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
2428 function.
2429 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
2430 macro.
2431
2432 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2433
2434 * config/s390/vector.md (vec_halfhalf): New mode iterator.
2435 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
2436 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
2437 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
2438 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
2439 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
2440 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
2441 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
2442 ("vec_unpacku_lo_v4si"): New pattern definitions.
2443 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
2444 vector.md.
2445
2446 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2447
2448 * config/s390/s390-protos.h (s390_reverse_condition): New
2449 prototype.
2450 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
2451 of CC mode values.
2452 (s390_reverse_condition): New function.
2453 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
2454 target macros.
2455
2456 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2457
2458 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2459 (CCVHUANY): Remove modes.
2460 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2461 documentation.
2462 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2463 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2464 modes.
2465 (s390_branch_condition_mask): Adjust to use the new cc consumer
2466 modes. The new modes allow for proper reversal in the middle-end.
2467 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2468 consumer modes for a comparison.
2469 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2470 throughout the file.
2471 * config/s390/vx-builtins.md: Likewise.
2472
2473 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2474
2475 * asan.c (asan_global_struct): Refactor.
2476 (create_odr_indicator): New function.
2477 (asan_needs_odr_indicator_p): Likewise.
2478 (is_odr_indicator): Likewise.
2479 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
2480 constructor.
2481 (asan_protect_global): Do not protect odr indicators.
2482
2483 2016-12-01 Jeff Law <law@redhat.com>
2484
2485 * tree-ssa-threadedge.c
2486 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
2487 propagation of operands if there are no operands.
2488
2489 2016-12-02 Jakub Jelinek <jakub@redhat.com>
2490
2491 PR tree-optimization/78586
2492 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
2493 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
2494 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
2495 type is INTEGER_TYPE or POINTER_TYPE.
2496
2497 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
2498
2499 PR target/78577
2500 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
2501 (vextuhrx): Likewise.
2502 (vextuwlx): Likewise.
2503 (vextuwrx): Likewise.
2504
2505 2016-12-01 David Malcolm <dmalcolm@redhat.com>
2506
2507 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
2508 early_dwarf_finished.
2509
2510 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
2511 David S. Miller <davem@davemloft.net>
2512
2513 * config/sparc/sparc.opt (mlra): New target option.
2514 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
2515 (sparc_lra_p): ...this. New function.
2516 (D_MODES, DF_MODES): Add missing cast.
2517 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2518 provide these insns when flag_pic.
2519 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
2520 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
2521 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
2522 embmedany_textulo, embmedany_textlo): Likewise.
2523 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
2524
2525 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
2526
2527 PR debug/66419
2528 PR c++/78235
2529 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
2530
2531 2016-12-01 Richard Biener <rguenther@suse.de>
2532 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2533
2534 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
2535 memset if len-oldlen != 0.
2536 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
2537
2538 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
2539
2540 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
2541
2542 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2543
2544 * config/avr/avr.c: Fix coding rule glitches.
2545
2546 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2547
2548 PR tree-optimization/78598
2549 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
2550 overflows.
2551
2552 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
2553
2554 PR rtl-optimization/78596
2555 * combine.c (simplify_comparison): Cast to unsigned to avoid
2556 left shifting of negative value.
2557
2558 2016-12-01 Matthias Klose <doko@ubuntu.com>
2559
2560 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
2561
2562 2016-12-01 Richard Biener <rguenther@suse.de>
2563
2564 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
2565 treat arrays with same type as objects that cannot overlap.
2566
2567 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
2568
2569 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
2570 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
2571 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
2572
2573 2016-12-01 Jakub Jelinek <jakub@redhat.com>
2574
2575 PR debug/78587
2576 * dwarf2out.c (loc_descr_plus_const): For negative offset use
2577 uint_loc_descriptor instead of int_loc_descriptor and perform negation
2578 in unsigned HOST_WIDE_INT type.
2579 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
2580
2581 PR target/78614
2582 * config/rs6000/rs6000.c (rs6000_frame_related): Call
2583 set_used_flags (pat) before any simplifications. Clear used flag on
2584 PARALLEL copy. Don't guard add_reg_note call. Call
2585 copy_rtx_if_shared on pat before storing it into
2586 REG_FRAME_RELATED_EXPR.
2587
2588 2016-12-01 Alan Modra <amodra@gmail.com>
2589
2590 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2591 look inside UNSPEC_VSX_XXSPLTW vec.
2592
2593 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
2594
2595 PR rtl-optimization/78607
2596 * combine.c (try_combine): Emit a barrier after a unconditional trap.
2597
2598 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2599
2600 PR target/78602
2601 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
2602 element is not a constant or in a register, force it to a
2603 register.
2604
2605 PR target/78560
2606 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
2607 that will be set to a vector element to be in a register.
2608 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
2609 the wrong multiplier to convert the element number to a byte
2610 offset.
2611
2612 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
2613
2614 PR tree-optimization/77856
2615 * lra-constraints.c (inherit_in_ebb): Check original regno for
2616 invalid invariant regs too. Set only clobbered hard regs for the
2617 invalid invariant regs.
2618
2619 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2620
2621 Commit files forgotten in r242966.
2622
2623 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
2624 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
2625 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
2626 prefix check to find wrap-around value, instead use MCU flash size.
2627 For 8k flash devices, update link_pmem_wrap spec string to
2628 add --pmem-wrap-around=8k.
2629 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
2630 here...
2631 (LINK_SPEC): ...to here.
2632
2633 2016-11-30 David Malcolm <dmalcolm@redhat.com>
2634
2635 PR c/78498
2636 * selftest.c (selftest::assert_strndup_eq): New function.
2637 (selftest::test_strndup): New function.
2638 (selftest::test_libiberty): New function.
2639 (selftest::selftest_c_tests): Call test_libiberty.
2640
2641 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2642
2643 PR rtl-optimization/78610
2644 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
2645 instructions.
2646
2647 2016-11-30 Bin Cheng <bin.cheng@arm.com>
2648
2649 PR tree-optimization/78574
2650 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
2651 header PHI that doesn't define biv.
2652
2653 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2654
2655 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
2656 reset_used_flags.
2657
2658 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
2659 sharing the SUBREG rtx between move and following insn.
2660
2661 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
2662 for REG_EQUIV argument.
2663
2664 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
2665
2666 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
2667
2668 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2669
2670 PR ipa/78555
2671 * real.c (real_hash): Add cast to avoid left
2672 shifting of negative values.
2673
2674 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2675
2676 PR target/78362
2677 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
2678 from a subreg in operands[1] and don't call REGNO on a non-reg
2679 expression when deciding to force operands[2] into a reg.
2680
2681 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
2682 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
2685 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
2686 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
2687 * config/arc/arc700.md: Add define_bypass for store/load.
2688
2689 2016-11-30 Martin Liska <mliska@suse.cz>
2690
2691 * cgraph.c (symbol_table::initialize): Initialize
2692 ipa_clones_dump_file.
2693 (cgraph_node::remove): Report to ipa_clones_dump_file.
2694 * cgraph.h: Add new argument (suffix) to cloning methods.
2695 * cgraphclones.c (dump_callgraph_transformation): New function.
2696 (cgraph_node::create_clone): New argument.
2697 (cgraph_node::create_virtual_clone): Likewise.
2698 (cgraph_node::create_version_clone): Likewise.
2699 * dumpfile.c: Add .ipa-clones dump file.
2700 * dumpfile.h (enum tree_dump_index): Add TDI_clones
2701 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
2702 to dump_callgraph_transformation.
2703
2704 2016-11-30 Martin Liska <mliska@suse.cz>
2705
2706 PR sanitizer/78541
2707 * asan.c (asan_expand_mark_ifn): Properly
2708 select a VAR_DECL from FRAME.* component reference.
2709
2710 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2711
2712 PR rtl-optimization/78583
2713 * simplify-rtx.c (simplify_truncation): Add check missing from the
2714 previous commit.
2715
2716 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
2717
2718 PR rtl-optimization/78590
2719 * combine.c (change_zero_ext): Transform zero_extend of subregs only
2720 if the subreg_reg is a scalar integer mode.
2721
2722 2016-11-30 Jakub Jelinek <jakub@redhat.com>
2723
2724 PR tree-optimization/78586
2725 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
2726 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
2727 Don't build_int_cst min/max twice. Formatting fix.
2728
2729 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2730
2731 PR rtl-optimization/78588
2732 * combine.c (if_then_else_cond): Also guard against BLKmode.
2733 * rtlanal.c (num_sign_bit_copies1): Add assert.
2734
2735 2016-11-29 Jeff Law <law@redhat.com>
2736
2737 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
2738 variables.
2739
2740 * lra-constraints.c (check_and_process_move): Constrain the
2741 range of DCLASS and SCLASS to avoid false positive out of bounds
2742 array index warning.
2743
2744 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2745
2746 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
2747
2748 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2749
2750 PR preprocessor/78569
2751 * input.c (get_substring_ranges_for_loc): Fail gracefully if
2752 line directives were present.
2753
2754 2016-11-30 Matthias Klose <doko@ubuntu.com>
2755
2756 * doc/install.texi: Document configure options --enable-objc-gc
2757 and --with-target-bdw-gc.
2758
2759 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2760
2761 PR target/78594
2762 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
2763 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
2764 residing in traditional altivec registers can be stored
2765 correctly.
2766
2767 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
2768
2769 PR target/78603
2770 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
2771 overhead loop start between a call and its CALL_ARG_LOCATION
2772 note.
2773
2774 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
2775
2776 * config/bfin/linux.h (CPP_SPEC): Define.
2777
2778 2016-11-29 Martin Sebor <msebor@redhat.com>
2779
2780 PR tree-optimization/78512
2781 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
2782 * config/rs6000/linux.h: Same.
2783 * config/rs6000/linux64.h: Same.
2784 * config/sol2.h: Same.
2785 * config/sol2.c (solaris_printf_pointer_format): Remove.
2786 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
2787 * doc/tm.texi: Regenerate.
2788 * gimple-ssa-sprintf.c (format_pointer): Rempove.
2789 (pass_sprintf_length::compute_format_length): Return bool.
2790 (pass_sprintf_length::handle_gimple_call): Adjust.
2791 * target.def (printf_pointer_format): Remove.
2792 * targhooks.c (default_printf_pointer_format): Remove.
2793 (linux_printf_pointer_format): Same.
2794 * targhooks.h (default_printf_pointer_format): Remove.
2795 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
2796
2797 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
2798
2799 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
2800 (mshift): Ditto.
2801 (SWI1248_AVX512BWDQ): Ditto.
2802 (SWI1248_AVX512BW): Ditto.
2803 (k<any_logic:code><mode>): Ditto.
2804 (kandn<mode>): Ditto.
2805 (kxnor<mode>): Ditto.
2806 (knot<mode>): Ditto.
2807 (*k<any_lshift:code><mode>): Ditto.
2808 (kortestzhi, kortestchi): Ditto.
2809 (kunpckhi, kunpcksi, kunpckdi): Ditto.
2810
2811 2016-11-29 Andrew Pinski <apinski@cavium.com>
2812
2813 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
2814 for the EQ_EXPR.
2815
2816 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
2817
2818 PR target/71331
2819 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
2820 to stack before call mcount.
2821 (tilegx_can_use_return_insn_p): Clean up code.
2822
2823 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2824
2825 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
2826
2827 2016-11-29 David Malcolm <dmalcolm@redhat.com>
2828
2829 PR c++/72774
2830 PR c++/72786
2831 PR c++/77922
2832 PR c++/78313
2833 * spellcheck.c (selftest::test_find_closest_string): Verify that
2834 we don't offer the goal string as a suggestion.
2835 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
2836 offer the goal string as a suggestion.
2837
2838
2839 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2840
2841 * config/arc/arc.c (arc_override_options): Avoid selection of
2842 compact casesi for ARCv2.
2843
2844 2016-11-29 Richard Biener <rguenther@suse.de>
2845
2846 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
2847 PHIs after a regular stmt.
2848 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
2849 start a new BB.
2850
2851 2016-11-29 Martin Liska <mliska@suse.cz>
2852
2853 PR gcov-profile/78582
2854 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
2855 to prevent PHI argument clash.
2856
2857 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
2858
2859 * config/arc/arc.opt (marclinux): Fix typo.
2860 (marclinux_prof): Likewise.
2861
2862 2016-11-29 Jiong Wang <jiong.wang@arm.com>
2863
2864 * target.def (stack_protect_runtime_enabled_p): New.
2865 * function.c (expand_function_end): Guard stack_protect_epilogue with
2866 targetm.stack_protect_runtime_enabled_p.
2867 * cfgexpand.c (pass_expand::execute): Likewise.
2868 * calls.c (expand_call): Likewise.
2869 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
2870 * doc/tm.texi: Regenerate.
2871
2872 2016-11-29 Richard Biener <rguenther@suse.de>
2873
2874 PR middle-end/78546
2875 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
2876
2877 2016-11-29 Janus Weil <janus@gcc.gnu.org>
2878
2879 * doc/contrib.texi: Add a few missing gfortran contributors.
2880
2881 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2882
2883 * combine.c (change_zero_ext): Also handle extends from a subreg
2884 to a mode bigger than that of the operand of the subreg.
2885
2886 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
2887
2888 PR target/77687
2889 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
2890 stack_restore_tie insn instead of stack_tie, for the SVR4 and
2891 SPE ABIs.
2892 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
2893
2894 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2895
2896 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
2897 head_components and tail_components.
2898 (spread_components): New algorithm.
2899 (emit_common_tails_for_components): Clear head_components and
2900 tail_components.
2901 (insert_prologue_epilogue_for_components): Write extra output to the
2902 dump file for sibcalls and abnormal exits.
2903
2904 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2905
2906 PR rtl-optimization/78342
2907 * combine.c: Include "cfghooks.h".
2908 (try_combine): If we create an unconditional trap, break the basic
2909 block in two just after it, and remove the edge between; also, set
2910 the *new_direct_jump_p flag so that cleanup_cfg is run.
2911
2912 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
2913
2914 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
2915 and sign_extract.
2916
2917 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2918
2919 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
2920 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
2921 output template string.
2922 (*anddi_1): Use multi-line output template string.
2923 (*andqi_1): Ditto.
2924
2925 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2926
2927 PR middle-end/78540
2928 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2929 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2930 note has been removed.
2931 * postreload.c (reload_combine_recognize_pattern): If
2932 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2933
2934 2016-11-28 Martin Sebor <msebor@redhat.com>
2935
2936 PR middle-end/78520
2937 * gimple-ssa-sprintf.c (target_max_value): Remove.
2938 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
2939 (get_width_and_precision): New function.
2940 (format_integer, format_floating, get_string_length, format_string):
2941 Correct handling of width and precision with unknown value.
2942 (format_directive): Add warning.
2943 (pass_sprintf_length::compute_format_length): Allow for precision
2944 to consist of a sole period with no asterisk or digits after it.
2945
2946 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2947
2948 PR rtl-optimization/78546
2949 * simplify-rtx.c (neg_const_int): When negating most negative
2950 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2951 simplify_const_unary_operation to produce CONST_DOUBLE or
2952 CONST_WIDE_INT.
2953 (simplify_plus_minus): Handle the case where neg_const_int
2954 doesn't return a CONST_INT.
2955
2956 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
2957
2958 PR target/78556
2959 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
2960 left shifting of negative values.
2961
2962 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2963
2964 PR fortran/78298
2965 * tree-nested.c (convert_local_reference_stmt): After adding
2966 shared (FRAME.NN) clause to omp parallel, task or target,
2967 add it also to all outer omp parallel, task or target constructs.
2968
2969 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
2970
2971 * config/i386/i386.md (UNSPEC_KMASKOP): New.
2972 (UNSPEC_KMOV): Remove.
2973 (kmovw): Expand to plain HImode move.
2974 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
2975 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
2976 Remove corresponding clobber-removing splitter.
2977 (*anddi_1): Remove mask register alternatives.
2978 (*andsi_1): Ditto.
2979 (*andhi_1): Ditto.
2980 (*andqi_1): Ditto.
2981 (*<any_or:code><mode>_1): Ditto.
2982 (*<any_or:code>qi_1): Ditto.
2983 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
2984 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
2985 Remove corresponding splitter to operation with general registers.
2986 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
2987 (*andn<SWI12:mode>): New pattern.
2988 (*kxnor<mode>): Remove general register alternatives. Tag pattern
2989 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
2990 with general registers.
2991 (knot<mode>): New insn pattern.
2992 (*one_cmpl<mode>2_1): Remove mask register alternatives.
2993 (one_cmplqi2_1): Ditto.
2994 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
2995 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
2996 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
2997 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
2998 to generate kmaskop shift.
2999 (vec_unpacks_hi_<mode>): Ditto.
3000 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
3001 Use CODE_FOR_kandhi.
3002 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
3003 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
3004 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
3005
3006 2016-11-28 Richard Biener <rguenther@suse.de>
3007
3008 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
3009 to SSA names via extract_range_from_ssa_name if allowed.
3010
3011 2016-11-28 Richard Biener <rguenther@suse.de>
3012
3013 PR tree-optimization/78542
3014 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
3015 if allowed.
3016
3017 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
3018
3019 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
3020 isolates a single bit, even if the condition involves subregs.
3021
3022 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3023
3024 * config/aarch64/aarch64-simd-builtins.def
3025 (BSL_P): Added di and v2di mode.
3026 * config/aarch64/arm_neon.h
3027 (vsriq_n_p64, vsri_n_p64): Added poly type.
3028 (vextq_p64, vext_p64): Likewise.
3029 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
3030
3031 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3032
3033 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
3034 (TYPES_GETREGP): Likewise.
3035 (TYPES_SHIFTINSERTP): Likewise.
3036 (TYPES_COMBINEP): Likewise.
3037 (TYPES_STORE1P): Likewise.
3038 * config/aarch64/aarch64-simd-builtins.def
3039 (combine): Added poly generator.
3040 (get_dregoi): Likewise.
3041 (get_dregci): Likewise.
3042 (get_dregxi): Likewise.
3043 (ssli_n): Likewise.
3044 (ld1): Likewise.
3045 (st1): Likewise.
3046 * config/aarch64/arm_neon.h
3047 (poly64x1x2_t, poly64x1x3_t): New.
3048 (poly64x1x4_t, poly64x2x2_t): Likewise.
3049 (poly64x2x3_t, poly64x2x4_t): Likewise.
3050 (poly64x1_t): Likewise.
3051 (vcreate_p64, vcombine_p64): Likewise.
3052 (vdup_n_p64, vdupq_n_p64): Likewise.
3053 (vld2_p64, vld2q_p64): Likewise.
3054 (vld3_p64, vld3q_p64): Likewise.
3055 (vld4_p64, vld4q_p64): Likewise.
3056 (vld2_dup_p64, vld3_dup_p64): Likewise.
3057 (vld4_dup_p64, vsli_n_p64): Likewise.
3058 (vsliq_n_p64, vst1_p64): Likewise.
3059 (vst1q_p64, vst2_p64): Likewise.
3060 (vst3_p64, vst4_p64): Likewise.
3061 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
3062 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
3063 (vget_lane_p64, vgetq_lane_p64): Likewise.
3064 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
3065 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
3066 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
3067 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
3068 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
3069 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
3070 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
3071 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
3072 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
3073 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
3074 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
3075 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
3076 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
3077 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
3078 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
3079 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
3080 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
3081 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
3082 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
3083 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
3084 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
3085 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
3086 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
3087 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
3088 (vset_lane_p64, vsetq_lane_p64): Likewise.
3089 (vget_low_p64, vget_high_p64): Likewise.
3090 (vcombine_p64, vst2_lane_p64): Likewise.
3091 (vst3_lane_p64, vst4_lane_p64): Likewise.
3092 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
3093 (vst4q_lane_p64, vget_lane_p64): Likewise.
3094 (vget_laneq_p64, vset_lane_p64): Likewise.
3095 (vset_laneq_p64, vcopy_lane_p64): Likewise.
3096 (vcopy_laneq_p64, vdup_n_p64): Likewise.
3097 (vdupq_n_p64, vdup_lane_p64): Likewise.
3098 (vdup_laneq_p64, vld1_p64): Likewise.
3099 (vld1q_p64, vld1_dup_p64): Likewise.
3100 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
3101 (vmov_n_p64, vmovq_n_p64): Likewise.
3102 (vst3q_p64, vst4q_p64): Likewise.
3103 (vld1_lane_p64, vld1q_lane_p64): Likewise.
3104 (vst1_lane_p64, vst1q_lane_p64): Likewise.
3105 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
3106 (vdupq_laneq_p64): Likewise.
3107
3108 2016-11-28 Tamar Christina <tamar.christina@arm.com>
3109
3110 * config/arm/arm_neon.h (vget_lane_p64): New.
3111
3112 2016-11-28 Iain Sandoe <iain@codesourcery.com>
3113
3114 PR target/71767
3115 * configure.ac (with_ld64): Use portable method to extract the
3116 major part of the version number.
3117 * configure: Regenerated.
3118
3119 2016-11-28 Jakub Jelinek <jakub@redhat.com>
3120
3121 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
3122 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
3123 intmax_t couldn't be determined.
3124 (format_integer): Make {,u}intmax_type_node no longer static,
3125 initialize them only when needed. For z and t use
3126 signed_or_unsigned_type_for instead of assuming size_t and
3127 ptrdiff_t have the same precision.
3128
3129 PR lto/78211
3130 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
3131 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
3132 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
3133 vector instead of traversing m_classes hash table. Release
3134 m_classes_vec.
3135 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
3136 Formatting fixes.
3137 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
3138 add it also to m_classes_vec vector.
3139 (sem_item_optimizer::remove_symtab_node,
3140 sem_item_optimizer::build_hash_based_classes,
3141 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
3142 (sem_item_optimizer::subdivide_classes_by_equality,
3143 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
3144 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
3145 instead of traversing m_classes hash table. Formatting fixes.
3146 (sem_item_optimizer::traverse_congruence_split,
3147 sem_item_optimizer::do_congruence_step_for_index,
3148 sem_item_optimizer::do_congruence_step): Formatting fixes.
3149 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
3150 vector instead of traversing m_classes hash table.
3151 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
3152 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
3153 instead of traversing m_classes hash table.
3154
3155 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3156
3157 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
3158 X is not unused after.
3159
3160 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
3161
3162 PR rtl-optimization/78120
3163 * rtlanal.c (insn_rtx_cost): Revert previous change.
3164
3165 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
3166
3167 PR 41076
3168 * config/avr/avr.md (SPLIT34): New mode iterator.
3169 (bitop): New code iterator.
3170 (*iorhi3.ashift8-*). New insn-and-split patterns.
3171 (*movhi): Post-reload split reg = 0.
3172 [!MOVW]: Post-reload split reg = reg.
3173 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
3174 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
3175 (iorhi3, iorpsi3, iorsi3): Same.
3176 (xorhi3, xorpsi3, xorsi3): Same.
3177 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
3178 costs to *iorhi3.ashift8-* patterns.
3179
3180 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3181 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3182
3183 PR target/67710
3184 * config.in: Regenerate
3185 * config/darwin-driver.c (darwin_driver_init): Emit a version string
3186 for the assembler.
3187 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
3188 * config/darwin.opt(asm_macosx_version_min): New.
3189 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
3190 * configure: Regenerate
3191 * configure.ac: Check for mmacosx-version-min handling.
3192
3193 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3194
3195 PR target/57438
3196 * config/i386/i386.c (ix86_code_end): Note that we emitted code
3197 where the function might otherwise appear empty for picbase thunks.
3198 (ix86_output_function_epilogue): If we find a zero-sized function
3199 assume that reaching it is UB and trap. If we find a trailing label
3200 append a nop.
3201 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
3202 find a zero-sized function assume that reaching it is UB and trap.
3203 If we find a trailing label, append a nop.
3204
3205 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3206
3207 PR target/71767
3208 * config/darwin-sections.def (picbase_thunk_section): New.
3209 * config/darwin.c (darwin_init_sections): Set up picbase thunk
3210 section. (darwin_rodata_section, darwin_objc2_section,
3211 machopic_select_section, darwin_asm_declare_constant_name,
3212 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
3213 coalesced with newer linkers.
3214 (darwin_override_options): Decide on usage of coalesed sections
3215 on the basis of the target linker version.
3216 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
3217 * config/darwin.opt (mtarget-linker): New.
3218 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
3219 a coalesced section, instead use a thunks section.
3220
3221 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3222
3223 PR target/71767
3224 * configure.ac (with-ld64): New var, set for Darwin, set on
3225 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
3226 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
3227 * config/darwin10.h(DEF_LD64): Update for this target version.
3228 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
3229 (DEF_LD64): Update for this target version.
3230 * configure: Regenerated.
3231 * config.in: Regenerated.
3232
3233 2016-11-27 Iain Sandoe <iain@codesourcery.com>
3234
3235 PR target/71767
3236 * config/darwin.c (imachopic_indirection_name): Make data
3237 section indirections linker-visible.
3238 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
3239 constant labels linker-visible.
3240
3241 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3242
3243 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
3244 (free_lang_data): Remove assignment to ptrdiff_type_node.
3245
3246 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3247
3248 PR rtl-optimization/78526
3249 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
3250 beyond val's precision.
3251
3252 PR rtl-optimization/78527
3253 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
3254 out of bounds shift count.
3255
3256 2016-11-25 Martin Liska <mliska@suse.cz>
3257
3258 PR web/71666
3259 * doc/invoke.texi (-fprofile-use): Fix reference to a section
3260 where -fprofile-generate is documented.
3261
3262 2016-11-25 Martin Liska <mliska@suse.cz>
3263
3264 PR gcov-profile/78086
3265 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
3266 not supported by a target. Set priority to 100 if possible.
3267 (build_gcov_exit_decl): Likewise.
3268
3269 2016-11-25 Richard Biener <rguenther@suse.de>
3270
3271 PR ipa/78515
3272 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
3273 unary, binary and single RHSs.
3274 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
3275
3276 2016-11-25 Bin Cheng <bin.cheng@arm.com>
3277
3278 PR middle-end/78507
3279 PR middle-end/78510
3280 PR middle-end/78517
3281 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
3282 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
3283 and set it to result code if transformation is valid. Use code EQ
3284 directly in last simplification case.
3285
3286 2016-11-25 Richard Biener <rguenther@suse.de>
3287
3288 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
3289 before valueizing return stmts.
3290
3291 2016-11-24 Richard Biener <rguenther@suse.de>
3292
3293 PR tree-optimization/78343
3294 * passes.def: Add CD-DCE pass after loop splitting.
3295 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
3296 SCEV init/finalize ...
3297 (perform_tree_ssa_dce): ... here. Deal with being
3298 executed inside the loop pipeline in aggressive mode.
3299
3300 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3301
3302 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
3303
3304 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
3305
3306 PR tree-optimization/77673
3307 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
3308 (init_symbolic_number): Initialize src field from src parameter.
3309 (perform_symbolic_merge): Select most dominated statement as the
3310 source statement. Set src field of resulting n structure from the
3311 input src with the lowest address.
3312 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
3313 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
3314 of load from src field rather than insertion statement. Cancel
3315 optimization if statement analyzed is not dominated by the insertion
3316 statement.
3317 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
3318 dominance information.
3319
3320 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
3321
3322 PR ada/67205
3323 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3324
3325 2016-11-25 Martin Jambor <mjambor@suse.cz>
3326
3327 PR tree-optimization/70965
3328 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
3329
3330 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
3331
3332 PR target/78509
3333 * config/i386/i386.c (i386_excess_precision): Do not return
3334 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3335 EXCESS_PRECISION_TYPE_STANDARD.
3336 * target.def (excess_precision): Document that targets should
3337 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
3338 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
3339 Fix typo in first sentence.
3340 * doc/tm.texi: Regenerate.
3341
3342 2016-11-25 Richard Biener <rguenther@suse.de>
3343
3344 PR tree-optimization/78396
3345 * tree-vectorizer.c (vectorize_loops): When the if-converted
3346 body contains masked loads or stores do not attempt to
3347 basic-block-vectorize it.
3348
3349 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3350 Alan Hayward <alan.hayward@arm.com>
3351 David Sherwood <david.sherwood@arm.com>
3352
3353 * function.h (spill_slot_alignment): Declare.
3354 * function.c (spill_slot_alignment): New function.
3355 * lra-spills.c (slot): Add align and size fields.
3356 (assign_mem_slot): Use them in the call to assign_stack_local.
3357 (add_pseudo_to_slot): Update the fields.
3358 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
3359
3360 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3361 Alan Hayward <alan.hayward@arm.com>
3362 David Sherwood <david.sherwood@arm.com>
3363
3364 * stor-layout.c (layout_type): Allow the caller to set the mode of
3365 a float type. Only choose one here if the mode is still VOIDmode.
3366 * tree.c (build_common_tree_nodes): Set the type mode of decimal
3367 floats before calling layout_type.
3368 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3369
3370 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
3371
3372 * tree-tailcall.c (find_tail_calls): Allow calls to reference
3373 local variables if all references are known to be direct.
3374
3375 2016-11-25 Jakub Jelinek <jakub@redhat.com>
3376 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3377
3378 PR middle-end/78501
3379 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
3380 non null and it's precision matches precision of lhs's type.
3381
3382 2016-11-24 Martin Sebor <msebor@redhat.com>
3383
3384 PR tree-optimization/78476
3385 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
3386 Add a member.
3387 (handle_gimple_call): Adjust signature.
3388 (try_substitute_return_value): Remove calls to bounded functions
3389 with zero buffer size whose result is known.
3390 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
3391
3392 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3393
3394 * varasm.c (assemble_start_function): Wrap align_log definition in
3395 ASM_OUTPUT_MAX_SKIP_ALIGN.
3396
3397 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
3398
3399 * config/i386/i386.md (wide AND insn to QImode splitter): Use
3400 explicit mode macros.
3401 (wide OR insn to QImode splitter): Ditto.
3402
3403 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
3404
3405 PR rtl-optimization/77541
3406 * lra-constraints.c (struct input_reload): Add field match_p.
3407 (get_reload_reg): Check modes of input reloads to generate unique
3408 value reload pseudo.
3409 (match_reload): Add input reload pseudo for the current insn.
3410
3411 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3412
3413 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
3414 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
3415 architecture levels.
3416 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
3417 the aarch64_fp16_type_node, not all HFmode types.
3418 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
3419 (aarch64_scalar_mode_supported_p): Likewise.
3420 (aarch64_excess_precision): New.
3421 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
3422 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
3423 (TARGET_C_EXCESS_PRECISION): Likewise.
3424
3425 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3426
3427 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
3428 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3429
3430 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
3431
3432 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
3433 (<optab>dihf2): Likewise.
3434 (aarch64_fp16_<optab><mode>hf2): New.
3435
3436 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
3437
3438 PR target/67822
3439 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
3440
3441 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3442
3443 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
3444 Enable REE at -O2 and higher.
3445 * config/sparc/sparc.c (sparc_option_override): Disable it by default
3446 in 32-bit mode.
3447
3448 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3449
3450 PR target/48863
3451 PR inline-asm/70184
3452 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
3453 (new_temp_expr_table): Initialise reg_vars_cnt.
3454 (free_temp_expr_table): Release reg_vars_cnt.
3455 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
3456 field of TAB.
3457 (find_replaceable_in_bb): Use the above to record register variable
3458 write occurrences and cancel replacement across them.
3459
3460 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3461
3462 PR rtl-optimization/78437
3463 * ree.c (get_uses): New function.
3464 (combine_reaching_defs): When a copy is needed, return false if any
3465 reaching use of the source register reads it in a mode larger than
3466 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
3467
3468 2016-11-24 Martin Liska <mliska@suse.cz>
3469
3470 * gimple-pretty-print.c (dump_edge_probability): New function.
3471 (dump_gimple_switch): Dump label edge probabilities.
3472 (dump_gimple_cond): Likewise.
3473 (dump_gimple_label): Dump
3474 (dump_gimple_bb_header): Dump basic block frequency.
3475 (pp_cfg_jump): Replace e->dest argument with e.
3476 (dump_implicit_edges): Likewise.
3477 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
3478 Use gimple_bb (at) instead of at->bb.
3479
3480 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3481
3482 * common.opt (flimit-function-alignment): New.
3483 * doc/invoke.texi (-flimit-function-alignment): Document.
3484 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
3485 * final.c (shorten_branches): Set it.
3486 * varasm.c (assemble_start_function): Limit alignment if
3487 requested.
3488
3489 2016-11-24 Richard Biener <rguenther@suse.de>
3490
3491 PR tree-optimization/71595
3492 * cfgloopmanip.h (remove_path): Add irred_invalidated and
3493 loop_closed_ssa_invalidated parameters, defaulted to NULL.
3494 * cfgloopmanip.c (remove_path): Likewise, pass them along to
3495 called functions. Only fix irred flags if the caller didn't
3496 request state.
3497 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
3498 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
3499 to remove_path.
3500
3501 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
3502
3503 PR rtl-optimization/78120
3504 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
3505 cases, and additionally test against max_seq_cost for speed
3506 optimization.
3507 (noce_process_if_block): Compute an estimate for the original cost when
3508 optimizing for speed, using the minimum of then and else block costs.
3509
3510 PR rtl-optimization/78120
3511 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
3512
3513 PR rtl-optimization/78120
3514 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
3515
3516 2016-11-24 Bin Cheng <bin.cheng@arm.com>
3517
3518 * match.pd: Refine type conversion in result expr for below pattern:
3519 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
3520
3521 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
3522
3523 PR middle-end/78429
3524 * tree.h (wi::fits_to_boolean_p): New predicate.
3525 (wi::fits_to_tree_p): Use it for boolean types.
3526 * tree.c (int_fits_type_p): Likewise.
3527
3528 2016-11-24 Martin Liska <mliska@suse.cz>
3529
3530 * print-tree.c (struct bucket): Remove.
3531 (print_node): Add new argument which drives whether a tree node
3532 is printed briefly or not.
3533 (debug_tree): Replace a custom hash table with hash_set<T>.
3534 * print-tree.h (print_node): Add the argument.
3535
3536 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
3537
3538 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
3539
3540 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
3541
3542 PR target/78458
3543 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
3544 if it is at least NREGS wide.
3545
3546 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3547
3548 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
3549 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
3550 TFmode, IFmode and KFmode.
3551
3552 2016-11-23 Joseph Myers <joseph@codesourcery.com>
3553
3554 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
3555 pattern.
3556
3557 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
3558
3559 * combine.c (change_zero_ext): Only change the mode of a hard register
3560 destination if can_change_dest_mode holds for that.
3561
3562 2016-11-23 Jeff Law <law@redhat.com>
3563
3564 * varasm.c (assemble_name): Increase buffer size for name.
3565
3566 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
3567
3568 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
3569
3570 * doc/extend.texi: Constify first argument to __builtin_object_size.
3571
3572 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
3573
3574 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
3575 to be used. Add brackets around macro argument.
3576
3577 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3578
3579 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
3580
3581 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3582
3583 PR sanitizer/69278
3584 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
3585 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
3586
3587 2016-11-23 Jakub Jelinek <jakub@redhat.com>
3588
3589 PR middle-end/69183
3590 * omp-low.c (build_outer_var_ref): Change lastprivate argument
3591 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
3592 on worksharing constructs, treat it like clauses on simd construct.
3593 Formatting fix.
3594 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
3595 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
3596 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
3597 of true as last argument to build_outer_var_ref.
3598
3599 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
3600
3601 * config/i386/i386.md (*movqi_internal): Calculate mode
3602 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
3603 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
3604 (*k<logic><mode>): Calculate mode attribute depending on
3605 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
3606 (*andqi_1): Calculate mode attribute of alternative 3 depending
3607 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
3608 (kandn<mode>): Calculate mode attribute of alternative 2 depending
3609 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
3610 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
3611 iterator. Calculate mode attribute of alternative 1 depending
3612 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
3613 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
3614 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
3615
3616 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3617
3618 PR middle-end/78153
3619 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
3620 * tree-vrp.c (extract_range_basic): Handle case for
3621 CFN_BUILT_IN_STRLEN.
3622
3623 2016-11-23 Jeff Law <law@redhat.com>
3624
3625 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
3626
3627 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
3628 in boolean context warning.
3629
3630 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
3631
3632 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3633
3634 PR target/63250
3635 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
3636 (arm_fp16_type_node): ...This, make visibile.
3637 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
3638 arm_fp16_type_node.
3639 (arm_init_simd_builtin_types): Likewise.
3640 (arm_init_fp16_builtins): Likewise.
3641 * config/arm/arm.c (arm_excess_precision): New.
3642 (arm_floatn_mode): Likewise.
3643 (TARGET_C_EXCESS_PRECISION): Likewise.
3644 (TARGET_FLOATN_MODE): Likewise.
3645 (arm_promoted_type): Only promote arm_fp16_type_node.
3646 * config/arm/arm.h (arm_fp16_type_node): Declare.
3647
3648 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3649
3650 * config/arm/arm.c (arm_convert_to_type): Delete.
3651 (TARGET_CONVERT_TO_TYPE): Delete.
3652 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
3653 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
3654 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
3655 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
3656 are in fast math mode, and have no single step hardware instruction.
3657 (extendhfdf2): Only expand through SFmode if we don't have a
3658 single-step hardware instruction.
3659 * config/arm/vfp.md (*truncdfhf2): New.
3660 (extendhfdf2): Likewise.
3661
3662 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3663
3664 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
3665 provides HFmode.
3666
3667 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3668
3669 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
3670 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
3671 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
3672 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
3673 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
3674 * doc/tm.texi: Regenerate.
3675 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
3676
3677 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3678
3679 * toplev.c (init_excess_precision): Delete most logic.
3680 * tree.c (excess_precision_type): Rewrite to use
3681 TARGET_EXCESS_PRECISION.
3682 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
3683 more generic fashion.
3684 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
3685 __STDC_WANT_IEC_60559_TYPES_EXT__.
3686
3687 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3688
3689 * common.opt (fpermitted-flt-eval-methods): New.
3690 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
3691 * flag_types.h (permitted_flt_eval_methods): New.
3692
3693 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3694
3695 * config/m68k/m68k.c (m68k_excess_precision): New.
3696 (TARGET_C_EXCESS_PRECISION): Define.
3697
3698 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3699
3700 * config/s390/s390.c (s390_excess_precision): New.
3701 (TARGET_C_EXCESS_PRECISION): Define.
3702
3703 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3704
3705 * config/i386/i386.c (ix86_excess_precision): New.
3706 (TARGET_C_EXCESS_PRECISION): Define.
3707
3708 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
3709
3710 * target.def (excess_precision): New hook.
3711 * target.h (flt_eval_method): New.
3712 (excess_precision_type): Likewise.
3713 * targhooks.c (default_excess_precision): New.
3714 * targhooks.h (default_excess_precision): New.
3715 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
3716 * doc/tm.texi: Regenerate.
3717
3718 2016-11-23 Martin Sebor <msebor@redhat.com>
3719
3720 PR middle-end/78461
3721 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
3722 set the minimum number of bytes for an unknown string to zero.
3723
3724 2016-11-23 Martin Jambor <mjambor@suse.cz>
3725 Martin Liska <mliska@suse.cz>
3726
3727 * hsa-builtins.def: New file.
3728 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
3729 * builtins.def: Include hsa-builtins.def.
3730 (DEF_HSA_BUILTIN): New macro.
3731 * dumpfile.h (OPTGROUP_OPENMP): Define.
3732 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
3733 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
3734 GF_OMP_FOR_GRID_GROUP_ITER.
3735 (gimple_omp_for_grid_phony): Added checking assert.
3736 (gimple_omp_for_set_grid_phony): Likewise.
3737 (gimple_omp_for_grid_intra_group): New function.
3738 (gimple_omp_for_set_grid_intra_group): Likewise.
3739 (gimple_omp_for_grid_group_iter): Likewise.
3740 (gimple_omp_for_set_grid_group_iter): Likewise.
3741 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
3742 previosuly only distribute loop was permitted.
3743 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
3744 (grid_get_kernel_launch_attributes): Support multiple HSA grid
3745 dimensions.
3746 (grid_expand_omp_for_loop): Likewise and also support standalone
3747 distribute constructs. New parameter INTRA_GROUP, updated both users.
3748 (grid_expand_target_grid_body): Support standalone distribute
3749 constructs.
3750 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
3751 (pass_data_expand_omp_ssa): Likewise.
3752 (pass_data_omp_device_lower): Likewsie.
3753 (pass_data_lower_omp): Likewise.
3754 (pass_data_diagnose_omp_blocks): Likewise.
3755 (pass_data_oacc_device_lower): Likewise.
3756 (pass_data_omp_target_link): Likewise.
3757 (grid_lastprivate_predicate): New function.
3758 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
3759 gridified loops.
3760 (lower_omp_for): Support standalone distribute constructs.
3761 (grid_prop): New type.
3762 (grid_safe_assignment_p): Check for assignments to group_sizes, new
3763 parameter GRID.
3764 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
3765 it to callee.
3766 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
3767 optimization info messages.
3768 (grid_find_single_omp_among_assignments): Likewise.
3769 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
3770 (grid_parallel_clauses_gridifiable): New function.
3771 (grid_inner_loop_gridifiable_p): Likewise.
3772 (grid_dist_follows_simple_pattern): Likewise.
3773 (grid_gfor_follows_tiling_pattern): Likewise.
3774 (grid_call_permissible_in_distribute_p): Likewise.
3775 (grid_handle_call_in_distribute): Likewise.
3776 (grid_dist_follows_tiling_pattern): Likewise.
3777 (grid_target_follows_gridifiable_pattern): Support standalone
3778 distribute constructs.
3779 (grid_var_segment): New enum.
3780 (grid_mark_variable_segment): New function.
3781 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
3782 if a new argument says so.
3783 (grid_process_grid_body): New function.
3784 (grid_eliminate_combined_simd_part): Likewise.
3785 (grid_mark_tiling_loops): Likewise.
3786 (grid_mark_tiling_parallels_and_loops): Likewise.
3787 (grid_process_kernel_body_copy): Support standalone distribute
3788 constructs.
3789 (grid_attempt_target_gridification): New grid variable holding overall
3790 gridification state. Support standalone distribute constructs and
3791 collapse clauses.
3792 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
3793 * hsa.h (hsa_bb): Add method method append_phi.
3794 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
3795 occurences in all files too.
3796 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
3797 (is_a_helper <hsa_insn_br *>::test): New function.
3798 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
3799 branch instructions.
3800 (hsa_insn_signal): Make a direct descendant of
3801 hsa_insn_basic. Add memorder constructor parameter and
3802 m_memory_order and m_signalop member variables.
3803 (hsa_insn_queue): Changed constructor parameters to common form.
3804 Added m_segment and m_memory_order member variables.
3805 (hsa_summary_t): Add private member function
3806 process_gpu_implementation_attributes.
3807 (hsa_function_summary): Rename m_binded_function to
3808 m_bound_function.
3809 (hsa_insn_basic_p): Remove typedef.
3810 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
3811 (hsa_op_reg_p): Remove typedef.
3812 (hsa_function_representation): Change hsa_op_reg_p into plain
3813 pointers.
3814 (hsa_insn_phi): Removed new and delete operators.
3815 (hsa_insn_br): Likewise.
3816 (hsa_insn_cbr): Likewise.
3817 (hsa_insn_sbr): Likewise.
3818 (hsa_insn_cmp): Likewise.
3819 (hsa_insn_mem): Likewise.
3820 (hsa_insn_atomic): Likewise.
3821 (hsa_insn_signal): Likewise.
3822 (hsa_insn_seg): Likewise.
3823 (hsa_insn_call): Likewise.
3824 (hsa_insn_arg_block): Likewise.
3825 (hsa_insn_comment): Likewise.
3826 (hsa_insn_srctype): Likewise.
3827 (hsa_insn_packed): Likewise.
3828 (hsa_insn_cvt): Likewise.
3829 (hsa_insn_alloca): Likewise.
3830 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
3831 (process_gpu_implementation_attributes): New function.
3832 (link_functions): Move some functionality into it. Adjust after
3833 renaming m_binded_functions to m_bound_functions.
3834 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
3835 to the list of instructions with no output registers.
3836 (get_in_type): Return this if it is a register of
3837 matching size.
3838 (hsa_get_declaration_name): Moved to...
3839 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
3840 temporary string on an obstack instead from ggc.
3841 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
3842 down to two overloads.
3843 (hsa_allocp_operand_address): Removed.
3844 (hsa_allocp_operand_immed): Likewise.
3845 (hsa_allocp_operand_reg): Likewise.
3846 (hsa_allocp_operand_code_list): Likewise.
3847 (hsa_allocp_operand_operand_list): Likewise.
3848 (hsa_allocp_inst_basic): Likewise.
3849 (hsa_allocp_inst_phi): Likewise.
3850 (hsa_allocp_inst_mem): Likewise.
3851 (hsa_allocp_inst_atomic): Likewise.
3852 (hsa_allocp_inst_signal): Likewise.
3853 (hsa_allocp_inst_seg): Likewise.
3854 (hsa_allocp_inst_cmp): Likewise.
3855 (hsa_allocp_inst_br): Likewise.
3856 (hsa_allocp_inst_sbr): Likewise.
3857 (hsa_allocp_inst_call): Likewise.
3858 (hsa_allocp_inst_arg_block): Likewise.
3859 (hsa_allocp_inst_comment): Likewise.
3860 (hsa_allocp_inst_queue): Likewise.
3861 (hsa_allocp_inst_srctype): Likewise.
3862 (hsa_allocp_inst_packed): Likewise.
3863 (hsa_allocp_inst_cvt): Likewise.
3864 (hsa_allocp_inst_alloca): Likewise.
3865 (hsa_allocp_bb): Likewise.
3866 (hsa_obstack): New.
3867 (hsa_init_data_for_cfun): Initialize obstack.
3868 (hsa_deinit_data_for_cfun): Release memory of the obstack.
3869 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
3870 (hsa_op_reg::operator new): Likewise.
3871 (hsa_op_address::operator new): Likewise.
3872 (hsa_op_code_list::operator new): Likewise.
3873 (hsa_op_operand_list::operator new): Likewise.
3874 (hsa_insn_basic::operator new): Likewise.
3875 (hsa_insn_phi::operator new): Likewise.
3876 (hsa_insn_br::operator new): Likewise.
3877 (hsa_insn_sbr::operator new): Likewise.
3878 (hsa_insn_cmp::operator new): Likewise.
3879 (hsa_insn_mem::operator new): Likewise.
3880 (hsa_insn_atomic::operator new): Likewise.
3881 (hsa_insn_signal::operator new): Likewise.
3882 (hsa_insn_seg::operator new): Likewise.
3883 (hsa_insn_call::operator new): Likewise.
3884 (hsa_insn_arg_block::operator new): Likewise.
3885 (hsa_insn_comment::operator new): Likewise.
3886 (hsa_insn_srctype::operator new): Likewise.
3887 (hsa_insn_packed::operator new): Likewise.
3888 (hsa_insn_cvt::operator new): Likewise.
3889 (hsa_insn_alloca::operator new): Likewise.
3890 (hsa_init_new_bb): Likewise.
3891 (hsa_bb::append_phi): New function.
3892 (gen_hsa_phi_from_gimple_phi): Use it.
3893 (get_symbol_for_decl): Fix dinstinguishing between
3894 global and local functions. Put local variables into a segment
3895 according to their attribute or static flag, if there is one.
3896 (hsa_insn_br::hsa_insn_br): New.
3897 (hsa_insn_br::operator new): Likewise.
3898 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
3899 (query_hsa_grid_nodim): New function.
3900 (multiply_grid_dim_characteristics): Likewise.
3901 (gen_get_num_threads): Likewise.
3902 (gen_get_num_teams): Reimplemented.
3903 (gen_get_team_num): Likewise.
3904 (gen_hsa_insns_for_known_library_call): Updated calls to the above
3905 helper functions.
3906 (get_memory_order_name): Removed.
3907 (get_memory_order): Likewise.
3908 (hsa_memorder_from_tree): New function.
3909 (gen_hsa_ternary_atomic_for_builtin): Renamed to
3910 gen_hsa_atomic_for_builtin, can also create signals.
3911 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
3912 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
3913 (hsa_insn_atomic): Fix function comment.
3914 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
3915 ancestor constructor and initialization of new member variables.
3916 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
3917 member variables.
3918 (hsa_get_host_function): Handle functions with no bound CPU
3919 implementation. Fix binded to bound.
3920 (get_brig_function_name): Likewise.
3921 (HSA_SORRY_ATV): Remove semicolon after macro.
3922 (HSA_SORRY_AT): Likewise.
3923 (omp_simple_builtin::generate): Add missing semicolons.
3924 (hsa_insn_phi::operator new): Removed.
3925 (hsa_insn_br::operator new): Likewise.
3926 (hsa_insn_cbr::operator new): Likewise.
3927 (hsa_insn_sbr::operator new): Likewise.
3928 (hsa_insn_cmp::operator new): Likewise.
3929 (hsa_insn_mem::operator new): Likewise.
3930 (hsa_insn_atomic::operator new): Likewise.
3931 (hsa_insn_signal::operator new): Likewise.
3932 (hsa_insn_seg::operator new): Likewise.
3933 (hsa_insn_call::operator new): Likewise.
3934 (hsa_insn_arg_block::operator new): Likewise.
3935 (hsa_insn_comment::operator new): Likewise.
3936 (hsa_insn_srctype::operator new): Likewise.
3937 (hsa_insn_packed::operator new): Likewise.
3938 (hsa_insn_cvt::operator new): Likewise.
3939 (hsa_insn_alloca::operator new): Likewise.
3940 (get_symbol_for_decl): Accept CONST_DECLs, put them to
3941 readonly segment.
3942 (gen_hsa_addr): Also process CONST_DECLs.
3943 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
3944 copies.
3945 (gen_hsa_unary_operation): Make sure the function does
3946 not use bittype source type for firstbit and lastbit operations.
3947 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
3948 source type.
3949 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
3950 instruction.
3951 (emit_branch_insn): Renamed to emit_cond_branch_insn.
3952 Emit the width stored in the class.
3953 (emit_generic_branch_insn): New function.
3954 (emit_insn): Call emit_generic_branch_insn.
3955 (emit_signal_insn): Remove obsolete comment. Update
3956 member variable name, pick a type according to profile.
3957 (emit_alloca_insn): Remove obsolete comment.
3958 (emit_atomic_insn): Likewise.
3959 (emit_queue_insn): Get segment and memory order from the IR object.
3960 (hsa_brig_section): Make allocate_new_chunk, chunks
3961 and cur_chunk provate, add a default NULL parameter to add method.
3962 (hsa_brig_section::add): Added a new parameter, store pointer to
3963 output data there if it is non-NULL.
3964 (emit_function_directives): Use this new parameter instead of
3965 calculating the pointer itself, fix function comment.
3966 (hsa_brig_emit_function): Add forgotten endian conversion.
3967 (hsa_output_kernels): Remove unnecessary building of
3968 kernel_dependencies_vector_type.
3969 (emit_immediate_operand): Declare.
3970 (emit_directive_variable): Also emit initializers of CONST_DECLs.
3971 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
3972 (verify_function_arguments): Properly detect variadic
3973 arguments.
3974 * hsa-dump.c (hsa_width_specifier_name): New function.
3975 (dump_hsa_insn_1): Dump generic branch instructions, update signal
3976 member variable name. Special dumping for queue objects.
3977 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
3978 m_binded_functions to m_bound_functions. Copy externally visible flag
3979 to the node.
3980 (ipa_hsa_write_summary): Likewise.
3981 (ipa_hsa_read_section): Likewise.
3982
3983 2016-11-23 Richard Biener <rguenther@suse.de>
3984
3985 PR tree-optimization/78396
3986 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
3987 vectorize try vectorizing an if-converted body using BB vectorization.
3988
3989 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
3990 Alan Hayward <alan.hayward@arm.com>
3991 David Sherwood <david.sherwood@arm.com>
3992
3993 * rtlanal.c (subreg_get_info): Use more local variables.
3994 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
3995 occupies at least one register. Assume that full hard registers
3996 have consistent endianness. Share previously-duplicated if block.
3997 Rework the main handling so that it operates on independently-
3998 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
3999 to check lowpart offsets, without trying to find an equivalent
4000 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
4001 as a final register-endianness correction.
4002
4003 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
4004
4005 PR target/77881
4006 PR bootstrap/78390
4007 PR target/78438
4008 PR bootstrap/78477
4009 * combine.c (make_compound_operation_int): Do not convert a subreg of
4010 a non-constant logical shift right to a zero_extract. Handle the case
4011 where some zero bits have been shifted into the range covered by that
4012 subreg.
4013
4014 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
4015 Alan Hayward <alan.hayward@arm.com>
4016 David Sherwood <david.sherwood@arm.com>
4017
4018 * rtl.h (subreg_size_offset_from_lsb): Declare.
4019 (subreg_offset_from_lsb): New function.
4020 (subreg_size_lowpart_offset): Declare.
4021 (subreg_lowpart_offset): Turn into an inline function.
4022 (subreg_size_highpart_offset): Declare.
4023 (subreg_highpart_offset): Turn into an inline function.
4024 * emit-rtl.c (subreg_size_lowpart_offset): New function.
4025 (subreg_size_highpart_offset): Likewise
4026 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
4027
4028 2016-11-23 Richard Biener <rguenther@suse.de>
4029
4030 PR tree-optimization/78482
4031 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
4032 (remove_forwarder_block_with_phi): When merging with a loop
4033 header creates a new latch reset number of iteration information
4034 of the loop.
4035
4036 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
4037
4038 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
4039 (*ashrsi3_extend0): ...this. Accept constant integers.
4040 (*ashrsi3_extend2): Rename to...
4041 (*ashrsi3_extend1): ...this.
4042 (*ashrsi3_extend2): New pattern.
4043 (*lshrsi3_extend1): Accept constant integers.
4044 (*lshrsi3_extend2): Fix condition on operand 2.
4045
4046 2016-11-23 Martin Liska <mliska@suse.cz>
4047
4048 * config/i386/i386.c: Initialize function pointer to NULL.
4049
4050 2016-11-23 Bin Cheng <bin.cheng@arm.com>
4051
4052 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4053 for A == C1 ? A : C2 to below.
4054 * match.pd: Move from above to here:
4055 (cond (eq (convert1? x) c1) (convert2? x) c2)
4056 -> (cond (eq x c1) c1 c2).
4057
4058 2016-11-23 Bin Cheng <bin.cheng@arm.com>
4059
4060 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
4061 for A cmp C1 ? A : C2 to below, also simplify remaining code.
4062 * match.pd: Move and extend simplification from above to here:
4063 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
4064 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
4065 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
4066
4067 2016-11-23 Martin Liska <mliska@suse.cz>
4068 Martin Jambor <mjambor@suse.cz>
4069
4070 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
4071
4072 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
4073
4074 PR target/78213
4075 * opts.c (finish_options): Set -fsyntax-only if running self tests.
4076
4077 2016-11-23 Richard Biener <rguenther@suse.de>
4078
4079 PR middle-end/71762
4080 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
4081 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
4082
4083 2016-11-23 Richard Biener <rguenther@suse.de>
4084
4085 PR lto/78472
4086 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
4087 fields.
4088
4089 2016-11-23 Richard Biener <rguenther@suse.de>
4090 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
4091
4092 PR tree-optimization/78154
4093 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
4094 returns it's argument and the argument is nonnull.
4095 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
4096 ATT_RETNONNULL_NOTHROW_LEAF.
4097 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
4098 ATTR_RETNONNULL_NOTHROW_LEAF.
4099 (BUILT_IN_STPCPY): Likewise.
4100 (BUILT_IN_STPNCPY): Likewise.
4101 (BUILT_IN_MEMPCPY_CHK): Likewise.
4102 (BUILT_IN_STPCPY_CHK): Likewise.
4103 (BUILT_IN_STPNCPY_CHK): Likewise.
4104 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
4105 (BUILT_IN_STRNCAT): Likewise.
4106 (BUILT_IN_STRNCPY): Likewise.
4107 (BUILT_IN_MEMSET_CHK): Likewise.
4108 (BUILT_IN_STRCAT_CHK): Likewise.
4109 (BUILT_IN_STRCPY_CHK): Likewise.
4110 (BUILT_IN_STRNCAT_CHK): Likewise.
4111 (BUILT_IN_STRNCPY_CHK): Likewise.
4112
4113 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4114
4115 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
4116 * fold-const.h (tree_expr_nonzero_p) : Declare.
4117 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
4118
4119 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
4120
4121 * system.h (HAVE_DESIGNATED_INITIALIZERS,
4122 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
4123 "defined" in macros.
4124 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
4125 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
4126 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
4127
4128 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
4129
4130 PR target/60300
4131 * config/avr/constraints.md (Csp): Widen range to [-11..6].
4132 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
4133 of RCALLs in prologue to 3.
4134
4135 2016-11-22 Michael Collison <michael.collison@arm.com>
4136
4137 * config/aarch64/aarch64-protos.h
4138 (aarch64_and_split_imm1, aarch64_and_split_imm2)
4139 (aarch64_and_bitmask_imm): New prototypes
4140 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
4141 New overloaded function to create bit mask covering the
4142 lowest to highest bits set.
4143 (aarch64_and_split_imm2): New overloaded functions to create bit
4144 mask of zeros between first and last bit set.
4145 (aarch64_and_bitmask_imm): New function to determine if a integer
4146 is a valid two instruction "and" operation.
4147 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
4148 allowing wider range of constants with "and" operations.
4149 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
4150 "and" operator from matching restricted constant range used for
4151 ior and xor operators.
4152 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
4153 for constants in "and" operantions.
4154 (UsP constraint): New DImode constraint for constants
4155 in "and" operations.
4156 * config/aarch64/iterators.md (lconst2): New mode iterator.
4157 (LOGICAL2): New code iterator.
4158 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
4159 predicate.
4160 (aarch64_logical_and_operand): New predicate allowing extended
4161 constants for "and" operations.
4162
4163 2016-11-22 Walter Lee <walt@tilera.com>
4164
4165 * config/tilegx/tilegx.md (trap): New pattern.
4166 * config/tilepro/tilepro.md (trap): Likewise.
4167
4168 2016-11-22 Walter Lee <walt@tilera.com>
4169
4170 * config/tilegx/tilegx.md (*zero_extract): Use
4171 define_insn_and_split instead of define_insn; Handle pos + size >
4172 64.
4173 (*sign_extract): Likewise.
4174
4175 2016-11-22 Marek Polacek <polacek@redhat.com>
4176
4177 PR tree-optimization/78455
4178 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
4179
4180 2016-11-22 Ian Lance Taylor <iant@golang.org>
4181
4182 PR go/78431
4183 PR go/78432
4184 * godump.c (go_format_type): Always pass alignment as 1 when
4185 calling go_append_padding at end of struct/union.
4186
4187 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4188
4189 PR target/78451
4190 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
4191 _mm512_setzero_hi): Removed.
4192 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
4193 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
4194 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
4195 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
4196 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
4197 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
4198 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
4199 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
4200 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
4201 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
4202 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
4203 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
4204 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
4205 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
4206 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
4207 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
4208 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
4209 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
4210 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
4211 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
4212 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
4213 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
4214 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
4215 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
4216 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
4217 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
4218 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
4219 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
4220 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
4221 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
4222 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
4223 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
4224 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
4225 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
4226 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
4227 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
4228 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4229 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4230 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4231 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
4232 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
4233 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
4234 _mm512_setzero_qi or _mm512_setzero_hi.
4235 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
4236 _mm512_maskz_dbsad_epu8): Formatting fixes.
4237 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
4238 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
4239 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
4240 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
4241 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
4242 _mm512_setzero_qi or _mm512_setzero_hi.
4243
4244 2016-11-22 Nathan Sidwell <nathan@acm.org>
4245
4246 * gcc-ar.c (main): Fix indentation.
4247 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
4248 * ggc-page.c (move_ptes_to_front): Fix formatting.
4249 * hsa-dump.c (dump_has_cfun): Fix indentation.
4250 * sel-sched-ir.h: Remove trailing blank lines.
4251
4252 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4253 Alexander Monakov <amonakov@ispras.ru>
4254
4255 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
4256 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
4257 (omp_clause_code_name): Add _simt_ name.
4258 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
4259 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
4260 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
4261 (scan_omp_simd): New function.
4262 (scan_omp_1_stmt): Use it in target regions if needed.
4263 (omp_max_vf): Don't max with omp_max_simt_vf.
4264 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
4265 OMP_CLAUSE__SIMT_ is present.
4266 (lower_rec_input_clauses): Compute maybe_simt from presence of
4267 OMP_CLAUSE__SIMT_.
4268 (lower_lastprivate_clauses): Likewise.
4269 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
4270 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
4271 * internal-fn.def (GOMP_USE_SIMT): New internal function.
4272 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
4273
4274 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
4275
4276 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
4277 (expand_GOMP_SIMT_VF): New.
4278 (expand_GOMP_SIMT_LAST_LANE): New.
4279 (expand_GOMP_SIMT_ORDERED_PRED): New.
4280 (expand_GOMP_SIMT_VOTE_ANY): New.
4281 (expand_GOMP_SIMT_XCHG_BFLY): New.
4282 (expand_GOMP_SIMT_XCHG_IDX): New.
4283 * internal-fn.def (GOMP_SIMT_LANE): New.
4284 (GOMP_SIMT_VF): New.
4285 (GOMP_SIMT_LAST_LANE): New.
4286 (GOMP_SIMT_ORDERED_PRED): New.
4287 (GOMP_SIMT_VOTE_ANY): New.
4288 (GOMP_SIMT_XCHG_BFLY): New.
4289 (GOMP_SIMT_XCHG_IDX): New.
4290 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
4291 (create_omp_child_function): ...here. Set "omp target entrypoint"
4292 or "omp declare target" attribute based on is_gimple_omp_offloaded.
4293 (omp_max_simt_vf): New. Use it...
4294 (omp_max_vf): ...here.
4295 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
4296 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
4297 (lower_omp_ordered): Likewise, for "ordered" lowering.
4298 (expand_omp_simd): Add SIMT transforms.
4299 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
4300 (execute_omp_device_lower): New.
4301 (pass_data_omp_device_lower): New.
4302 (pass_omp_device_lower): New pass.
4303 (make_pass_omp_device_lower): New.
4304 * passes.def (pass_omp_device_lower): Position new pass.
4305 * tree-pass.h (PROP_gimple_lomp_dev): Define.
4306 (make_pass_omp_device_lower): Declare.
4307
4308 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4309
4310 PR target/78451
4311 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
4312 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
4313 _mm_setzero_di.
4314 (_mm_maskz_load_epi64): Likewise.
4315 (_mm_setzero_hi): Removed.
4316 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
4317 _mm_setzero_di.
4318 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
4319 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
4320 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
4321 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
4322 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
4323 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
4324 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
4325 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
4326 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4327 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
4328 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
4329 Likewise.
4330 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
4331 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
4332 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
4333 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
4334 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
4335 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
4336 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
4337 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
4338 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
4339 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
4340 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
4341 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4342 instead of _mm_setzero_hi.
4343 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
4344 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
4345 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
4346 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
4347 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
4348 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
4349 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
4350 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
4351 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
4352 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
4353 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
4354 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
4355 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
4356 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
4357 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
4358 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
4359 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
4360 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
4361 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
4362 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
4363 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
4364 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
4365 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
4366 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
4367 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
4368 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
4369 _mm_setzero_di.
4370 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
4371 instead of _mm_setzero_hi.
4372 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
4373 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
4374 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
4375 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4376 _mm_setzero_si128 instead of _mm_setzero_di.
4377 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
4378 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
4379 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
4380 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
4381 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
4382 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
4383 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
4384 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
4385 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
4386 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
4387 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
4388 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
4389 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
4390 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
4391 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
4392 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
4393 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
4394 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
4395 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
4396 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
4397 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
4398 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
4399 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
4400 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
4401 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
4402 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
4403 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
4404 _mm512_maskz_insertf32x8): Formatting fixes.
4405 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
4406 _mm_setzero_si128 instead of _mm_setzero_di.
4407 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
4408 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
4409 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
4410 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
4411 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
4412 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
4413 _mm_setzero_si128 instead of _mm_setzero_di.
4414 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
4415 Likewise in macros.
4416 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
4417 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
4418 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
4419 _mm_setzero_si128 instead of _mm_setzero_hi.
4420 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
4421 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
4422 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
4423 instead of _mm_setzero_di.
4424 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
4425 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
4426 _mm_setzero_hi.
4427 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
4428 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
4429 _mm_setzero_hi.
4430 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
4431 _mm_setzero_di.
4432 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
4433 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
4434 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
4435
4436 2016-11-22 Carl Love <cel@us.ibm.com>
4437
4438 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
4439 equal and vector compare not equal. The vector compares take two
4440 arguments of type vector bool char, vector bool short, vector bool int,
4441 vector bool long long with the same return type.
4442 * doc/extend.texi: Update built-in documentation file for the new
4443 powerpc built-ins.
4444
4445 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
4446
4447 * Makefile.in ($(lang_checks_parallelized)): Fix detection
4448 of -j argument.
4449
4450 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4451
4452 * config.gcc: Allow new rmprofile value for configure option
4453 --with-multilib-list.
4454 * config/arm/t-rmprofile: New file.
4455 * doc/install.texi (--with-multilib-list): Document new rmprofile value
4456 for ARM.
4457
4458 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4459
4460 PR target/78439
4461 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
4462 register operand in alternatives 4,5,6.
4463
4464 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
4465
4466 PR target/77904
4467 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
4468 in save register mask if it is needed.
4469
4470 2016-11-22 Jakub Jelinek <jakub@redhat.com>
4471
4472 PR tree-optimization/78436
4473 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
4474 (shift_bytes_in_array, shift_bytes_in_array_right,
4475 merged_store_group::apply_stores): Formatting fixes.
4476 (clear_bit_region): Likewise. Use memset.
4477 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
4478 instead of EXPR and inerted instead of inserted. Use memset instead
4479 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
4480 if shift_amnt is 0.
4481
4482 PR middle-end/78416
4483 * expmed.c (expand_divmod): Use wide_int for computation of
4484 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
4485 Use size <= HOST_BITS_PER_WIDE_INT instead of
4486 HOST_BITS_PER_WIDE_INT >= size.
4487
4488 PR tree-optimization/78445
4489 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
4490 any_complicated_phi, version loop even if flag_tree_loop_if_convert
4491 is 1. Formatting fix.
4492
4493 2016-11-22 Martin Liska <mliska@suse.cz>
4494
4495 PR ipa/78309
4496 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
4497 (sem_function::get_hash): Use the new field.
4498 (sem_function::parse): Remove an argument from ctor.
4499 (sem_variable::parse): Likewise.
4500 (sem_variable::get_hash): Use the new field.
4501 (sem_item_optimizer::read_section): Use new ctor and set hash.
4502 * ipa-icf.h: _hash is removed from sem_item::sem_item,
4503 sem_variable::sem_variable, sem_function::sem_function.
4504
4505 2016-11-21 Jeff Law <law@redhat.com>
4506
4507 PR target/68538
4508 * config/cris/cris.md: Don't call copy_to_mode_reg unless
4509 can_create_pseudo_p is true.
4510
4511 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4512
4513 PR target/68803
4514 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
4515 *rotldi3_insert_7): New define_insns.
4516
4517 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4518
4519 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
4520 so that DImode can be allocated to FP/vector registers in more
4521 cases, and we can avoid direct move operations. If the register
4522 needs reloading, prefer GPRs over FP/vector registers. In the
4523 case of FPR vs. Altivec registers, prefer FPR registers unless we
4524 have the ISA 3.0 reg+offset scalar instructions.
4525 (movdi_internal64): Likewise.
4526
4527 2016-11-21 Jakub Jelinek <jakub@redhat.com>
4528
4529 PR middle-end/67335
4530 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
4531 for tmp simd array if DECL_NAME (parm) is NULL.
4532
4533 2016-11-20 Jeff Law <law@redhat.com>
4534
4535 PR target/25128
4536 * config/m68k/predicates.md (swap_peephole_relational_operator): New
4537 predicate.
4538 * config/m68k/m68k.md (relational tests against 65535/65536): New
4539 peephole2.
4540
4541 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4542
4543 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
4544
4545 2016-11-21 Martin Sebor <msebor@redhat.com>
4546
4547 * doc/invoke.texi (-fprintf-return-value): Document that option
4548 is enabled by default.
4549
4550 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4551
4552 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
4553 for-loop declaration of loop variable.
4554 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
4555 * config/avr/avr.c (avr_popcount_each_byte)
4556 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
4557 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
4558 (avr_expand_epilogue, avr_function_arg_advance)
4559 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
4560 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
4561 (avr_adjust_reg_alloc_order, output_reload_in_const)
4562 (avr_conditional_register_usage, avr_find_unused_d_reg)
4563 (avr_map_decompose, avr_fold_builtin): Same.
4564
4565 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4566
4567 * config/avr/avr.c (avr_popcount): Remove static function.
4568 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
4569
4570 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
4571
4572 * arm.opt (mapcs-float): Delete option.
4573 * arm.c (arm_option_override): Remove hunk relating to
4574 TARGET_APCS_FLOAT.
4575 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
4576
4577 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
4578
4579 * tree-tailcall.c (process_assignment): Simplify the check for
4580 a valid copy, allowing the source to be a local variable as
4581 well as an SSA name.
4582 (find_tail_calls): Allow copies between local variables to follow
4583 the call. Allow the result to be stored in any local variable,
4584 even if it's an aggregate.
4585 (eliminate_tail_call): Check whether the result is an SSA name
4586 before updating its SSA_NAME_DEF_STMT.
4587
4588 2016-11-21 David Malcolm <dmalcolm@redhat.com>
4589
4590 PR preprocessor/78324
4591 * input.c (get_substring_ranges_for_loc): Fail gracefully if
4592 -ftrack-macro-expansion has a value other than 2.
4593
4594 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
4595
4596 PR rtl-optimization/78400
4597 * shrink-wrap.c (try_shrink_wrapping_separate): Call
4598 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
4599 and df_update_exit_block_uses.
4600
4601 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4602
4603 PR c++/71973
4604 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
4605 new default-enabled warning..
4606 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
4607 (BT_PTR_CONST_STRING): Updated.
4608 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
4609 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
4610 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
4611 (strftime): Update builtin function.
4612 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
4613 * tree.h (const_tm_ptr_type_node): New type node.
4614 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
4615 const_tm_ptr_type_node.
4616
4617 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4618
4619 PR tree-optimization/78413
4620 * tree-if-conv.c (versionable_outer_loop_p): Require that both
4621 inner and outer loop latches have single predecessors.
4622
4623 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
4624
4625 PR target/78093
4626 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
4627 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
4628
4629 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4630
4631 * rtl.h: Adjust prototype.
4632 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
4633 (dead_or_set_regno_p): Likewise.
4634
4635 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4636
4637 * rtl.h: Adjust prototype.
4638 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
4639
4640 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4641
4642 * function.c (contains): Change argument type to rtx_insn *.
4643 (prologue_contains): Likewise.
4644 (epilogue_contains): Likewise.
4645 (prologue_epilogue_contains): Likewise.
4646 * function.h: Adjust prototype.
4647
4648 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4649
4650 * optabs.c (emit_libcall_block): Change argument type to
4651 rtx_insn *.
4652 * optabs.h: Adjust prototype.
4653
4654 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4655
4656 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
4657 (fixup_reorder_chain): Adjust.
4658 * cfgrtl.h: Adjust prototype.
4659
4660 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4661
4662 * rtl.h: Adjust prototype.
4663 * rtlanal.c (replace_label_in_insn): Change argument type to
4664 rtx_insn *.
4665
4666 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4667
4668 * config/v850/v850.c (expand_prologue): Adjust.
4669 (expand_epilogue): Likewise.
4670 * expr.c (init_expr_target): Likewise.
4671 * genrecog.c (print_subroutine): Always make the argument type
4672 rtx_insn *.
4673 * recog.h: Adjust prototype.
4674
4675 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4676
4677 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
4678 up variables to make some rtx_insn *.
4679 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4680 * config/arc/arc.c: Likewise.
4681 * config/arm/arm.c: Likewise.
4682 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
4683 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
4684 Likewise.
4685 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
4686
4687 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4688
4689 * config/arm/arm.c (legitimize_pic_address): Change to use
4690 rtx_insn * as the type of variables.
4691 (arm_pic_static_addr): Likewise.
4692 (arm_emit_movpair): Likewise.
4693 * config/c6x/c6x.c (reorg_split_calls): Likewise.
4694 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
4695 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
4696 * config/frv/frv.md: Likewise.
4697 * config/i386/i386-protos.h: Likewise.
4698 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4699 (ix86_split_fp_branch): Likewise.
4700 (predict_jump): Likewise.
4701 * config/ia64/ia64.c: Likewise.
4702 * config/mcore/mcore.c: Likewise.
4703 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
4704 * config/s390/s390.c: Likewise.
4705 * config/s390/s390.md: Likewise.
4706 * config/spu/spu.md: Likewise.
4707 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
4708 * lower-subreg.c (resolve_simple_move): Likewise.
4709
4710 2016-11-20 Jeff Law <law@redhat.com>
4711
4712 PR target/48551
4713 * reload.h (struct target_reload): Make x_double_reg_address_ok
4714 be per-mode rather.
4715 * reload.c (find_reloads_address): Check if double_reg_address_ok
4716 is true for the mode of the memory reference.
4717 * reload1.c (init_reload): Initialize double_reg_address_ok for
4718 each mode.
4719
4720 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
4721
4722 PR middle-end/61409
4723 * tree-ssa-uninit.c: Define new global max_phi_args.
4724 (compute_uninit_opnds_pos): Use max_phi_args.
4725 (prune_uninit_phi_opnds): Same.
4726 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
4727 missing NUM_PREDS in function comment.
4728 (can_one_predicate_be_invalidated_p): New.
4729 (can_chain_union_be_invalidated_p): New.
4730 (flatten_out_predicate_chains): New.
4731 (uninit_ops_invalidate_phi_use): New.
4732 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
4733
4734 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4735
4736 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
4737 * match.pd (A /[ex] B CMP C): New simplifications.
4738
4739 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
4740
4741 * match.pd (0 / X, X / X, X % X): New simplifications.
4742
4743 2016-11-19 Jakub Jelinek <jakub@redhat.com>
4744
4745 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
4746 when checking if callee's isa flags are subset of caller's isa flags.
4747 Fix comment wording.
4748
4749 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
4750 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
4751 instead and using = 0 instead of &= 0.
4752
4753 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
4754 ix86_add_new_builtins): Formatting fixes.
4755 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
4756 (ix86_get_builtin): Likewise.
4757
4758 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
4759 don't initialize it, don't use it for the case where it isn't
4760 provable %{z} nor using the same argument, instead move merge
4761 argument into a new pseudo and use that as target. Formatting fixes.
4762
4763 2016-11-19 Jeff Law <law@redhat.com>
4764
4765 PR target/25111
4766 * config/m68k/m68k.md (bsetdreg): New pattern.
4767 (bchgdreg, bclrdreg): Likewise.
4768
4769 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
4770
4771 PR target/78426
4772 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
4773 instead of force_reg.
4774 (sh_expand_setmem): Likewise.
4775
4776 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
4777
4778 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
4779
4780 2016-11-18 Walter Lee <walt@tilera.com>
4781
4782 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
4783 end-of-bundle marker for consecutive barriers.
4784
4785 2016-11-18 Walter Lee <walt@tilera.com>
4786
4787 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
4788
4789 2016-11-18 Jakub Jelinek <jakub@redhat.com>
4790
4791 PR middle-end/78419
4792 * multiple_target.c (get_attr_len): Start with argnum and increment
4793 argnum on every arg. Use strchr in a loop instead of counting commas
4794 manually.
4795 (get_attr_str): Increment argnum for every comma in the string.
4796 (separate_attrs): Use for instead of while loop, simplify.
4797 (expand_target_clones): Rename defenition argument to definition.
4798 Free attrs and attr_str even when diagnosing errors. Temporarily
4799 change input_location around targetm.target_option.valid_attribute_p
4800 calls. Don't emit warning or errors if that function fails.
4801
4802 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
4803
4804 PR debug/78191
4805 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
4806 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
4807 abbrev_opt_base_type_end only by increasing die_abbrev, before
4808 any other dies.
4809 (optimize_abbrev_table): Don't change abbrev numbers of
4810 base types and CU or optimize implicit consts in them if
4811 calc_base_type_die_sizes has been called during build_abbrev_table.
4812 (calc_base_type_die_sizes): If abbrev_opt_start, set
4813 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
4814
4815 2016-11-18 Jeff Law <law@redhat.com>
4816
4817 PR target/25112
4818 * config/m68k/m68k.c (moveq feeding equality comparison): New
4819 peepholes.
4820 * config/m68k/predicates.md (addq_subq_operand): New predicate.
4821 (equality_comparison_operator): Likewise.
4822
4823 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4824
4825 * rtlanal.c (load_extend_op): Move to...
4826 * rtl.h: ...here and make inline.
4827
4828 2016-11-18 Terry Guo <terry.guo@arm.com>
4829 Thomas Preud'homme <thomas.preudhomme@arm.com>
4830
4831 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
4832 * config/arm/arm-opts.h: Include arm-flags.h.
4833 (struct arm_arch_core_flag): Define.
4834 (arm_arch_core_flags): Define.
4835 * config/arm/arm-protos.h: Include arm-flags.h
4836 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
4837 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
4838 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
4839 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
4840 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
4841 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
4842 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
4843 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
4844 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
4845 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
4846 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
4847 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
4848 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
4849 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
4850 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
4851 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
4852 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
4853 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
4854 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
4855 ARM_FSET_CPU_SUBSET): Move to ...
4856 * config/arm/arm-flags.h: This new file.
4857 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
4858 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
4859 (TARGET_MODE_SPECS): Define.
4860 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
4861
4862 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
4863
4864 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
4865 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
4866 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
4867 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
4868 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
4869 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
4870 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
4871 missing and make value unsigned.
4872 (arm_feature_set): Use unsigned entries instead of unsigned long.
4873
4874 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4875
4876 Re-apply after PR bootstrap/77359 is fixed:
4877 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
4878
4879 * explow.c (get_dynamic_stack_size): Take known alignment of stack
4880 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
4881 size needed.
4882
4883 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
4884
4885 PR bootstrap/77359
4886 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
4887 variables in functions calling alloca. Also update the ASCII
4888 drawings.
4889 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
4890 (STACK_DYNAMIC_OFFSET): Likewise.
4891 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
4892 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
4893 macros to aix.h.
4894
4895 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4896 Alan Hayward <alan.hayward@arm.com>
4897 David Sherwood <david.sherwood@arm.com>
4898
4899 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
4900 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
4901 (add_const_value_attribute): Likewise.
4902 * explow.c (plus_constant): Likewise.
4903 * expmed.c (expand_mult, make_tree): Likewise.
4904 * expr.c (convert_modes): Likewise.
4905 * loop-doloop.c (doloop_optimize): Likewise.
4906 * postreload.c (reload_cse_simplify_set): Likewise.
4907 * simplify-rtx.c (simplify_const_unary_operation): Likewise
4908 (simplify_binary_operation_1, simplify_const_binary_operation):
4909 Likewise.
4910 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
4911 * wide-int.h: Update documentation to recommend rtx_mode_t
4912 instead of std::make_pair.
4913
4914 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
4915 Alan Hayward <alan.hayward@arm.com>
4916 David Sherwood <david.sherwood@arm.com>
4917
4918 * tree.h (SET_DECL_MODE): New macro.
4919 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
4920 (expand_gimple_basic_block): Likewise.
4921 * function.c (split_complex_args): Likeise.
4922 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4923 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
4924 * stor-layout.c (layout_decl, relayout_decl): Likewise.
4925 (finish_bitfield_representative): Likewise.
4926 * tree.c (make_node_stat): Likewise.
4927 * tree-inline.c (remap_ssa_name): Likewise.
4928 (tree_function_versioning): Likewise.
4929 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
4930 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
4931 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
4932 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
4933 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
4934 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
4935 * varasm.c (make_debug_expr_from_rtl): Likewise.
4936
4937 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
4938
4939 PR rtl-optimization/71785
4940 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
4941 (duplicate_computed_gotos): New function.
4942 (pass_duplicate_computed_gotos::execute): Rewrite.
4943
4944 2016-11-17 Jeff Law <law@redhat.com>
4945
4946 PR target/47192
4947 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
4948 barrier prior to deallocating the stack.
4949
4950 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
4951
4952 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
4953 to make better use of cmem loads in the case where a single bit is
4954 being accessed.
4955 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
4956
4957 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
4958
4959 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
4960 F_AVX5124FMAPS.
4961 (isa_names_table): Handle new features.
4962
4963 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
4964 Andrew Senkevich <andrew.senkevich@intel.com>
4965
4966 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
4967 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
4968 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
4969 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
4970 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
4971 * config/i386/avx5124fmapsintrin.h: New file.
4972 * config/i386/avx5124vnniwintrin.h: Ditto.
4973 * config/i386/constraints.md (h): New constraint.
4974 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
4975 * config/i386/driver-i386.c (host_detect_local_cpu):
4976 Detect avx5124fmaps, avx5124vnniw.
4977 * config/i386/i386-builtin-types.def: Add types
4978 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
4979 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
4980 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
4981 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
4982 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
4983 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
4984 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
4985 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
4986 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
4987 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
4988 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
4989 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
4990 __builtin_ia32_vp4dpwssds_mask): New.
4991 * config/i386/i386-c.c (ix86_target_macros_internal):
4992 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
4993 * config/i386/i386-modes.def: Fixed comment typos, added new
4994 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
4995 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
4996 -mavx5124vnniw.
4997 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
4998 (ix86_option_override_internal): Handle new options.
4999 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
5000 avx5124vnniw.
5001 (ix86_expand_builtin): Handle new builtins.
5002 (ix86_additional_allocno_class_p): New.
5003 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
5004 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
5005 (reg_class): Add MOD4_SSE_REGS.
5006 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
5007 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
5008 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
5009 avx5124vnniwintrin.h.
5010 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
5011 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
5012 (define_mode_iterator IMOD4): New.
5013 (define_mode_attr imod4_narrow): Ditto.
5014 (define_insn "mov<mode>"): Ditto.
5015 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
5016 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
5017 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
5018 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
5019 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
5020 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
5021 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
5022 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
5023 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
5024 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
5025 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
5026 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
5027 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
5028 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
5029 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
5030 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
5031 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
5032 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
5033 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
5034 * genmodes.c (mode_size_inline): Extend return type.
5035 * machmode.h (mode_size, mode_base_align): Extend type.
5036
5037 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5038
5039 PR target/78101
5040 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
5041 the appropriate checks for SFmode/DFmode load/stores in GPR
5042 registers.
5043 (fusion_addis_mem_combo_store): Likewise.
5044 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
5045 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
5046 d-form instructions for traditional Altivec registers.
5047 (emit_fusion_p9_load): Likewise.
5048 (emit_fusion_p9_store): Likewise.
5049 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
5050 early clobber from scratch register. Do not match if the register
5051 being stored is the scratch register.
5052 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
5053 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
5054 instructions for traditional Altivec registers.
5055 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5056 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5057 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5058
5059 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
5060
5061 PR target/77933
5062 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
5063 being live in the function and lr needing to be saved. Distinguish
5064 between already saved pushable registers and registers to push.
5065 Check for LR being an available pushable register.
5066
5067 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5068
5069 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
5070 string input is a string constant.
5071 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
5072 via cmpstrnsi even if neither string is constant.
5073
5074 2016-11-17 Jakub Jelinek <jakub@redhat.com>
5075
5076 PR middle-end/78201
5077 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
5078 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
5079 instead, return false if it is NULL, or doesn't fit into uhwi, or
5080 is larger or equal to targetm.max_anchor_offset.
5081
5082 2016-11-17 Pip Cet <pipcet@gmail.com>
5083 Eric Botcazou <ebotcazou@adacore.com>
5084
5085 PR rtl-optimization/78355
5086 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
5087 needs to deal with unaligned accesses.
5088 * doc/tm.texi: Regenerate.
5089 * lra-constraints.c (simplify_operand_subreg): Only invoke
5090 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
5091
5092 2016-11-17 David Malcolm <dmalcolm@redhat.com>
5093
5094 * input.c (selftest::test_lexer_string_locations_long_line): New
5095 function.
5096 (selftest::test_lexer_string_locations_raw_string_multiline): New
5097 function.
5098 (selftest::input_c_tests): Call the new functions, via
5099 for_each_line_table_case.
5100
5101 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5102
5103 * config/aarch64/aarch64.md (mov<mode>): Call
5104 aarch64_split_dimode_const_store on DImode constant stores.
5105 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
5106 New prototype.
5107 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
5108 function.
5109
5110 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5111 Richard Biener <rguenther@suse.de>
5112
5113 PR tree-optimization/77848
5114 * tree-if-conv.c (tree_if_conversion): Always version loops unless
5115 the user specified -ftree-loop-if-convert.
5116
5117 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
5118
5119 PR target/77308
5120 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
5121 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
5122 *thumb2_strd_base_neg): Recognize insn regardless of
5123 current_tune->prefer_ldrd_strd.
5124 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
5125 whenever possible.
5126
5127 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5128
5129 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
5130 instruction type.
5131
5132 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
5133
5134 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
5135 for arcem.
5136 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
5137 * config/arc/arc-cpus.def (quarkse_em): Add.
5138 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
5139 * config/arc/arc-opts.h (FPX_QK): Define.
5140 * config/arc/arc-tables.opt: Regenerate.
5141 * config/arc/arc.c (gen_compare_reg): Change.
5142 (arc_register_move_cost): Avoid Dy,Dx moves.
5143 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
5144 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
5145 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
5146 New expands.
5147 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
5148 (fix_truncsfsi2_fpu): Rename.
5149 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
5150 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
5151 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
5152 * config/arc/t-multilib: Regenerate.
5153
5154 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
5155
5156 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
5157 appropriate.
5158 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
5159 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
5160 (avr_rtx_costs_1, extra_constraint_Q): Same.
5161 (avr_address_cost): Use SUBREG_P if possible.
5162
5163 2016-11-17 Richard Biener <rguenther@suse.de>
5164
5165 PR middle-end/78383
5166 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
5167 non-local goto into CFG.
5168
5169 2016-11-17 Richard Biener <rguenther@suse.de>
5170
5171 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
5172 backward compatibility.
5173 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
5174 * tree-if-conv.c (pass_if_conversion::gate): Do not test
5175 flag_tree_loop_if_convert_stores.
5176 (pass_if_conversion::execute): Likewise.
5177
5178 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5179
5180 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
5181 const_double code before calling aarch64_float_const_zero_rtx_p.
5182
5183 2016-11-17 Richard Biener <rguenther@suse.de>
5184
5185 PR tree-optimization/78306
5186 * ipa-inline-analysis.c (initialize_inline_failed): Do not
5187 inhibit inlining if function calls cilk_spawn.
5188 (can_inline_edge_p): Likewise.
5189
5190 2016-11-17 Richard Biener <rguenther@suse.de>
5191
5192 PR middle-end/78305
5193 * fold-const.c (negate_expr_p): Fix multiplication case.
5194
5195 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
5196
5197 PR target/78357
5198 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
5199 condition.
5200 (TARGET_INIT_LIBFUNCS): Delete definition and...
5201 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
5202 comments.
5203
5204 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
5205
5206 * config/netbsd-stdint.h: New.
5207 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
5208 (x86_64-*-netbsd*): Likewise.
5209
5210 2016-11-16 Andrew PInski <apinski@cavium.com>
5211
5212 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
5213 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
5214 flag_aarch64_verbose_cost instead of checking for details dump.
5215 (aarch64_rtx_costs_wrapper): Likewise.
5216
5217 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5218
5219 PR rtl-optimization/78378
5220 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
5221 inner only if pos is 0. Fix up formatting.
5222
5223 2016-11-17 Alan Modra <amodra@gmail.com>
5224
5225 PR rtl-optimization/78325
5226 PR rtl-optimization/70890
5227 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
5228 for dead regno.
5229
5230 2016-11-16 Jason Merrill <jason@redhat.com>
5231
5232 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
5233
5234 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5235 Richard Biener <rguenther@suse.de>
5236
5237 PR tree-optimization/77848
5238 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
5239 an outer loop, only save basic block aux information for the inner
5240 loop.
5241 (versionable_outer_loop_p): New function.
5242 (tree_if_conversion): Version the outer loop instead of the inner
5243 one if the pattern will be recognized for outer-loop
5244 vectorization.
5245
5246 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * gcc/bb-reorder.c: Remove 'toplev.h' include.
5249 (pass_partition_blocks::gate): No longer check
5250 user_defined_section_attribute, instead check the function decl
5251 for a section attribute.
5252 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
5253 set user_defined_section_attribute.
5254 * gcc/final.c (rest_of_handle_final): Likewise.
5255 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
5256 * gcc/toplev.h: Remove declaration of
5257 user_defined_section_attribute.
5258
5259 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5260
5261 * config/mips/mips.md (casesi_internal_mips16_<mode>):
5262 Explicitly switch between JR and JRC for the table jump. Adjust
5263 instruction count.
5264
5265 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5266
5267 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
5268 `insn_count' to 11 rather than 16.
5269
5270 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5271
5272 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
5273 `ltu' rather than `leu' operation in the RTL pattern
5274
5275 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5276
5277 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
5278 missing <d> instruction prefixes throughout. Correct
5279 formatting.
5280
5281 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5282
5283 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
5284 rather than R_MIPS_JALR relocation in microMIPS code. Do not
5285 cancel short delay slots in PIC call relaxation.
5286
5287 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5288
5289 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
5290 general register with general register or ARM constant into SP
5291 register.
5292
5293 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5294
5295 PR fortran/78299
5296 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
5297 that loop->header == body_bb if broken_loop.
5298
5299 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
5300
5301 * tree-ssa-math-opts.c (bswap_replace): Remove test
5302 of SLOW_UNALIGNED_ACCESS.
5303
5304 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
5305
5306 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
5307 is selected. Pass -mgomp to offload compiler in OpenMP case.
5308 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
5309 declaration from nvptx.c.
5310 (nvptx_gen_shuffle): Declare.
5311 (nvptx_output_set_softstack): Declare.
5312 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
5313 (need_softstack_decl): New variable.
5314 (need_unisimt_decl): New variable.
5315 (diagnose_openacc_conflict): New. Use it...
5316 (nvptx_option_override): ...here. Handle TARGET_GOMP.
5317 (nvptx_encode_section_info): Handle "shared" attribute.
5318 (write_as_kernel): Restrict to OpenACC target regions.
5319 (init_softstack_frame): New.
5320 (nvptx_init_unisimt_predicate): New.
5321 (write_omp_entry): New. Use it...
5322 (nvptx_declare_function_name): ...here to emit OpenMP target region
5323 entrypoints. Handle TARGET_SOFT_STACK. Call
5324 nvptx_init_unisimt_predicate.
5325 (nvptx_output_set_softstack): New.
5326 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
5327 (nvptx_gen_shuffle): Export.
5328 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
5329 predicate.
5330 (nvptx_print_operand): Fix handling of instruction predicates.
5331 (nvptx_get_unisimt_master): New helper function.
5332 (nvptx_get_unisimt_predicate): Ditto.
5333 (nvptx_call_insn_is_syscall_p): Ditto.
5334 (nvptx_unisimt_handle_set): Ditto.
5335 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
5336 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
5337 (nvptx_handle_shared_attribute): New. Use it...
5338 (nvptx_attribute_table): ... here (new entry).
5339 (nvptx_record_offload_symbol): Handle NULL attributes.
5340 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
5341 (nvptx_simt_vf): New.
5342 (TARGET_SIMT_VF): Define.
5343 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
5344 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
5345 -muniform-simt option is active.
5346 (STACK_SIZE_MODE): Define.
5347 (FIXED_REGISTERS): Adjust.
5348 (SOFTSTACK_SLOT_REGNUM): New.
5349 (SOFTSTACK_PREV_REGNUM): New.
5350 (REGISTER_NAMES): Adjust.
5351 (struct machine_function): New fields.
5352 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
5353 (UNSPEC_VOTE_BALLOT): Ditto.
5354 (UNSPEC_LANEID): Ditto.
5355 (UNSPECV_NOUNROLL): Ditto.
5356 (atomic): New attribute.
5357 (predicable): New attribute. Generate predicated forms via
5358 define_cond_exec.
5359 (br_true): Mark as not predicable.
5360 (br_false): Ditto.
5361 (br_true_uni): Ditto.
5362 (br_false_uni): Ditto.
5363 (return): Ditto.
5364 (trap_if_true): Ditto.
5365 (trap_if_false): Ditto.
5366 (nvptx_fork): Ditto.
5367 (nvptx_forked): Ditto.
5368 (nvptx_joining): Ditto.
5369 (nvptx_join): Ditto.
5370 (nvptx_barsync): Ditto.
5371 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
5372 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
5373 (allocate_stack_<mode>): Remove unused pattern.
5374 (set_softstack_insn): New pattern.
5375 (restore_stack_block): Handle for TARGET_SOFT_STACK.
5376 (nvptx_vote_ballot): New pattern.
5377 (omp_simt_lane): Ditto.
5378 (omp_simt_last_lane): Ditto.
5379 (omp_simt_ordered): Ditto.
5380 (omp_simt_vote_any): Ditto.
5381 (omp_simt_xchg_bfly): Ditto.
5382 (omp_simt_xchg_idx): Ditto.
5383 (nvptx_nounroll): Ditto.
5384 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
5385 (atomic_exchange<mode>): Ditto.
5386 (atomic_fetch_add<mode>): Ditto.
5387 (atomic_fetch_addsf): Ditto.
5388 (atomic_fetch_<logic><mode>): Ditto.
5389 * config/nvptx/nvptx.opt (msoft-stack): New option.
5390 (muniform-simt): Ditto.
5391 (mgomp): Ditto.
5392 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
5393 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
5394 * doc/invoke.texi (msoft-stack): Document.
5395 (muniform-simt): Document
5396 (mgomp): Document.
5397 * doc/tm.texi: Regenerate.
5398 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
5399 * target.def: Define it.
5400 * target-insns.def (omp_simt_lane): New.
5401 (omp_simt_last_lane): New.
5402 (omp_simt_ordered): New.
5403 (omp_simt_vote_any): New.
5404 (omp_simt_xchg_bfly): New.
5405 (omp_simt_xchg_idx): New.
5406
5407 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
5408
5409 * config/mips/mips-protos.h (mips_set_text_contents_type): New
5410 prototype.
5411 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
5412 (ASM_OUTPUT_CASE_END): Likewise.
5413 * config/mips/mips.c (mips_set_text_contents_type): New function.
5414 (mips16_emit_constants): Record the pool's initial label number
5415 with the `consttable' insn. Emit a `consttable_end' insn at the end.
5416 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
5417 for `consttable' insns.
5418 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
5419 for `consttable_end' insns.
5420 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
5421 (consttable): Add operand.
5422 (consttable_end): New insn.
5423
5424 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
5425
5426 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
5427 * tree-if-conv.c (tree_if_conversion): Make public.
5428 * * tree-if-conv.h: New file.
5429 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
5430 dynamic alias checks for epilogues.
5431 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
5432 * tree-vect-loop.c: include tree-if-conv.h.
5433 (new_loop_vec_info): Add zeroing orig_loop_info field.
5434 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
5435 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
5436 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
5437 using passed argument.
5438 (vect_transform_loop): Check if created epilogue should be returned
5439 for further vectorization with less vf. If-convert epilogue if
5440 required. Print vectorization success for epilogue.
5441 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
5442 if it is required, pass loop_vinfo produced during vectorization of
5443 loop body to vect_analyze_loop.
5444 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5445 orig_loop_info.
5446 (LOOP_VINFO_ORIG_LOOP_INFO): New.
5447 (LOOP_VINFO_EPILOGUE_P): New.
5448 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
5449 (vect_do_peeling): Change prototype to return epilogue.
5450 (vect_analyze_loop): Add argument of loop_vec_info type.
5451 (vect_transform_loop): Return created loop.
5452
5453 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5454
5455 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
5456 component as used also if LR_REGNO is a live input to the bb.
5457 * df-scan.c (df_get_entry_block_def_set): Return immediately after
5458 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
5459 (df_get_exit_block_use_set): Ditto.
5460 * df.h (df_scan_flags): New enum.
5461 * shrink-wrap.c (try_shrink_wrapping_separate): Set
5462 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
5463 df_update_entry_block_defs and df_update_exit_block_uses
5464 at the start; clear the flag and call those functions at the end.
5465
5466 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5467 Alan Hayward <alan.hayward@arm.com>
5468 David Sherwood <david.sherwood@arm.com>
5469
5470 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
5471 nb_iterations to the number of latch iterations rather than the
5472 number of loop iterations.
5473
5474 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5475 Alan Hayward <alan.hayward@arm.com>
5476 David Sherwood <david.sherwood@arm.com>
5477
5478 * combine.c (maybe_swap_commutative_operands): New function.
5479 (combine_simplify_rtx): Use it.
5480 (change_zero_ext): Likewise.
5481 (make_compound_operation_int): New function, split out of...
5482 (make_compound_operation): ...here. Use
5483 maybe_swap_commutative_operands for both.
5484
5485 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
5486
5487 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
5488 (neon-vfpv3): New FPU, currently an alias for 'neon'.
5489 * arm/arm-tables.opt: Regenerated.
5490 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
5491 neon-vfpv3.
5492 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
5493 and 'neon' are aliases for specific implementations.
5494
5495 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5496 Alan Hayward <alan.hayward@arm.com>
5497 David Sherwood <david.sherwood@arm.com>
5498
5499 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
5500 and use it in the final call to gen_rtx_fmt_ee.
5501 (expand_vec_cond_expr): Update accordingly.
5502 (expand_vec_cmp_expr): Likewise.
5503
5504 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5505 Alan Hayward <alan.hayward@arm.com>
5506 David Sherwood <david.sherwood@arm.com>
5507
5508 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
5509
5510 2016-11-16 Richard Biener <rguenther@suse.de>
5511
5512 PR middle-end/78333
5513 * gimplify.c (gimplify_function_tree): Do not instrument
5514 GNU extern inline functions.
5515
5516 2016-11-16 Martin Liska <mliska@suse.cz>
5517
5518 PR sanitizer/78270
5519 * gimplify.c (gimplify_switch_expr): Always save previous
5520 gimplify_ctxp->live_switch_vars.
5521
5522 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
5523
5524 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
5525 zero_extract operations to allow a movb to occur.
5526 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
5527 * testsuite/gcc.target/arc/movb-2.c: Likewise.
5528 * testsuite/gcc.target/arc/movb-5.c: Likewise.
5529 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
5530 little endian arc.
5531
5532 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5533 Alan Hayward <alan.hayward@arm.com>
5534 David Sherwood <david.sherwood@arm.com>
5535
5536 * expr.c (emit_group_load_1): Tighten check for whether an
5537 access involves only one operand of a CONCAT. Use extract_bit_field
5538 for constants if the bit range does span the whole operand.
5539
5540 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5541 Alan Hayward <alan.hayward@arm.com>
5542 David Sherwood <david.sherwood@arm.com>
5543
5544 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
5545
5546 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5547 Alan Hayward <alan.hayward@arm.com>
5548 David Sherwood <david.sherwood@arm.com>
5549
5550 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
5551 all three iteration counts with an any_* test. Use a single update
5552 for each count. Fix the calculation of nb_iterations_estimate.
5553
5554 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5555
5556 * config/pdp11/pdp11.c: Include dbxout.h.
5557
5558 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
5559
5560 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
5561
5562 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5563
5564 PR target/78364
5565 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
5566 proper ranges for an SBFX instruction.
5567 (extzv_t2): Likewise for UBFX.
5568
5569 2016-11-16 Richard Biener <rguenther@suse.de>
5570
5571 PR tree-optimization/78348
5572 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5573 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
5574 (classify_partition): Set PKIND_MEMCPY if dependence analysis
5575 revealed no dependency, PKIND_MEMMOVE otherwise.
5576
5577 2016-11-16 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR sanitizer/77823
5580 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
5581 it points to non-NULL tree, use it instead of ubsan_create_data.
5582 (instrument_si_overflow): Handle vector signed integer overflow
5583 checking.
5584 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
5585 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
5586 vector IFN_UBSAN_CHECK_*.
5587 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
5588 pass it through to ubsan_build_overflow_builtin.
5589 (expand_neg_overflow, expand_mul_overflow): Likewise.
5590 (expand_vector_ubsan_overflow): New function.
5591 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
5592 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
5593 (expand_arith_overflow): Adjust expand_*_overflow callers.
5594
5595 2016-11-16 Matthias Klose <doko@ubuntu.com>
5596
5597 * doc/install.texi: Remove references to java/libjava.
5598
5599 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
5600
5601 * tree-ssa-coalesce.c (register_default_def): Remove
5602 register_ssa_partition.
5603 (create_outofssa_var_map): Likewise.
5604 * tree-ssa-live.c (register_ssa_partition_check): Remove.
5605 * tree-ssa-live.h (register_ssa_partition): Likewise.
5606
5607 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5608
5609 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
5610 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
5611 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
5612 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
5613 rtx when all sub-rtx are also permanent.
5614 (attr_eq): Simplify.
5615 (attr_copy_rtx): Remove.
5616 (make_canonical, get_attr_value): Use attr_equal_p.
5617 (copy_boolean): Rehash NOT.
5618 (simplify_test_exp_in_temp,
5619 optimize_attrs): Remove call to attr_copy_rtx.
5620 (attr_alt_intersection, attr_alt_union,
5621 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
5622 (make_automaton_attrs): Use attr_eq.
5623
5624 2016-11-15 Matthias Klose <doko@ubuntu.com>
5625
5626 * doc/install.texi: Remove references to java/libjava.
5627 * doc/sourcebuild.texi: Likewise.
5628 * doc/invoke.texi: Likewise.
5629 * doc/standards.texi: Likewise.
5630
5631 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5632 Alan Hayward <alan.hayward@arm.com>
5633 David Sherwood <david.sherwood@arm.com>
5634
5635 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
5636 of VOIDmode.
5637 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5638 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5639 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5640 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5641 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5642 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5643 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
5644
5645 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5646 Alan Hayward <alan.hayward@arm.com>
5647 David Sherwood <david.sherwood@arm.com>
5648
5649 * dce.c (check_argument_store): Pass the size instead of
5650 the memory reference.
5651 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
5652
5653 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5654 Alan Hayward <alan.hayward@arm.com>
5655 David Sherwood <david.sherwood@arm.com>
5656
5657 * alias.c (canon_rtx): Use simplify_gen_binary.
5658
5659 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5660 Alan Hayward <alan.hayward@arm.com>
5661 David Sherwood <david.sherwood@arm.com>
5662
5663 * rtl.h (load_extend_op): Declare.
5664 * rtlanal.c (load_extend_op): New function.
5665 (nonzero_bits1): Use it.
5666 (num_sign_bit_copies1): Likewise.
5667 * cse.c (cse_insn): Likewise.
5668 * fold-const.c (fold_single_bit_test): Likewise.
5669 (fold_unary_loc): Likewise.
5670 * fwprop.c (free_load_extend): Likewise.
5671 * postreload.c (reload_cse_simplify_set): Likewise.
5672 (reload_cse_simplify_operands): Likewise.
5673 * combine.c (try_combine): Likewise.
5674 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
5675 subreg_lowpart_p checks.
5676
5677 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5678 Alan Hayward <alan.hayward@arm.com>
5679 David Sherwood <david.sherwood@arm.com>
5680
5681 * combine.c (simplify_shift_const_1): Use the number of bits
5682 in the inner mode to determine the range of the shift.
5683 When handling shifts of vectors, skip any rules that apply
5684 only to scalars.
5685
5686 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5687 Alan Hayward <alan.hayward@arm.com>
5688 David Sherwood <david.sherwood@arm.com>
5689
5690 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
5691 handling VOIDmode.
5692
5693 2016-11-15 Matthias Klose <doko@ubuntu.com>
5694
5695 * doc/install.texi: Remove references to gcj/libjava.
5696 * doc/invoke.texi: Likewise.
5697
5698 2016-11-15 Jeff Law <law@redhat.com>
5699
5700 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
5701 parameter. Callers changed.
5702 (check-subpath_and_update_thread_path): Extracted from
5703 fsm_find_control_statement_thread_paths.
5704 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
5705 (handle_phi, handle_assignment): Allow any constant node, not
5706 just INTEGER_CST.
5707
5708 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
5709
5710 * config/arc/arc-arch.h: New file.
5711 * config/arc/arc-arches.def: Likewise.
5712 * config/arc/arc-cpus.def: Likewise.
5713 * config/arc/arc-options.def: Likewise.
5714 * config/arc/t-multilib: Likewise.
5715 * config/arc/genmultilib.awk: Likewise.
5716 * config/arc/genoptions.awk: Likewise.
5717 * config/arc/arc-tables.opt: Likewise.
5718 * config/arc/driver-arc.c: Likewise.
5719 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
5720 * common/config/arc/arc-common.c (arc_handle_option): Trace
5721 toggled options.
5722 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
5723 options; check for supported cpu against arc-cpus.def file.
5724 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
5725 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
5726 * config/arc/arc-c.def: Add emacs local variables.
5727 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
5728 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
5729 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
5730 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
5731 (DEFAULT_arc_fpu_build): Define.
5732 (DEFAULT_arc_mpy_option): Define.
5733 * config/arc/arc-protos.h (arc_init): Delete.
5734 * config/arc/arc.c (arc_cpu_name): New variable.
5735 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
5736 (arc_arc700, arc_arc600, arc_arc601): New variable.
5737 (arc_init): Add static; remove selection of default tune value,
5738 cleanup obsolete error messages.
5739 (arc_override_options): Make use of .def files for selecting the
5740 right cpu and option configurations.
5741 * config/arc/arc.h (stdbool.h): Include.
5742 (TARGET_CPU_DEFAULT): Define.
5743 (CPP_SPEC): Remove mcpu=NPS400 handling.
5744 (arc_cpu_to_as): Declare.
5745 (EXTRA_SPEC_FUNCTIONS): Define.
5746 (OPTION_DEFAULT_SPECS): Likewise.
5747 (ASM_DEFAULT): Remove.
5748 (ASM_SPEC): Use arc_cpu_to_as.
5749 (DRIVER_SELF_SPECS): Remove deprecated options.
5750 (arc_base_cpu): Declare.
5751 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
5752 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
5753 variable.
5754 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
5755 * config/arc/arc.md (attr_cpu): Remove.
5756 * config/arc/arc.opt (mno-mpy): Deprecate.
5757 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
5758 (mcpu=ARCHS): Remove.
5759 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
5760 Deprecate.
5761 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
5762 (arc_fpu): Use new defines.
5763 (mpy-option): Change to use numeric or string like inputs.
5764 * config/arc/t-arc (driver-arc.o): New target.
5765 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
5766 * config/arc/t-arc-newlib: Delete.
5767 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
5768 * doc/invoke.texi (ARC): Update arc options.
5769
5770 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
5771
5772 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
5773 insn at the beginning of the constant pool.
5774 (mips_insert_insn_pseudos): New function.
5775 (mips_machine_reorg2): Call it.
5776 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
5777 UNSPEC_INSN_PSEUDO enum values.
5778 (insn_pseudo, consttable): New insns.
5779
5780 2016-11-15 Michael Matz <matz@suse.de>
5781
5782 PR missed-optimization/77881
5783 * combine.c (simplify_comparison): Remove useless subregs
5784 also inside the loop, not just after it.
5785 (make_compound_operation): Recognize some subregs as being
5786 masking as well.
5787
5788 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
5789 Alan Hayward <alan.hayward@arm.com>
5790 David Sherwood <david.sherwood@arm.com>
5791
5792 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
5793 GET_MODE_SIZE typo.
5794
5795 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5796
5797 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
5798 for using xxinsertw and vinsert{b,h} on ISA 3.0.
5799
5800 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
5801 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
5802 vinsert{b,h} on ISA 3.0.
5803
5804 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
5805
5806 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
5807 and cmpnop in two steps: first the ones not accessed in original gimple
5808 expression in a endian independent way and then the ones not accessed
5809 in the final result in an endian-specific way.
5810 (bswap_replace): Stop doing big endian adjustment.
5811
5812 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
5813
5814 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
5815 (*ashl<mode>3_doubleword): Ditto.
5816
5817 2016-11-14 Martin Liska <mliska@suse.cz>
5818
5819 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
5820
5821 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
5822 Richard Biener <rguenther@suse.de>
5823
5824 * doc/invoke.texi (fgimple): Document.
5825 * dumpfile.h (TDF_GIMPLE): Add.
5826 * dumpfile.c (dump_options): Add gimple.
5827 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
5828 for TDF_GIMPLE.
5829 (dump_gimple_label): Likewise.
5830 (dump_gimple_phi): Likewise.
5831 (dump_gimple_bb_header): Likewise.
5832 (dump_phi_nodes): Likewise.
5833 (pp_cfg_jump): Likewise. Pass in dump flags.
5834 (dump_implicit_edges): Adjust.
5835 * passes.c (pass_init_dump_file): Do not dump function header
5836 for TDF_GIMPLE.
5837 * tree-cfg.c (dump_function_to_file): Dump function return type
5838 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
5839 GIMPLE stmts.
5840 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
5841 (dump_generic_node): Likewise.
5842 * function.h (struct function): Add pass_startwith member.
5843 * passes.c (execute_one_pass): Implement startwith.
5844 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
5845 and assign proper version for parsed ssa names.
5846 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
5847 * internal-fn.c (expand_PHI): New function.
5848 * internal-fn.h (expand_PHI): Declared here.
5849 * internal-fn.def: New defination for PHI.
5850 * tree-cfg.c (lower_phi_internal_fn): New function.
5851 (build_gimple_cfg): Call it.
5852 (verify_gimple_call): Condition for passing label as arg in internal
5853 function PHI.
5854 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
5855 present PHIs with arguments.
5856
5857 2016-11-14 Martin Liska <mliska@suse.cz>
5858
5859 PR bootstrap/78069
5860 * common.opt: Add prefer-atomic as a new enum value for
5861 -fprofile-update.
5862 * coretypes.h: Likewise.
5863 * doc/invoke.texi: Document the new option value.
5864 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
5865 * tree-profile.c (tree_profiling): Select default value
5866 of -fprofile-update when 'prefer-atomic' is selected.
5867
5868 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5869
5870 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
5871 (cortex_a57_alu_shift): ...here.
5872
5873 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5874
5875 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
5876 Use bfx attribute.
5877 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5878 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5879 (<optab>si3_insn_uxtw): Likewise.
5880 (<optab><mode>3_insn): Likewise.
5881 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
5882 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
5883 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
5884 (<optab><mode>): Likewise.
5885 (insv<mode>): Likewise.
5886 (andim_ashift<mode>_bfiz): Likewise.
5887 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
5888 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
5889 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
5890 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
5891 (exynos_m1_alu_p): Likewise.
5892 * config/arm/types.md: Add bfx.
5893 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
5894
5895 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
5896
5897 * config/aarch64/aarch64.c (cortexa57_vector_cost):
5898 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
5899
5900 2016-11-14 Richard Biener <rguenther@suse.de>
5901
5902 PR tree-optimization/78312
5903 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
5904 flow-sensitive info.
5905
5906 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
5907
5908 PR target/78093
5909 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
5910 * config/avr/avr.opt (-mabsdata): New option.
5911 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
5912 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
5913 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
5914 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
5915 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
5916 spec depending on AVR_ISA_LDS.
5917 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
5918
5919 2016-11-13 Jakub Jelinek <jakub@redhat.com>
5920
5921 * match.pd: Don't try to compare addresses of variables with
5922 DECL_VALUE_EXPR.
5923
5924 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5925
5926 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
5927 (propagate_vr_accross_jump_function): Handle unary expressions.
5928 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
5929 (load_from_param_1): New.
5930 (load_from_unmodified_param): Factor common part into load_from_param_1.
5931 (load_from_param): New.
5932 (compute_complex_assign_jump_func): Handle unary expressions.
5933 (update_jump_functions_after_inlining): Likewise.
5934 (ipa_write_jump_function): Likewise.
5935 (ipa_read_jump_function): Likewise.
5936
5937 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5938
5939 PR c/35503
5940 * doc/invoke.texi: Document Wrestrict.
5941 * pretty-print.c (pp_format): Add case for "Z" specifier.
5942 (test_pp_format): Test "Z" specifier.
5943
5944 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
5945
5946 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
5947 original function needs a static chain.
5948
5949 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
5950
5951 PR target/78336
5952 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
5953 ASM_OUTPUT_DEF.
5954
5955 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
5956
5957 PR target/77957
5958 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5959 return early if !optional_tbtab.
5960
5961 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
5962
5963 PR rtl-optimization/59461
5964 * doc/rtl.texi (paradoxical subregs): Add missing word.
5965 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
5966 in modes with precision larger than that of last_set_mode.
5967 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
5968 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
5969 REGs to paradoxical SUBREGs.
5970 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
5971 larger than a word before invoking LOAD_EXTEND_OP on it.
5972
5973 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5974
5975 PR target/78243
5976 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
5977 element order for little endian ordering.
5978
5979 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
5980 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
5981 number.
5982
5983 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
5984
5985 PR target/78310
5986 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
5987 when calculating operand 2.
5988 (rotate to rotatex zext splitter): Ditto.
5989
5990 2016-11-11 Jeff Law <law@redhat.com>
5991
5992 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
5993 function.
5994 (stmt_uses_name_in_undefined_way): New function, extracted from
5995 find_implicit_erroneous_behavior and extended for div/mod case.
5996 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
5997 find_explicit_erroneous_behavior and extended for div/mod case.
5998 (find_implicit_erroneous_behavior): Use new helper function.
5999 (find_explicit_erroneous_behavior): Use new helper function.
6000
6001 2016-11-11 Richard Biener <rguenther@suse.de>
6002
6003 PR tree-optimization/71575
6004 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
6005 bogus assert.
6006
6007 2016-11-11 Richard Biener <rguenther@suse.de>
6008
6009 PR middle-end/78295
6010 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
6011 about uninitialized destination arg of BIT_INSERT_EXPR.
6012
6013 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
6014
6015 PR c/37998
6016 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
6017 terminology. Expand to remove ambiguity.
6018
6019 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6020
6021 PR rtl-optimization/78232
6022 * combine.c (try_combine): Add a big comment about why reusing i2dest
6023 is undesirable.
6024 (change_zero_ext): Do not call simplify_gen_binary, do the
6025 simplifications manually.
6026
6027 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6028
6029 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
6030 enable HImode and QImode to go in vector registers by default if
6031 the -mvsx-small-integer option is enabled.
6032 (rs6000_secondary_reload_simple_move): Likewise.
6033 (rs6000_preferred_reload_class): Don't force integer constants to
6034 be loaded into vector registers that we can easily make into
6035 memory (or being created in the GPRs and moved over with direct move).
6036 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
6037 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
6038 vector extraction on ISA 3.0 when the scalar integer can be
6039 allocated in vector registers. Generate the VEC_SELECT directy,
6040 and don't use UNSPEC's to avoid having the scalar type in a vector
6041 register. Make the expander target registers, and let the
6042 combiner fold in results storing to memory, if the machine
6043 supports stores.
6044 (vsx_extract_<mode>_di): Likewise.
6045 (vsx_extract_<mode>_p9): Likewise.
6046 (vsx_extract_<mode>_di_p9): Likewise.
6047 (vsx_extract_<mode>_store_p9): Likewise.
6048 (vsx_extract_si): Likewise.
6049 (vsx_extract_<mode>_p8): Likewise.
6050 (p9_lxsi<wd>zx): Delete, no longer used.
6051 (p9_stxsi<wd>x): Likewise.
6052 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
6053 integers in vector registers for ISA 3.0.
6054 (QHI): Update comment.
6055 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
6056 vector extract instructions in sign/zero extend.
6057 (zero_extendhi<mode>): Likewise.
6058 (extendqi<mode>): Likewise.
6059 (extendhi<mode>2): Likewise.
6060 (HImode splitter for load/sign extend in vector register): Likewise.
6061 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
6062 optimizing floating point conversions to/from small data types and
6063 rewrite it to support QImode/HImode being allowed in vector
6064 registers on ISA 3.0.
6065 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6066 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
6067 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
6068 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
6069 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6070 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
6071 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
6072 VSPLITISW on ISA 2.07.
6073 (movhi_internal): Combine movhi_internal and movqi_internal into
6074 one mov<mode>_internal with an iterator. Add support for QImode
6075 and HImode being allowed in vector registers. Make large number
6076 of attributes and constraints easier to read.
6077 (movqi_internal): Likewise.
6078 (mov<mode>_internal): Likewise.
6079 (movdi_internal64): Fix constraint to allow loading -16..15 with
6080 VSPLITISW on ISA 2.07.
6081 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
6082 well as DImode.
6083
6084 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
6085
6086 PR rtl-optimization/78241
6087 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
6088 but emit initial peel copy if niter expr is not reliable.
6089
6090 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
6091
6092 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
6093 (maybe_record_trace_start): If the CFI is different on the new and
6094 old paths, print out both to the dump file before ICEing.
6095
6096 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
6097
6098 * target.def (additional_allocno_class_p): New.
6099 * hooks.h (hook_bool_reg_class_t_false): New prototype.
6100 * hooks.c (hook_bool_reg_class_t_false): New.
6101 * ira.c (setup_allocno_and_important_classes): Use the new hook.
6102 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
6103 * doc/tm.texi: Update.
6104
6105 2016-11-10 Jason Merrill <jason@redhat.com>
6106
6107 * gengtype.c (new_structure): Append to structures list.
6108 (find_structure): Likewise.
6109
6110 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
6111
6112 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
6113 this_dir is 2. Check for this_dir non-zero before dir != this_dir
6114 check.
6115
6116 2016-11-10 Jakub Jelinek <jakub@redhat.com>
6117
6118 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
6119 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
6120 TRUNC_DIV_EXPR.
6121 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
6122 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
6123 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
6124 teams distribute parallel for simd even to distribute and teams
6125 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
6126 OMP_CLAUSE_DEPEND_SINK case.
6127 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
6128 (omp_no_lastprivate): Removed.
6129 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
6130 (gimplify_omp_for): Likewise.
6131 (computable_teams_clause): Fail for automatic vars from current
6132 function not yet seen in bind expr.
6133 * langhooks.c (lhd_omp_scalar_p): New function.
6134 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
6135 * varpool.c (varpool_node::get_create): Set node->offloading
6136 even for DECL_EXTERNAL decls.
6137 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
6138 (LANG_HOOKS_OMP_SCALAR_P): Define.
6139 (LANG_HOOKS_DECLS): Use it.
6140
6141 2016-11-10 Martin Liska <mliska@suse.cz>
6142
6143 PR sanitizer/78270
6144 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
6145 only when SWITCH_BODY is a BIND_EXPR.
6146
6147 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
6148
6149 PR debug/78112
6150 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
6151 on the context only when it has no DIE yet.
6152
6153 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
6154
6155 * arm.h (target_cpus): Delete.
6156 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
6157 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
6158 (all_architectures): Likewise.
6159 (arm_option_override): Adjust use of CPU enums.
6160 (arm_sched_reorder): Likewise.
6161 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
6162 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
6163 * arm/genopt.sh (processor_type): Prefix enumeration entries with
6164 TARGET_CPU_.
6165 * arm-tables.opt: Regenerated.
6166
6167 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
6168
6169 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
6170 (falkor): New core.
6171 * config/aarch64/aarch64-tune.md: Regenerated.
6172 * config/arm/arm-cores.def (falkor): New core.
6173 * config/arm/arm-tables.opt: Regenerated.
6174 * config/arm/arm-tune.md: Regenerated.
6175 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
6176 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
6177 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
6178 (ARM Options/-mtune): Likewise.
6179
6180 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6181
6182 Revert
6183 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6184
6185 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6186 (propagate_vr_accross_jump_function): Likewise.
6187 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6188 (load_from_param_1): New.
6189 (load_from_unmodified_param): Factor common part into load_from_param_1.
6190 (load_from_param): New.
6191 (compute_complex_assign_jump_func): Handle unary expressions.
6192 (ipa_write_jump_function): Likewise.
6193 (ipa_read_jump_function): Likewise.
6194
6195 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6196
6197 * simplify-rtx.c (simplify_binary_operation_1): Simplify
6198 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
6199 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
6200 is a const_int.
6201
6202 2016-11-09 David Malcolm <dmalcolm@redhat.com>
6203
6204 * print-rtl-function.c: Include varasm.h.
6205 (print_any_param_name): New function.
6206 (print_param): New function.
6207 (print_rtx_function): Call print_param for each argument.
6208 * print-rtl.c (rtx_writer::finish_directive): New function.
6209 * print-rtl.h (rtx_writer::finish_directive): New decl.
6210
6211 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
6212
6213 PR target/78262
6214 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
6215 operand 0 as earlyclobber.
6216 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
6217
6218 2016-11-09 Martin Liska <mliska@suse.cz>
6219
6220 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
6221
6222 2016-11-09 Jakub Jelinek <jakub@redhat.com>
6223
6224 PR target/77718
6225 * builtins.c (expand_builtin_memcmp): Formatting fix.
6226
6227 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
6228 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
6229 or of them, renumber other enumerators.
6230 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
6231 * doc/invoke.texi: Document -fsanitize=shift-base and
6232 -fsanitize-shift-exponent, document -fsanitize=shift as
6233 having those 2 suboptions.
6234
6235 2016-11-09 Richard Biener <rguenther@suse.de>
6236
6237 * fold-const.c (tree_swap_operands_p): Remove unused arg.
6238 * fold-const.c (tree_swap_operands_p): Likewise.
6239 (fold_binary_loc): Adjust.
6240 (fold_ternary_loc): Likewise.
6241 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
6242 * gimple-fold.c (fold_stmt_1): Likewise.
6243 * gimple-match-head.c (gimple_resimplify2): Likewise.
6244 (gimple_resimplify3): Likewise.
6245 (gimple_simplify): Likewise.
6246 * tree-ssa-dom.c (record_equality): Likewise.
6247 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
6248 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6249 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
6250
6251 2016-11-09 Richard Biener <rguenther@suse.de>
6252
6253 * tree-ssa-dom.c (canonicalize_comparison): Remove.
6254 (optimize_stmt): Remove redundant pre-propagation canonicalization
6255 of comparison operand order.
6256
6257 2016-11-09 Martin Liska <mliska@suse.cz>
6258
6259 * fold-const-call.c (fold_const_call): Fix the folding.
6260
6261 2016-11-09 Richard Biener <rguenther@suse.de>
6262
6263 * common.opt (flag_evaluation_order): Remove.
6264 * expr.c (expand_operands): Remove code guarded by
6265 flag_evaluation_order.
6266 * fold-const.c (reorder_operands_p): Remove, it always returns
6267 true.
6268 (negate_expr_p): Remove calls to reorder_operands_p.
6269 (fold_negate_expr): Likewise.
6270 (tree_swap_operands_p): Likewise.
6271 (fold_binary_loc): Likewise.
6272
6273 2016-11-09 Andreas Schwab <schwab@suse.de>
6274
6275 PR target/78254
6276 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
6277 insns operating on a register.
6278
6279 2016-11-09 Richard Biener <rguenther@suse.de>
6280
6281 PR tree-optimization/78007
6282 * tree-vect-stmts.c (vectorizable_bswap): New function.
6283 (vectorizable_call): Call vectorizable_bswap for
6284 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
6285
6286 2016-11-09 Richard Biener <rguenther@suse.de>
6287
6288 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6289 Look at the DR_BASE_ADDRESS object for forcing alignment.
6290
6291 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6292
6293 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
6294 (propagate_vr_accross_jump_function): Likewise.
6295 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
6296 (load_from_param_1): New.
6297 (load_from_unmodified_param): Factor common part into load_from_param_1.
6298 (load_from_param): New.
6299 (compute_complex_assign_jump_func): Handle unary expressions.
6300 (ipa_write_jump_function): Likewise.
6301 (ipa_read_jump_function): Likewise.
6302
6303 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
6304
6305 PR ipa/78121
6306 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
6307 Also fold constant passed as argument while computing value range.
6308 (propagate_constants_accross_call): Pass param type.
6309 * ipa-prop.c: export ipa_get_callee_param_type.
6310 * ipa-prop.h: export ipa_get_callee_param_type.
6311
6312 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6313
6314 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
6315 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
6316
6317 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
6318
6319 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
6320 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
6321 ASAN_STACK_MAGIC_MIDDLE.
6322 (asan_global_struct): Increase the size of fields.
6323 (asan_add_global): Add new field constructor.
6324 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
6325 __asan_version_mismatch_check_v8.
6326
6327 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
6328
6329 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
6330 at runtime.
6331
6332 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
6333
6334 PR target/70799
6335 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
6336 Handle ASHIFT and LSHIFTRT.
6337 (dimode_scalar_chain::compute_convert_gain): Ditto.
6338 (dimode_scalar_chain::convert_insn): Ditto.
6339
6340 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6341
6342 * gimple-ssa-store-merging.c: Include selftest.h
6343 (verify_array_eq): New function.
6344 (verify_shift_bytes_in_array): Likewise.
6345 (verify_shift_bytes_in_array_right): Likewise.
6346 (verify_clear_bit_region): Likewise.
6347 (verify_clear_bit_region_be): Likewise.
6348 (store_merging_c_tests): Likewise.
6349 * selftest.h (store_merging_c_tests): Declare prototype.
6350 * selftest-run-tests.c (selftest::run_tests): Run
6351 store_merging_c_tests.
6352
6353 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6354
6355 * config/arm/arm.opt (mold-rtx-costs): Delete.
6356 (mnew-generic-costs): Delete.
6357 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
6358 * config/arm/arm.c (arm_rtx_costs_1): Delete.
6359 (arm_size_rtx_costs): Likewise.
6360 (arm_slowmul_rtx_costs): Likewise.
6361 (arm_fastmul_rtx_costs): Likewise.
6362 (arm_xscale_rtx_costs): Likewise.
6363 (arm_9e_rtx_costs): Likewise.
6364 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
6365 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
6366 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
6367 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
6368 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
6369 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
6370 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
6371 arm_cortex_m7_tune):
6372 Delete rtx_costs field.
6373 (arm_new_rtx_costs): Rename to...
6374 (arm_rtx_costs_internal): ... This.
6375 (arm_rtx_costs): Remove old way of doing rtx costs.
6376
6377 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6378
6379 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
6380 (arm_fastmul_tune): Likewise.
6381 (arm_strongarm_tune): Likewise.
6382 (arm_xscale_tune): Likewise.
6383 (arm_9e_tune): Likewise.
6384 (arm_marvell_pj4_tune): Likewise.
6385 (arm_v6t2_tune): Likewise.
6386 (arm_v6m_tune): Likewise.
6387 (arm_fa726te_tune): Likewise.
6388
6389 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6390
6391 PR tree-optimization/78234
6392 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
6393 in start != 0 case.
6394
6395 2016-11-08 Martin Liska <mliska@suse.cz>
6396
6397 PR testsuite/78242
6398 * dbgcnt.def: Add new debug counter asan_use_after_scope.
6399 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
6400 with a value expr. Do not add artificial variables to
6401 live_switch_vars. Use the debug counter.
6402 (gimplify_target_expr): Use the debug counter.
6403 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
6404 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
6405 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
6406
6407 2016-11-08 Richard Biener <rguenther@suse.de>
6408
6409 * tree-vect-stmts.c (get_group_load_store_type): If the
6410 access is aligned do not trigger peeling for gaps.
6411 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
6412 force alignment of vars with DECL_USER_ALIGN.
6413
6414 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
6415
6416 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
6417
6418 2016-11-08 Richard Biener <rguenther@suse.de>
6419
6420 PR tree-optimization/78205
6421 * tree-vect-stmts.c (vectorizable_load): Move check whether
6422 we may run into gaps when BB vectorizing SLP permutations ...
6423 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
6424 here where we can do a more precise check.
6425
6426 2016-11-08 Richard Biener <rguenther@suse.de>
6427
6428 PR tree-optimization/78224
6429 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
6430 Split the fallthru edge in case its successor may have PHIs.
6431 Do not free dominance info.
6432
6433 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6434
6435 PR target/78229
6436 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6437 EH info even for bzhi and pdep/pext.
6438
6439 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
6440
6441 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
6442 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
6443
6444 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6445
6446 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
6447 if appropriate.
6448 * config/rs6000/vector.md (div<mode>3): Ditto.
6449
6450 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
6451
6452 * configure.ac (.hidden): Change to conftest_s string. Provide string
6453 for AIX assembler.
6454 (gcc_cv_ld_hidden): Yes for AIX.
6455 * configure: Regenerate.
6456
6457 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
6458
6459 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
6460 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
6461 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
6462 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6463 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
6464 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
6465 from #if to if.
6466 (rs6000_xcoff_visibility): New.
6467 (rs6000_xcoff_declare_function_name): Add visibility support.
6468 (rs6000_xcoff_asm_globalize_decl_name): New.
6469 (rs6000_xcoff_asm_output_aligned_decl_common): New.
6470 (rs6000_asm_weaken_decl): New.
6471 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
6472 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
6473 reference function.
6474
6475 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
6476
6477 PR driver/78206
6478 * incpath.c (remove_dup): Also silently ignore EPERM.
6479
6480 2016-11-07 Martin Jambor <mjambor@suse.cz>
6481
6482 * tree.c (verify_type_variant): Use pointer comparison to check that
6483 TYPE_SIZE_UNIT match.
6484
6485 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6486
6487 PR target/77834
6488 * dse.c (dse_step5): Call scan_reads even if just
6489 insn_info->frame_read. Improve and fix dump file messages.
6490
6491 PR target/78227
6492 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
6493 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
6494
6495 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6496
6497 PR middle-end/35691
6498 * match.pd: Add following two patterns:
6499 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
6500 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
6501
6502 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
6503
6504 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
6505 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
6506 * rtl.h (duplicate_reg_notes): Declare.
6507 * rtlanal.c (duplicate_reg_note): New function.
6508
6509 PR rtl-optimization/77309
6510 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
6511 don't assume an equality comparison for plain COMPARE.
6512 (simplify_comparison): Pass a more accurate code to
6513 make_compound_operation.
6514
6515 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
6516
6517 * target.def (compute_pressure_classes): New target hook.
6518 * doc/tm.texi.in: Document it.
6519 * doc/tm.texi: Regenerate.
6520 * ira.c (setup_pressure_classes): Call target hook if defined.
6521
6522 2016-11-07 David Malcolm <dmalcolm@redhat.com>
6523
6524 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
6525 method.
6526 (rtx_writer::print_rtx): In compact mode, omit trailing operands
6527 that have the default values.
6528 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
6529 method.
6530 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
6531 label string from expected dump.
6532 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
6533 from expected dump.
6534
6535 2016-11-07 Jakub Jelinek <jakub@redhat.com>
6536
6537 PR target/77834
6538 * alias.c (nonoverlapping_memrefs_p): If one decl is
6539 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
6540
6541 2016-11-07 Richard Biener <rguenther@suse.de>
6542
6543 PR target/78229
6544 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
6545 EH info.
6546
6547 2016-11-07 Richard Biener <rguenther@suse.de>
6548
6549 PR tree-optimization/78218
6550 * gimple-ssa-store-merging.c
6551 (pass_store_merging::terminate_all_aliasing_chains):
6552 Drop unused argument, fix alias check to also consider uses.
6553 (pass_store_merging::execute): Adjust.
6554
6555 2016-11-07 Richard Biener <rguenther@suse.de>
6556
6557 PR tree-optimization/78228
6558 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
6559 undefined behavior.
6560
6561 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6562
6563 PR target/77822
6564 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
6565 aarch64_simd_shift_imm_<mode> predicate for operand 1.
6566 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
6567 to restrict them to an appropriate range and add FAIL check if the
6568 region they specify is out of range. Delete useless constraint
6569 strings.
6570 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
6571 2 and 3 to restrict their range and add pattern predicate.
6572
6573 2016-11-07 Martin Liska <mliska@suse.cz>
6574
6575 * asan.c (enum asan_check_flags): Move the enum to header file.
6576 (asan_init_shadow_ptr_types): Make type creation more generic.
6577 (shadow_mem_size): New function.
6578 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
6579 Rewritten stack unpoisoning code.
6580 (build_shadow_mem_access): Add new argument return_address.
6581 (instrument_derefs): Instrument local variables if use after scope
6582 sanitization is enabled.
6583 (asan_store_shadow_bytes): New function.
6584 (asan_expand_mark_ifn): Likewise.
6585 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
6586 * asan.h (enum asan_mark_flags): Moved here from asan.c
6587 (asan_protect_stack_decl): Protect all declaration that need
6588 to live in memory.
6589 (asan_sanitize_use_after_scope): New function.
6590 (asan_no_sanitize_address_p): Likewise.
6591 * cfgexpand.c (partition_stack_vars): Consider
6592 asan_sanitize_use_after_scope in condition.
6593 (expand_stack_vars): Likewise.
6594 * common.opt (-fsanitize-address-use-after-scope): New option.
6595 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
6596 Explain the parameter.
6597 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
6598 * gimplify.c (build_asan_poison_call_expr): New function.
6599 (asan_poison_variable): Likewise.
6600 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
6601 variables that have address taken.
6602 (gimplify_decl_expr): Likewise.
6603 (gimplify_target_expr): Likewise for C++ temporaries.
6604 (sort_by_decl_uid): New function.
6605 (gimplify_expr): Unpoison all variables for a label we can jump
6606 from outside of a scope.
6607 (gimplify_switch_expr): Unpoison variables defined in the switch
6608 context.
6609 (gimplify_function_tree): Clear asan_poisoned_variables.
6610 (asan_poison_variables): New function.
6611 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
6612 * internal-fn.c (expand_ASAN_MARK): New function.
6613 * internal-fn.def (ASAN_MARK): Declare.
6614 * opts.c (finish_options): Handle -fstack-reuse if
6615 -fsanitize-address-use-after-scope is enabled.
6616 (common_handle_option): Enable address sanitization if
6617 -fsanitize-address-use-after-scope is enabled.
6618 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
6619 New parameter.
6620 * params.h: Likewise.
6621 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
6622 * sanitizer.def: Define __asan_poison_stack_memory and
6623 __asan_unpoison_stack_memory functions.
6624 * asan.c (asan_mark_poison_p): New function.
6625 (transform_statements): Handle asan_mark_poison_p calls.
6626 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
6627
6628 2016-11-07 Tamar Christina <tamar.christina@arm.com>
6629
6630 PR driver/78196
6631 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
6632
6633 2016-11-07 Martin Liska <mliska@suse.cz>
6634
6635 * tree-profile.c (gimple_gen_time_profiler): Set proper type
6636 to time_profiler_counter_ptr.
6637
6638 2016-11-07 Richard Biener <rguenther@suse.de>
6639
6640 PR tree-optimization/37150
6641 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
6642 parameter.
6643 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
6644 (vect_analyze_slp_cost_1): Account for the real number of
6645 permutations emitted and for dead loads.
6646 (vect_transform_slp_perm_load): Add n_perms parameter counting
6647 the number of emitted permutations.
6648 * tree-vect-stmts.c (vectorizable_load): Adjust.
6649
6650 2016-11-07 Richard Biener <rguenther@suse.de>
6651
6652 PR tree-optimization/78189
6653 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
6654 alignment computation.
6655
6656 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
6657
6658 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
6659
6660 2016-11-05 Martin Sebor <msebor@redhat.com>
6661
6662 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
6663 documentation.
6664
6665 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
6666
6667 PR bootstrap/78188
6668 PR c++/71848
6669 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
6670
6671 2016-11-04 Jakub Jelinek <jakub@redhat.com>
6672
6673 PR target/77834
6674 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
6675 doesn't have rtl set.
6676
6677 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6678
6679 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
6680 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
6681 rs6000_gimple_fold_builtin.
6682 (rs6000_gimple_fold_builtin): New function. Add handling for
6683 early expansion of vector addition builtins.
6684
6685 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6686
6687 * expr.h (copy_blkmode_from_reg): Delete.
6688 * expr.c (copy_blkmode_from_reg): Make static.
6689
6690 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
6691
6692 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
6693 * combine.c (LOAD_EXTEND_OP): Delete.
6694 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
6695 * cse.c (LOAD_EXTEND_OP): Delete.
6696 * fold-const.c (LOAD_EXTEND_OP): Likewise.
6697 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
6698 * postreload.c (LOAD_EXTEND_OP): Delete.
6699 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
6700 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
6701 (find_reloads): Likewise.
6702 * reload1.c (eliminate_regs_1): Likewise.
6703 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
6704 (num_sign_bit_copies1): Likewise.
6705
6706 2016-11-04 David Malcolm <dmalcolm@redhat.com>
6707
6708 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
6709 (selftest::ix86_test_dumping_hard_regs): New function.
6710 (selftest::ix86_run_selftests): New function.
6711 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
6712 selftest::ix86_run_selftests.
6713 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
6714 * doc/tm.texi: Regenerate
6715 * selftest-rtl.h: New file.
6716 * rtl-tests.c: Include "selftest-rtl.h".
6717 (selftest::assert_rtl_dump_eq): Make non-static.
6718 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
6719 (selftest::test_dumping_regs): Update comment.
6720 * selftest-run-tests.c: Include "target.h".
6721 (selftest::run_tests): If non-NULL, call
6722 targetm.run_target_selftests.
6723 * target.def (run_target_selftests): New hook.
6724
6725 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6726
6727 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
6728 representative core for this architecture.
6729 * config/arm/arm-cores.def (cortex-m33): Define new processor.
6730 * config/arm/arm-tables.opt: Regenerate.
6731 * config/arm/arm-tune.md: Likewise.
6732 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
6733 valid -mcpu options.
6734 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
6735
6736 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6737
6738 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
6739 representative core for this architecture.
6740 * config/arm/arm-cores.def (cortex-m23): Define new processor.
6741 * config/arm/arm-tables.opt: Regenerate.
6742 * config/arm/arm-tune.md: Likewise.
6743 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
6744 this tuning parameters apply to in the comment.
6745 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
6746 valid -mcpu options.
6747 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
6748
6749 2016-11-04 Bin Cheng <bin.cheng@arm.com>
6750
6751 * fold-const.c (fold_cond_expr_with_comparison): Remove call
6752 to pedantic_non_lvalue_loc. Remove useless code for lvalue
6753 where cond_expr can't be a lvalue.
6754
6755 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
6756
6757 * config/arc/arc.c (arc_process_double_reg_moves): Use
6758 gen_dexcl_2op call.
6759 * config/arc/arc.md (movsi_insn): Disable unsupported move
6760 instructions for ARCv2 cores.
6761 (movdi): Use prepare_move_operands.
6762 (movsf, movdf): Use move_dest_operand predicate.
6763 * config/arc/constraints.md (Chs): Enable when barrel shifter is
6764 present.
6765 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
6766 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
6767 also a destination.
6768 (dexcl_3op_peep2_insn_nores): Likewise.
6769 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
6770 (LINK_COMMAND_SPEC): Remove.
6771
6772 2016-11-04 Richard Biener <rguenther@suse.de>
6773
6774 PR middle-end/78185
6775 * loop-invariant.c (find_exits): Record entering inner
6776 loops as possibly exiting to handle infinite sub-loops.
6777 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
6778 (fill_always_executed_in_1): Honor infinite child loops.
6779
6780 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6781
6782 PR target/78192
6783 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
6784 has already been adjusted for endianness, so don't adjust it any
6785 further.
6786
6787 PR target/77993
6788 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
6789 ICmode unless we have standard PowerPC floating point.
6790 * config/rs6000/rs6000.md (FP iterator): Likewise.
6791 (FMOVE128 iterator): Likewise.
6792
6793 2016-11-03 Jakub Jelinek <jakub@redhat.com>
6794 Alexandre Oliva <aoliva@redhat.com>
6795 Jason Merrill <jason@redhat.com>
6796
6797 PR debug/28767
6798 PR debug/56974
6799 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
6800 langhook.
6801 * langhooks.c (lhd_type_dwarf_attribute): New function.
6802 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
6803 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
6804 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
6805 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
6806 (check_qualified_type, check_aligned_type): Call it.
6807 * dwarf2out.c (modified_type_die): Don't use type_main_variant
6808 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6809 check_base_type and check_lang_type.
6810 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
6811 return early. For pointer-to-data-member add DW_AT_use_location
6812 attribute.
6813 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
6814 if needed.
6815 (gen_type_die_with_usage): Don't use type_main_variant
6816 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
6817 check_base_type and check_lang_type. Formatting fixes. Call
6818 get_debug_type langhook.
6819
6820 2016-11-03 Jason Merrill <jason@redhat.com>
6821
6822 * tree.c (check_lang_type): New.
6823 (check_qualified_type): Use it.
6824 (check_aligned_type): Use it.
6825 * tree.h: Declare it.
6826
6827 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
6828
6829 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
6830 (arm*-freebsd*): Likewise.
6831 (arm*-*-netbsdelf*): Likewise.
6832 (arm*-*-linux*): Likewise.
6833 (arm*-*-uclinux*eabi*): Likewise.
6834 (arm*-*-phoenix*): Likewise.
6835 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
6836 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
6837 specified. Default to arm6 if target_cpu_cname is not set.
6838 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
6839 default cpu has been correctly configured.
6840 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
6841 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
6842 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
6843 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
6844 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6845 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
6846 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
6847
6848 2016-11-03 Jiong Wang <jiong.wang@arm.com>
6849
6850 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
6851 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
6852 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
6853 (output_cfa_loc): Support DW_CFA_val_expression.
6854 (output_cfa_loc_raw): Likewise.
6855 (output_cfi): Likewise.
6856 (output_cfi_directive): Likewise.
6857 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
6858 (dw_cfi_oprnd2_desc): Likewise.
6859 (mem_loc_descriptor): Recognize new pattern generated for value
6860 expression.
6861
6862 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
6863
6864 PR rtl-optimization/78186
6865 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
6866 well, when converting to IOR.
6867
6868 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
6869
6870 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
6871 (vec_interleave_highv8qi): Likewise.
6872
6873 2016-11-03 Martin Liska <mliska@suse.cz>
6874
6875 * profile.c (instrument_values): Fix coding style.
6876 (branch_prob): Use renamed function.
6877 * tree-profile.c (init_ic_make_global_vars): Likewise.
6878 (gimple_init_edge_profiler): Rename to
6879 gimple_init_gcov_profiler.
6880 tree_time_profiler_counter variable declaration.
6881 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
6882 emission.
6883 * value-prof.h: Remove an argument.
6884
6885 2016-11-03 Richard Biener <rguenther@suse.de>
6886
6887 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
6888 symtab_node::get_create.
6889
6890 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6891
6892 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
6893 Move comments into more natural position.
6894
6895 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
6896
6897 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
6898 (PTRDIFF_TYPE): Define as int.
6899
6900 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6901
6902 * ccmp.c (expand_ccmp_expr_1): Adjust.
6903 (expand_ccmp_expr): Likewise.
6904 (expand_ccmp_next): Likewise.
6905 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
6906 (aarch64_gen_ccmp_first): Likewise.
6907 * doc/tm.texi: Regenerate.
6908 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
6909 (gen_ccmp_next): Likewise.
6910
6911 2016-11-03 Bin Cheng <bin.cheng@arm.com>
6912
6913 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
6914 (vect_is_simple_reduction): Swap cond_reduction by inversion.
6915
6916 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
6917
6918 * config/i386/i386.c (ix86_init_libfuncs): New. Call
6919 darwin_rename_builtins here.
6920 (ix86_expand_divmod_libfunc): New.
6921 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
6922 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
6923
6924 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
6925 Nathan Sidwell <nathan@acm.org>
6926
6927 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
6928
6929 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
6930
6931 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
6932 New function.
6933 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
6934 to format MODE_INT and MODE_PARTIAL_INT literals.
6935
6936 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
6937
6938 PR target/78168
6939 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
6940 NULL if TARGET_SPE_ABI.
6941
6942 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6943
6944 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
6945 clear padding bits even when they're less than a byte.
6946
6947 2016-11-02 Richard Biener <rguenther@suse.de>
6948
6949 * gimple-ssa-store-merging.c: Include gimplify-me.h.
6950 (imm_store_chain_info::output_merged_stores): Force base_addr
6951 to be proper GIMPLE for a MEM_REF address.
6952 (pass_store_merging::execute): Restrict negative bitpos
6953 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
6954 check. Take into account non-NULL_TREE offset if the base
6955 is already addressable.
6956
6957 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
6958
6959 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
6960 New pattern.
6961 (aarch64_be_crypto_sha1hv4si): New pattern.
6962
6963 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
6964
6965 * config/aarch64/aarch64.md (add<mode>3): Remove
6966 redundant code. Don't split frame based additions.
6967
6968 2016-11-02 Richard Biener <rguenther@suse.de>
6969
6970 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
6971 redundant val and dest members.
6972 (store_immediate_info::store_immediate_info): Adjust.
6973 (merged_store_group::merged_store_group): Adjust.
6974 (merged_store_group::apply_stores): Likewise.
6975 (struct imm_store_chain_info): Add base_addr field.
6976 (imm_store_chain_info::imm_store_chain_info): New constructor.
6977 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
6978 (imm_store_chain_info::output_merged_store): Likewise. Use
6979 addr_base which is already the address.
6980 (imm_store_chain_info::output_merged_stores): Likewise.
6981 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
6982 imm_store_chain_info instead of base. Fix alias check.
6983 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
6984 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
6985 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
6986 use the address of the base and adjust for other changes.
6987
6988 2016-11-02 Martin Liska <mliska@suse.cz>
6989
6990 * fold-const-call.c (host_size_t_cst_p): Test whether
6991 t is convertible to size_t.
6992
6993 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6994
6995 PR tree-optimization/78170
6996 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
6997 introduced by native_encode_expr on little-endian as well.
6998
6999 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7000
7001 PR tree-optimization/78162
7002 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
7003 as invalid.
7004
7005 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7006
7007 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
7008 function comment.
7009 (aarch64_next_callee_save): Likewise.
7010 (aarch64_pushwb_single_reg): Likewise.
7011 (aarch64_gen_storewb_pair): Likewise.
7012 (aarch64_push_regs): Likewise.
7013 (aarch64_gen_loadwb_pair): Likewise.
7014 (aarch64_pop_regs): Likewise.
7015 (aarch64_gen_store_pair): Likewise.
7016 (aarch64_gen_load_pair): Likewise.
7017 (aarch64_save_callee_saves): Likewise.
7018 (aarch64_restore_callee_saves): Likewise.
7019
7020 2016-11-02 Richard Biener <rguenther@suse.de>
7021
7022 PR tree-optimization/78035
7023 PR tree-optimization/77964
7024 * gimple-pretty-print.c (pp_points_to_solution): Print
7025 vars_contains_interposable.
7026 * tree-ssa-alias.c: Include varasm.h.
7027 (ptrs_compare_unequal): Check vars_contains_interposable and
7028 decl_binds_to_current_def_p.
7029 (dump_points_to_solution): Dump vars_contains_interposable.
7030 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
7031 flag.
7032 * tree-ssa-structalias.c: Include varasm.h.
7033 (set_uids_in_ptset): Record whether vars contains a
7034 not decl_binds_to_current_def_p variable in vars_contains_interposable.
7035 (ipa_escaped_pt): Update initializer.
7036
7037 2016-11-02 Richard Biener <rguenther@suse.de>
7038
7039 PR tree-optimization/78047
7040 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
7041 fake field at offset zero conservatively regarding to may_have_pointers.
7042
7043 2016-11-02 Richard Biener <rguenther@suse.de>
7044
7045 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
7046 infer_value_range on stmt ops and update value-ranges.
7047 Dump visited stmts and blocks.
7048 (evrp_dom_walker::push_value_range): Dump changes.
7049 (evrp_dom_walker::pop_value_range): Likewise.
7050 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
7051
7052 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7053
7054 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
7055 rtx_insn *.
7056 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
7057
7058 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7059
7060 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
7061 and adjust for that.
7062 * cfgrtl.h (delete_insn_chain): Adjust prototype.
7063
7064 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7065
7066 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
7067 to rtx_insn *.
7068 (transcode_memory_rtx): Likewise.
7069 (move_to_acc): Likewise.
7070 (move_from_acc): Likewise.
7071 (move_acc_to_reg): Likewise.
7072 (move_to_x): Likewise.
7073 (move_to_hl): Likewise.
7074 (move_to_de): Likewise.
7075 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
7076 (rs6000_emit_savres_rtx): Likewise.
7077 (rs6000_emit_prologue): Likewise.
7078 * reorg.c (update_reg_unused_notes): Likewise.
7079 * rtl.h (remove_note): Adjust prototype.
7080 * rtlanal.c (remove_note): Make argument type rtx_insn *.
7081
7082 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7083
7084 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
7085 variables so some can be rtx_insn *.
7086 (alpha_emit_xfloating_libcall): Likewise.
7087 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
7088 (mips_legitimize_tls_address): Likewise.
7089 * optabs.c (expand_binop): Likewise.
7090 * reload1.c (gen_reload): Likewise.
7091
7092 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7093
7094 * reorg.c (relax_delay_slots): Split up the trial variable.
7095
7096 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7097
7098 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
7099 of variables rtx_insn *.
7100 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
7101 (legitimize_tls_address): Likewise.
7102 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7103 (bfin_gen_bundles): Likewise.
7104 * config/c6x/c6x.c (reorg_split_calls): Likewise.
7105 (c6x_reorg): Likewise.
7106 * config/frv/frv.c (frv_reorder_packet): Likewise.
7107 * config/i386/i386.c (ix86_split_idivmod): Likewise.
7108 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
7109 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
7110 * config/mn10300/mn10300.c: Likewise.
7111 * config/rl78/rl78.c: Likewise.
7112 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
7113 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
7114 (sh_expand_cmpnstr): Likewise.
7115 (sh_expand_strlen): Likewise.
7116 (sh_expand_setmem): Likewise.
7117 * config/sh/sh.md: Likewise.
7118 * emit-rtl.c (emit_pattern_before): Likewise.
7119 * except.c: Likewise.
7120 * final.c: Likewise.
7121 * jump.c: Likewise.
7122
7123 2016-11-01 Jason Merrill <jason@redhat.com>
7124
7125 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
7126 a COND_EXPR with constant condition.
7127
7128 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7129
7130 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
7131 and its initialization.
7132
7133 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7134
7135 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
7136 HAVE_AS_LEB128.
7137
7138 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7139
7140 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
7141 argument, don't call add_linkage_name if it is true.
7142 (gen_variable_die): For C++ inline static data members, consider the
7143 initial call when old_die is NULL to be declaration and call
7144 add_name_and_src_coords_attributes in that case with true as
7145 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
7146 (gen_member_die): For C++ inline static data members, emit a
7147 definition DIE right away in DW_TAG_compile_unit context.
7148
7149 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
7150
7151 PR target/78166
7152 * config/pa/pa.md: Add new shift/add patterns to handle
7153 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
7154
7155 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
7156
7157 * config/xtensa/xtensa-protos.h
7158 (xtensa_use_return_instruction_p): New prototype.
7159 * config/xtensa/xtensa.c (xtensa_current_frame_size,
7160 xtensa_callee_save_size): Remove.
7161 (struct machine_function): Add new fields: current_frame_size,
7162 callee_save_size, frame_laid_out and epilogue_done.
7163 (compute_frame_size, xtensa_expand_prologue,
7164 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
7165 cfun->machine->callee_save_size and xtensa_current_frame_size
7166 with cfun->machine->current_frame_size.
7167 (compute_frame_size): Update cfun->machine->frame_laid_out and
7168 don't update frame layout after reload completion.
7169 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
7170 instead of zeroing xtensa_current_frame_size.
7171 (xtensa_use_return_instruction_p): New function.
7172 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
7173 declaration.
7174 (INITIAL_ELIMINATION_OFFSET): Use return value of
7175 compute_frame_size instead of xtensa_current_frame_size value.
7176 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
7177 function xtensa_use_return_instruction_p instead of inline code.
7178
7179 2016-11-01 Jakub Jelinek <jakub@redhat.com>
7180
7181 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
7182 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
7183 * dwarf2out.c (rnglist_idx): New variable.
7184 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
7185 (DEBUG_RNGLISTS_SECTION): Define.
7186 (ranges_base_label): New variable.
7187 (size_of_die) <case dw_val_class_range_list>: If using
7188 DW_FORM_rnglistx, count size of uleb128 of range list index.
7189 (value_format) <case dw_val_class_range_list>: For
7190 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
7191 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
7192 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
7193 (add_ranges_num): Remove useless prototype. Don't multiply
7194 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
7195 for new fields added to dw_ranges struct.
7196 (add_ranges): Add maybe_new_sec argument and pass it
7197 through to add_ranges_num.
7198 (note_rnglist_head): New function.
7199 (add_ranges_by_labels): Pass true as maybe_new_sec to
7200 add_ranges_num, call note_rnglist_head on the head of the list.
7201 (output_ranges): Add function comment. Switch to
7202 .debug_ranges section here and emit .Ldebug_ranges0 label.
7203 (index_rnglists, output_rnglists): New functions.
7204 (gen_subprogram_die): Formatting fixes.
7205 (add_high_low_attributes): Don't divide offsets
7206 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
7207 first list element or when pointing into the middle of
7208 a list. Pass true as second argument to add_ranges on the
7209 first block fragment after cold/hot section switch.
7210 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
7211 section instead of .debug_ranges. Initialize
7212 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
7213 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
7214 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
7215 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
7216 Call output_rnglists for -gdwarf-5.
7217 (dwarf2out_c_finalize): Clear rnglist_idx.
7218
7219 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
7220
7221 * combine.c (simplify_compare_const): Add gcc_fallthrough.
7222
7223 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
7224 Tamar Christina <tamar.christina@arm.com>
7225
7226 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
7227 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
7228 (vmaxnmq_f32): Likewise.
7229 (vminnm_f32): Likewise.
7230 (vminnmq_f32): Likewise.
7231 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
7232 (vminnm): Likewise.
7233 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
7234 expander.
7235
7236 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
7237
7238 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
7239 binary floating point types supported by the hardware except for
7240 double.
7241 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
7242 vector instruction for optimizing extracting a SImode from a
7243 V4SImode vector and converting it to floating point.
7244 (vsx_xvcvuxwdp_df): Likewise.
7245 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
7246 registers to be any VSX register. Move stores to the end of the
7247 constraints.
7248 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
7249 to optimize extracting a SImode from a V4SImode vector and
7250 converting it to a binary floating point type supported by the
7251 hardware. Use the vector converts instead of extracting the
7252 element, sign extending it, and then converting it to double.
7253 Other floating point types than double first convert to double,
7254 then the double is converted to that type.
7255 (vsx_extract_si_<uns>float_<mode>): Likewise.
7256
7257 2016-10-31 Andrew Pinski <apinski@cavium.com>
7258
7259 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
7260 Rewrite handling of part num to handle the case where
7261 multiple implementers share the same part num.
7262
7263 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7264 Jakub Jelinek <jakub@redhat.com>
7265
7266 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
7267 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
7268
7269 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7270
7271 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
7272 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
7273 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
7274 (is_cu_die, is_unit_die): Likewise.
7275 (should_move_die_to_comdat, break_out_comdat_types): Adjust
7276 comments for DWARF5 DW_UT_type units.
7277 (output_compilation_unit_header): Add UT argument, output
7278 start of DWARF5 .debug_info section header.
7279 (output_comp_unit): Add dwo_id argument. Adjust
7280 output_compilation_unit_header caller, for DW_UT_split_compile
7281 emit dwo_id field, otherwise padding1. Emit padding2 field.
7282 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
7283 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
7284 (output_skeleton_debug_sections): Add dwo_id argument, for
7285 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
7286 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
7287 DW_UT_type or DW_UT_split_type units rather than .debug_types.
7288 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
7289 DW_TAG_compile_unit for skeleton unit die. Don't add
7290 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
7291 address to output_comp_unit and output_skeleton_debug_sections.
7292
7293 * dwarf2out.c (debug_line_str_section): New variable.
7294 (debug_line_str_hash): Likewise.
7295 (DEBUG_LINE_STR_SECTION): Define.
7296 (set_indirect_string): Handle DW_FORM_line_strp like
7297 DW_FORM_strp.
7298 (find_string_form): Fix up formatting.
7299 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
7300 Fix up indentation.
7301 (output_die): Handle DW_FORM_line_strp.
7302 (DWARF5_USE_DEBUG_LINE_STR): Define.
7303 (output_line_string): New function.
7304 (output_file_names): Add -gdwarf-5 support.
7305 (output_line_info): Likewise.
7306 (init_sections_and_labels): Initialize debug_line_str_section.
7307 (output_indirect_string): Change 2nd argument from void *
7308 to enum dwarf_form form, compare with form rather than
7309 DW_FORM_strp.
7310 (output_indirect_strings): Pass DW_FORM_strp to
7311 output_indirect_string traversion.
7312 (dwarf2out_finish): Output .debug_line_str strings.
7313 (dwarf2out_c_finalize): Clear debug_line_str_section and
7314 debug_line_str_hash.
7315
7316 2016-10-31 Tom Tromey <tom@tromey.com>
7317
7318 PR debug/77315
7319 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
7320 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
7321 DW_OP_GNU_push_tls_address case.
7322 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
7323
7324 2016-10-31 Jakub Jelinek <jakub@redhat.com>
7325
7326 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
7327 for frame_offset_rel bit.
7328 (struct array_descr_info): Add rank field.
7329 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
7330 and placeholder_seen fields.
7331 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
7332 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
7333 DW_OP_pick 1 into DW_OP_over.
7334 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
7335 gen_variant_part): Clear placeholder_{arg,seen}.
7336 (loc_list_from_tree_1): Drop const from context argument.
7337 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
7338 (loc_list_for_address_of_addr_expr_of_indirect_ref,
7339 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
7340 context argument.
7341 (add_scalar_info): Drop const from context argument. Handle
7342 context->placeholder_arg.
7343 (add_bound_info): Drop const from context argument.
7344 (gen_descr_array_type_die): Drop const from ctx variable.
7345 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
7346 attribute and use a single DW_TAG_generic_subrange instead of
7347 7 DW_TAG_subrange_type for assumed rank arrays.
7348
7349 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
7350 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
7351 from bool to 1-bit uchar bitfield. Add num_assigned and
7352 offset_emitted bitfields.
7353 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
7354 for dw_val_class_lineptr and dw_val_class_macptr. Handle
7355 dw_val_class_loclistsptr.
7356 (new_addr_loc_descr): Fix up formatting.
7357 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
7358 (add_AT_low_high_pc): Fix up formatting.
7359 (add_AT_loclistsptr): New function.
7360 (AT_lbl): Allow dw_val_class_loclistsptr.
7361 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
7362 Handle dw_val_class_loclistsptr.
7363 (loc_list_idx): New variable.
7364 (output_loclists_offsets, assign_location_list_indexes): New
7365 functions.
7366 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
7367 add size_of_uleb128 of the index. Drop never used
7368 dwarf_split_debug_info AT_index handling. Handle
7369 dw_val_class_loclistsptr.
7370 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
7371 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
7372 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
7373 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
7374 DW_FORM_loclistx indexes.
7375 (output_attr_index_or_value): Fix up formatting. Don't handle
7376 dw_val_class_loc_list here.
7377 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
7378 For dw_val_class_loc_list call output_loc_list_offset rather than
7379 output_attr_index_or_value.
7380 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
7381 or .debug_loclists.dwo section name for debug_loc_section.
7382 (resolve_addr_in_expr): Formatting fix.
7383 (index_location_lists): Likewise.
7384 (dwarf2out_finish): If there are any location lists, for
7385 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
7386 index_location_lists only if have_location_lists. Call
7387 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
7388 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
7389 -gsplit-dwarf also emit offset table.
7390
7391 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
7392 (size_of_die, value_format, output_die): Use
7393 DW_FORM_data16 for 128-bit dw_val_class_const_double or
7394 dw_val_class_wide_int.
7395
7396 * dwarf2out.c (dwarf_op): Renamed to ...
7397 (dwarf_OP): ... this.
7398 (convert_descriptor_to_mode, scompare_loc_descriptor,
7399 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7400 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
7401 callers.
7402 (dwarf_AT, dwarf_TAG): New functions.
7403 (check_die): Disallow DW_AT_call_all_calls next to
7404 DW_AT_GNU_all_call_sites.
7405 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
7406 and attributes instead of the corresponding GNU tag and attributes.
7407 (gen_subprogram_die): Likewise. Emit call site information even
7408 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
7409 DW_AT_defaulted in comment.
7410 (resolve_addr): Handle DW_AT_call_origin attribute on
7411 DW_TAG_call_site DIE like DW_AT_abstract_origin on
7412 DW_TAG_GNU_call_site DIE.
7413
7414 * dwarf2out.c (dwarf_op): New function.
7415 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
7416 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
7417 (output_loc_operands, output_loc_operands_raw): Likewise.
7418 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
7419 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
7420 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
7421 if dwarf_version < 5.
7422 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
7423 DW_OP_GNU_xxx.
7424 (scompare_loc_descriptor, ucompare_loc_descriptor,
7425 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
7426 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
7427 optimize_location_into_implicit_ptr): Likewise. Only punt for
7428 !dwarf_strict if dwarf_version < 5.
7429 (string_cst_pool_decl): Adjust comment.
7430 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
7431
7432 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
7433 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7434 (struct dw_val_node): Add val_file_implicit field.
7435 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
7436 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
7437 output_die): Handle dw_val_class_const_implicit,
7438 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
7439 (abbrev_die_table): Change into va_gc vec.
7440 (abbrev_die_table_allocated, abbrev_die_table_in_use,
7441 ABBREV_DIE_TABLE_INCREMENT): Remove.
7442 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
7443 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
7444 variables.
7445 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
7446 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
7447 vectors.
7448 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
7449 functions.
7450 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
7451 the implicit value.
7452 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
7453 vec.
7454 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
7455 unit. Call optimize_abbrev_table.
7456 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
7457 abbrev_die_table being a va_gc vec.
7458
7459 PR tree-optimization/77860
7460 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
7461 also integral complex and vector constants.
7462
7463 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
7464 optimize_macinfo_range, save_macinfo_strings): Replace
7465 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
7466 (output_macinfo): Likewise. Emit .debug_macro* rather than
7467 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
7468 (init_sections_and_labels): Use .debug_macro* labels rather than
7469 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
7470 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
7471 or DW_AT_GNU_macros for -gdwarf-5.
7472
7473 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
7474
7475 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
7476
7477 2016-09-11 Le-Chun Wu <lcwu@google.com>
7478 Mark Wielaard <mjw@redhat.com>
7479
7480 * common.opt (Wshadow=global): New option. Default for -Wshadow.
7481 (Wshadow=local): New option.
7482 (Wshadow-local): Hidden alias for -Wshadow=local.
7483 (Wshadow=compatible-local): New option.
7484 (Wshadow-compatible-local): Hidden alias for
7485 -Wshadow=compatible-local.
7486 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
7487 Wshadow=compatible-local.
7488
7489 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7490
7491 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
7492 Check slp defs for COND_EXPR by swapping/inverting operands if the
7493 new parameter SWAP indicates so.
7494 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
7495 is isomorphic to the first stmt via swapping/inverting. Store swap
7496 information in the new parameter SWAP.
7497 (vect_build_slp_tree): New local array SWAP and pass it to function
7498 vect_build_slp_tree_1. Cleanup result handling code for function
7499 call to vect_get_and_check_slp_defs. Skip operand swapping if the
7500 order of operands has been fixed as indicated by SWAP[i].
7501
7502 2016-10-31 Bin Cheng <bin.cheng@arm.com>
7503
7504 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
7505 unnecessary data dependence check after visited store stmt.
7506
7507 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7508
7509 PR tree-optimization/71915
7510 PR tree-optimization/71490
7511 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
7512 stride_type field.
7513 (find_basis_for_base_expr): Require stride types to match when
7514 seeking a basis.
7515 (alloc_cand_and_find_basis): Record the stride type.
7516 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
7517 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
7518 the expressions having those types.
7519 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
7520 (create_mul_ssa_cand): Likewise.
7521 (create_mul_imm_cand): Likewise.
7522 (create_add_ssa_cand): Likewise.
7523 (create_add_imm_cand): Likewise.
7524 (legal_cast_p_1): Change interface to accept types rather than the
7525 expressions having those types.
7526 (legal_cast_p): Pass types to legal_cast_p_1.
7527 (slsr_process_cast): Pass stride type to
7528 alloc_cand_and_find_basis.
7529 (slsr_process_copy): Likewise.
7530 (dump_candidate): Display stride type when a cast exists.
7531 (create_add_on_incoming_edge): Introduce a cast when necessary for
7532 the stride type.
7533 (analyze_increments): Change the code checking for invalid casts
7534 to rely on the stride type, and update the documentation and
7535 example. Change the code checking for pointer multiplies to rely
7536 on the stride type.
7537 (insert_initializers): Introduce a cast when necessary for the
7538 stride type. Use the stride type for the type of the initializer.
7539
7540 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7541
7542 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
7543
7544 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR rtl-optimization/77919
7547 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
7548 into memory if both modes are complex and their inner modes have the
7549 same precision. If the two modes are different complex modes, convert
7550 each part separately and generate a new CONCAT.
7551
7552 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7553
7554 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
7555
7556 2016-10-29 Jakub Jelinek <jakub@redhat.com>
7557
7558 PR target/78148
7559 * gimple-ssa-store-merging.c
7560 (imm_store_chain_info::output_merged_store): Use build_aligned_type
7561 instead of SET_TYPE_ALIGN on shared integral type.
7562
7563 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
7564
7565 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
7566 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
7567 Adjust comment.
7568
7569 2016-10-28 Jeff Law <law@redhat.com>
7570
7571 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
7572 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
7573
7574 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7575
7576 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
7577
7578 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7579
7580 * target.def (min_arithmetic_precision): New hook.
7581 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
7582 * doc/tm.texi: Regenerate.
7583 * internal-fn.c (expand_arith_overflow): Adjust handling of target
7584 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
7585 * targhooks.c (default_min_arithmetic_precision): New function.
7586 * targhooks.h (default_min_arithmetic_precision): Declare.
7587 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
7588 (sparc_min_arithmetic_precision): New function.
7589
7590 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7591
7592 PR target/71847
7593 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
7594 Swap commutative operands in new RTL if needed. Handle zero_ext
7595 in the set_dest.
7596 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
7597 PATTERN (insn).
7598
7599 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7600 Kugan Vivekanandarajah <kuganv@linaro.org>
7601 Jim Wilson <jim.wilson@linaro.org>
7602
7603 PR tree-optimization/43721
7604 * target.def: New hook expand_divmod_libfunc.
7605 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
7606 * doc/tm.texi: Regenerate.
7607 * internal-fn.def: Add new entry for DIVMOD ifn.
7608 * internal-fn.c (expand_DIVMOD): New.
7609 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
7610 targhooks.h.
7611 (widen_mul_stats): Add new field divmod_calls_inserted.
7612 (target_supports_divmod_p): New.
7613 (divmod_candidate_p): Likewise.
7614 (convert_to_divmod): Likewise.
7615 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
7616 renumber_gimple_stmt_uids at beginning of function. Call
7617 convert_to_divmod and record stats for divmod.
7618 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
7619 TARGET_EXPAND_DIVMOD_LIBFUNC.
7620 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
7621 divmod_simode.
7622
7623 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
7624 Segher Boessenkool <segher@kernel.crashing.org>
7625
7626 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
7627 swapping the arms of the branch.
7628 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
7629 sequence for the generic signed-signed-signed case.
7630
7631 2016-10-28 Jeff Law <law@redhat.com>
7632
7633 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
7634 fallthru comment.
7635 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
7636
7637 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
7638
7639 PR rtl-optimization/78029
7640 * function.c (prologue_contains, epilogue_contains): New functions.
7641 (record_prologue_seq, record_epilogue_seq): New functions.
7642 * function.h (prologue_contains, epilogue_contains,
7643 record_prologue_seq, record_epilogue_seq): New declarations.
7644 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
7645 mixing prologue and epilogue insns.
7646 (init_deps): Initialize the new fields in struct deps_desc.
7647 * sched-int.h (struct deps_desc): New fields last_prologue,
7648 last_epilogue, and last_logue_was_epilogue.
7649 * shrink-wrap.c (emit_common_heads_for_components): Record all
7650 emitted prologue and epilogue insns.
7651 (emit_common_tails_for_components): Ditto.
7652 (insert_prologue_epilogue_for_components): Ditto.
7653
7654 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7655
7656 PR middle-end/22141
7657 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
7658 * common.opt (fstore-merging): New Optimization option.
7659 * opts.c (default_options_table): Add entry for
7660 OPT_ftree_store_merging.
7661 * fold-const.h (can_native_encode_type_p): Declare prototype.
7662 * fold-const.c (can_native_encode_type_p): Define.
7663 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
7664 (PARAM_MAX_STORES_TO_MERGE): Likewise.
7665 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
7666 * passes.def: Insert pass_tree_store_merging.
7667 * tree-pass.h (make_pass_store_merging): Declare extern
7668 prototype.
7669 * gimple-ssa-store-merging.c: New file.
7670 * doc/invoke.texi (Optimization Options): Document
7671 -fstore-merging.
7672 (--param documentation): Document store-merging-allow-unaligned
7673 and max-stores-to-merge.
7674
7675 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
7676
7677 PR middle-end/72747
7678 * gimplify.c (gimplify_init_constructor): Move emit of constructor
7679 assignment to earlier in the if/else logic.
7680
7681 2016-10-28 Richard Biener <rguenther@suse.de>
7682
7683 PR middle-end/78128
7684 PR middle-end/71002
7685 * fold-const.c (make_bit_field_ref): Only adjust alias set
7686 when the original alias set was zero.
7687
7688 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7689
7690 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
7691 (s390_adjust_loops): New function.
7692 (s390_reorg): Invoke s390_adjust_loops.
7693 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
7694 ("osc_break"): New insn definition.
7695
7696 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7697
7698 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
7699 * config.gcc: Support alternate archXX cpu levels with
7700 --with-arch= and --with-tune=.
7701 * config/s390/linux.h: Translate new archXX cpu levels to the
7702 original names when calling GAS.
7703 * config/s390/tpf.h: Likewise.
7704 * doc/invoke.texi: Document the alternate cpu level names.
7705
7706 2016-10-28 Jakub Jelinek <jakub@redhat.com>
7707
7708 PR rtl-optimization/77919
7709 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
7710 MEM if mode1 is not a complex mode.
7711
7712 PR rtl-optimization/78132
7713 * ree.c (combine_reaching_defs): Give up if copy_needed and
7714 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
7715
7716 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
7717
7718 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
7719
7720 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
7721
7722 * config/rs6000/constraints.md (wH constraint): Add new
7723 constraints for allowing 32-bit integers (and eventually 8/16-bit
7724 integers) into the vector registers.
7725 (wI constraint): Likewise.
7726 (wJ constraint): Likewise.
7727 (wK constraint): Likewise.
7728 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
7729 -mvsx-small-integer as a default option for ISA 2.07
7730 (i.e. power8).
7731 (POWERPC_MASKS): Likewise.
7732 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
7733 switch to turn off small integer support in vector registers.
7734 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
7735 test for -mupper-regs-di, since it is already done with the
7736 reg_add[mode].scalar_in_vsx_p. Add support for the switch
7737 -mvsx-small-integer.
7738 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
7739 constraints.
7740 (rs6000_setup_reg_addr_masks): Likewise.
7741 (rs6000_init_hard_regno_mode_ok): Likewise.
7742 (rs6000_option_override_internal): Add consistency checks for
7743 -mvsx-small-integer.
7744 (rs6000_secondary_reload_simple_move): SImode is a simple move if
7745 -mvsx-small-integer.
7746 (rs6000_secondary_reload): Use std::swap.
7747 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
7748 VSX_REGS for small integers in vector registers, since there is no
7749 D-FORM address mode for such types.
7750 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
7751 (rs6000_opt_masks): Add -mvsx-small-integer.
7752 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
7753 support.
7754 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
7755 extracts can be done on ISA 2.07.
7756 (vsx_extract_<mode>): Add support for small integers in vsx
7757 registers.
7758 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
7759 longer support V4SImode in this pattern.
7760 (vsx_extract_si): New insn to support extraction of SImode in ISA
7761 2.07 using either xxextractuw or vspltw.
7762 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
7763 longer support V4SImode in this pattern.
7764 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
7765 wJ, and wK constraints.
7766 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
7767 storing SDmode with VSX instructions.
7768 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
7769 GPR load and before the FPR and VSX loads. Remove ??, ! from the
7770 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
7771 small integers in vector registers.
7772 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
7773 load and before the FPR and VSX loads. Remove ??, ! from the
7774 constraints. Add VEXTSW2D support for small integers in vector
7775 registers.
7776 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
7777 integers in vector registers.
7778 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
7779 move instead of using an UNSPEC.
7780 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
7781 integers in vector registers.
7782 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
7783 move instead of using an UNSPEC.
7784 (movsi_internal1): Add support for -mvsx-small-integer. Align
7785 columns so that it is more readable.
7786 (SImode splitter for ISA 3.0 constants): Add splitter for
7787 -128..127 constants that can easily be constructed on ISA 3.0.
7788 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
7789 constraints.
7790
7791 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7792
7793 PR middle-end/78025
7794 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
7795 functions.
7796
7797 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
7798
7799 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
7800 PIC_OFFSET_TABLE_REGNUM twice.
7801
7802 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7803
7804 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
7805 support for constant operand for OP.
7806
7807 2016-10-27 Jakub Jelinek <jakub@redhat.com>
7808
7809 * dwarf2out.c (gen_member_die): Only reparent_child instead of
7810 splice_child_die if child doesn't have DW_AT_specification attribute.
7811
7812 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7813
7814 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
7815 (TARGET_HAVE_LDREXBH): Likewise.
7816 (TARGET_HAVE_LDACQ): Likewise.
7817
7818 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
7819
7820 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
7821 logic to to decide whether to copy over old value to register for new
7822 value.
7823 * config/arm/sync.md: Add comments explaning why mode and code
7824 attribute are not defined in iterators.md
7825 (thumb1_atomic_op_str): New code attribute.
7826 (thumb1_atomic_newop_str): Likewise.
7827 (thumb1_atomic_fetch_op_str): Likewise.
7828 (thumb1_atomic_fetch_newop_str): Likewise.
7829 (thumb1_atomic_fetch_oldop_str): Likewise.
7830 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
7831 mirror the more restrictive constraints of the Thumb-1 insns after
7832 split compared to Thumb-2 counterpart insns.
7833 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
7834 in sync with non atomic version.
7835 (atomic_nand<mode>): Likewise.
7836 (atomic_fetch_<sync_optab><mode>): Likewise.
7837 (atomic_fetch_nand<mode>): Likewise.
7838 (atomic_<sync_optab>_fetch<mode>): Likewise.
7839 (atomic_nand_fetch<mode>): Likewise.
7840 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
7841 in sync with atomic version.
7842 (thumb1_subsi3_insn): Likewise.
7843 (thumb1_andsi3_insn): Likewise.
7844 (thumb1_iorsi3_insn): Likewise.
7845 (thumb1_xorsi3_insn): Likewise.
7846
7847 2016-10-27 Nick Clifton <nickc@redhat.com>
7848
7849 * plugin.c (register_plugin_info): Produce an error message if the
7850 plugin is not found in the hash table.
7851
7852 2016-10-27 Bin Cheng <bin.cheng@arm.com>
7853
7854 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
7855 New pattern.
7856
7857 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
7858
7859 PR target/78056
7860 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
7861 define builtin functions from the bdesc_spe_predicates or
7862 bdesc_spe_evsel arrays if the builtin mask is not compatible with
7863 the current compiler configuration.
7864 (paired_init_builtins): Modify loop to not define define builtin
7865 functions from the bdesc_paried_preds array if the builtin mask is
7866 not compatible with the current compiler configuration.
7867 (altivec_init_builtins): Modify loops to not define the
7868 __builtin_altivec_stxvl function nor the builtin functions from
7869 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
7870 builtin mask is not compatible with the current compiler
7871 configuration.
7872
7873 2016-10-26 Jeff Law <law@redhat.com>
7874
7875 * config/sh/sh.c (output_branch): Add missing fallthru comments.
7876 (gen_shl_and): Likewise.
7877 * config/sh/sh.md (movsicc): Add missing fallthru comments.
7878
7879 * config/mips/mips.c (mips16_constant_cost): Add missing
7880 fallthru comments.
7881 (mips16_build_call_stub): Increase buffer size. Adjust
7882 fallthru comment.
7883
7884 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7885
7886 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
7887 INSN_UIDs for all insns in compact mode.
7888 (rtx_writer::print_rtx): Likewise.
7889 * print-rtl.h (rtx_writer::flag_compact): Update comment.
7890 * rtl-tests.c (selftest::test_dumping_insns): Update expected
7891 output to include INSN_UID.
7892 (selftest::test_uncond_jump): Likewise.
7893
7894 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
7895
7896 * haifa-sched.c (call_used_regs_num): Rename to...
7897 (call_saved_regs_num): ...this.
7898 (fixed_regs_num): New variable.
7899 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
7900 regs not call_used.
7901 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
7902
7903 2016-10-26 David Malcolm <dmalcolm@redhat.com>
7904
7905 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
7906 class rtx_writer.
7907 * print-rtl.c (outfile): Delete global.
7908 (sawclose): Likewise.
7909 (indent): Likewise.
7910 (in_call_function_usage): Likewise.
7911 (flag_compact): Likewise.
7912 (flag_simple): Likewise.
7913 (rtx_writer::rtx_writer): New ctor.
7914 (print_rtx_operand_code_0): Convert to...
7915 (rtx_writer::print_rtx_operand_code_0): ...this.
7916 (print_rtx_operand_code_e): Convert to...
7917 (rtx_writer::print_rtx_operand_code_e): ...this.
7918 (print_rtx_operand_codes_E_and_V): Convert to...
7919 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
7920 (print_rtx_operand_code_i): Convert to...
7921 (rtx_writer::print_rtx_operand_code_i): ...this.
7922 (print_rtx_operand_code_r): Convert to...
7923 (rtx_writer::print_rtx_operand_code_r): ...this.
7924 (print_rtx_operand_code_u): Convert to...
7925 (rtx_writer::print_rtx_operand_code_u): ...this.
7926 (print_rtx_operand): Convert to...
7927 (rtx_writer::print_rtx_operand): ...this.
7928 (print_rtx): Convert to...
7929 (rtx_writer::print_rtx): ...this.
7930 (print_inline_rtx): Rewrite in terms of class rtx_writer.
7931 (debug_rtx): Likewise.
7932 (print_rtl): Convert to...
7933 (rtx_writer::print_rtl): ...this.
7934 (print_rtl): Reimplement in terms of class rtx_writer.
7935 (print_rtl_single): Rewrite in terms of class rtx_writer.
7936 (print_rtl_single_with_indent): Convert to..
7937 (rtx_writer::print_rtl_single_with_indent): ...this.
7938 (print_simple_rtl): Rewrite in terms of class rtx_writer.
7939 * print-rtl.h (flag_compact): Delete decl.
7940 (class rtx_writer): New class.
7941 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
7942 class rtx_writer.
7943
7944 2016-10-26 Jeff Law <law@redhat.com>
7945
7946 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
7947 fallthru.
7948
7949 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
7950 (check_if_valid_sleep_operand): Add missing fallthru comment.
7951 (arc_register_move_cost): Increase buffer size.
7952 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
7953 comment.
7954 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
7955
7956 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
7957 comment. Add gcc_unreachable for path that should never happen.
7958
7959 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
7960 fallthru comment.
7961
7962 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7963 Martin Liska <mliska@suse.cz>
7964
7965 PR fortran/77973
7966 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
7967 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
7968 on outer context if any.
7969
7970 2016-10-26 Jakub Jelinek <jakub@redhat.com>
7971
7972 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
7973 by increment rather than double it.
7974 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
7975 emit a space before args[4].
7976 (END): Don't emit a space before with_arg.
7977
7978 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7979
7980 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
7981 Baseline only alternatives to (i) hold store atomic success value in a
7982 return register rather than a scratch register, (ii) use a low register
7983 for it and to (iii) ensure the cbranchsi insn generated by the split
7984 respect the constraints of Thumb-1 cbranchsi4_insn and
7985 cbranchsi4_scratch.
7986 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
7987 constraints must match those in atomic_compare_and_swap.
7988 (cbranchsi4_scratch): Likewise.
7989
7990 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
7991
7992 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
7993 variable. Add the new parameter to the insn generator. Set that
7994 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
7995 return value from the negation of that parameter for Thumb-1, keeping
7996 the logic unchanged otherwise except for using bdst as the destination
7997 register of the compare_and_swap insn.
7998 (arm_split_compare_and_swap): Add explanation about how is the value
7999 returned to the function comment. Rename scratch variable to
8000 neg_bval. Adapt initialization of variables holding operands to the
8001 new operand numbers. Use return register to hold result of store
8002 exclusive for Thumb-1, scratch register otherwise. Construct the
8003 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
8004 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
8005 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
8006 for strongly ordered compare_and_swap.
8007 * config/arm/predicates.md (cc_register_operand): New predicate.
8008 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
8009 match_operand with the new predicate to accept either the CC flag or a
8010 destination register for the boolean return value, restricting it to
8011 CC flag only via constraint. Adapt operand numbers accordingly.
8012
8013 2016-10-26 Jeff Law <law@redhat.com>
8014
8015 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
8016
8017 * config/frv/frv.c (comparison_string): Do not fall through after
8018 an error.
8019
8020 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
8021 comment.
8022 (expand_one_builtin): Add missing break.
8023
8024 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
8025 (m32c_legitimate_address_p): Likewise.
8026
8027 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
8028
8029 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
8030
8031 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
8032 fallthru comment.
8033
8034 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
8035 fallthru comment.
8036
8037 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
8038
8039 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
8040 comment.
8041 (rl78_asm_ctor_dtor): Increase buffer size.
8042
8043 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
8044 buffer size.
8045 (xstormy16_asm_output_constructor): Likewise.
8046
8047 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
8048 size.
8049
8050 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
8051 comment to silence warning.
8052
8053 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
8054 (spu_legitimate_address_p): Fix logic error and add missing fallthru
8055 comment.
8056
8057 2016-10-26 Michael Matz <matz@suse.de>
8058
8059 PR tree-optimization/78060
8060 PR tree-optimization/78061
8061 PR tree-optimization/78088
8062 * tree-ssa-loop-split.c (easy_exit_values): New function.
8063 (tree_ssa_split_loops): Use it.
8064 (compute_new_first_bound): Change order of operations,
8065 fix invalid use of types.
8066
8067 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
8068
8069 gen-pass-instances.awk is sensitive to the order in which
8070 passes are added; passes that appear later have to be added first.
8071
8072 PR target/71676
8073 PR target/71678
8074 * config/avr/avr-passes.def: Swap order of directives for
8075 gen-pass-instances.awk.
8076
8077 2016-10-25 Jeff Law <law@redhat.com>
8078
8079 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
8080 (vax_notice_update_cc): Likewise.
8081
8082 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8083
8084 * config.gcc (sparc*-*-solaris2*): Adjust.
8085 (sparc64-*-linux*): Likewise.
8086 * config/sparc/default-64.h: Rename to...
8087 * config/sparc/default64.h: ...this.
8088 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
8089 with TARGET_ARCH64.
8090 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
8091 * config/sparc/sparc.h: Minor tweaks.
8092 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
8093 TARGET_ARCH32 throughout. Minor various tweaks throughout.
8094
8095 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8096
8097 * input.c (fcache::file_patch): Add comment about lifetime.
8098 (selftest::cpp_reader_ptr): New class.
8099 (selftest::lexer_test): Convert m_parser from cpp_reader *
8100 to a cpp_reader_ptr, and move m_tempfile to after it.
8101 (selftest::lexer_test::lexer_test): Update for above reordering.
8102 (lexer_test::~lexer_test): Move cleanup of m_parser to
8103 cpp_reader_ptr's dtor.
8104
8105 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8106
8107 * toplev.c (toplev::main): Remove call to
8108 location_adhoc_data_fini.
8109
8110 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
8111
8112 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
8113 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
8114
8115 2016-10-25 David Malcolm <dmalcolm@redhat.com>
8116
8117 * ggc-tests.c (forcibly_ggc_collect): Rename to...
8118 (selftest::forcibly_ggc_collect): ...this, and remove "static".
8119 (test_basic_struct): Update for above renaming.
8120 (test_length): Likewise.
8121 (test_union): Likewise.
8122 (test_finalization): Likewise.
8123 (test_deletable_global): Likewise.
8124 (test_inheritance): Likewise.
8125 (test_chain_next): Likewise.
8126 (test_user_struct): Likewise.
8127 (test_tree_marking): Likewise.
8128 * selftest-run-tests.c (selftest::run_tests): Call
8129 selftest::forcibly_ggc_collect at the end of the selftests.
8130 * selftest.h (selftest::forcibly_ggc_collect): New decl.
8131
8132 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8133
8134 PR target/78102
8135 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
8136 * optabs.c (expand_vec_cond_expr): For comparison codes
8137 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
8138 (expand_vec_cmp_expr): For comparison codes
8139 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
8140 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
8141 Add enum tree_code argument.
8142 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
8143 inline functions.
8144 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
8145 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
8146 fallback.
8147 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
8148 NE_EXPR, attempt to use vcondeq_optab as fallback.
8149 * tree-vect-generic.c (expand_vector_comparison,
8150 expand_vector_divmod, expand_vector_condition): Adjust
8151 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
8152 * tree-vect-stmts.c (vectorizable_condition,
8153 vectorizable_comparison): Likewise.
8154 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
8155 check_bool_pattern, search_type_for_mask_1): Likewise.
8156 * expr.c (do_store_flag): Likewise.
8157 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
8158 @code{vcondeq@var{m}@var{n}}): Document.
8159 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
8160 New expanders.
8161
8162 2016-10-25 Jeff Law <law@redhat.com>
8163
8164 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
8165 comment.
8166 (v850_output_aligned_bss): Add missing break.
8167
8168 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
8169
8170 2016-10-25 Martin Liska <mliska@suse.cz>
8171
8172 PR sanitizer/78106
8173 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
8174 statements as they can also contain possibly a freeing call.
8175
8176 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
8177 Martin Liska <mliska@suse.cz>
8178
8179 PR ipa/78099
8180 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
8181 * ipa-icf.c (sem_function::get_hash): Add target optimization
8182 node to hash.
8183
8184 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
8185
8186 PR target/78041
8187 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
8188 Remove partial overlap check for shift by 1.
8189 (ashldi3_neon): Likewise.
8190
8191 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
8192
8193 * config/arm/constraints.md (Q constraint): Document its use for
8194 Thumb-1.
8195 (Pf constraint): New constraint for relaxed, consume or relaxed memory
8196 models.
8197 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
8198 alternatives to allow any register when memory model matches Pf and
8199 thus lda is used, but only low registers otherwise. Use unpredicated
8200 output template for Thumb-1 targets.
8201 (atomic_store<mode>): Likewise for stl.
8202 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
8203 whose output template does not have predication.
8204 (arm_load_acquire_exclusive<mode>): Likewise.
8205 (arm_load_exclusivesi): Likewise.
8206 (arm_load_acquire_exclusivesi): Likewise.
8207 (arm_store_release_exclusive<mode>): Likewise.
8208 (arm_store_exclusive<mode>): Use unpredicated output template for
8209 Thumb-1 targets.
8210
8211 2016-10-25 Jakub Jelinek <jakub@redhat.com>
8212
8213 * internal-fn.def (LAUNDER): New internal function.
8214 * internal-fn.c (expand_LAUNDER): New function.
8215
8216 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8217 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8218
8219 New avr target pass to work around performance loss by PR fix.
8220
8221 PR target/71676
8222 PR target/71678
8223 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
8224 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
8225 * config/avr/predicates.md (extend_operator): New.
8226 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
8227 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
8228 (make_avr_pass_casesi): New prototypes.
8229 * config/avr/avr.c (print-rtl.h): Include it.
8230 (pass_data avr_pass_data_casesi): Data for new pass.
8231 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
8232 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
8233 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
8234 (avr_optimize_casesi): New functions.
8235
8236 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
8237 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
8238
8239 PR target/71676
8240 PR target/71678
8241 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
8242
8243 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8244
8245 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
8246 DW_AT_rvalue_reference attributes.
8247
8248 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
8249
8250 * doc/invoke.text (Wint-in-bool-context): Update documentation.
8251 * value-prof.c (stringop_block_profile): Fix a warning.
8252
8253 2016-10-24 Martin Sebor <msebor@redhat.com>
8254
8255 PR middle-end/77735
8256 * builtins.c (string_length): New function.
8257 (c_strlen): Use string_length. Correctly handle wide strings.
8258 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
8259 functions.
8260 (target_int_max): Call target_max_value.
8261 (format_result::knownrange): New data member.
8262 (fmtresult::fmtresult): Define default constructor.
8263 (format_integer): Use it and set format_result::knownrange.
8264 Handle global constants.
8265 (format_floating_max): Add third argument.
8266 (format_floating): Recompute maximum value for %a for each argument.
8267 (get_string_length): Use fmtresult default ctor.
8268 (format_string): Set format_result::knownrange.
8269 (format_directive): Check format_result::knownrange.
8270 (add_bytes): Same. Correct caret placement in diagnostics.
8271 (pass_sprintf_length::compute_format_length): Set
8272 format_result::knownrange.
8273 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
8274
8275 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8276
8277 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
8278 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
8279
8280 2016-10-24 Ximin Luo <infinity0@pwned.gg>
8281
8282 PR debug/77985
8283 * dwarf2out.c (file_table_relative_p): Remove.
8284 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
8285 also for absolute paths.
8286 * doc/tm.texi: Update.
8287 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
8288 * target.def (force_at_comp_dir): Remove hook.
8289 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
8290
8291 2016-10-24 Richard Biener <rguenther@suse.de>
8292
8293 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
8294 backedges when identifying the single predecessor to take
8295 conditional info from. Use SCEV to get at ranges for loop IVs.
8296 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
8297 avoid false warning.
8298
8299 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
8300
8301 PR target/78093
8302 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
8303 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
8304 (avr_address_tiny_absdata_p): New static function.
8305 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
8306 it to determine validity of constant addresses.
8307 (avr_attribute_table) [absdata]: New variable attribute...
8308 (avr_handle_absdata_attribute): ...and handler.
8309 (avr_decl_absdata_p): New static function.
8310 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
8311 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
8312 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
8313
8314 2016-10-24 Richard Biener <rguenther@suse.de>
8315
8316 PR tree-optimization/78076
8317 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
8318 also on the loop tree root.
8319
8320 2016-10-24 Jakub Jelinek <jakub@redhat.com>
8321
8322 * config/i386/i386.c (ix86_fold_builtin): Handle
8323 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
8324 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8325 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
8326 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
8327
8328 2016-10-24 Martin Liska <mliska@suse.cz>
8329
8330 PR sanitizer/77966
8331 * opts.c (finish_options): Skip conditionally.
8332
8333 2016-10-23 Martin Sebor <msebor@redhat.com>
8334
8335 PR target/77837
8336 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
8337 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
8338
8339 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8340
8341 * config/sparc/sparc.md (cpu_feature): Minor tweak.
8342 (enabled): Likewise.
8343 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
8344 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
8345 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
8346 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
8347 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
8348 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
8349
8350 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
8351
8352 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
8353 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
8354
8355 2016-10-21 Andrew Pinski <apinski@cavium.com>
8356
8357 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
8358 integer constants.
8359 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
8360 implementer_id to unsigned char.
8361 Change part_no to unsigned int.
8362 (AARCH64_BIG_LITTLE): New define.
8363 (INVALID_IMP): New define.
8364 (INVALID_CORE): New define.
8365 (cpu_data): Change the last element's implementer_id and part_no to
8366 integers.
8367 (valid_bL_string_p): Rewrite to ..
8368 (valid_bL_core_p): this for integers instead of strings.
8369 (parse_field): New function.
8370 (contains_string_p): Rewrite to ...
8371 (contains_core_p): this for integers and only for the part_no.
8372 (host_detect_local_cpu): Rewrite handling of implementation and
8373 par num to be integers; simplifying the code.
8374
8375 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
8376
8377 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
8378 value range for pointers in more cases.
8379
8380 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8381
8382 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
8383 Add extra argument to allow emitting the move immediate.
8384 Use add/sub with positive immediate.
8385 (aarch64_add_constant): Add inline function.
8386 (aarch64_add_sp): Likewise.
8387 (aarch64_sub_sp): Likewise.
8388 (aarch64_expand_prologue): Call aarch64_sub_sp.
8389 (aarch64_expand_epilogue): Call aarch64_add_sp.
8390 Decide when to leave out move.
8391 (aarch64_output_mi_thunk): Call aarch64_add_constant.
8392
8393 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
8394
8395 * config/aarch64/aarch64.c (aarch64_layout_frame):
8396 Align FP callee-saves.
8397
8398 2016-10-21 Jakub Jelinek <jakub@redhat.com>
8399
8400 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
8401 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
8402 Formatting fixes.
8403 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
8404 _rdseed64_step): Likewise.
8405 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
8406
8407 PR target/78057
8408 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
8409 and tree-ssanames.h.
8410 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
8411 with INTEGER_CST argument.
8412 (ix86_gimple_fold_builtin): New function.
8413 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
8414
8415 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
8416 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
8417 (ranges_table_allocated, ranges_table_in_use,
8418 ranges_by_label_allocated, ranges_by_label_in_use,
8419 RANGES_TABLE_INCREMENT): Removed.
8420 (add_ranges_num): Use vec_safe_push into ranges_table.
8421 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
8422 (output_ranges): Adjust for ranges_table and ranges_by_label
8423 conversion from arrays to vec.
8424 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
8425 conversion from arrays to vec.
8426 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
8427 ranges_table_in_use, ranges_by_label_allocated and
8428 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
8429
8430 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
8431 if needed. Re-add origin_die variable and its initialization.
8432
8433 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
8434 even for -fstack-reuse=none, or for volatile vars etc.
8435
8436 2016-10-21 David Malcolm <dmalcolm@redhat.com>
8437
8438 * print-rtl-function.c (flag_compact): Move extern decl to...
8439 * print-rtl.h (flag_compact): ...here.
8440 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
8441 (ASSERT_RTL_DUMP_EQ): New macro.
8442 (selftest::test_dumping_regs): New function.
8443 (selftest::test_dumping_insns): New function.
8444 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
8445 the insns.
8446 (selftest::rtl_tests_c_tests): Call the new test functions.
8447
8448 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8449
8450 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
8451 (outgoing_edges_match): Likewise.
8452 (try_crossjump_to_edge): Likewise.
8453 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8454 (rtl_tidy_fallthru_edge): Likewise.
8455 * rtl.h (tablejump_p): Adjust prototype.
8456 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
8457
8458 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8459
8460 * rtl.h (label_ref_label): New function.
8461 (set_label_ref_label): New function.
8462 (LABEL_REF_LABEL): Delete.
8463 * alias.c (rtx_equal_for_memref_p): Adjust.
8464 * cfgbuild.c (make_edges): Likewise.
8465 (purge_dead_tablejump_edges): Likewise.
8466 * cfgexpand.c (convert_debug_memory_address): Likewise.
8467 * cfgrtl.c (patch_jump_insn): Likewise.
8468 * combine.c (distribute_notes): Likewise.
8469 * cse.c (hash_rtx_cb): Likewise.
8470 (exp_equiv_p): Likewise.
8471 (fold_rtx): Likewise.
8472 (check_for_label_ref): Likewise.
8473 * cselib.c (rtx_equal_for_cselib_1): Likewise.
8474 (cselib_hash_rtx): Likewise.
8475 * emit-rtl.c (mark_label_nuses): Likewise.
8476 * explow.c (convert_memory_address_addr_space_1): Likewise.
8477 * final.c (output_asm_label): Likewise.
8478 (output_addr_const): Likewise.
8479 * gcse.c (add_label_notes): Likewise.
8480 * genconfig.c (walk_insn_part): Likewise.
8481 * genrecog.c (validate_pattern): Likewise.
8482 * ifcvt.c (cond_exec_get_condition): Likewise.
8483 (noce_emit_store_flag): Likewise.
8484 (noce_get_alt_condition): Likewise.
8485 (noce_get_condition): Likewise.
8486 * jump.c (maybe_propagate_label_ref): Likewise.
8487 (mark_jump_label_1): Likewise.
8488 (redirect_exp_1): Likewise.
8489 (rtx_renumbered_equal_p): Likewise.
8490 * lra-constraints.c (operands_match_p): Likewise.
8491 * print-rtl.c (print_value): Likewise.
8492 * reload.c (find_reloads): Likewise.
8493 * reload1.c (set_label_offsets): Likewise.
8494 * reorg.c (get_branch_condition): Likewise.
8495 * rtl-tests.c (test_uncond_jump): Likewise.
8496 * rtl.c (rtx_equal_p_cb): Likewise.
8497 (rtx_equal_p): Likewise.
8498 * rtlanal.c (reg_mentioned_p): Likewise.
8499 (rtx_referenced_p): Likewise.
8500 (get_condition): Likewise.
8501 * varasm.c (const_hash_1): Likewise.
8502 (compare_constant): Likewise.
8503 (const_rtx_hash_1): Likewise.
8504 (output_constant_pool_1): Likewise.
8505
8506 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8507
8508 PR target/71627
8509 * reload.c (find_valid_class_1): Allow regclass if atleast one
8510 regno in regclass is ok. Compute and use rclass size based on
8511 actually available regnos for mode in rclass.
8512
8513 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
8514
8515 * config/sparc/sparc-modes.def (CCV): New.
8516 (CCXV): Likewise.
8517 * config/sparc/predicates.md (v_comparison_operator): New.
8518 (icc_comparison_operator): Add support for CCV/CCXV.
8519 (xcc_comparison_operator): Likewise.
8520 * config/sparc/sparc.c (output_cbranch): Likewise.
8521 (sparc_print_operand): Likewise.
8522 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8523 (uaddvdi4): New expander.
8524 (addvdi4): Likewise.
8525 (uaddvdi4_sp32): New instruction.
8526 (addvdi4_sp32): Likewise.
8527 (uaddvsi4): New expander.
8528 (addvsi4): Likewise.
8529 (cmp_ccc_plus_sltu_set): New instruction.
8530 (cmp_ccv_plus): Likewise.
8531 (cmp_ccxv_plus): Likewise.
8532 (cmp_ccv_plus_set): Likewise.
8533 (cmp_ccxv_plus_set): Likewise.
8534 (cmp_ccv_plus_sltu_set): Likewise.
8535 (uaddvdi4): New expander.
8536 (subvdi4): Likewise.
8537 (usubdi4_sp32): New instruction.
8538 (subvdi4_sp32): Likewise.
8539 (usubvsi4): New expander.
8540 (subvsi4): Likewise.
8541 (cmpsi_minus_sltu_set): New instruction.
8542 (cmp_ccv_minus): Likewise.
8543 (cmp_ccxv_minus): Likewise.
8544 (cmp_ccv_minus_set): Likewise.
8545 (cmp_ccxv_minus_set): Likewise.
8546 (cmp_ccv_minus_sltu_set): Likewise.
8547 (unegvdi3): New expander.
8548 (negvdi3): Likewise.
8549 (unegdi3_sp32): New instruction.
8550 (negvdi3_sp32): Likewise.
8551 (unegvsi3): New expander.
8552 (negvsi3): Likewise.
8553 (cmp_ccc_neg_sltu_set): New instruction.
8554 (cmp_ccv_neg): Likewise.
8555 (cmp_ccxv_neg): Likewise.
8556 (cmp_ccv_neg_set): Likewise.
8557 (cmp_ccxv_neg_set): Likewise.
8558 (cmp_ccv_neg_sltu_set): Likewise.
8559
8560 * tree-ssa-loop-split.c: Remove trailing spaces.
8561 * match.pd: Likewise.
8562
8563 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8564
8565 PR rtl-optimization/78038
8566 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
8567 be deduced to set REG through the RTL structure.
8568 (make_defs_and_copies_lists): Return false on a failing get_defs call.
8569
8570 2016-10-21 Richard Biener <rguenther@suse.de>
8571
8572 PR tree-optimization/78051
8573 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
8574 and mark replaced if folding did something.
8575
8576 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
8577
8578 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
8579 and "protected" in visibility types.
8580 (rs6000_xcoff_declare_function_name): Fix formatting.
8581 (rs6000_xcoff_declare_object_name): Fix formatting.
8582
8583 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
8584
8585 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
8586 and IX86_BUILTIN_HUGE_VALQ here ...
8587 (ix86_expand_builtin): ... not here.
8588
8589 2016-10-20 Jakub Jelinek <jakub@redhat.com>
8590
8591 * doc/gty.texi (for_user): Use @item next to @findex.
8592
8593 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
8594
8595 PR target/78037
8596 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
8597 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
8598 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
8599 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
8600 __builtin_ia32_lzcnt_u16.
8601 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
8602 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
8603 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
8604 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
8605 (bmi_tzcnt_<mode>): New expander.
8606 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8607 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
8608 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
8609 (lzcnt_<mode>): New expander.
8610 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
8611 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
8612 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
8613 (UINT64_FTYPE_UINT64): New.
8614 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
8615 (__builtin_ia32_lzcnt_u16): New description.
8616 (__builtin_ia32_lzcnt_u32): Ditto.
8617 (__builtin_ia32_lzcnt_u64): Ditto.
8618 (__builtin_ctzs): Remove description.
8619 (__builtin_ia32_tzcnt_u16): New description.
8620 (__builtin_ia32_tzcnt_u32): Ditto.
8621 (__builtin_ia32_tzcnt_u64): Ditto.
8622 * config/i386/i386.c (ix86_expand_args_builtin): Handle
8623 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
8624
8625 2016-10-20 Martin Liska <mliska@suse.cz>
8626
8627 PR lto/78049
8628 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
8629 comparison with STMT_UID_NOT_IN_RANGE.
8630 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
8631 LTRANS.
8632
8633 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
8634
8635 * compare-elim.c (conforming_compare): Accept UNSPECs.
8636 (find_comparison_dom_walker::before_dom_children): Deal with
8637 instructions both using and killing the flags register.
8638 (equivalent_reg_at_start): New function extracted from...
8639 (try_eliminate_compare): ...here. Use it and add support for
8640 registers and UNSPECs as second operand of the compare.
8641 * config/visium/visium-modes.def (CCV): New.
8642 * config/visium/predicates.md (visium_v_comparison_operator): New.
8643 (visium_branch_operator): Deal with CCV mode.
8644 * config/visium/visium.c (visium_select_cc_mode): Likewise.
8645 (output_cbranch): Likewise.
8646 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
8647 (uaddv<mode>4): New expander.
8648 (addv<mode>4): Likewise.
8649 (add<mode>3_insn_set_carry): New instruction.
8650 (add<mode>3_insn_set_overflow): Likewise.
8651 (addsi3_insn_set_overflow): Likewise.
8652 (usubv<mode>4): New expander.
8653 (subv<mode>4): Likewise.
8654 (sub<mode>3_insn_set_carry): New instruction.
8655 (sub<mode>3_insn_set_overflow): Likewise.
8656 (subsi3_insn_set_overflow): Likewise.
8657 (unegv<mode>3): New expander.
8658 (negv<mode>3): Likewise.
8659 (neg<mode>2_insn_set_overflow): New instruction.
8660 (addv_tst<mode>): Likewise.
8661 (subv_tst<mode>): Likewise.
8662 (negv_tst<mode>): Likewise.
8663 (cbranch<mode>4_addv_insn): New splitter and instruction.
8664 (cbranch<mode>4_subv_insn): Likewise.
8665 (cbranch<mode>4_negv_insn): Likewise.
8666
8667 2016-10-20 Richard Biener <rguenther@suse.de>
8668
8669 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
8670 Handle decls possibly not bound.
8671 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
8672 nothing_id for decls that might not be bound if we are interested
8673 for the address.
8674 (get_constraint_for_component_ref): Deal with that.
8675
8676 2016-10-20 Michael Matz <matz@suse.de>
8677
8678 Loop splitting.
8679 * common.opt (-fsplit-loops): New flag.
8680 * passes.def (pass_loop_split): Add.
8681 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
8682 (enable_fdo_optimizations): Add loop splitting.
8683 * timevar.def (TV_LOOP_SPLIT): Add.
8684 * tree-pass.h (make_pass_loop_split): Declare.
8685 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
8686 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
8687 * tree-ssa-loop-split.c: New file.
8688 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
8689 * doc/invoke.texi (fsplit-loops): Document.
8690 * doc/passes.texi (Loop optimization): Add paragraph about loop
8691 splitting.
8692
8693 2016-10-20 Richard Biener <rguenther@suse.de>
8694
8695 * cgraphunit.c (analyze_functions): Set node->definition to
8696 false to signal symbol removal to debug_hooks->late_global_decl.
8697 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
8698 WPA signal symbol removal to the debuginfo machinery.
8699 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
8700 using early_finised to guard the we're called for symbol
8701 removal case look at the symtabs definition flag.
8702 (gen_variable_die): Remove redundant check.
8703
8704 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8705
8706 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
8707
8708 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8709
8710 PR tree-optimization/53979
8711 * match.pd ((a ^ b) | a -> a | b): New pattern.
8712
8713 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
8714
8715 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
8716 config/pa/pa64-hpux-lib.h.
8717 (PA_CRTBEGIN_HACK): Likewise.
8718 (DTOR_LIST_BEGIN): Likewise.
8719
8720 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
8721
8722 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
8723 register only if "in" and "out" are different registers.
8724
8725 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
8726
8727 * omp-low.c (pass_oacc_device_lower::gate): New method.
8728 (execute): Always call execute_oacc_device_lower.
8729
8730 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8731
8732 PR tree-optimization/77916
8733 PR tree-optimization/77937
8734 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
8735 stopgap fix.
8736 (insert_initializers): Requirement of initializer for -1 should be
8737 based on pointer-typedness of the candidate basis.
8738
8739 2016-10-19 Bin Cheng <bin.cheng@arm.com>
8740
8741 PR tree-optimization/78005
8742 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
8743 upper (included) bound for niters of prolog loop.
8744 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
8745 Compute niters of scalar loop above which vectorized loop is
8746 preferred, as well as the upper (included) bound for the niters.
8747 (vect_do_peeling): Record niter bound for loops accordingly.
8748
8749 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8750
8751 PR lto/77458
8752 * tree-core.h (enum tree_index): Put the complex types after their
8753 component types.
8754 * tree-streamer.c (verify_common_node_recorded): New function.
8755 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
8756
8757 2016-10-19 Martin Liska <mliska@suse.cz>
8758
8759 * cgraph.h (cgraph_edge::binds_to_current_def_p):
8760 Replace NULL with false as a return value.
8761
8762 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
8763
8764 PR tree-optimization/78024
8765 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
8766 don't clear BB_VISITED after processing.
8767
8768 2016-10-19 Richard Biener <rguenther@suse.de>
8769
8770 * domwalk.c (dom_walker::walk): Use RPO order.
8771
8772 2016-10-19 Richard Biener <rguenther@suse.de>
8773
8774 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
8775 stmts_to_remove.
8776 (evrp_dom_walker::~evrp_dom_walker): Free it.
8777 (evrp_dom_walker::stmts_to_remove): Add.
8778 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
8779 whose output we fully propagate for removal. Propagate
8780 into BB destination PHI arguments.
8781 (execute_early_vrp): Remove queued stmts. Dump value ranges
8782 before stmt removal.
8783
8784 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
8785
8786 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
8787 * passes.def: Add two instances of pass_walloca.
8788 * tree-pass.h (make_pass_walloca): New.
8789 * gimple-ssa-warn-alloca.c: New file.
8790 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
8791 -Wvla-larger-than= options.
8792
8793 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
8794
8795 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
8796 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
8797
8798 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
8799
8800 * config/rs6000/altivec.h (vec_xl_len): New macro.
8801 (vec_xst_len): New macro.
8802 (vec_cmpnez): New macro.
8803 (vec_cntlz_lsbb): New macro.
8804 (vec_cnttz_lsbb): New macro.
8805 (vec_xlx): New macro.
8806 (vec_xrx): New macro.
8807 (vec_all_nez): New C++ predicate template.
8808 (vec_any_eqz): New C++ predicate template.
8809 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
8810 conditional compilation.
8811 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
8812 conditional compilation.
8813 (vec_all_nez): New macro.
8814 (vec_any_eqz): New macro.
8815 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
8816 compilation.
8817 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
8818 compilation.
8819 * config/rs6000/vector.md (VI): Moved this mode iterator
8820 definition from altivec.md to vector.md.
8821 (UNSPEC_NEZ_P): New value.
8822 (vector_ne_<mode>_p): New expansion for implementation of
8823 vec_all_ne and vec_any_eq built-in functions.
8824 (vector_nez_<mode>_p): New expansion for implementation of
8825 vec_all_nez and vec_any_eqz built-in functions.
8826 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
8827 and vec_any_eq built-in function.
8828 (cr6_test_for_zero): New commentary to explain this expansion.
8829 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
8830 (cr6_test_for_lt): New commentary to explain this expansion.
8831 (cr6_test_for_lt_reverse): New commentary to explain this
8832 expansion.
8833 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8834 overloaded function prototypes for vec_all_ne, vec_all_nez,
8835 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
8836 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
8837 built-in functions.
8838 (altivec_resolve_overloaded_builtin): Modify the handling of
8839 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
8840 the compiler is configured to support TARGET_P9_VECTOR.
8841 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
8842 to explain the special processing that is given to predicate
8843 built-ins introduced using this macro.
8844 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
8845 the special processing given to predicate built-ins introduced
8846 using this macro.
8847 (BU_VSX_P): Likewise.
8848 (BU_P8V_AV_P): Likewise.
8849 (BU_P9V_AV_P): Likewise.
8850 (BU_P9V_AV_X): New macro.
8851 (BU_P9V_64BIT_AV_X): New macro.
8852 (BU_P9V_VSX_3): New macro.
8853 (BU_P9V_OVERLOAD_P): New macro.
8854 (LXVL): New BU_P9V_64BIT_VSX_2.
8855 (VEXTUBLX): New BU_P9V_AV_2.
8856 (VEXTUBRX): Likewise.
8857 (VEXTUHLX): Likewise.
8858 (VEXTUHRX): Likewise.
8859 (VEXTUWLX): Likewise.
8860 (VEXTUWRX): Likewise.
8861 (STXVL): New BU_P9V_64BIT_AV_X.
8862 (VCLZLSBB): New BU_P9V_AV_1.
8863 (VCTZLSBB): Likewise.
8864 (CMPNEB): New BU_P9V_AV_2.
8865 (CMPNEH): Likewise.
8866 (CMPNEW): Likewise.
8867 (CMPNEF): Likewise.
8868 (CMPNED): Likewise.
8869 (VCMPNEB_P): New BU_P9V_AV_P.
8870 (VCMPNEH_P): Likewise.
8871 (VCMPNEW_P): Likewise.
8872 (VCMPNED_P): Likewise.
8873 (VCMPNEFP_P): Likewise.
8874 (VCMPNEDP_P): Likewise.
8875 (CMPNEZB): New BU_P9V_AV_2.
8876 (CMPNEZH): Likewise.
8877 (CMPNEZW): Likewise.
8878 (VCMPNEZB_P): New BU_P9V_AV_P.
8879 (VCMPNEZH_P): Likewise.
8880 (VCMPNEZW_P): Likewise.
8881 (LXVL): New BU_P9V_OVERLOAD_2.
8882 (STXVL): New BU_P9V_OVERLOAD_3.
8883 (VEXTULX): New BU_P9V_OVERLOAD_2.
8884 (VEXTURX): Likewise.
8885 (CMPNEZ): Likewise.
8886 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
8887 (VCMPNE_P): Likewise.
8888 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
8889 (VCTZLSBB): Likewise.
8890 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
8891 comment to explain mode used for scratch register.
8892 (altivec_expand_stxvl_builtin): New function.
8893 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
8894 (altivec_init_builtins): Add initialized variable
8895 void_ftype_v16qi_pvoid_long and use this type to define the
8896 built-in function __builtin_altivec_stxvl.
8897 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
8898 (UNSPEC_STXVL): New value.
8899 (UNSPEC_VCLZLSBB): New value.
8900 (UNSPEC_VCTZLSBB): New value.
8901 (UNSPEC_VEXTUBLX): New value.
8902 (UNSPEC_VEXTUHLX): New value.
8903 (UNSPEC_VEXTUWLX): New value.
8904 (UNSPEC_VEXTUBRX): New value.
8905 (UNSPEC_VEXTUHRX): New value.
8906 (UNSPEC_VEXTUWRX): New value.
8907 (UNSPEC_VCMPNEB): New value.
8908 (UNSPEC_VCMPNEZB): New value.
8909 (UNSPEC_VCMPNEH): New value.
8910 (UNSPEC_VCMPNEZH): New value.
8911 (UNSPEC_VCMPNEW): New value.
8912 (UNSPEC_VCMPNEZW): New value.
8913 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8914 vector of integer modes.
8915 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
8916 vector of float or double modes.
8917 (*vector_nez_<mode>_p): New insn for vector test all not equal or
8918 zero.
8919 (lxvl): New expand for load VSX vector with length.
8920 (*lxvl): New insn for load VSX vector with length.
8921 (stxvl): New expand for store VSX vector with length.
8922 (*stxvl): New insn for store VSX vector with length.
8923 (vcmpneb): New insn for vector of byte compare not equal.
8924 (vcmpnezb): New insn for vector of byte compare not equal or zero.
8925 (vcmpneh): New insn for vector of half word compare not equal.
8926 (vcmpnezh): New insn for vector of half word compare not equal or
8927 zero.
8928 (vcmpnew): New insn for vector of word compare not equal.
8929 (vcmpne<VSs>): New insn for vector of float or double compare not
8930 equal.
8931 (vcmpnezw): New insn for vector of word compare not equal or zero.
8932 (vclzlsbb): New insn for vector count leading zero
8933 least-significant bits byte.
8934 (vctzlsbb): New insn for vector count trailing zero least
8935 signficant bits byte.
8936 (vextublx): New insn for vector extract unsigned byte left
8937 indexed.
8938 (vextubrx): New insn for vector extract unsigned byte right
8939 indexed.
8940 (vextuhlx): New insn for vector extract unsigned half word left
8941 indexed.
8942 (vextuhrx): New insn for vector extract unsigned half word right
8943 indexed.
8944 (vextuwlx): New insn for vector extract unsigned word left
8945 indexed.
8946 (vextuwrx): New insn for vector extract unsigned word right
8947 indexed.
8948 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
8949 clarify intent of this constant.
8950 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
8951 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
8952 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
8953 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
8954 and vec_xrx functions.
8955
8956 2016-10-18 Andrew Pinski <apinski@cavium.com>
8957
8958 PR tree-opt/65950
8959 * predict.c (is_exit_with_zero_arg): New function.
8960 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
8961 as nottaken.
8962
8963 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
8964
8965 PR target/77991
8966 * config/i386/i386.c (legitimize_tls_address)
8967 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
8968 convert dest to Pmode if different than Pmode.
8969
8970 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8971
8972 PR tree-optimization/77916
8973 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
8974 stopgap fix, as pointers with -1 increment are still broken.
8975
8976 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
8977
8978 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
8979 mapping class decoration from here...
8980 (rs6000_xcoff_encode_section): ...to here.
8981
8982 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
8983 if shrink-wrapping and optimizing for speed.
8984
8985 2016-10-18 Richard Biener <rguenther@suse.de>
8986
8987 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
8988 not visited but non-executable predecessors. Return taken edge.
8989 Simplify conditions and refactor propagation vs. folding step.
8990
8991 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
8992
8993 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
8994 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
8995 (rs6000_get_separate_components): Assert we do not have those
8996 strategies selected.
8997
8998 2016-10-18 Richard Biener <rguenther@suse.de>
8999
9000 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
9001 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
9002 clearing.
9003 (substitute_and_fold_dom_walker): Adjust constructor.
9004 (substitute_and_fold_dom_walker::before_dom_children): Remove
9005 do_dce flag and handling (always true).
9006 (substitute_and_fold): Likewise.
9007 * tree-vrp.c (vrp_finalize): Adjust.
9008 (execute_early_vrp): Remove final BB_VISITED clearing.
9009 * tree-ssa-ccp.c (ccp_finalize): Adjust.
9010 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9011 * ira.c (ira): Call clear_bb_flags.
9012
9013 2016-10-18 Richard Biener <rguenther@suse.de>
9014
9015 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
9016 get at the operand to look at with TREE_OPERAND for generic
9017 sub-nodes.
9018
9019 2016-10-18 David Malcolm <dmalcolm@redhat.com>
9020
9021 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
9022 copy_md_ptr_loc.
9023 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
9024 (write_test_expr): Use rtx_reader_ptr for calls to
9025 fprint_c_condition.
9026 (write_attr_value): Likewise.
9027 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
9028 call to print_md_ptr_loc.
9029 (write_one_condition): Likewise for calls to print_c_condition.
9030 * genconstants.c: Include "statistics.h" and "vec.h".
9031 (main): Update for conversion to member functions.
9032 * genemit.c (emit_c_code): Use rtx_reader_ptr for
9033 call to print_md_ptr_loc.
9034 * genenums.c: Include "statistics.h" and "vec.h".
9035 (main): Update for conversion of traverse_enum_types to a method.
9036 * genmddeps.c: Include "statistics.h" and "vec.h".
9037 * genoutput.c (process_template): Use rtx_reader_ptr for call to
9038 print_md_ptr_loc.
9039 * genpreds.c (write_predicate_subfunction): Likewise.
9040 (write_predicate_expr): Likewise for calls to print_c_condition.
9041 * genrecog.c (print_test): Likewise.
9042 * gensupport.c (process_rtx): Likewise for calls to
9043 copy_md_ptr_loc and join_c_conditions.
9044 (alter_test_for_insn): Likewise for call to join_c_conditions.
9045 (process_substs_on_one_elem): Likewise.
9046 (gen_mnemonic_setattr): Update for move of string_obstack to a
9047 field of rtx_reader.
9048 (mnemonic_htab_callback): Likewise. Fix formatting.
9049 (gen_mnemonic_attr): Likewise.
9050 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
9051 to print_c_condition.
9052 * read-md.c: Include "statistics.h" and "vec.h".
9053 (string_obstack): Convert this global to field "m_string_obstack"
9054 of class rtx_reader.
9055 (ptr_locs): Likewise, as "m_ptr_locs".
9056 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
9057 (joined_conditions): Likewise, as "m_joined_conditions".
9058 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
9059 (md_constants): Likewise, as "m_md_constants".
9060 (enum_types): Likewise, as "m_enum_types".
9061 (set_md_ptr_loc): Convert to...
9062 (rtx_reader::set_md_ptr_loc): ...member function.
9063 (get_md_ptr_loc): Convert to...
9064 (rtx_reader::get_md_ptr_loc): ...member function.
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 (join_c_conditions): Convert to...
9072 (rtx_reader::join_c_conditions): ...member function.
9073 (fprint_c_condition): Convert to...
9074 (rtx_reader::fprint_c_condition): ...member function.
9075 (print_c_condition): Convert to...
9076 (rtx_reader::print_c_condition): ...member function.
9077 (read_name): Convert to...
9078 (rtx_reader::read_name): ...member function.
9079 (read_escape): Convert to...
9080 (rtx_reader::read_escape): ...member function.
9081 (read_quoted_string): Convert to...
9082 (rtx_reader::read_quoted_string): ...member function.
9083 (read_braced_string): Convert to...
9084 (rtx_reader::read_braced_string): ...member function.
9085 (read_string): Convert to...
9086 (rtx_reader::read_string): ...member function.
9087 (read_skip_construct): Convert to...
9088 (rtx_reader::read_skip_construct): ...member function.
9089 (handle_constants): Convert to...
9090 (rtx_reader::handle_constants): ...member function.
9091 (traverse_md_constants): Convert to...
9092 (rtx_reader::traverse_md_constants): ...member function.
9093 (handle_enum): Convert to...
9094 (rtx_reader::handle_enum): ...member function.
9095 (lookup_enum_type): Convert to...
9096 (rtx_reader::lookup_enum_type): ...member function.
9097 (traverse_enum_types): Convert to...
9098 (rtx_reader::traverse_enum_types): ...member function.
9099 (rtx_reader::rtx_reader): Move initializations
9100 of various former global data from rtx_reader::read_md_files to
9101 here, as fields, along with the call to unlock_std_streams.
9102 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
9103 the new fields.
9104 (rtx_reader::read_md_files): Move initializations of various
9105 global data from here to the ctor.
9106 * read-md.h (read_name): Convert to...
9107 (rtx_reader::read_name): ...member function.
9108 (rtx_reader::read_escape): New method decl.
9109 (read_quoted_string): Convert to...
9110 (rtx_reader::read_quoted_string): ...member function.
9111 (rtx_reader::read_braced_string): New method decl.
9112 (read_string): Convert to...
9113 (rtx_reader::read_string): ...member function.
9114 (rtx_reader::read_skip_construct): New method decl.
9115 (rtx_reader::set_md_ptr_loc): New method decl.
9116 (rtx_reader::get_md_ptr_loc): New method decl.
9117 (copy_md_ptr_loc): Convert to...
9118 (rtx_reader::copy_md_ptr_loc): ...member function.
9119 (fprint_md_ptr_loc): Convert to...
9120 (rtx_reader::fprint_md_ptr_loc): ...member function.
9121 (print_md_ptr_loc): Convert to...
9122 (rtx_reader::print_md_ptr_loc): ...member function.
9123 (rtx_reader::lookup_enum_type): New method decl.
9124 (rtx_reader::traverse_enum_types): New method decl.
9125 (rtx_reader::handle_constants): New method decl.
9126 (traverse_md_constants): Convert to...
9127 (rtx_reader::traverse_md_constants): ...member function.
9128 (rtx_reader::handle_enum): New method decl.
9129 (rtx_reader::join_c_conditions): New method decl.
9130 (fprint_c_condition): Convert to...
9131 (rtx_reader::fprint_c_condition): ...member function.
9132 (print_c_condition): Convert to...
9133 (rtx_reader::print_c_condition): ...member function.
9134 (rtx_reader::apply_iterator_to_string): New method decl.
9135 (rtx_reader::copy_rtx_for_iterators): New method decl.
9136 (rtx_reader::read_conditions): New method decl.
9137 (rtx_reader::record_potential_iterator_use): New method decl.
9138 (rtx_reader::read_mapping): New method decl.
9139 (rtx_reader::read_rtx): New method decl.
9140 (rtx_reader::read_rtx_code): New method decl.
9141 (rtx_reader::read_rtx_operand): New method decl.
9142 (rtx_reader::read_nested_rtx): New method decl.
9143 (rtx_reader::read_rtx_variadic): New method decl.
9144 (rtx_reader::get_string_obstack): New method.
9145 (rtx_reader::get_md_constants): New method.
9146 (string_obstack): Convert global variable decl to...
9147 (rtx_reader::m_string_obstack): ...this new field.
9148 (rtx_reader::m_ptr_locs): New field.
9149 (rtx_reader::m_ptr_loc_obstack): New field.
9150 (rtx_reader::m_joined_conditions): New field.
9151 (rtx_reader::m_joined_conditions_obstack): New field.
9152 (rtx_reader::m_md_constants): New field.
9153 (rtx_reader::m_enum_types): New field.
9154 * read-rtl.c (apply_iterator_to_string): Convert to...
9155 (rtx_reader::apply_iterator_to_string): ...member function.
9156 (copy_rtx_for_iterators): Convert to...
9157 (rtx_reader::copy_rtx_for_iterators): ...member function.
9158 (add_condition_to_string): Use rtx_reader_ptr for
9159 calls join_c_conditions.
9160 (apply_iterators): Use rtx_reader_ptr for calls to
9161 join_c_conditions and copy_rtx_for_iterators.
9162 (read_conditions): Convert to...
9163 (rtx_reader::read_conditions): ...member function.
9164 (record_potential_iterator_use): Convert to...
9165 (rtx_reader::record_potential_iterator_use): ...member function.
9166 (read_mapping): Convert to...
9167 (rtx_reader::read_mapping): ...member function.
9168 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
9169 (read_rtx): Convert to...
9170 (rtx_reader::read_rtx): ...member function.
9171 (read_rtx_code): Convert to...
9172 (rtx_reader::read_rtx_code): ...member function.
9173 (read_rtx_operand): Convert to...
9174 (rtx_reader::read_rtx_operand): ...member function. Update for move
9175 of string_obstack to a field.
9176 (read_nested_rtx): Convert to..
9177 (rtx_reader::read_nested_rtx): ...member function.
9178 (read_rtx_variadic): Convert to..
9179 (rtx_reader::read_rtx_variadic): ...member function.
9180
9181 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9182
9183 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
9184
9185 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9186
9187 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
9188 for pointer type too.
9189 (ipcp_update_vr): set_ptr_nonnull for pointer.
9190
9191 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
9192
9193 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
9194 pt_solution_singleton_p.
9195 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
9196 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
9197 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
9198 pointer nonnull computed by VRP.
9199 Also Conservatively set pt.null to 1.
9200 (pt_solution_reset): Conservatively set pt.null to 1.
9201 (pt_solution_singleton_or_null_p): Renamed from
9202 pt_solution_singleton_p.
9203 * tree-ssanames.h (set_ptr_nonnull): Declare.
9204 (get_ptr_nonnull): Likewise.
9205 * tree-ssanames.c (set_ptr_nonnull): New.
9206 (get_ptr_nonnull): Likewise.
9207 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
9208 (evrp_dom_walker::before_dom_children): Likewise.
9209
9210 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9211
9212 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9213 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9214 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9215 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9216 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
9217 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
9218 (rs6000_option_override_internal): Clear it if ABI_AIX.
9219 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
9220 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
9221
9222 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9223
9224 * gimple-ssa-strength-reduction.c (record_increment): Remove
9225 garbage comment.
9226
9227 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9228
9229 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
9230 that the result is non-zero if it is true.
9231 (maybe_expand_shift): New wrapper around expand_shift_1.
9232 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
9233
9234 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9235
9236 PR tree-optimization/77916
9237 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
9238 Don't allow a MINUS_EXPR for pointer arithmetic for either known
9239 or unknown strides.
9240 (record_increment): Increments of -1 for unknown strides just use
9241 a multiply initializer like other negative values.
9242 (analyze_increments): Remove stopgap solution for -1 increment
9243 applied to pointer arithmetic.
9244
9245 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
9246
9247 * dominance.c (dom_info::dom_info): Add new constructor for region
9248 which is vector of basic blocks.
9249 (dom_init): New method to initialize members common for both
9250 constructors.
9251 (dom_info::dom_info): Invoke dom_init for partial initialization.
9252 (dom_info::get_idom): Add check to corner cases on basic blocks which
9253 are not in region.
9254 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
9255 to detect unreachable bbs.
9256 (dom_info::calc_idoms): Likewise.
9257 (compute_dom_fast_query_in_region): New function.
9258 (calculate_dominance_info_for_region): Likewise.
9259 (free_dominance_info_for_region): Likewise.
9260 * dominance.h: Add prototypes for introduced region-based functions
9261 * tree-if-conv.c (build_region): New function.
9262 (if_convertible_loop_p_1): Invoke local version of post-dominators
9263 calculation before basic block predication with subsequent freeing
9264 post-dominator info.
9265 (tree_if_conversion): Remove free of post-dominator info
9266 (pass_if_conversion::execute): Delete detection of infinite loops
9267 and fake edges to exit block since post-dominator calculation is
9268 performed per if-converted loop only.
9269
9270 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
9271
9272 PR target/77308
9273 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
9274 register explicitly.
9275 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
9276 optimizing for size.
9277
9278 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9279
9280 * config/aarch64/aarch64.c: Delete inclusion of
9281 cortex-a57-fma-steering.h.
9282 (aarch64_override_options): Delete call
9283 to aarch64_register_fma_steering.
9284 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
9285 * config/aarch64/cortex-a57-fma-steering.h: Delete.
9286 * config/aarch64/aarch64-passes.def: New file.
9287 * config/aarch64/cortex-a57-fma-steering.c
9288 (aarch64_register_fma_steering): Delete definition.
9289 (make_pass_fma_steering): Remove static qualifier.
9290 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
9291 (cortex-a57-fma-steering.o): Remove dependency on
9292 cortex-a57-fma-steering.h.
9293
9294 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
9295
9296 * explow.c (validize_mem): Do not modify the argument in-place.
9297
9298 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
9299
9300 * tree-streamer.c (record_common_node): Explicitly list expected
9301 tree codes.
9302
9303 2016-10-17 Richard Biener <rguenther@suse.de>
9304
9305 PR tree-optimization/77988
9306 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
9307
9308 2016-10-17 Marek Polacek <polacek@redhat.com>
9309
9310 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
9311
9312 2016-10-17 Richard Biener <rguenther@suse.de>
9313
9314 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
9315 before using it.
9316
9317 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9318
9319 PR tree-optimization/71636
9320 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
9321
9322 2016-10-17 Richard Biener <rguenther@suse.de>
9323
9324 * gimplify.c (gimplify_function_tree): Do not move the outer
9325 binds block.
9326
9327 2016-10-17 Jakub Jelinek <jakub@redhat.com>
9328
9329 * langhooks.h (struct lang_hooks_for_decls): Remove
9330 function_decl_explicit_p, function_decl_deleted_p and
9331 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
9332 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
9333 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9334 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
9335 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
9336 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
9337 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
9338 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
9339 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
9340 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
9341 * langhooks.c (lhd_decl_dwarf_attribute): New function.
9342 * dwarf2out.c (gen_subprogram_die): Use
9343 lang_hooks.decls.decl_dwarf_attribute instead of
9344 lang_hooks.decls.function_decl_*.
9345
9346 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9347
9348 PR ada/37139
9349 PR ada/67205
9350 * common.opt (-ftrampolines): New option.
9351 * doc/invoke.texi (Code Gen Options): Document it.
9352 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
9353 * doc/tm.texi: Regenerate.
9354 * builtins.def: Add init_descriptor and adjust_descriptor.
9355 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
9356 on platforms with descriptors.
9357 (expand_builtin_init_descriptor): New function.
9358 (expand_builtin_adjust_descriptor): Likewise.
9359 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
9360 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
9361 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
9362 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
9363 Set STATIC_CHAIN_REG_P on the static chain register, if any.
9364 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
9365 (expand_call): Likewise. Move around call to prepare_call_address
9366 and pass all flags to it.
9367 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
9368 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
9369 (gimple_call_set_by_descriptor): New setter.
9370 (gimple_call_by_descriptor_p): New getter.
9371 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
9372 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
9373 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
9374 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9375 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
9376 * rtl.h (STATIC_CHAIN_REG_P): New macro.
9377 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
9378 * target.def (custom_function_descriptors): New POD hook.
9379 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
9380 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
9381 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
9382 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
9383 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
9384 (build_common_builtin_nodes): Initialize init_descriptor and
9385 adjust_descriptor.
9386 * tree-nested.c: Include target.h.
9387 (struct nesting_info): Add 'any_descr_created' field.
9388 (get_descriptor_type): New function.
9389 (lookup_element_for_decl): New function extracted from...
9390 (create_field_for_decl): Likewise.
9391 (lookup_tramp_for_decl): ...here. Adjust.
9392 (lookup_descr_for_decl): New function.
9393 (convert_tramp_reference_op): Deal with descriptors.
9394 (build_init_call_stmt): New function extracted from...
9395 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
9396 * defaults.h (FUNCTION_ALIGNMENT): Define.
9397 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
9398 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
9399 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9400 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
9401 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
9402
9403 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
9404
9405 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
9406 constants in CONST_VECTORs.
9407
9408 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9409
9410 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
9411 register as destination of bmask.
9412 (vector_init_bshuffle): Likewise.
9413 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
9414 (bmaskdi_vis): Enable only in 64-bit mode.
9415
9416 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
9417
9418 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
9419 make LR a separately shrink-wrapped component unless savres_strategy
9420 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
9421 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
9422 wrapping when not both {SAVE,REST}_INLINE_GPRS.
9423
9424 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
9425
9426 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
9427 and keep looping on failure.
9428
9429 2016-10-14 David Malcolm <dmalcolm@redhat.com>
9430
9431 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
9432 set.
9433 (print_rtx_function): Update example in comment for...
9434 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
9435 non-virtual pseudos with a '%' sigil followed by the regno, offset
9436 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
9437 pseudo is dumped as "%0".
9438
9439 2016-10-14 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR middle-end/77959
9442 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
9443 return a MEM.
9444
9445 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
9446
9447 * config/sparc/sparc-passes.def: New file.
9448 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
9449 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
9450 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
9451
9452 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9453
9454 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
9455 loop peel to loops with exit test at the beginning.
9456
9457 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
9458
9459 PR rtl-optimization/68212
9460 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
9461 frequency when computing scale factor for peeled copies.
9462 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
9463 values for switch/peel blocks/edges.
9464
9465 2016-10-14 Pedro Alves <palves@redhat.com>
9466
9467 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
9468
9469 2016-10-14 Catherine Moore <clm@codesourcery.com>
9470
9471 * config/mips/mips.c (mips_prepare_pch_save): Initialize
9472 micromips_globals to zero.
9473
9474 2016-10-14 Richard Biener <rguenther@suse.de>
9475
9476 PR tree-optimization/77979
9477 * tree-vrp.c (compare_name_with_value): Handle released SSA names
9478 in the equivalency sets.
9479 (compare_names): Likewise.
9480
9481 2016-10-14 Martin Liska <mliska@suse.cz>
9482
9483 * builtins.h(target_char_cst_p): Declare the function.
9484 * builtins.c (fold_builtin_memchr): Remove.
9485 (target_char_cst_p): Move the function from gimple-fold.c.
9486 (fold_builtin_3): Do not call the function.
9487 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
9488 (gimple_fold_builtin): Call the function.
9489 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
9490
9491 2016-10-14 Martin Liska <mliska@suse.cz>
9492
9493 * builtins.c (fold_builtin_strcmp): Remove function.
9494 (fold_builtin_strncmp): Likewise.
9495 (fold_builtin_2): Remove call of the function.
9496 (fold_builtin_3): Likewise.
9497 * fold-const-call.c (fold_const_call): Add constant folding
9498 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
9499 * fold-const-call.h (build_cmp_result): Declare the function.
9500 * gimple-fold.c (gimple_load_first_char): New function.
9501 (gimple_fold_builtin_string_compare): Likewise.
9502 (gimple_fold_builtin): Call the function.
9503
9504 2016-10-14 Nathan Sidwell <nathan@acm.org>
9505
9506 * gcov-io.c (gcov_open): Deconstify 'mode'.
9507
9508 2016-10-14 Martin Liska <mliska@suse.cz>
9509
9510 * fold-const.c (c_getstr): Support of properly \0-terminated
9511 string constants. New argument is added.
9512 * fold-const.h: New argument is added.
9513
9514 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9515
9516 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
9517 New function.
9518 (aarch64_print_hint_for_core): Likewise.
9519 (aarch64_print_hint_for_arch): Likewise.
9520 (aarch64_validate_march): Use it. Fix indentation in type signature.
9521 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
9522 (aarch64_validate_mtune): Likewise.
9523 (aarch64_handle_attr_arch): Likewise.
9524 (aarch64_handle_attr_cpu): Likewise.
9525 (aarch64_handle_attr_tune): Likewise.
9526
9527 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9528
9529 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
9530 and udivmod_optab.
9531
9532 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
9533
9534 * config/m68k/m68k.c (m68k_option_override): Check
9535 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
9536 instead of stack_limit_rtx.
9537
9538 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9539
9540 * dwarf2out.c (gen_member_die): Handle inline static data member
9541 definitions.
9542
9543 2016-10-13 Nathan Sidwell <nathan@acm.org>
9544
9545 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
9546 gcov_var.mode. Remove unnecessary fstat.
9547
9548 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
9549
9550 PR bootstrap/77962
9551 * function.c (thread_prologue_and_epilogue_insns): Call all
9552 make_*logue_seq in the same order as traditional. Call them
9553 all a second time if shrink_wrapped_separate.
9554
9555 2016-10-13 Marek Polacek <polacek@redhat.com>
9556
9557 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
9558 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
9559 use -Wno-error.
9560
9561 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9562
9563 PR tree-optimization/77937
9564 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
9565 to infinite when we have a pointer with an increment of -1.
9566
9567 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9568
9569 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
9570 into ...
9571 * memmodel.h: This file.
9572 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9573 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
9574 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
9575 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
9576 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
9577 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
9578 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
9579 compare-elim.c, config/aarch64/aarch64-builtins.c,
9580 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
9581 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
9582 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
9583 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
9584 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
9585 config/darwin.c, config/epiphany/epiphany.c,
9586 config/epiphany/mode-switch-use.c,
9587 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
9588 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9589 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
9590 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9591 config/m68k/m68k.c, config/mcore/mcore.c,
9592 config/microblaze/microblaze.c, config/mmix/mmix.c,
9593 config/mn10300/mn10300.c, config/moxie/moxie.c,
9594 config/msp430/msp430.c, config/nds32/nds32-cost.c,
9595 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
9596 config/nds32/nds32-memory-manipulation.c,
9597 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
9598 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
9599 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
9600 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
9601 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
9602 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
9603 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9604 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9605 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
9606 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
9607 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
9608 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
9609 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
9610 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
9611 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
9612 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
9613 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
9614 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
9615 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
9616 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9617 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
9618 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9619 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
9620 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
9621 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
9622 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
9623 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
9624 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
9625 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
9626 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
9627 var-tracking.c, varasm.c: Include memmodel.h.
9628 * genattrtab.c (write_header): Include memmodel.h in generated file.
9629 * genautomata.c (main): Likewise.
9630 * gengtype.c (open_base_files): Likewise.
9631 * genopinit.c (main): Likewise.
9632 * genconditions.c (write_header): Include memmodel.h earlier in
9633 generated file.
9634 * genemit.c (main): Likewise.
9635 * genoutput.c (output_prologue): Likewise.
9636 * genpeep.c (main): Likewise.
9637 * genpreds.c (write_insn_preds_c): Likewise.
9638 * genrecog.c (write_header): Likewise.
9639 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
9640
9641 2016-10-13 David Malcolm <dmalcolm@redhat.com>
9642
9643 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
9644 for new "compact" param of print_rtx_function. Check for "cinsn"
9645 rather than "insn".
9646 * print-rtl-function.c (flag_compact): New decl.
9647 (print_rtx_function): Add param "compact" and use it to set
9648 flag_compact, adding a description of the effect to the leading
9649 comment, and updating the example output.
9650 * print-rtl.c (flag_compact): New variable.
9651 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
9652 mode.
9653 (print_rtx_operand_code_i): When printing source locations, wrap
9654 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
9655 (print_rtx_operand_code_r): Don't print regnos for hard regs and
9656 virtuals in compact mode.
9657 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
9658 apart from in LABEL_REFs.
9659 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
9660 Don't print basic block ids in compact mode.
9661 (print_rtx): In compact mode, prefix the code of insns with "c",
9662 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
9663 * print-rtl.h (print_rtx_function): Add "compact" param.
9664
9665 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * arm.h (TARGET_VFP): Delete.
9668 (TARGET_VFPD32): Remove references to TARGET_VFP.
9669 (TARGET_VFP3, TARGET_VFP5): Likewise.
9670 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
9671 (TARGET_NEON_FP16): Likewise.
9672 (TARGET_FMA): Likewise.
9673 (TARGET_CRYPTO): Likewise.
9674 (TARGET_NEON): Likewise.
9675 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
9676 (FUNCTION_ARG_REGNO_P): Likewise.
9677 * arm.c (arm_option_check_internal): Likewise.
9678 (arm_option_override): Likewise.
9679 (use_return_insn): Likewise.
9680 (arm_function_value_regno_p): Likewise.
9681 (arm_apply_result_size): Likewise.
9682 (use_vfp_abi): Likewise.
9683 (arm_legitimate_address_outer_p): Likewise.
9684 (thumb2_legitimate_address_p): Likewise.
9685 (arm_legitimate_index_p): Likewise.
9686 (thumb2_legitimate_index_p): Likewise.
9687 (arm_legitimate_address): Likewise.
9688 (arm_get_vfp_saved_size): Likewise.
9689 (arm_emit_vfp_multi_reg_pop): Likewise.
9690 (arm_get_frame_offsets): Likewise.
9691 (arm_save_coproc_regs): Likewise.
9692 (arm_hard_regno_mode_ok): Likewise.
9693 (arm_expand_epilogue_apcs_frame): Likewise.
9694 (arm_expand_epilogue): Likewise.
9695 (arm_file_start): Likewise.
9696 (arm_conditional_register_usage): Likewise.
9697 (arm_validize_comparison): Use vfp_compare_operand directly.
9698 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
9699 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
9700 unsupported usage.
9701 (arm_atomic_assign_expand_fenv): Likewise.
9702 * arm.md (divsf3): Likewise.
9703 (arm_negsi2): Likewise.
9704 (absdf2): Likewise.
9705 (arm_movdi): Likewise.
9706 (arm_movt): Likewise.
9707 (cbranchsf4): Change predicate to vfp_compare_operand.
9708 (cbranchdf4): Change predicate to vfp_compare_operand.
9709 (cstorehf4): Change predicate to vfp_compare_operand.
9710 (cstoresf4): Change predicate to vfp_compare_operand.
9711 (cstoredf4): Change predicate to vfp_compare_operand.
9712 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
9713 (movhi_insn_arch4, movhi_bytes): Likewise.
9714 * constraints.md (Dt): Likewise.
9715 (Dp): Likewise.
9716 * iterators.md (SDF): Likewise.
9717 * predicates.md (arm_float_compare_operand): Delete.
9718 (const_double_vcvt_power_of_two_reciprocal): Remove references to
9719 TARGET_VFP.
9720 (const_double_vcvt_power_of_two): Likewise.
9721 * thumb2.md thumb2_movsi_insn): Likewise.
9722 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
9723 (movhf_vfp): Likewise.
9724 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
9725 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
9726 (movsf_vfp, thumb2_movsf_vfp): Likewise.
9727 (movdf_vfp, thumb2_movdf_vfp): Likewise.
9728 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
9729 (subsf3_vfp, divsf3_vfp): Likewise.
9730 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
9731 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
9732 (mulsf3negsfsubsf_vfp): Likewise.
9733 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
9734 (floatunssisf2, sqrtsf2_vfp): Likewise.
9735 (movcc_vfp): Likewise.
9736 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
9737 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
9738 (push_multi_vfp): Likewise.
9739 (set_fpscr, get_fpscr): Likewise.
9740 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
9741
9742 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
9743
9744 * arm.h (TARGET_VFP): Unconditionally define to 1.
9745 (arm_fpu_desc): Remove 'model' field.
9746 (TARGET_FPU_MODEL): Delete.
9747 * arm.c (all_fpus): Don't initialize the model field.
9748 (arm_can_inline_p): Don't check the FPU model.
9749 * arm-fpus.def: Remove redundant model field from all FPU
9750 descriptions.
9751
9752 2016-10-13 Richard Biener <rguenther@suse.de>
9753
9754 PR middle-end/77826
9755 * genmatch.c (struct capture): Add value_match member.
9756 (commutate): Preserve value_match.
9757 (lower_opt_convert): Likewise.
9758 (lower_cond): Likewise.
9759 (replace_id): Likewise.
9760 (struct dt_operand): Add value_match member.
9761 (decision_tree::cmp_node): Compare it.
9762 (decision_tree::insert_operand): Honor it when finding and
9763 when appending a DT_MATCH.
9764 (dt_operand::gen_match_op): Generate a type check after
9765 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
9766 (parser::get_internal_capture_id): New helper.
9767 (parser::finish_match_operand): New function lowering @@<id>.
9768 (parser::parse_capture): Parse @@<id> as value-match.
9769 (parser::parse_expr): Use get_internal_capture_id.
9770 (parser::parse_simplify): Call finish_match_operand.
9771 (walk_captures): New helper.
9772 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
9773 of operand_equal_p.
9774 ((X /[ex] A) * A -> X): Likewise.
9775 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
9776 convert[12] and value-matching.
9777 ((A | B) & (A | C) -> A | (B & C)): Likewise.
9778 ((X | Y) | Y -> X | Y): Likewise.
9779 ((X ^ Y) ^ Y -> X): Likewise.
9780 (A - (A & B) -> ~B & A): Likewise.
9781 ((T)(P + A) - (T)P -> (T) A): Likewise.
9782 ((T)P - (T)(P + A) -> -(T) A): Likewise.
9783 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
9784 * doc/match-and-simplify.texi: Amend capture section.
9785
9786 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9787
9788 * config/arc/arc.md (umul_600): Remove predicated variant.
9789 (umul64_600): Likewise.
9790
9791 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
9792
9793 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
9794
9795 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9796
9797 * tree-vect-loop.c (loop_niters_no_overflow): New func.
9798 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
9799 no-overflow information to vect_do_peeling_for_loop_bound and
9800 vect_gen_vector_loop_niters.
9801
9802 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9803
9804 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
9805 iterates 1 time.
9806
9807 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9808
9809 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
9810 adjust_vec automatically.
9811 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
9812 param exit_bb to guard_to.
9813 (slpeel_checking_verify_cfg_after_peeling):
9814 (set_prologue_iterations):
9815 (create_lcssa_for_virtual_phi): New func which is factored out from
9816 slpeel_tree_peel_loop_to_edge.
9817 (slpeel_tree_peel_loop_to_edge):
9818 (iv_phi_p): New func.
9819 (vect_can_advance_ivs_p): Call iv_phi_p.
9820 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
9821 new gimple stmts in basic block.
9822 (vect_gen_niters_for_prolog_loop): Rename to...
9823 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
9824 adjust implementation.
9825 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
9826 sizetype if necessary.
9827 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
9828 it to external function.
9829 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
9830 (vect_gen_vector_loop_niters_mult_vf): New.
9831 (slpeel_update_phi_nodes_for_loops): New.
9832 (slpeel_update_phi_nodes_for_guard1): Reimplement.
9833 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
9834 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
9835 * tree-vect-loop.c (vect_build_loop_niters): Move to file
9836 tree-vect-loop-manip.c
9837 (vect_generate_tmps_on_preheader): Delete.
9838 (vect_transform_loop): Rename vectorization_factor to vf. Call
9839 vect_do_peeling instead of vect_do_peeling-* functions.
9840 * tree-vectorizer.h (vect_do_peeling): New decl.
9841 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
9842 (vect_do_peeling_for_loop_bound): Delete.
9843 (vect_do_peeling_for_alignment): Delete.
9844
9845 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9846
9847 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
9848 duplicated loop after its preheader and after the original loop.
9849
9850 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9851
9852 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
9853 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
9854
9855 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9856
9857 * tree-vect-loop.c (vectorizable_live_operation): Support handling
9858 for live variable outside loop but not in lcssa form.
9859
9860 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9861
9862 * cfg.c (reset_original_copy_tables): New func.
9863 * cfg.h (reset_original_copy_tables): New decl.
9864
9865 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9866
9867 PR c/77946
9868 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
9869 public_flag.
9870 * varasm.c (default_binds_local_p_3): Formatting fix.
9871
9872 2016-10-13 Bin Cheng <bin.cheng@arm.com>
9873
9874 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
9875 style issue.
9876 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
9877 Remove useless code.
9878
9879 2016-10-13 Martin Liska <mliska@suse.cz>
9880
9881 PR tree-optimization/77943
9882 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
9883 a different EH landing pads.
9884
9885 2016-10-13 Jakub Jelinek <jakub@redhat.com>
9886
9887 PR target/77957
9888 * hooks.h (hook_tree_void_null): Declare.
9889 * hooks.c (hook_tree_void_null): New function.
9890 * langhooks.c (lhd_return_null_tree_v): Remove.
9891 * langhooks-def.h (lhd_return_null_tree_v): Remove.
9892 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
9893 set y to const0_rtx.
9894 * function.c (stack_protect_epilogue): Likewise.
9895 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
9896 if TARGET_THREAD_SSP_OFFSET is defined.
9897 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9898 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9899 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9900 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9901 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
9902 (ix86_stack_protect_guard): New function.
9903
9904 2016-10-13 Richard Biener <rguenther@suse.de>
9905
9906 * dwarf2out.c (tree_add_const_value_attribute): Do not try
9907 rtl_for_decl_init during early phase.
9908 (gen_variable_die): Do not create locations during early phase.
9909 (gen_label_die): Likewise.
9910 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
9911 twice.
9912
9913 2016-10-12 Richard Biener <rguenther@suse.de>
9914
9915 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
9916 try_add_new_range and made to eturn new range.
9917 (evrp_dom_walker::before_dom_children): Push op1 value range before
9918 pushing op0 value range.
9919
9920 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9921
9922 PR tree-optimization/77937
9923 * gimple-ssa-strength-reduction.c (analyze_increments): Use
9924 POINTER_TYPE_P on the candidate type to determine whether
9925 candidates in this chain require pointer arithmetic.
9926
9927 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
9928
9929 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
9930 correction if the type is smaller than a word.
9931 (visium_select_cc_mode): Add ... fall through ... comment.
9932
9933 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9934
9935 * config/rs6000/rs6000.c (machine_function): Add new fields
9936 gpr_is_wrapped_separately and lr_is_wrapped_separately.
9937 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
9938 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
9939 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
9940 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
9941 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
9942 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
9943 (rs6000_get_separate_components): New function.
9944 (rs6000_components_for_bb): New function.
9945 (rs6000_disqualify_components): New function.
9946 (rs6000_emit_prologue_components): New function.
9947 (rs6000_emit_epilogue_components): New function.
9948 (rs6000_set_handled_components): New function.
9949 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
9950 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
9951 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
9952 (rs6000_emit_epilogue): Don't emit GPR restores if
9953 gpr_is_wrapped_separately for that register. Don't make a
9954 REG_CFA_RESTORE note for registers we did not restore, either.
9955
9956 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9957
9958 * function.c (thread_prologue_and_epilogue_insns): Call
9959 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
9960 if it has possibly changed. Compute the split_prologue_seq and
9961 epilogue_seq later, too.
9962 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
9963 (dump_components): New function.
9964 (struct sw): New struct.
9965 (SW): New function.
9966 (init_separate_shrink_wrap): New function.
9967 (fini_separate_shrink_wrap): New function.
9968 (place_prologue_for_one_component): New function.
9969 (spread_components): New function.
9970 (disqualify_problematic_components): New function.
9971 (emit_common_heads_for_components): New function.
9972 (emit_common_tails_for_components): New function.
9973 (insert_prologue_epilogue_for_components): New function.
9974 (try_shrink_wrapping_separate): New function.
9975 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
9976
9977 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9978
9979 * regrename.c (build_def_use): Invalidate chains that have a
9980 REG_CFA_RESTORE on some instruction.
9981
9982 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9983
9984 * dce.c (delete_unmarked_insns): Don't delete instructions with
9985 a REG_CFA_RESTORE note.
9986
9987 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
9988
9989 * common.opt (-fshrink-wrap-separate): New flag.
9990 * doc/invoke.texi: Document it.
9991 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
9992 * doc/tm.texi: Regenerate.
9993 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
9994 * target.def (shrink_wrap): New hook vector.
9995 (get_separate_components, components_for_bb, disqualify_components,
9996 emit_prologue_components, emit_epilogue_components,
9997 set_handled_components): New hooks.
9998
9999 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
10000
10001 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
10002 vector return by reference only if -Wpsabi.
10003 (rs6000_pass_by_reference): Similarly, for argument passing.
10004
10005 2016-10-12 David Malcolm <dmalcolm@redhat.com>
10006
10007 * function-tests.c: Include "print-rtl.h".
10008 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
10009 function, and verify what is dumped.
10010 * print-rtl-function.c (print_edge): New function.
10011 (begin_any_block): New function.
10012 (end_any_block): New function.
10013 (can_have_basic_block_p): New function.
10014 (print_rtx_function): Track the basic blocks of insns in the
10015 chain, wrapping those that are within blocks within "(block)"
10016 directives. Remove the "(cfg)" directive.
10017
10018 2016-10-12 David Malcolm <dmalcolm@redhat.com>
10019
10020 * selftest.c (selftest::read_file): New function.
10021 (selftest::test_read_file): New function.
10022 (selftest::selftest_c_tests): Call test_read_file.
10023 * selftest.h (selftest::read_file): New decl.
10024
10025 2016-10-12 Richard Biener <rguenther@suse.de>
10026
10027 PR debug/77947
10028 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
10029 function context.
10030
10031 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
10032
10033 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
10034
10035 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
10036 dwarf2out_assembly_start.
10037
10038 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
10039
10040 * Makefile.in (SELFTEST_FLAGS): New variable.
10041 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
10042
10043 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
10044 early_finish hook.
10045
10046 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
10047
10048 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
10049 dumped in RTL dumps.
10050
10051 2016-10-12 Martin Liska <mliska@suse.cz>
10052
10053 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
10054 (gimple_fold_builtin_memory_op): Use the function.
10055 (gimple_fold_builtin_strchr): Likewise.
10056 (gimple_fold_builtin_strcat): Likewise.
10057 (gimple_build): Likewise.
10058
10059 2016-10-12 Nathan Sidwell <nathan@acm.org>
10060
10061 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
10062
10063 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10064
10065 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
10066 equivalent 32-bit constant (modulo 2**32) when that yields
10067 smaller instructions.
10068 (size_of_int_loc_descriptor): Update accordingly.
10069
10070 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
10071
10072 * dwarf2out.c (dwarf2out_early_global_decl): For nested
10073 functions, call dwarf2out_decl on the parent function first.
10074
10075 2016-10-12 Richard Biener <rguenther@suse.de>
10076
10077 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
10078 on the conversion.
10079
10080 2016-10-12 Richard Biener <rguenther@suse.de>
10081
10082 * tree-ssa-propagate.c
10083 (substitute_and_fold_dom_walker::before_dom_children): Do not
10084 ignore ASSERT_EXPRs but only preserve them.
10085 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
10086 that have been propagated into.
10087 (vrp_finalize): Enable DCE for substitute_and_fold.
10088
10089 2016-10-12 Richard Biener <rguenther@suse.de>
10090
10091 PR tree-optimization/77920
10092 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
10093 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
10094 (simplify_abs_using_ranges): Likewise.
10095 (simplify_conversion_using_ranges): Likewise.
10096 (simplify_stmt_using_ranges): Adjust.
10097
10098 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10099
10100 PR tree-optimization/77929
10101 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
10102 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
10103
10104 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10105
10106 PR target/77934
10107 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
10108 needs a base register for arg 1.
10109
10110 2016-10-12 Jakub Jelinek <jakub@redhat.com>
10111
10112 * common.opt (Wimplicit-fallthrough) Turn into alias to
10113 -Wimplicit-fallthrough=3. Remove EnabledBy.
10114 (Wimplicit-fallthrough=): New option.
10115 * gimplify.c (warn_implicit_fallthrough_r): Use
10116 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
10117 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
10118 to -Wimplicit-fallthrough=3.
10119 (-Wimplicit-fallthrough=): Document.
10120
10121 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10122
10123 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
10124 and GEU in DImode if TARGET_SUBXC.
10125 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
10126 (seqdi<W:mode>_zero_subxc): Delete.
10127 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
10128 (neg_seqdi<W:mode>_zero_vis3): Delete.
10129 (plus_seqdi<W:mode>_zero): Likewise.
10130 (minus_seqdi<W:mode>_zero): Likewise.
10131 (plus_plus_sltu<W:mode>): Accept only register.
10132 (addx<W:mode>): Likewise.
10133 (plus_sltu<W:mode>_vis3): Likewise.
10134 (plus_plus_sltu<W:mode>_vis3): Likewise.
10135 (neg_sgeu<W:mode>_vis3): Delete.
10136 (minus_sgeu<W:mode>_vis3): Likewise.
10137 (addxc<W:mode>): Accept only registers.
10138 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10139 (minus_neg_sltu<W:mode>_subxc): Accept only register.
10140 (neg_plus_sltu<W:mode>_subxc): Likewise.
10141 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
10142 (minus_minus_sltu<W:mode>_subxc): Accept only register.
10143 (sgeu<W:mode>_insn_subxc): Delete.
10144 (plus_sgeu<W:mode>_subxc): Likewise.
10145 (subxc<W:mode>): Accept only register.
10146 (scc splitter): Split always GEU again.
10147
10148 2016-10-11 Jeff Law <law@redhat.com>
10149
10150 PR tree-optimization/77424
10151 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
10152 dead conditionals. Assert that all e->aux fields are NULL.
10153
10154 2016-10-11 David Malcolm <dmalcolm@redhat.com>
10155
10156 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
10157 operand-printing "switch" statement into...
10158 (print_rtx_operand_code_0): ...this new function, ...
10159 (print_rtx_operand_code_e): ...this new function, ...
10160 (print_rtx_operand_codes_E_and_V): ...this new function, ...
10161 (print_rtx_operand_code_i): ...this new function, ...
10162 (print_rtx_operand_code_r): ...this new function, ...
10163 (print_rtx_operand_code_u): ...this new function, ...
10164 (print_rtx_operand): ...and this new function.
10165
10166 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
10167
10168 * config/alpha/alpha-passes.def: New file.
10169 * config/alpha/t-alpha: New file.
10170 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
10171 (make_pass_handle_trap_shadows): New prototype.
10172 (make_pass_align_insns): Ditto.
10173 * config/alpha/alpha.c (alpha_option_override): Don't register
10174 passes here.
10175 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
10176
10177 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10178
10179 PR target/77924
10180 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
10181 distinct __ibm128 IBM extended double type if long doubles are
10182 128-bits and the default format for long double is IEEE 128-bit.
10183
10184 2016-10-11 Richard Biener <rguenther@suse.de>
10185
10186 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
10187 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
10188 (verify_die): New function.
10189 (dwarf2out_finish): Call it.
10190 (output_line_info): Handle case of -gsplit-dwarf without
10191 DWARF2_ASM_LINE_DEBUG_INFO.
10192
10193 2016-10-11 Richard Biener <rguenther@suse.de>
10194
10195 PR debug/77931
10196 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
10197 sub-chains of BLOCK_VARS and gimple_bind_vars.
10198
10199 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10200
10201 * config/i386/znver1.md : Fix imov/imovx load type reservations.
10202
10203 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10204
10205 * config/sparc/sparc.opt (msubxc): New option.
10206 * doc/invoke.texi (SPARC options): Document it and tidy up.
10207 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
10208 * doc/tm.texi: Regenerate.
10209 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
10210 (CCNZ): ...this.
10211 (CCX_NOOV): Rename into...
10212 (CCXNZ): ...this.
10213 (CCC): New.
10214 (CCXC): Likewise.
10215 * config/sparc/predicates.m (fcc_register_operand): Simplify.
10216 (fcc0_register_operand): Likewise.
10217 (icc_register_operand): New.
10218 (icc_or_fcc_register_operand): Simplify.
10219 (nz_comparison_operator): New.
10220 (c_comparison_operator): Likewise.
10221 (noov_compare_operator): Rename into...
10222 (icc_comparison_operator): ...this. Use above predicates.
10223 (noov_compare64_operator): Rename into...
10224 (v9_comparison_operator): ...this and tidy up.
10225 (fcc_comparison_operator): New.
10226 (icc_or_fcc_comparison_operator): Likewise.
10227 (v9_register_compare_operator): Rename info...
10228 (v9_register_comparison_operator): ...this.
10229 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10230 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
10231 for Niagara-7.
10232 (sparc_fixed_condition_code_regs): New function.
10233 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
10234 renaming and add support for CCC/CCXC.
10235 (output_cbranch): Likewise.
10236 (sparc_print_operand): Likewise.
10237 (gen_v9_scc): Remove obsolete assertion.
10238 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
10239 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
10240 (output_cbcond): Remove bogus handling of CC modes.
10241 (sparc_register_move_cost): Return 100 for NO_REGS.
10242 * config/sparc/sparc.md (W): New mode iterator.
10243 (length): Adjust for noov_compare64_operator renaming.
10244 (cmpsi_sne): New instruction.
10245 (cmpdi_sne): Likewise.
10246 (seqdi_special): Delete.
10247 (seqdi_special): Likewise.
10248 (snesi<P:mode>_special): Likewise.
10249 (snedi_special): Likewise.
10250 (snedi_special_vis3): Likewise.
10251 (snesi patterns): Use W iterator.
10252 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
10253 (sltu patterns): Likewise.
10254 (sgeu patterns): Likewise.
10255 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
10256 (normal_branch): Use icc_comparison_operator predicate.
10257 (inverted_branch): Likewise.
10258 (cbcond_sp32): Use comparison_operator predicate.
10259 (cbcond_sp64): Likewise.
10260 (normal_int_branch_sp64): Adjust for renaming
10261 (inverted_int_branch_sp64): Likewise.
10262 (mov<I:mode>_cc_reg_sp64): Likewise.
10263 (movsf_cc_reg_sp6): Likewise.
10264 (movdf_cc_reg_sp64): Likewise.
10265 (movtf_cc_reg_hq_sp64): Likewise.
10266 (movtf_cc_reg_sp64): Likewise.
10267 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
10268 (movsf_cc_v9): Likewise.
10269 (movdf_cc_v9): Likewise.
10270 (movtf_cc_hq_v9): Likewise.
10271 (movtf_cc_v9): Likewise.
10272 (adddi3): Call gen_adddi3_sp32.
10273 (adddi3_insn_sp32): Rename to...
10274 (adddi3_sp32): ...this. Accept only register_operand as operand #1
10275 and use CCCmode for the carry.
10276 (addx_extend_sp32): Use CCCmode for the carry.
10277 (addx_extend_sp64): Delete.
10278 (adddi3_extend_sp32): Use CCCmode for the carry.
10279 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
10280 (subdi3): Call gen_subdi3_sp32.
10281 (subdi3_insn_sp32): Rename to...
10282 (subdi3_sp32): ...this and use CCmode for the carry.
10283 (subx_extend_sp32): Use CCCmode for the carry.
10284 (subx_extend_sp64): Delete.
10285 (subdi3_extend_sp32): Use CCmode for the carry.
10286 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
10287 (negdi3): Call gen_negdi3_sp32.
10288 (negdi3_sp32): Use CCCmode for the carry.
10289 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
10290 (cmp_nz_ashift_1): Use CCNZ mode.
10291 (cmp_nz_set_ashift_1): Likewise.
10292 (ctrapsi4): Use comparison_operator predicate.
10293 (ctrapdi4): Likewise.
10294 (trapsi_insn): Use icc_comparison_operator predicate.
10295 (trapdi_insn): Likewise.
10296 (edge8 patterns): Use CCNZmode.
10297 (edge16 patterns): Likewise.
10298 (edge32 patterns): Likewise.
10299
10300 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10301
10302 * config/visium/visium-modes.def (CC_NOOV): Rename into...
10303 (CCNZ): ...this.
10304 (CC_BTST): Rename into...
10305 (CCC): ...this.
10306 * config/visium/predicates.md (real_add_operand): New.
10307 (visium_btst_operator): Rename into...
10308 (visium_equality_comparison_operator): ...this.
10309 (visium_noov_operator): Rename into...
10310 (visium_nz_comparison_operator): ...this.
10311 (visium_c_comparison_operator): New.
10312 (visium_branch_operator): Adjust and deal with all CC modes.
10313 * config/visium/visium.c (visium_adjust_cost): Adjust.
10314 (visium_split_double_add): Use the *_set_carry patterns.
10315 (visium_select_cc_mode): Add support for CCC mode and adjust.
10316 (output_cbranch): Adjust and use the carry-based operators for
10317 floating-point comparisons.
10318 * config/visium/visium.md (flags_subst_arith): Adjust.
10319 (addsi3_insn_set_carry): New instruction.
10320 (subsi3_insn_set_carry): Likewise.
10321 (negsi2_insn_set_carry): Likewise.
10322 (btst): Adjust.
10323 (cmp<mode>_sne): Likewise.
10324 (cbranch<mode>4): Use ordered_comparison_operator.
10325 (cbranch<mode>4_insn): Likewise.
10326 (cbranchsi4_btst_insn): Adjust.
10327
10328 2016-10-11 Tom de Vries <tom@codesourcery.com>
10329
10330 PR middle-end/77558
10331 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
10332 special-casing.
10333
10334 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
10335
10336 * tree.h (build_complex_type): Add second parameter with default.
10337 * tree.c (build_complex_type): Add NAMED second parameter and adjust
10338 recursive call. Create a TYPE_DECL only if NAMED is true.
10339 (build_common_tree_nodes): Pass true in calls to build_complex_type.
10340
10341 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
10342
10343 New avr-passes.def to register AVR specific passes.
10344
10345 * config/avr/avr-passes.def: New file.
10346 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
10347 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
10348 (make_avr_pass_recompute_note): New proto.
10349 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
10350 (avr_pass_recompute_notes): Use anonymous namespace.
10351 (avr_register_passes): Remove function...
10352 (avr_option_override): ...and its call.
10353
10354 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
10355
10356 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
10357 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
10358 PTF_AVOID_BRANCHLIKELY_SPEED for others.
10359 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
10360 flags.
10361 * config/mips/mips.c (mips_option_override): Enable the branch
10362 likely depending on the tune flags and optimization level.
10363 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
10364 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
10365 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
10366 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
10367
10368 2016-10-11 Richard Biener <rguenther@suse.de>
10369
10370 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
10371 (output_function): Properly stream the whole block tree.
10372 * lto-streamer-in.c (input_function): Likewise.
10373
10374 2016-10-11 Marek Polacek <polacek@redhat.com>
10375
10376 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
10377
10378 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10379
10380 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
10381 (evrp_dom_walker::before_dom_children): Infer and push new value
10382 ranges for x in y < x.
10383
10384 2016-10-10 Joseph Myers <joseph@codesourcery.com>
10385
10386 PR target/77586
10387 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
10388 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
10389 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10390 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
10391 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
10392 (IA64_NO_LIBGCC_TFMODE): Likewise.
10393
10394 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
10395
10396 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
10397 copying.
10398
10399 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
10400
10401 * config.gcc: Add aarch64-*-freebsd* support.
10402 * config.host: Likewise.
10403 * config/aarch64/aarch64-freebsd.h: New file.
10404 * config/aarch64/t-aarch64-freebsd: Ditto.
10405
10406 2016-10-10 Jeff Law <law@redhat.com>
10407
10408 PR tree-optimization/71947
10409 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
10410 B with A within a single statement.
10411
10412 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10413
10414 PR tree-optimization/77824
10415 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
10416 zero cost for copies.
10417 (find_candidates_dom_walker::before_dom_children): Replace
10418 MODIFY_EXPR with SSA_NAME.
10419 (replace_mult_candidate): Likewise.
10420 (replace_profitable_candidates): Likewise.
10421
10422 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10423
10424 * config/s390/s390.h: Wrap more macros args in brackets and fix
10425
10426 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
10427
10428 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
10429
10430 2016-10-10 Andreas Schwab <schwab@suse.de>
10431
10432 PR target/77738
10433 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
10434 pseudo is not DImode.
10435
10436 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
10437
10438 * common/config/arc/arc-common.c (arc_option_optimization_table):
10439 Remove compact casesi option.
10440 * config/arc/arc.c (arc_override_options): Use compact casesi
10441 option only for pre-ARCv2 cores.
10442 * doc/invoke.texi (mcompact-casesi): Update text.
10443
10444 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10445
10446 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
10447 Add macro to say we can efficiently handle overlapping unaligned
10448 loads.
10449 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
10450 poor code for processors older than p8.
10451
10452 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
10453
10454 * gen-pass-instances.awk: Remove GNUism.
10455
10456 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10457
10458 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
10459 NULL of (*ipcp_transformations)][node->uid].
10460
10461 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
10462
10463 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
10464 (MALLOC_ABI_ALIGNMENT): Define.
10465
10466 2016-10-09 Jakub Jelinek <jakub@redhat.com>
10467
10468 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
10469 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
10470 VAR_OR_FUNCTION_DECL_P macros.
10471 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
10472 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
10473 chkp_find_bounds_1): Likewise.
10474 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
10475 * hsa-gen.c (get_symbol_for_decl): Likewise.
10476 * cgraphunit.c (check_global_declaration, analyze_functions,
10477 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
10478 Likewise.
10479 * gimple-fold.c (can_refer_decl_in_current_unit_p,
10480 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
10481 Likewise.
10482 * tree.c (set_decl_section_name, copy_node_stat,
10483 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
10484 merge_dllimport_decl_attributes, handle_dll_attribute,
10485 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
10486 verify_type): Likewise.
10487 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
10488 find_explicit_erroneous_behavior): Likewise.
10489 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
10490 * ipa.c (process_references): Likewise.
10491 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
10492 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
10493 notice_global_symbol, assemble_variable, mark_decl_referenced,
10494 build_constant_desc, output_constant_def_contents, do_assemble_alias,
10495 make_decl_one_only, default_section_type_flags,
10496 categorize_decl_for_section, default_encode_section_info): Likewise.
10497 * trans-mem.c (requires_barrier): Likewise.
10498 * gimple-expr.c (mark_addressable): Likewise.
10499 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
10500 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
10501 expand_debug_expr): Likewise.
10502 * tree-dump.c (dequeue_and_dump): Likewise.
10503 * ubsan.c (instrument_bool_enum_load): Likewise.
10504 * tree-pretty-print.c (print_declaration): Likewise.
10505 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
10506 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
10507 * asan.c (asan_protect_global, instrument_derefs): Likewise.
10508 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
10509 pass_build_ssa::execute): Likewise.
10510 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
10511 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
10512 Likewise.
10513 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
10514 Likewise.
10515 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
10516 can_be_nonlocal, remap_decls, copy_debug_stmt,
10517 initialize_inlined_parameters, add_local_variables,
10518 reset_debug_binding, replace_locals_op): Likewise.
10519 * dse.c (can_escape): Likewise.
10520 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
10521 Likewise.
10522 * tree-diagnostic.c (default_tree_printer): Likewise.
10523 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
10524 unpack_ts_decl_with_vis_value_fields,
10525 lto_input_ts_decl_common_tree_pointers): Likewise.
10526 * builtins.c (builtin_save_expr, fold_builtin_expect,
10527 readonly_data_expr): Likewise.
10528 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
10529 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
10530 Likewise.
10531 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
10532 * gimplify.c (force_constant_size, gimplify_bind_expr,
10533 gimplify_decl_expr, gimplify_var_or_parm_decl,
10534 gimplify_compound_lval, gimplify_init_constructor,
10535 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
10536 gimplify_type_sizes): Likewise.
10537 * cgraphbuild.c (record_reference, record_type_list, mark_address,
10538 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
10539 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
10540 remove_unused_locals): Likewise.
10541 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
10542 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
10543 * function.c (instantiate_expr, instantiate_decls_1,
10544 setjmp_vars_warning, add_local_decl): Likewise.
10545 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
10546 Likewise.
10547 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
10548 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
10549 optimize_va_list_gpr_fpr_size): Likewise.
10550 * tree-nrv.c (pass_nrv::execute): Likewise.
10551 * tsan.c (instrument_expr): Likewise.
10552 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
10553 * vtable-verify.c (verify_bb_vtables): Likewise.
10554 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
10555 get_ref_base_and_extent): Likewise.
10556 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
10557 Likewise.
10558 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
10559 analyze_all_variable_accesses): Likewise.
10560 * tree-nested.c (get_nonlocal_debug_decl,
10561 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
10562 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
10563 get_local_debug_decl, convert_local_omp_clauses,
10564 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
10565 Likewise.
10566 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
10567 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
10568 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
10569 dbxout_symbol, dbxout_common_check): Likewise.
10570 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
10571 string_constant): Likewise.
10572 * hsa.c (hsa_get_declaration_name): Likewise.
10573 * passes.c (rest_of_decl_compilation): Likewise.
10574 * tree-ssanames.c (make_ssa_name_fn): Likewise.
10575 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
10576 pack_ts_decl_with_vis_value_fields,
10577 write_ts_decl_common_tree_pointers): Likewise.
10578 * stor-layout.c (place_field): Likewise.
10579 * symtab.c (symtab_node::maybe_create_reference,
10580 symtab_node::verify_base, symtab_node::make_decl_local,
10581 symtab_node::copy_visibility_from,
10582 symtab_node::can_increase_alignment_p): Likewise.
10583 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
10584 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
10585 fortran_common, add_location_or_const_value_attribute,
10586 add_scalar_info, add_linkage_name, set_block_abstract_flags,
10587 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
10588 optimize_one_addr_into_implicit_ptr,
10589 optimize_location_into_implicit_ptr): Likewise.
10590 * gimple-low.c (record_vars_into): Likewise.
10591 * ipa-visibility.c (update_vtable_references): Likewise.
10592 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
10593 Likewise.
10594 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
10595 DFS::DFS_write_tree_body, write_symbol): Likewise.
10596 * langhooks.c (lhd_warn_unused_global_decl,
10597 lhd_set_decl_assembler_name): Likewise.
10598 * attribs.c (decl_attributes): Likewise.
10599 * except.c (output_ttype): Likewise.
10600 * varpool.c (varpool_node::get_create, ctor_for_folding,
10601 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
10602 * fold-const.c (fold_unary_loc): Likewise.
10603 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
10604 ipa_find_agg_cst_from_init): Likewise.
10605 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
10606 expand_omp_target, lower_omp_regimplify_p,
10607 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
10608 find_link_var_op): Likewise.
10609 * tree-chrec.c (chrec_contains_symbols): Likewise.
10610 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
10611 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
10612 execute_fixup_cfg): Likewise.
10613
10614 PR tree-optimization/77901
10615 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
10616 if ranges[i].exp is SSA_NAME when looking for >= and only when
10617 ranges[i].exp is NULL or SSA_NAME when looking for the other
10618 comparison.
10619
10620 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10621
10622 * ipa-cp.c (ipcp_alignment_lattice): Remove.
10623 (ipcp_param_lattices): Remove field alignment.
10624 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
10625 (set_all_contains_variable): Remove call to
10626 ipcp_alignment_lattice::set_to_bottom.
10627 (initialize_node_lattices): Likewise.
10628 (propagate_alignment_accross_jump_function): Remove.
10629 (propagate_constants_accross_call): Remove call to
10630 propagate_alignment_accross_jump_function.
10631 (ipcp_store_alignment_results): Remove.
10632 (ipcp_driver): Remove call to ipcp_store_alignment_results.
10633 (propagate_bits_accross_jump_function): Handle ancestor jump function.
10634 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
10635 pretty-printing of alignment jump function.
10636 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
10637 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
10638 alignments and remove computing ipa_alignment jump function.
10639 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
10640 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
10641 (ipa_read_jump_function): Remove reading of ipa_alignment.
10642 (write_ipcp_transformation_info): Remove streaming for alignment
10643 propagation summary.
10644 (read_ipcp_transformation_info): Remove reading of alignment
10645 propagation summary.
10646 (ipcp_update_alignments): Remove.
10647 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
10648 type.
10649 (ipcp_transform_function): Remove call to ipcp_update_alignments()
10650 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
10651 * ipa-prop.h (ipa_alignment): Remove.
10652 (ipa_jump_func): Remove field alignment.
10653 (ipcp_transformation_summary): Remove field alignments.
10654 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
10655 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
10656 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
10657
10658 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
10659
10660 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
10661
10662 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
10663 change.
10664 (visium_expand_fp_cstore): Likewise.
10665
10666 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10667
10668 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
10669 * diagnostic.c (warning_at_rich_loc_n): New function.
10670 (diagnostic_n_impl_richloc): Likewise.
10671 (diagnostic_n_impl): Move most of the function to
10672 diagnostic_n_impl_richloc and call it.
10673
10674 2016-10-08 Jakub Jelinek <jakub@redhat.com>
10675
10676 * gen-pass-instances.awk: Rewritten.
10677 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
10678 $(PASSES_EXTRA) after passes.def to the script.
10679 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
10680 * config/i386/i386-passes.def: New file.
10681 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
10682 make_pass_stv): Declare.
10683 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
10684 false.
10685 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
10686 or !TARGET_64BIT.
10687 (pass_stv::clone, pass_stv::set_pass_param): New methods.
10688 (pass_stv::timode_p): New non-static data member.
10689 (ix86_option_override): Don't register passes here.
10690
10691 * doc/invoke.texi: Document accepting Else, fallthrough.
10692
10693 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
10694 style changes.
10695
10696 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
10697 FALLTHRU comment styles.
10698
10699 2016-10-07 Andrew Pinski <apinski@cavium.com>
10700
10701 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
10702 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
10703 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
10704 Likewise.
10705 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
10706 Likewise.
10707 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
10708 Likewise.
10709 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
10710 (AARCH64_ARCH): Likewise.
10711 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
10712 Likewise.
10713 (AARCH64_CORE): Likewise.
10714 (AARCH64_ARCH): Likewise.
10715 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
10716 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10717 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
10718 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
10719 (AARCH64_ARCH): Likewise.
10720 (AARCH64_CORE): Likewise.
10721 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
10722 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
10723 (AARCH64_CORE): Likewise.
10724 (AARCH64_ARCH): Likewise.
10725
10726 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
10727
10728 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
10729 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
10730 floating point type infrastructre, and -mfloat128 that enables the
10731 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
10732 if -mfloat128-type. Define __ibm128 to be long double by default.
10733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
10734 the IEEE 128-bit floating point type infrastructure should
10735 automatically be enabled.
10736 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
10737 instead of -mfloat128 to enable KFmode.
10738 (rs6000_option_override_internal): Split the option -mfloat128
10739 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
10740 systems, automatically set -mfloat128-type, but don't enable it on
10741 other operating systems. Move setting the long double size and
10742 IEEE quad support before the IEEE 128-bit floating point changes.
10743 (rs6000_init_builtins): Do not create a unique type for __ibm128
10744 if long double is IBM extended double, instead rely on __ibm128
10745 being defined as 'long double'. If -mfloat128-type and not
10746 -mfloat128, create the KFmode type with an undocumented __ieee128
10747 keyword.
10748 (rs6000_init_libfuncs): Use -mfloat128-type instead of
10749 -mfloat128 for tests about the types, but keep tests for
10750 -mfloat128 to enable the keyword support.
10751 (rs6000_complex_function_value): Likewise.
10752 (rs6000_scalar_mode_supported_p): Likewise.
10753 (rs6000_floatn_mode): Likewise.
10754 (rs6000_c_mode_for_suffix): Likewise.
10755 (rs6000_opt_masks): Add -mfloat128-type.
10756 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
10757 -mfloat128-type being split from -mfloat128. Add
10758 -mfloat128-hardware, which was missing.
10759 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
10760 -mfloat128 and -mfloat128-type:
10761 (-mfloat128-type): Likewise.
10762 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
10763 that 64-bit Linux systems with enable -mfloat128-type by default
10764 on VSX systems.
10765 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
10766 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
10767 -mfloat128-type instead of -mfloat128.
10768 (FLOAT128_2REG_P): Likewise.
10769 (MASK_FLOAT128_TYPE): Likewise.
10770 (ALTIVEC_ARG_MAX_RETURN): Likewise.
10771 (RS6000_BTM_FLOAT128): Likewise.
10772 (TARGET_FLOAT128): Poison old identifiers.
10773 (OPTION_MASK_FLOAT128): Likewise.
10774 (MASK_FLOAT128): Likewise.
10775 * config/rs6000/rs6000.md (FP): Likewise.
10776 (FLOAT128): Likewise.
10777 (fix_trunc<mode>di2): Likewise.
10778 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
10779 (floatdi<mode>2): Likewise.
10780 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
10781 (neg<mode>2, FLOAT128 iterator): Likewise.
10782 (abs<mode>2, FLOAT128 iterator): Likewise.
10783 (ieee_128bit_negative_zero): Likewise.
10784 (ieee_128bit_vsx_neg<mode>2): Likewise.
10785 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10786 (ieee_128bit_vsx_abs<mode>2): Likewise.
10787 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10788 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10789 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10790 (extendiftf2): Likewise.
10791 (extendifkf2): Likewise.
10792 (extendtfkf2): Likewise.
10793 (trunciftf2): Likewise.
10794 (truncifkf2): Likewise.
10795 (trunckftf2): Likewise.
10796 (trunctfif2): Likewise.
10797 (extendkftf2): Likewise.
10798 (trunctfkf2): Likewise.
10799
10800 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10801
10802 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
10803 before merging in bytes to pass down to real_from_target.
10804
10805 2016-10-07 Richard Biener <rguenther@suse.de>
10806
10807 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
10808 required hack.
10809 (substitute_and_fold_dom_walker::before_dom_children):
10810 Substitute and fold before pass specific folding to avoid
10811 feeding that with SSA names that will be later released.
10812 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
10813 introduced by folding and visited by evaluate_stmt called during
10814 ccp_fold_stmt.
10815 (likely_value): Likewise.
10816 (evaluate_stmt): Likewise.
10817 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
10818 (simplify_div_or_mod_using_ranges): Likewise.
10819 (simplify_min_or_max_using_ranges): Likewise.
10820 (simplify_abs_using_ranges): Likewise.
10821 (simplify_conversion_using_ranges): Likewise.
10822 (simplify_float_conversion_using_ranges): Likewise.
10823 (simplify_stmt_using_ranges): Likewise.
10824
10825 2016-10-07 Marek Polacek <polacek@redhat.com>
10826
10827 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
10828 FALLTHROUGH_LABEL_P here...
10829 (warn_implicit_fallthrough_r): ...not here.
10830
10831 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
10832
10833 PR tree-optimization/77880
10834 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
10835 necessary.
10836
10837 2016-10-07 Marek Polacek <polacek@redhat.com>
10838
10839 PR c++/77803
10840 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
10841
10842 2016-10-07 Richard Biener <rguenther@suse.de>
10843
10844 * bitmap.h: Document constraints on bitmap modification while
10845 iterating over it.
10846
10847 2016-10-07 Richard Biener <rguenther@suse.de>
10848
10849 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
10850 * bitmap.h (bmp_iter_set): When advancing to the next element
10851 check that we didn't remove the current one.
10852 (bmp_iter_and): Likewise.
10853 (bmp_iter_and_compl): Likewise.
10854 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
10855 we currently iterate on but keep a one-level queue.
10856 * sched-deps.c (remove_from_deps): Do not clear current bit
10857 but keep a one-level queue.
10858
10859 2016-10-07 Jakub Jelinek <jakub@redhat.com>
10860
10861 PR tree-optimization/77664
10862 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
10863 for the other ranges.
10864 (optimize_range_tests_diff): Fix up formatting.
10865 (optimize_range_tests_var_bound): New function.
10866 (optimize_range_tests): Use it.
10867
10868 2016-10-07 Martin Liska <mliska@suse.cz>
10869
10870 * coverage.c (build_gcov_exit_decl): Fix priority what
10871 should be really 99.
10872
10873 2016-10-07 Richard Biener <rguenther@suse.de>
10874
10875 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
10876 vars in gimple_bind_vars but not in BLOCK_VARS.
10877
10878 2016-10-07 Richard Biener <rguenther@suse.de>
10879
10880 PR tree-optimization/77879
10881 * tree-ssa-structalias.c (handle_const_call): Properly handle
10882 NRV return slots.
10883 (handle_pure_call): Likewise.
10884
10885 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10886
10887 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
10888 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
10889 possible overflow.
10890
10891 2016-10-06 Andrew Pinski <apinski@cavium.com>
10892
10893 * config/aarch64/aarch64-cores.def: Add a comment before each
10894 set of cores.
10895
10896 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10897
10898 PR tree-optimization/77862
10899 * tree-vrp.c (add_equivalence): Use get_value_range so that
10900 num_vr_values is checked before accessing vr_values.
10901
10902 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
10903
10904 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
10905 POINTER_TYPE_P.
10906
10907 2016-10-05 Jeff Law <law@redhat.com>
10908
10909 PR tree-optimization/71661
10910 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
10911 removal of a forwarder exposes a new natural loop.
10912
10913 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
10914
10915 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
10916 Introduce ssesuffix variable.
10917 (<mask_codefor><code><mode>3<mask_name>): Ditto.
10918 (*<code><mode>3): Ditto.
10919
10920 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
10921
10922 * postreload.c (reload_cse_simplify): Skip also USE when detecting
10923 noop move.
10924
10925 2016-10-06 Richard Biener <rguenther@suse.de>
10926
10927 PR tree-optimization/77855
10928 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
10929 instead of removing the current item while iterating over the set
10930 which is not safe.
10931
10932 2016-10-06 James Clarke <jrtc27@jrtc27.com>
10933 Eric Botcazou <ebotcazou@adacore.com>
10934
10935 PR target/77759
10936 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
10937 (classify_registers): Don't set it
10938 (function_arg_slotno): Don't initialize and test it. Tidy up.
10939
10940 2016-10-06 Richard Biener <rguenther@suse.de>
10941
10942 PR tree-optimization/77839
10943 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
10944 lattice transition.
10945
10946 2016-10-06 Martin Liska <mliska@suse.cz>
10947
10948 * gcc.c: Set -fprofile-update=atomic when profiling is
10949 enabled and -pthread is set. Warn when one combines
10950 -pthread and -fprofile-update=single for an app using
10951 profiling code.
10952
10953 2016-10-06 Martin Liska <mliska@suse.cz>
10954
10955 PR bootstrap/77788
10956 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
10957 * gimple-ssa-strength-reduction.c (slsr_process_cast):
10958 Initialize a pointer to NULL.
10959 (slsr_process_copy): Likewise.
10960 * input.c (location_get_source_line): Likewise.
10961 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
10962
10963 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
10964
10965 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
10966 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
10967 (ix86_handle_option): Deleted handle of OPT_mpcommit.
10968 * config.gcc: Deleted pcommitintrin.h
10969 * config/i386/pcommitintrin.h: Deleted file.
10970 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
10971 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
10972 detection.
10973 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
10974 __PCOMMIT__.
10975 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
10976 (PTA_PCOMMIT): Deleted define.
10977 (ix86_option_override_internal): Deleted handle of option.
10978 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
10979 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
10980 __builtin_ia32_pcommit): Deleted.
10981 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
10982 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
10983 (pcommit): Deleted instruction.
10984 * config/i386/i386.opt: Mention -mpcommit deprecation.
10985 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
10986
10987 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
10988
10989 PR target/77874
10990 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
10991 Remove wrong assert.
10992 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
10993 Use <round_constraint> as operand 1 constraint.
10994
10995 2016-10-05 Jakub Jelinek <jakub@redhat.com>
10996
10997 PR sanitizer/66343
10998 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
10999 (ubsan_instrument_float_cast): And not here.
11000
11001 PR sanitizer/66343
11002 * ubsan.c (ubsan_ids): New GTY(()) array.
11003 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
11004 instead of static local counters.
11005
11006 2016-10-05 Martin Sebor <msebor@redhat.com>
11007
11008 PR bootstrap/77819
11009 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
11010 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
11011 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
11012 (default_printf_pointer_format): Define function.
11013 * targhooks.c (linux_printf_pointer_format): Define new function.
11014 * targhooks.h (linux_printf_pointer_format): Declare.
11015 (gnu_libc_printf_pointer_format): Remove declaration.
11016
11017 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11018
11019 * fold-const.c (native_encode_real): Fix logic for selecting offset
11020 to write to when BYTES_BIG_ENDIAN.
11021
11022 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
11023
11024 * builtins.c (fold_builtin_strchr): Remove function.
11025 (fold_builtin_strrchr): Likewise.
11026 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
11027 * gimple-fold.c (target_char_cst_p): New function.
11028 (gimple_fold_builtin_strchr) Add more foldings.
11029 (gimple_fold_builtin): Add index, strrchr, rindex cases.
11030
11031 2016-10-05 Richard Biener <rguenther@suse.de>
11032
11033 PR middle-end/77863
11034 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
11035 capture ids in c-exprs.
11036
11037 2016-10-05 Richard Biener <rguenther@suse.de>
11038
11039 PR middle-end/77826
11040 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
11041 with types_match for GIMPLE code gen to handle type mismatched
11042 constants properly.
11043 (dt_operand::gen): Adjust.
11044 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
11045 and constant A.
11046
11047 2016-10-05 Richard Biener <rguenther@suse.de>
11048
11049 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
11050
11051 2016-10-05 Richard Biener <rguenther@suse.de>
11052
11053 PR middle-end/77842
11054 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
11055
11056 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
11057
11058 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
11059 version check to protect only DW_TAG_imported_module generation.
11060
11061 2016-10-05 Richard Biener <rguenther@suse.de>
11062
11063 PR middle-end/55152
11064 * match.pd (min(a,-a) -> -abs(a)): New pattern.
11065
11066 2016-10-04 Ian Lance Taylor <iant@golang.org>
11067
11068 * explow.c (allocate_dynamic_stack_space): Call
11069 do_pending_stack_adjust before handling flag_split_stack.
11070
11071 2016-10-04 David Malcolm <dmalcolm@redhat.com>
11072
11073 * genattrtab.c (make_internal_attr): Supply dummy column number to
11074 file_location ctor.
11075 (main): Likewise.
11076 * genoutput.c (init_insn_for_nothing): Likewise.
11077 * gensupport.c (add_define_attr): Likewise.
11078 * read-md.c (message_at_1): Print column number.
11079 (fatal_with_file_and_line): Likewise.
11080 (rtx_reader::read_char): Track column numbers.
11081 (rtx_reader::unread_char): Likewise.
11082 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
11083 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
11084 (rtx_reader::handle_file): Initialize m_read_md_colno.
11085 (rtx_reader::get_current_location): Supply column number to
11086 file_location ctor.
11087 * read-md.h (struct file_location): Add field "colno".
11088 (file_location::file_location): Likewise.
11089 (rtx_reader::get_colno): New accessor.
11090 (rtx_reader::m_read_md_colno): New field.
11091 (rtx_reader::m_last_line_colno): New field.
11092
11093 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11094
11095 * doc/extend.texi (Java Exceptions): Remove.
11096 (java_interface): Remove.
11097
11098 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
11099
11100 PR tree-optimization/77808
11101 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
11102 and addr are different before copying points-to information.
11103
11104 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
11105
11106 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
11107 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
11108 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
11109 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
11110
11111 2016-10-04 Richard Biener <rguenther@suse.de>
11112
11113 PR tree-optimization/77399
11114 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
11115 verify the target can convert.
11116
11117 2016-10-04 Richard Biener <rguenther@suse.de>
11118
11119 PR middle-end/77833
11120 * explow.c (plus_constant): Verify the mode of the constant
11121 pool offset before calling plus_constant.
11122
11123 2016-10-04 Richard Biener <rguenther@suse.de>
11124
11125 PR middle-end/77407
11126 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
11127 type support, mark with :C.
11128 (X / -X -> -1): Mark with :C.
11129
11130 2016-10-04 Jakub Jelinek <jakub@redhat.com>
11131
11132 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
11133 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
11134 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
11135 * doc/tm.texi: Regenerated.
11136 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
11137 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
11138 * config/darwin.h (JCR_SECTION_NAME): Remove.
11139 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
11140 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
11141 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
11142 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
11143 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
11144 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
11145
11146 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11147
11148 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
11149 between "because" and "param" in dump message in call to fprintf.
11150
11151 2016-10-03 Jeff Law <law@redhat.com>
11152
11153 PR tree-optimization/71550
11154 PR tree-optimization/71403
11155 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
11156 (profitable_jump_thread_path): Also return boolean indicating if
11157 the realized path will create an irreducible loop.
11158 Remove loop depth tests from 71403.
11159 (fsm_find_control_statement_thread_paths): Remove loop depth tests
11160 from 71403. If threading will create an irreducible loop, then
11161 throw away loop iteration and related information.
11162
11163 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
11164
11165 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
11166 -Woverloaded-virtual checks for warning options.
11167 * configure: Regenerate.
11168
11169 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11170
11171 PR preprocessor/77699
11172 * input.c (maybe_grow): Don't allocate one byte extra headroom.
11173 (get_next_line): Return false on error.
11174 (read_next_line): Removed, use get_next_line instead.
11175 (read_line_num): Don't copy the line.
11176 (location_get_source_line): Don't use static data.
11177 (selftest::test_reading_source_line): Add more test cases.
11178
11179 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11180
11181 Revert
11182 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11183
11184 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11185 (noce_process_if_block): Use it.
11186
11187 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11188
11189 * doc/invoke.texi: Update -Wint-in-bool-context.
11190
11191 2016-10-02 Jakub Jelinek <jakub@redhat.com>
11192
11193 * dwarf2out.c (output_fde, output_call_frame_info,
11194 dwarf2out_do_cfi_startproc, set_indirect_string,
11195 gen_internal_sym, output_die, output_line_info): Use
11196 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
11197 ASM_GENERATE_INTERNAL_LABEL output.
11198
11199 2016-10-01 Richard Biener <rguenther@suse.de>
11200
11201 PR middle-end/77798
11202 * genmatch.c (get_operand_type): Add operand position arg
11203 and handle COND_EXPR comparison operand with fixed boolean_type_node.
11204 (expr::gen_transform): Adjust.
11205 (dt_simplify::gen_1): Likewise.
11206
11207 2016-10-01 Jakub Jelinek <jakub@redhat.com>
11208
11209 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
11210 comments. Simplify asserts, remove unnecessary conditions.
11211 Formatting fixes.
11212 (*<code><mode>3): Likewise.
11213
11214 2016-09-30 Jakub Jelinek <jakub@redhat.com>
11215
11216 * doc/invoke.texi (-Wregister): Document.
11217
11218 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11219
11220 * configure.ac: Split CHECKING_P into CHECKING_P and
11221 ENABLE_EXTRA_CHECKING.
11222 * configure: Regenerated.
11223 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
11224 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
11225
11226 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
11227
11228 PR other/31566
11229 * gcc.c (process_command): For @filename handling, output
11230 the correct name if the file does not exist.
11231
11232 2016-09-30 Marek Polacek <polacek@redhat.com>
11233
11234 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
11235 * config/alpha/predicates.md: Likewise.
11236
11237 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11238
11239 * ifcvt.c (noce_try_avoid_const_materialization): New function.
11240 (noce_process_if_block): Use it.
11241
11242 2016-09-30 Martin Liska <mliska@suse.cz>
11243
11244 * doc/invoke.texi: Document asan-use-after-return that
11245 it's disabled by default in runtime.
11246
11247 2016-09-30 Richard Biener <rguenther@suse.de>
11248
11249 * tree-vrp.c (intersect_ranges): If we failed to handle
11250 the intersection choose a constant singleton range if available.
11251
11252 2016-09-30 Richard Biener <rguenther@suse.de>
11253
11254 PR tree-optimization/77399
11255 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
11256 float <-> int conversions.
11257
11258 2016-09-30 Alan Modra <amodra@gmail.com>
11259
11260 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11261
11262 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11263
11264 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
11265 ext_level before calling CPUID with 0x80000008.
11266 Simplify xgetbv checks.
11267
11268 2016-09-29 David Malcolm <dmalcolm@redhat.com>
11269
11270 * Makefile.in (OBJS): Add print-rtl-function.o.
11271 * print-rtl-function.c: New file.
11272 * print-rtl.h (print_rtx_function): New decl.
11273
11274 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
11275
11276 PR target/77756
11277 * config/i386/cpuid.h (__get_cpuid_count): New.
11278 (__get_cpuid): Rename __level to __leaf.
11279
11280 2016-09-29 Marek Polacek <polacek@redhat.com>
11281
11282 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
11283
11284 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
11285
11286 PR target/77718
11287 * builtins.c (expand_builtin_memcmp): Don't swap args unless
11288 result is only being compared with zero.
11289
11290 2016-09-29 Marek Polacek <polacek@redhat.com>
11291
11292 * dwarf2out.c (loc_descriptor): Add fall through comment.
11293 (add_const_value_attribute): Likewise.
11294
11295 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
11296
11297 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
11298 with "v6t2". Move "arch" attribute above "pool_range".
11299 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
11300 with "v6t2".
11301 (*thumb2_movhi_vfp): Likewise.
11302 (*arm_movhi_fp16): Likewise.
11303 (*thumb2_movhi_fp16): Likewise.
11304 (*arm_movsi_vfp): Remove "arch" attribute.
11305 (*thumb2_movsi_vfp): Likewise.
11306
11307 2016-09-29 Martin Liska <mliska@suse.cz>
11308
11309 * doc/extend.texi: Remove limitation of Objective C for
11310 __attribute__((constructor)) and __attribute__((destructor)).
11311
11312 2016-09-29 Richard Biener <rguenther@suse.de>
11313
11314 PR tree-optimization/77768
11315 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11316 Handle stores to readonly memory when removing redundant stores.
11317
11318 2016-09-29 Richard Biener <rguenther@suse.de>
11319
11320 PR middle-end/77407
11321 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
11322 X / -X -> -1 simplifications.
11323
11324 2016-09-29 Richard Biener <rguenther@suse.de>
11325
11326 PR middle-end/55152
11327 * match.pd: Add max(a,-a) -> abs(a) pattern.
11328 * tree-ssa-phiopt.c (minmax_replacement): Disable for
11329 HONOR_SIGNED_ZEROS types.
11330
11331 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
11332
11333 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
11334 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
11335
11336 2016-09-29 Richard Biener <rguenther@suse.de>
11337
11338 * tree-vrp.c (set_defs_to_varying): New helper avoiding
11339 writing to vr_const_varying.
11340 (vrp_initialize): Call it.
11341 (vrp_visit_stmt): Likewise.
11342 (evrp_dom_walker::before_dom_children): Likewise.
11343
11344 2016-09-29 Richard Biener <rguenther@suse.de>
11345
11346 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
11347 constructors with vector elements.
11348
11349 2016-09-29 Richard Biener <rguenther@suse.de>
11350
11351 PR tree-optimization/77768
11352 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
11353 with stores to a place we know has a constant value.
11354
11355 2016-09-29 Alan Modra <amodra@gmail.com>
11356
11357 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
11358 * doc/invoke.texi: Document it.
11359 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
11360 (rs6000_passes_float): Comment.
11361 (rs6000_passes_long_double): New static var.
11362 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
11363 (init_cumulative_args): Set up to emit fp .gnu_attribute for
11364 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
11365 to include fp values returned in vectors.
11366 Set rs6000_passes_long_double.
11367 (rs6000_function_arg_advance_1): Likewise for function args.
11368 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
11369 and SPE. Emit long double tag value too.
11370 (rs6000_opt_vars): Add gnu-attr.
11371 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
11372 * configure: Regenerate.
11373 * config.in: Regenerate.
11374
11375 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11376
11377 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
11378 of 0 < x.
11379 (format_floating, format_string, format_directive,
11380 get_destination_size, pass_sprintf_length::handle_gimple_call):
11381 Likewise.
11382
11383 2016-09-28 Jakub Jelinek <jakub@redhat.com>
11384
11385 * gimple-ssa-sprintf.c: Fix comment formatting.
11386 (format_integer): Use is_gimple_assign.
11387 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
11388 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
11389 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
11390 (pass_sprintf_length::execute): Use is_gimple_call.
11391
11392 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11393
11394 * gimple-fold.c (gimple_fold_builtin): After failing to fold
11395 strchr, also try the generic folding.
11396
11397 2016-09-28 Martin Sebor <msebor@redhat.com>
11398
11399 PR c/77762
11400 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11401 Fix typos.
11402
11403 2016-09-28 Martin Sebor <msebor@redhat.com>
11404
11405 PR middle-end/77683
11406 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
11407 length modifier is not expected.
11408 (format_floating): Ignore l length modifier and fail gracefuly
11409 when it isn't one of the other expected ones.
11410
11411 2016-09-28 Martin Sebor <msebor@redhat.com>
11412
11413 PR bootstrap/77753
11414 * varasm.c (assemble_addr_to_section): Increase local buffer size.
11415
11416 2016-09-27 Richard Biener <rguenther@suse.de>
11417
11418 * dwarf2out.c (cu_die_list): New global.
11419 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
11420 main_comp_unit_die to cu_die_list if we created it.
11421 Move break_out_includes ...
11422 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
11423 the cu_die_list.
11424
11425 2016-09-28 Richard Biener <rguenther@suse.de>
11426
11427 * dwarf2out.c (struct die_struct): Add removed flag.
11428 (lookup_type_die): If the DIE is marked as removed, clear
11429 TYPE_SYMTAB_DIE and return NULL.
11430 (lookup_decl_die): If the DIE is marked as removed, remove it
11431 from the hash and return NULL.
11432 (mark_removed): New helper.
11433 (prune_unused_types_prune): Call it for removed DIEs.
11434 (gen_subprogram_die): Move the premark_used_types call to after
11435 DIEs for the functions scopes are generated.
11436 (process_scope_var): Do not re-create pruned types or type decls.
11437 Make sure to also re-parent type decls.
11438 (dwarf2out_finish): Move unused type pruning and debug_types
11439 handling ...
11440 (dwarf2out_early_finish): ... here.
11441
11442 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11443
11444 * config/arc/arc-c.c: New file.
11445 * config/arc/arc-c.def: Likewise.
11446 * config/arc/t-arc: Likewise.
11447 * config.gcc: Include arc-c.o as c and cpp object.
11448 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
11449 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
11450 arc_cpu_cpp_builtins.
11451
11452 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
11453
11454 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
11455 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
11456
11457 2016-09-28 Nathan Sidwell <nathan@acm.org>
11458
11459 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
11460 printing.
11461
11462 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
11463
11464 PR tree-optimization/61056
11465 * gimple-fold.c (gimple_fold_builtin_strchr):
11466 New function to optimize strchr (s, 0) to strlen.
11467 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
11468
11469 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
11470
11471 PR tree-optimization/77724
11472 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
11473 Add tree_fits_shwi_p check.
11474
11475 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11476
11477 * auto-inc-dec.c (try_merge): Remove break after return.
11478 * cselib.c (autoinc_split): Likewise.
11479 * explow.c (promote_mode): Likewise.
11480 * fixed-value.c (fixed_arithmetic): Likewise.
11481 * hsa.c (hsa_internal_fn::get_arity): Likewise.
11482 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
11483 * trans-mem.c (get_attrs_for): Likewise.
11484 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
11485 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
11486 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
11487 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
11488 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
11489 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
11490 * config/cris/cris.c (cris_op_str): Likewise.
11491 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
11492 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
11493
11494 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
11495
11496 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
11497 IFN_GOACC_REDUCTION_CODES): New.
11498 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
11499 ifn_goacc_reduction_kind): Use them.
11500 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
11501 of internal functions, when applicable.
11502
11503 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
11504
11505 * config/mips/constraints.md (d): Fix documentation.
11506 * doc/md.texi (Machine Constraints): Update accordingly.
11507
11508 2016-09-27 Richard Biener <rguenther@suse.de>
11509
11510 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
11511 cur_line_info_table initialization ...
11512 (dwarf2out_assembly_start): ... here.
11513
11514 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
11515
11516 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
11517 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
11518 (*thumb2_movhi_vfp): Likewise.
11519 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
11520 template. Expand predicable attribute to mark VMOV.F16 as not
11521 predicable. Add "arch" attribute.
11522 (*thumb2_movhi_fp16): Likewise.
11523 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
11524 (*thumb2_movsi_vfp): Add "arch" attribute.
11525
11526 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
11527
11528 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
11529 VAR_DECL string.
11530
11531 2016-09-27 Marek Polacek <polacek@redhat.com>
11532
11533 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
11534 comment.
11535
11536 * config/c6x/c6x.h: Adjust fall through comment.
11537 * config/sh/sh.c (final_prescan_insn): Likewise.
11538 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
11539 (visium_expand_fp_cstore): Likewise.
11540
11541 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11542
11543 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
11544 expected by -Wimplicit-fallthrough.
11545 (thumb1_size_rtx_costs): Likewise.
11546 (thumb2_reorg): Likewise.
11547 (tls_mentioned_p): Add "Fall through" comment.
11548 (thumb2_reorg): Likewise.
11549 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
11550 comment form expected by -Wimplicit-fallthrough.
11551
11552 2016-09-27 Martin Liska <mliska@suse.cz>
11553
11554 PR gcov-profile/46266
11555 * input.h (RESERVED_LOCATION_P): New macro.
11556 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
11557 instread of comparison with UNKNOWN_LOCATION.
11558
11559 2016-09-27 Richard Biener <rguenther@suse.de>
11560
11561 PR tree-optimization/77745
11562 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11563 When removing redundant stores make sure to check compatibility
11564 of the TBAA state for downstream accesses.
11565 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
11566 value-numbering virtual operands for store matches.
11567
11568 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
11569
11570 PR target/51244
11571 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
11572 movrt patterns. Match them before anything else in the SET case.
11573
11574 2016-09-27 Martin Liska <mliska@suse.cz>
11575
11576 PR gcov-profile/7970
11577 PR gcov-profile/16855
11578 PR gcov-profile/44779
11579 * coverage.c (build_gcov_exit_decl): New function.
11580 (coverage_obj_init): Call the function and generate __gcov_exit
11581 destructor.
11582 * doc/gcov.texi: Document when __gcov_exit function is called.
11583
11584 2016-09-27 Marek Polacek <polacek@redhat.com>
11585
11586 PR bootstrap/77751
11587 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11588 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
11589 -Wno-error instead of -Wno-implicit-fallthrough.
11590
11591 2016-09-27 Martin Liska <mliska@suse.cz>
11592
11593 PR bootstrap/77749
11594 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
11595
11596 2016-09-27 Jakub Jelinek <jakub@redhat.com>
11597
11598 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
11599 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
11600 comments. Remove break after return.
11601 (ix86_fp_compare_code_to_integer, has_dispatch,
11602 ix86_simd_clone_usable): Remove break after return.
11603
11604 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11605
11606 PR rlt-optimization/77714
11607 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
11608 REG_EQUAL note.
11609
11610 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
11611
11612 PR ipa/77677
11613 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
11614 extract_range_from_unary_expr to convert value_range.
11615 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
11616 (extract_range_from_unary_expr): This.
11617 * tree-vrp.h (extract_range_from_unary_expr): Declare.
11618
11619 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
11620
11621 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
11622
11623 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11624
11625 * config/i386/i386.c (ix86_print_operand)
11626 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
11627 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
11628 (epilogue_renumber): Likewise.
11629
11630 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11631
11632 PR middle-end/77719
11633 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
11634 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
11635
11636 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
11637
11638 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
11639 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
11640 is_mm_seq_cst, is_mm_sync): Move to ...
11641 * memmodel.h: This. New file.
11642 * builtins.c: Include memmodel.h.
11643 * optabs.c: Likewise.
11644 * tsan.c: Likewise.
11645 * config/aarch64/aarch64.c: Likewise.
11646 * config/alpha/alpha.c: Likewise.
11647 * config/arm/arm.c: Likewise.
11648 * config/i386/i386.c: Likewise.
11649 * config/ia64/ia64.c: Likewise.
11650 * config/mips/mips.c: Likewise.
11651 * config/rs6000/rs6000.c: Likewise.
11652 * config/sparc/sparc.c: Likewise.
11653 * genconditions.c: Include memmodel.h in generated file.
11654 * genemit.c: Likewise.
11655 * genoutput.c: Likewise.
11656 * genpeep.c: Likewise.
11657 * genpreds.c: Likewise.
11658 * genrecog.c: Likewise.
11659
11660 2016-09-26 David Malcolm <dmalcolm@redhat.com>
11661
11662 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
11663 "c" instead when parsing characters. Move operand parsing into...
11664 (read_rtx_operand): ...this new function, renaming "i" to "idx",
11665 and tightening the scope of various locals.
11666
11667 2016-09-26 Liu Hao <lh_mouse@126.com>
11668
11669 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
11670
11671 2016-09-26 Marek Polacek <polacek@redhat.com>
11672
11673 * system.h: Use __has_attribute to check whether the fallthrough
11674 attribute is supported.
11675
11676 2016-09-26 Marek Polacek <polacek@redhat.com>
11677
11678 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
11679 gimple_call_internal_p.
11680 * ipa-split.c (find_return_bb): Likewise.
11681 (execute_split_functions): Likewise.
11682 * omp-low.c (dump_oacc_loop_part): Likewise.
11683 (oacc_loop_xform_head_tail): Likewise.
11684 * predict.c (predict_loops): Likewise.
11685 * sanopt.c (pass_sanopt::execute): Likewise.
11686 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
11687 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
11688 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
11689 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
11690 (expand_ifn_va_arg): Likewise.
11691 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
11692 (optimize_mask_stores): Likewise.
11693 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
11694 (vect_transform_stmt): Likewise.
11695 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
11696 * tsan.c (instrument_memory_accesses): Likewise.
11697
11698 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11699 Alexander Monakov <amonakov@ispras.ru>
11700
11701 * regrename.c (rename_chains): Check
11702 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
11703 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
11704 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11705
11706 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11707
11708 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
11709 (s390_sched_score): Likewise.
11710
11711 2016-09-26 Martin Liska <mliska@suse.cz>
11712
11713 * doc/gcov.texi: Update program output of gcov tool.
11714
11715 2016-09-26 Martin Liska <mliska@suse.cz>
11716
11717 PR gcov-profile/23332
11718 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
11719 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
11720 * value-prof.c (dump_histogram_value): Do not handle
11721 HIST_TYPE_CONST_DELTA.
11722 (stream_in_histogram_value): Likewise.
11723 (gimple_find_values_to_profile): Likewise.
11724 * value-prof.h (enum hist_type): Likewise.
11725
11726 2016-09-26 Martin Liska <mliska@suse.cz>
11727
11728 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
11729 from default sanitize recover values.
11730 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
11731 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
11732 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
11733 consistent.
11734 * opts.c (finish_options): Do a generic loop over options
11735 that can be recovered.
11736 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
11737 SANITIZE_RETURN.
11738 (common_handle_option): Likewise.
11739 * opts.h: Declare can_recover to sanitizer_opts_s.
11740
11741 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
11742
11743 * target.def(elf_flags_numeric): Change documentation to present tense.
11744 * doc/tm.texi: Regenerate.
11745
11746 2016-09-26 Marek Polacek <polacek@redhat.com>
11747
11748 PR c/7652
11749 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
11750 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
11751 -Wno-switch-fallthrough.
11752 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
11753 (expand_builtin): Likewise.
11754 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
11755 * convert.c (convert_to_real_1): Likewise.
11756 (convert_to_integer_1): Likewise.
11757 * final.c (output_alternate_entry_point): Likewise.
11758 * genattrtab.c (make_canonical): Likewise.
11759 (write_test_expr): Likewise.
11760 * genpreds.c (validate_exp): Likewise.
11761 * gimple-ssa-strength-reduction.c
11762 (find_candidates_dom_walker::before_dom_children): Likewise.
11763 * godump.c (go_format_type): Likewise.
11764 * reload1.c (elimination_effects): Likewise.
11765 * resource.c (mark_referenced_resources): Likewise.
11766 (mark_set_resources): Likewise.
11767 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
11768 * varasm.c (output_addressed_constants): Likewise.
11769
11770 2016-09-26 Marek Polacek <polacek@redhat.com>
11771
11772 PR c/7652
11773 * common.opt (Wimplicit-fallthrough): New option.
11774 * doc/extend.texi: Document statement attributes and the fallthrough
11775 attribute.
11776 * doc/invoke.texi: Document -Wimplicit-fallthrough.
11777 * gimple.h (gimple_call_internal_p): New function.
11778 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
11779 (struct label_entry): New struct.
11780 (find_label_entry): New function.
11781 (case_label_p): New function.
11782 (collect_fallthrough_labels): New function.
11783 (last_stmt_in_scope): New function.
11784 (should_warn_for_implicit_fallthrough): New function.
11785 (warn_implicit_fallthrough_r): New function.
11786 (maybe_warn_implicit_fallthrough): New function.
11787 (expand_FALLTHROUGH_r): New function.
11788 (expand_FALLTHROUGH): New function.
11789 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
11790 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
11791 (gimplify_label_expr): New function.
11792 (gimplify_case_label_expr): Set location.
11793 (gimplify_expr): Call gimplify_label_expr.
11794 * internal-fn.c (expand_FALLTHROUGH): New function.
11795 * internal-fn.def (FALLTHROUGH): New internal function.
11796 * langhooks.c (lang_GNU_OBJC): New function.
11797 * langhooks.h (lang_GNU_OBJC): Declare.
11798 * system.h (gcc_fallthrough): Define.
11799 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
11800 * tree.h (FALLTHROUGH_LABEL_P): Define.
11801
11802 2016-09-26 Richard Biener <rguenther@suse.de>
11803
11804 * dwarf2out.c (stripattributes): Remove unused function.
11805 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
11806 Push dwarf_split_debug_info handling into init_sections_and_labels.
11807 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
11808 (DEBUG_MACRO_SECTION_FLAGS): Remove.
11809 (debug_macinfo_section_name): New global.
11810 (output_macinfo): Use debug_macinfo_section_name.
11811 (init_sections_and_labels): Split out section and label generation
11812 from dwarf2out_init. Set debug_macinfo_section_name.
11813 (dwarf2out_init): Move text section label generation and emission
11814 to ...
11815 (dwarf2out_assembly_start): ... here.
11816 (dwarf2out_finish): Call init_sections_and_labels before DWARF
11817 output starts.
11818
11819 2016-09-26 Richard Biener <rguenther@suse.de>
11820
11821 PR debug/77692
11822 * cgraphunit.c (analyze_functions): Before early removing
11823 global vars calls the late_global_decl debug handler mark
11824 the variable as readonly.
11825
11826 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
11827
11828 PR target/51244
11829 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
11830 (sh_rtx_costs): Handle SET of movt and movrt patterns.
11831 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
11832 declare new overloads.
11833 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
11834 operand.
11835
11836 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11837
11838 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
11839 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
11840
11841 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
11842
11843 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
11844 * configure: Regenerate.
11845
11846 2016-09-24 Marek Polacek <polacek@redhat.com>
11847
11848 PR c/77490
11849 * doc/invoke.texi: Document -Wbool-operation.
11850
11851 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
11852
11853 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
11854 * config/rs6000/rs6000.c (expand_block_compare): New function used by
11855 cmpmemsi pattern to do builtin expansion of memcmp ().
11856 (compute_current_alignment): Add helper function for
11857 expand_block_compare used to compute alignment as the compare proceeds.
11858 (select_block_compare_mode): Used by expand_block_compare to select
11859 the mode used for reading the next chunk of bytes in the compare.
11860 (do_load_for_compare): Used by expand_block_compare to emit the load
11861 insns for the compare.
11862 (rs6000_emit_dot_insn): Moved this function to avoid a forward
11863 reference from expand_block_compare ().
11864 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
11865 prototype for this function.
11866 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
11867 target option for controlling how much code inline expansion of
11868 memcmp() will be allowed to generate.
11869
11870 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11871
11872 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
11873 hook_bool_mode_false, hook_bool_mode_true,
11874 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
11875 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
11876 hook_bool_const_rtx_insn_const_rtx_insn_true,
11877 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
11878 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
11879 hook_bool_const_tree_hwi_hwi_const_tree_false,
11880 hook_bool_const_tree_hwi_hwi_const_tree_true,
11881 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
11882 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
11883 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
11884 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
11885 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
11886 hook_bool_const_tree_true, hook_bool_tree_tree_false,
11887 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
11888 hook_bool_rtx_insn_true, hook_bool_rtx_false,
11889 hook_bool_uintp_uintp_false,
11890 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
11891 hook_rtx_tree_int_null, hook_uint_mode_0,
11892 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
11893 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
11894 hook_constcharptr_const_rtx_insn_null,
11895 hook_constcharptr_const_tree_const_tree_null,
11896 hook_constcharptr_int_const_tree_null,
11897 hook_constcharptr_int_const_tree_const_tree_null,
11898 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
11899 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
11900 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
11901
11902 * vec.h (vNULL): Extend comment to say = vNULL initialization
11903 isn't needed for static vars.
11904
11905 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
11906 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
11907 = vNULL initialization of file scope vec.
11908 * passes.c (pass_tab, enabled_pass_uid_range_tab,
11909 disabled_pass_uid_range_tab): Likewise.
11910 * haifa-sched.c (sched_luids, h_i_d): Likewise.
11911 * tree-chkp-opt.c (check_infos): Likewise.
11912 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
11913
11914 * vec.h (vnull::operator vec): Add constexpr keyword for
11915 C++11 and later.
11916
11917 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
11918
11919 PR tree-optimization/77654
11920 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
11921 to duplicate_ssa_name_ptr_info.
11922
11923 2016-09-23 David Malcolm <dmalcolm@redhat.com>
11924
11925 PR preprocessor/77672
11926 * input.c (selftest::test_lexer_string_locations_simple): Update
11927 test to expect location information of the terminator character
11928 at the location of the final closing quote.
11929 (selftest::test_lexer_string_locations_hex): Likewise.
11930 (selftest::test_lexer_string_locations_oct): Likewise.
11931 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
11932 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
11933 (selftest::test_lexer_string_locations_ucn4): Likewise.
11934 (selftest::test_lexer_string_locations_ucn8): Likewise.
11935 (selftest::test_lexer_string_locations_u8): Likewise.
11936 (selftest::test_lexer_string_locations_utf8_source): Likewise.
11937 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
11938 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
11939 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
11940 (selftest::test_lexer_string_locations_macro): Likewise.
11941 (selftest::test_lexer_string_locations_long_line): Likewise.
11942
11943 2016-09-23 Richard Biener <rguenther@suse.de>
11944
11945 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
11946 virtual definition to virtual use if the call devirtualizes
11947 to a const or pure function.
11948 (visit_use): Also visit calls we can devirtualize to a
11949 const or pure function.
11950
11951 2016-09-23 Richard Biener <rguenther@suse.de>
11952
11953 PR tree-optimization/77697
11954 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
11955 signal error if we have sth ternary or unhandled.
11956
11957 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11958
11959 * config/arm/arm_neon.h (vabd_f16): New.
11960 (vabdq_f16): New.
11961 (vabs_f16): New.
11962 (vabsq_f16): New.
11963 (vadd_f16): New.
11964 (vaddq_f16): New.
11965 (vcage_f16): New.
11966 (vcageq_f16): New.
11967 (vcagt_f16): New.
11968 (vcagtq_f16): New.
11969 (vcale_f16): New.
11970 (vcaleq_f16): New.
11971 (vcalt_f16): New.
11972 (vcaltq_f16): New.
11973 (vceq_f16): New.
11974 (vceqq_f16): New.
11975 (vceqz_f16): New.
11976 (vceqzq_f16): New.
11977 (vcge_f16): New.
11978 (vcgeq_f16): New.
11979 (vcgez_f16): New.
11980 (vcgezq_f16): New.
11981 (vcgt_f16): New.
11982 (vcgtq_f16): New.
11983 (vcgtz_f16): New.
11984 (vcgtzq_f16): New.
11985 (vcle_f16): New.
11986 (vcleq_f16): New.
11987 (vclez_f16): New.
11988 (vclezq_f16): New.
11989 (vclt_f16): New.
11990 (vcltq_f16): New.
11991 (vcltz_f16): New.
11992 (vcltzq_f16): New.
11993 (vcvt_f16_s16): New.
11994 (vcvt_f16_u16): New.
11995 (vcvt_s16_f16): New.
11996 (vcvt_u16_f16): New.
11997 (vcvtq_f16_s16): New.
11998 (vcvtq_f16_u16): New.
11999 (vcvtq_s16_f16): New.
12000 (vcvtq_u16_f16): New.
12001 (vcvta_s16_f16): New.
12002 (vcvta_u16_f16): New.
12003 (vcvtaq_s16_f16): New.
12004 (vcvtaq_u16_f16): New.
12005 (vcvtm_s16_f16): New.
12006 (vcvtm_u16_f16): New.
12007 (vcvtmq_s16_f16): New.
12008 (vcvtmq_u16_f16): New.
12009 (vcvtn_s16_f16): New.
12010 (vcvtn_u16_f16): New.
12011 (vcvtnq_s16_f16): New.
12012 (vcvtnq_u16_f16): New.
12013 (vcvtp_s16_f16): New.
12014 (vcvtp_u16_f16): New.
12015 (vcvtpq_s16_f16): New.
12016 (vcvtpq_u16_f16): New.
12017 (vcvt_n_f16_s16): New.
12018 (vcvt_n_f16_u16): New.
12019 (vcvtq_n_f16_s16): New.
12020 (vcvtq_n_f16_u16): New.
12021 (vcvt_n_s16_f16): New.
12022 (vcvt_n_u16_f16): New.
12023 (vcvtq_n_s16_f16): New.
12024 (vcvtq_n_u16_f16): New.
12025 (vfma_f16): New.
12026 (vfmaq_f16): New.
12027 (vfms_f16): New.
12028 (vfmsq_f16): New.
12029 (vmax_f16): New.
12030 (vmaxq_f16): New.
12031 (vmaxnm_f16): New.
12032 (vmaxnmq_f16): New.
12033 (vmin_f16): New.
12034 (vminq_f16): New.
12035 (vminnm_f16): New.
12036 (vminnmq_f16): New.
12037 (vmul_f16): New.
12038 (vmul_lane_f16): New.
12039 (vmul_n_f16): New.
12040 (vmulq_f16): New.
12041 (vmulq_lane_f16): New.
12042 (vmulq_n_f16): New.
12043 (vneg_f16): New.
12044 (vnegq_f16): New.
12045 (vpadd_f16): New.
12046 (vpmax_f16): New.
12047 (vpmin_f16): New.
12048 (vrecpe_f16): New.
12049 (vrecpeq_f16): New.
12050 (vrnd_f16): New.
12051 (vrndq_f16): New.
12052 (vrnda_f16): New.
12053 (vrndaq_f16): New.
12054 (vrndm_f16): New.
12055 (vrndmq_f16): New.
12056 (vrndn_f16): New.
12057 (vrndnq_f16): New.
12058 (vrndp_f16): New.
12059 (vrndpq_f16): New.
12060 (vrndx_f16): New.
12061 (vrndxq_f16): New.
12062 (vrsqrte_f16): New.
12063 (vrsqrteq_f16): New.
12064 (vrecps_f16): New.
12065 (vrecpsq_f16): New.
12066 (vrsqrts_f16): New.
12067 (vrsqrtsq_f16): New.
12068 (vsub_f16): New.
12069 (vsubq_f16): New.
12070
12071 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12072
12073 * config.gcc (extra_headers): Add arm_fp16.h
12074 * config/arm/arm_fp16.h: New.
12075 * config/arm/arm_neon.h: Include "arm_fp16.h".
12076
12077 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12078
12079 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
12080 variants).
12081 (vmulf): New (v8hf, v4hf variants).
12082 (vfma): New (v8hf, v4hf variants).
12083 (vfms): New (v8hf, v4hf variants).
12084 (vsub): New (v8hf, v4hf variants).
12085 (vcage): New (v8hf, v4hf variants).
12086 (vcagt): New (v8hf, v4hf variants).
12087 (vcale): New (v8hf, v4hf variants).
12088 (vcalt): New (v8hf, v4hf variants).
12089 (vceq): New (v8hf, v4hf variants).
12090 (vcgt): New (v8hf, v4hf variants).
12091 (vcge): New (v8hf, v4hf variants).
12092 (vcle): New (v8hf, v4hf variants).
12093 (vclt): New (v8hf, v4hf variants).
12094 (vceqz): New (v8hf, v4hf variants).
12095 (vcgez): New (v8hf, v4hf variants).
12096 (vcgtz): New (v8hf, v4hf variants).
12097 (vcltz): New (v8hf, v4hf variants).
12098 (vclez): New (v8hf, v4hf variants).
12099 (vabd): New (v8hf, v4hf variants).
12100 (vmaxf): New (v8hf, v4hf variants).
12101 (vmaxnm): New (v8hf, v4hf variants).
12102 (vminf): New (v8hf, v4hf variants).
12103 (vminnm): New (v8hf, v4hf variants).
12104 (vpmaxf): New (v4hf variant).
12105 (vpminf): New (v4hf variant).
12106 (vpadd): New (v4hf variant).
12107 (vrecps): New (v8hf, v4hf variants).
12108 (vrsqrts): New (v8hf, v4hf variants).
12109 (vabs): New (v8hf, v4hf variants).
12110 (vneg): New (v8hf, v4hf variants).
12111 (vrecpe): New (v8hf, v4hf variants).
12112 (vrnd): New (v8hf, v4hf variants).
12113 (vrnda): New (v8hf, v4hf variants).
12114 (vrndm): New (v8hf, v4hf variants).
12115 (vrndn): New (v8hf, v4hf variants).
12116 (vrndp): New (v8hf, v4hf variants).
12117 (vrndx): New (v8hf, v4hf variants).
12118 (vrsqrte): New (v8hf, v4hf variants).
12119 (vmul_lane): Add v4hf and v8hf variants.
12120 (vmul_n): Add v4hf and v8hf variants.
12121 (vext): New (v8hf, v4hf variants).
12122 (vcvts): New (v8hi, v4hi variants).
12123 (vcvts): New (v8hf, v4hf variants).
12124 (vcvtu): New (v8hi, v4hi variants).
12125 (vcvtu): New (v8hf, v4hf variants).
12126 (vcvts_n): New (v8hf, v4hf variants).
12127 (vcvtu_n): New (v8hi, v4hi variants).
12128 (vcvts_n): New (v8hi, v4hi variants).
12129 (vcvtu_n): New (v8hf, v4hf variants).
12130 (vbsl): New (v8hf, v4hf variants).
12131 (vcvtas): New (v8hf, v4hf variants).
12132 (vcvtau): New (v8hf, v4hf variants).
12133 (vcvtms): New (v8hf, v4hf variants).
12134 (vcvtmu): New (v8hf, v4hf variants).
12135 (vcvtns): New (v8hf, v4hf variants).
12136 (vcvtnu): New (v8hf, v4hf variants).
12137 (vcvtps): New (v8hf, v4hf variants).
12138 (vcvtpu): New (v8hf, v4hf variants).
12139
12140 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12141
12142 * config/arm/arm-builtins.c (hf_UP): New.
12143 (si_UP): New.
12144 (vfp_builtin_data): New. Update comment.
12145 (enum arm_builtins): Include "arm_vfp_builtins.def".
12146 (ARM_BUILTIN_VFP_PATTERN_START): New.
12147 (arm_init_vfp_builtins): New.
12148 (arm_init_builtins): Add arm_init_vfp_builtins.
12149 (arm_expand_vfp_builtin): New.
12150 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
12151 long line.
12152 * config/arm/arm_vfp_builtins.def: New file.
12153 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
12154 (arm-builtins.o): Likewise.
12155
12156 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
12157
12158 PR ipa/77677
12159 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
12160 from constant while creating value range.
12161
12162 2016-09-23 Renlin Li <renlin.li@arm.com>
12163
12164 * ira.c (ira): Move ira_use_lra_p initialization code to ...
12165 (ira_init_once): Here.
12166
12167 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
12168 Jakub Jelinek <jakub@redhat.com>
12169
12170 * hooks.h (hook_uint_uintp_false): Rename to...
12171 (hook_bool_uint_uintp_false): ... this.
12172 * hooks.c (hook_uint_uintp_false): Rename to...
12173 (hook_bool_uint_uintp_false): ... this.
12174 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
12175 instead of hook_uint_uintp_false.
12176
12177 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12178
12179 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
12180 (arm_init_builtins): Move body of a loop to the standalone
12181 function arm_init_neon_builtin.
12182 (arm_expand_neon_builtin_1): New. Update comment. Function body
12183 moved from arm_neon_builtin with some white-space fixes.
12184 (arm_expand_neon_builtin): Move code into the standalone function
12185 arm_expand_neon_builtin_1.
12186
12187 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12188
12189 * config/arm/iterators.md (VCVTHI): New.
12190 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
12191 (NEON_VAGLTE): New.
12192 (VFM_LANE_AS): New.
12193 (VH_CVTTO): New.
12194 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
12195 (V_HALF): Add V4HF. Fix white-space.
12196 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
12197 (V_s_elem): Likewise.
12198 (V_sz_elem): Fix white-space.
12199 (V_elem_ch): Likewise.
12200 (VH_elem_ch): New.
12201 (scalar_mul_constraint): Add V8HF and V4HF.
12202 (Is_float_mode): Fix white-space.
12203 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
12204 (q): Add HF. Fix white-space.
12205 (float_sup): New.
12206 (float_SUP): New.
12207 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
12208 (neon_vfm_lane_as): New.
12209 * config/arm/neon.md (add<mode>3_fp16): New.
12210 (sub<mode>3_fp16): New.
12211 (mul<mode>3add<mode>_neon): New.
12212 (fma<VH:mode>4_intrinsic): New.
12213 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
12214 (fmsub<VH:mode>4_intrinsic): New.
12215 (<absneg_str><mode>2): New.
12216 (neon_v<absneg_str><mode>): New.
12217 (neon_v<fp16_rnd_str><mode>): New.
12218 (neon_vrsqrte<mode>): New.
12219 (neon_vpaddv4hf): New.
12220 (neon_vadd<mode>): New.
12221 (neon_vsub<mode>): New.
12222 (neon_vmulf<mode>): New.
12223 (neon_vfma<VH:mode>): New.
12224 (neon_vfms<VH:mode>): New.
12225 (neon_vc<cmp_op><mode>): New.
12226 (neon_vc<cmp_op><mode>_fp16insn): New
12227 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
12228 (neon_vca<cmp_op><mode>): New.
12229 (neon_vca<cmp_op><mode>_fp16insn): New.
12230 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
12231 (neon_vc<cmp_op>z<mode>): New.
12232 (neon_vabd<mode>): New.
12233 (neon_v<maxmin>f<mode>): New.
12234 (neon_vp<maxmin>fv4hf: New.
12235 (neon_<fmaxmin_op><mode>): New.
12236 (neon_vrecps<mode>): New.
12237 (neon_vrsqrts<mode>): New.
12238 (neon_vrecpe<mode>): New (VH variant).
12239 (neon_vdup_lane<mode>_internal): New.
12240 (neon_vdup_lane<mode>): New.
12241 (neon_vcvt<sup><mode>): New (VCVTHI variant).
12242 (neon_vcvt<sup><mode>): New (VH variant).
12243 (neon_vcvt<sup>_n<mode>): New (VH variant).
12244 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
12245 (neon_vcvt<vcvth_op><sup><mode>): New.
12246 (neon_vmul_lane<mode>): New.
12247 (neon_vmul_n<mode>): New.
12248 * config/arm/unspecs.md (UNSPEC_VCALE): New
12249 (UNSPEC_VCALT): New.
12250 (UNSPEC_VFMA_LANE): New.
12251 (UNSPECS_VFMS_LANE): New.
12252
12253 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12254
12255 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
12256 ("*extzv<mode><clobbercc_or_nocc>"):
12257 Correct a typo in a comment.
12258 Merged patterns.
12259 ("*insv<mode>_zEC12", "*insv<mode>_z10")
12260 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
12261 ("*insv<mode>_zEC12_appendbitsleft")
12262 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
12263 ("*insv<mode>_z10_appendbitsleft"): Ditto.
12264 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
12265 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
12266 Provide pattern with operands switched.
12267 ("*pre_z10_extv<mode>"):
12268 Use new subst patterns.
12269 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
12270 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
12271 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
12272 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
12273 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
12274 ("*<risbg_n>_sidi_ior_and_lshiftrt")
12275 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
12276 New patterns.
12277 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
12278 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
12279 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
12280 on zEC12.
12281 ("SINT"): New mode_iterator with SI, HI, QI.
12282 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
12283 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
12284 duplication.
12285
12286 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12287
12288 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
12289 new interface of s390_contiguous_bitmask_p.
12290 ("contiguous_bitmask_nowrap_operand"): New predicate.
12291 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
12292 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
12293 of s390_contiguous_bitmask_p.
12294 ("NxxDw"): Rename NxxDq constraint to NxxDw.
12295 ("NxxSw"): New constraint.
12296 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
12297 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
12298 interface.
12299 (s390_contiguous_bitmask_nowrap_p): Export.
12300 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
12301 former s390_contiguous_bitmask_p.
12302 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
12303 detect contiguous bit ranges with wraparound. Change signature to
12304 return START and END position instead of POS and LENGTH.
12305 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
12306 ranges with wraparound.
12307 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
12308 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
12309 Adapt to new signature of s390_contiguous_bitmask_p.
12310
12311 2016-09-23 Bin Cheng <bin.cheng@arm.com>
12312
12313 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
12314 (create_intersect_range_checks): New.
12315 (vect_create_cond_for_alias_checks): Call above function.
12316
12317 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12318
12319 * config/arm/iterators.md (Code iterators): Fix some white-space
12320 in the comments.
12321 (GLTE): New.
12322 (ABSNEG): New
12323 (FCVT): Moved from vfp.md.
12324 (VCVT_HF_US_N): New.
12325 (VCVT_SI_US_N): New.
12326 (VCVT_HF_US): New.
12327 (VCVTH_US): New.
12328 (FP16_RND): New.
12329 (absneg_str): New.
12330 (FCVTI32typename): Moved from vfp.md.
12331 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
12332 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
12333 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
12334 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
12335 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
12336 (vcvth_op): New.
12337 (fp16_rnd_str): New.
12338 (fp16_rnd_insn): New.
12339 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
12340 (UNSPEC_VCVT_HF_U_N): New.
12341 (UNSPEC_VCVT_SI_S_N): New.
12342 (UNSPEC_VCVT_SI_U_N): New.
12343 (UNSPEC_VCVTH_S): New.
12344 (UNSPEC_VCVTH_U): New.
12345 (UNSPEC_VCVTA_S): New.
12346 (UNSPEC_VCVTA_U): New.
12347 (UNSPEC_VCVTM_S): New.
12348 (UNSPEC_VCVTM_U): New.
12349 (UNSPEC_VCVTN_S): New.
12350 (UNSPEC_VCVTN_U): New.
12351 (UNSPEC_VCVTP_S): New.
12352 (UNSPEC_VCVTP_U): New.
12353 (UNSPEC_VCVTP_S): New.
12354 (UNSPEC_VCVTP_U): New.
12355 (UNSPEC_VRND): New.
12356 (UNSPEC_VRNDA): New.
12357 (UNSPEC_VRNDI): New.
12358 (UNSPEC_VRNDM): New.
12359 (UNSPEC_VRNDN): New.
12360 (UNSPEC_VRNDP): New.
12361 (UNSPEC_VRNDX): New.
12362 * config/arm/vfp.md (<absneg_str>hf2): New.
12363 (neon_vabshf): New.
12364 (neon_v<fp16_rnd_str>hf): New.
12365 (neon_vrndihf): New.
12366 (addhf3): New.
12367 (subhf3): New.
12368 (divhf3): New.
12369 (mulhf3): New.
12370 (*mulsf3neghf_vfp): New.
12371 (*negmulhf3_vfp): New.
12372 (*mulsf3addhf_vfp): New.
12373 (*mulhf3subhf_vfp): New.
12374 (*mulhf3neghfaddhf_vfp): New.
12375 (*mulhf3neghfsubhf_vfp): New.
12376 (fmahf4): New.
12377 (neon_vfmahf): New.
12378 (fmsubhf4_fp16): New.
12379 (neon_vfmshf): New.
12380 (*fnmsubhf4): New.
12381 (*fnmaddhf4): New.
12382 (neon_vsqrthf): New.
12383 (neon_vrsqrtshf): New.
12384 (FCVT): Move to iterators.md.
12385 (FCVTI32typename): Likewise.
12386 (neon_vcvth<sup>hf): New.
12387 (neon_vcvth<sup>si): New.
12388 (neon_vcvth<sup>_nhf_unspec): New.
12389 (neon_vcvth<sup>_nhf): New.
12390 (neon_vcvth<sup>_nsi_unspec): New.
12391 (neon_vcvth<sup>_nsi): New.
12392 (neon_vcvt<vcvth_op>h<sup>si): New.
12393 (neon_<fmaxmin_op>hf): New.
12394
12395 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
12396
12397 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
12398 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
12399 ("*insv<mode>_zEC12_appendbitsleft")
12400 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
12401 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
12402
12403 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12404
12405 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
12406 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
12407 construct values without normalization.
12408 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
12409 static local lhs_ops to vNULL.
12410
12411 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12412 Jiong Wang <jiong.wang@arm.com>
12413
12414 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
12415 available when FP16 instructions are available.
12416 (output_move_vfp): Add support for 16-bit data moves.
12417 (arm_validize_comparison): Fix some white-space. Support HFmode
12418 by conversion to SFmode.
12419 * config/arm/arm.md (truncdfhf2): Fix a comment.
12420 (extendhfdf2): Likewise.
12421 (cstorehf4): New.
12422 (movsicc): Fix some white-space.
12423 (movhfcc): New.
12424 (movsfcc): Fix some white-space.
12425 (*cmovhf): New.
12426 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
12427 instructions are available.
12428 (*thumb2_movhi_vfp): Likewise.
12429 (*arm_movhi_fp16): New.
12430 (*thumb2_movhi_fp16): New.
12431 (*movhf_vfp_fp16): New.
12432 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
12433 (*movhf_vfp): Likewise.
12434 (extendhfsf2): Enable when VFP FP16 instructions are available.
12435 (truncsfhf2): Enable when VFP FP16 instructions are available.
12436
12437 2016-09-23 Martin Liska <mliska@suse.cz>
12438
12439 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
12440
12441 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12442
12443 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
12444 V4HF modes.
12445 (arm_evpc_neon_vtrn): Likewise.
12446 (arm_evpc_neon_vrev): Likewise.
12447 (arm_evpc_neon_vext): Likewise.
12448 * config/arm/arm_neon.h (vbsl_f16): New.
12449 (vbslq_f16): New.
12450 (vdup_n_f16): New.
12451 (vdupq_n_f16): New.
12452 (vdup_lane_f16): New.
12453 (vdupq_lane_f16): New.
12454 (vext_f16): New.
12455 (vextq_f16): New.
12456 (vmov_n_f16): New.
12457 (vmovq_n_f16): New.
12458 (vrev64_f16): New.
12459 (vrev64q_f16): New.
12460 (vtrn_f16): New.
12461 (vtrnq_f16): New.
12462 (vuzp_f16): New.
12463 (vuzpq_f16): New.
12464 (vzip_f16): New.
12465 (vzipq_f16): New.
12466 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
12467 (vdup_lane): New (v8hf, v4hf variants).
12468 (vext): New (v8hf, v4hf variants).
12469 (vbsl): New (v8hf, v4hf variants).
12470 * config/arm/iterators.md (VDQWH): New.
12471 (VH): New.
12472 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
12473 (Scalar_mul_8_16): Fix white-space.
12474 (Is_d_reg): Add V4HF and V8HF.
12475 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
12476 (neon_vdup_lane<mode>): New.
12477 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
12478 (*neon_vtrn<mode>_insn): Likewise.
12479 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
12480 (*neon_vzip<mode>_insn): Likewise
12481 (neon_vuzp<mode>_internal): Likewise.
12482 (*neon_vuzp<mode>_insn): Likewise
12483 * config/arm/vec-common.md (vec_perm_const<mode>): New.
12484
12485 2016-09-23 Jiong Wang <jiong.wang@arm.com>
12486 Matthew Wahab <matthew.wahab@arm.com>
12487
12488 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
12489 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
12490 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
12491 available. Also fix some white-space.
12492 * config/arm/vfp.md (*arm_movhi_vfp): New.
12493 (*thumb2_movhi_vfp): New.
12494
12495 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12496
12497 * config/arm/arm-c.c (arm_cpu_builtins): Define
12498 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
12499 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
12500
12501 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12502
12503 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
12504 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
12505 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
12506 arm_v8_2a_fp16_neon_hw.
12507 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
12508 arm_v8_2a_neon.
12509
12510 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12511
12512 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
12513 arm_fp16_alternative_ok and arm_fp16_none_ok.
12514
12515 2016-09-23 Martin Liska <mliska@suse.cz>
12516
12517 * ipa-icf.c (sem_variable::merge): Replace adress with address.
12518
12519 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
12520
12521 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
12522 ("armv8.2-a"): New.
12523 ("armv8.2-a+fp16"): New.
12524 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
12525 (FL2_FP16INST): New.
12526 (FL2_FOR_ARCH8_2A): New.
12527 * config/arm/arm-tables.opt: Regenerate.
12528 * config/arm/arm.c (arm_arch8_2): New.
12529 (arm_fp16_inst): New.
12530 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
12531 for incompatible fp16-format settings.
12532 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
12533 (TARGET_NEON_FP16INST): New.
12534 (arm_arch8_2): Declare.
12535 (arm_fp16_inst): Declare.
12536 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
12537 march=armv8.2-a and march=armv8.2-a+fp16.
12538 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
12539 and armv8.2-a+fp16.
12540 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
12541 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
12542
12543 2016-09-23 Martin Liska <mliska@suse.cz>
12544
12545 * doc/extend.texi: Remove fused-madd from i386 target options.
12546
12547 2016-09-23 Martin Liska <mliska@suse.cz>
12548
12549 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12550 Handle movbe.
12551
12552 2016-09-23 Martin Liska <mliska@suse.cz>
12553
12554 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
12555 Handle crc32.
12556
12557 2016-09-23 Martin Liska <mliska@suse.cz>
12558
12559 PR target/71652
12560 * config/i386/i386.c (ix86_option_override_internal): Change
12561 signature and return false when there's an error related to
12562 arch string.
12563 (release_options_strings): New function.
12564 (ix86_valid_target_attribute_tree): Call the function.
12565
12566 2016-09-23 Jakub Jelinek <jakub@redhat.com>
12567
12568 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
12569 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
12570 (gen_hsa_ctor_assignment): Likewise.
12571 * print-tree.c (print_node): Likewise.
12572 * tree-dump.c (dequeue_and_dump): Likewise.
12573 * tree-sra.c (sra_modify_constructor_assign): Likewise.
12574 * expr.c (store_constructor): Likewise.
12575 * fold-const.c (operand_equal_p): Likewise.
12576 * tree-pretty-print.c (dump_generic_node): Likewise.
12577 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
12578 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
12579
12580 2016-09-23 Richard Biener <rguenther@suse.de>
12581
12582 * hooks.h (hook_uint_uintp_false): Declare.
12583
12584 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12585
12586 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
12587 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
12588
12589 2016-09-22 Martin Sebor <msebor@redhat.com>
12590
12591 PR target/77676
12592 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
12593 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
12594 (target_int_min): Correct computation.
12595 (format_integer): Use long long as the argument for the ll length
12596 modifier.
12597 (format_floating): Use target_int_max().
12598 (get_string_length): Same.
12599 (format_string): Avoid setting the bounded flag for strings
12600 of unknown length.
12601 (try_substitute_return_value): Avoid setting range info when
12602 the result isn't bounded.
12603 * varasm.c (assemble_name): Increase buffer size.
12604
12605 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
12606 Terry Guo <terry.guo@arm.com>
12607
12608 * target.def (elf_flags_numeric): New target hook.
12609 * targhooks.h (default_asm_elf_flags_numeric): New.
12610 * varasm.c (default_asm_elf_flags_numeric): New.
12611 (default_elf_asm_named_section): Use new target hook.
12612 * config/arm/arm.opt (mpure-code): New.
12613 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
12614 * config/arm/arm.c (arm_asm_init_sections): Add section
12615 attribute to default text section if -mpure-code.
12616 (arm_option_check_internal): Diagnose use of option with
12617 non supported targets and/or options.
12618 (arm_asm_elf_flags_numeric): New.
12619 (arm_function_section): New.
12620 (arm_elf_section_type_flags): New.
12621 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
12622 for -mpure-code.
12623 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
12624 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
12625
12626 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
12627
12628 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
12629
12630 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12631
12632 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
12633 * rtl.h: Adjust prototype.
12634
12635 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12636
12637 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
12638 (prev_active_insn): Likewise.
12639 (active_insn_p): Likewise.
12640 * rtl.h: Adjust prototypes.
12641 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
12642 * config/arc/arc.md: Likewise.
12643 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
12644 (branch_needs_nop_p): Likewise.
12645 (use_skip_p): Likewise.
12646 * config/sh/sh.c (gen_block_redirect): Likewise.
12647 (split_branches): Likewise.
12648 * reorg.c (optimize_skip): Likewise.
12649 (fill_simple_delay_slots): Likewise.
12650 (fill_slots_from_thread): Likewise.
12651 (relax_delay_slots): Likewise.
12652 * resource.c (mark_target_live_regs): Likewise.
12653
12654 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12655
12656 * config/cris/cris.c (cris_asm_output_case_end): Change argument
12657 type to rtx_insn *.
12658 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
12659 (prev_nonnote_nondebug_insn): Likewise.
12660 * config/cris/cris-protos.h: Adjust prototype.
12661 * rtl.h: Likewise.
12662 * jump.c (rtx_renumbered_equal_p): Adjust.
12663
12664 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12665
12666 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
12667 * rtl.h: Adjust prototype.
12668 * config/sh/sh.md: Adjust.
12669 * dwarf2out.c (add_var_loc_to_decl): Likewise.
12670
12671 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12672
12673 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
12674 (prev_nondebug_insn): Likewise.
12675 * loop-doloop.c (doloop_condition_get): Likewise.
12676 * rtl.h: Adjust prototype.
12677 * cfgloop.h: Likewise.
12678
12679 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12680
12681 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
12682 (prev_nonnote_insn): Likewise.
12683 * jump.c (reversed_comparison_code_parts): Likewise.
12684 (reversed_comparison): Likewise.
12685 * rtl.h: Adjust prototypes.
12686 * config/arc/arc.md: Adjust.
12687 * cse.c (find_comparison_args): Likewise.
12688 * reorg.c (redundant_insn): Change return type to rtx_insn *.
12689 (fix_reg_dead_note): Change argument type to rtx_insn *.
12690 (delete_prior_computation): Likewise.
12691 (delete_computation): Likewise.
12692 (fill_slots_from_thread): Adjust.
12693 (relax_delay_slots): Likewise.
12694 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12695 (simplify_relational_operation_1): Likewise.
12696 (simplify_ternary_operation): Likewise.
12697
12698 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12699
12700 * config/arc/arc-protos.h (arc_label_align): Change type of
12701 variables from rtx to rtx_insn *.
12702 * config/arc/arc.c (arc_label_align): Likewise.
12703 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
12704 * config/bfin/bfin.c (workaround_speculation): Likewise.
12705 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
12706 (find_last_same_clock): Likewise.
12707 (reorg_split_calls): Likewise.
12708 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
12709 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
12710 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
12711 (same_cmp_following_p): Likewise.
12712 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
12713 (same_cmp_following_p): Likwise.
12714 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
12715 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
12716 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
12717 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
12718 (rl78_alloc_physical_registers_cmp): Likewise.
12719 (rl78_alloc_physical_registers_umul): Likewise.
12720 (rl78_calculate_death_notes): Likewise.
12721 * config/s390/s390-protos.h (s390_label_align): Likewise.
12722 * config/s390/s390.c (s390_label_align): Likewise.
12723 * config/sh/sh.c (barrier_align): Likewise.
12724 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
12725 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
12726 (emit_cbcond_nop): Likewise.
12727
12728 2016-09-22 Martin Liska <mliska@suse.cz>
12729
12730 PR ipa/77653
12731 * ipa-icf.c (sem_variable::merge): Yield merge operation if
12732 alias address matters, not necessarily address of original.
12733
12734 2016-09-22 Richard Biener <rguenther@suse.de>
12735
12736 PR middle-end/77697
12737 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
12738 fold fails.
12739
12740 2016-09-22 Richard Biener <rguenther@suse.de>
12741
12742 PR middle-end/77677
12743 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
12744 from constant folding results.
12745 (gimple_resimplify2): Likewise.
12746 (gimple_resimplify3): Likewise.
12747
12748 2016-09-22 Richard Biener <rguenther@suse.de>
12749
12750 PR middle-end/77678
12751 * expr.c (expand_expr_real_1): Guard array access against negative
12752 offset.
12753
12754 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12755
12756 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
12757 of MPFR_RNDN.
12758 (format_floating): Likewise.
12759
12760 2016-09-22 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR fortran/77665
12763 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
12764 for all IFN_GOMP_SIMD_* internal fns, not just for
12765 IFN_GOMP_SIMD_ORDERED_*.
12766
12767 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12768
12769 PR target/77670
12770 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
12771 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
12772 instructions when you want to invert the test.
12773 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
12774 correct order for XXSEL.
12775 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
12776 for using XSCMP{EQ,GT,GE}DP.
12777
12778 2016-09-21 David Malcolm <dmalcolm@redhat.com>
12779
12780 * genconstants.c (main): Introduce noop_reader and convert call
12781 to read_md_files to a method call.
12782 * genenums.c (main): Likewise.
12783 * genmddeps.c (main): Likewise.
12784 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
12785 rtx_reader_ptr->get_top_level_filename ().
12786 (write_tm_preds_h): Likewise.
12787 (write_insn_preds_c): Likewise.
12788 * gensupport.c (class gen_reader): New subclass of rtx_reader.
12789 (rtx_handle_directive): Convert to...
12790 (gen_reader::handle_unknown_directive): ...this.
12791 (init_rtx_reader_args_cb): Convert return type from bool to
12792 rtx_reader *. Create a gen_reader instance, using it for the
12793 call to read_md_files. Return it if no errors occur.
12794 (init_rtx_reader_args): Convert return type from bool to
12795 rtx_reader *.
12796 * gensupport.h (init_rtx_reader_args_cb): Likewise.
12797 (init_rtx_reader_args_cb): Likewise.
12798 * read-md.c (struct file_name_list): Move to class rtx_reader.
12799 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
12800 (read_md_filename): Delete in favor of
12801 rtx_reader::m_read_md_filename.
12802 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
12803 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
12804 (base_dir): Delete in favor of rtx_reader::m_base_dir.
12805 (first_dir_md_include): Delete in favor of
12806 rtx_reader::m_first_dir_md_include.
12807 (last_dir_md_include_ptr): Delete in favor of
12808 rtx_reader::m_last_dir_md_include_ptr.
12809 (max_include_len): Delete.
12810 (rtx_reader_ptr): New.
12811 (fatal_with_file_and_line): Use get_filename and get_lineno
12812 accessors of rtx_reader_ptr.
12813 (require_char_ws): Likewise.
12814 (rtx_reader::read_char): New method, based on ::read_char.
12815 (rtx_reader::unread_char): New method, based on ::unread_char.
12816 (read_escape): Use get_filename and get_lineno accessors of
12817 rtx_reader_ptr.
12818 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
12819 (read_string): Use get_filename and get_lineno accessors of
12820 rtx_reader_ptr.
12821 (rtx_reader::rtx_reader): New ctor.
12822 (rtx_reader::~rtx_reader): New dtor.
12823 (handle_include): Convert from a function to...
12824 (rtx_reader::handle_include): ...this method, converting
12825 handle_directive from a callback to a virtual function.
12826 (handle_file): Likewise, converting to...
12827 (rtx_reader::handle_file): ...this method.
12828 (handle_toplevel_file): Likewise, converting to...
12829 (rtx_reader::handle_toplevel_file): ...this method.
12830 (rtx_reader::get_current_location): New method.
12831 (parse_include): Convert from a function to...
12832 (rtx_reader::add_include_path): ...this method, dropping redundant
12833 update to unused max_include_len.
12834 (read_md_files): Convert from a function to...
12835 (rtx_reader::read_md_files): ...this method, converting
12836 handle_directive from a callback to a virtual function.
12837 (noop_reader::handle_unknown_directive): New method.
12838 * read-md.h (directive_handler_t): Delete this typedef.
12839 (in_fname): Delete.
12840 (read_md_file): Delete.
12841 (read_md_lineno): Delete.
12842 (read_md_filename): Delete.
12843 (class rtx_reader): New class.
12844 (rtx_reader_ptr): New decl.
12845 (class noop_reader): New subclass of rtx_reader.
12846 (read_char): Reimplement in terms of rtx_reader::read_char.
12847 (unread_char): Reimplement in terms of rtx_reader::unread_char.
12848 (read_md_files): Delete.
12849 * read-rtl.c (read_rtx_code): Update for deletion of globals
12850 read_md_filename and read_md_lineno.
12851
12852 2016-09-21 Jason Merrill <jason@redhat.com>
12853
12854 * input.h (from_macro_definition_at): New.
12855
12856 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
12857
12858 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
12859
12860 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
12861
12862 PR tree-optimization/77550
12863 * tree-vect-stmts.c (create_array_ref): Change parameters.
12864 (get_group_alias_ptr_type): New function.
12865 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
12866
12867 2016-09-21 Marek Polacek <polacek@redhat.com>
12868
12869 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
12870 Add falls through comment.
12871
12872 2016-09-21 Richard Biener <rguenther@suse.de>
12873
12874 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
12875 (replace_child): Likewise.
12876 (remove_child_TAG): Adjust.
12877 (move_marked_base_types): Likewise.
12878 (prune_unused_types_prune): Clear die_sib of removed children.
12879
12880 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
12881
12882 PR target/77326
12883 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
12884 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
12885
12886 2016-09-21 Richard Biener <rguenther@suse.de>
12887
12888 PR tree-optimization/77648
12889 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
12890 with complex RHS.
12891 (make_transitive_closure_constraints): Adjust comment.
12892 (make_any_offset_constraints): New function.
12893 (handle_rhs_call): Make sure to first expand a pointer to all
12894 subfields before transitively closing it.
12895 (handle_const_call): Likewise. Properly expand returned
12896 pointers as well.
12897 (handle_pure_call): Likewise.
12898
12899 2016-09-21 Richard Biener <rguenther@suse.de>
12900 Jakub Jelinek <jakub@redhat.com>
12901
12902 PR tree-optimization/77621
12903 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
12904 group at non-vectorizable stmts.
12905
12906 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12907
12908 PR tree-optimization/72835
12909 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
12910 (make_new_ssa_for_all_defs): Likewise.
12911 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
12912
12913 2016-09-20 Martin Sebor <msebor@redhat.com>
12914
12915 PR middle-end/49905
12916 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
12917 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
12918 * config/linux.c (gnu_libc_printf_pointer_format): New function.
12919 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
12920 * config/sol2.c (solaris_printf_pointer_format): New function.
12921 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
12922 options.
12923 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
12924 * doc/tm.texi: Regenerate.
12925 * gimple-fold.h (get_range_strlen): New function.
12926 (get_maxval_strlen): Declare existing function.
12927 * gimple-fold.c (get_range_strlen): Add arguments and compute both
12928 maximum and minimum.
12929 (get_range_strlen): Define overload.
12930 (get_maxval_strlen): Adjust.
12931 * gimple-ssa-sprintf.c: New file and pass.
12932 * passes.def (pass_sprintf_length): Add new pass.
12933 * targhooks.h (default_printf_pointer_format): Declare new function.
12934 (gnu_libc_printf_pointer_format): Same.
12935 (solaris_libc_printf_pointer_format): Same.
12936 * targhooks.c (default_printf_pointer_format): Define new function.
12937 * tree-pass.h (make_pass_sprintf_length): Declare new function.
12938 * print-tree.c: Increase buffer size.
12939
12940 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12941
12942 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
12943
12944 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12945
12946 * common.opt: New option -fipa-vrp.
12947 * ipa-cp.c (ipa_get_vr_lat): New.
12948 (ipcp_vr_lattice::print): Likewise.
12949 (print_all_lattices): Call ipcp_vr_lattice::print.
12950 (ipcp_vr_lattice::meet_with): New.
12951 (ipcp_vr_lattice::meet_with_1): Likewise.
12952 (ipcp_vr_lattice::top_p): Likewise.
12953 (ipcp_vr_lattice::bottom_p): Likewsie.
12954 (ipcp_vr_lattice::set_to_bottom): Likewise.
12955 (set_all_contains_variable): Call VR set_to_bottom.
12956 (initialize_node_lattices): Init VR lattices.
12957 (propagate_vr_accross_jump_function): New.
12958 (propagate_constants_accross_call): Call
12959 propagate_vr_accross_jump_function.
12960 (ipcp_store_vr_results): New.
12961 (ipcp_driver): Handle VR.
12962 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
12963 (ipa_set_jf_unknown): Likewise.
12964 (ipa_compute_jump_functions_for_edge): Likewise.
12965 (ipa_node_params_t::duplicate): Likewise.
12966 (ipa_write_jump_function): Likewise.
12967 (ipa_read_jump_function): Likewise.
12968 (write_ipcp_transformation_info): Likewise.
12969 (read_ipcp_transformation_info): Likewise.
12970 (ipcp_update_vr): New.
12971 (ipcp_transform_function): Handle VR.
12972 * ipa-prop.h (struct ipa_vr): New.
12973 * cgraph.c: Include tree-vrp.h.
12974 * cgraphunit.c: Likewise.
12975 * ipa-utils.c: Likewise.
12976 * ipa.c: Likewise.
12977 * opts.c: Likewise.
12978 * toplev.c: Likewise.
12979 * ipa-devirt.c: Likewise.
12980 * ipa-inline-transform.c: Likewise.
12981 * ipa-inline.c: Likewise.
12982 * ipa-profile.c: Likewise.
12983
12984 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
12985
12986 * doc/invoke.texi: Document -fdump-tree-evrp.
12987 * passes.def: Define new pass_early_vrp.
12988 * timevar.def: Define new TV_TREE_EARLY_VRP.
12989 * tree-pass.h (make_pass_early_vrp): New.
12990 * tree-ssa-propagate.c: Make replace_uses_in non static.
12991 * tree-ssa-propagate.h: Export replace_uses_in.
12992 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
12993 (extract_range_from_assert): Factor out
12994 extract_range_for_var_from_comparison_expr.
12995 (vrp_initialize_lattice): New.
12996 (vrp_initialize): Factor out vrp_initialize_lattice.
12997 (vrp_valueize): Fix it to reject complex value ranges.
12998 (vrp_free_lattice): New.
12999 (evrp_dom_walker::before_dom_children): Likewise.
13000 (evrp_dom_walker::after_dom_children): Likewise.
13001 (evrp_dom_walker::push_value_range): Likewise.
13002 (evrp_dom_walker::pop_value_range): Likewise.
13003 (execute_early_vrp): Likewise.
13004 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
13005 (make_pass_early_vrp): New.
13006
13007 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
13008
13009 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
13010 instead of exact_log2.
13011
13012 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
13013
13014 PR target/77621
13015 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
13016 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
13017 (ix86_add_stmt_cost): Penalize DFmode vector operations
13018 for !TARGET_VECTORIZE_DOUBLE.
13019
13020 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
13021
13022 * doc/invoke.texi (Warning Options): Simplify language.
13023 (Optimize Options): Complete sentence.
13024
13025 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
13026
13027 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
13028 early_finish hook.
13029
13030 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
13031
13032 PR target/71395
13033 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
13034 inits on power8 and above, use the VMRGEW instruction instead of a
13035 permute.
13036
13037 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
13038 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
13039 initialization.
13040
13041 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13042
13043 * config/aarch64/arm_neon.h
13044 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
13045 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
13046 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
13047
13048 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13049
13050 * config/var/vax.h (ELIMINABLE_REGS): Define.
13051 (INITIAL_ELIMINATION_OFFSET): Define.
13052
13053 2016-09-20 Jakub Jelinek <jakub@redhat.com>
13054
13055 PR middle-end/77624
13056 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
13057 cast to void * if the cast is from some other pointer type.
13058
13059 2016-09-20 Richard Biener <rguenther@suse.de>
13060
13061 PR tree-optimization/77646
13062 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
13063 a VDEF.
13064
13065 2016-09-20 Tamar Christina <tamar.christina@arm.com>
13066
13067 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
13068 attributes to all inlined functions and make them extern.
13069
13070 2016-09-20 Richard Biener <rguenther@suse.de>
13071
13072 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
13073 hook.
13074 * debug.c (do_nothing_debug_hooks): Adjust.
13075 * dbxout.c (dbx_debug_hooks): Likewise.
13076 * sdbout.c (sdb_debug_hooks): Likewise.
13077 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
13078 (dwarf2out_finish): Move producer, filename and
13079 path annotation ...
13080 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
13081 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
13082
13083 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
13084
13085 PR c++/77434
13086 * doc/invoke.texi: Document -Wint-in-bool-context.
13087
13088 PR middle-end/77421
13089 * dwarf2out.c (output_loc_operands): Fix an assertion.
13090
13091 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13092
13093 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
13094 (CR_DECIMAL_DIG): New macro.
13095
13096 2016-09-19 Joseph Myers <joseph@codesourcery.com>
13097
13098 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
13099 element.
13100
13101 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
13102
13103 PR rtl-optimization/77416
13104 * lra-remat.c (operand_to_remat): Process hard coded insn
13105 registers.
13106
13107 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13108
13109 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
13110 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
13111
13112 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
13113
13114 * target.def (lra_p): Wordsmithing.
13115 * doc/tm.texi: Regenerate.
13116
13117 2016-09-19 Jakub Jelinek <jakub@redhat.com>
13118 Jan Hubicka <jh@suse.cz>
13119
13120 PR target/77587
13121 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
13122 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
13123 Call ultimate_alias_target just once, not up to 4 times.
13124
13125 2016-09-19 Richard Biener <rguenther@suse.de>
13126
13127 * dwarf2out.c (early_dwarf_finished): New global.
13128 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
13129 is false.
13130 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
13131 if called from LTO exit early.
13132 (dwarf2out_late_global_decl): When being during the early
13133 debug phase do not add locations but only const value attributes.
13134 Adjust the way we generate early DIEs for LTO.
13135
13136 2016-09-19 Richard Biener <rguenther@suse.de>
13137
13138 PR middle-end/77605
13139 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
13140 proper niter to bound the loops.
13141
13142 2016-09-19 Richard Biener <rguenther@suse.de>
13143
13144 PR tree-optimization/77514
13145 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
13146 search for folded stmt.
13147
13148 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
13149
13150 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
13151 * tree-pass.h (make_pass_early_thread_jumps): Declare.
13152 * tree-ssa-threadbackward.c (fsm_find_thread_path,
13153 fsm_find_thread_path, profitable_jump_thread_path,
13154 fsm_find_control_statement_thread_paths,
13155 find_jump_threads_backwards): Add speed_p parameter.
13156 (pass_data_early_thread_jumps): New pass.
13157 (make_pass_early_thread_jumps): New function.
13158
13159 2016-09-17 Andreas Schwab <schwab@suse.de>
13160
13161 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
13162 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13163
13164 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
13165
13166 * recog.c (rest_of_handle_split_after_reload): Delete.
13167 (pass_split_after_reload::gate): New method.
13168 (pass_split_after_reload::execute): Call split_all_insns directly.
13169
13170 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
13171
13172 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
13173 parameters for functions taking long long arguments.
13174
13175 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13176
13177 PR target/77613
13178 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
13179 splat with truncate.
13180
13181 2016-09-16 Jason Merrill <jason@redhat.com>
13182
13183 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
13184 New.
13185 * hwint.c (exact_log2): Use pow2p_hwi.
13186 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
13187 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
13188 * builtins.c (get_object_alignment_2, get_object_alignment)
13189 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
13190 least_bit_hwi.
13191 * calls.c (compute_argument_addresses, store_one_arg): Use
13192 least_bit_hwi.
13193 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
13194 * combine.c (force_to_mode): Use least_bit_hwi.
13195 (contains_muldiv, find_split_point, combine_simplify_rtx)
13196 (simplify_if_then_else, simplify_set, force_to_mode)
13197 (if_then_else_cond, simplify_and_const_int_1)
13198 (simplify_compare_const): Use pow2p_hwi.
13199 * cse.c (fold_rtx): Use pow2p_hwi.
13200 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
13201 Use least_bit_hwi.
13202 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
13203 (init_expmed_one_conv): Use pow2p_hwi.
13204 * expr.c (is_aligning_offset): Use pow2p_hwi.
13205 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
13206 (fold_binary_loc): Use pow2p_hwi.
13207 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
13208 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
13209 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
13210 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
13211 Use least_bit_hwi.
13212 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
13213 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
13214 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
13215 * omp-low.c (oacc_loop_fixed_partitions)
13216 (oacc_loop_auto_partitions): Use least_bit_hwi.
13217 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
13218 * stor-layout.c (place_field): Use least_bit_hwi.
13219 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
13220 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
13221 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
13222 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
13223 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
13224 * tree-vect-data-refs.c (vect_analyze_group_access_1)
13225 (vect_grouped_store_supported, vect_grouped_load_supported)
13226 (vect_permute_load_chain, vect_shift_permute_load_chain)
13227 (vect_transform_grouped_load): Use pow2p_hwi.
13228 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
13229 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
13230 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
13231 least_bit_hwi.
13232 * tsan.c (instrument_expr): Use least_bit_hwi.
13233 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
13234
13235 2016-09-16 Andreas Schwab <schwab@suse.de>
13236
13237 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
13238 OFFSET, not offset.
13239 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13240
13241 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13242
13243 PR target/77526
13244 * combine.c (rest_of_handle_combine): If any edges have been purged,
13245 free dominators if available.
13246
13247 2016-09-16 Jakub Jelinek <jakub@redhat.com>
13248 Eric Botcazou <ebotcazou@adacore.com>
13249
13250 PR middle-end/77594
13251 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
13252 through into expand_addsub_overflow after expand_neg_overflow.
13253
13254 2016-09-15 David Malcolm <dmalcolm@redhat.com>
13255
13256 * diagnostic-show-locus.c
13257 (selftest::test_fixit_insert_containing_newline): New function.
13258 (selftest::test_fixit_replace_containing_newline): New function.
13259 (selftest::diagnostic_show_locus_c_tests): Call the above.
13260
13261 2016-09-15 Bin Cheng <bin.cheng@arm.com>
13262
13263 PR tree-optimization/77503
13264 * tree-vect-loop.c (vectorizable_reduction): Record reduction
13265 code for CONST_COND_REDUCTION at analysis stage and use it at
13266 transform stage.
13267 * tree-vectorizer.h (struct _stmt_vec_info): New field.
13268 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
13269 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
13270 field.
13271
13272 2016-09-15 Richard Biener <rguenther@suse.de>
13273
13274 PR middle-end/77544
13275 * fold-const.c (split_tree): Do not split constant ~X.
13276
13277 2016-09-15 Jakub Jelinek <jakub@redhat.com>
13278
13279 PR rtl-optimization/77425
13280 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
13281 is NULL.
13282
13283 PR middle-end/77475
13284 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
13285 use %qs instead of %s where desirable, use argument instead of arg in
13286 the diagnostic wording, add list of supported strategies and
13287 spellcheck hint.
13288 (ix86_option_override_internal): Emit target("m...") instead of
13289 option("m...") in the diagnostic. Use %qs instead of %s in invalid
13290 -march/-mtune option diagnostic. Add list of supported arches/tunings
13291 and spellcheck hint. Remove prefix, suffix and sw variables, use
13292 main_args_p ? "..." : "..." in diagnostics to make translation
13293 possible.
13294
13295 2016-09-15 Richard Biener <rguenther@suse.de>
13296
13297 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
13298 extra offset argument.
13299 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
13300 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
13301 to reflect new offset parameter.
13302 * doc/tm.texi: Regenerate.
13303 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13304 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
13305 offset argument.
13306 (darwin_asm_output_dwarf_offset): Likewise.
13307 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
13308 argument.
13309 (darwin_asm_output_dwarf_offset): Pass offset argument through.
13310 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
13311 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
13312
13313 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
13314
13315 PR fortran/72743
13316 * ipa-icf.c (set_alias_uids): New function.
13317 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
13318 all the merged variable's referring aliases.
13319
13320 2016-09-15 Richard Biener <rguenther@suse.de>
13321
13322 PR tree-optimization/77514
13323 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
13324 only forced_stmts sequence.
13325
13326 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
13327
13328 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
13329 * cfgexpand.c (update_alias_info_with_stack_vars): Use
13330 FOR_EACH_SSA_NAME to iterate over SSA variables.
13331 (pass_expand::execute): Likewise.
13332 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
13333 * tree-cfg.c (dump_function_to_file): Likewise.
13334 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
13335 (update_ssa): Likewise.
13336 * tree-ssa-alias.c (dump_alias_info): Likewise.
13337 * tree-ssa-ccp.c (ccp_finalize): Likewise.
13338 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
13339 (create_outofssa_var_map): Likewise.
13340 (coalesce_ssa_name): Likewise.
13341 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
13342 * tree-ssa-pre.c (compute_avail): Likewise.
13343 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
13344 (scc_vn_restore_ssa_info): Likewise.
13345 (free_scc_vn): Likwise.
13346 (run_scc_vn): Likewise.
13347 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13348 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
13349 * tree-ssa-copy.c (fini_copy_prop): Likewise.
13350 * tree-ssa.c (verify_ssa): Likewise.
13351
13352 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
13353
13354 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
13355 and mips64r2 as default 32-bit and 64-bit architectures.
13356 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
13357 as default 32-bit and 64-bit architectures.
13358
13359 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
13360
13361 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
13362 of succ edge.
13363
13364 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13365
13366 * target.def (lra_p): Change commentary (for the manual) for the
13367 new default.
13368 * doc/tm.texi: Regenerate.
13369
13370 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13371
13372 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
13373 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
13374 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
13375 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
13376
13377 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13378
13379 * targhooks.c (default_lra_p): Return true instead of false.
13380
13381 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13382
13383 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
13384 hook_bool_void_false.
13385 * config/avr/avr.c: Ditto.
13386 * config/bfin/bfin.c: Ditto.
13387 * config/c6x/c6x.c: Ditto.
13388 * config/cr16/cr16.c: Ditto.
13389 * config/cris/cris.c: Ditto.
13390 * config/epiphany/epiphany.c: Ditto.
13391 * config/fr30/fr30.c: Ditto.
13392 * config/frv/frv.c: Ditto.
13393 * config/h8300/h8300.c: Ditto.
13394 * config/ia64/ia64.c: Ditto.
13395 * config/iq2000/iq2000.c: Ditto.
13396 * config/lm32/lm32.c: Ditto.
13397 * config/m32c/m32c.c: Ditto.
13398 * config/m32r/m32r.c: Ditto.
13399 * config/m68k/m68k.c: Ditto.
13400 * config/mcore/mcore.c: Ditto.
13401 * config/microblaze/microblaze.c: Ditto.
13402 * config/mmix/mmix.c: Ditto.
13403 * config/mn10300/mn10300.c: Ditto.
13404 * config/moxie/moxie.c: Ditto.
13405 * config/msp430/msp430.c: Ditto.
13406 * config/nios2/nios2.c: Ditto.
13407 * config/nvptx/nvptx.c: Ditto.
13408 * config/pa/pa.c: Ditto.
13409 * config/pdp11/pdp11.c: Ditto.
13410 * config/rl78/rl78.c: Ditto.
13411 * config/sparc/sparc.c: Ditto.
13412 * config/spu/spu.c: Ditto.
13413 * config/stormy16/stormy16.c: Ditto.
13414 * config/tilegx/tilegx.c: Ditto.
13415 * config/tilepro/tilepro.c: Ditto.
13416 * config/v850/v850.c: Ditto.
13417 * config/vax/vax.c: Ditto.
13418 * config/visium/visium.c: Ditto.
13419 * config/xtensa/xtensa.c: Ditto.
13420
13421 2016-09-14 Jakub Jelinek <jakub@redhat.com>
13422
13423 PR sanitizer/68260
13424 * tsan.c: Include target.h.
13425 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
13426 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
13427 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
13428 BUILT_IN_ATOMIC_TEST_AND_SET entries.
13429 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
13430
13431 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13432 Martin Liska <mliska@suse.cz>
13433
13434 PR middle-end/77574
13435 * predict.c (force_edge_cold): Add braces to a condition.
13436
13437 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13438
13439 PR rtl-optimization/77289
13440 * lra-constraints.c (get_final_hard_regno): Removed.
13441 (get_hard_regno): Add new parameter final_p.
13442 (get_reg_class): Directly call lra_get_elimination_hard_regno.
13443 (operands_match_p): Adjust call to get_hard_regno.
13444 (uses_hard_regs_p): Likewise.
13445 (process_alt_operands): Likewise.
13446
13447 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
13448
13449 PR target/70713
13450 * config/msp430/msp430.c (msp430_start_function): Emit an error
13451 if a function is both weak and specifies an interrupt number.
13452
13453 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13454
13455 PR tree-optimization/77454
13456 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
13457 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
13458 Formatting fix.
13459
13460 2016-09-13 Tamar Christina <tamar.christina@arm.com>
13461
13462 * config/aarch64/aarch64-builtins.c
13463 (aarch64_init_simd_builtins): Fix builtin type signature printing.
13464
13465 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
13466
13467 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
13468 SFmode and SCmode arguments by reference.
13469
13470 2016-09-13 David Malcolm <dmalcolm@redhat.com>
13471
13472 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
13473 Rename to...
13474 (selftest::test_one_liner_fixit_insert_before): ...this, and update
13475 for renaming of add_fixit_insert to add_fixit_insert_before.
13476 (selftest::test_one_liner_fixit_insert_after): New function.
13477 (selftest::test_one_liner_fixit_validation_adhoc_locations):
13478 Update for renaming of add_fixit_insert to add_fixit_insert_before.
13479 (selftest::test_one_liner_many_fixits): Likewise.
13480 (selftest::test_diagnostic_show_locus_one_liner): Update for
13481 renaming, call new test function.
13482 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
13483 renaming of add_fixit_insert to add_fixit_insert_before.
13484 (selftest::test_fixit_consolidation): Likewise.
13485 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
13486 Likewise.
13487 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
13488 (selftest::test_applying_fixits_insert_before): ...this.
13489 (selftest::test_applying_fixits_insert): Update for renaming of
13490 add_fixit_insert to add_fixit_insert_before.
13491 (selftest::test_applying_fixits_insert_after): New function.
13492 (selftest::test_applying_fixits_insert_after_at_line_end): New
13493 function.
13494 (selftest::test_applying_fixits_insert_after_failure): New function.
13495 (selftest::test_applying_fixits_multiple): Update for renaming of
13496 add_fixit_insert to add_fixit_insert_before.
13497 (selftest::change_line): Likewise.
13498 (selftest::test_applying_fixits_unreadable_file): Likewise.
13499 (selftest::test_applying_fixits_line_out_of_range): Likewise.
13500 (selftest::test_applying_fixits_column_validation): Likewise.
13501 (selftest::test_applying_fixits_column_validation): Likewise.
13502 (selftest::edit_context_c_tests): Update for renamed test function;
13503 call new test functions.
13504
13505 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
13506
13507 PR tree-optimization/77536
13508 PR rtl-optimization/68212
13509 * config/rs6000/rs6000.md (div->recip splitter): Remove
13510 optimize_insn_for_speed_p condition.
13511
13512 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
13513
13514 * optabs.c (prepare_cmp_insn): Update documentation comment.
13515
13516 2016-09-13 Jakub Jelinek <jakub@redhat.com>
13517 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13518
13519 PR middle-end/77475
13520 * opts.h (candidates_list_and_hint): Declare.
13521 * opts-common.c (candidates_list_and_hint): New function.
13522 (cmdline_handle_error): Use it.
13523
13524 2016-09-12 David Malcolm <dmalcolm@redhat.com>
13525
13526 * edit-context.c (edited_line::get_len): New accessor.
13527 (edited_file::print_diff): Split out hunk-printing into...
13528 (edited_file::print_diff_hunk): New method.
13529 (edited_file::print_diff_line): New method.
13530
13531 2016-09-12 Andrew Pinski <apinski@cavium.com>
13532
13533 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
13534 New tuning option.
13535 * config/aarch64/aarch64.c (thunderx_tunings): Enable
13536 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
13537 (aarch64_operands_ok_for_ldpstp): Return false if
13538 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
13539 was SImode and the alignment is less than 8 byte.
13540 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
13541
13542 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
13543
13544 PR target/77570
13545 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
13546
13547 2016-09-12 Marek Polacek <polacek@redhat.com>
13548
13549 * doc/extend.texi: Use lowercase "boolean".
13550 * doc/invoke.texi: Likewise.
13551 * doc/md.texi: Likewise.
13552 * target.def: Likewise.
13553 * doc/tm.texi: Regenerated.
13554
13555 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13556
13557 PR middle-end/77426
13558 * expmed.c (synth_mult): Delete duplicate mode check.
13559
13560 2016-09-10 Tom de Vries <tom@codesourcery.com>
13561
13562 PR C/71602
13563 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
13564 va_list type only.
13565 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
13566 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
13567
13568 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
13569
13570 PR rtl-optimization/77289
13571 * lra-constraints.c (get_final_hard_regno): Add support for non hard
13572 register numbers. Remove support for subregs.
13573 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
13574 (get_reg_class): Delete removed get_final_hard_regno() argument.
13575 (uses_hard_regs_p): Call get_final_hard_regno().
13576
13577 2016-09-09 Martin Sebor <msebor@redhat.com>
13578
13579 PR c/77520
13580 PR c/77521
13581 * pretty-print.c (pp_quoted_string): New function.
13582 (pp_format): Call it for %c and %s directives.
13583
13584 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13585
13586 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
13587 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
13588 INITIAL_ELIMINATION_OFFSET) : Update documentation.
13589 * target.def (frame_pointer_required, can_eliminate): Likewise.
13590 * doc/tm.texi: Regenerated.
13591 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
13592 ELIMINABLE_REGS.
13593 * df-scan.c (df_hard_reg_init): Likewise.
13594 * ira.c (ira_setup_eliminable_regset): Likewise.
13595 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
13596 init_elim_table): Likewise.
13597 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
13598 set_initial_elim_offsets, update_eliminables,
13599 init_elim_table): Likewise.
13600 * rtlanal.c (get_initial_register_offset): Likewise.
13601 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
13602 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13603 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13604 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
13605 * config/fr30/fr30.h: Fix comment.
13606 * config/frv/frv.c: Likewise.
13607 * config/frv/frv.h: Likewise.
13608 * config/ft32/ft32.h: Likewise.
13609 * config/visium/visium.h: Likewise.
13610 * config/pa/pa64-linux.h: Likewise.
13611 * config/v850/v850.h: Likewise.
13612 * config/cris/cris.c: Likewise.
13613 * config/ia64/ia64.h: Likewise.
13614 * config/moxie/moxie.h: Likewise.
13615 * config/m32r/m32r.h: Likewise.
13616
13617 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
13618
13619 PR target/77267
13620 * config.in: Regenerate.
13621 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
13622 New macro.
13623 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
13624 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
13625 static-libmpxwrappers case.
13626 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
13627 MPX_LD_AS_NEEDED_GUARD_POP.
13628 * configure: Regenerate.
13629 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
13630 defined if linker support "--push-state"/"--pop-state".
13631
13632 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13633
13634 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
13635
13636 2016-09-09 Joseph Myers <joseph@codesourcery.com>
13637
13638 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
13639 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
13640 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
13641 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
13642 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
13643 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
13644 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
13645 Document.
13646 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
13647 width macros from TS 18661-1.
13648 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
13649
13650 2016-09-08 Jakub Jelinek <jakub@redhat.com>
13651
13652 PR fortran/77516
13653 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
13654 OMP_CLAUSE_SAFELEN_EXPR.
13655
13656 2016-09-07 David Malcolm <dmalcolm@redhat.com>
13657
13658 * Makefile.in (OBJS): Add substring-locations.o.
13659 * langhooks-def.h (class substring_loc): New forward decl.
13660 (lhd_get_substring_location): New decl.
13661 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
13662 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
13663 * langhooks.c (lhd_get_substring_location): New function.
13664 * langhooks.h (class substring_loc): New forward decl.
13665 (struct lang_hooks): Add field get_substring_location.
13666 * substring-locations.c: New file, taking definition of
13667 format_warning_va and format_warning_at_substring from
13668 c-family/c-format.c, making them non-static.
13669 * substring-locations.h (class substring_loc): Move class here
13670 from c-family/c-common.h. Add and rewrite comments.
13671 (format_warning_va): New decl.
13672 (format_warning_at_substring): New decl.
13673 (get_source_location_for_substring): Add comment.
13674
13675 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
13676
13677 * config/i386/i386.c: Add 'U' suffix to processor feature bits
13678 to avoid -Wnarrowing warning.
13679 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
13680 * opts.c: Likewise for SANITIZER_OPT bitmasks.
13681
13682 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
13683
13684 * config/aarch64/aarch64.c (aarch64_legitimize_address):
13685 Avoid use of base_offset if offset already in range.
13686
13687 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
13688
13689 * config/sh/sh-protos.h (struct sh_atomic_model,
13690 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13691 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13692 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
13693 * config/sh/sh.h (struct sh_atomic_model,
13694 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
13695 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
13696 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
13697 Guard with __cplusplus.
13698
13699 2016-09-06 Jakub Jelinek <jakub@redhat.com>
13700
13701 PR target/69255
13702 * config/i386/i386.c (ix86_expand_builtin): For builtin with
13703 unsupported or unknown ISA, use expand_call.
13704
13705 2016-09-06 Martin Liska <mliska@suse.cz>
13706
13707 PR gcov-profile/77378
13708 PR gcov-profile/77466
13709 * tree-profile.c (tree_profiling): Detect whether target can use
13710 -fprofile-update=atomic.
13711
13712 2016-09-06 Richard Biener <rguenther@suse.de>
13713
13714 PR tree-optimization/77479
13715 * tree-vrp.c (update_value_range): Extend overflow handling to
13716 VARYING.
13717
13718 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13719
13720 PR target/77476
13721 * config/i386/i386.md (isa): Add x64_avx512bw.
13722 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
13723 (kmov_isa): New mode attr.
13724 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
13725 (*zero_extend<mode>si2): Likewise.
13726 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
13727
13728 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
13729
13730 * doc/invoke.texi (SPU Options): nops -> NOPs.
13731 (x86 Options): Ditto.
13732
13733 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13734
13735 PR middle-end/77475
13736 * toplev.c (process_options): Temporarily set input_location
13737 to UNKNOWN_LOCATION around targetm.target_option.override () call.
13738
13739 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
13740
13741 PR rtl-optimization/77452
13742 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
13743 inner-mode reference to a CONST_VECTOR constant in the constant pool.
13744
13745 2016-09-05 Marek Polacek <polacek@redhat.com>
13746
13747 PR c/77423
13748 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
13749
13750 2016-09-05 Jakub Jelinek <jakub@redhat.com>
13751
13752 PR other/77421
13753 * gensupport.c (alter_output_for_subst_insn): Remove redundant
13754 *insn_out == '*' test. Don't copy unnecessary to yet another
13755 memory buffer, and don't leak it.
13756
13757 PR rtl-optimization/77425
13758 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
13759
13760 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
13761
13762 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
13763
13764 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13765
13766 * common.opt (fdiagnostics-generate-patch): New option.
13767 * diagnostic.c: Include "edit-context.h".
13768 (diagnostic_initialize): Initialize context->edit_context_ptr.
13769 (diagnostic_finish): Delete context->edit_context_ptr.
13770 (diagnostic_report_diagnostic): Add fix-it hints from the
13771 diagnostic to context->edit_context_ptr, if any.
13772 * diagnostic.h (class edit_context): Add forward decl.
13773 (struct diagnostic_context): Add field "edit_context_ptr".
13774 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
13775 -fdiagnostics-generate-patch.
13776 (-fdiagnostics-generate-patch): New item.
13777 * toplev.c: Include "edit-context.h".
13778 (process_options): Set global_dc->edit_context_ptr to a new
13779 edit_context if the options need one.
13780 (toplev::main): Handle -fdiagnostics-generate-patch by using
13781 global_dc->edit_context_ptr.
13782
13783 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13784
13785 PR c/65467
13786 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
13787 map and firstprivate clauses on target construct for _Atomic
13788 qualified decls.
13789 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
13790 on target construct for _Atomic qualified decls.
13791 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
13792 decls.
13793 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
13794 _Atomic qualified arguments not mentioned in uniform clause.
13795
13796 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13797
13798 * Makefile.in (OBJS-libcommon): Add edit-context.o.
13799 * diagnostic-color.c (color_dict): Add "diff-filename",
13800 "diff-hunk", "diff-delete", and "diff-insert".
13801 (parse_gcc_colors): Update default value of GCC_COLORS in comment
13802 to reflect above changes.
13803 * doc/invoke.texi (-fdiagnostics-color): Update description of
13804 default GCC_COLORS, and of the supported capabilities.
13805 * edit-context.c: New file.
13806 * edit-context.h: New file.
13807 * input.c (struct fcache): Add field "missing_trailing_newline".
13808 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
13809 true.
13810 (add_file_to_cache_tab): Likewise.
13811 (fcache::fcache): Likewise.
13812 (get_next_line): Update c->missing_trailing_newline.
13813 (location_missing_trailing_newline): New function.
13814 * input.h (location_missing_trailing_newline): New decl.
13815 * selftest-run-tests.c (selftest::run_tests): Call
13816 edit_context_c_tests.
13817 * selftest.h (edit_context_c_tests): New decl.
13818
13819 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13820 Richard Biener <rguenth@suse.de>
13821
13822 PR tree-optimization/77444
13823 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
13824 as steptype, remove redundant initialization.
13825
13826 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13827
13828 PR sanitizer/77396
13829 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
13830 (sanopt_optimize_walker): Optimize away
13831 __asan_before_dynamic_init (...) followed by
13832 __asan_after_dynamic_init () without intervening memory loads/stores.
13833 * ipa-pure-const.c (special_builtin_state): Handle
13834 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
13835 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
13836
13837 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13838
13839 * cfg.c (free_original_copy_tables): Replace second assignment of
13840 bb_copy = NULL by bb_original = NULL.
13841
13842 2016-09-02 Jakub Jelinek <jakub@redhat.com>
13843
13844 PR other/77421
13845 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
13846 assignment added in r216794.
13847
13848 2016-09-02 David Malcolm <dmalcolm@redhat.com>
13849
13850 * Makefile.in (OBJS): Add typed-splay-tree.o.
13851 * selftest-run-tests.c (selftest::run_tests): Call
13852 typed_splay_tree_c_tests.
13853 * selftest.h (typed_splay_tree_c_tests): New decl.
13854 * typed-splay-tree.c: New file.
13855 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
13856 (typed_splay_tree::max): New method.
13857 (typed_splay_tree::min): New method.
13858 (typed_splay_tree::foreach): New method.
13859 (typed_splay_tree::closure): New struct.
13860 (typed_splay_tree::inner_foreach_fn): New function.
13861
13862 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13863
13864 * ipa-cp.c (ipcp_store_bits_results): Change option name from
13865 -fipa-cp-bit to -fipa-bit-cp.
13866
13867 2016-09-01 Martin Sebor <msebor@redhat.com>
13868
13869 PR tree-optimization/71831
13870 * tree-object-size.h: Return bool instead of the size and add
13871 argument for the size.
13872 * tree-object-size.c (compute_object_offset): Update signature.
13873 (addr_object_size): Same.
13874 (compute_builtin_object_size): Return bool instead of the size
13875 and add argument for the size. Handle POINTER_PLUS_EXPR when
13876 optimization is disabled.
13877 (expr_object_size): Adjust.
13878 (plus_stmt_object_size): Adjust.
13879 (pass_object_sizes::execute): Adjust.
13880 * builtins.c (fold_builtin_object_size): Adjust.
13881 * doc/extend.texi (Object Size Checking): Update.
13882 * ubsan.c (instrument_object_size): Adjust.
13883
13884 2016-09-01 Martin Sebor <msebor@redhat.com>
13885
13886 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
13887 it fits the output of the formatted function regardless of its
13888 arguments.
13889 * genmodes.c (parser::parse_expr): Same.
13890 * gimplify.c (gimplify_asm_expr): Same.
13891 * passes.c (pass_manager::register_one_dump_file): Same.
13892 * print-tree.c (print_node): Same.
13893
13894 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13895
13896 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
13897
13898 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13899
13900 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
13901
13902 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13903
13904 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
13905 * config/rs6000/vector.md: Ditto.
13906 * config/rs6000/vsx.md: Ditto.
13907
13908 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13909
13910 * ipa-inline-analysis.c (param_change_prob): Get to the base object
13911 first in all cases.
13912
13913 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13914
13915 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
13916 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
13917 *return_and_restore_gpregs_<mode>_r11,
13918 *return_and_restore_gpregs_<mode>_r12,
13919 *return_and_restore_gpregs_<mode>_r1,
13920 *return_and_restore_fpregs_<mode>_r11,
13921 *return_and_restore_fpregs_<mode>_r12,
13922 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
13923 directly instead of via the "l" constraint. Renumber operands.
13924 Fix whitespace.
13925
13926 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13927
13928 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
13929 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
13930 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
13931 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
13932 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
13933 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
13934 *call_value_nonlocal_darwin64, reload_macho_picbase,
13935 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
13936 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
13937 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
13938 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
13939 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
13940 *save_fpregs_<mode>_r1): Ditto.
13941 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
13942 *return_and_restore_gpregs_spe): Ditto.
13943
13944 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
13945
13946 * config/rs6000/rs6000.md
13947 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
13948 the use of the link register.
13949 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
13950
13951 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13952 Michael Meissner <meissner@linux.vnet.ibm.com>
13953
13954 PR target/72827
13955 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
13956 reg+reg addressing for TImode.
13957 (rs6000_legitimate_address_p): Only allow register indirect
13958 addressing for TImode, even without TARGET_QUAD_MEMORY.
13959
13960 2016-09-01 Richard Biener <rguenther@suse.de>
13961
13962 PR middle-end/77436
13963 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
13964 check whether the result fits the desired result type.
13965
13966 2016-09-01 Nathan Sidwell <nathan@acm.org>
13967
13968 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
13969
13970 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
13971
13972 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
13973 New function.
13974 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
13975
13976 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13977
13978 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
13979 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
13980 for comparisons of integer ZERO_EXTEND against zero.
13981
13982 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
13983
13984 * config/i386/i386.c (ix86_option_override_internal): Also disable the
13985 STV pass if -mstackrealign is enabled.
13986
13987 2016-08-31 Ilya Verbin <iverbin@gmail.com>
13988
13989 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
13990 AVX512IFMA.
13991
13992 2016-08-31 David Malcolm <dmalcolm@redhat.com>
13993
13994 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
13995 (layout_range::intersects_line_p): New method.
13996 (test_range_contains_point_for_single_point): Rename to...
13997 (test_layout_range_for_single_point): ...this, and add testing
13998 for layout_range::intersects_line_p.
13999 (test_range_contains_point_for_single_line): Rename to...
14000 (test_layout_range_for_single_line): ...this, and add testing
14001 for layout_range::intersects_line_p.
14002 (test_range_contains_point_for_multiple_lines): Rename to...
14003 (test_layout_range_for_multiple_lines): ...this, and add testing
14004 for layout_range::intersects_line_p.
14005 (layout::layout): Populate m_fixit_hints.
14006 (layout::get_expanded_location): Handle the case of a line-span
14007 for a fix-it hint.
14008 (layout::validate_fixit_hint_p): New method.
14009 (get_line_span_for_fixit_hint): New function.
14010 (layout::calculate_line_spans): Add spans for fixit-hints.
14011 (layout::should_print_annotation_line_p): New method.
14012 (layout::print_any_fixits): Drop param "richloc", instead using
14013 validated fixits in m_fixit_hints. Add "const" to hint pointers.
14014 (diagnostic_show_locus): Avoid printing blank annotation lines.
14015 (selftest::test_diagnostic_context::test_diagnostic_context):
14016 Initialize show_column and start_span.
14017 (selftest::test_diagnostic_context::start_span_cb): New static
14018 function.
14019 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
14020 (selftest::diagnostic_show_locus_c_tests): Update for function
14021 renamings. Call test_diagnostic_show_locus_fixit_lines.
14022
14023 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
14024
14025 PR tree-optimization/73714
14026 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
14027
14028 2016-08-31 David Malcolm <dmalcolm@redhat.com>
14029
14030 * selftest.c: Move "namespace selftest {" to top of file,
14031 removing explicit "selftest::" qualifiers throughout.
14032
14033 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
14034
14035 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
14036 New types.
14037 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
14038 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
14039 Replace builtin with vector extension.
14040 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
14041 New types.
14042 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
14043 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
14044 Replace builtin with vector extension.
14045 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
14046 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
14047 Replace builtin with vector extension.
14048 * config/i386/xmmintrin.h (__m128_u): New type.
14049 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
14050 (_mm_load_ps, _mm_store_ps): Simplify.
14051
14052 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
14053
14054 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
14055
14056 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14057
14058 * diagnostic-show-locus.c (colorizer::begin_state): Support more
14059 than 3 ranges per diagnostic by alternating between color 1 and
14060 color 2.
14061 (layout::layout): Replace use of rich_location::MAX_RANGES
14062 with richloc->get_num_locations ().
14063 (layout::calculate_line_spans): Replace use of
14064 rich_location::MAX_RANGES with m_layout_ranges.length ().
14065 (layout::print_annotation_line): Handle arbitrary numbers of
14066 ranges in caret-printing by defaulting to '^'.
14067 (selftest::test_one_liner_many_fixits): New function.
14068 (test_diagnostic_show_locus_one_liner): Call it.
14069 * diagnostic.c (diagnostic_initialize): Update for renaming
14070 of rich_location::MAX_RANGES to
14071 rich_location::STATICALLY_ALLOCATED_RANGES.
14072 * diagnostic.h (struct diagnostic_context): Likewise.
14073
14074 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14075
14076 * selftest.c (selftest::named_temp_file::named_temp_file): New
14077 ctor.
14078 (selftest::temp_source_file::~temp_source_file): Move to...
14079 (selftest::named_temp_file::~named_temp_file): ...here.
14080 (selftest::test_named_temp_file): New function.
14081 (selftest::selftest_c_tests): Call test_named_temp_file.
14082 * selftest.h (class named_temp_file): New class.
14083 (class temp_source_file): Convert to a subclass of named_temp_file.
14084
14085 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
14086
14087 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
14088 USEs of LR_REGNO in returns and sibcalls.
14089 (rs6000_output_mi_thunk): Similar.
14090 (rs6000_sibcall_aix): Similar.
14091 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
14092 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
14093 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
14094 Remove the USE of LR_REGNO from the patterns as well. Delete an
14095 obsolete comment.
14096 (return_internal_<mode>): Delete.
14097
14098 2016-08-30 Tamar Christina <tamar.christina@arm.com>
14099
14100 * config/aarch64/aarch64-simd.md
14101 (aarch64_ld2<mode>_dreg_le): New.
14102 (aarch64_ld2<mode>_dreg_be): New.
14103 (aarch64_ld2<mode>_dreg): Removed.
14104 (aarch64_ld3<mode>_dreg_le): New.
14105 (aarch64_ld3<mode>_dreg_be): New.
14106 (aarch64_ld3<mode>_dreg): Removed.
14107 (aarch64_ld4<mode>_dreg_le): New.
14108 (aarch64_ld4<mode>_dreg_be): New.
14109 (aarch64_ld4<mode>_dreg): Removed.
14110 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
14111
14112 2016-08-30 David Malcolm <dmalcolm@redhat.com>
14113
14114 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
14115 redundant location param.
14116 (test_one_liner_fixit_remove): Likewise.
14117 (test_one_liner_fixit_replace): Likewise.
14118 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
14119 * gcc-rich-location.c
14120 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
14121 get_range_from_loc. Drop overload taking a const char *.
14122 * gcc-rich-location.h
14123 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
14124 a const char *.
14125
14126 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14127
14128 * config/linux.c (linux_libc_has_function): Return true on musl.
14129
14130 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
14131
14132 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
14133
14134 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
14135
14136 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
14137 used for abnormal egdes.
14138
14139 2016-08-30 Jakub Jelinek <jakub@redhat.com>
14140
14141 PR tree-optimization/72866
14142 * tree-vect-patterns.c (search_type_for_mask): Turn into
14143 a small wrapper, move all code to ...
14144 (search_type_for_mask_1): ... this new function. Add caching
14145 and adjust recursive calls.
14146
14147 PR debug/77363
14148 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
14149 instead of lookup_type_die (type_main_variant (type)) even for array
14150 types.
14151
14152 PR middle-end/77377
14153 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
14154 constant pool reference return x instead of c.
14155
14156 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
14157
14158 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
14159 include MQ.
14160
14161 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14162
14163 * input.c
14164 (selftest::test_make_location_nonpure_range_endpoints): Fix
14165 header comment.
14166
14167 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14168
14169 * diagnostic-show-locus.c
14170 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
14171 function.
14172 (selftest::test_diagnostic_show_locus_one_liner): Call it.
14173 * input.c (get_pure_location): Move to libcpp/line-map.c.
14174 * input.h (get_pure_location): Convert decl to an inline function
14175 calling implementation in libcpp.
14176
14177 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
14178
14179 PR target/77403
14180 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
14181 template for intel asm dialect.
14182 (vec_set_hi_<mode><mask_name>): Ditto.
14183
14184 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14185
14186 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
14187 (selftest::fail_formatted): Likewise.
14188
14189 2016-08-29 David Malcolm <dmalcolm@redhat.com>
14190
14191 * input.c (make_location): Call get_start and get_finish
14192 on the endpoints to avoid storing packed ranges or ad-hoc
14193 ranges in them.
14194 (selftest::test_make_location_nonpure_range_endpoints): New function.
14195 (selftest::input_c_tests): Call it.
14196 * input.h (get_start): New inline function.
14197
14198 2016-08-29 Tom de Vries <tom@codesourcery.com>
14199
14200 PR c/77398
14201 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
14202 with assert.
14203
14204 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
14205
14206 * Makefile.in (gcov-iov.h): Add dummy recipe.
14207
14208 2016-08-29 Nathan Sidwell <nathan@acm.org>
14209
14210 * config/nvptx/nvptx.c: #include tree-vrp.h.
14211
14212 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
14213
14214 PR target/77324
14215 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
14216 HIGH+LO construct during reload.
14217
14218 2016-08-28 Tom de Vries <tom@codesourcery.com>
14219
14220 PR lto/70955
14221 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
14222 'sysv_abi va_list' attribute.
14223 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
14224 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
14225 attributes.
14226
14227 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14228
14229 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
14230 * emit-rtl.c (unshare_all_rtl_1): Adjust.
14231 (unshare_all_rtl_again): Likewise.
14232 * function.c (assign_stack_local_1): Likewise.
14233 (assign_stack_temp_for_type): Likewise.
14234
14235 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14236
14237 * cfgbuild.c (make_edges): Adjust.
14238 * cfgrtl.c (can_delete_label_p): Likewise.
14239 * dwarf2cfi.c (create_trace_edges): Likewise.
14240 * except.c (sjlj_emit_dispatch_table): Likewise.
14241 * function.h (struct expr_status): make x_forced_labels a vector.
14242 * jump.c (rebuild_jump_labels_1): Adjust.
14243 * reload1.c (set_initial_label_offsets): Likewise.
14244 * stmt.c (force_label_rtx): Likewise.
14245 (expand_label): Likewise.
14246
14247 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14248
14249 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
14250
14251 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
14252
14253 PR tree-optimization/71077
14254 PR tree-optimization/68542
14255 * fold-const.c (fold_relational_const): Fix folding of
14256 VECTOR_CST comparisons that have a scalar boolean result type.
14257 (selftest::test_vector_folding): New static function.
14258 (selftest::fold_const_c_tests): Call it.
14259
14260 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
14261
14262 * doc/extend.texi (SPU Built-in Functions): Remove stale
14263 references to material formerly at IBM and Sony.
14264
14265 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
14266
14267 PR target/77349
14268 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
14269
14270 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14271
14272 * diagnostic-show-locus.c
14273 (selftest::test_fixit_consolidation): New function.
14274 (selftest::diagnostic_show_locus_c_tests): Call it.
14275 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
14276 constructor based on source_range.
14277
14278 2016-08-26 David Malcolm <dmalcolm@redhat.com>
14279
14280 * diagnostic-color.c (color_dict): Add "fixit-insert" and
14281 "fixit-delete".
14282 (parse_gcc_colors): Update description of default GCC_COLORS.
14283 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
14284 (colorizer::set_fixit_insert): New method.
14285 (colorizer::set_fixit_delete): New method.
14286 (colorizer::get_color_by_name): New method.
14287 (colorizer::STATE_FIXIT_INSERT): New constant.
14288 (colorizer::STATE_FIXIT_DELETE): New constant.
14289 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
14290 fields in favor of new field "m_stop_color". Add fields
14291 "m_fixit_insert" and "m_fixit_delete".
14292 (colorizer::colorizer): Update for above changes. Replace
14293 colorize_start calls with calls to get_color_by_name.
14294 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
14295 STATE_FIXIT_DELETE. Update for field renamings.
14296 (colorizer::finish_state): Simplify by using m_stop_color,
14297 rather than multiple identical "*_ce" fields.
14298 (colorizer::get_color_by_name): New method.
14299 (layout::print_any_fixits): Print insertions and replacements
14300 using the "fixit-insert" color, and deletions using the
14301 "fixit-delete" color.
14302 * doc/invoke.texi (-fdiagnostics-color): Update description of
14303 default GCC_COLORS, and of the supported capabilities.
14304
14305 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
14306
14307 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
14308 current_function_static_stack_size variable with the static
14309 stack frame size of the current function when
14310 flag_stack_usage_info is enabled.
14311
14312 2016-08-26 Nathan Sidwell <nathan@acm.org>
14313
14314 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
14315 assignment inside if condition.
14316
14317 2016-08-26 Richard Biener <rguenther@suse.de>
14318
14319 PR tree-optimization/69047
14320 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
14321 extracts similar to what FRE does.
14322 (non_rewritable_mem_ref_base): Likewise.
14323
14324 2016-08-26 Joseph Myers <joseph@codesourcery.com>
14325
14326 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
14327 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
14328 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14329 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14330 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
14331 Likewise.
14332 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14333 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14334 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14335 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
14336 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
14337
14338 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14339
14340 PR target/70473
14341 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
14342 reservation duration to 15 cycles.
14343 (cortex_a8_vfp_macs): Likewise.
14344 (cortex_a8_vfp_macd): Likewise.
14345 (cortex_a8_vfp_divs): Likewise.
14346 (cortex_a8_vfp_divd): Likewise.
14347
14348 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14349
14350 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
14351 (aarch_macro_fusion_pair_p): Use above to avoid early return.
14352
14353 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14354 Martin Jambhor <mjambor@suse.cz>
14355
14356 * common.opt: New option -fipa-bit-cp.
14357 * doc/invoke.texi: Document -fipa-bit-cp.
14358 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
14359 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
14360 * tree-ssa-ccp.h: New header file.
14361 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
14362 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
14363 Replace all occurences of tree parameter by two new params: signop, int.
14364 (bit_value_unop_1): Change to bit_value_unop and export it.
14365 Replace all occurences of tree parameter by two new params: signop,
14366 int.
14367 (bit_value_binop): Change call from bit_value_binop_1 to
14368 bit_value_binop.
14369 (bit_value_assume_aligned): Likewise.
14370 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
14371 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
14372 to ccp_finalize.
14373 (ccp_finalize): Skip processing if val->mask == 0.
14374 * ipa-cp.c: Include tree-ssa-ccp.h
14375 (ipcp_bits_lattice): New class.
14376 (ipcp_param_lattice (bits_lattice): New member.
14377 (print_all_lattices): Call ipcp_bits_lattice::print.
14378 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
14379 (initialize_node_lattices): Likewise.
14380 (propagate_bits_accross_jump_function): New function.
14381 (propagate_constants_accross_call): Call
14382 propagate_bits_accross_jump_function.
14383 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
14384 (ipcp_store_bits_results): New function.
14385 (ipcp_driver): Call ipcp_store_bits_results.
14386 * ipa-prop.h (ipa_bits): New struct.
14387 (ipa_jump_func): Add new member bits of type ipa_bits.
14388 (ipa_param_descriptor): Change decl to decl_or_type.
14389 (ipa_get_param): Change decl to decl_or_type and assert on
14390 PARM_DECL.
14391 (ipa_get_type): New function.
14392 (ipcp_transformation_summary): New member bits.
14393 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
14394 (ipa_populate_param_decls): Likewise.
14395 (ipa_dump_param): Likewise.
14396 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
14397 function.
14398 (ipa_set_jf_unknown): Set ipa_bits::known to false.
14399 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
14400 propagation.
14401 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
14402 (ipa_write_jump_function): Add streaming for ipa_bits.
14403 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
14404 (write_ipcp_transformation_info): Add streaming for ipa_bits
14405 summary for ltrans.
14406 (read_ipcp_transfomration_info): Add support for reading streamed
14407 ipa_bits.
14408 (ipcp_update_bits): New function.
14409 (ipcp_transform_function): Call ipcp_update_bits.
14410
14411 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
14412
14413 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
14414 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
14415
14416 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
14417
14418 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
14419
14420 2016-08-25 Richard Biener <rguenther@suse.de>
14421
14422 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
14423 Only add locations in late dwarf.
14424 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
14425 (dwarf2out_early_finish): But do it here.
14426
14427 2016-08-24 Michael Collison <michael.collison@linaro.org>
14428 Michael Collison <michael.collison@arm.com>
14429
14430 * config/arm/arm-modes.def: Add new condition code mode CC_V
14431 to represent the overflow bit.
14432 * config/arm/arm.c (maybe_get_arm_condition_code):
14433 Add support for CC_Vmode.
14434 (arm_gen_unlikely_cbranch): New function to generate common
14435 rtl conditional branches for overflow patterns.
14436 * config/arm/arm-protos.h: Add prototype for
14437 arm_gen_unlikely_cbranch.
14438 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
14439 addsi3_compareV_upper): New patterns to support signed
14440 builtin overflow add operations.
14441 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
14442 New patterns to support unsigned builtin add overflow operations.
14443 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
14444 builtin overflow subtract operations,
14445 (usubv<mode>4): New patterns to support unsigned builtin subtract
14446 overflow operations.
14447 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
14448 to support builtin overflow negate operations.
14449
14450 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14451
14452 Revert
14453 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14454
14455 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14456 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14457 needed.
14458
14459 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14460
14461 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
14462 MULTILIB_OPTIONS should be used. Small wording fixes.
14463 * genmultilib: Memorize set of all option combinations in
14464 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
14465 found in MULTILIB_OPTIONS by checking if option set is listed in
14466 combination_space. Output new and existing error message to stderr.
14467
14468 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14469
14470 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
14471 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
14472 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
14473 (MULTILIB_REUSE): Remove reuse rules for option set including
14474 -mfpu=fp-armv8 and -mfpu=vfpv4
14475
14476 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
14477
14478 * config/arm/t-rtems: Add vfp multilib.
14479
14480 2016-08-23 Ian Lance Taylor <iant@golang.org>
14481
14482 * config/s390/s390.c (s390_asm_file_start): Call
14483 default_file_start.
14484
14485 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14486
14487 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
14488 initialization of all 0's to the 0 constant, instead of directly
14489 generating XOR. Add support for V4SImode vector initialization on
14490 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
14491 initialization. Change variables used in V4SFmode vector
14492 intialization. For V4SFmode vector splat on ISA 3.0, make sure
14493 any memory addresses are in index form. Add support for using
14494 VSPLTH/VSPLTB to initialize vector short and vector char vectors
14495 with all of the same element.
14496 (regno_or_subregno): New helper function to return a register
14497 number for either REG or SUBREG.
14498 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
14499 Use regno_or_subregno where possible.
14500 (rs6000_split_v4si_init_di_reg): New helper function to build up a
14501 DImode value from two SImode values in order to generate V4SImode
14502 vector initialization on 64-bit systems with direct move.
14503 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
14504 initialization.
14505 (rtx_is_swappable_p): V4SImode vector initialization insn is not
14506 swappable.
14507 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
14508 declaration.
14509 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
14510 attributes to initialize V8HImode and V16QImode vectors with the
14511 same element.
14512 (VSX_SPLAT_COUNT): Likewise.
14513 (VSX_SPLAT_SUFFIX): Likewise.
14514 (UNSPEC_VSX_VEC_INIT): New unspec.
14515 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
14516 Allow SFmode values to come from Altivec registers.
14517 (vsx_init_v4si): New insn/split for V4SImode vector initialization
14518 on 64-bit systems with direct move.
14519 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
14520 vector initializations, to allow V4SImode vector initializations
14521 on 64-bit systems with direct move.
14522 (vsx_splat_v4si): Likewise.
14523 (vsx_splat_v4si_di): Likewise.
14524 (vsx_splat_v4sf): Likewise.
14525 (vsx_splat_v4sf_internal): Likewise.
14526 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
14527 register classes.
14528 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
14529 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
14530 initializing V8HImode and V16QImode vectors with the same
14531 element.
14532 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
14533 optimization if -maltivec=be.
14534
14535 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
14536
14537 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
14538 attribute for alternatives 3 and 4.
14539
14540 2016-08-23 David Malcolm <dmalcolm@redhat.com>
14541
14542 * selftest.c (selftest::assert_str_contains): New function.
14543 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
14544 * selftest.h (selftest::assert_str_contains): New decl.
14545 (ASSERT_STR_CONTAINS): New macro.
14546
14547 2016-08-23 Richard Biener <rguenther@suse.de>
14548
14549 PR tree-optimization/77286
14550 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
14551 the CFG here.
14552 (vect_transform_loop): Split exit edges of loop and scalar
14553 loop if required and at the appropriate time.
14554
14555 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14556
14557 * explow.c (get_dynamic_stack_size): Take known alignment of stack
14558 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
14559 needed.
14560 Correct a typo in a comment.
14561
14562 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
14563
14564 * config/s390/s390.md ("*andc_split"): New splitter for and with
14565 complement.
14566
14567 2016-08-23 Richard Biener <rguenther@suse.de>
14568
14569 PR tree-optimization/27336
14570 * tree-vrp.c (infer_value_range): Handle stmts that can throw
14571 by looking for a non-EH edge.
14572 (process_assert_insertions_for): Likewise.
14573
14574 2016-08-23 Richard Biener <rguenther@suse.de>
14575
14576 PR middle-end/77305
14577 * statistics.c (statistics_counter_event): Robustify against
14578 NULL current_pass.
14579
14580 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14581
14582 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
14583 for targets amdfam10 and barcelona.
14584
14585 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
14586
14587 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
14588 (zero_extend<mode>di2): Ditto.
14589 (*zero_extend<mode>si2): Ditto.
14590 (*zero_extendqihi2): Ditto.
14591
14592 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14593
14594 PR middle-end/77269
14595 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
14596 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
14597
14598 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
14599
14600 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
14601 identical consecutive elements.
14602 [SSA_NAME]: Print the name's def stmt on its own line. When printing
14603 the node's def stmt, avoid printing an unwanted trailing newline by
14604 replacing the call to print_gimple_stmt() with its inlined body and
14605 adjusting it to not set pp_needs_newline and to call pp_flush()
14606 instead of pp_newline_and_flush().
14607
14608 2016-08-22 Joseph Myers <joseph@codesourcery.com>
14609
14610 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
14611 (float32_type_node, float64_type_node, float32x_type_node)
14612 (float128x_type_node): New macros.
14613 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
14614 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
14615 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
14616 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
14617 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
14618 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
14619 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
14620 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
14621 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
14622 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
14623 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
14624 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
14625 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
14626 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
14627 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
14628 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
14629 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
14630 (copysign, fabs, huge_val, inf, nan, nans): Use it.
14631 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
14632 and copysign.
14633 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
14634 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
14635 * doc/extend.texi (Other Builtins): Document these built-in
14636 functions.
14637 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
14638 for nan and nans.
14639
14640 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
14641
14642 * doc/install.texi (Binaries): www.opencsw.org now uses https.
14643
14644 2016-08-22 Richard Biener <rguenther@suse.de>
14645
14646 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
14647
14648 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
14649
14650 PR target/77270
14651 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
14652 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
14653 non-SSE2 athlons only, otherwise prefer SSE prefetches.
14654
14655 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14656
14657 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
14658 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
14659 (vrp_visit_switch_stmt): Likewise.
14660 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
14661 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
14662 (vrp_visit_stmt): Use extract_range_from_stmt.
14663 (vrp_visit_phi_node): Use extract_range_from_phi_node.
14664
14665 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14666
14667 * Makefile.in: Add tree-vrp.h to GTFILES.
14668 * gengtype.c (open_base_files): Add tree-vrp.h.
14669 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
14670 * builtins.c: Likewise.
14671 * fold-const.c: Likewise.
14672 * gimple-builder.c: Likewise.
14673 * gimple-laddress.c: Likewise.
14674 * hsa-gen.c: Likewise.
14675 * internal-fn.c: Likewise.
14676 * ssa.h: Likewise.
14677 * targhooks.c: Liewise,
14678 * tree-ssa-address.c: Likewise.
14679 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
14680 * tree-vrp.c (struct value_range): Move to tree-vrp.h
14681 * tree-vrp.h: New file.
14682
14683 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14684
14685 PR tree-optimization/61839
14686 * tree-vrp.c (two_valued_val_range_p): New.
14687 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
14688 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
14689 Also Convert VAR BINOP CST where VAR is two-valued to
14690 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
14691
14692 2016-08-19 David Malcolm <dmalcolm@redhat.com>
14693
14694 * diagnostic-show-locus.c
14695 (layout::annotation_line_showed_range_p): New method.
14696 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
14697 Reimplement case fixit_hint::REPLACE to cover removals, and
14698 replacements where the range of the replacement isn't one
14699 of the ranges in the rich_location.
14700 (test_one_liner_fixit_replace): Likewise.
14701 (selftest::test_one_liner_fixit_replace_non_equal_range): New
14702 function.
14703 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
14704 New function.
14705 (selftest::test_diagnostic_show_locus_one_liner): Call the new
14706 functions.
14707 * diagnostic.c (print_parseable_fixits): Remove case
14708 fixit_hint::REMOVE.
14709
14710 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
14711
14712 PR target/77270
14713 * config/i386/i386.c (ix86_option_override_internal): Remove
14714 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
14715 Enable SSE prefetch also for TARGET_PREFETCHWT1.
14716 Do not try to enable TARGET_PRFCHW ISA flag here.
14717 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
14718 Rewrite expander function body.
14719 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
14720
14721 2016-08-19 Joseph Myers <joseph@codesourcery.com>
14722
14723 PR c/32187
14724 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
14725 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
14726 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
14727 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
14728 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
14729 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
14730 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
14731 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
14732 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
14733 tree_index values.
14734 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
14735 macros.
14736 (struct floatn_type_info): New structure type.
14737 (floatn_nx_types): New variable declaration.
14738 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
14739 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
14740 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
14741 * tree.c (floatn_nx_types): New variable.
14742 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
14743 corresponding complex types.
14744 * target.def (floatn_mode): New hook.
14745 * targhooks.c: Include "real.h".
14746 (default_floatn_mode): New function.
14747 * targhooks.h (default_floatn_mode): New prototype.
14748 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
14749 types.
14750 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
14751 effective-target and dg-add-options keywords.
14752 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
14753 Document new effective-target keywords.
14754 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
14755 * doc/tm.texi: Regenerate.
14756 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
14757 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
14758 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
14759 18661-3.
14760 * real.h (struct real_format): Add field ieee_bits.
14761 * real.c (ieee_single_format, mips_single_format)
14762 (motorola_single_format, spu_single_format, ieee_double_format)
14763 (mips_double_format, motorola_double_format)
14764 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
14765 (ieee_extended_intel_128_format)
14766 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
14767 (mips_extended_format, ieee_quad_format, mips_quad_format)
14768 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
14769 (decimal_double_format, decimal_quad_format, ieee_half_format)
14770 (arm_half_format, real_internal_format: Initialize ieee_bits
14771 field.
14772 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
14773 float128_type_node. Set float80_type_node to float64x_type_node
14774 if appropriate and long_double_type_node not appropriate.
14775 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
14776 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
14777 Initialize ieee_bits field.
14778 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
14779 (rs6000_init_builtins): Set ieee128_float_type_node to
14780 float128_type_node.
14781 (rs6000_floatn_mode): New function.
14782
14783 2016-08-19 Jakub Jelinek <jakub@redhat.com>
14784
14785 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
14786 _rdseed64_step): Uglify argument names and/or local variable names
14787 in inline functions.
14788 * config/i386/rtmintrin.h (_xabort): Likewise.
14789 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
14790 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
14791 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
14792 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
14793 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
14794 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
14795 _mm_maskz_ternarylogic_epi32): Likewise.
14796 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
14797 __lwpins32, __lwpins64): Likewise.
14798 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
14799 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
14800 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
14801 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
14802 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
14803 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
14804 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
14805 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
14806 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
14807 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
14808 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
14809 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
14810 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
14811 _mm256_mask_i64gather_epi32): Likewise.
14812 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14813 * config/i386/ia32intrin.h (__writeeflags): Likewise.
14814 * config/i386/pkuintrin.h (_wrpkru): Likewise.
14815 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
14816 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
14817 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
14818 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
14819 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
14820 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
14821 _mm512_mask_prefetch_i64scatter_ps): Likewise.
14822 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
14823 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
14824 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
14825 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
14826 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
14827 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
14828 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
14829 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
14830
14831 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
14832 returning void.
14833 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
14834 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
14835 Likewise.
14836 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
14837 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
14838 function name.
14839 (_rdpkru_u32): Add space after function name.
14840
14841 * config/i386/t-i386 (i386-c.o): Don't depend on
14842 i386-builtin-types.inc.
14843 (i386.o): Depend on i386-builtin-types.inc.
14844
14845 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
14846
14847 PR target/77281
14848 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
14849 Use const_vec_duplicate to check for duplicated elements.
14850
14851 2016-08-19 Richard Biener <rguenther@suse.de>
14852
14853 PR tree-optimization/77290
14854 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14855 Fix flag_tree_parallelize_loops check.
14856
14857 2016-08-19 Richard Biener <rguenther@suse.de>
14858
14859 * match.pd (x | 0 -> x): Add.
14860
14861 2016-08-19 Richard Biener <rguenther@suse.de>
14862
14863 PR tree-optimization/77286
14864 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
14865 Deal with virtual PHIs being out-of-order.
14866
14867 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14868
14869 * doc/invoke.texi (fverbose-asm): Note that source code lines
14870 are emitted, and provide an example.
14871 * final.c (asm_show_source): New function.
14872 (final_scan_insn): Call asm_show_source.
14873
14874 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14875
14876 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
14877 param with diagnostic_kind.
14878 (class colorizer): Similarly replace field m_diagnostic with
14879 m_diagnostic_kind.
14880 (colorizer::colorizer): Replace diagnostic
14881 param with diagnostic_kind.
14882 (colorizer::begin_state): Update for above field change.
14883 (layout::layout): Replace diagnostic param with rich_location *
14884 and diagnostic_kind.
14885 (diagnostic_show_locus): Replace diagnostic param with richloc
14886 and diagnostic_kind.
14887 (class selftest::test_diagnostic_context): New class.
14888 (selftest::test_diagnostic_show_locus_unknown_location): New
14889 function.
14890 (selftest::test_one_liner_simple_caret): New function.
14891 (selftest::test_one_liner_caret_and_range): New function.
14892 (selftest::test_one_liner_multiple_carets_and_ranges): New
14893 function.
14894 (selftest::test_one_liner_fixit_remove): New function.
14895 (selftest::test_one_liner_fixit_replace): New function.
14896 (selftest::test_diagnostic_show_locus_one_liner): New function.
14897 (selftest::diagnostic_show_locus_c_tests): Call the new test
14898 functions.
14899 * diagnostic.c (diagnostic_initialize): Initialize
14900 colorize_source_p, show_ruler_p and parseable_fixits_p.
14901 (default_diagnostic_finalizer): Update for change to
14902 diagnostic_show_locus.
14903 (diagnostic_append_note): Likewise.
14904 * diagnostic.h (diagnostic_show_locus): Replace
14905 const diagnostic_info * param with location * and diagnostic_t.
14906
14907 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14908
14909 * input.c (saved_line_table): New global.
14910 (class selftest::temp_line_table): Rename to line_table_test and
14911 move declaration to selftest.h, and drop field m_old_line_table.
14912 (selftest::temp_line_table::temp_line_table): Rename ctor to...
14913 (selftest::line_table_test::line_table_test): ...this. Add a
14914 default ctor. Store current value of line_table within
14915 saved_line_table.
14916 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
14917 (selftest::line_table_test::~line_table_test): ...this, and
14918 restore line_table from the saved_line_table, rather than
14919 m_old_line_table.
14920 (selftest::test_accessing_ordinary_linemaps): Update for above
14921 renaming.
14922 (selftest::test_lexer): Likewise.
14923 (struct selftest::lexer_test): Likewise.
14924 (selftest::lexer_test::lexer_test): Likewise.
14925 (selftest::input_c_tests): Move the looping over test cases from
14926 here into...
14927 (selftest::for_each_line_table_case): New function.
14928 * input.h (saved_line_table): New decl.
14929 * selftest.h (struct selftest::line_table_case): New forward decl.
14930 (class selftest::line_table_test): New class, moved here from
14931 selftest::temp_line_table in input.c, and renamed.
14932 (selftest::for_each_line_table_case): New decl.
14933
14934 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
14935
14936 PR target/72839
14937 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
14938
14939 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
14940
14941 PR middle-end/70895
14942 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
14943 enclosing parallel construct for reduction variables on OpenACC loop
14944 directives.
14945
14946 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
14947
14948 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
14949 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
14950 -gdwarf-3.
14951 (function_to_dwarf_procedure): Update comment.
14952
14953 2016-08-18 David Malcolm <dmalcolm@redhat.com>
14954
14955 * input.c (diagnostics_file_cache_forcibly_evict_file): New
14956 function.
14957 * input.h (diagnostics_file_cache_forcibly_evict_file): New
14958 declaration.
14959 * selftest.c (selftest::temp_source_file::~temp_source_file):
14960 Evict m_filename from the diagnostic file cache.
14961
14962 2016-08-18 Richard Biener <rguenther@suse.de>
14963
14964 * tree-pass.h (make_pass_materialize_all_clones): Declare.
14965 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
14966 make_pass_materialize_all_clones): New simple IPA pass encapsulating
14967 clone materialization.
14968 * passes.def (all_late_ipa_passes): Start with
14969 pass_materialize_all_clones.
14970 * cgraphunit.c (symbol_table::compile): Remove call to
14971 materialize_all_clones.
14972 * tree-into-ssa.c: Include statistics.h.
14973 (update_ssa): Count number of times we do incremental/rewrite
14974 SSA update.
14975
14976 2016-08-18 Richard Biener <rguenther@suse.de>
14977
14978 PR tree-optimization/77282
14979 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14980 When doing auto-parallelizing also prevent use of PHIs that
14981 carry dependences across loop backedges.
14982
14983 2016-08-18 Tamar Christina <tamar.christina@arm.com>
14984 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14985
14986 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
14987
14988 2016-08-18 Richard Biener <rguenther@suse.de>
14989
14990 * ssa-iterators.h (ssa_vuse_operand): New inline.
14991 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
14992 (predicate_all_scalar_phis): Use remove_phi_node to remove
14993 phi nodes predicated. Delay removing virtual PHIs.
14994 (predicate_mem_writes): Update virtual operands.
14995 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
14996 (tree_if_conversion): Do not rewrite virtual SSA form.
14997 * tree-phinodes.c (release_phi_node): Make static.
14998 * tree-phinodes.h (release_phi_node): Remove.
14999
15000 2016-08-18 Jakub Jelinek <jakub@redhat.com>
15001
15002 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
15003 codes that appear in bdesc_* arrays, instead include i386-builtin.def
15004 twice to define those.
15005 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
15006 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
15007 bdesc_multi_arg): Define by including i386-builtin.def the third time.
15008 * config/i386/i386-builtin.def: New file.
15009
15010 2016-08-17 David Malcolm <dmalcolm@redhat.com>
15011
15012 * input.c (get_source_range_for_char): Rename to...
15013 (selftest::get_source_range_for_char): ...this, and move within
15014 the #if CHECKING_P guard.
15015 (get_num_source_ranges_for_substring): Rename to...
15016 (selftest::get_num_source_ranges_for_substring): ...this, move
15017 within the #if CHECKING_P guard, and make static.
15018 (selftest::assert_num_substring_ranges): Initialize
15019 actual_num_ranges.
15020
15021 2016-08-18 Alan Modra <amodra@gmail.com>
15022
15023 PR rtl-optimization/72771
15024 * reload.c (find_reloads): Don't assume that a subreg mem is OK
15025 when find_reloads_toplev returns address_reloaded==-1.
15026 (alternative_allows_const_pool_ref): Update comment.
15027
15028 2015-08-17 Alan Hayward <alan.hayward@arm.com>
15029
15030 PR tree-optimization/71752
15031 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
15032 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
15033
15034 2016-08-17 Jakub Jelinek <jakub@redhat.com>
15035
15036 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
15037 instead of testing ECF_NORETURN bit in gimple_call_flags.
15038 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
15039 * predict.c (tree_bb_level_predictions): Likewise.
15040 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
15041
15042 PR middle-end/77259
15043 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
15044 turning a call into __builtin_unreachable-like noreturn call, adjust
15045 gimple_call_set_fntype.
15046 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
15047 gimple_call_fntype has void return type.
15048
15049 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
15050
15051 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
15052 maybe_lookup_decl, to handle nested acc loop directives.
15053
15054 2016-08-17 Richard Biener <rguenther@suse.de>
15055
15056 PR tree-optimization/76490
15057 * tree-vrp.c (update_value_range): Preserve overflow infinities
15058 when intersecting with ranges from get_range_info.
15059 (operand_less_p): Handle overflow infinities correctly.
15060 (value_range_constant_singleton): Use vrp_operand_equal_p
15061 to handle overflow max/min correctly.
15062 (vrp_valueize): Likewise.
15063 (union_ranges): Likewise.
15064 (intersect_ranges): Likewise.
15065 (vrp_visit_phi_node): Improve iteration limitation to only
15066 apply when we'll possibly re-visit the PHI via a changed argument
15067 on the backedge.
15068
15069 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
15070
15071 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
15072 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
15073 rather than those that should not be built.
15074
15075 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
15076
15077 PR target/66488
15078 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
15079
15080 2016-08-17 Richard Biener <rguenther@suse.de>
15081
15082 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
15083 (verify_vssa): New function verifying virtual SSA form.
15084 (verify_ssa): Call it.
15085 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
15086 Do not apply loop-closed SSA handling to virtuals.
15087 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
15088 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
15089 when rewriting their symbol.
15090 (prepare_def_site_for): Likewise.
15091 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
15092 operands of moved stmts.
15093
15094 2016-08-17 Richard Biener <rguenther@suse.de>
15095
15096 PR tree-optimization/23855
15097 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
15098 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
15099 find guards to hoist. Do not update SSA form but rewrite virtuals
15100 into loop closed SSA.
15101 (find_loop_guard): Adjust to skip already hoisted guards. Do
15102 not mark virtuals for renaming or update SSA form.
15103
15104 2016-08-17 Martin Liska <mliska@suse.cz>
15105
15106 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
15107 a LONG_LONG_TYPE_SIZE comparison.
15108 * gcov-io.h: Remove macro definitions.
15109 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
15110 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
15111 comparison.
15112
15113 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15114
15115 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
15116 that builtins not mentioned in bdesc_* arrays come first, then
15117 the ones mentioned in bdesc_* arrays in the order they appear in
15118 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
15119 IX86_BUILTIN__BDESC_*_LAST enumerator.
15120 (bdesc_mpx): Fix up a comment typo.
15121 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
15122 __builtin_ia32_vpcomneu[bwdq] builtins.
15123 (BDESC_VERIFY, BDESC_VERIFYS): Define.
15124 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
15125 enum ix86_builtins ordering.
15126 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
15127 for direct bdesc_* array member access instead of searching all the
15128 arrays until an fcode match is found.
15129
15130 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
15131
15132 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
15133 pattern as define_insn_and_split. Split insn before reload to
15134 ashl<mode>3_1.
15135 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
15136 <shift_insn><mode>3_1.
15137 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
15138 <rotate_insn><mode>3_1.
15139
15140 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15141
15142 PR c/72857
15143 * input.c (get_source_range_for_substring): Rename to...
15144 (get_source_location_for_substring): ...this, adding param
15145 "caret_idx", and converting output param from source_range * to
15146 location_t *.
15147 (get_source_range_for_char): New function.
15148 (get_num_source_ranges_for_substring): Update comment to reflect
15149 above renaming.
15150 (assert_char_at_range): Update to use get_source_range_for_char
15151 rather than get_source_range_for_substring.
15152 (test_lexer_string_locations_concatenation_2): Likewise.
15153 * substring-locations.h (get_source_range_for_substring): Rename
15154 to...
15155 (get_source_location_for_substring): ...this, and adding param
15156 "caret_idx", and converting output param from source_range * to
15157 location_t *.
15158
15159 2016-08-16 David Malcolm <dmalcolm@redhat.com>
15160
15161 * input.c (class selftest::temp_source_file): Move to
15162 selftest.h.
15163 (selftest::temp_source_file::temp_source_file): Move to
15164 selftest.c.
15165 (selftest::temp_source_file::~temp_source_file): Likewise.
15166 * selftest.c (selftest::temp_source_file::temp_source_file): Move
15167 here from input.c.
15168 (selftest::temp_source_file::~temp_source_file): Likewise.
15169 * selftest.h (class selftest::temp_source_file): Move here from
15170 input.c
15171
15172 2016-08-16 Jakub Jelinek <jakub@redhat.com>
15173
15174 PR target/71910
15175 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
15176 inlining, add cgraph edge for the added __builtin_unreachable call.
15177
15178 PR middle-end/67485
15179 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
15180 only cast it to SHWI for the final comparison.
15181
15182 2016-08-16 Martin Liska <mliska@suse.cz>
15183
15184 PR gcov-profile/36412
15185 * doc/gcov.texi: Document --hash-filenames(-x).
15186 * gcov.c (print_usage): Add the option.
15187 (process_args): Process the option, sort options alphabetically.
15188 (md5sum_to_hex): New function.
15189 (make_gcov_file_name): Do the md5sum and append it to a
15190 filename.
15191
15192 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15193
15194 PR tree-optimization/69848
15195 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
15196 and swtich operands to avoid additional NOT instruction.
15197 (vcond<v_cmp_mixed><mode>): Ditto.
15198 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15199
15200 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
15201
15202 * doc/install.texi (*-*-solaris2*): Adjust latest change.
15203
15204 2016-08-16 Richard Biener <rguenther@suse.de>
15205
15206 PR tree-optimization/76783
15207 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
15208 BB visited flags at start.
15209
15210 2016-08-16 Bin Cheng <bin.cheng@arm.com>
15211
15212 PR tree-optimization/72817
15213 PR tree-optimization/73450
15214 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
15215 multiple_of_p for adjusted IV.base.
15216
15217 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
15218
15219 PR target/72867
15220 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
15221 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
15222 for !flag_finite_math_only or flag_signed_zeros.
15223 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
15224 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
15225 depend on flag_finite_math_only.
15226 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
15227 New insn pattern.
15228 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
15229 (*ieee_smin<mode>3): Ditto.
15230 (*ieee_smax<mode>3): Ditto.
15231 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
15232 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
15233 flag_signed_zeros.
15234 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
15235 depend on flag_finite_math_only.
15236 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
15237 (*mmx_<code>v2sf3): Remove.
15238 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
15239 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
15240 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
15241
15242 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
15243
15244 PR rtl-optimization/73650
15245 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
15246 it is not a simple move.
15247
15248 2016-08-15 Martin Liska <mliska@suse.cz>
15249
15250 PR driver/72765
15251 * gcc.c (do_spec_1): Call save_string with the right size.
15252 (save_string): Do an assert about string we copy.
15253
15254 2016-08-15 Richard Biener <rguenther@suse.de>
15255
15256 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
15257 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
15258 TV_MACH_DEP.
15259 (pass_data_stv): Likewise.
15260
15261 2016-08-15 Richard Biener <rguenther@suse.de>
15262
15263 PR tree-optimization/73434
15264 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
15265 TBAA info on the base when forwarding a non-invariant address.
15266
15267 2016-08-15 Jakub Jelinek <jakub@redhat.com>
15268
15269 * dwarf2out.c (struct checksum_attributes): Add
15270 at_string_length_bit_size and at_string_length_byte_size fields.
15271 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
15272 and DW_AT_string_length_byte_size.
15273 (die_checksum_ordered): Handle at_string_length_bit_size and
15274 at_string_length_byte_size.
15275 (gen_array_type_die): For dwarf_version >= 5 emit
15276 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15277 (adjust_string_types): For dwarf_version >= 5 remove
15278 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
15279 (resolve_addr): Likewise.
15280
15281 PR debug/71906
15282 * dwarf2out.c (string_types): New variable.
15283 (gen_array_type_die): Change early_dwarf handling of
15284 DW_AT_string_length, create DW_OP_call4 referencing the
15285 length var temporarily. Handle parameters that are pointers
15286 to string length.
15287 (adjust_string_types): New function.
15288 (gen_subprogram_die): Temporarily set string_types to local var,
15289 call adjust_string_types if needed.
15290 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
15291 New functions.
15292 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
15293
15294 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
15295
15296 * doc/install.texi (*-*-solaris2*): Fix version number and document
15297 requirement on GNU make for building libjava with the Solaris linker.
15298
15299 2016-08-15 Martin Liska <mliska@suse.cz>
15300 Jakub Jelinek <jakub@redhat.com>
15301
15302 PR tree-optimization/72824
15303 * tree-loop-distribution.c (const_with_all_bytes_same)
15304 <case VECTOR_CST>: Fix a typo.
15305
15306 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
15307
15308 PR target/76342
15309 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
15310 Renamed from _mm512_undefined_si512.
15311 (_mm_undefined_si512): New definition.
15312
15313 2016-08-13 Richard Biener <rguenther@suse.de>
15314
15315 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
15316 into PHIs and update the lattice for its def.
15317
15318 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15319
15320 PR c/71512
15321 * ubsan.c (instrument_si_overflow): Pass true instead of false
15322 to gsi_replace.
15323 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
15324 of bbs. Return TODO_cleanup_cfg if any returned true.
15325
15326 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15327
15328 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
15329 ISA 3.0 MTVSRDD instruction.
15330 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
15331 vecperm.
15332
15333 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
15334
15335 PR tree-optimization/71083
15336 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
15337 bitfield access when possible.
15338
15339 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
15340
15341 PR middle-end/71654
15342 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
15343 sign-changing cast from a shorter unsigned type to a wider
15344 signed type.
15345
15346 2016-08-12 Jakub Jelinek <jakub@redhat.com>
15347
15348 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
15349 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
15350 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
15351
15352 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15353
15354 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
15355 Correct costs for vec_construct.
15356
15357 2016-08-12 Bin Cheng <bin.cheng@arm.com>
15358
15359 PR tree-optimization/69848
15360 * tree-vectorizer.h (enum vect_def_type): New condition reduction
15361 type CONST_COND_REDUCTION.
15362 * tree-vect-loop.c (vectorizable_reduction): Support new condition
15363 reudction type CONST_COND_REDUCTION.
15364
15365 2016-08-12 Richard Biener <rguenther@suse.de>
15366
15367 PR tree-optimization/57326
15368 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
15369 returning an SSA name.
15370 (phi_translate_1): When fully_constant_expression returns a NAME
15371 make sure we have a leader for it.
15372
15373 2016-08-12 Martin Liska <mliska@suse.cz>
15374 Adam Fineman <afineman@afineman.com>
15375
15376 * gcov.c (process_file): Create .gcov file when .gcda
15377 file is missing.
15378
15379 2016-08-12 Marek Polacek <polacek@redhat.com>
15380
15381 PR c/7652
15382 * alias.c (find_base_value): Adjust fall through comment.
15383 * cfgexpand.c (expand_debug_expr): Likewise.
15384 * combine.c (find_split_point): Likewise.
15385 (expand_compound_operation): Likewise. Add FALLTHRU.
15386 (make_compound_operation): Adjust fall through comment.
15387 (canon_reg_for_combine): Add FALLTHRU.
15388 (force_to_mode): Adjust fall through comment.
15389 (simplify_shift_const_1): Likewise.
15390 (simplify_comparison): Likewise.
15391 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
15392 FALLTHRU.
15393 * config/aarch64/predicates.md: Likewise.
15394 * config/i386/i386.c (function_arg_advance_32): Likewise.
15395 (ix86_gimplify_va_arg): Likewise.
15396 (print_reg): Likewise.
15397 (ix86_print_operand): Likewise.
15398 (ix86_build_const_vector): Likewise.
15399 (ix86_expand_branch): Likewise.
15400 (ix86_sched_init_global): Adjust fall through comment.
15401 (ix86_expand_args_builtin): Add FALLTHRU.
15402 (ix86_expand_builtin): Likewise.
15403 (ix86_expand_vector_init_one_var): Likewise.
15404 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
15405 (rs6000_adjust_cost): Likewise.
15406 (insn_must_be_first_in_group): Likewise.
15407 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
15408 * dbxout.c (dbxout_symbol): Adjust fall through comment.
15409 * df-scan.c (df_uses_record): Likewise.
15410 * dojump.c (do_jump): Add FALLTHRU.
15411 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
15412 comment.
15413 (resolve_args_picking_1): Adjust fall through comment.
15414 (loc_list_from_tree_1): Likewise.
15415 * expmed.c (make_tree): Likewise.
15416 * expr.c (expand_expr_real_2): Add FALLTHRU.
15417 (expand_expr_real_1): Likewise. Adjust fall through comment.
15418 * fold-const.c (const_binop): Adjust fall through comment.
15419 (fold_truth_not_expr): Likewise.
15420 (fold_cond_expr_with_comparison): Add FALLTHRU.
15421 (fold_binary_loc): Likewise.
15422 (contains_label_1): Adjust fall through comment.
15423 (multiple_of_p): Likewise.
15424 * gcov-tool.c (process_args): Add FALLTHRU.
15425 * genattrtab.c (check_attr_test): Likewise.
15426 (write_test_expr): Likewise.
15427 * genconfig.c (walk_insn_part): Likewise.
15428 * genpreds.c (validate_exp): Adjust fall through comment.
15429 (needs_variable): Likewise.
15430 * gensupport.c (get_alternatives_number): Add FALLTHRU.
15431 (subst_dup): Likewise.
15432 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
15433 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
15434 (gimplify_scan_omp_clauses): Add FALLTHRU.
15435 (goa_stabilize_expr): Likewise.
15436 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
15437 through comment.
15438 * hsa-gen.c (get_address_from_value): Likewise.
15439 * ipa-icf.c (sem_function::hash_stmt): Likewise.
15440 * ira.c (ira_setup_alts): Add FALLTHRU.
15441 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
15442 comment.
15443 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
15444 * opts.c (common_handle_option): Likewise.
15445 * read-rtl.c (read_rtx_code): Likewise.
15446 * real.c (round_for_format): Likewise.
15447 * recog.c (asm_operand_ok): Likewise.
15448 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
15449 * reload1.c (set_label_offsets): Likewise.
15450 (eliminate_regs_1): Likewise.
15451 (reload_reg_reaches_end_p): Likewise.
15452 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
15453 (rtx_cost): Likewise.
15454 * sched-rgn.c (is_exception_free): Likewise.
15455 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
15456 * stor-layout.c (int_mode_for_mode): Likewise.
15457 * toplev.c (print_to_asm_out_file): Likewise.
15458 (print_to_stderr): Likewise.
15459 * tree-cfg.c (gimple_verify_flow_info): Likewise.
15460 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
15461 (chrec_fold_multiply): Likewise.
15462 (evolution_function_is_invariant_rec_p): Likewise.
15463 (for_each_scev_op): Likewise.
15464 * tree-data-ref.c (siv_subscript_p): Likewise.
15465 (get_references_in_stmt): Likewise.
15466 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
15467 (substitute_in_expr): Likewise.
15468 (type_cache_hasher::equal): Likewise.
15469 (walk_type_fields): Likewise.
15470 * var-tracking.c (adjust_mems): Add FALLTHRU.
15471 (set_dv_changed): Adjust fall through comment.
15472 * varasm.c (default_function_section): Add FALLTHRU.
15473
15474 2016-08-12 Marek Polacek <polacek@redhat.com>
15475
15476 PR c/7652
15477 * tree-complex.c (expand_complex_division): Add missing break.
15478
15479 2016-08-12 Richard Biener <rguenther@suse.de>
15480
15481 * passes.c (execute_todo): Do not push/pop TV_TODO.
15482 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
15483 (execute_one_pass): Likewise.
15484 * common.opt (ftime-report-details): New switch.
15485 * doc/invoke.texi (ftime-report-details): Document.
15486 * timevar.h (timer::print_row): Adjust signature.
15487 (timer::all_zero): New static helper.
15488 (timer::child_map_t): New typedef.
15489 (timer::time_var_def): Add children field.
15490 * timevar.c (timer::named_items::print): Adjust.
15491 (timer::~timer): Free timevar recorded children.
15492 (timer::pop_internal): When -ftime-report-details record
15493 time spent in sub-timevars.
15494 (timer::print_row): Adjust.
15495 (timer::print): Print sub-timevar stats, use all_zero.
15496 * timevar.def (TV_TODO): Remove.
15497
15498 2016-08-12 Richard Biener <rguenther@suse.de>
15499
15500 PR tree-optimization/72851
15501 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
15502 worklists to use bitmaps indexed in execution order.
15503 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
15504 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
15505 (cfg_blocks): Make a bitmap.
15506 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
15507 New globals.
15508 (cfg_blocks_empty_p): Adjust.
15509 (cfg_blocks_add): Likewise.
15510 (cfg_blocks_get): Likewise.
15511 (add_ssa_edge): Likewise.
15512 (add_control_edge): Likewise.
15513 (simulate_stmt): Likewise.
15514 (process_ssa_edge_worklist): Likewise.
15515 (simulate_block): Likewise.
15516 (ssa_prop_init): Compute PRE order and stmt UIDs.
15517 (ssa_prop_fini): Adjust.
15518 (ssa_propagate): Adjust.
15519
15520 2016-08-12 Richard Biener <rguenther@suse.de>
15521
15522 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
15523 the currently executable edges have fixed ranges. Always
15524 go through update_value_range.
15525
15526 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
15527
15528 PR debug/63240
15529 * langhooks-def.h
15530 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
15531 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
15532 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
15533 (LANG_HOOKS_DECLS): Add it.
15534 * langhooks.h (struct lang_hooks_for_decls): Add
15535 function_decl_defaulted. Const_tree-ify
15536 function_decl_explicit_p and function_decl_deleted_p.
15537 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
15538 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
15539 also at strict DWARF v5.
15540
15541 PR debug/55641
15542 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
15543 TYPE_QUAL_CONST in reference-typed decls.
15544
15545 PR debug/49366
15546 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
15547 in DW_OP_pieces, just enough to handle pointers to member
15548 functions.
15549 (gen_remaining_tmpl_value_param_die_attribute): Use a location
15550 expression on DWARFv5 if a constant value doesn't work.
15551
15552 2016-08-11 David Malcolm <dmalcolm@redhat.com>
15553
15554 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
15555 * selftest.c (selftest::test_assertions): New function.
15556 (selftest::selftest_c_tests): New function.
15557 * selftest.h (selftest::selftest_c_tests): New declaration.
15558
15559 2016-08-11 Richard Biener <rguenther@suse.de>
15560 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15561
15562 PR rtl-optimization/72855
15563 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
15564
15565 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15566
15567 PR target/72863
15568 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
15569 (vsx_store_<mode>): Likewise.
15570
15571 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15572
15573 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
15574 TImode CONST_WIDE_INT store.
15575 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
15576
15577 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
15578
15579 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
15580 mode if unaligned SSE load and store are optimal.
15581
15582 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
15583
15584 PR tree-optimization/71083
15585 * tree-predcom.c (ref_at_iteration): Correctly align the
15586 reference type.
15587
15588 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15589
15590 * config/s390/s390-builtin-types.def: Add INT128 types.
15591 * config/s390/s390-builtins.def: Add INT128 variants for the add
15592 sub low-level builtins dealing with TImode.
15593 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
15594 via subreg when expanding a builtin.
15595 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
15596 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
15597 Fix comment.
15598 * config/s390/vecintrin.h: Adjust builtin names accordingly.
15599 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
15600 ("vec_addc<mode>", "vec_addc_u128"): Merge to
15601 "vacc<bhfgq>_<mode>".
15602 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
15603 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
15604 ("vec_subc<mode>", "vec_subc_u128"): Merge to
15605 "vscbi<bhfgq>_<mode>".
15606 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
15607 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
15608
15609 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15610
15611 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
15612
15613 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15614
15615 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
15616 unused declaration.
15617 (vcond<v_cmp_mixed><mode>): Ditto.
15618 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
15619
15620 2016-08-11 Bin Cheng <bin.cheng@arm.com>
15621
15622 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
15623 variable explicitly, also assert on it before use.
15624
15625 2016-08-11 Richard Biener <rguenther@suse.de>
15626
15627 PR tree-optimization/72772
15628 * cfgloopmanip.c (create_preheader): Use split_edge if there
15629 is a single loop entry, avoiding degenerate PHIs.
15630
15631 2016-08-11 Richard Biener <rguenther@suse.de>
15632
15633 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
15634 unconditional TODO_cleanup_cfg.
15635 (pass_thread_jumps::execute): Initialize loops, perform a CFG
15636 cleanup only if we threaded a jump.
15637
15638 2016-08-11 Alan Modra <amodra@gmail.com>
15639
15640 PR target/71680
15641 * lra-constraints.c (simplify_operand_subreg): Allow subreg
15642 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
15643 slow. Emit two reloads for slow mem case, first loading in
15644 fast innermode, then converting to required mode.
15645
15646 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
15647
15648 * config/rs6000/altivec.h (vec_extract_exp): New macro.
15649 (vec_extract_sig): New macro.
15650 (vec_insert_exp): New macro.
15651 (vec_test_data_class): New macro.
15652 (scalar_extract_exp): New macro.
15653 (scalar_extract_sig): New macro.
15654 (scalar_insert_exp): New macro.
15655 (scalar_test_data_class): New macro.
15656 (scalar_test_neg): New macro.
15657 (scalar_cmp_exp_gt): New macro.
15658 (scalar_cmp_exp_lt): New macro.
15659 (scalar_cmp_exp_eq): New macro.
15660 (scalar_cmp_exp_unordered): New macro.
15661 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
15662 to enforce constraint that operand is a 7-bit unsigned literal.
15663 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
15664 for power9 built-ins.
15665 (BU_P9V_VSX_2): Likewise.
15666 (BU_P9V_64BIT_VSX_2): Likewise.
15667 (VSEEDP): Add scalar extract exponent support.
15668 (VSEESP): Add scalar extract signature support.
15669 (VSTDCNDP): Add scalar test negative support.
15670 (VSTDCNSP): Likewise.
15671 (VSIEDP): Add scalar insert exponent support.
15672 (VSCEDPGT): Add scalar compare exponent greater than support.
15673 (VSCEDPLT): Add scalar compare exponent less than support.
15674 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
15675 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
15676 (VSTDCDP): Add scalar test data class support.
15677 (VSTDCSP): Likewise.
15678 (VSEEDP): Add overload support for scalar extract exponent
15679 operation.
15680 (VSESDP): Add overload support for scalar extract signature
15681 operation.
15682 (VSTDCN): Add overload support for scalar test negative
15683 operation.
15684 (VSTDCNDP): Add overload support for scalar test negative
15685 operation.
15686 (VSTDCNSP): Add overload support for scalar test negative
15687 operation.
15688 (VSIEDP): Add overload support for scalar insert exponent
15689 operation.
15690 (VSTDC): Add overload support for scalar test data class
15691 operation.
15692 (VSTDCDP): Add overload support for scalar test data class
15693 operation.
15694 (VSTDCSP): Add overload support for scalar test data class
15695 opreation.
15696 (VSCEDPGT): Add overload support for scalar compare exponent
15697 greater than operation.
15698 (VSCEDPLT): Add overload support for scalar compare exponent
15699 less than operation.
15700 (VSCEDPEQ): Add overload support for scalar compare exponent
15701 test-for-equality operation.
15702 (VSCEDPUO): Add overload support for scalar compare exponent
15703 test-for-unordered operation.
15704 (VEEDP): Add vector extract exponent support.
15705 (VEESP): Likewise.
15706 (VESDP): Add vector extract significand support.
15707 (VESSP): Likewise.
15708 (VIEDP): Add vector insert exponent support.
15709 (VIESP): Likewise.
15710 (VTDCDP): Add vector test data class support.
15711 (VTDCSP): Likewise.
15712 (VES): Add overload support for vector extract significand operation.
15713 (VESDP): Likewise.
15714 (VESSP): Likewise
15715 (VEE): Add overload support for vector extract exponent operation.
15716 (VEEDP): Likewise.
15717 (VEESP): Likewise.
15718 (VTDC): Add overload support for vector test data class operation.
15719 (VTDCDP): Likewise.
15720 (VTDCSP): Likewise.
15721 (VIE): Add overload support for vector insert exponent operation.
15722 (VIEDP): Likewise.
15723 (VIESP): Likewise.
15724 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15725 overloaded binary floating point functions.
15726 (altivec_resolve_overloaded_builtin): Improve error messages to
15727 distinguish between functions not supported in the current
15728 compiler configuration and functions that were invoked with an
15729 invalid parameter combination, and include the built-in function
15730 name in both error messages.
15731 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
15732 New prototype.
15733 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
15734 function.
15735 (rs6000_expand_binop_builtin): Add check to enforce that argument
15736 2 of the test data class operations is a 7-bit unsigned literal.
15737 (rs6000_invalid_builtin): Add code to issue an error message if a
15738 built-in function that requires the power9_vector and -m32
15739 command-line options is compiled without these options.
15740 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
15741 (UNSPEC_VSX_SXSIGDP): New value.
15742 (UNSPEC_VSX_SXSIGPDP): New value.
15743 (UNSPEC_VSX_SIEXPDP): New value.
15744 (UNSPEC_VSX_SCMPEXPDP): New value.
15745 (UNSPEC_VSX_STSTDC): New value.
15746 (UNSPEC_VSX_VXEXP): New value.
15747 (UNSPEC_VSX_VXSIG): New value.
15748 (UNSPEC_VSX_VIEXP): New value.
15749 (UNSPEC_VSX_VTSTDC): New value.
15750 (xsxexpdp): New insn for scalar extract exponent.
15751 (xsxsigdp): New insn for scalar extract significand.
15752 (xsiexpdp): New insn for scalar insert exponent.
15753 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
15754 (*xscmpexpdp): New insn for scalar compare exponents.
15755 (xststdc<Fvsx): New expansion for both single- and
15756 double-precision scalar test data class operations.
15757 (xststdcneg<Fvsx>): New expansion for both single- and
15758 double-precision scalar test for negative value operations.
15759 (*xststdc<Fvsx>): New insn for scalar test data class
15760 operation.
15761 (xvxexp<VSs>): New insn for single- and double-precision
15762 vector extract exponent operation.
15763 (xvxsig<VSs>): New insn for single- and double-precision
15764 vector extract significand operation.
15765 (xviexp<VSs>): New insn for single- and double-precision
15766 vector insert exponent operation.
15767 (xvtstdc<VSs>): New insn for single- and double-precision
15768 vector test data class operation.
15769 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15770 built-in functions to represent the Power9 binary floating-point
15771 support instructions.
15772
15773 2016-08-10 bin cheng <bin.cheng@arm.com>
15774
15775 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
15776
15777 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15778 Renlin Li <renlin.li@arm.com>
15779 Bin Cheng <bin.cheng@arm.com>
15780
15781 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
15782 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
15783 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
15784 (aarch64_vcond_internal<mode><mode>): Delete pattern.
15785 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
15786 (vcond<v_cmp_result><mode>): Ditto.
15787 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
15788 (vcondu<mode><mode>): Ditto.
15789 (vcond<v_cmp_mixed><mode>): New pattern.
15790 (vcondu<mode><v_cmp_mixed>): New pattern.
15791 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
15792 of aarch64_vcond_internal.
15793
15794 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
15795 Renlin Li <renlin.li@arm.com>
15796 Bin Cheng <bin.cheng@arm.com>
15797
15798 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
15799 (vec_cmp<mode><v_cmp_result>): New pattern.
15800 (vec_cmpu<mode><mode>): New pattern.
15801 (vcond_mask_<mode><v_cmp_result>): New pattern.
15802
15803 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
15804
15805 PR tree-optimization/71734
15806 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
15807 REF_LOOP, invoke ref_indep_loop_p_1.
15808 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
15809 to ref_indep_loop_p.
15810 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
15811 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
15812 is inside LOOP, do not cache dpendence value for loops with
15813 non-zero SAFELEN.
15814 (ref_indep_loop_p_2): Delete function.
15815 (can_sm_ref_p): Pass LOOP as additional argument to
15816 ref_indep_loop_p.
15817
15818 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
15819
15820 PR target/72853
15821 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
15822 being an offsettable address.
15823
15824 2016-08-10 Martin Liska <mliska@suse.cz>
15825
15826 PR gcov-profile/58306
15827 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
15828 atomic variants of profile update functions.
15829
15830 2016-08-10 Martin Liska <mliska@suse.cz>
15831
15832 Cherry picked (and modified) from google-4_7 branch
15833 2012-12-26 Rong Xu <xur@google.com>
15834 * common.opt (fprofile-update): Add new flag.
15835 * coretypes.h: Define enum profile_update.
15836 * doc/invoke.texi: Document -fprofile-update.
15837 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
15838 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
15839 * tree-profile.c (gimple_init_edge_profiler): Generate
15840 also atomic profiler update.
15841 (gimple_gen_edge_profiler): Likewise.
15842
15843 2016-08-10 David Malcolm <dmalcolm@redhat.com>
15844
15845 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
15846 stack_usage_file to NULL after fclose calls.
15847
15848 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15849
15850 PR target/71873
15851 * reload.c (push_reload): Compute subreg_in_class for
15852 subregs of constants and plus expressions. Remove special
15853 handling of SYMBOL_REFs.
15854
15855 2016-08-10 Alan Modra <amodra@gmail.com>
15856
15857 PR target/71680
15858 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
15859 SImode for TARGET_E500_DOUBLE when given SImode.
15860
15861 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
15862
15863 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
15864 unused variable __O.
15865
15866 2016-08-09 Martin Liska <mliska@suse.cz>
15867
15868 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
15869 _gcov_reset to __gcov_reset.
15870 * doc/gcov-tool.texi: Fix typo.
15871
15872 2016-08-09 Martin Liska <mliska@suse.cz>
15873
15874 * value-prof.c (gimple_divmod_values_to_profile): Do not
15875 instrument MOD histogram if a value is not a SSA name.
15876
15877 2016-08-09 Martin Liska <mliska@suse.cz>
15878
15879 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
15880 values.
15881
15882 2016-08-09 Renlin Li <renlin.li@arm.com>
15883
15884 PR middle-end/64971
15885 * calls.c (prepare_call_address): Convert funexp to Pmode when
15886 necessary.
15887 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
15888 (sibcall_value): Likewise.
15889
15890 2016-08-09 Marek Polacek <polacek@redhat.com>
15891
15892 PR c/7652
15893 * cselib.c (cselib_expand_value_rtx_1): Add return.
15894 * gengtype.c (dbgprint_count_type_at): Likewise.
15895 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
15896 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
15897
15898 2016-08-09 Martin Jambor <mjambor@suse.cz>
15899
15900 PR ipa/71981
15901 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
15902 if instance is a MEM_REF.
15903
15904 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
15905
15906 PR target/72843
15907 * config/i386/i386.md (*movtf_internal): Use
15908 lra_in_progress || reload_completed instead of !can_create_pseudo_p
15909 in the insn constraint.
15910 (*movxf_internal): Ditto.
15911 (*movdf_internal): Ditto.
15912 (*movsf_internal): Ditto.
15913
15914 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15915
15916 PR tree-optimization/72772
15917 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
15918 for expanded base.
15919
15920 2016-08-09 Bin Cheng <bin.cheng@arm.com>
15921
15922 PR tree-optimization/72772
15923 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
15924 parameter STOP.
15925 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
15926 parameter STOP and update calls. Move expand_simple_operations
15927 function call from here...
15928 (simplify_using_initial_conditions): ...to here. Delete parameter
15929 STOP.
15930 (tree_simplify_using_condition): Delete parameter STOP.
15931 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
15932 simplify_using_initial_conditions.
15933
15934 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
15935
15936 PR c/65345
15937 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
15938 Use create_tmp_var_raw instead of create_tmp_var.
15939
15940 2016-08-09 Richard Biener <rguenther@suse.de>
15941
15942 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
15943 Treat same SSA names related.
15944
15945 2016-08-09 Jakub Jelinek <jakub@redhat.com>
15946
15947 PR tree-optimization/72824
15948 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
15949 real_zerop is not negative.
15950
15951 2016-08-09 Richard Biener <rguenther@suse.de>
15952
15953 PR tree-optimization/71802
15954 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
15955 all merge opportunities with the predecessor.
15956
15957 2016-08-09 Richard Biener <rguenther@suse.de>
15958
15959 PR ipa/68273
15960 * ipa-prop.c (ipa_modify_formal_parameters): Build
15961 parameter types with natural alignment also for the
15962 over-aligned case.
15963
15964 2016-08-08 Andi Kleen <ak@linux.intel.com>
15965
15966 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
15967
15968 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15969
15970 PR c/64955
15971 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
15972 do-nothing langhook.
15973 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
15974 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
15975 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
15976 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
15977
15978 2016-08-08 David Malcolm <dmalcolm@redhat.com>
15979
15980 PR bootstrap/72844
15981 * input.c: Ensure that HAVE_ICONV is defined.
15982
15983 2016-08-08 Jakub Jelinek <jakub@redhat.com>
15984
15985 PR middle-end/72781
15986 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
15987 private vars for lastprivate and for linear iterator.
15988
15989 PR middle-end/68762
15990 * omp-simd-clone.c: Include varasm.h.
15991 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
15992 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
15993 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
15994 update function name.
15995
15996 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
15997
15998 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
15999 (avr_diagnose_devicespecs_error): Remove.
16000 (avr_devicespecs_file): Remove composing absolute path for specfile
16001 and its verbose info. Remove conditions to check specs-file,
16002
16003 2016-08-08 Jakub Jelinek <jakub@redhat.com>
16004
16005 PR rtl-optimization/72821
16006 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
16007 just return false for them.
16008
16009 2016-08-08 Alan Modra <amodra@gmail.com>
16010
16011 PR target/72771
16012 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
16013 toc refs created during reload. Update function comment.
16014
16015 2016-08-08 Alan Modra <amodra@gmail.com>
16016
16017 PR target/72802
16018 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
16019 alternatives. Put loads first, then stores, and reg/reg moves
16020 within same class later. Delete attr length.
16021
16022 2016-08-08 Alan Modra <amodra@gmail.com>
16023
16024 PR target/72802
16025 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
16026 (mem_operand_ds_form): New predicate.
16027 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
16028 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
16029 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
16030 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
16031 (extendsfdf2_fpr): Replace o constraint with wY.
16032
16033 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
16034
16035 * tree-ssa-threadbackward.c: Include tree-inline.h
16036 (profitable_jump_thread_path): Use estimate_num_insns to estimate
16037 size of copied block; for cold paths reduce duplication.
16038 (find_jump_threads_backwards): Remove redundant tests.
16039 (pass_thread_jumps::gate): Enable for -Os.
16040
16041 2016-08-07 Jakub Jelinek <jakub@redhat.com>
16042
16043 PR c/72816
16044 * stor-layout.c (layout_decl): Fix up formatting.
16045 (relayout_decl): Allow DECL to be FIELD_DECL.
16046
16047 2016-08-07 Alan Modra <amodra@gmail.com>
16048
16049 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
16050
16051 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16052
16053 * data-streamer-in.c (streamer_read_wide_int): New.
16054 (streamer_read_widest_int): Renamed function.
16055 * data-streamer-out.c (streamer_write_wide_int): New
16056 (streamer_write_widest_int): Renamed function.
16057 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
16058 data-stream-in.c.
16059 (input_cfg): Call renamed function.
16060 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
16061 data-stream-out.c.
16062 (output_cfg): Call renamed function.
16063 * data-streamer.h: Add declarations.
16064
16065 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16066
16067 * tree-ssa-ccp.c (extend_mask): New param sgn.
16068 Remove ORing with wi::mask.
16069 (get_default_value): Adjust call to extend_mask to pass sign.
16070 (evaluate_stmt): Likewise.
16071
16072 2016-08-06 Jakub Jelinek <jakub@redhat.com>
16073
16074 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
16075 INT64_MAX.
16076
16077 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16078
16079 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
16080 transform if operand's type is pointer to function or method.
16081
16082 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16083
16084 PR tree-optimization/18046
16085 * tree-ssa-threadedge.c: Include cfganal.h.
16086 (simplify_control_statement_condition): If simplifying a
16087 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
16088 with the dominating ASSERT_EXPR before handing it off to VRP.
16089 Mention that a CASE_LABEL_EXPR may be returned.
16090 (thread_around_empty_blocks): Adjust to handle
16091 simplify_control_statement_condition() returning a
16092 CASE_LABEL_EXPR.
16093 (thread_through_normal_block): Likewise.
16094 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
16095 a switch statement by trying to determine which case label
16096 will be taken.
16097
16098 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
16099
16100 PR rtl-optimization/69847
16101 * lra-constraints.c (process_invariant_for_inheritance): Save
16102 pattern instead of src.
16103 (remove_inheritance_pseudos): Use the pattern. Add assert.
16104
16105 2016-08-05 David Malcolm <dmalcolm@redhat.com>
16106
16107 * input.c (string_concat::string_concat): New constructor.
16108 (string_concat_db::string_concat_db): New constructor.
16109 (string_concat_db::record_string_concatenation): New method.
16110 (string_concat_db::get_string_concatenation): New method.
16111 (string_concat_db::get_key_loc): New method.
16112 (class auto_cpp_string_vec): New class.
16113 (get_substring_ranges_for_loc): New function.
16114 (get_source_range_for_substring): New function.
16115 (get_num_source_ranges_for_substring): New function.
16116 (class selftest::lexer_test_options): New class.
16117 (struct selftest::lexer_test): New struct.
16118 (class selftest::ebcdic_execution_charset): New class.
16119 (selftest::ebcdic_execution_charset::s_singleton): New variable.
16120 (selftest::lexer_test::lexer_test): New constructor.
16121 (selftest::lexer_test::~lexer_test): New destructor.
16122 (selftest::lexer_test::get_token): New method.
16123 (selftest::assert_char_at_range): New function.
16124 (ASSERT_CHAR_AT_RANGE): New macro.
16125 (selftest::assert_num_substring_ranges): New function.
16126 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
16127 (selftest::assert_has_no_substring_ranges): New function.
16128 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
16129 (selftest::test_lexer_string_locations_simple): New function.
16130 (selftest::test_lexer_string_locations_ebcdic): New function.
16131 (selftest::test_lexer_string_locations_hex): New function.
16132 (selftest::test_lexer_string_locations_oct): New function.
16133 (selftest::test_lexer_string_locations_letter_escape_1): New function.
16134 (selftest::test_lexer_string_locations_letter_escape_2): New function.
16135 (selftest::test_lexer_string_locations_ucn4): New function.
16136 (selftest::test_lexer_string_locations_ucn8): New function.
16137 (selftest::uint32_from_big_endian): New function.
16138 (selftest::test_lexer_string_locations_wide_string): New function.
16139 (selftest::uint16_from_big_endian): New function.
16140 (selftest::test_lexer_string_locations_string16): New function.
16141 (selftest::test_lexer_string_locations_string32): New function.
16142 (selftest::test_lexer_string_locations_u8): New function.
16143 (selftest::test_lexer_string_locations_utf8_source): New function.
16144 (selftest::test_lexer_string_locations_concatenation_1): New
16145 function.
16146 (selftest::test_lexer_string_locations_concatenation_2): New
16147 function.
16148 (selftest::test_lexer_string_locations_concatenation_3): New
16149 function.
16150 (selftest::test_lexer_string_locations_macro): New function.
16151 (selftest::test_lexer_string_locations_stringified_macro_argument):
16152 New function.
16153 (selftest::test_lexer_string_locations_non_string): New function.
16154 (selftest::test_lexer_string_locations_long_line): New function.
16155 (selftest::test_lexer_char_constants): New function.
16156 (selftest::input_c_tests): Call the new test functions once per
16157 case within the line_table test matrix.
16158 * input.h (struct string_concat): New struct.
16159 (struct location_hash): New struct.
16160 (class string_concat_db): New class.
16161 * substring-locations.h: New header.
16162
16163 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
16164
16165 PR tree-optimization/72810
16166 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
16167 the type of the case labels when truncating.
16168
16169 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16170
16171 PR Target/72819
16172 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
16173 (aarch64_fp16_ptr_type_node): Likewise.
16174 * config/aarch64/aarch64-simd-builtins.c
16175 (aarch64_fp16_ptr_type_node): Define.
16176 (aarch64_init_fp16_types): New, refactored out of...
16177 (aarch64_init_builtins): ...here, update to call
16178 aarch64_init_fp16_types.
16179 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
16180 HFmode.
16181 (aapcs_vfp_sub_candidate): Likewise.
16182
16183 2016-08-05 Martin Liska <mliska@suse.cz>
16184 Joshua Cranmer <Pidgeot18@gmail.com>
16185
16186 * gcov.c (line_t::has_block): New function.
16187 (enum loop_type): New enum.
16188 (handle_cycle): New function.
16189 (unblock): Likewise.
16190 (circuit): Likewise.
16191 (get_cycles_count): Likewise.
16192 (accumulate_line_counts): Use new loop detection algorithm.
16193
16194 2016-08-05 Martin Liska <mliska@suse.cz>
16195
16196 * gcov.c (output_intermediate_file): Rename
16197 function_info::line_next to next_file_fn.
16198 (process_file): Likewise.
16199 (read_graph_file): Likewise.
16200 (accumulate_line_counts): Likewise.
16201 (output_lines): Likewise.
16202
16203 2016-08-05 Richard Biener <rguenther@suse.de>
16204
16205 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
16206 restriction on threading to a loop header.
16207
16208 2016-08-05 Richard Biener <rguenther@suse.de>
16209
16210 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
16211 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
16212 adjust loop info accordingly.
16213
16214 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
16215
16216 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
16217 before folding call to __builtin_constant_p with parameters to false.
16218
16219 2016-08-05 Alan Modra <amodra@gmail.com>
16220
16221 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
16222 code accidentally committed 2016-05-02 providing class when given
16223 NO_REGS.
16224
16225 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16226
16227 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
16228 the case label ranges that partially overlap with OP's value
16229 range.
16230
16231 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
16232
16233 PR target/72805
16234 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
16235 Cast builtin function result to __mmask16 instead of __mmask8.
16236 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16237 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
16238 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
16239
16240 2016-08-04 David Malcolm <dmalcolm@redhat.com>
16241
16242 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
16243 (ASSERT_TRUE_AT): New macro.
16244 (ASSERT_FALSE): Reimplement in terms of...
16245 (ASSERT_FALSE_AT): New macro.
16246 (ASSERT_STREQ_AT): Fix typo in comment.
16247
16248 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
16249
16250 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
16251 labels are exhaustive, designate the label with the widest
16252 range to be the default label.
16253
16254 2016-08-04 Andrew Pinski <apinski@cavium.com>
16255
16256 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
16257 (thunderx_tunings): Use thunderx_vector_cost instead of
16258 generic_vector_cost.
16259
16260 2016-08-04 Martin Liska <mliska@suse.cz>
16261
16262 * gcov.c (main): Fix GNU coding style.
16263 (output_intermediate_file): Likewise.
16264 (process_file): Likewise.
16265 (generate_results): Likewise.
16266 (release_structures): Likewise.
16267 (create_file_names): Likewise.
16268 (find_source): Likewise.
16269 (read_graph_file): Likewise.
16270 (find_exception_blocks): Likewise.
16271 (canonicalize_name): Likewise.
16272 (make_gcov_file_name): Likewise.
16273 (mangle_name): Likewise.
16274 (accumulate_line_counts): Likewise.
16275 (output_branch_count): Likewise.
16276 (read_line): Likewise.
16277
16278 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16279
16280 PR rtl-optimization/71779
16281 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
16282 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
16283 or if it was truncated.
16284
16285 PR rtl-optimization/70903
16286 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
16287
16288 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16289
16290 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
16291 accessing SSA_NAME_PTR_INFO.
16292
16293 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16294
16295 PR 70677
16296 * common/config/avr/avr-common.c (avr_option_optimization_table)
16297 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
16298
16299 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
16300
16301 PR 55181
16302 * config/avr/avr.md: New pattern to work around do_store_flag
16303 generating shift instructions for bit extractions.
16304
16305 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
16306
16307 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
16308 BITMAP_ALLOC.
16309 (add_equivalence): Likewise.
16310 (get_value_range): Allocate value range with vrp_value_range_pool.
16311 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
16312 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
16313
16314 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
16315
16316 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
16317 the default for the rs6000 port.
16318
16319 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
16320
16321 PR middle-end/71876
16322 * calls.c (special_function_p): Remove special handling of
16323 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
16324 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
16325 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
16326
16327 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
16328
16329 PR middle-end/72778
16330 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
16331 Don't stop on regular insns.
16332
16333 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
16334
16335 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
16336 size to DImode boundary.
16337 (nvptx_propagate): Likewise.
16338
16339 2016-08-03 Alan Modra <amodra@gmail.com>
16340
16341 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
16342 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
16343 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
16344 from -mefficient-unaligned-vector. Note that this affects fp too.
16345
16346 2016-08-03 Alan Modra <amodra@gmail.com>
16347
16348 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
16349 cost more.
16350
16351 2016-08-03 Alan Modra <amodra@gmail.com>
16352
16353 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
16354 to a reg. Localize vars.
16355
16356 2016-08-03 Alan Modra <amodra@gmail.com>
16357
16358 * config/rs6000/rs6000.opt: Remove negatives from help strings
16359 and comments.
16360
16361 2016-08-03 Alan Modra <amodra@gmail.com>
16362
16363 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
16364 Delete duplicated code.
16365
16366 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16367
16368 PR middle-end/72778
16369 * lra-spills.c (regno_in_use_p): New.
16370 (lra_final_code_change): Use it.
16371
16372 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
16373
16374 PR rtl-optimization/69847
16375 * lra-int.h (struct lra-reg): Use restore_rtx instead of
16376 restore_regno.
16377 (lra_rtx_hash): New.
16378 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
16379 of restore_regno.
16380 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
16381 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
16382 * lra-spills.c (lra_final_code_change): Don't delete insn when the
16383 next insn is USE with the same reg as the current insn source.
16384 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
16385 of restore_regno.
16386 (lra_constraints_init): Call initiate_invariants.
16387 (lra_constraints_finish): Call finish_invariants.
16388 (struct invariant, invariant_t, invariant_ptr_t): New.
16389 (const_invariant_ptr_t, invariants, invariants_pool): New.
16390 (invariant_table, invariant_hash, invariant_eq_p): New.
16391 (insert_invariant, initiate_invariants, finish_invariants): New.
16392 (clear_invariants, invalid_invariant_regs): New.
16393 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
16394 instead of restore_regno.
16395 (invariant_p, process_invariant_for_inheritance): New.
16396 (inherit_in_ebb): Implement invariant inheritance.
16397 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
16398 (remove_inheritance_pseudos): Implement undoing invariant
16399 inheritance.
16400 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
16401 instead of restore_regno.
16402 * lra-assigns.c (regno_live_length): New.
16403 (reload_pseudo_compare_func): Use regno_live_length.
16404 (assign_by_spills): Use restore_rtx instead of restore_regno.
16405 (lra_assign): Ditto. Initiate regno_live_length.
16406
16407 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
16408
16409 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
16410 __builtin_aarch64_fmindf.
16411
16412 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16413
16414 PR tree-optimization/34114
16415 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
16416 information for more control IVs.
16417
16418 2016-08-02 Bin Cheng <bin.cheng@arm.com>
16419
16420 PR tree-optimization/34114
16421 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
16422 PLUS_EXPR case. Handle SSA_NAME case.
16423
16424 2016-08-02 Tamar Christina <tamar.christina@arm.com>
16425
16426 * config/aarch64/aarch64-simd-builtins.def
16427 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
16428 (__builtin_aarch64_fmaxdf): Likewise.
16429 (__builtin_aarch64_smin_nandf): Likewise.
16430 (__builtin_aarch64_smax_nandf): Likewise.
16431 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
16432 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
16433 (<fmaxmin><mode>3): ...this.
16434 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
16435 (vminnm_f64): Likewise.
16436 (vmin_f64): Likewise.
16437 (vmax_f64): Likewise.
16438 * config/aarch64/iterators.md (FMAXMIN): Merge with...
16439 (FMAXMIN_UNS): ...this.
16440 (fmaxmin): Merged with
16441 (fmaxmin_op): ...this...
16442 (maxmin_uns_op): ...in to this.
16443
16444 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16445
16446 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16447 Add support for vec_extract on vector float, vector int, vector
16448 short, and vector char vector types.
16449 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16450 vector float, vector int, vector short, and vector char
16451 optimizations on 64-bit ISA 2.07 systems for both constant and
16452 variable element numbers.
16453 (rs6000_split_vec_extract_var): Likewise.
16454 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
16455 Altivec registers on ISA 2.07 and above.
16456 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
16457 which never was matched due to the split occuring before register
16458 allocation (and the code would not have worked on little endian
16459 systems if it did match). Allow extracts to go to the Altivec
16460 registers if ISA 2.07 (power8). Change from using "" around the
16461 C++ code to using {}'s.
16462 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
16463 vec_extracts when the vector is in memory.
16464 (vsx_extract_v4sf_var): New insn to optimize vector float
16465 vec_extracts when the element number is variable on 64-bit ISA
16466 2.07 systems.
16467 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
16468 for 64-bit ISA 2.07 as well as ISA 3.0.
16469 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
16470 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
16471 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
16472 optimize vector int, vector short, and vector char vec_extracts
16473 when the vector is in memory.
16474 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
16475 optimize vector int, vector short, and vector char vec_extracts
16476 when the element number is variable.
16477
16478 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16479
16480 PR target/71948
16481 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
16482 does not overlap with other symbol flags.
16483
16484 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
16485
16486 * config/aarch64/aarch64.h (aarch64_frame):
16487 Remove padding0 and hardfp_offset. Add locals_offset,
16488 initial_adjust, callee_adjust, callee_offset and final_adjust.
16489 * config/aarch64/aarch64.c (aarch64_layout_frame):
16490 Remove unused padding0 and hardfp_offset initializations.
16491 Choose frame layout and set frame variables accordingly.
16492 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
16493 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
16494 (aarch64_pop_regs): Likewise.
16495 (aarch64_expand_prologue): Remove all decision code, just emit
16496 prolog according to frame variables.
16497 (aarch64_expand_epilogue): Remove all decision code, just emit
16498 epilog according to frame variables.
16499 (aarch64_initial_elimination_offset): Use offset to local/arg area.
16500
16501 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
16502
16503 PR target/72748
16504 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
16505 fix_debug_reg_uses after changing source register mode to
16506 V1TImode if source register is undefined.
16507
16508 2015-08-01 Alan Hayward <alan.hayward@arm.com>
16509
16510 PR tree-optimization/71818
16511 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
16512 with non invariant evolutions
16513
16514 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16515
16516 PR target/72767
16517 * config/avr/avr.md (length) [branch]: Correct insn length
16518 attribute for forward branches.
16519
16520 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
16521
16522 * doc/extend.texi (AVR Built-in Functions): Document
16523 __builtin_avr_nops.
16524 * config/avr/builtins.def (NOPS): New.
16525 * config/avr/avr.c (avr_expand_nops): New static function.
16526 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
16527
16528 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16529
16530 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
16531 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
16532 addresses.
16533
16534 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
16535
16536 * config/aarch64/aarch64.c (vulcan_tunings): Update
16537 vulcan L1 cache_line_size.
16538
16539 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16540
16541 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
16542 function that takes a vector memory address, a hard register, an
16543 element number and a temporary base register, and recreates an
16544 address that points to the appropriate element within the vector.
16545 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
16546 (rs6000_split_vec_extract_var): Add support for the target of a
16547 vec_extract with variable element number being a scalar memory
16548 location.
16549 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
16550 swappable.
16551 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
16552 vsx_extract_<mode>_load insn with a new insn that optimizes
16553 storing either element to a memory location, using scratch
16554 registers to pick apart the vector and reconstruct the address.
16555 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
16556 (vsx_extract_<mode>_store): Rework alternatives to more correctly
16557 support Altivec registers. Add support for ISA 3.0 Altivec d-form
16558 store instruction.
16559 (vsx_extract_<mode>_var): Add support for extracting a variable
16560 element number from memory.
16561
16562 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16563
16564 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
16565 when testing for compares against constants of the form 0xabab.
16566
16567 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16568
16569 PR tree-optimization/57558
16570 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
16571 function.
16572 (vect_loop_versioning): Support versioning with niter assumptions.
16573 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
16574 (vect_get_loop_niters): New parameter. Reimplement to support
16575 assumptions in loop niter info.
16576 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
16577 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
16578 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
16579 Support loop versioning for niters.
16580 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
16581 (vect_free_loop_info_assumptions): New function.
16582 (vectorize_loops): Free loop niter info for loops with flag
16583 LOOP_F_ASSUMPTIONS set if vectorization failed.
16584 * tree-vectorizer.h (struct _loop_vec_info): New field
16585 num_iters_assumptions.
16586 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
16587 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
16588 (LOOP_REQUIRES_VERSIONING): New macro.
16589 (vect_free_loop_info_assumptions): New decl.
16590
16591 2016-07-29 Bin Cheng <bin.cheng@arm.com>
16592
16593 * cfgloop.h (struct loop): New field constraints.
16594 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
16595 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
16596 functions.
16597 * cfgloop.c (alloc_loop): Initialize new field.
16598 * cfgloopmanip.c (copy_loop_info): Copy constraints.
16599 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
16600 Adjust niter analysis wrto loop constraints.
16601 * doc/loop.texi (@node Number of iterations): Add description for loop
16602 constraints.
16603
16604 2016-07-29 Marek Polacek <polacek@redhat.com>
16605
16606 PR c/7652
16607 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
16608 (ix86_expand_round_builtin): Likewise.
16609
16610 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
16611 Georg-Johann Lay <avr@gjlay.de>
16612
16613 PR rtl-optimization/71976
16614 * combine.c (get_last_value): Return 0 if the argument for which
16615 the function is called has a wider mode than the recorded value.
16616
16617 2016-07-29 Marek Polacek <polacek@redhat.com>
16618
16619 PR c/7652
16620 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
16621 (altivec_expand_st_builtin): Likewise.
16622
16623 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
16624
16625 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
16626 introduced in r238381.
16627
16628 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
16629
16630 PR middle-end/68217
16631 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
16632 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
16633
16634 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16635
16636 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
16637 New declaration.
16638 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16639 Add support for vec_extract of vector double or vector long having
16640 a variable element number on 64-bit ISA 2.07 systems or newer.
16641 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
16642 Likewise.
16643 (rs6000_split_vec_extract_var): New function to split a
16644 vec_extract built-in function with variable element number.
16645 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
16646 swappable.
16647 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
16648 (UNSPEC_VSX_EXTRACT): Likewise.
16649 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
16650 direct move instructions to be generated on 64-bit ISA 2.07
16651 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
16652 instruction.
16653 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
16654 arguments for vec_extract variable element.
16655 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
16656 vec_extract with variable element on V2DFmode and V2DImode
16657 vectors.
16658 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
16659 -mupper-regs-df requirement, since it isn't needed.
16660 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
16661 do direct moves on 64-bit systems, which allows optimization of
16662 vec_extract on 64-bit ISA 2.07 systems and newer.
16663
16664 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16665 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16666
16667 * config/aarch64/aarch64.md
16668 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
16669 statement and type.
16670 (<optab>qihi2_aarch64): Likewise, and split into two.
16671 (extendqihi2_aarch64): New.
16672 (zero_extendqihi2_aarch64): New.
16673 * config/aarch64/iterators.md (ldrxt): Remove.
16674 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
16675 uxtb/uxth.
16676
16677 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
16678
16679 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
16680
16681 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
16682
16683 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
16684 (aarch64_push_reg): New function to push 1 or 2 registers.
16685 (aarch64_pop_reg): New function to pop 1 or 2 registers.
16686 (aarch64_expand_prologue): Use aarch64_push_regs.
16687 (aarch64_expand_epilogue): Use aarch64_pop_regs.
16688
16689 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
16690
16691 PR tree-optimization/71734
16692 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
16693 attribute instead of REF_LOOP and use it.
16694 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
16695 set it for Loops having non-zero safelen attribute.
16696 (ref_indep_loop_p): Pass zero as initial value for safelen.
16697
16698 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
16699
16700 PR middle-end/72657
16701 PR target/72683
16702 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
16703 call using chkp_gimple_call_builtin_p.
16704 (chkp_copy_bounds_for_assign): Likewise.
16705
16706 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16707
16708 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
16709 * config/arm/arm-protos.h (struct tune_params): Likewise.
16710 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
16711 (cortex_a9_sched_adjust_cost): Likewise.
16712 (fa726te_sched_adjust_cost): Likewise.
16713 (arm_adjust_cost): Likewise.
16714 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
16715 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
16716 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
16717 * config/i386/i386.c (ix86_adjust_cost): Likewise.
16718 * config/ia64/ia64.c: Likewise.
16719 * config/m68k/m68k.c: Likewise.
16720 * config/mep/mep.c (mep_adjust_cost): Likewise.
16721 * config/microblaze/microblaze.c (microblaze_adjust_cost):
16722 * Likewise.
16723 * config/mips/mips.c (mips_adjust_cost): Likewise.
16724 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
16725 * Likewise.
16726 * config/pa/pa.c (pa_adjust_cost): Likewise.
16727 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
16728 (rs6000_debug_adjust_cost): Likewise.
16729 * config/sh/sh.c (sh_adjust_cost): Likewise.
16730 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
16731 (hypersparc_adjust_cost): Likewise.
16732 (sparc_adjust_cost): Likewise.
16733 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
16734 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
16735 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
16736 * Likewise.
16737 * config/visium/visium.c (visium_adjust_cost): Likewise.
16738 * doc/tm.texi: Regenerate.
16739 * haifa-sched.c (dep_cost_1): Adjust.
16740 * target.def: Merge adjust_cost and adjust_cost_2.
16741
16742 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16743
16744 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
16745
16746 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16747
16748 * store-motion.c (struct st_expr): Make pattern_regs a vector.
16749 (extract_mentioned_regs): Append to a vector instead of
16750 returning a rtx_expr_list.
16751 (st_expr_entry): Adjust.
16752 (free_st_expr_entry): Likewise.
16753 (store_ops_ok): Likewise.
16754 (store_killed_in_insn): Likewise.
16755 (find_moveable_store): Likewise.
16756
16757 2016-07-28 Martin Liska <mliska@suse.cz>
16758
16759 PR gcov-profile/68025
16760 * tree-profile.c (tree_profiling): Respect
16761 no_profile_instrument_function attribute.
16762 * doc/extend.texi: Document no_profile_instrument_function
16763 attribute.
16764
16765 2016-07-28 Martin Liska <mliska@suse.cz>
16766
16767 PR rtl-optimization/70944
16768 * combine.c (make_compound_operation):
16769 Do not allow make_compound_operation for vector mode
16770
16771 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
16772
16773 PR middle-end/71994
16774 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
16775 before calling get_ops.
16776
16777 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16778
16779 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
16780 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
16781 (BITS_PER_UNIT_LOG): Remove.
16782 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
16783 * expr.c (expand_assignment): Likewise.
16784 * stor-layout.c (initialize_sizetypes): Likewise.
16785
16786 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
16787
16788 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
16789 signature of rs6000_expand_vector_extract so that the element
16790 number is a RTX instead of a constant integer.
16791 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
16792 Likewise.
16793 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
16794 (altivec_expand_vec_ext_builtin): Likewise.
16795 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
16796 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
16797 MFVSRLD instruction.
16798
16799 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16800
16801 * input.c (get_pure_location): Move here from tree.c.
16802 (make_location): Likewise. Add header comment.
16803 (selftest::test_accessing_ordinary_linemaps): Verify
16804 pure_location_p, make_location, get_location_from_adhoc_loc and
16805 get_range_from_loc.
16806 * input.h (get_pure_location): Move declaration here from tree.h.
16807 (get_finish): Likewise for inline function.
16808 (make_location): Likewise for declaration.
16809 * tree.c (get_pure_location): Move to input.c.
16810 (make_location): Likewise.
16811 * tree.h (get_pure_location): Move declaration to tree.h.
16812 (get_finish): Likewise for inline function.
16813 (make_location): Likewise for declaration.
16814
16815 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16816
16817 PR middle-end/71078
16818 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
16819
16820 2016-07-27 David Malcolm <dmalcolm@redhat.com>
16821
16822 * system.h (STATIC_ASSERT): Use static_assert if building
16823 with C++11 onwards.
16824
16825 2016-07-27 Richard Biener <rguenther@suse.de>
16826
16827 PR tree-optimization/72517
16828 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
16829 Revert change to not compute read-read dependences.
16830
16831 2016-07-27 Richard Biener <rguenther@suse.de>
16832
16833 * predict.c (set_even_probabilities): Make nedges unsigned.
16834
16835 2016-07-27 Martin Liska <mliska@suse.cz>
16836
16837 * predict.c (set_even_probabilities): Handle unlikely edges.
16838 (combine_predictions_for_bb): Likewise.
16839
16840 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16841
16842 PR target/71869
16843 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
16844 __float128 support when we don't have hardware support, so that
16845 the IEEE built-in functions like isgreater, first call __unordkf3
16846 to make sure neither operand is a NaN, and if both operands are
16847 ordered, do the normal comparison.
16848
16849 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16850
16851 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
16852 name.
16853 (extract_code_and_val_from_cond_with_ops): Verify that name is
16854 either cond_op0 or cond_op1.
16855
16856 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
16857
16858 PR tree-optimization/18046
16859 * genmodes.c (emit_mode_size_inline): Emit an assert that
16860 verifies that mode is a valid array index.
16861 (emit_mode_nuinits_inline): Likewise.
16862 (emit_mode_inner_inline): Likewise.
16863 (emit_mode_unit_size_inline): Likewise.
16864 (emit_mode_unit_precision_inline): Likewise.
16865 * tree-vrp.c: Include params.h.
16866 (find_switch_asserts): Register edge assertions for the default
16867 label which correspond to the anti-ranges of each case label.
16868 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
16869 * doc/invoke.texi: Document it.
16870
16871 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16872
16873 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
16874 and unnecessary call to gimple_bb.
16875
16876 2016-07-26 Richard Biener <rguenther@suse.de>
16877
16878 PR rtl-optimization/71984
16879 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
16880 for VOIDmode.
16881
16882 2016-07-26 Richard Biener <rguenther@suse.de>
16883
16884 PR middle-end/72517
16885 * expmed.c (extract_bit_field_1): Constrain the vector mode
16886 with element size matching the extraction mode size when
16887 choosing a better vector mode to do the extraction from.
16888
16889 2016-07-26 Richard Biener <rguenther@suse.de>
16890 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16891
16892 PR middle-end/70920
16893 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
16894 pattern.
16895
16896 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16897
16898 * tree-ssa-structalias.c (struct scc_info): Change types of
16899 members to auto_sbitmap and auto_vec.
16900 (scc_info::scc_info): New constructor.
16901 (scc_info::~scc_info): New destructor.
16902 (init_scc_info): Remove.
16903 (free_scc_info): Remove.
16904 (find_indirect_cycles): Adjust.
16905 (perform_var_substitution): Likewise.
16906 (free_var_substitution_info): Likewise.
16907
16908 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16909
16910 * tree-outof-ssa.c (struct elim_graph): Change type of members
16911 to auto_vec and auto_sbitmap.
16912 (elim_graph::elim_graph): New constructor.
16913 (delete_elim_graph): Remove.
16914 (expand_phi_nodes): Adjust.
16915
16916 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16917
16918 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
16919 (new_elim_graph): Adjust.
16920 (clear_elim_graph): Likewise.
16921 (delete_elim_graph): Likewise.
16922 (elim_graph_size): Likewise.
16923 (elim_graph_add_node): Likewise.
16924 (elim_graph_add_edge): Likewise.
16925 (elim_graph_remove_succ_edge): Likewise.
16926 (eliminate_name): Likewise.
16927 (eliminate_build): Likewise.
16928 (elim_forward): Likewise.
16929 (elim_unvisited_predecessor): Likewise.
16930 (elim_backward): Likewise.
16931 (elim_create): Likewise.
16932 (eliminate_phi): Likewise.
16933 (expand_phi_nodes): Likewise.
16934
16935 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16936
16937 * bt-load.c (compute_out): Use auto_sbitmap class.
16938 (link_btr_uses): Likewise.
16939 * cfganal.c (mark_dfs_back_edges): Likewise.
16940 (post_order_compute): Likewise.
16941 (inverted_post_order_compute): Likewise.
16942 (pre_and_rev_post_order_compute_fn): Likewise.
16943 (single_pred_before_succ_order): Likewise.
16944 * cfgexpand.c (pass_expand::execute): Likewise.
16945 * cfgloop.c (verify_loop_structure): Likewise.
16946 * cfgloopmanip.c (fix_bb_placements): Likewise.
16947 (remove_path): Likewise.
16948 (update_dominators_in_loop): Likewise.
16949 * cfgrtl.c (break_superblocks): Likewise.
16950 * ddg.c (check_sccs): Likewise.
16951 (create_ddg_all_sccs): Likewise.
16952 * df-core.c (df_worklist_dataflow): Likewise.
16953 * dse.c (dse_step3): Likewise.
16954 * except.c (eh_region_outermost): Likewise.
16955 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16956 * gcse.c (prune_expressions): Likewise.
16957 (prune_insertions_deletions): Likewise.
16958 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
16959 * graph.c (draw_cfg_nodes_no_loops): Likewise.
16960 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
16961 * lcm.c (compute_earliest): Likewise.
16962 (compute_farthest): Likewise.
16963 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
16964 (unroll_loop_runtime_iterations): Likewise.
16965 (unroll_loop_stupid): Likewise.
16966 * lower-subreg.c (decompose_multiword_subregs): Likewise.
16967 * lra-lives.c: Likewise.
16968 * lra.c (lra): Likewise.
16969 * modulo-sched.c (schedule_reg_moves): Likewise.
16970 (optimize_sc): Likewise.
16971 (get_sched_window): Likewise.
16972 (sms_schedule_by_order): Likewise.
16973 (check_nodes_order): Likewise.
16974 (order_nodes_of_sccs): Likewise.
16975 (order_nodes_in_scc): Likewise.
16976 * recog.c (split_all_insns): Likewise.
16977 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
16978 * reload1.c (reload): Likewise.
16979 * sched-rgn.c (haifa_find_rgns): Likewise.
16980 (split_edges): Likewise.
16981 (compute_trg_info): Likewise.
16982 * sel-sched.c (init_seqno): Likewise.
16983 * store-motion.c (remove_reachable_equiv_notes): Likewise.
16984 * tree-into-ssa.c (update_ssa): Likewise.
16985 * tree-ssa-live.c (live_worklist): Likewise.
16986 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
16987 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16988 * Likewise.
16989 (try_peel_loop): Likewise.
16990 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
16991 * Likewise.
16992 * tree-ssa-pre.c (compute_antic): Likewise.
16993 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
16994 * tree-stdarg.c (reachable_at_most_once): Likewise.
16995 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16996 * var-tracking.c (vt_find_locations): Likewise.
16997
16998 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16999
17000 * sbitmap.h (auto_sbitmap): New class.
17001
17002 2016-07-26 Alan Modra <amodra@gmail.com>
17003
17004 PR target/72103
17005 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
17006 sri->t_icode.
17007
17008 2016-07-25 David Malcolm <dmalcolm@redhat.com>
17009
17010 * input.c (selftest::temp_source_file::temp_source_file): Fix
17011 missing "%s" in fprintf.
17012
17013 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
17014
17015 PR middle-end/71732
17016 * cselib.c (cselib_process_insn): Invalidate argument slots for
17017 const/pure calls.
17018
17019 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17020
17021 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
17022 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
17023 vmulxh_lane_f16, vmulxh_laneq_f16): New.
17024
17025 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17026
17027 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17028 * config/aarch64/aarch64.md (fma, fnma): Support HF.
17029 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
17030
17031 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17032
17033 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17034 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
17035 New.
17036 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
17037 (add<mode>3): Likewise.
17038 (sub<mode>3): Likewise.
17039 (mul<mode>3): Likewise.
17040 (div<mode>3): Likewise.
17041 (*div<mode>3): Likewise.
17042 (<fmaxmin><mode>3): Extend to HF.
17043 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
17044 (fabd<mode>3): Likewise.
17045 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
17046 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
17047 (aarch64_fmulx<mode>): Likewise.
17048 (aarch64_fac<optab><mode>): Likewise.
17049 (aarch64_frecps<mode>): Likewise.
17050 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
17051 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
17052 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
17053 (VSDQ_HSDI): Support HI.
17054 (fcvt_target, FCVT_TARGET): Likewise.
17055 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
17056 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
17057 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
17058 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
17059 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
17060 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
17061 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
17062 vrsqrtsh_f16): New.
17063
17064 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17065
17066 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
17067 * config/aarch64/aarch64-builtins.c (hi_UP): New.
17068 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17069 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
17070 mode.
17071 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
17072 (aarch64_cm<optab><mode>): Likewise.
17073 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
17074 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
17075 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
17076 (sqrt<mode>2): Likewise.
17077 (*sqrt<mode>2): Likewise.
17078 (abs<mode>2): Likewise.
17079 (<optab><mode>hf2): New pattern for HF mode.
17080 (<optab>hihf2): Likewise.
17081 * config/aarch64/arm_neon.h: Include arm_fp16.h.
17082 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
17083 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
17084 Support HF mode.
17085 * config/aarch64/arm_fp16.h: New file.
17086 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
17087 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
17088 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
17089 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
17090 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
17091 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
17092 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
17093 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
17094 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
17095 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
17096 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
17097 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
17098 vsqrth_f16): New.
17099
17100 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17101
17102 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
17103 reduc_smin_scal_): Use VDQIF_F16.
17104 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
17105 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
17106 Use VHSDF.
17107 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
17108 * config/aarch64/iterators.md (VDQIF_F16): New.
17109 (vp): Support HF modes.
17110 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
17111 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
17112
17113 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17114
17115 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
17116 "*aarch64_mulx_elt_from_dup<mode>".
17117 (*aarch64_mul3_elt<mode>): Update schedule type.
17118 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
17119 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
17120 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
17121 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
17122 (f, fp): Support HF modes.
17123 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
17124 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
17125 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
17126 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
17127 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
17128 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
17129
17130 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17131
17132 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17133 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
17134 modes.
17135 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
17136 vfmsq_f16): New.
17137
17138 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17139
17140 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17141 * config/aarch64/aarch64-simd.md
17142 (aarch64_rsqrts<mode>): Extend to HF modes.
17143 (fabd<mode>3): Likewise.
17144 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
17145 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
17146 (aarch64_<maxmin_uns>p<mode>): Likewise.
17147 (<su><maxmin><mode>3): Likewise.
17148 (<maxmin_uns><mode>3): Likewise.
17149 (<fmaxmin><mode>3): Likewise.
17150 (aarch64_faddp<mode>): Likewise.
17151 (aarch64_fmulx<mode>): Likewise.
17152 (aarch64_frecps<mode>): Likewise.
17153 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
17154 (add<mode>3): Extend to HF modes.
17155 (sub<mode>3): Likewise.
17156 (mul<mode>3): Likewise.
17157 (div<mode>3): Likewise.
17158 (*div<mode>3): Likewise.
17159 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
17160 HF, V4HF and V8HF.
17161 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
17162 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
17163 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
17164 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
17165 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
17166 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
17167 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
17168 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
17169 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
17170 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
17171 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
17172 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
17173 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
17174 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
17175
17176 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17177
17178 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
17179 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
17180 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
17181 (neg<mode>2): Likewise.
17182 (abs<mode>2): Likewise.
17183 (<frint_pattern><mode>2): Likewise.
17184 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
17185 (<optab><VDQF:mode><fcvt_target>2): Likewise.
17186 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
17187 (ftrunc<VDQF:mode>2): Likewise.
17188 (<optab><fcvt_target><VDQF:mode>2): Likewise.
17189 (sqrt<mode>2): Likewise.
17190 (*sqrt<mode>2): Likewise.
17191 (aarch64_frecpe<mode>): Likewise.
17192 (aarch64_cm<optab><mode>): Likewise.
17193 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
17194 HF, V4HF and V8HF.
17195 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
17196 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
17197 (stype): New.
17198 * config/aarch64/arm_neon.h (vdup_n_f16): New.
17199 (vdupq_n_f16): Likewise.
17200 (vld1_dup_f16): Use vdup_n_f16.
17201 (vld1q_dup_f16): Use vdupq_n_f16.
17202 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
17203 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
17204 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
17205 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
17206 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
17207 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
17208 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
17209 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
17210 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
17211 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
17212 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
17213 vsqrt_f16, vsqrtq_f16): New.
17214
17215 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17216
17217 * config/aarch64/aarch64-simd.md
17218 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
17219 (aarch64_ext<mode>): Likewise.
17220 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
17221 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
17222 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
17223 and V8HFmode.
17224 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
17225 float16x8_t.
17226 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
17227 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
17228 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
17229 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
17230 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
17231 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
17232 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
17233 New.
17234 (vmov_n_f16): Reimplement using vdup_n_f16.
17235 (vmovq_n_f16): Reimplement using vdupq_n_f16..
17236
17237 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17238
17239 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
17240 "frame_related_p". Generate CFA annotation when it's necessary.
17241 (aarch64_expand_prologue): Use aarch64_add_constant.
17242 (aarch64_expand_epilogue): Likewise.
17243 (aarch64_output_mi_thunk): Pass "false" when calling
17244 aarch64_add_constant.
17245
17246 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17247
17248 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
17249 sequences.
17250
17251 2016-07-25 Jiong Wang <jiong.wang@arm.com>
17252
17253 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
17254 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
17255 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
17256 (aarch64_build_constant): Delete.
17257
17258 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
17259
17260 Revert
17261 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17262
17263 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17264 flag_toplevel_reorder.
17265
17266 2016-07-25 Richard Biener <rguenther@suse.de>
17267
17268 * cgraph.c (cgraph_node::verify_node): Compare against builtin
17269 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
17270 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
17271 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
17272 (streamer_get_builtin_tree): Likewise.
17273 (streamer_write_builtin): Likewise.
17274 * lto-streamer.h (LTO_builtin_decl): Remove.
17275 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
17276 (lto_input_scc): Remove LTO_builtin_decl handling.
17277 (lto_input_tree_1): Liekwise.
17278 * lto-streamer-out.c (lto_output_tree_1): Remove special
17279 handling of builtins.
17280 (DFS::DFS): Likewise.
17281 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
17282 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
17283 assert.
17284 (streamer_write_builtin): Remove.
17285
17286 2016-07-25 Martin Liska <mliska@suse.cz>
17287
17288 * lto-cgraph.c (input_symtab): Don't call get_working_sets
17289 if flag_auto_profile is set to true.
17290
17291 2016-07-25 Martin Liska <mliska@suse.cz>
17292
17293 PR gcov-profile/71868
17294 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
17295 have a function with multiple latches, count them all.
17296
17297 2016-07-25 Martin Liska <mliska@suse.cz>
17298
17299 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
17300
17301 2016-07-25 Martin Liska <mliska@suse.cz>
17302
17303 PR tree-optimization/71987
17304 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
17305 just for SSA_NAMEs. Fix GNU coding style.
17306
17307 2016-07-25 Martin Liska <mliska@suse.cz>
17308
17309 PR gcov-profile/64874
17310 * gcov-io.h: Update command about file format.
17311 * gcov-iov.c (main): Adapt the numbering scheme.
17312
17313 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17314
17315 PR middle-end/66726
17316 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
17317 whose result is used in PHI.
17318 (final_range_test_p): Likewise.
17319 (maybe_optimize_range_tests): Likewise.
17320
17321 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
17322
17323 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17324 Reformat two multi-line strings.
17325
17326 2016-07-22 Martin Sebor <msebor@redhat.com>
17327
17328 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
17329
17330 2016-07-22 Martin Sebor <msebor@redhat.com>
17331
17332 PR c/71560
17333 * doc/extend.texi (Compound Literals): Correct and clarify.
17334 (Cast to Union): Same.
17335
17336 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
17337
17338 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17339 comments to explain why certain error messages make mention of
17340 undocumented options.
17341 (rs6000_invalid_builtin): Change error messages to replace mention
17342 of undocumented options with mention of the -mcpu=power9 option
17343 that enables those undocumented options.
17344 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
17345 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
17346 definition of this macro to correct an existing error.
17347 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
17348 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
17349 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
17350 descriptions of built-in functions so that they depend on
17351 -mcpu=power9 instead of on the corresponding undocumented flags.
17352 * doc/invoke.texi (Option Summary): Remove all mention of newly
17353 undocumented flags.
17354 (IBM RS/6000 and PowerPC Options): Likewise.
17355 * doc/md.texi (Constraints for Particuliar Machines): Remove all
17356 mention of newly undocumented flags.
17357
17358 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
17359
17360 * ipa-cp.c (determine_versionability): Do not create constprop clones,
17361 when target_clones attribute is set.
17362
17363 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17364
17365 * common.opt (funsafe-loop-optimizations): Mark ignore.
17366 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
17367 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
17368 related code.
17369 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
17370 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
17371
17372 2016-07-22 Bin Cheng <bin.cheng@arm.com>
17373
17374 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17375 Parameter.
17376 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17377 Parameter.
17378 (number_of_iterations_exit): Warn missed loop optimization for
17379 possible infinite loops.
17380
17381 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
17382
17383 PR target/71216
17384 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
17385 when to emit a ".machine" pseudo-op.
17386
17387 2016-07-22 Martin Liska <mliska@suse.cz>
17388
17389 PR gcov-profile/69028
17390 PR gcov-profile/62047
17391 * coverage.c (coverage_compute_lineno_checksum): Do not
17392 calculate checksum for fns w/o xloc.file.
17393 (coverage_compute_profile_id): Likewise.
17394
17395 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
17396
17397 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
17398 (avr_secondary_reload): ...and implementation.
17399 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
17400 * config/avr/avr.md (reload_in<mode>): Remove insns.
17401 (adjust_len) [lpm]: Remove insn attribute value.
17402 * config/avr/predicates.md (flash_operand): Remove insn predicate.
17403
17404 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17405
17406 PR middle-end/71876
17407 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
17408 attribute.
17409 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
17410 * calls.c (special_function_p): Remove the special handling of the
17411 "__builtin_" prefix.
17412
17413 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
17414
17415 PR middle-end/71876
17416 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
17417 if STMT may be an alloca call.
17418 (gimple_alloca_call_p, alloca_call_p): Return only true for the
17419 builtin alloca call.
17420 * calls.h (gimple_maybe_alloca_call_p): New function.
17421 * tree-inline.c (inline_forbidden_p_stmt): Use
17422 gimple_maybe_alloca_call_p here.
17423
17424 2016-07-21 David Malcolm <dmalcolm@redhat.com>
17425
17426 * spellcheck-tree.c (best_macro_match::best_macro_match):
17427 Explictly specify the template arguments when invoking the base
17428 class constructor, to help older C++ compilers.
17429
17430 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17431
17432 PR sanitizer/71953
17433 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
17434 before builtin_decl_implicit.
17435
17436 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17437
17438 * optabs.c (emit_condiitonal_move): Short circuit for identical
17439 sources.
17440
17441 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17442
17443 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
17444 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
17445 (noce_conversion_profitable_p): New.
17446 (noce_try_store_flag_constants): Use it.
17447 (noce_try_addcc): Likewise.
17448 (noce_try_store_flag_mask): Likewise.
17449 (noce_try_cmove): Likewise.
17450 (noce_try_cmove_arith): Likewise.
17451 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
17452 overwriting it.
17453 (noce_convert_multiple_sets): Move cost model to here, from...
17454 (bb_ok_for_noce_convert_multiple_sets) ...here.
17455 (noce_process_if_block): Update calls for above changes.
17456 (noce_find_if_block): Record new noce_if_info parameters.
17457
17458 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
17459
17460 * target.def (max_noce_ifcvt_seq_cost): New.
17461 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
17462 * doc/tm.texi: Regenerate.
17463 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
17464 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
17465 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
17466 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
17467 * doc/invoke.texi: Document new params.
17468
17469 2016-07-21 Richard Biener <rguenther@suse.de>
17470
17471 PR tree-optimization/71947
17472 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
17473 ranges have useful limit_vr information.
17474
17475 2016-07-21 Richard Biener <rguenther@suse.de>
17476
17477 * function-tests.c (build_trivial_generic_function): Set
17478 BLOCK_SUPERCONTEXT of DECL_INITIAL.
17479 * omp-low.c (create_omp_child_function): Likewise.
17480 (grid_expand_target_grid_body): Likewise.
17481 * cgraphunit.c (init_lowered_empty_function): Likewise.
17482 (cgraph_node::expand_thunk): Likewise.
17483 * tree-parloops.c (create_loop_fn): Likewise.
17484 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
17485
17486 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17487
17488 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
17489 in comment.
17490
17491 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
17492
17493 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
17494 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
17495 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
17496 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
17497 values for insn attribute.
17498 * config/avr/avr.c (avr_out_insert_notbit): New function.
17499 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
17500 ADJUST_LEN_INSV_NOTBIT_0/_7.
17501 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
17502
17503 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17504
17505 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
17506 (chrec_convert_1, chrec_convert): Ditto.
17507 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
17508 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
17509 * tree-vrp.c (adjust_range_with_scev): Ditto.
17510 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
17511 (scev_var_range_cant_overflow): New function.
17512 (scev_probably_wraps_p): New parameter. Call above function.
17513 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
17514
17515 2016-07-21 Bin Cheng <bin.cheng@arm.com>
17516
17517 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
17518 by removing computation of may_be_zero.
17519
17520 2016-07-21 Jakub Jelinek <jakub@redhat.com>
17521
17522 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
17523
17524 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
17525
17526 Improving concepts performance and diagnostics.
17527 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
17528 for constraint satisfaction and subsumption.
17529 * timevar.h (auto_timevar): New constructor that matches the push/pop
17530 pattern of usage in pt.c.
17531
17532 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17533
17534 * hwint.h (HOST_WIDE_INT_0): New define.
17535 (HOST_WIDE_INT_0U): Ditto.
17536 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
17537 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
17538 * simplify-rtx.c: Ditto.
17539 * tree-object-size.c: Ditto.
17540
17541 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17542
17543 * config/s390/s390.c (s390_encode_section_info): Remove mode size
17544 check.
17545
17546 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
17547
17548 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
17549 * combine.c: Use HOST_WIDE_INT_M1U instead of
17550 ~(unsigned HOST_WIDE_INT) 0.
17551 * double-int.h: Ditto.
17552 * dse.c: Ditto.
17553 * dwarf2asm.c:Ditto.
17554 * expmed.c: Ditto.
17555 * genmodes.c: Ditto.
17556 * match.pd: Ditto.
17557 * read-rtl.c: Ditto.
17558 * tree-ssa-loop-ivopts.c: Ditto.
17559 * tree-ssa-loop-prefetch.c: Ditto.
17560 * tree-vect-generic.c: Ditto.
17561 * tree-vect-patterns.c: Ditto.
17562 * tree.c: Ditto.
17563
17564 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17565
17566 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
17567 constant addresses outside [0,0xc0] into a register.
17568 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
17569 cases where the base address register is unused after.
17570 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
17571 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
17572 (avr_out_store_psi_reg_disp_tiny): Same.
17573
17574 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17575
17576 Implement attribute progmem on reduced Tiny cores by adding
17577 flash offset 0x4000 to respective symbols.
17578
17579 PR target/71948
17580 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
17581 documentation how it works on reduced Tiny cores.
17582 (AVR Named Address Spaces): No support for reduced Tiny.
17583 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
17584 (avr_address_tiny_pm_p): New static function.
17585 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
17586 if the address is in progmem.
17587 (avr_assemble_integer): Same.
17588 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
17589 for symbol_ref in progmem.
17590 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
17591 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
17592 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
17593
17594 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
17595
17596 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
17597 * configure: Regenerate.
17598 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
17599 (USE_THIN_ARCHIVES): New variable.
17600 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
17601 this archive as a thin archive.
17602
17603 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17604
17605 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
17606 same location as last time, don't skip if we have fix-it hints.
17607 Clarify the skipping logic by converting it from one "if" clause
17608 to repeated "if" clauses.
17609 * spellcheck-tree.c: Include "cpplib.h".
17610 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
17611 (best_macro_match::best_macro_match): New constructor.
17612 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
17613 Move here from c/c-decl.c.
17614 (class best_macro_match): Move here from c/c-decl.c, converting
17615 from a typedef to a subclass, gaining a ctor.
17616
17617 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17618
17619 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
17620 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
17621 define...
17622 (avr_addr_space_diagnose_usage): ...and implementation.
17623 (avr_addr_space_supported_p): New function.
17624 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
17625 report bad address space usage if that space is supported.
17626 (avr_insert_attributes): Same. No more complain about unsupported
17627 address spaces.
17628 * config/avr/avr-c.c (tm_p.h): Include it.
17629 (avr_cpu_cpp_builtins): Only define addr-space related built-in
17630 macro if avr_addr_space_supported_p.
17631
17632 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
17633
17634 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
17635 flag_toplevel_reorder.
17636
17637 2016-07-20 David Malcolm <dmalcolm@redhat.com>
17638
17639 * gcc-rich-location.c
17640 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
17641 a const char *.
17642 * gcc-rich-location.h
17643 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
17644
17645 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
17646
17647 * target.def (addr_space): Add new diagnose_usage to hook vector.
17648 * targhooks.c (default_addr_space_diagnose_usage): Add default
17649 implementation and...
17650 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
17651 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
17652 is some address space, call targetm.addr_space.diagnose_usage.
17653 * doc/tm.texi.in (Named Address Spaces): Add anchor for
17654 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
17655 * doc/tm.texi: Regenerate.
17656
17657 2016-07-20 Martin Liska <mliska@suse.cz>
17658
17659 PR middle-end/71898
17660 * graphite-isl-ast-to-gimple.c (later_of_the_two):
17661 Properly handly PHI stmts.
17662
17663 2016-07-20 Bin Cheng <bin.cheng@arm.com>
17664
17665 PR tree-optimization/71503
17666 PR tree-optimization/71683
17667 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
17668 and break.
17669
17670 2016-07-20 Martin Liska <mliska@suse.cz>
17671
17672 * doc/invoke.texi (-fipa-ra): Document when the option is
17673 disabled. Fix a typo.
17674
17675 2016-07-20 Martin Liska <mliska@suse.cz>
17676
17677 * Makefile.in: Include fibonacci_heap.c
17678 * fibonacci_heap.c: New file.
17679 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
17680 (fibonacci_heap::union_with): Fix deletion of the second heap.
17681 * selftest-run-tests.c (selftest::run_tests): Incorporate
17682 fibonacci heap tests.
17683 * selftest.h: Declare fibonacci_heap_c_tests.
17684
17685 2016-07-20 Martin Liska <mliska@suse.cz>
17686
17687 * selftest-run-tests.c (selftest::run_tests): New function.
17688 * selftest.h (sreal_c_tests): Declare.
17689 * sreal.c (sreal_verify_basics): New function.
17690 (verify_aritmetics): Likewise.
17691 (sreal_verify_arithmetics): Likewise.
17692 (verify_shifting): Likewise.
17693 (sreal_verify_shifting): Likewise.
17694 (void sreal_c_tests): Likewise.
17695
17696 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17697
17698 PR rtl-optimization/71916
17699 * cfgrtl.c (contains_no_active_insn_p): Return false also for
17700 bb which have a single succ fake edge.
17701
17702 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
17703
17704 PR debug/71855
17705 * dwarf2out.c (gen_subprogram_die): Only call
17706 gen_unspecified_parameters_die while dumping early dwarf.
17707
17708 2016-07-19 Jakub Jelinek <jakub@redhat.com>
17709
17710 PR middle-end/71874
17711 * gimple-fold.c (fold_builtin_memory_op): Use
17712 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
17713
17714 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
17715
17716 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
17717 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
17718 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
17719 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
17720 * combine.c: Ditto.
17721 * cse.c: Ditto.
17722 * dojump.c: Ditto.
17723 * double-int.c: Ditto.
17724 * dse.c: Ditto.
17725 * dwarf2out.c: Ditto.
17726 * expmed.c: Ditto.
17727 * expr.c: Ditto.
17728 * fold-const.c: Ditto.
17729 * function.c: Ditto.
17730 * fwprop.c: Ditto.
17731 * genmodes.c: Ditto.
17732 * hwint.c: Ditto.
17733 * hwint.h: Ditto.
17734 * ifcvt.c: Ditto.
17735 * loop-doloop.c: Ditto.
17736 * loop-invariant.c: Ditto.
17737 * loop-iv.c: Ditto.
17738 * match.pd: Ditto.
17739 * optabs.c: Ditto.
17740 * real.c: Ditto.
17741 * reload.c: Ditto.
17742 * rtlanal.c: Ditto.
17743 * simplify-rtx.c: Ditto.
17744 * stor-layout.c: Ditto.
17745 * toplev.c: Ditto.
17746 * tree-ssa-loop-ivopts.c: Ditto.
17747 * tree-vect-generic.c: Ditto.
17748 * tree-vect-patterns.c: Ditto.
17749 * tree.c: Ditto.
17750 * tree.h: Ditto.
17751 * ubsan.c: Ditto.
17752 * varasm.c: Ditto.
17753 * wide-int-print.cc: Ditto.
17754 * wide-int.cc: Ditto.
17755 * wide-int.h: Ditto.
17756
17757 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17758
17759 * selftest.c (selftest::assert_streq): Handle NULL values of
17760 val_actual and val_expected.
17761
17762 2016-07-19 Martin Jambor <mjambor@suse.cz>
17763
17764 PR fortran/71688
17765 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
17766 rather than cgraph_create_node to get a call graph node.
17767
17768 2016-07-19 Richard Biener <rguenther@suse.de>
17769
17770 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
17771 handle all tcc_constant bases and valueize SSA names.
17772 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
17773 tcc_constant bases.
17774
17775 2016-07-19 David Malcolm <dmalcolm@redhat.com>
17776
17777 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
17778 the flags of the exit block and bb2, not just the entry block.
17779
17780 2016-07-19 Richard Biener <rguenther@suse.de>
17781
17782 PR tree-optimization/71901
17783 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17784 align member, group stuff with the bitfield.
17785 (vn_ref_op_align_unit): New inline.
17786 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
17787 record element alignment and operand 3 unchanged.
17788 (ao_ref_init_from_vn_reference): Adjust.
17789 (valueize_refs_1): Likewise.
17790 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17791
17792 2016-07-19 Richard Biener <rguenther@suse.de>
17793
17794 PR tree-optimization/71908
17795 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
17796 symbolic constants in a more reliable way.
17797
17798 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
17799
17800 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
17801 comment.
17802 (vect_update_inits_of_drs): Likewise.
17803 (vect_create_cond_for_alias_checks): Likewise.
17804 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
17805
17806 2016-07-19 Richard Biener <rguenther@suse.de>
17807
17808 PR lto/71907
17809 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
17810 with an abstract origin that is not an inlined function outer
17811 scope add a self-reference as abstract origin.
17812 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
17813
17814 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
17815
17816 PR target/71493
17817 * config/rs6000/rs6000.c (rs6000_function_value): Fix
17818 unintentional System V.4 structure return breakage for structures
17819 with a single floating point element.
17820
17821 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
17822
17823 PR tree-optimization/71734
17824 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
17825 contains REF, use it to check safelen, assume that safelen value
17826 must be greater 1, fix style.
17827 (ref_indep_loop_p_2): Add REF_LOOP argument.
17828 (ref_indep_loop_p): Pass LOOP as additional argument to
17829 ref_indep_loop_p_2.
17830
17831 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
17832
17833 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
17834 allocation in the prologue.
17835 * explow.c (get_dynamic_stack_base): New function to return an address
17836 expression for the dynamic stack base.
17837 (get_dynamic_stack_size): New function to do the required dynamic stack
17838 space size calculations.
17839 (allocate_dynamic_stack_space): Use new functions.
17840 (align_dynamic_address): Move some code from
17841 allocate_dynamic_stack_space to new function.
17842 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
17843
17844 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17845
17846 * config/s390/s390.c (s390_encode_section_info): Always set
17847 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
17848 found.
17849
17850 2016-07-18 Richard Biener <rguenther@suse.de>
17851
17852 PR tree-optimization/71893
17853 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
17854 for sizetype cast added by array_ref_element_size.
17855 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17856
17857 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
17858
17859 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
17860 register parameters. Remove code to initialize argument pointer
17861 on TARGET_64BIT. Optimize call to _mcount when it can be reached
17862 using a pc-relative branch. Cleanup conditional code.
17863 * config/pa/pa.md (call_mcount): New expander.
17864 (call_mcount_nonpic): New insn.
17865 (call_mcount_pic): New insn and split.
17866 (call_mcount_pic_post_reload): New insn.
17867 (call_mcount_64bit): New insn and split.
17868 (call_mcount_64bit_post_reload): New insn.
17869
17870 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
17871
17872 * config/avr/predicates.md (const_m255_to_m1_operand): New.
17873 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
17874 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
17875 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
17876 (*usum_widenqihi3, *udiff_widenqihi3)
17877 (*addhi3_zero_extend.const): New combiner insns.
17878 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
17879 just 1 bit is affected.
17880 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
17881 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
17882
17883 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
17884
17885 * omp-low.c (lower_omp_target): Mark data clauses with
17886 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
17887 zero-length subarrays.
17888
17889 2016-07-15 Richard Biener <rguenther@suse.de>
17890
17891 PR tree-optimization/71881
17892 * tree-loop-distribution.c (destroy_loop): Remove blocks in
17893 reverse DOM order to make debug temp generation happy.
17894
17895 2016-07-15 Richard Biener <rguenther@suse.de>
17896
17897 PR tree-optimization/71887
17898 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
17899 verify it is not zero for division / modulo handling.
17900 (value_replacement): Adjust.
17901
17902 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
17903 Julian Brown <julian@codesourcery.com>
17904
17905 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
17906 * config/aarch64/aarch64-cost-tables.h
17907 (vulcan_extra_costs): New variable.
17908 * config/aarch64/aarch64.c
17909 (vulcan_addrcost_table): Likewise.
17910 (vulcan_regmove_cost): Likewise.
17911 (vulcan_vector_cost): Likewise.
17912 (vulcan_branch_cost): Likewise.
17913 (vulcan_tunings): Likewise.
17914
17915 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
17916
17917 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
17918 (output_in_order): Loop over undefined variables too. Output them
17919 via assemble_undefined_decl. Skip variables that correspond to hard
17920 registers or have value-exprs.
17921 * varpool.c (symbol_table::output_variables): Handle undefined
17922 variables together with defined ones.
17923
17924 2016-07-15 Richard Biener <rguenther@suse.de>
17925
17926 * tree-ssa-pre.c (get_representative_for): Make sure to return
17927 the value number of SSA names.
17928 (phi_translate_1): get_representative_for cannot return NULL.
17929 (do_pre_regular_insertion): Remove redundant call to
17930 fully_constant_expression.
17931 (do_pre_partial_partial_insertion): Likewise.
17932
17933 2016-07-15 Bin Cheng <bin.cheng@arm.com>
17934
17935 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
17936 (derive_simple_iv_with_niters): New function.
17937 (simple_iv): Rewrite using simple_iv_with_niters.
17938 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
17939 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
17940 function.
17941 (number_of_iterations_exit): Rewrite using above function.
17942 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
17943 Decl.
17944
17945 2016-07-15 Richard Biener <rguenther@suse.de>
17946
17947 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
17948 vec_construct cost.
17949
17950 2016-07-14 Jakub Jelinek <jakub@redhat.com>
17951
17952 PR tree-optimization/71872
17953 * tree-data-ref.c (get_references_in_stmt): Ignore references
17954 with is_gimple_constant get_base_address.
17955
17956 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17957
17958 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
17959 (TARGET_HAVE_LDACQD): New macro.
17960 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
17961 than TARGET_HAVE_LDACQ.
17962 (arm_load_acquire_exclusivedi): Likewise.
17963 (arm_store_release_exclusivedi): Likewise.
17964
17965 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
17966
17967 PR rtl-optimization/71878
17968 * lra-constraints.c (match_reload): Pass information about other
17969 output operands. Create new unique register value if matching input
17970 operand shares same register value as output operand being considered.
17971 (curr_insn_transform): Record output operands already processed.
17972
17973 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17974
17975 PR target/65951
17976 PR tree-optimization/70923
17977 * tree-vect-patterns.c: Include mult-synthesis.h.
17978 (target_supports_mult_synth_alg): New function.
17979 (synth_lshift_by_additions): Likewise.
17980 (apply_binop_and_append_stmt): Likewise.
17981 (vect_synth_mult_by_constant): Likewise.
17982 (target_has_vecop_for_code): Likewise.
17983 (vect_recog_mult_pattern): Use above functions to synthesize vector
17984 multiplication by integer constants.
17985
17986 2016-07-14 Alan Modra <amodra@gmail.com>
17987
17988 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
17989 gpr alternatives. Correct '*' placement on Y,r alternative.
17990 Add '*' on operand 1 of r,r alternative.
17991
17992 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17993
17994 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
17995 * expmed.h: ... Here.
17996
17997 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
17998
17999 * gimple.h (stmt_can_terminate_bb_p): New function.
18000 * tree-cfg.c (need_fake_edge_p): Rename to ...
18001 (stmt_can_terminate_bb_p): ... this; return true if stmt can
18002 throw external; handle const and pure calls.
18003 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
18004
18005 2016-07-14 Richard Biener <rguenther@suse.de>
18006
18007 PR tree-optimization/71866
18008 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
18009 (do_hoist_insertion): Avoid endless recursion when we
18010 didn't insert anything because we managed to simplify
18011 things down to a constant or SSA name.
18012 (fully_constant_expression): Re-write in terms of ...
18013 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
18014 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
18015 vn_nary_build_or_lookup_1.
18016 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
18017 (vn_nary_build_or_lookup): ... this which now wraps it.
18018
18019 2016-07-14 Alan Modra <amodra@gmail.com>
18020
18021 PR target/71733
18022 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
18023 with p9_vector override before power9-dform override.
18024
18025 2016-07-13 Andi Kleen <ak@linux.intel.com>
18026
18027 * value-prof.c (gimple_value_profile_transformations): Don't run
18028 when auto_profile is on.
18029
18030 2016-07-13 Andi Kleen <ak@linux.intel.com>
18031
18032 * auto-profile.c (update_inlined_ind_target,
18033 afdo_indirect_call): Print information to dump file.
18034
18035 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
18036
18037 * genrecog.c (special_predicate_operand_p): New function.
18038 (predicate_name): Move function.
18039 (validate_pattern): Don't warn about missing mode for all
18040 define_special_predicate predicates.
18041
18042 2016-07-13 Bin Cheng <bin.cheng@arm.com>
18043
18044 * tree-vect-data-refs.c (vect_no_alias_p): New function.
18045 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
18046 resolve alias checks which are known at compilation time.
18047 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
18048 alias checks are resolved. Move dump info for too many runtime
18049 alias checks to here...
18050 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
18051
18052 2016-07-13 Richard Biener <rguenther@suse.de>
18053
18054 PR tree-optimization/24574
18055 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
18056 position and add shift, rotate, divison and modulo support
18057 for left zero.
18058 (value_replacement): Pass in argument position to absorbing_element_p.
18059
18060 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
18061
18062 PR ipa/71633
18063 * ipa-inline-transform.c (inline_call): Support
18064 instrumented thunks.
18065
18066 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18067
18068 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
18069 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
18070 divide feature.
18071 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
18072 Baseline. Make initial alternative TARGET_32BIT only.
18073 (udivsi3): Likewise.
18074 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
18075 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
18076 target.
18077
18078 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18079
18080 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
18081 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
18082 availability with TARGET_HAVE_MOVT.
18083 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
18084 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
18085 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
18086 UINTVAL.
18087 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
18088 extra instruction if MOVW is available. Use a cost variable
18089 incremented by COSTS_N_INSNS (1) when the condition match rather than
18090 returning an arithmetic expression based on COSTS_N_INSNS. Make
18091 constant with bottom half word zero cost 2 instruction if MOVW is
18092 available.
18093 * config/arm/arm.md (define_attr "arch"): Add v8mb.
18094 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
18095 target is ARMv8-M Baseline.
18096 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
18097 (arm_movtas_ze): Likewise.
18098 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
18099 alternative for constants satisfying j constraint.
18100 (thumb1_movsi_insn): Likewise.
18101 (movsi splitter for K alternative): Tighten condition to not trigger
18102 if movt is available and j constraint is satisfied.
18103 (Pe immediate splitter): Likewise.
18104 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
18105 constant fitting in an halfword to use MOVW.
18106 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
18107 effective target.
18108
18109 2016-07-13 Richard Biener <rguenther@suse.de>
18110
18111 PR middle-end/71104
18112 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
18113 gimplifying the LHS. Make sure to gimplify a returning twice
18114 call LHS without using SSA names.
18115
18116 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18117
18118 * tree-data-ref.c (find_data_references_in_stmt): Remove
18119 unnecessary call to vec::release.
18120 (graphite_find_data_references_in_stmt): Likewise.
18121 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
18122 * tree-vect-stmts.c (vectorizable_condition): Likewise.
18123
18124 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18125
18126 * cfgexpand.c (expand_used_vars): Make the type of a local
18127 variable auto_vec.
18128 * genmatch.c (lower_for): Likewise.
18129 * haifa-sched.c (haifa_sched_init): Likewise.
18130 (add_to_speculative_block): Likewise.
18131 (create_check_block_twin): Likewise.
18132 * predict.c (handle_missing_profiles): Likewise.
18133 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
18134 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
18135 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
18136 Likewise.
18137 (maybe_lower_iteration_bound): Likewise.
18138 * tree-ssa-sccvn.c (DFS): Likewise.
18139 * tree-stdarg.c (reachable_at_most_once): Likewise.
18140 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
18141 (vectorizable_store): Likewise.
18142
18143 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18144
18145 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
18146 (sccvn_dom_walker): make cond_stack an auto_vec.
18147
18148 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18149
18150 * ree.c (struct ext_state): Make type of members auto_vec.
18151 (find_and_remove_re): Adjust.
18152
18153 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18154
18155 * cfgexpand.c (struct stack_vars_data): Make type of fields
18156 auto_vec.
18157 (expand_used_vars): Adjust.
18158
18159 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18160
18161 * ipa.c (record_cdtor_fn): Adjust.
18162 (build_cdtor_fns): Likewise.
18163 (ipa_cdtor_merge): Make static_ctors and static_dtors local
18164 variables.
18165
18166 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18167
18168 * genextract.c (struct accum_extract): Add constructor and make
18169 members auto_vec.
18170 (gen_insn): Adjust.
18171
18172 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18173
18174 * tree.c (struct free_lang_data_d): Add constructor and change
18175 types of members to ones that automatically manage resources.
18176 (fld_worklist_push): Adjust.
18177 (find_decls_types): Likewise.
18178 (find_decls_types_in_eh_region): Likewise.
18179 (free_lang_data_in_cgraph): Stop manually creating and
18180 destroying members of free_lang_data_d.
18181
18182 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
18183
18184 PR rtl-optimization/68961
18185 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
18186 peephole variant. Use sse_reg_operand predicates.
18187
18188 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
18189
18190 * config/i386/predicates.md (x86_64_immediate_operand)
18191 <case CONST_INT>: Remove unneeded truncation to DImode.
18192 <case CONST>: Ditto.
18193 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18194
18195 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18196
18197 PR target/71805
18198 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
18199 The xxperm and xxpermr instructions require that the 2nd input
18200 operand overlap with the output operand, and not the 1st.
18201 (altivec_vperm_v8hiv16qi): Likewise.
18202 (altivec_vperm_<mode>_uns_internal): Likewise.
18203 (altivec_vpermr_<mode>_internal): Likewise.
18204 (vperm_v8hiv4si): Likewise.
18205 (vperm_v16qiv8hi): Likewise.
18206
18207 2016-07-12 Nathan Sidwell <nathan@acm.org>
18208
18209 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
18210 when -mno-pic-data-is-text-relative is in effect, by default.
18211 * doc/invoke.texi (mpic-data-is-text-relative): Document new
18212 behavior and clarify.
18213
18214 2016-07-12 Martin Liska <mliska@suse.cz>
18215
18216 * params.def: Add avg-loop niter.
18217 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
18218 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
18219 * doc/invoke.texi: Document the new parameter.
18220
18221 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18222
18223 PR middle-end/71700
18224 * expr.c (store_constructor): Mask sign-extended bits when widening
18225 sub-word constructor element at the start of a word.
18226
18227 2016-07-12 Martin Liska <mliska@suse.cz>
18228
18229 * Makefile.in: Append rule for params-options.h.
18230 * params-options.h: New file.
18231
18232 2016-07-12 Martin Liska <mliska@suse.cz>
18233
18234 * ira-build.c (mark_loops_for_removal): Properly iterate
18235 loops.
18236
18237 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
18238 Richard Biener <rguenther@suse.de>
18239
18240 PR tree-optimization/23286
18241 PR tree-optimization/70159
18242 * doc/invoke.texi: Document -fcode-hoisting.
18243 * common.opt (fcode-hoisting): New flag.
18244 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
18245 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
18246 (do_regular_insertion): Rename to ...
18247 (do_pre_regular_insertion): ... this and amend general comments
18248 on insertion strathegy.
18249 (do_partial_partial_insertion): Rename to ...
18250 (do_pre_partial_partial_insertion): ... this.
18251 (do_hoist_insertion): New function.
18252 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
18253 and call do_hoist_insertion properly.
18254 (insert): Adjust.
18255 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
18256 (pass_pre::execute): Register hoist_insert stats.
18257
18258 2016-07-12 Jakub Jelinek <jakub@redhat.com>
18259
18260 PR middle-end/71716
18261 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
18262 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
18263 is different from mode's bitsize. Small cleanup.
18264
18265 2016-07-12 Richard Biener <rguenther@suse.de>
18266
18267 PR rtl-optimization/68961
18268 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
18269 to simplify to a non-constant.
18270
18271 2016-07-11 Jakub Jelinek <jakub@redhat.com>
18272
18273 PR middle-end/71758
18274 * omp-low.c (expand_omp_target): Gimplify device.
18275
18276 PR tree-optimization/71823
18277 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
18278 to get vec_oprnds2 from op2.
18279
18280 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
18281
18282 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
18283 Hoist common subexpressions.
18284 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
18285
18286 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
18287
18288 PR target/71800
18289 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
18290 prevent generation of 'stxsiwx' on pre Power8 hardware.
18291
18292 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18293
18294 * input.c: Include cpplib.h.
18295 (selftest::temp_source_file): New class.
18296 (selftest::temp_source_file::temp_source_file): New ctor.
18297 (selftest::temp_source_file::~temp_source_file): New dtor.
18298 (selftest::should_have_column_data_p): New function.
18299 (selftest::test_should_have_column_data_p): New function.
18300 (selftest::temp_line_table): New class.
18301 (selftest::temp_line_table::temp_line_table): New ctor.
18302 (selftest::temp_line_table::~temp_line_table): New dtor.
18303 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
18304 it to create a temp_line_table.
18305 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
18306 locations that are known to have column data.
18307 (selftest::line_table_case): New struct.
18308 (selftest::test_reading_source_line): Move tempfile handling
18309 to class temp_source_file.
18310 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
18311 (selftest::assert_token_loc_eq): New function.
18312 (ASSERT_TOKEN_LOC_EQ): New macro.
18313 (selftest::test_lexer): New function.
18314 (selftest::boundary_locations): New array.
18315 (selftest::input_c_tests): Call test_should_have_column_data_p.
18316 Loop over a test matrix of interesting values of location and
18317 default_range_bits, calling test_lexer on each case in the matrix.
18318 Move call to test_accessing_ordinary_linemaps into the matrix.
18319 * selftest.h (ASSERT_EQ): Reimplement in terms of...
18320 (ASSERT_EQ_AT): New macro.
18321
18322 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
18323
18324 PR target/71801
18325 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18326 Don't convert TImode in debug insn.
18327
18328 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
18329
18330 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
18331 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
18332 (tree_type_common::lang_flag_7): New.
18333 (tree_type_common::spare): Reduce size.
18334 * tree.h (TYPE_ALIGN_OK): Remove.
18335 (TYPE_LANG_FLAG_7): New.
18336 (get_inner_reference): Adjust header.
18337 * print-tree.c (print_node): Adjust.
18338 * expr.c (get_inner_reference): Remove parameter keep_aligning.
18339 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
18340 calls to get_inner_reference.
18341 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
18342 handling of TYPE_ALIGN_OK.
18343 * builtins.c (get_object_alignment_2): Adjust call to
18344 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
18345 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
18346 TYPE_ALIGN_OK.
18347 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
18348 * cfgexpand.c (expand_debug_expr): Likewise.
18349 * dbxout.c (dbxout_expand_expr): Likewise.
18350 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
18351 loc_list_from_tree, fortran_common): Likewise.
18352 * fold-const.c (optimize_bit_field_compare,
18353 decode_field_reference, fold_unary_loc, fold_comparison,
18354 split_address_to_core_and_offset): Likewise.
18355 * gimple-laddress.c (execute): Likewise.
18356 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
18357 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
18358 * hsa-gen.c (gen_hsa_addr): Likewise.
18359 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
18360 * tsan.c (instrument_expr): Likewise.
18361 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
18362 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
18363 * tree-affine.c (tree_to_aff_combination,
18364 get_inner_reference_aff): Adjust calls to get_inner_reference.
18365 * tree-data-ref.c (split_constant_offset_1,
18366 dr_analyze_innermost): Likewise.
18367 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
18368 * tree-sra.c (ipa_sra_check_caller): Likewise.
18369 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
18370 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
18371 bswap_replace): Likewise.
18372 * tree-vect-data-refs.c (vect_check_gather,
18373 vect_analyze_data_refs): Likewise.
18374 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
18375 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
18376 TYPE_ALIGN_OK.
18377
18378 2016-07-11 David Malcolm <dmalcolm@redhat.com>
18379
18380 * Makefile.in (selftest-valgrind): New phony target.
18381 * function-tests.c (selftest::build_cfg): Delete pass instances
18382 created by the test.
18383 (selftest::convert_to_ssa): Likewise.
18384 (selftest::test_expansion_to_rtl): Likewise.
18385 * tree-cfg.c (selftest::test_linear_chain): Release dominator
18386 vectors.
18387 (selftest::test_diamond): Likewise.
18388
18389 2016-07-11 Richard Biener <rguenther@suse.de>
18390
18391 PR tree-optimization/71816
18392 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
18393 than replacing all of its operands.
18394
18395 2016-07-11 Alan Modra <amodra@gmail.com>
18396
18397 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
18398 (ctr<mode>): Add unspec.
18399 (ctr<mode>_internal*): Likewise.
18400
18401 2016-07-08 James Bowman <james.bowman@ftdichip.com>
18402
18403 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
18404 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
18405
18406 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
18407
18408 PR rtl-optimization/71621
18409 * lra-constraints.c (process_alt_operands): Check combination of
18410 reg class and mode.
18411
18412 2016-07-08 Jason Merrill <jason@redhat.com>
18413 Richard Biener <rguenther@suse.de>
18414
18415 P0145: Refining Expression Order for C++.
18416 * gimplify.c (initial_rhs_predicate_for): New.
18417 (gimplfy_modify_expr): Gimplify RHS before LHS.
18418
18419 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18420
18421 PR target/71297
18422 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18423 Allow standard error handling to take over when a wrong number
18424 of arguments is presented to __builtin_vec_ld () or
18425 __builtin_vec_st ().
18426
18427 2016-07-08 Jiong Wang <jiong.wang@arm.com>
18428
18429 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
18430 variants.
18431 (smin): Likewise.
18432 (fmax): New entry.
18433 (fmin): Likewise.
18434 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
18435 __builtin_aarch64_fmaxv2sf.
18436 (vmaxnmq_f32): Likewise.
18437 (vmaxnmq_f64): Likewise.
18438 (vminnm_f32): Likewise.
18439 (vminnmq_f32): Likewise.
18440 (vminnmq_f64): Likewise.
18441
18442 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18443
18444 PR target/71806
18445 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
18446 enable -mfloat128-hardware by default.
18447 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
18448 that IEEE 128-bit hardware support needs.
18449 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18450 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
18451 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
18452 floating point requires.
18453 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18454 -mfloat128 and -mfloat128-hardware changes.
18455
18456 2016-07-08 Alan Hayward <alan.hayward@arm.com>
18457
18458 PR tree-optimization/71667
18459 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
18460
18461 2016-07-08 Martin Liska <mliska@suse.cz>
18462
18463 PR middle-end/71606
18464 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
18465 folding produces SAVE_EXPRs, thus return false for the type.
18466
18467 2016-07-07 Martin Liska <mliska@suse.cz>
18468
18469 * file-find.c (remove_prefix): New function.
18470 * file-find.h (remove_prefix): Declare the function.
18471 * gcc-ar.c (main): Skip a folder of the wrapper if
18472 a wrapped binary would point to the same file.
18473
18474 2016-07-07 Jan Hubicka <jh@suse.cz>
18475
18476 * tree-scalar-evolution.c (iv_can_overflow_p): export.
18477 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
18478 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
18479
18480 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
18481
18482 PR ipa/71624
18483 * ipa-inline-analysis.c (compute_inline_parameters): Set
18484 local.can_change_signature to false for intrumentation
18485 thunk callees.
18486
18487 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18488
18489 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
18490 with TARGET_HAVE_MOVT.
18491 (TARGET_HAVE_MOVT): Define.
18492 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
18493 availability with TARGET_HAVE_MOVT.
18494 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
18495 availability.
18496 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
18497 TARGET_THUMB2.
18498 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
18499 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
18500 * config/arm/constraints.md (define_constraint "j"): Use
18501 TARGET_HAVE_MOVT to check MOVT availability.
18502
18503 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18504
18505 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
18506
18507 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18508
18509 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
18510 (armv8-m.main): Likewise.
18511 (armv8-m.main+dsp): Likewise.
18512 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
18513 (FL_FOR_ARCH8M_MAIN): Likewise.
18514 * config/arm/arm-tables.opt: Regenerate.
18515 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
18516 armv8-m.main+dsp to BE8_LINK_SPEC.
18517 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
18518 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
18519 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
18520 Baseline and Mainline.
18521 (arm_option_override_internal): Also disable arm_restrict_it when
18522 !arm_arch_notm. Update comment for -munaligned-access to also cover
18523 ARMv8-M Baseline.
18524 (arm_file_start): Increase buffer size for printing architecture name.
18525 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
18526 and armv8-m.main+dsp.
18527 (mno-unaligned-access): Clarify that this is disabled by default for
18528 ARMv8-M Baseline architectures as well.
18529
18530 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
18531
18532 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
18533 decide whether to prevent some libgcc routines being included for some
18534 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
18535 link between this condition and the one in
18536 libgcc/config/arm/lib1func.S.
18537
18538 2016-07-07 Richard Biener <rguenther@suse.de>
18539
18540 * tree-ssa-pre.c: Include alias.h.
18541 (compute_avail): If we have multiple VN_REFERENCEs with the
18542 same hashtable entry adjust that to make it a valid replacement
18543 for all of them with respect to alignment and aliasing
18544 when doing insertion.
18545 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
18546 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
18547
18548 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
18549
18550 PR target/70098
18551 PR target/71763
18552 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18553 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
18554 constraint.
18555
18556 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18557
18558 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
18559 (adjust_mems): Adjust.
18560 (adjust_insn): Likewise.
18561 (prepare_call_arguments): Likewise.
18562
18563 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18564
18565 * gcse.c (struct ls_expr): Make stores field a vector.
18566 (ldst_entry): Adjust.
18567 (free_ldst_entry): Likewise.
18568 (print_ldst_list): Likewise.
18569 (compute_ld_motion_mems): Likewise.
18570 (update_ld_motion_stores): Likewise.
18571
18572 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18573
18574 * gcse.c (struct ls_expr): Remove loads field.
18575 (ldst_entry): Adjust.
18576 (free_ldst_entry): Likewise.
18577 (print_ldst_list): Likewise.
18578 (compute_ld_motion_mems): Likewise.
18579
18580 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18581
18582 * store-motion.c (struct st_expr): Make antic_stores a vector.
18583 (st_expr_entry): Adjust.
18584 (free_st_expr_entry): Likewise.
18585 (print_store_motion_mems): Likewise.
18586 (find_moveable_store): Likewise.
18587 (compute_store_table): Likewise.
18588 (remove_reachable_equiv_notes): Likewise.
18589 (replace_store_insn): Likewise.
18590 (build_store_vectors): Likewise.
18591
18592 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18593
18594 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
18595 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
18596
18597 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
18598
18599 PR tree-optimization/71518
18600 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
18601 misalign also for outer loops with negative step.
18602
18603 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
18604
18605 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
18606 (cortex_a53_shift): Add mov_shift.
18607 (cortex_a53_shift_reg): Add new reservation for register shifts.
18608 (cortex_a53_alu): Remove bfm.
18609 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
18610 (cortex_a53_alu_extr): Add new reservation for EXTR.
18611 (bypasses): Improve bypass modelling.
18612
18613 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18614
18615 PR target/50739
18616 * config/avr/avr.c (avr_asm_select_section): Strip off
18617 SECTION_DECLARED from flags when calling get_section.
18618
18619 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18620
18621 * tree-vectorizer.h (vect_memory_access_type): Add
18622 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
18623 * tree-vect-stmts.c (compare_step_with_zero): New function.
18624 (perm_mask_for_reverse): Move further up file.
18625 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
18626 step is negative.
18627 (get_negative_load_store_type): New function.
18628 (get_load_store_type): Call it. Add an ncopies argument.
18629 (vectorizable_mask_load_store): Update call accordingly and
18630 remove tests for negative steps.
18631 (vectorizable_store, vectorizable_load): Likewise. Handle new
18632 memory_access_types.
18633
18634 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18635
18636 * tree-vectorizer.h (vect_memory_access_type): New enum.
18637 (_stmt_vec_info): Add a memory_access_type field.
18638 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
18639 (vect_model_store_cost): Take an access type instead of a boolean.
18640 (vect_model_load_cost): Likewise.
18641 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
18642 vect_model_store_cost and vect_model_load_cost.
18643 * tree-vect-stmts.c (vec_load_store_type): New enum.
18644 (vect_model_store_cost): Take an access type instead of a
18645 store_lanes_p boolean. Simplify tests.
18646 (vect_model_load_cost): Likewise, but for load_lanes_p.
18647 (get_group_load_store_type, get_load_store_type): New functions.
18648 (vectorizable_store): Use get_load_store_type. Record the access
18649 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
18650 (vectorizable_load): Likewise.
18651 (vectorizable_mask_load_store): Likewise. Replace is_store
18652 variable with vls_type.
18653
18654 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18655
18656 * tree-vectorizer.h (vect_grouped_load_supported): Add a
18657 single_element_p parameter.
18658 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
18659 Check the PR65518 case here rather than in vectorizable_load.
18660 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
18661 * tree-vect-stmts.c (vectorizable_load): Likewise.
18662
18663 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18664
18665 * tree-vectorizer.h (gather_scatter_info): New structure.
18666 (vect_check_gather_scatter): Return a bool rather than a decl.
18667 Replace return-by-pointer arguments with a single
18668 gather_scatter_info *.
18669 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
18670 (vect_analyze_data_refs): Update call accordingly.
18671 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
18672 (vectorizable_mask_load_store): Likewise. Also record the
18673 offset dt and vectype in the gather_scatter_info.
18674 (vectorizable_store): Likewise.
18675 (vectorizable_load): Likewise.
18676
18677 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18678
18679 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
18680 strided groups, use the cost of N scalar accesses instead
18681 of ncopies vector accesses.
18682 (vect_model_load_cost): Likewise.
18683
18684 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18685
18686 * tree-vect-stmts.c (vect_cost_group_size): Delete.
18687 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
18688 variable to indicate when once-per-group costs are being used.
18689 (vect_model_load_cost): Likewise. Fix comment and misindented code.
18690
18691 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
18692
18693 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
18694 peeling-for-gaps condition.
18695
18696 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18697
18698 * config/s390/s390.c (s390_expand_vec_init): Force initializer
18699 element to register if it doesn't match general_operand.
18700
18701 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
18702 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18703
18704 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
18705 prototype.
18706 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
18707 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
18708 (SIGNBIT): New mode iterator.
18709 (Fsignbit): New mode attribute.
18710 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
18711 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
18712 when direct moves are available.
18713 (signbit<mode>2_dm): New define_insn_and_split).
18714 (signbit<mode>2_dm2): New define_insn.
18715
18716 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18717
18718 PR rtl-optimization/71594
18719 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
18720 into subregs of appropriate mode before trying to emit a conditional
18721 move.
18722
18723 2016-07-05 Jan Hubicka <jh@suse.cz>
18724
18725 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
18726 (simple_iv): Use it.
18727
18728 2016-07-05 Jan Hubicka <jh@suse.cz>
18729
18730 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
18731
18732 2016-07-05 Jiong Wang <jiong.wang@arm.com>
18733
18734 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
18735 "offmemok".
18736
18737 2016-07-05 Jan Hubicka <jh@suse.cz>
18738
18739 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
18740 IV can overflow.
18741
18742 2016-07-05 Richard Biener <rguenther@suse.de>
18743
18744 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
18745 Handle empty else block.
18746 (is_feasible_trace): Likewise.
18747 (split_paths): Likewise.
18748
18749 2016-07-05 Richard Biener <rguenther@suse.de>
18750
18751 * tree-loop-distribution.c (distribute_loop): Fix issue with
18752 the cost model loop.
18753
18754 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
18755
18756 * config/arm/neon-testgen.ml: Delete.
18757 * config/arm/neon.ml: Delete.
18758
18759 2016-07-04 Jakub Jelinek <jakub@redhat.com>
18760
18761 PR c++/71739
18762 * tree.c (attribute_value_equal): Use get_attribute_name instead of
18763 directly using TREE_PURPOSE.
18764
18765 2016-07-04 Jiong Wang <jiong.wang@arm.com>
18766
18767 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
18768 * config/aarch64/aarch64_neon.h: Likewise.
18769 * config/aarch64/arm_neon.h: Likewise.
18770 * config/aarch64/atomics.md: Likewise.
18771 * config/aarch64/aarch64-simd-builtins.def: Likewise.
18772 * doc/invoke.texi: Likewise.
18773
18774 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18775
18776 * config/s390/s390.md: Add "z13" cpu_facility.
18777 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
18778 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
18779 condition" type instructions.
18780
18781 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
18782 Jeff Law <law@redhat.com>
18783
18784 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
18785 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
18786
18787 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
18788
18789 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
18790 permutation for TARGET_AVX512F.
18791 (ix86_expand_vec_one_operand_perm_avx512): New function.
18792 (expand_vec_perm_1): Invoke introduced function.
18793 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
18794 it may be not valid after vectorization.
18795
18796 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18797
18798 PR target/63874
18799 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
18800 typo in comment. Only force to memory if it is a weak
18801 external reference.
18802
18803 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
18804 Jiong Wang <jiong.wang@arm.com>
18805
18806 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
18807 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
18808 (AARCH64_FL_F16): New.
18809 (AARCH64_FL_FOR_ARCH8_2): New.
18810 (AARCH64_ISA_8_2): New.
18811 (AARCH64_ISA_F16): New.
18812 (TARGET_FP_F16INST): New.
18813 (TARGET_SIMD_F16INST): New.
18814 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
18815 ("fp"): Disabling "fp" also disables "fp16".
18816 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
18817 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
18818 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
18819 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
18820
18821 2016-07-04 Jan Beulich <jbeulich@suse.com>
18822
18823 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
18824
18825 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18826
18827 PR target/71720
18828 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
18829 the insns, use an insn form that does not adjust the offset on
18830 little endian systems.
18831
18832 2016-07-01 Jan Beulich <jbeulich@suse.com>
18833
18834 * varasm.c (get_variable_section): Validate initializer in
18835 named .bss-like sections.
18836
18837 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
18838
18839 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
18840 Exchange the order of the second and third operands in the vpermr
18841 instruction tmeplate.
18842
18843 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
18844
18845 PR target/71698
18846 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
18847 Disallow TDmode values.
18848
18849 2016-07-01 Alan Modra <amodra@gmail.com>
18850
18851 PR rtl-optimization/71709
18852 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
18853 being set, not referenced.
18854
18855 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18856
18857 PR tree-optimization/70729
18858 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
18859 of loop since it can be not valid after transformation.
18860
18861 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18862
18863 * config/arm/arm.c (thumb_reload_in_hi): Delete.
18864 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
18865
18866 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
18867
18868 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
18869 for NULL decl.
18870
18871 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
18872
18873 PR target/71677
18874 * config/rs6000/constraints.md (wY constraint): New constraint to
18875 match the requirements for the LXSD and STXSD instructions.
18876 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
18877 predicate to match the requirements for the LXSD and STXSD
18878 instructions.
18879 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
18880 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
18881 to make sure that the bottom 2 bits of offset are 0, the address
18882 form is offsettable, and no updating is done in the address mode.
18883 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
18884 (movdi_internal32): Likewise
18885 (movdi_internal64): Likewise.
18886
18887 2016-06-30 Jakub Jelinek <jakub@redhat.com>
18888
18889 PR tree-optimization/71707
18890 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
18891 strinfo even for ADDR_EXPR ptr.
18892
18893 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18894
18895 * config/rs6000/altivec.md (darn_32): Change the condition to
18896 TARGET_P9_MISC instead of TARGET_MODULO.
18897 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
18898 condition expression.
18899 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
18900 condition expression.
18901 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
18902 (DFP_TEST): New code iterator.
18903 (dfptstsfi_<code>_mode>): New define_expand.
18904 (*dfp_sgnfcnc_<mode>): New define_insn.
18905 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
18906 definition next to BU_P9_MISC_1 definition and change the MASK
18907 value to RS6000_BTM_P9_MISC.
18908 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
18909 (BU_P9_64BIT_MISC_0): Likewise.
18910 (BU_P9_DFP_MISC_0): New macro definition.
18911 (BU_P9_DFP_MISC_1): New macro definition.
18912 (BU_P9_DFP_MISC_2): New macro definition.
18913 (BU_P9_DFP_OVERLOAD_1): New macro definition.
18914 (BU_P9_DFP_OVERLOAD_2): New macro definition.
18915 (BU_P9_DFP_OVERLOAD_3): New macro definition.
18916 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
18917 (TSTSFI_LT_TD): Likewise.
18918 (TSTSFI_EQ_DD): Likewise.
18919 (TSTSFI_EQ_TD): Likewise.
18920 (TSTSFI_GT_DD): Likewise.
18921 (TSTSFI_GT_TD): Likewise.
18922 (TSTSFI_OV_DD): Likewise.
18923 (TSTSFI_OV_TD): Likewise.
18924 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
18925 (TSTSFI_LT_DD): Likewise.
18926 (TSTSFI_LT_TD): Likewise.
18927 (TSTSFI_EQ): Likewise.
18928 (TSTSFI_EQ_DD): Likewise.
18929 (TSTSFI_EQ_TD): Likewise.
18930 (TSTSFI_GT): Likewise.
18931 (TSTSFI_GT_DD): Likewise.
18932 (TSTSFI_GT_TD): Likewise.
18933 (TSTSFI_OV): Likewise.
18934 (TSTSFI_OV_DD): Likewise.
18935 (TSTSFI_OV_TD): Likewise.
18936 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18937 overloaded test significance functions.
18938 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
18939 OPTION_MASK_P9_MISC into the representation of this mask.
18940 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
18941 of this mask.
18942 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
18943 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
18944 non-zero.
18945 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
18946 argument is a 6-bit unsigned literal value if the icode argument
18947 represents a DFP test significance built-in call.
18948 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
18949 flag used independently and in combination with the
18950 RS6000_BTM_64BIT flag.
18951 (rs6000_opt_masks): Add entry for power9-misc command-line option.
18952 (rs6000_builtin_mask_names): Add entry for power9-misc
18953 command-line option.
18954 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
18955 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
18956 RS6000_BTM_P9_MISC macros.
18957 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
18958 option and change the description of the -mpower9-vector option to
18959 enable only vector instructions, removing its erroneously claimed
18960 support for scalar instructions.
18961 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
18962 the ISA 3.0 digital floating point test significance built-in
18963 functions.
18964
18965 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
18966
18967 * config/aarch64/aarch64.c (cortexa35_tunings):
18968 Enable AES fusion. Use cortexa57_branch_cost.
18969 (cortexa53_tunings): Use cortexa57_branch_cost.
18970 (cortexa72_tunings): Use cortexa57_branch_cost.
18971 Use AUTOPREFETCHER_WEAK.
18972 (cortexa73_tunings): Use cortexa57_branch_cost.
18973
18974 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975 James Greenhalgh <james.greenhalgh@arm.com>
18976
18977 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
18978 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
18979 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
18980 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
18981 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
18982 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
18983 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
18984 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
18985 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
18986 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
18987 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
18988 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
18989 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
18990 New intrinsics.
18991
18992 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
18993 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18994
18995 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
18996 New define_insn.
18997 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
18998
18999 2016-06-30 David Malcolm <dmalcolm@redhat.com>
19000
19001 PR driver/71651
19002 * gcc.c (driver::build_option_suggestions): Pass "option" to
19003 add_misspelling_candidates.
19004 * opts-common.c (add_misspelling_candidates): Add "option" param;
19005 use it to avoid adding negated forms for options marked with
19006 RejectNegative.
19007 * opts.h (add_misspelling_candidates): Add "option" param.
19008
19009 2016-06-30 Jakub Jelinek <jakub@redhat.com>
19010
19011 PR middle-end/71693
19012 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
19013 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
19014 first when permuting bitwise operation with rotate. Cast
19015 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
19016
19017 2016-06-29 David Malcolm <dmalcolm@redhat.com>
19018
19019 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
19020 for misspelled param names.
19021 * params.c: Include spellcheck.h.
19022 (find_param_fuzzy): New function.
19023 * params.h (find_param_fuzzy): New prototype.
19024 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
19025 * spellcheck.h (struct edit_distance_traits<const char *>):
19026 ...here.
19027
19028 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
19029
19030 * config/rs6000/predicates.md (const_0_to_7_operand): New
19031 predicate, recognize 0..7.
19032 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19033 support for doing extracts from V16QImode, V8HImode, V4SImode
19034 under ISA 3.0.
19035 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
19036 vector extract support.
19037 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
19038 for ISA 3.0 vector extract.
19039 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
19040 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
19041 extracts of a constant element number from small integer vectors
19042 on 64-bit ISA 3.0 systems.
19043 (vsx_extract_<mode>_di): Likewise.
19044 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
19045 say when we can do ISA 3.0 vector extracts.
19046 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
19047 registers, using the stxsiwx instruction.
19048
19049 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
19050
19051 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
19052 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
19053 qdf24xx_regmove_cost, qdf24xx_tunings): New.
19054 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
19055 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
19056 * config/arm/arm.c (arm_qdf24xx_tune): New.
19057
19058 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
19059
19060 * config/aarch64/aarch64.c (cortexa53_tunings):
19061 Increase loop alignment to 8. Set function alignment to 16.
19062 (cortexa35_tunings): Likewise.
19063 (cortexa57_tunings): Increase loop alignment to 8.
19064 (cortexa72_tunings): Likewise.
19065 (cortexa73_tunings): Likewise.
19066
19067 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
19068
19069 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
19070 for arm_fp16_ok and arm_fp16_hw.
19071 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
19072 arm_fp16_alternative.
19073
19074 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
19075
19076 PR tree-optimization/71655
19077 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
19078 types when swapping operands.
19079
19080 2016-06-29 Martin Liska <mliska@suse.cz>
19081
19082 PR middle-end/71585
19083 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
19084 * ipa-inline-transform.c (inline_call): Remove unnecessary call
19085 of build_optimization_node.
19086
19087 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
19088
19089 PR tree-optimization/70729
19090 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
19091 independent in loops having positive safelen value.
19092 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
19093 it may be not valid after vectorization.
19094
19095 2016-06-29 Jakub Jelinek <jakub@redhat.com>
19096
19097 PR tree-optimization/71625
19098 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
19099 is sorted by ascending list->offset. If PTR is non-NULL and there is
19100 previous strinfo, call get_stridx_plus_constant.
19101 (get_stridx): Pass exp as second argument to get_addr_stridx.
19102 (addr_stridxptr): Add missing list = list->next, so that there can be
19103 more than one entries in the list. Bump limit from 16 to 32. Ensure
19104 the list is sorted by ascending list->offset.
19105 (get_stridx_plus_constant): Adjust so that it can be also called with
19106 ADDR_EXPR instead of SSA_NAME as PTR.
19107 (handle_char_store): Pass NULL_TREE as second argument to
19108 get_addr_stridx.
19109
19110 2016-06-29 Richard Biener <rguenther@suse.de>
19111
19112 PR rtl-optimization/68961
19113 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
19114
19115 2016-06-29 Richard Biener <rguenther@suse.de>
19116
19117 PR middle-end/71002
19118 * alias.c (component_uses_parent_alias_set_from): Handle
19119 type punning through union accesses by using the union alias set.
19120 * gimple.c (gimple_get_alias_set): Remove union type punning case.
19121
19122 2016-07-29 Richard Biener <rguenther@suse.de>
19123
19124 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
19125 precision not matching mode precision.
19126
19127 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
19128
19129 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
19130 pa_output_arg_descriptor.
19131 (call_val_symref_64bit_post_reload): Likewise.
19132 (call_val_powf_64bit_post_reload): Likewise.
19133 (sibcall_internal_symref_64bit): Likewise.
19134 (sibcall_value_internal_symref_64bit): Likewise.
19135
19136 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19137
19138 PR middle-end/71626
19139 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
19140 a constant, force its SUBREG_REG into memory or register instead
19141 of whole op1.
19142
19143 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
19144
19145 PR target/58655
19146 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
19147 * doc/invoke.texi (AVR Options): Document it.
19148
19149 2016-06-28 Walter Lee <walt@tilera.com>
19150
19151 * config/tilegx/linux.h: Do not include arch/icache.h
19152 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19153 * config/tilepro/linux.h: Do not include arch/icache.h
19154 (CLEAR_INSN_CACHE): Provide inlined definition directly.
19155
19156 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
19157
19158 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
19159 for big-endian BIT_FIELD_REF.
19160
19161 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
19162
19163 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
19164 ('size' attribute): Add '128'.
19165 Include power9.md.
19166 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
19167 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
19168 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
19169 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
19170 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
19171 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
19172 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
19173 *trunc<mode>df2_odd): Set size attribute to '128'.
19174 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
19175 * config/rs6000/power6.md (power6-fp): Include dfp type.
19176 * config/rs6000/power7.md (power7-fp): Likewise.
19177 * config/rs6000/power8.md (power8-fp): Likewise.
19178 * config/rs6000/power9.md: New file.
19179 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
19180 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
19181 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
19182 htmsimple.
19183 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
19184 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
19185 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
19186 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
19187 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
19188 dfp_dscri_<mode>): Change type attribute to dfp.
19189 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
19190 attribute to vecsimple.
19191 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
19192 and prefetch streams.
19193 (rs6000_option_override_internal): Remove temporary code setting
19194 tuning to power8. Don't set rs6000_sched_groups for power9.
19195 (last_scheduled_insn): Change to rtx_insn *.
19196 (divide_cnt, vec_load_pendulum): New variables.
19197 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
19198 (rs6000_issue_rate): Set issue rate for Power9.
19199 (is_power9_pairable_vec_type): New.
19200 (power9_sched_reorder2): New.
19201 (rs6000_sched_reorder2): Call new function for Power9 specific
19202 reordering.
19203 (insn_must_be_first_in_group): Remove Power9.
19204 (insn_must_be_last_in_group): Likewise.
19205 (force_new_group): Likewise.
19206 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
19207 Initialize divide_cnt/vec_load_pendulum.
19208 (_rs6000_sched_context, rs6000_init_sched_context,
19209 rs6000_set_sched_context): Handle context save/restore of new
19210 variables.
19211
19212 2016-06-28 Richard Biener <rguenther@suse.de>
19213
19214 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
19215 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
19216 COMPONENT_REF operand.
19217 (nonoverlapping_component_refs_p): Likewise.
19218 * stor-layout.c (start_bitfield_representative): Mark
19219 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
19220
19221 2016-06-28 Jakub Jelinek <jakub@redhat.com>
19222
19223 * Makefile.in: Don't cat ../stage_current if it does not exist.
19224
19225 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
19226 last argument is a bit-field.
19227
19228 PR rtl-optimization/71673
19229 * internal-fn.c (expand_arith_overflow_result_store): Use
19230 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
19231 expand_simple_binop.
19232
19233 PR middle-end/66867
19234 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
19235 expand_ifn_atomic_compare_exchange): New functions.
19236 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
19237 * tree.h (build_call_expr_internal_loc): Rename to ...
19238 (build_call_expr_internal_loc_array): ... this. Fix up type of
19239 last argument.
19240 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
19241 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
19242 ATOMIC_COMPARE_EXCHANGE result.
19243 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
19244 * gimple-fold.h (optimize_atomic_compare_exchange_p,
19245 fold_builtin_atomic_compare_exchange): New prototypes.
19246 * gimple-fold.c (optimize_atomic_compare_exchange_p,
19247 fold_builtin_atomic_compare_exchange): New functions..
19248 * tree-ssa.c (execute_update_addresses_taken): If
19249 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
19250 of call when finding addressable vars, and if such var becomes
19251 non-addressable, call fold_builtin_atomic_compare_exchange.
19252
19253 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
19254
19255 PR target/71670
19256 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
19257 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
19258
19259 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
19260
19261 * config/rs6000/rs6000.md ('type' attribute): Add
19262 veclogical,veccmpfx,vecexts,vecmove insn types.
19263 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
19264 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
19265 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
19266 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
19267 *nabs<mode>2_hw): Change type to vecmove.
19268 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
19269 *boolcc<mode>3_internal, *eqv<mode>3_internal,
19270 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
19271 *ieee_128bit_vsx_abs<mode>2_internal,
19272 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
19273 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
19274 *ieee128_mtvsrd_32bit): Change type to veclogical.
19275 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19276 *movdi_internal32, *movdi_internal64): Update insn types.
19277 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
19278 vsx_extract_<mode>): Change type to veclogical.
19279 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
19280 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
19281 *vsx_sign_extend_si_v2di): Change type to vecexts.
19282 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
19283 type to veclogical.
19284 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
19285 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
19286 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
19287 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
19288 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
19289 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
19290 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
19291 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
19292 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
19293 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
19294 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
19295 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
19296 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
19297 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
19298 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
19299 (ppc7450-vecsimple): Add veclogical, vecmove.
19300 (ppc7450-veccmp): Add veccmpfx.
19301 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
19302 vecmove.
19303 (ppc8540_vector_compare): Add veccmpfx.
19304 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
19305 * config/rs6000/cell.md (cell-fp): Add fpsimple.
19306 (cell-vecsimple): Add veclogical, vecmove.
19307 (cell-veccmp): Add veccmpfx.
19308 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
19309 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
19310 veccmpfx.
19311 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
19312 * config/rs6000/power4.md (power4-fp): Add fpsimple.
19313 (power4-vecsimple): Add veclogical, vecmove.
19314 (power4-veccmp): Add veccmpfx.
19315 * config/rs6000/power5.md (power5-fp): Add fpsimple.
19316 * config/rs6000/power6.md (power6-fp): Add fpsimple.
19317 (power6-vecsimple): Add veclogical, vecmove.
19318 (power6-veccmp): Add veccmpfx.
19319 * config/rs6000/power7.md (power7-fp): Add fpsimple.
19320 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
19321 * config/rs6000/power8.md (power8-fp): Add fpsimple.
19322 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
19323 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
19324 * config/rs6000/titan.md (titan_fp): Add fpsimple.
19325 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
19326 fpsimple.
19327 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
19328
19329 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
19330
19331 PR target/71656
19332 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
19333 OPTION_MASK_P9_DFORM_VECTOR.
19334 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
19335 disable -mpower9-dform-vector when using reload.
19336 (quad_address_p): Remove 'gpr_p' argument and all associated code.
19337 New 'strict' argument. Update all callers. Add strict addressing
19338 support.
19339 (rs6000_legitimate_offset_address_p): Remove call to
19340 virtual_stack_registers_memory_p.
19341 (rs6000_legitimize_reload_address): Add quad address support.
19342 (rs6000_legitimate_address_p): Move call to quad_address_p above
19343 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
19344 to account for new strict usage.
19345 (rs6000_output_move_128bit): Adjust quad_address_p args to account
19346 for new strict usage.
19347 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
19348
19349 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
19350
19351 PR target/70902
19352 PR target/71453
19353 PR target/71555
19354 PR target/71596
19355 PR target/71657
19356 * config/i386/i386.c (ix86_spill_class): Disable condition to
19357 always return NO_REGS.
19358
19359 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
19360
19361 * predict.c: Include gimple-pretty-print.h
19362 (predicted_by_loop_heuristics_p): Check also
19363 PRED_LOOP_EXIT_WITH_RECURSION
19364 (predict_loops): Find self recursive calls and use special purpose
19365 predictors for them; dump log about decisions.
19366 (pass_profile::execute): Dump info about #of iterations.
19367 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
19368 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
19369
19370 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
19371
19372 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
19373 output_asm_insn calls and shorten long lines. Output .CALL
19374 argument descriptor using pa_output_arg_descriptor. Add various
19375 inline $$dyncall and other optimizations.
19376 (pa_attr_length_indirect_call): Adjust ordering and lengths.
19377
19378 2016-06-25 Jakub Jelinek <jakub@redhat.com>
19379
19380 PR tree-optimization/71643
19381 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
19382 EH preds.
19383
19384 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
19385 leak a bitmap if dep_bb is NULL.
19386
19387 PR tree-optimization/71631
19388 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
19389 to rewrite_expr_tree even if negate_result, move new_lhs var
19390 declaration and initialization earlier, for powi_result set afterwards
19391 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
19392 if new_lhs != lhs, and don't shadow gsi var.
19393
19394 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19395
19396 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
19397 Add in_loop parameter.
19398 (predict_loops): Add loop guard heuristics.
19399 * predict.def (PRED_LOOP_GUARD): New heuristics.
19400
19401 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
19402
19403 * predict.c: Include ipa-utils.h
19404 (tree_bb_level_prediction): Predict recursive calls.
19405 (tree_estimate_probability_bb): Skip inexpensive calls for call
19406 predictor.
19407 * predict.def (PRED_RECURSIVE_CALL): New.
19408
19409 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19410
19411 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
19412 (BU_FLOAT128_1): Likewise.
19413 (FABSQ): Likewise.
19414 (COPYSIGNQ): Likewise.
19415 (RS6000_BUILTIN_NANQ): Likewise.
19416 (RS6000_BUILTIN_NANSQ): Likewise.
19417 (RS6000_BUILTIN_INFQ): Likewise.
19418 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
19419 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
19420 (TARGET_FOLD_BUILTIN): New #define.
19421 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
19422 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
19423 (rs6000_fold_builtin): New target hook implementation, handling
19424 folding of 128-bit NaNs and infinities.
19425 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
19426 entries are filled in to avoid problems during bootstrap
19427 self-test; define builtins for 128-bit NaNs and infinities.
19428 (rs6000_opt_mask): Add entry for float128.
19429 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
19430 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
19431 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
19432 (const_str_type_node): New #define.
19433 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
19434 to a define_expand that dispatches to either copysign<mode>3_soft
19435 or copysign<mode>3_hard.
19436 (copysign<mode>3_hard): Rename from copysign<mode>3.
19437 (copysign<mode>3_soft): New define_insn.
19438 * doc/extend.texi: Document new builtins.
19439
19440 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19441
19442 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
19443 PRIu64 instead of lu.
19444
19445 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
19446
19447 PR debug/71642
19448 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
19449 copy the type name.
19450
19451 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19452
19453 PR tree-optimization/71647
19454 * omp-low.c (lower_rec_input_clauses): Convert
19455 omp_clause_aligned_alignment (c) to size_type_node for the
19456 last argument of __builtin_assume_aligned.
19457
19458 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
19459
19460 * configure.ac (calling ___tls_get_addr via GOT): New
19461 assembler/linker check.
19462 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
19463 assembler and linker supports calling ___tls_get_addr via GOT.
19464 Otherise, defined to 0.
19465 * config.in: Regenerated.
19466 * configure: Likewise.
19467 * config/i386/constraints.md (Yb): New constraint.
19468 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
19469 (REG_CLASS_NAMES): Likewise.
19470 (REG_CLASS_CONTENTS): Likewise.
19471 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
19472 the b constraint with the Yb constraint. Call ___tls_get_addr
19473 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
19474 is 1.
19475 (*tls_local_dynamic_base_32_gnu): Likewise.
19476 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
19477 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
19478 (*tls_local_dynamic_base_64_<mode>): Likewise.
19479
19480 2016-06-24 Martin Liska <mliska@suse.cz>
19481
19482 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
19483 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
19484 few functions.
19485 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
19486 argument to true if the expected number of iterations is
19487 loop-based.
19488
19489 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
19490
19491 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
19492 assemble for 32bit target.
19493 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
19494 and $ld_ix86_gld_32_opt to link for 32bit target.
19495 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
19496 * configure: Regenerate.
19497
19498 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19499
19500 * config/arm/arm.c (int_log2): Delete definition and prototype.
19501 (shift_op): Use exact_log2 instead of int_log2.
19502 (vfp3_const_double_for_fract_bits): Likewise.
19503
19504 2016-06-24 Jakub Jelinek <jakub@redhat.com>
19505
19506 * internal-fn.c (expand_arith_set_overflow): New function.
19507 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
19508 Use it.
19509 (expand_arith_overflow_result_store): Likewise. Handle precision
19510 smaller than mode precision.
19511 * tree-vrp.c (extract_range_basic): For imag part, handle
19512 properly signed 1-bit precision result.
19513 * doc/extend.texi (__builtin_add_overflow): Document that last
19514 argument can't be pointer to enumerated or boolean type.
19515 (__builtin_add_overflow_p): Document that last argument can't
19516 have enumerated or boolean type.
19517
19518 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
19519 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19520
19521 * config/rs6000/predicates.md (splat_input_operand): Rework.
19522 Don't allow constants, since the insns that use this predicate
19523 don't support constants. Constants are handled by other insns
19524 that are created via combine. During and after register
19525 allocation, only allow indexed or indirect addresses, and not
19526 general addresses. Only allow modes supported by the hardware.
19527 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
19528 comment. Move check for using VSPLTIS<x> to a common location,
19529 instead of doing it in two different places.
19530
19531 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
19532
19533 * config/i386/driver-i386.c (host_detect_local_cpu): Set
19534 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
19535 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
19536 signature_CENTAUR_ebx.
19537
19538 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
19539
19540 PR target/66232
19541 PR target/67400
19542 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
19543 (as_ix86_gas_32_opt): This.
19544 (ld_ix86_tls_ldm_opt): Renamed to ...
19545 (ld_ix86_gld_32_opt): This.
19546 (R_386_TLS_LDM reloc): Updated.
19547 (R_386_GOT32X reloc): New assembler/linker check.
19548 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
19549 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
19550 defined to 0.
19551 * config.in: Regenerated.
19552 * configure: Likewise.
19553 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
19554 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
19555 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
19556 if ix86_force_load_from_GOT_p returns true.
19557 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
19558 ix86_force_load_from_GOT_p returns true.
19559 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
19560 the external function address via the GOT slot.
19561 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
19562 HAVE_AS_IX86_GOT32X before returning false.
19563 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
19564 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
19565
19566 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
19567
19568 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
19569
19570 2016-06-23 Andi Kleen <ak@linux.intel.com>
19571
19572 * Makefile.in: Regenerate.
19573 * doc/install.texi: Document autoprofiledbootstrap.
19574
19575 2016-06-23 Andi Kleen <ak@linux.intel.com>
19576
19577 * config/i386/gcc-auto-profile: New file.
19578
19579 2016-06-23 Martin Liska <mliska@suse.cz>
19580
19581 PR middle-end/71619
19582 * predict.c (predict_loops): Revert the hunk that was removed
19583 in r237103.
19584
19585 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
19586
19587 * config.gcc: Add support for arm*-*-phoenix* targets.
19588 * config/arm/t-phoenix: New.
19589 * config/phoenix.h: New.
19590
19591 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
19592 H.J. Lu <hongjiu.lu@intel.com>
19593
19594 PR target/67400
19595 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
19596 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
19597 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
19598 ix86_force_load_from_GOT_p returns true.
19599 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
19600 ix86_force_load_from_GOT_p returns true.
19601 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
19602 ix86_force_load_from_GOT_p returns true.
19603 (ix86_expand_move): Load the external function address via the
19604 GOT slot if ix86_force_load_from_GOT_p returns true.
19605 * config/i386/predicates.md (x86_64_immediate_operand): Return
19606 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
19607 (x86_64_zext_immediate_operand): Ditto.
19608
19609 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
19610
19611 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
19612
19613 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19614
19615 PR c/70339
19616 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
19617 * diagnostic.c (pedwarn_at_rich_loc): New function.
19618 * spellcheck.h (best_match::best_match): Add a
19619 "best_distance_so_far" optional parameter.
19620 (best_match::set_best_so_far): New method.
19621 (best_match::get_best_distance): New accessor.
19622 (best_match::get_best_candidate_length): New accessor.
19623
19624 2016-06-22 Nick Clifton <nickc@redhat.com>
19625
19626 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
19627 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
19628 modes are accepted as well.
19629 (ucompare_loc_descriptor): Likewise.
19630 (minmax_loc_descriptor): Likewise.
19631 (clz_loc_descriptor): Likewise.
19632 (popcount_loc_descriptor): Likewise.
19633 (bswap_loc_descriptor): Likewise.
19634 (rotate_loc_descriptor): Likewise.
19635 (mem_loc_descriptor): Likewise.
19636 (loc_descriptor): Likewise.
19637
19638 2016-06-22 David Malcolm <dmalcolm@redhat.com>
19639
19640 * common.opt (fdiagnostics-parseable-fixits): New option.
19641 * diagnostic.c: Include "selftest.h".
19642 (print_escaped_string): New function.
19643 (print_parseable_fixits): New function.
19644 (diagnostic_report_diagnostic): Call print_parseable_fixits.
19645 (selftest::assert_print_escaped_string): New function.
19646 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
19647 (selftest::test_print_escaped_string): New function.
19648 (selftest::test_print_parseable_fixits_none): New function.
19649 (selftest::test_print_parseable_fixits_insert): New function.
19650 (selftest::test_print_parseable_fixits_remove): New function.
19651 (selftest::test_print_parseable_fixits_replace): New function.
19652 (selftest::diagnostic_c_tests): New function.
19653 * diagnostic.h (struct diagnostic_context): Add field
19654 "parseable_fixits_p".
19655 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19656 -fdiagnostics-parseable-fixits.
19657 (-fdiagnostics-parseable-fixits): New option.
19658 * opts.c (common_handle_option): Handle
19659 -fdiagnostics-parseable-fixits.
19660 * selftest-run-tests.c (selftest::run_tests): Call
19661 selftest::diagnostic_c_tests.
19662 * selftest.h (selftest::diagnostic_c_tests): New prototype.
19663
19664 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
19665
19666 PR tree-optimization/71488
19667 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
19668 comparison of boolean vectors.
19669 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
19670 of boolean vectors using bitwise operations.
19671
19672 2016-06-22 Andreas Schwab <schwab@suse.de>
19673
19674 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
19675 Remove declaration.
19676
19677 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
19678
19679 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
19680
19681 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
19682
19683 * config/i386/i386.c (print_reg): Emit an error message on attempt to
19684 print FLAGS_REG.
19685
19686 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19687
19688 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
19689 * config/arm/arm-cores.def (cortex-a73): New entry.
19690 (cortex-a73.cortex-a35): Likewise.
19691 (cortex-a73.cortex-a53): Likewise.
19692 * config/arm/arm-tables.opt: Regenerate.
19693 * config/arm/arm-tune.md: Likewise.
19694 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
19695 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19696 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
19697 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
19698 * doc/invoke.texi (ARM Options): Document cortex-a73,
19699 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
19700
19701 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19702
19703 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
19704 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
19705 (cortex-a73.cortex-a35): Likewise.
19706 (cortex-a73.cortex-a53): Likewise.
19707 * config/aarch64/aarch64-tune.md: Regenerate.
19708 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
19709 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
19710 -mcpu and -mtune.
19711
19712 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19713
19714 * configure.ac (gcc_cv_as_compress_debug): Remove
19715 --compress-debug-sections as extra as switch.
19716 Handle gas --compress-debug-sections=type.
19717 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
19718 Handle gld --compress-debug-sections=type.
19719 * configure: Regenerate.
19720
19721 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
19722
19723 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
19724
19725 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
19726
19727 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
19728 (do_rewrite): likewise.
19729
19730 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19731
19732 * common/config/mep/mep-common.c: Remove.
19733 * config.gcc: Remove mep-* support.
19734 * config/mep/constraints.md: Remove.
19735 * config/mep/default.h: Remove.
19736 * config/mep/intrinsics.h: Remove.
19737 * config/mep/intrinsics.md: Remove.
19738 * config/mep/ivc2-template.h: Remove.
19739 * config/mep/mep-c5.cpu: Remove.
19740 * config/mep/mep-core.cpu: Remove.
19741 * config/mep/mep-default.cpu: Remove.
19742 * config/mep/mep-ext-cop.cpu: Remove.
19743 * config/mep/mep-intrin.h: Remove.
19744 * config/mep/mep-ivc2.cpu: Remove.
19745 * config/mep/mep-pragma.c: Remove.
19746 * config/mep/mep-protos.h: Remove.
19747 * config/mep/mep.c: Remove.
19748 * config/mep/mep.cpu: Remove.
19749 * config/mep/mep.h: Remove.
19750 * config/mep/mep.md: Remove.
19751 * config/mep/mep.opt: Remove.
19752 * config/mep/predicates.md: Remove.
19753 * config/mep/t-mep: Remove.
19754 * doc/install.texi: Remove mep-* documentation.
19755 * doc/md.texi: Likewise.
19756
19757 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19758
19759 * config.gcc: Remove support for avr-rtems.
19760 * config/avr/gen-avr-mmcu-specs.c: Likewise.
19761 * config/avr/rtems.h: Remove.
19762 * config/avr/t-rtems: Remove.
19763
19764 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19765
19766 * config.gcc: Remove m32r-rtems support.
19767 * config/m32r/rtems.h: Remove.
19768
19769 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19770
19771 * config.gcc: Remove h8300-rtems support.
19772 * config/h8300/rtems.h: Remove.
19773 * config/h8300/t-rtems: Remove.
19774
19775 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19776
19777 * config.gcc: Remove support for knetbsd.
19778 * configure.ac: Likewise.
19779 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
19780 * config/knetbsd-gnu.h: Remove.
19781 * configure: Regenerate.
19782
19783 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19784
19785 * config.gcc: Remove support for openbsd 2 and 3.
19786 * config/openbsd-oldgas.h: Remove.
19787
19788 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19789
19790 * config.gcc: Remove interix support.
19791 * config/i386/i386-interix.h: Remove.
19792 * config/i386/interix.opt: Remove.
19793 * config/i386/t-interix: Remove.
19794 * configure: Regenerate.
19795 * configure.ac: Remove interix support.
19796 * doc/install.texi: Remove interix documentation.
19797
19798 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
19799
19800 * config/rs6000/rs6000.h: Add conditional preprocessing directives
19801 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
19802 not defined.
19803
19804 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19805
19806 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
19807 they are both PLACEHOLDER_EXPRs.
19808
19809 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19810
19811 * stor-layout.c (layout_type): Move setting complex MODE to
19812 layout_type, instead of setting it ahead of time by the caller.
19813 * tree.c (build_complex_type): Likewise.
19814
19815 2016-06-21 Martin Liska <mliska@suse.cz>
19816
19817 * predict.c (force_edge_cold): Replace imposisble with
19818 impossible.
19819
19820 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19821
19822 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
19823 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
19824
19825 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
19826
19827 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
19828
19829 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
19830 Ilya Enkovich <ilya.enkovich@intel.com>
19831
19832 PR target/71549
19833 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
19834 New member function to convert V1TImode register to SUBREG
19835 TImode in debug insn.
19836 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
19837 after changing register mode to V1TImode.
19838
19839 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
19840
19841 * config/aarch64/aarch64-cores.def (vulcan): New core.
19842 * config/aarch64/aarch64-tune.md: Regenerate.
19843 * doc/invoke.texi: Document vulcan as an available option.
19844
19845 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
19846
19847 * cse.c (canon_asm_operands): New function extracted from...
19848 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
19849 either standalone or member of a PARALLEL.
19850
19851 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19852
19853 PR target/30417
19854 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
19855 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
19856 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
19857
19858 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
19859
19860 PR target/71103
19861 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
19862 constant addresses if can_create_pseudo_p.
19863
19864 2016-06-21 Jakub Jelinek <jakub@redhat.com>
19865
19866 PR tree-optimization/71588
19867 * tree-ssa-strlen.c (valid_builtin_call): New function.
19868 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
19869 it.
19870
19871 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19872
19873 PR middle-end/71581
19874 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
19875 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
19876 for conversion of scalar user var to complex type and use the
19877 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
19878 punt.
19879
19880 PR rtl-optimization/71591
19881 * toplev.c (toplev::run_self_tests): If no_backend, complain and
19882 don't run any tests.
19883
19884 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
19885
19886 PR target/71571
19887 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
19888 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
19889 space for PIC with non-v32 and the common non-PIC "jump".
19890
19891 2016-06-20 Jakub Jelinek <jakub@redhat.com>
19892
19893 PR target/71559
19894 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
19895 returned values and add UN*/LTGT/*ORDERED cases with values matching
19896 D operand modifier on vcmp for AVX.
19897
19898 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19899
19900 * config/aarch64/aarch64.opt
19901 (mpc-relative-literal-loads): Rename internal option name.
19902 * config/aarch64/aarch64.c
19903 (aarch64_nopcrelative_literal_loads): Rename to
19904 aarch64_pcrelative_literal_loads.
19905 (aarch64_expand_mov_immediate): Likewise.
19906 (aarch64_secondary_reload): Likewise.
19907 (aarch64_can_use_per_function_literal_pools_p): Likewise.
19908 (aarch64_override_options_after_change_1): Rename and simplify logic.
19909 (aarch64_classify_symbol): Merge large model checks into switch,
19910 remove pc-relative load check.
19911
19912 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19913
19914 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
19915 costs relative to the cost of a register move.
19916
19917 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19918
19919 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
19920 (vcvt_n_f64_u64): Likewise.
19921 (vcvt_n_s64_f64): Likewise.
19922 (vcvt_n_u64_f64): Likewise.
19923 (vcvt_f64_s64): Likewise.
19924 (vrecpe_f64): Likewise.
19925 (vcvt_f64_u64): Likewise.
19926 (vrecps_f64): Likewise.
19927
19928 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19929
19930 * config/aarch64/aarch64.md
19931 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
19932 iterators.
19933 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
19934 attributes.
19935 * config/aarch64/aarch64-builtins.c
19936 (aarch64_types_binop_uss_qualifiers): Delete.
19937 (TYPES_BINOP_USS): Likewise.
19938 (aarch64_types_binop_sus_qualifiers): Likewise.
19939 (TYPES_BINOP_SUS): Likewise.
19940 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
19941 (TYPES_FCVTIMM_SUS): Likewise.
19942 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
19943 rather than BINOP.
19944 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
19945 (fcvtzs): Use SHIFTIMM rather than BINOP.
19946 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
19947
19948 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
19949
19950 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
19951 costs relative to the cost of a register move.
19952
19953 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19954
19955 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
19956 Allow scalar/single vector modes to be tieable.
19957
19958 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
19959
19960 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
19961
19962 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19963
19964 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
19965 "alignement".
19966 * tree.h (TYPE_ALIGN): Likewise.
19967
19968 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19969
19970 PR target/71103
19971 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
19972
19973 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
19974
19975 * config/avr/avr.c (avr_print_operand): Fix "format not a string
19976 literal" build warnings.
19977 (avr_print_operand_address): Dito.
19978
19979 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
19980
19981 PR target/71375
19982 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
19983 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
19984
19985 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
19986
19987 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
19988
19989 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
19990
19991 PR bootstrap/71435
19992 * reload1.c (reload): Pass 0 to finish_spills when called because
19993 update_eliminables_and_spill returns true and remove did_spill.
19994 (finish_spills): Adjust comment and document GLOBAL parameter.
19995
19996 2016-06-17 DJ Delorie <dj@redhat.com>
19997
19998 PR target/71338
19999 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
20000 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
20001 (umulqihi3_virt): Likewise.
20002 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
20003 (umulqihi3_real): Likewise.
20004
20005 2016-06-17 Martin Liska <mliska@suse.cz>
20006
20007 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
20008
20009 2016-06-17 Martin Liska <mliska@suse.cz>
20010
20011 * predict.def: PRED_LOOP_EXIT from 92 to 85.
20012
20013 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
20014
20015 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
20016 __FAST_MATH__.
20017 (vaddq_f32): Likewise.
20018 (vmul_f32): Likewise.
20019 (vmulq_f32): Likewise.
20020 (vsub_f32): Likewise.
20021 (vsubq_f32): Likewise.
20022
20023 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20024
20025 PR tree-optimization/71347
20026 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
20027 cost for all uses in group.
20028
20029 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20030
20031 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
20032 insert gimple seq if it's not empty.
20033
20034 2016-06-17 Bin Cheng <bin.cheng@arm.com>
20035
20036 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
20037 member OFFSET.
20038 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
20039 rather than OFFSET.
20040 (comp_dr_with_seg_len_pair): Ditto.
20041 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
20042 struct dr_with_seg_len_pair against DR_OFFSET.
20043 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
20044 DR_OFFSET directly.
20045
20046 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
20047
20048 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
20049
20050 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
20051
20052 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
20053 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
20054 (pa_output_millicode_call): Likewise.
20055 (pa_output_call): Likewise.
20056 (pa_output_indirect_call): Likewise.
20057 (pa_asm_output_mi_thunk): Likewise.
20058
20059 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20060
20061 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
20062
20063 2016-06-16 Martin Liska <mliska@suse.cz>
20064
20065 * predict.c (combine_predictions_for_insn): When we find a first
20066 match predictor, we should consider just predictors with
20067 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
20068 DS theory predictor.
20069 (combine_predictions_for_bb): Likewise.
20070
20071 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20072
20073 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
20074 with base of reference to struct.
20075
20076 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20077
20078 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
20079
20080 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20081
20082 PR target/71151
20083 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
20084 progmem_swtable_section.
20085 (progmem_swtable_section): Remove.
20086 (avr_asm_function_rodata_section): Remove.
20087 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
20088 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
20089
20090 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
20091
20092 * config/i386/driver-i386.c (host_detect_local_cpu): Set
20093 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
20094 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
20095 signature_CENTAUR_ebx.
20096 * config/i386/i386.c (ix86_option_override_internal): Add
20097 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
20098 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
20099 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
20100
20101 2016-06-16 Martin Liska <mliska@suse.cz>
20102
20103 * predict.def: Add fortran loop preheader predictor.
20104 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
20105 fold IFN_BUILTIN_EXPECT with a known constant argument.
20106
20107 2016-06-16 Martin Liska <mliska@suse.cz>
20108
20109 * predict.def: Add 'Fortran' to display text of all
20110 PRED_FORTRAN_* predictors.
20111
20112 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
20113
20114 PR target/71242
20115 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
20116 [IA64_BUILTIN_NANSQ]: Ditto.
20117 (ia64_fold_builtin): New function.
20118 (TARGET_FOLD_BUILTIN): New define.
20119 (ia64_init_builtins) Declare const_string_type node.
20120 Add __builtin_nanq and __builtin_nansq builtin functions.
20121 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
20122
20123 2016-06-16 Nick Clifton <nickc@redhat.com>
20124
20125 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
20126 MSP430_HWMULT_ prefix to enum values.
20127 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
20128 * config/msp430/msp430.c: Update use of enum values.
20129 * config/msp430/msp430.md: Likewise.
20130 * config/msp430/msp430.opt: Likewise.
20131
20132 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
20133
20134 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
20135 of comparsions in the last iteration.
20136
20137 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20138 Joern Rennecke <joern.rennecke@embecosm.com>
20139
20140 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
20141 addresses.
20142 (arc_needs_pcl_p): Add GOTOFFPC.
20143 (arc_legitimate_pic_addr_p): Likewise.
20144 (arc_output_pic_addr_const): Likewise.
20145 (arc_legitimize_pic_address): Generate a pc-relative address using
20146 GOTOFFPC.
20147 (arc_output_libcall): Use @pcl syntax.
20148 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
20149 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
20150 (*movsi_insn): Use @pcl syntax.
20151 (doloop_begin_i): Likewise.
20152
20153 2016-06-16 Martin Liska <mliska@suse.cz>
20154
20155 * predict.def: Define a new predictor.
20156
20157 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
20158
20159 * config/arc/arc.opt (mtp-regno): Update text.
20160
20161 2016-06-16 Renlin Li <renlin.li@arm.com>
20162
20163 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
20164
20165 2016-06-16 Jakub Jelinek <jakub@redhat.com>
20166
20167 PR target/71554
20168 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
20169 (setcc + and peephole2): Likewise.
20170
20171 PR rtl-optimization/71532
20172 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
20173 memory slots.
20174
20175 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
20176
20177 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
20178 DImode constants with XXSPLTIB in vector registers.
20179 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
20180 vsx_extract_<mode>_internal{1,2} into a single insn that handles
20181 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
20182 extraction of the element at the top of the register as a scalar
20183 value.
20184 (vsx_extract_<mode>_internal1): Likewise.
20185 (vsx_extract_<mode>_internal2): Likewise.
20186 * config/rs6000/constraints.md (wi constraint): Remove a comment
20187 about DImode not being allowed in Altivec registers.
20188 (wB constraint): New constraint for constants that can be
20189 generated in Altivec registers with VSPLTISW/VUPKHSW.
20190 * config/rs6000/predicates.md (xxspltib_constant_split): Update
20191 comments.
20192 (xxspltib_constant_nosplit): Likewise.
20193 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
20194 support for -mupper-regs-di to enable DImode to go into Altivec
20195 registers.
20196 (POWERPC_MASKS): Likewise.
20197 (power7 cpu): Likewise.
20198 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
20199 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
20200 for DImode being allowed in Altivec registers. Update wi/wj
20201 constraints. Set scalar_in_vmx_p flag.
20202 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
20203 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
20204 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
20205 (rs6000_opt_masks): Add -mupper-regs-di.
20206 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
20207 direct move to use wi and not wj.
20208 (lfiwzx): Likewise.
20209 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
20210 alternative.
20211 (floatunssi<mode>2_lfiwzx_mem): Likewise.
20212 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
20213 any VSX register, instead of just Altivec registers, to allow
20214 either operand to be an Altivec register or both.
20215 (fixuns_trunc<mode>di2_fctiduz): Likewise.
20216 (movdi_internal32): Add support for -mupper-regs-di. Add support
20217 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
20218 the alternatives and attributes to be lined up to be easier to
20219 read.
20220 (movdi_internal64): Likewise.
20221 (64-bit DImode splitters): Change predicates to only split loading
20222 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
20223 load constants in ISA 3.0 or ISA 2.07 respectively.
20224 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
20225 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
20226 mention -mcpu=power9 sets these options.
20227 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
20228 wB constraint.
20229
20230 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20231
20232 PR target/67353
20233 * config/avr/avr.c (avr_set_current_function): Warn misspelled
20234 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
20235 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
20236 by default to warn misspelled interrupt/ signal handler.
20237 * doc/invoke.texi (AVR Options): Document it. Update description
20238 for -nodevicelib option.
20239
20240 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20241
20242 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
20243 up parentheses. Use GET_MODE_UNIT_BITSIZE.
20244 (aarch64_<sur>shll2_n<mode>): Likewise.
20245
20246 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
20247
20248 PR middle-end/71529
20249 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
20250 DECL_CONTEXT for copied arguments.
20251
20252 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20253
20254 PR tree-optimization/71483
20255 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
20256 for slp
20257
20258 2016-06-15 Martin Liska <mliska@suse.cz>
20259
20260 * predict.c (tree_predict_by_opcode): Call predict_edge_def
20261 instead of predict_edge w/o a probability.
20262
20263 2016-06-15 Alan Hayward <alan.hayward@arm.com>
20264
20265 PR tree-optimization/71439
20266 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
20267 live PHIs.
20268
20269 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20270
20271 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
20272 register subregs in SET_SRC.
20273
20274 2016-06-15 Richard Biener <rguenther@suse.de>
20275
20276 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
20277 store restrictions.
20278
20279 2016-06-15 Richard Biener <rguenther@suse.de>
20280
20281 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
20282 not consider dependences between accesses that belong to the
20283 same group.
20284 (vect_analyze_data_ref_dependences): Do not analyze read-read
20285 or self-dependences.
20286
20287 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20288
20289 * spellcheck-tree.c: Include spellcheck-tree.h rather than
20290 spellcheck.h.
20291 (find_closest_identifier): Reimplement in terms of
20292 best_match<tree,tree>.
20293 * spellcheck-tree.h: New file.
20294 * spellcheck.c (struct edit_distance_traits<const char *>): New
20295 struct.
20296 (find_closest_string): Reimplement in terms of
20297 best_match<const char *, const char *>.
20298 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
20299 overload to spellcheck-tree.h.
20300 (find_closest_identifier): Likewise.
20301 (struct edit_distance_traits<T>): New template.
20302 (class best_match): New class.
20303
20304 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20305
20306 * selftest-run-tests.c (selftest::run_tests): Call
20307 selftest::spellcheck_tree_c_tests.
20308 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
20309 * spellcheck-tree.c: Include selftest.h and stringpool.h.
20310 (selftest::test_find_closest_identifier): New function.
20311 (selftest::spellcheck_tree_c_tests): New function.
20312 * spellcheck.c (selftest::test_find_closest_string): Verify that
20313 the order of the vec does not affect the results for this case.
20314 (selftest::test_data): New array.
20315 (selftest::test_metric_conditions): New function.
20316 (selftest::spellcheck_c_tests): Add a test of case-comparison.
20317 Call selftest::test_metric_conditions.
20318
20319 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20320
20321 * config/rs6000/rs6000-builtin.def (commentary): Typo.
20322 (BU_P9_MISC_1): Likewise.
20323 (BU_P9_64BIT_MISC_0): Likewise.
20324 (BU_P9_MISC_0): Likewise.
20325
20326 2016-06-14 David Malcolm <dmalcolm@redhat.com>
20327
20328 * gcc-rich-location.c
20329 (gcc_rich_location::add_fixit_misspelled_id): New method.
20330 * gcc-rich-location.h
20331 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
20332
20333 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
20334
20335 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
20336 FreeBSD 11 and above.
20337
20338 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
20339
20340 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
20341
20342 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20343
20344 * expmed.h: Close parenthesis in "at your option" in copyright
20345 boilerplate.
20346 * lower-subreg.h: Likewise.
20347
20348 2016-06-14 Richard Biener <rguenther@suse.de>
20349
20350 PR middle-end/71526
20351 * genmatch.c (expr::gen_transform): Use in_type for comparisons
20352 if available.
20353
20354 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20355
20356 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
20357 New function.
20358 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
20359 mask+shift version.
20360 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
20361 New prototype.
20362 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
20363 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
20364
20365 2016-06-14 Richard Biener <rguenther@suse.de>
20366
20367 PR tree-optimization/71522
20368 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
20369 copying into float copying.
20370
20371 2016-06-14 Jakub Jelinek <jakub@redhat.com>
20372
20373 PR tree-optimization/71520
20374 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
20375 (replace_block_by): Move user labels from bb1 to bb2.
20376
20377 2016-06-14 Richard Biener <rguenther@suse.de>
20378
20379 PR middle-end/71310
20380 PR bootstrap/71510
20381 * expr.h (get_bit_range): Declare.
20382 * expr.c (get_bit_range): Export.
20383 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
20384 word_mode again to constrain the bitfield access.
20385
20386 2016-06-14 Richard Biener <rguenther@suse.de>
20387
20388 PR tree-optimization/71521
20389 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
20390 division int_const_binop against zero divisor.
20391
20392 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20393
20394 * config/i386/i386.md (signbittf2): New expander.
20395 * config/i386/sse.md (ptesttf2): New insn pattern.
20396
20397 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20398
20399 PR bootstrap/71481
20400 * input.c (selftest::test_reading_source_line): Avoid reading from
20401 __FILE__ by creating a tempfile with known content and reading
20402 from that instead.
20403
20404 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20405
20406 * pretty-print.c (assert_pp_format_colored): Skip the test if
20407 GCC_COLORS is set.
20408 (test_pp_format): Remove comment about GCC_COLORS.
20409
20410 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20411
20412 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
20413 * pretty-print.c (assert_pp_format_va): Add location param and use
20414 it with ASSERT_STREQ_AT.
20415 (assert_pp_format): Add location param and pass it to
20416 assert_pp_format_va.
20417 (assert_pp_format_colored): Likewise.
20418 (ASSERT_PP_FORMAT_1): New.
20419 (ASSERT_PP_FORMAT_2): New.
20420 (ASSERT_PP_FORMAT_3): New.
20421 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
20422 explicitly, or implicitly via the above macros.
20423 * selftest.c (selftest::pass): Use a selftest::location rather
20424 than file and line.
20425 (selftest::fail): Likewise. Print the function name.
20426 (selftest::fail_formatted): Likewise.
20427 (selftest::assert_streq): Use a selftest::location rather than
20428 file and line.
20429 * selftest.h (selftest::location): New struct.
20430 (SELFTEST_LOCATION): New macro.
20431 (selftest::pass): Accept a const location & rather than file
20432 and line.
20433 (selftest::fail): Likewise.
20434 (selftest::fail_formatted): Likewise.
20435 (selftest::assert_streq): Likewise.
20436 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
20437 (ASSERT_FALSE): Likewise.
20438 (ASSERT_EQ): Likewise.
20439 (ASSERT_NE): Likewise.
20440 (ASSERT_STREQ): Likewise.
20441 (ASSERT_PRED1): Likewise.
20442 (ASSERT_STREQ_AT): New macro.
20443
20444 2016-06-13 David Malcolm <dmalcolm@redhat.com>
20445
20446 * selftest.c (selftest::fail_formatted): New function.
20447 (selftest::assert_streq): New function.
20448 * selftest.h (selftests::fail_formatted): New decl.
20449 (selftest::assert_streq): New decl.
20450 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
20451
20452 2016-06-13 Jeff Law <law@redhat.com>
20453
20454 PR tree-optimization/71403
20455 * tree-ssa-threadbackward.c
20456 (convert_and_register_jump_thread_path): No longer accept reference
20457 to path. Do not pop items off the path anymore.
20458 (fsm_find_control_statement_thread_paths): Do not allow threading
20459 to a deeper loop nest. Pop the last item off the path here rather
20460 than in convert_and_register_jump_thread_path.
20461
20462 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20463 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
20464
20465 [AArch64] Emit division using the Newton series
20466
20467 * config/aarch64/aarch64-protos.h
20468 (cpu_approx_modes): Add new member "division".
20469 (aarch64_emit_approx_div): Declare new function.
20470 * config/aarch64/aarch64.c
20471 (generic_approx_modes): New member "division".
20472 (exynosm1_approx_modes): Likewise.
20473 (xgene1_approx_modes): Likewise.
20474 (aarch64_emit_approx_div): Define new function.
20475 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
20476 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
20477 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
20478 * doc/invoke.texi (-mlow-precision-div): Describe new option.
20479
20480 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20481 Wilco Dijkstra <wilco.dijkstra@arm.com>
20482
20483 [AArch64] Emit square root using the Newton series
20484
20485 * config/aarch64/aarch64-protos.h
20486 (aarch64_emit_approx_rsqrt): Replace with new function
20487 "aarch64_emit_approx_sqrt".
20488 (cpu_approx_modes): New member "sqrt".
20489 * config/aarch64/aarch64.c
20490 (generic_approx_modes): New member "sqrt".
20491 (exynosm1_approx_modes): Likewise.
20492 (xgene1_approx_modes): Likewise.
20493 (aarch64_emit_approx_rsqrt): Replace with new function
20494 "aarch64_emit_approx_sqrt".
20495 (aarch64_override_options_after_change_1): Handle new option.
20496 * config/aarch64/aarch64-simd.md
20497 (rsqrt<mode>2): Use new function instead.
20498 (sqrt<mode>2): New expansion and insn definitions.
20499 * config/aarch64/aarch64.md: Likewise.
20500 * config/aarch64/aarch64.opt
20501 (mlow-precision-sqrt): Add new option description.
20502 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
20503
20504 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
20505
20506 [AArch64] Add more choices for the reciprocal square root approximation
20507
20508 Allow a target to prefer such operation depending on the operation mode.
20509
20510 * config/aarch64/aarch64-protos.h
20511 (AARCH64_APPROX_MODE): New macro.
20512 (AARCH64_APPROX_{NONE,ALL}): Likewise.
20513 (cpu_approx_modes): New structure.
20514 (tune_params): New member "approx_modes".
20515 * config/aarch64/aarch64-tuning-flags.def
20516 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
20517 * config/aarch64/aarch64.c
20518 (generic_approx_modes): New core "cpu_approx_modes" structure.
20519 (exynosm1_approx_modes): Likewise.
20520 (xgene1_approx_modes): Likewise.
20521 (generic_tunings): New member "approx_modes".
20522 (cortexa35_tunings): Likewise.
20523 (cortexa53_tunings): Likewise.
20524 (cortexa57_tunings): Likewise.
20525 (cortexa72_tunings): Likewise.
20526 (exynosm1_tunings): Likewise.
20527 (thunderx_tunings): Likewise.
20528 (xgene1_tunings): Likewise.
20529 (use_rsqrt_p): New argument for the mode and use new member from
20530 "tune_params".
20531 (aarch64_builtin_reciprocal): Devise mode from builtin.
20532 (aarch64_optab_supported_p): New argument for the mode.
20533 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
20534
20535 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20536
20537 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
20538 RS6000_BTM_MODULO flag into the set of flags that are considered
20539 to be part of the common configuration.
20540
20541 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
20542
20543 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
20544 difference unsigned.
20545 (vec_absdb): New macro for vector absolute difference unsigned
20546 byte.
20547 (vec_absdh): New macro for vector absolute difference unsigned
20548 half-word.
20549 (vec_absdw): New macro for vector absolute difference unsigned word.
20550 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
20551 (vadu<mode>3): New insn.
20552 (*p9_vadu<mode>3): New insn.
20553 * config/rs6000/rs6000-builtin.def (vadub): New built-in
20554 definition.
20555 (vaduh): New built-in definition.
20556 (vaduw): New built-in definition.
20557 (vadu): New overloaded built-in definition.
20558 (vadub): New overloaded built-in definition.
20559 (vaduh): New overloaded built-in definition.
20560 (vaduw): New overloaded built-in definition.
20561 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20562 overloaded vector absolute difference unsigned functions.
20563 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
20564 the ISA 3.0 vector absolute difference unsigned built-in functions.
20565
20566 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
20567
20568 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
20569 update shared_lookup_references only once after changing operands.
20570
20571 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
20572
20573 PR middle-end/71373
20574 * tree-nested.c (convert_nonlocal_omp_clauses)
20575 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
20576
20577 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
20578 * tree.def (CASE_LABEL_EXPR): Likewise.
20579
20580 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
20581
20582 PR bootstrap/71481
20583 * input.c (test_builtins): Fix an assertion.
20584
20585 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20586
20587 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
20588 (paritysi2): Ditto.
20589 (isinfxf2): Ditto.
20590 (isinf<mode>2): Ditto.
20591
20592 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
20593
20594 * ggc-tests.c (test_finalization): Only test need_finalization_p
20595 for GCC_VERSION >= 4003.
20596
20597 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20598
20599 * config/s390/vecintrin.h: Fix file description in comment.
20600
20601 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20602
20603 * config/s390/s390-builtin-types.def: Change builtin type naming
20604 scheme to match builtin-types.def.
20605
20606 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
20607
20608 * fold-const.c (optimize_minmax_comparison): Remove.
20609 (fold_comparison): Remove call to the above.
20610 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
20611 New transformations.
20612
20613 2016-06-13 Alan Hayward <alan.hayward@arm.com>
20614
20615 PR tree-optimization/71416
20616 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
20617 multiple entries
20618
20619 2016-06-13 Martin Liska <mliska@suse.cz>
20620
20621 * predict.c (enum predictor_reason): Prefix enum with REASON_.
20622 (combine_predictions_for_insn): Likewise.
20623 (prune_predictions_for_bb): Likewise.
20624 (combine_predictions_for_bb): Likewise.
20625
20626 2016-06-13 Richard Biener <rguenther@suse.de>
20627
20628 PR tree-optimization/71505
20629 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
20630 assert match comment.
20631
20632 2016-06-13 Marek Polacek <polacek@redhat.com>
20633
20634 PR middle-end/71476
20635 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
20636 gimplify_switch_expr.
20637 (warn_switch_unreachable_r): New function.
20638
20639 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20640
20641 PR target/71379
20642 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
20643 one.
20644
20645 2016-06-13 Richard Biener <rguenther@suse.de>
20646
20647 PR middle-end/64516
20648 * fold-const.c (fold_unary_loc): Preserve alignment when
20649 folding a VIEW_CONVERT_EXPR into a MEM_REF.
20650
20651 2016-06-13 Martin Liska <mliska@suse.cz>
20652
20653 PR sanitizer/71458
20654 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
20655 w/ -fsanitize=bounds.
20656
20657 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20658
20659 * config/i386/i386.c (ix86_init_builtins): Calculate
20660 FLOAT128_FTYPE_CONST_STRING function type only once.
20661 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
20662 built-in functions are available for x86-32 and x86-64 targets.
20663
20664 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
20665
20666 PR target/71241
20667 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
20668 New primitive type.
20669 (FLOAT128_FTYPE_CONST_STRING): New function type.
20670 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
20671 [IX86_BUILTIN_NANSQ]: Ditto.
20672 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20673 (ix86_init_builtin_types): Declare const_string_type_node.
20674 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
20675 builtin functions.
20676 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
20677 * doc/extend.texi (x86 Built-in Functions): Document
20678 __builtin_nanq and __builtin_nansq.
20679
20680 2016-06-11 Jiong Wang <jiong.wang@arm.com>
20681
20682 PR target/71061
20683 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
20684 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
20685 length for pop patterns.
20686 (arm_attr_length_push_multi): Update comments.
20687 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
20688 attribute.
20689 (*pop_multiple_with_writeback_and_return): Likewise.
20690 (*pop_multiple_with_return): Likewise.
20691
20692 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
20693
20694 PR middle-end/71310
20695 * fold-const.c (optimize_bit_field_compare): Don't try to use
20696 word_mode unconditionally for reading the bit field, look at
20697 DECL_BIT_FIELD_REPRESENTATIVE instead.
20698
20699 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
20700
20701 PR middle-end/71478
20702 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
20703 vector integer type.
20704
20705 2016-06-10 Jakub Jelinek <jakub@redhat.com>
20706
20707 PR middle-end/71494
20708 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
20709 without LABEL_DECL, set *handled_ops_p to false instead of true.
20710
20711 2016-06-10 Martin Sebor <msebor@redhat.com>
20712
20713 PR c/71392
20714 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
20715 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
20716 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
20717 them.
20718 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
20719 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
20720 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
20721 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
20722 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
20723 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
20724 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
20725 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
20726
20727 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20728
20729 * config/arm/arm.h (pool_vector_label,
20730 return_used_this_function): Remove.
20731
20732 2016-06-10 Jeff Law <law@redhat.com>
20733
20734 PR tree-optimization/71335
20735 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
20736 zero length paths here.
20737 (convert_and_register_jump_thread_path): Remove hacks related to
20738 duplicated blocks in the jump thread path.
20739 (fsm_find_control_statement_thread_paths): Avoid putting the same
20740 block on the thread path twice, but ensure the thread path is
20741 unchanged from the caller's point of view.
20742
20743 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20744
20745 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
20746 * predict.def (PRED_LOOP_BRANCH): Remove.
20747
20748 2016-06-10 David Malcolm <dmalcolm@redhat.com>
20749
20750 * Makefile.in (OBJS): Add ggc-tests.o.
20751 (GTFILES): Add ggc-tests.c.
20752 * ggc-tests.c: New file.
20753 * selftest-run-tests.c (selftest::run_tests): Call
20754 selftest::ggc_tests_c_tests.
20755 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
20756
20757 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
20758
20759 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
20760
20761 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
20762
20763 PR sanitizer/71480
20764 * varasm.c (place_block_symbol): Adjust alignment for asan protected
20765 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
20766
20767 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
20768
20769 * profile.c: Include cfgloop.h.
20770 (branch_prob): Compute estimated number of iterations.
20771 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
20772 recompute estimate number of iterations from profile.
20773
20774 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
20775
20776 PR inline-asm/68843
20777 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
20778 must be grouped on top of stack. Don't force early clobber
20779 on ordinary reg outputs.
20780
20781 2016-06-10 Richard Biener <rguenther@suse.de>
20782
20783 * targhooks.c (default_builtin_vectorization_cost): Adjust
20784 vec_construct cost.
20785
20786 2016-06-10 Richard Biener <rguenther@suse.de>
20787
20788 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
20789 to fold the RHS to a constant if possible.
20790
20791 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
20792
20793 PR middle-end/71373
20794 * tree-nested.c (convert_nonlocal_omp_clauses)
20795 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
20796 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
20797 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
20798
20799 * gimplify.c (gimplify_adjust_omp_clauses): Discard
20800 OMP_CLAUSE_TILE.
20801 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
20802
20803 * omp-low.c (scan_sharing_clauses): Don't expect
20804 OMP_CLAUSE__CACHE_.
20805
20806 2016-06-10 Alan Hayward <alan.hayward@arm.com>
20807
20808 PR tree-optimization/71407
20809 PR tree-optimization/71416
20810 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
20811 BIT_FIELD_REF type.
20812
20813 2016-06-10 Richard Biener <rguenther@suse.de>
20814
20815 PR middle-end/71477
20816 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
20817
20818 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
20819
20820 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
20821
20822 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
20823 Jiong Wang <jiong.wang@arm.com>
20824
20825 PR rtl-optimization/70751
20826 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
20827 spilled into memory.
20828
20829 2016-06-09 Jonathan Yong <10walls@gmail.com>
20830
20831 Revert:
20832 2015-09-21 Jonathan Yong <10walls@gmail.com>
20833
20834 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
20835 sysroot/usr/lib/32api for additional win32 libraries,
20836 fixes failing Cygwin bootstrapping.
20837
20838 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
20839
20840 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
20841 Delete.
20842
20843 2016-06-09 David Malcolm <dmalcolm@redhat.com>
20844
20845 PR bootstrap/71471
20846 * pretty-print.c (pp_indent): Specify that %p is printed in a
20847 host-dependent manner.
20848 (test_pp_format): Remove the test for %p.
20849
20850 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
20851
20852 * config/mips/mips.c (mips_output_jump): Fix formatting.
20853
20854 2016-06-09 Richard Biener <rguenther@suse.de>
20855
20856 PR tree-optimization/71462
20857 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
20858 removed blocks.
20859
20860 2016-06-09 Martin Liska <mliska@suse.cz>
20861
20862 * predict.c (dump_prediction): Add new argument.
20863 (enum predictor_reason): New enum.
20864 (struct predictor_hash): New struct.
20865 (predictor_hash::hash): New function.
20866 (predictor_hash::equal): Likewise.
20867 (not_removed_prediction_p): New function.
20868 (prune_predictions_for_bb): Likewise.
20869 (combine_predictions_for_bb): Prune predictions.
20870
20871 2016-06-09 Martin Liska <mliska@suse.cz>
20872
20873 * predict.c (filter_predictions): New function.
20874 (remove_predictions_associated_with_edge): Use the filter
20875 function.
20876 (equal_edge_p): New function.
20877
20878 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
20879
20880 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
20881 Correct usage of @samp vs @option, add @samp where appropriate.
20882 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
20883 Add armv6s-m and document it, as it is no official ARM name.
20884
20885 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20886
20887 * ifcvt.c (struct noce_if_info): Add transform_name field.
20888 (noce_try_move): Set if_info->transform_name to the function name.
20889 (noce_try_ifelse_collapse): Likewise.
20890 (noce_try_store_flag): Likewise.
20891 (noce_try_inverse_constants): Likewise.
20892 (noce_try_store_flag_constants): Likewise.
20893 (noce_try_addcc): Likewise.
20894 (noce_try_store_flag_mask): Likewise.
20895 (noce_try_cmove): Likewise.
20896 (noce_try_cmove_arith): Likewise.
20897 (noce_try_minmax): Likewise.
20898 (noce_try_abs): Likewise.
20899 (noce_try_sign_mask): Likewise.
20900 (noce_try_bitop): Likewise.
20901 (noce_convert_multiple_sets): Likewise.
20902 (noce_process_if_block): Print if_info->transform_name to
20903 dump_file if transformation succeeded.
20904
20905 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20906
20907 * config/arm/cortex-a57.md (cortex_a57_alu):
20908 Handle csel type.
20909
20910 2016-06-08 Martin Sebor <msebor@redhat.com>
20911 Jakub Jelinek <jakub@redhat.com>
20912
20913 PR c++/70507
20914 PR c/68120
20915 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
20916 BUILT_IN_MUL_OVERFLOW_P): New builtins.
20917 * builtins.c: Include gimple-fold.h.
20918 (fold_builtin_arith_overflow): Handle
20919 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
20920 (fold_builtin_3): Likewise.
20921 * doc/extend.texi (Integer Overflow Builtins): Document
20922 __builtin_{add,sub,mul}_overflow_p.
20923
20924 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
20925
20926 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
20927 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
20928
20929 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
20930
20931 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
20932 Rewrite, looking one level down for records and arrays.
20933
20934 2016-06-08 David Malcolm <dmalcolm@redhat.com>
20935
20936 * pretty-print.c: Include "selftest.h".
20937 (pp_format): Fix comment.
20938 (identifier_to_locale): Likewise.
20939 (selftest::test_basic_printing): New function.
20940 (selftest::assert_pp_format): New function.
20941 (selftest::test_pp_format): New function.
20942 (selftest::pretty_print_c_tests): New function.
20943 * selftest-run-tests.c (selftest::run_tests): Call
20944 selftest::pretty_print_c_tests.
20945 * selftest.h (pretty_print_c_tests): New declaration.
20946
20947 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
20948
20949 * invoke.texi (max-loop-headers-insns): Document.
20950 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
20951 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
20952 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
20953
20954 2016-06-08 Richard Biener <rguenther@suse.de>
20955
20956 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
20957 on strided SLP loads and fall back to scalar loads in case
20958 we can't chunk them.
20959
20960 2016-06-08 Richard Biener <rguenther@suse.de>
20961
20962 PR tree-optimization/71452
20963 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
20964 type used for the SSA rewrite has enough precision to cover
20965 the dynamic type of the location.
20966
20967 2016-06-08 Jakub Jelinek <jakub@redhat.com>
20968 Richard Biener <rguenther@suse.de>
20969
20970 PR c++/71448
20971 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
20972 the same as DECL_P (base0) for indirect_base0. Use equality_code
20973 in one further place.
20974
20975 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
20976
20977 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
20978 to one word if the field is known to overlap other words.
20979 (extract_bit_field_1): Likewise.
20980 (store_split_bit_field): Remove compensating code.
20981 (extract_split_bit_field): Likewise.
20982
20983 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
20984
20985 PR debug/71432
20986 PR ada/71413
20987 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
20988
20989 2016-06-08 Jiong Wang <jiong.wang@arm.com>
20990
20991 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
20992 VDQF.
20993 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
20994 (arch64_addpv4sf): Delete.
20995 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
20996 "gen_aarch64_addpv4sf".
20997 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
20998 builtin.
20999 (vpadds_f32): Likewise.
21000 (vpaddq_f32): Likewise.
21001 (vpaddq_f64): Likewise.
21002
21003 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21004
21005 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
21006 VALLF.
21007 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
21008 to VALLF. Rename to "fabd<mode>3".
21009 "*fabd_scalar<mode>3): Delete.
21010 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
21011 Use builtin.
21012 (vabdd_f64): Likewise.
21013 (vabd_f32): Likewise.
21014 (vabd_f64): Likewise.
21015 (vabdq_f32): Likewise.
21016 (vabdq_f64): Likewise.
21017
21018 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21019
21020 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
21021 VALLF.
21022 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
21023 "aarch64_rsqrts<mode>".
21024 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
21025 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
21026 builtin.
21027 (vrsqrtsd_f64): Likewise.
21028 (vrsqrts_f32): Likewise.
21029 (vrsqrts_f64): Likewise.
21030 (vrsqrtsq_f32): Likewise.
21031 (vrsqrtsq_f64): Likewise.
21032
21033 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21034
21035 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
21036 VALLF.
21037 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
21038 "aarch64_rsqrte<mode>".
21039 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
21040 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
21041 builtin.
21042 (vrsqrted_f64): Likewise.
21043 (vrsqrte_f32): Likewise.
21044 (vrsqrte_f64): Likewise.
21045 (vrsqrteq_f32): Likewise.
21046 (vrsqrteq_f64): Likewise.
21047
21048 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21049
21050 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
21051 (ucvtf): Likewise.
21052 (fcvtzs): Likewise.
21053 (fcvtzu): Likewise.
21054 * config/aarch64/aarch64-simd.md
21055 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
21056 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
21057 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
21058 Use builtin.
21059 (vcvt_n_f32_u32): Likewise.
21060 (vcvt_n_s32_f32): Likewise.
21061 (vcvt_n_u32_f32): Likewise.
21062 (vcvtq_n_f32_s32): Likewise.
21063 (vcvtq_n_f32_u32): Likewise.
21064 (vcvtq_n_f64_s64): Likewise.
21065 (vcvtq_n_f64_u64): Likewise.
21066 (vcvtq_n_s32_f32): Likewise.
21067 (vcvtq_n_s64_f64): Likewise.
21068 (vcvtq_n_u32_f32): Likewise.
21069 (vcvtq_n_u64_f64): Likewise.
21070 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
21071 (VSDQ_SDI): Likewise.
21072 (fcvt_target): Support V4DI, V4SI and V2SI.
21073 (FCVT_TARGET): Likewise.
21074
21075 2016-06-08 Jiong Wang <jiong.wang@arm.com>
21076
21077 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
21078 (TYPES_BINOP_SUS): Likewise.
21079 (aarch64_simd_builtin_data): Update include file name.
21080 (aarch64_builtins): Likewise.
21081 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
21082 for conversion between scalar float-point and fixed-point.
21083 (ucvtf): Likewise.
21084 (fcvtzs): Likewise.
21085 (fcvtzu): Likewise.
21086 * config/aarch64/aarch64.md
21087 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
21088 pattern for conversion between scalar float to fixed-pointer.
21089 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
21090 (UNSPEC_FCVTZS): New UNSPEC enumeration.
21091 (UNSPEC_FCVTZU): Likewise.
21092 (UNSPEC_SCVTF): Likewise.
21093 (UNSPEC_UCVTF): Likewise.
21094 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
21095 Use builtin.
21096 (vcvtd_n_f64_u64): Likewise.
21097 (vcvtd_n_s64_f64): Likewise.
21098 (vcvtd_n_u64_f64): Likewise.
21099 (vcvtd_n_f32_s32): Likewise.
21100 (vcvts_n_f32_u32): Likewise.
21101 (vcvtd_n_s32_f32): Likewise.
21102 (vcvts_n_u32_f32): Likewise.
21103 * config/aarch64/iterators.md (fcvt_target): Support integer to float
21104 mapping.
21105 (FCVT_TARGET): Likewise.
21106 (FCVT_FIXED2F): New iterator.
21107 (FCVT_F2FIXED): Likewise.
21108 (fcvt_fixed_insn): New define_int_attr.
21109
21110 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21111
21112 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
21113 some statements was removed.
21114
21115 2016-06-08 Alan Hayward <alan.hayward@arm.com>
21116
21117 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
21118 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
21119 (vect_can_advance_ivs_p): likewise.
21120 (vect_update_ivs_after_vectorizer): likewise.
21121 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
21122 (vect_analyze_scalar_cycles_1): likewise.
21123 (vect_analyze_loop_operations): likewise.
21124 (report_vect_op): likewise.
21125 (vect_is_slp_reduction): likewise.
21126 (vect_is_simple_reduction): likewise.
21127 (get_initial_def_for_induction): likewise.
21128 (vect_transform_loop): likewise.
21129 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
21130 (vect_recog_sad_pattern): likewise.
21131 (vect_recog_widen_sum_pattern): likewise.
21132 (vect_recog_widening_pattern): likewise.
21133 (vect_recog_divmod_pattern): likewise.
21134 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
21135 (vect_analyze_slp_instance): likewise.
21136 (vect_transform_slp_perm_load): likewise.
21137 (vect_schedule_slp_instance): likewise.
21138
21139 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21140
21141 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
21142 (return_prediction): PRED_CONST_RETURN predict return as not taken.
21143 * predict.def (PRED_CONTINUE): Change hitrate 50->67
21144 (PRED_LOOP_BRANCH): Document predictor as broken.
21145 (PRED_LOOP_EXIT): Change hitrate 91->92.
21146 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
21147 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
21148 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
21149 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
21150 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
21151 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
21152 (PRED_CALL): Chane hitrate 71->67.
21153 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
21154 (PRED_GOTO): Document as unused right now.
21155 (PRED_CONST_RETURN): Change hitrate 67->69
21156 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
21157 (PRED_NULL_RETURN): Change hitrate 91->90.
21158 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
21159 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
21160 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
21161
21162 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
21163
21164 * config/rs6000/altivec.h: Add __builtin_vec_mul.
21165 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
21166 special case Altivec builtin.
21167 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21168 VSX_BUILTIN_VEC_MUL (replaced with special case code).
21169 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21170 code for ALTIVEC_BUILTIN_VEC_MUL.
21171 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21172 for __builtin_vec_mul.
21173
21174 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
21175
21176 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
21177 -mno-htm.
21178
21179 2016-06-07 David Malcolm <dmalcolm@redhat.com>
21180
21181 * spellcheck.c (selftest::test_find_closest_string): New function.
21182 (spellcheck_c_tests): Call the above.
21183
21184 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21185
21186 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
21187
21188 2016-06-07 Jakub Jelinek <jakub@redhat.com>
21189
21190 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
21191 Yv=Yv,C alternatives.
21192
21193 2016-06-07 Richard Biener <rguenther@suse.de>
21194
21195 PR c/61564
21196 * common.opt (ffast-math): Make Optimization.
21197
21198 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
21199 Prachi Godbole <prachi.godbole@imgtec.com>
21200
21201 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
21202 `fabs' and `fneg' type attributes.
21203 (p5600_fpu_fabs): Add `fmove' to the comment.
21204
21205 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
21206
21207 * gimple.c: Include builtins.h
21208 (gimple_inexpensive_call_p): New function.
21209 * gimple.h (gimple_inexpensive_call_p): Declare.
21210 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
21211 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
21212 fix formatting.
21213
21214 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
21215
21216 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
21217 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
21218 warning_at_rich_loc, warning_n, pedwarn, permerror,
21219 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
21220 sorry, fatal_error, internal_error, internal_error_no_backtrace):
21221 Use the above.
21222
21223 2016-06-07 Richard Biener <rguenther@suse.de>
21224
21225 PR tree-optimization/71428
21226 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
21227 BIT_FIELD_REF op vs. load.
21228
21229 2016-06-07 Richard Biener <rguenther@suse.de>
21230
21231 PR middle-end/71423
21232 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
21233 for signed ops.
21234
21235 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21236
21237 * config/pa/pa.md (call): Generate indirect long calls to non-local
21238 functions on TARGET_64BIT.
21239 (call_value): Likewise.
21240
21241 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
21242
21243 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
21244 pattern and subsequent splitters.
21245 (call_val_reg_64bit_post_reload): Likewise.
21246
21247 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21248
21249 PR middle-end/71408
21250 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
21251 propagate_op_to_single_use.
21252
21253 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
21254
21255 PR middle-end/71281
21256 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
21257
21258 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
21259
21260 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
21261 (enum x86_dirflag_state): New enum.
21262 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
21263 (machine_function): Remove needs_cld.
21264 (ix86_current_function_needs_cld): Remove.
21265 * config/i386/i386.c (ix86_set_func_type): Set
21266 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
21267 (ix86_expand_prologue): Do not emit CLD here.
21268 (ix86_dirflag_mode_needed): New function.
21269 (ix86_dirflag_mode_entry): Ditto.
21270 (ix86_mode_needed): Handle X86_DIRFLAG entity.
21271 (ix86_mode_after): Ditto.
21272 (ix86_mode_entry): Ditto.
21273 (ix86_mode_exit): Ditto.
21274 (ix86_emit_mode_set): Ditto.
21275 * config/i386/i386.md (strmov_singleop): Set
21276 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
21277 Do not set ix86_current_function_needs_cld.
21278 (rep_mov): Ditto.
21279 (strset_singleop): Ditto.
21280 (rep_stos): Ditto.
21281 (cmpstrnqi_nz_1): Ditto.
21282 (cmpstrnqi_1): Ditto.
21283 (strlenqi_1): Ditto.
21284
21285 2016-06-06 Jakub Jelinek <jakub@redhat.com>
21286
21287 PR tree-optimization/71259
21288 * tree-vect-slp.c (vect_get_constant_vectors): For
21289 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
21290 one for constant op, and use COND_EXPR for non-constant.
21291
21292 2016-06-06 David Malcolm <dmalcolm@redhat.com>
21293
21294 * Makefile.in (OBJS): Add function-tests.o,
21295 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
21296 selftest-run-tests.o.
21297 (OBJS-libcommon): Add selftest.o.
21298 (OBJS-libcommon-target): Add selftest.o.
21299 (all.internal): Add "selftest".
21300 (all.cross): Likewise.
21301 (selftest): New phony target.
21302 (s-selftest): New target.
21303 (selftest-gdb): New phony target.
21304 (COLLECT2_OBJS): Add selftest.o.
21305 * bitmap.c: Include "selftest.h".
21306 (selftest::test_gc_alloc): New function.
21307 (selftest::test_set_range): New function.
21308 (selftest::test_clear_bit_in_middle): New function.
21309 (selftest::test_copying): New function.
21310 (selftest::test_bitmap_single_bit_set_p): New function.
21311 (selftest::bitmap_c_tests): New function.
21312 * common.opt (fself-test): New.
21313 * diagnostic-show-locus.c: Include "selftest.h".
21314 (make_range): New function.
21315 (test_range_contains_point_for_single_point): New function.
21316 (test_range_contains_point_for_single_line): New function.
21317 (test_range_contains_point_for_multiple_lines): New function.
21318 (assert_eq): New function.
21319 (test_get_line_width_without_trailing_whitespace): New function.
21320 (selftest::diagnostic_show_locus_c_tests): New function.
21321 * et-forest.c: Include "selftest.h".
21322 (selftest::test_single_node): New function.
21323 (selftest::test_simple_tree): New function.
21324 (selftest::test_disconnected_nodes): New function.
21325 (selftest::et_forest_c_tests): New function.
21326 * fold-const.c: Include "selftest.h".
21327 (selftest::assert_binop_folds_to_const): New function.
21328 (selftest::assert_binop_folds_to_nonlvalue): New function.
21329 (selftest::test_arithmetic_folding): New function.
21330 (selftest::fold_const_c_tests): New function.
21331 * function-tests.c: New file.
21332 * gimple.c: Include "selftest.h".
21333 Include "gimple-pretty-print.h".
21334 (selftest::verify_gimple_pp): New function.
21335 (selftest::test_assign_single): New function.
21336 (selftest::test_assign_binop): New function.
21337 (selftest::test_nop_stmt): New function.
21338 (selftest::test_return_stmt): New function.
21339 (selftest::test_return_without_value): New function.
21340 (selftest::gimple_c_tests): New function.
21341 * hash-map-tests.c: New file.
21342 * hash-set-tests.c: New file.
21343 * input.c: Include "selftest.h".
21344 (selftest::assert_loceq): New function.
21345 (selftest::test_accessing_ordinary_linemaps): New function.
21346 (selftest::test_unknown_location): New function.
21347 (selftest::test_builtins): New function.
21348 (selftest::test_reading_source_line): New function.
21349 (selftest::input_c_tests): New function.
21350 * rtl-tests.c: New file.
21351 * selftest-run-tests.c: New file.
21352 * selftest.c: New file.
21353 * selftest.h: New file.
21354 * spellcheck.c: Include "selftest.h".
21355 (selftest::levenshtein_distance_unit_test_oneway): New function,
21356 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
21357 (selftest::levenshtein_distance_unit_test): Likewise.
21358 (selftest::spellcheck_c_tests): Likewise.
21359 * toplev.c: Include selftest.h.
21360 (toplev::run_self_tests): New.
21361 (toplev::main): Handle -fself-test.
21362 * toplev.h (toplev::run_self_tests): New.
21363 * tree.c: Include "selftest.h".
21364 (selftest::test_integer_constants): New function.
21365 (selftest::test_identifiers): New function.
21366 (selftest::test_labels): New function.
21367 (selftest::tree_c_tests): New function.
21368 * tree-cfg.c: Include "selftest.h".
21369 (selftest::push_fndecl): New function.
21370 (selftest::test_linear_chain): New function.
21371 (selftest::test_diamond): New function.
21372 (selftest::test_fully_connected): New function.
21373 (selftest::tree_cfg_c_tests): New function.
21374 * vec.c: Include "selftest.h".
21375 (selftest::safe_push_range): New function.
21376 (selftest::test_quick_push): New function.
21377 (selftest::test_safe_push): New function.
21378 (selftest::test_truncate): New function.
21379 (selftest::test_safe_grow_cleared): New function.
21380 (selftest::test_pop): New function.
21381 (selftest::test_safe_insert): New function.
21382 (selftest::test_ordered_remove): New function.
21383 (selftest::test_unordered_remove): New function.
21384 (selftest::test_block_remove): New function.
21385 (selftest::reverse_cmp): New function.
21386 (selftest::test_qsort): New function.
21387 (selftest::vec_c_tests): New function.c.
21388 * wide-int.cc: Include selftest.h and wide-int-print.h.
21389 (selftest::from_int <wide_int>): New function.
21390 (selftest::from_int <offset_int>): New function.
21391 (selftest::from_int <widest_int>): New function.
21392 (selftest::assert_deceq): New function.
21393 (selftest::assert_hexeq): New function.
21394 (selftest::test_printing <VALUE_TYPE>): New function template.
21395 (selftest::test_ops <VALUE_TYPE>): New function template.
21396 (selftest::test_comparisons <VALUE_TYPE>): New function template.
21397 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
21398 template.
21399 (selftest::wide_int_cc_tests): New function.
21400
21401 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21402
21403 PR middle-end/37780
21404 * ifcvt.c (noce_try_ifelse_collapse): New function.
21405 Declare prototype.
21406 (noce_process_if_block): Call noce_try_ifelse_collapse.
21407 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
21408 (simplify_ternary_operation): Use the above to simplify
21409 conditional CLZ/CTZ expressions.
21410
21411 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21412
21413 PR middle-end/37780
21414 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
21415 define_insn_and_split.
21416
21417 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21418
21419 PR middle-end/37780
21420 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
21421
21422 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
21423
21424 PR c/24414
21425 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
21426 Implicitly clobber memory for basic asm with non-empty assembler
21427 string. Use targetm.md_asm_adjust also here.
21428 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
21429 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
21430 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
21431 non-empty assembler string.
21432 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
21433 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
21434 (decode_asm_operands): Handle basic asm in PARALLEL block.
21435 (extract_insn): Handle basic asm in PARALLEL block.
21436 * doc/extend.texi: Mention new behavior of basic asm.
21437 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
21438 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
21439 branch_needs_nop_p): Use asm_noperands.
21440
21441 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
21442
21443 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
21444 Include the M7 SPARC DFA scheduler.
21445 New attribute v3pipe.
21446 Annotate insns with v3pipe where appropriate.
21447 Define cpu_feature vis4.
21448 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
21449 Add (V8QI "8") to vbits.
21450 Add insns {add,sub}v8qi3
21451 Add insns ss{add,sub}v8qi3
21452 Add insns us{add,sub}{v8qi,v4hi}3
21453 Add insns {min,max}{v8qi,v4hi,v2si}3
21454 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
21455 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
21456 * config/sparc/niagara4.md: Add a comment explaining the
21457 discrepancy between the documented latenty numbers and the
21458 implemented ones.
21459 * config/sparc/niagara7.md: New file.
21460 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
21461 supports SPARC5 and VIS 4.0 instructions.
21462 * configure: Regenerate.
21463 * config.in: Likewise.
21464 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
21465 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
21466 TARGET_CPU_niagara7.
21467 (ASM_CPU64_DEFAULT_SPEC): Likewise.
21468 (CPP_CPU_SPEC): Handle niagara7.
21469 (ASM_CPU_SPEC): Likewise.
21470 * config/sparc/sparc-opts.h (processor_type): Add
21471 PROCESSOR_NIAGARA7.
21472 (mvis4): New option.
21473 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
21474 (AS_NIAGARA7_FLAG): Define.
21475 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
21476 (CPP_CPU64_DEFAULT_SPEC): Likewise.
21477 (CPP_CPU_SPEC): Handle niagara7.
21478 (ASM_CPU_SPEC): Likewise.
21479 * config/sparc/sparc.c (niagara7_costs): Define.
21480 (sparc_option_override): Handle niagara7 and adjust cache-related
21481 parameters with better values for niagara cpus. Also support VIS4.
21482 (sparc32_initialize_trampoline): Likewise.
21483 (sparc_use_sched_lookahead): Likewise.
21484 (sparc_issue_rate): Likewise.
21485 (sparc_register_move_cost): Likewise.
21486 (dump_target_flag_bits): Support VIS4.
21487 (sparc_vis_init_builtins): Likewise.
21488 (sparc_builtins): Likewise.
21489 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
21490 VIS4 4.0.
21491 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
21492 UltraSparc M7.
21493 * config/sparc/sparc.opt (sparc_processor_type): New value
21494 niagara7.
21495 * config/sparc/visintrin.h (__attribute__): Prototypes for the
21496 VIS4 builtins.
21497 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
21498 -mvis4.
21499 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
21500 VIS4 builtins.
21501
21502 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
21503
21504 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
21505
21506 2016-06-06 Richard Biener <rguenther@suse.de>
21507
21508 PR tree-optimization/71398
21509 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
21510 remove edges.
21511
21512 2016-06-05 James Bowman <james.bowman@ftdichip.com>
21513
21514 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
21515 ft32_expand_prolog, ft32_expand_epilogue):
21516 Handle pretend_args.
21517 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
21518 * config/ft32/ft32.md: Add pretend_returner.
21519
21520 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
21521
21522 PR target/71389
21523 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
21524 Copy op1 RTX to avoid invalid sharing.
21525 (ix86_expand_vector_move_misalign): Ditto.
21526
21527 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
21528
21529 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
21530 ATTRIBUTE_UNUSED.
21531
21532 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21533
21534 * predict.c (predicted_by_loop_heuristics_p): New function.
21535 (predict_iv_comparison): Use it.
21536 (predict_loops): Walk from innermost loops; do not predict edges
21537 leaving multiple loops multiple times; implement
21538 PRED_LOOP_ITERATIONS_MAX heuristics.
21539 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
21540
21541 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
21542
21543 * cfg.c (check_bb_profile): Do not report mismatched profiles when
21544 only edges out of BB are EH edges.
21545
21546 2016-06-04 Martin Sebor <msebor@redhat.com>
21547 Marcin Baczyński <marbacz@gmail.com>
21548
21549 PR c/48116
21550 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
21551 a void expression in a void function.
21552
21553 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21554
21555 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
21556 aux; dump reasons of decisions.
21557 (should_duplicate_loop_header_p): Likewise.
21558 (do_while_loop_p): Likewise.
21559 (ch_base::copy_headers): Dump asi num insns duplicated.
21560
21561 2016-06-04 Jakub Jelinek <jakub@redhat.com>
21562
21563 PR tree-optimization/71405
21564 * tree-ssa.c (execute_update_addresses_taken): For clobber with
21565 incompatible type, build a new clobber with the right type instead
21566 of building a VIEW_CONVERT_EXPR around it.
21567
21568 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21569
21570 PR tree-optimization/52171
21571 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
21572 by_pieces_ninsns instead of move_by_pieces_ninsns.
21573
21574 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
21575
21576 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
21577 for reg+reg addressing mode.
21578
21579 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21580
21581 * rs6000-c.c (c/c-tree.h): Add #include.
21582 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
21583 in C++ when found in the base position of vec_ld or vec_st.
21584
21585 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
21586
21587 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
21588 use of profile unless profile status is PROFILE_READ.
21589 * profile.c (compute_branch_probabilities): Set profile status
21590 only after reporting predictor hitrates.
21591
21592 2016-06-03 Joseph Myers <joseph@codesourcery.com>
21593
21594 PR target/71276
21595 PR target/71277
21596 * common.opt (ffp-int-builtin-inexact): New option.
21597 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
21598 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
21599 (ceil@var{m}2): Document dependence on this option.
21600 * ipa-inline-transform.c (inline_call): Handle
21601 flag_fp_int_builtin_inexact.
21602 * ipa-inline.c (can_inline_edge_p): Likewise.
21603 * config/i386/i386.md (rintxf2): Do not test
21604 flag_unsafe_math_optimizations.
21605 (rint<mode>2_frndint): New define_insn.
21606 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
21607 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
21608 for 387 instead of extending and truncating.
21609 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
21610 !flag_trapping_math instead of flag_unsafe_math_optimizations.
21611 Change to frndint<mode>2_<rounding>.
21612 (frndintxf2_<rounding>_i387): Likewise. Change to
21613 frndint<mode>2_<rounding>_i387.
21614 (<rounding_insn>xf2): Likewise.
21615 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
21616 !flag_trapping_math instead of flag_unsafe_math_optimizations for
21617 x87. Test TARGET_ROUND || !flag_trapping_math ||
21618 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
21619 SSE. Use ROUND_NO_EXC in constant operand of
21620 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
21621 for 387 instead of extending and truncating.
21622
21623 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
21624 Julia Koval <julia.koval@intel.com>
21625
21626 PR target/66960
21627 PR target/67630
21628 PR target/67634
21629 PR target/67841
21630 PR target/68037
21631 PR target/68618
21632 PR target/68661
21633 PR target/69575
21634 PR target/69596
21635 PR target/69734
21636 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
21637 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
21638 all registers, except for function return registers if there are
21639 no caller-saved registers.
21640 (ix86_set_func_type): New function.
21641 (ix86_set_current_function): Call ix86_set_func_type to set
21642 no_caller_saved_registers and func_type. Call reinit_regs if
21643 caller-saved registers are changed. Don't allow MPX, SSE, MMX
21644 nor x87 instructions in interrupt handler nor function with
21645 no_caller_saved_registers attribute.
21646 (ix86_function_ok_for_sibcall): Return false if there are no
21647 caller-saved registers.
21648 (type_natural_mode): Don't warn ABI change for MMX in interrupt
21649 handler.
21650 (ix86_function_arg_advance): Skip for callee in interrupt handler.
21651 (ix86_function_arg): Return special arguments in interrupt handler.
21652 (ix86_promote_function_mode): Promote pointer to word_mode only
21653 for normal functions.
21654 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
21655 interrupt handler.
21656 (ix86_epilogue_uses): New function.
21657 (ix86_hard_regno_scratch_ok): Likewise.
21658 (ix86_save_reg): Preserve all registers in interrupt handler
21659 after reload. Preserve all registers, except for function return
21660 registers, if there are no caller-saved registers after reload.
21661 (find_drap_reg): Always use callee-saved register if there are
21662 no caller-saved registers.
21663 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
21664 for interrupt handler.
21665 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
21666 Emit cld instruction if stringops are used in interrupt handler
21667 or interrupt handler isn't a leaf function.
21668 (ix86_expand_epilogue): Generate interrupt return for interrupt
21669 handler and pop the 'ERROR_CODE' off the stack before interrupt
21670 return in exception handler.
21671 (ix86_expand_call): Disallow calling interrupt handler directly.
21672 If there are no caller-saved registers, mark all registers that
21673 are clobbered by the call which returns as clobbered.
21674 (ix86_handle_no_caller_saved_registers_attribute): New function.
21675 (ix86_handle_interrupt_attribute): Likewise.
21676 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
21677 attributes.
21678 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
21679 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
21680 accumulation in interrupt function if stack may be realigned to
21681 avoid DRAP.
21682 (EPILOGUE_USES): New.
21683 (function_type): New enum.
21684 (machine_function): Add func_type and no_caller_saved_registers.
21685 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
21686 (interrupt_return): New pattern.
21687 * doc/extend.texi: Document x86 interrupt and
21688 no_caller_saved_registers attributes.
21689
21690 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
21691
21692 PR tree-optimization/52171
21693 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
21694 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
21695 Look for constant strings. Move some code to emit_block_cmp_hints
21696 and use it.
21697 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
21698 * defaults.h (COMPARE_MAX_PIECES): New macro.
21699 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
21700 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
21701 (clear_by_pieces_1): Don't declare. Move definition before use.
21702 (can_do_by_pieces): New static function.
21703 (can_move_by_pieces): Use it. Return bool.
21704 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
21705 OP. All callers changed. Handle COMPARE_BY_PIECES.
21706 (class pieces_addr); New.
21707 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
21708 pieces_addr::adjust, pieces_addr::increment_address,
21709 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
21710 functions for it.
21711 (class op_by_pieces_d): New.
21712 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
21713 functions for it.
21714 (class move_by_pieces_d, class compare_by_pieces_d,
21715 class store_by_pieces_d): New subclasses of op_by_pieces_d.
21716 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
21717 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
21718 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
21719 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
21720 compare_by_pieces_d::finish_mode): New member functions.
21721 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
21722 functions.
21723 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
21724 (emit_block_cmp_hints): New function.
21725 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
21726 use the newly defined classes.
21727 * expr.h (by_pieces_constfn): New typedef.
21728 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
21729 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
21730 (move_by_pieces_ninsns): Don't declare.
21731 (can_move_by_pieces): Change return value to bool.
21732 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
21733 (compare_by_pieces_branch_ratio): New hook.
21734 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
21735 (by_pieces_ninsns): Declare.
21736 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
21737 COMPARE_BY_PIECES.
21738 (default_compare_by_pieces_branch_ratio): New function.
21739 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
21740 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
21741 * doc/tm.texi: Regenerate.
21742 * tree-ssa-strlen.c: Include "builtins.h".
21743 (handle_builtin_memcmp): New static function.
21744 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
21745 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
21746
21747 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21748
21749 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
21750 relevant stmts which are simple and invariant.
21751 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
21752 instead of simple and invariant
21753
21754 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21755
21756 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
21757 (vectorizable_reduction): Check for new relevant state.
21758 (vectorizable_live_operation): vectorize live stmts using
21759 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
21760 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
21761 (vect_stmt_relevant_p): Check for stmts which are only used live.
21762 (process_use): Use of a stmt does not inherit it's live value.
21763 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
21764 (vect_analyze_stmt): Check for new relevant state.
21765 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
21766 outside the loop, but not inside it.
21767
21768 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21769
21770 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
21771 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
21772 (vect_get_vec_def_for_operand): Split out code.
21773
21774 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
21775
21776 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
21777
21778 2016-06-03 Alan Hayward <alan.hayward@arm.com>
21779
21780 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
21781
21782 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21783
21784 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
21785
21786 2016-06-03 Jakub Jelinek <jakub@redhat.com>
21787
21788 PR middle-end/71387
21789 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
21790 to noreturn e->callee->decl that has void return type and void
21791 arguments, adjust gimple_call_fntype and remove lhs even if it had
21792 previously addressable type.
21793
21794 2016-06-02 Jeff Law <law@redhat.com>
21795
21796 PR tree-optimization/71328
21797 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
21798 error when checking for a jump back onto the copied path.
21799
21800 2016-06-02 David Malcolm <dmalcolm@redhat.com>
21801
21802 * config/microblaze/microblaze.c (get_branch_target): Add return
21803 NULL_RTX for the non-CALL_P case.
21804 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
21805 (insert_wic): Remove unused local "j".
21806
21807 2016-06-02 Martin Liska <mliska@suse.cz>
21808
21809 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
21810
21811 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
21812 Julia Koval <julia.koval@intel.com>
21813
21814 * function.c (assign_parm_setup_stack): Force source into a
21815 register if needed.
21816 * target.def (function_incoming_arg): Update documentation to
21817 allow arbitrary address computation based on hard register.
21818 * doc/tm.texi: Regenerated.
21819
21820 2016-06-02 Martin Liska <mliska@suse.cz>
21821
21822 * predict.c (combine_predictions_for_bb): Fix first match in
21823 cases where a first predictor contains more than one occurence
21824 in list of predictors. Take the best value in such case.
21825
21826 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21827
21828 PR rtl-optimization/71295
21829 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
21830 offset would go over the size of the inner mode reject it.
21831
21832 2016-06-02 Jakub Jelinek <jakub@redhat.com>
21833
21834 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
21835 x=x,x and v=v,m instead of x=x,m.
21836
21837 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
21838 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
21839 alternative to v=rm,C.
21840
21841 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
21842 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
21843 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
21844 instead of vex for the last two above mentioned alternatives.
21845
21846 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21847
21848 PR target/70830
21849 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
21850
21851 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
21852
21853 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
21854
21855 2016-06-01 David Malcolm <dmalcolm@redhat.com>
21856
21857 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
21858 from int to unsigned.
21859
21860 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21861
21862 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
21863 alternatives, eliminating preferred register class. Add support
21864 for the MTVSRDD instruction in ISA 3.0.
21865 (vsx_splat_v4si_internal): Use splat_input_operand instead of
21866 reg_or_indexed_operand.
21867 (vsx_splat_v4sf_internal): Likewise.
21868
21869 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
21870
21871 PR target/71186
21872 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
21873 for loading up all 0's or all 1's.
21874
21875 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
21876
21877 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
21878
21879 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
21880
21881 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
21882 extension.
21883 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
21884 * gcc.c (set_source_date_epoch_envvar): New function, sets
21885 the SOURCE_DATE_EPOCH environment variable to the current time.
21886
21887 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21888
21889 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
21890 the factor for live Phi nodes.
21891
21892 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21893
21894 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
21895 * tree-parloops.c (parallelize_loops): likewise.
21896 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
21897 tree_unswitch_outer_loop): likewise.
21898
21899 2016-06-01 Jakub Jelinek <jakub@redhat.com>
21900
21901 PR middle-end/71371
21902 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
21903 around creation of the temporary.
21904
21905 2016-06-01 Richard Biener <rguenther@suse.de>
21906
21907 PR tree-optimization/71366
21908 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
21909 (unloop_loops): Move removing edges here ...
21910 (try_unroll_loop_completely): ... from here.
21911 (try_peel_loop): ... and here.
21912 (tree_unroll_loops_completely_1): Track parent loops via
21913 bitmap of header BBs.
21914 (tree_unroll_loops_completely): Adjust for that.
21915
21916 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
21917
21918 * config/rs6000/altivec.h (vec_slv): New macro.
21919 (vec_srv): New macro.
21920 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
21921 (UNSPEC_VSRV): New value.
21922 (vslv): New insn.
21923 (vsrv): New insn.
21924 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
21925 (vsrv): New builtin definition.
21926 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
21927 define argument types for new builtin.
21928 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
21929 new builtin.
21930 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
21931 functions.
21932
21933 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
21934 Jocelyn Mayer <l_indien@magic.fr>
21935
21936 PR target/67310
21937 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
21938 detect processor family for signature_CENTAUR_ebx.
21939 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
21940 signature_CENTAUR_ebx.
21941 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
21942 <default>: Pass x86-64 for has_longmode.
21943
21944 2016-06-01 Nathan Sidwell <nathan@acm.org>
21945
21946 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
21947 undefined weak.
21948
21949 2016-06-01 Richard Biener <rguenther@suse.de>
21950
21951 PR tree-optimization/71261
21952 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
21953 of stmts successfully put in the bool pattern. Remove
21954 single-use restriction.
21955 (adjust_bool_pattern_cast): Add cast at the use site via the
21956 pattern def sequence.
21957 (adjust_bool_pattern): Remove recursion, maintain a hash-map
21958 of patterned defs. Use the pattern def seqence instead of
21959 multiple independent patterns.
21960 (sort_after_uid): New qsort compare function.
21961 (adjust_bool_stmts): New function to process stmts in the bool
21962 pattern in IL order.
21963 (vect_recog_bool_pattern): Adjust.
21964 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
21965 (ifcvt_walk_pattern_tree): Likewise.
21966 (stmt_is_root_of_bool_pattern): Likewise.
21967 (ifcvt_repair_bool_pattern): Likewise.
21968 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
21969
21970 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
21971
21972 * loop-unroll.c (decide_unroll_constant_iterations,
21973 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
21974 likely upper bounds.
21975 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
21976
21977 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
21978
21979 * tree-core.h (enum omp_clause_code): Remove
21980 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
21981
21982 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21983
21984 * config/arm/sync.md (arm_store_exclusive<mode>):
21985 Use 'H' output modifier on operands[2] rather than creating a new
21986 entry in out-of-bounds memory of the operands array.
21987 (arm_store_release_exclusivedi): Likewise.
21988
21989 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21990
21991 * config/arm/arm.c (arm_fusion_enabled_p): New function.
21992 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
21993 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
21994 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21995
21996 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
21997
21998 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
21999 into account live statements for mask producers.
22000
22001 2016-06-01 Richard Biener <rguenther@suse.de>
22002
22003 PR tree-optimization/71311
22004 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
22005 restrict to non-INTEGER_CST @0.
22006
22007 2016-06-01 Richard Biener <rguenther@suse.de>
22008
22009 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
22010 (relational patterns): Use :c to avoid pattern duplications.
22011
22012 2016-06-01 Richard Biener <rguenther@suse.de>
22013
22014 * genmatch.c (comparison_code_p): New predicate.
22015 (swap_tree_comparison): New function.
22016 (commutate): Add for_vec parameter to append new for entries.
22017 Support commutating relational operators by swapping it alongside
22018 operands.
22019 (lower_commutative): Adjust.
22020 (dt_simplify::gen): Do not pass artificial operators to gen
22021 functions.
22022 (decision_tree::gen): Do not add artificial operators as parameters.
22023 (parser::parse_expr): Verify operator commutativity when :c is
22024 applied. Allow :C to override this.
22025 * match.pd: Adjust patterns to use :C instead of :c where required.
22026
22027 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
22028
22029 PR tree-optimization/71077
22030 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
22031 the combining step, use boolean_false_node and boolean_true_node
22032 as the designated false/true return values.
22033
22034 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22035
22036 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
22037 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
22038 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
22039 PRED_LOOP_EXIT.
22040
22041 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22042
22043 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
22044 of flags impliying the register renaming.
22045 * toplev.c (process_options): Do not imply flag_rename_registers with
22046 loop peeling.
22047
22048 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22049
22050 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
22051 default implementation.
22052
22053 2016-05-31 Nathan Sidwell <nathan@acm.org>
22054
22055 * dwarf2out.c (cur_line_info_table): Add GTY marker.
22056
22057 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22058
22059 * config/sh/constraints.md (b): Remove constraint.
22060 * config/sh/predicates.md (arith_reg_operand): Remove
22061 TARGET_REGISTER_P.
22062 * config/sh/sh-modes.def (PDI): Remove.
22063 * config/sh/sh.c (sh_target_reg_class,
22064 sh_optimize_target_register_callee_saved): Remove functions.
22065 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
22066 (sh_expand_epilogue): Update comment.
22067 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
22068 sh_secondary_reload): Remove TARGET_REGS related code.
22069 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
22070 TARGET_REGISTER_P): Remove macros.
22071 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
22072 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
22073 TR1_REG, TR2_REG): Remove constants.
22074 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
22075
22076 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22077
22078 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
22079 define_expand patterns.
22080 (adddi3_compact): Rename to adddi3.
22081 (subdi3_compact): Rename to subdi3.
22082 (*negdi2): Rename to negdi2.
22083 (*abs<mode>2): Rename to abs<mode>2.
22084
22085 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
22086
22087 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
22088 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
22089 (atomic_sub_fetchsi): ... this new pattern.
22090 (mvtc): Add CC_REG clobber.
22091
22092 2016-05-31 Marek Polacek <polacek@redhat.com>
22093
22094 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
22095
22096 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22097
22098 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
22099 aarch64_fusion_enabled_p to check for fusion capabilities.
22100
22101 2016-05-31 Richard Biener <rguenther@suse.de>
22102
22103 PR tree-optimization/71352
22104 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
22105 minus one and a negate.
22106
22107 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22108
22109 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
22110 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
22111 Delete prototype.
22112 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
22113 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
22114 Remove use of aarch64_simd_attr_length_move, set length attribute
22115 directly.
22116 (*aarch64_be_movoi): Likewise.
22117 (*aarch64_be_movci): Likewise.
22118 (*aarch64_be_movxi): Likewise.
22119
22120 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
22121
22122 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
22123 It no longer does that.
22124 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
22125
22126 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
22127
22128 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
22129 attribute __unused__.
22130
22131 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
22132
22133 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
22134 * config/arm/arm.c (arm_arch_thumb1): Define.
22135 (arm_option_override): Initialize arm_arch_thumb1.
22136 * config/arm/arm.h (arm_arch_thumb1): Declare.
22137 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
22138 support Thumb-1 ISA.
22139
22140 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
22141
22142 PR target/71346
22143 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
22144 `Yv' for scalar operand.
22145
22146 2016-05-31 Tom de Vries <tom@codesourcery.com>
22147
22148 PR tree-optimization/69068
22149 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
22150 phis with more than two args.
22151
22152 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
22153
22154 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
22155 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
22156 target.
22157
22158 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
22159
22160 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
22161 tune_64.
22162 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
22163 support on SPARC.
22164 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
22165 cpu_32, cpu_64, tune_32 and tune_64.
22166 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
22167
22168 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
22169
22170 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
22171
22172 2016-05-30 Andi Kleen <ak@linux.intel.com>
22173
22174 * auto-profile.c (read_profile): Replace asserts with errors
22175 when file does not exist.
22176 * gcov-io.c (gcov_read_words): Dito.
22177
22178 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22179
22180 * tree-cfg.c (print_loop): Print likely upper bounds.
22181
22182 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22183
22184 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
22185 * opts.c (default_options): Enable peel loops at -O3.
22186 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
22187 (try_peel_loop): Do not re-peel already peeled loops;
22188 use likely upper bounds; fix profile updating.
22189 (pass_complete_unroll::execute): Initialize peeled_loops.
22190
22191 2016-05-30 Martin Liska <mliska@suse.cz>
22192
22193 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
22194 computed costs by frequency of BB they belong to.
22195 (get_scaled_computation_cost_at): New function.
22196
22197 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
22198 Marc Glisse <marc.glisse@inria.fr>
22199
22200 PR tree-optimization/71289
22201 * match.pd (-1 / B < A, A > -1 / B): New transformations.
22202
22203 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22204
22205 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
22206
22207 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22208
22209 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
22210 for peeled copies; avoid underflow when updating estimates; correctly
22211 scale loop profile.
22212
22213 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22214
22215 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
22216 r236875. Corrected oe3 to oe2 as obvious.
22217
22218 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22219
22220 PR middle-end/71269
22221 PR middle-end/71252
22222 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
22223 that inserted stmt will not dominate stmts that defines its operand.
22224 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
22225 (rewrite_expr_tree_parallel): Likewise.
22226
22227 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
22228
22229 PR middle-end/71252
22230 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
22231 all fields including stmt_to_insert are swapped.
22232
22233 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22234
22235 * predict.h (force_edge_cold): Declare.
22236 * predict.c (force_edge_cold): New function.
22237 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
22238 updating.
22239 (canonicalize_loop_induction_variables): Fix formating.
22240
22241 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
22242
22243 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
22244 (visium_expand_copysign): Use gen_int_mode directly.
22245 (visium_compute_frame_size): Minor tweaks.
22246
22247 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
22248
22249 * tree-vect-loop.c (vect_analyze_loop_2): Use
22250 likely_max_stmt_executions_int.
22251
22252 2016-05-30 Tom de Vries <tom@codesourcery.com>
22253
22254 PR tree-optimization/69067
22255 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
22256
22257 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
22258
22259 PR target/71245
22260 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
22261 New peepholes to remove unneeded fild/fistp pairs.
22262 (define_peephole2 atomic_loaddi_fpu): Ditto.
22263
22264 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22265
22266 * predict.c (maybe_hot_frequency_p): Avoid division.
22267
22268 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
22269
22270 * doc/install.texi: Use https for shop.fsf.org.
22271
22272 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22273
22274 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
22275 likely_max_stmt_executions_int.
22276
22277 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22278
22279 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
22280 likely_max_stmt_executions_int.
22281
22282 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22283
22284 * profile.c (compute_branch_probabilities): Do not report hitrates
22285 here.
22286 (branch_prob): Report hitrates here.
22287 * predict.c (gimple_predict_edge): Do not assert profile status;
22288 fix formatting issues.
22289
22290 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22291
22292 * predict.c (edge_predicted_by_p): New function.
22293 (predict_paths_for_bb): Do not put multiple predictions of the same type
22294 on one edge.
22295
22296 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22297
22298 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
22299 commit.
22300
22301 2016-05-28 Alan Modra <amodra@gmail.com>
22302
22303 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
22304
22305 2016-05-28 Alan Modra <amodra@gmail.com>
22306
22307 PR rtl-optimization/71275
22308 * ira.c (ira): Free dominance info.
22309
22310 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
22311
22312 * doc/sourcebuild.texi: New address for upstream Go repository.
22313
22314 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
22315
22316 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
22317 (TARGET_ARM_V7M): Likewise.
22318
22319 2016-05-26 Jeff Law <law@redhat.com>
22320
22321 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
22322 (thread_across_edge): Remove calls to find_jump_threads_backwards.
22323 * passes.def: Add jump threading passes before DOM/VRP.
22324 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
22325 argument to a basic block from an edge. Remove tests which are
22326 handled elsewhere.
22327 (pass_data_thread_jumps, class pass_thread_jumps): New.
22328 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
22329 (make_pass_thread_jumps): Likewise.
22330 * tree-pass.h (make_pass_thread_jumps): Declare.
22331
22332 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
22333
22334 * config/visium/visium-protos.h (split_double_move): Rename into...
22335 (visium_split_double_move): ...this.
22336 (visium_split_double_add): Declare.
22337 * config/visium/visium.c (split_double_move): Rename into...
22338 (visium_split_double_move): ...this.
22339 (visium_split_double_add): New function.
22340 (visium_expand_copysign): Renumber operands for consistency.
22341 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
22342 (DFmode move splitter): Likewise.
22343 (*addi3_insn): Split by means of visium_split_double_add.
22344 (*adddi3_insn_flags): Delete.
22345 (*plus_plus_sltu<subst_arith>): New insn.
22346 (*subdi3_insn): Split by means of visium_split_double_add.
22347 (subdi3_insn_flags): Delete.
22348 (*minus_minus_sltu<subst_arith>): New insn.
22349 (*negdi2_insn): Split by means of visium_split_double_add.
22350 (*negdi2_insn_flags): Delete.
22351
22352 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
22353
22354 * configure.ac: Treat a --with-headers option without argument
22355 the same as the default (i.e. consult sys-include directory).
22356 * configure: Regenerate.
22357
22358 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22359
22360 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
22361 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
22362 prototype.
22363 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
22364 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
22365
22366 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22367
22368 PR target/63596
22369 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
22370 tree-stdarg analysis results.
22371 (aarch64_setup_incoming_varargs): Likewise.
22372
22373 2016-05-27 Jiong Wang <jiong.wang@arm.com>
22374
22375 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
22376 va_list_gpr_counter_field and va_list_fpr_counter_field.
22377
22378 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
22379
22380 PR67609
22381 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
22382 * config/aarch64/aarch64.c
22383 (aarch64_cannot_change_mode_class): Remove function.
22384 * config/aarch64/aarch64-protos.h
22385 (aarch64_cannot_change_mode_class): Remove.
22386
22387 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
22388
22389 * cfgloop.c (record_niter_bound): Record likely upper bounds.
22390 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
22391 get_likely_max_loop_iterations_int): New.
22392 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
22393 any_likely_upper_bound.
22394 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
22395 Declare.
22396 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
22397 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
22398 upper bound.
22399 (unroll_loop_constant_iterations): Likewise.
22400 (unroll_loop_runtime_iterations): Likewise.
22401 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
22402 * lto-streamer-out.c (output_cfg): Likewise.
22403 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
22404 bounds.
22405 (canonicalize_loop_induction_variables): Dump likely upper bounds.
22406 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
22407 (likely_max_loop_iterations): New.
22408 (likely_max_loop_iterations_int): New.
22409 (likely_max_stmt_executions): New.
22410 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
22411 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
22412 likely_max_stmt_executions): Declare.
22413
22414 2016-05-27 Marek Polacek <polacek@redhat.com>
22415
22416 PR middle-end/71308
22417 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
22418
22419 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22420
22421 * config/s390/s390.md (2x risbg splitters): Use
22422 reg_overlap_mentioned_p instead of rtx_equal_p.
22423
22424 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22425
22426 * combine.c (make_compound_operation): Take known zero bits into
22427 account when checking for possible zero_extend.
22428
22429 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22430
22431 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
22432 Use const_int_operand for operand 2 predicate. Simplify expand code
22433 as a result.
22434
22435 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
22436
22437 PR middle-end/71279
22438 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
22439 into comparison.
22440
22441 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22442
22443 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
22444 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
22445 that returns CC_SESWPmode and CC_ZESWPmode.
22446 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
22447 and CC_SESWPmode.
22448 (aarch64_rtx_costs): Likewise.
22449
22450 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
22451
22452 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
22453 for ISA 3.0 min/max support.
22454 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
22455 conditional move support.
22456 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
22457 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
22458 available.
22459 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
22460 conditional moves where the comparison type is different from move
22461 type.
22462 (fp_minmax): New code iterator for smin/smax.
22463 (minmax): New code attributes for min/max.
22464 (SMINMAX): Likewise.
22465 (smax<mode>3): Combine min, max insns into one insn using the
22466 fp_minmax code iterator. Add support for ISA 3.0 min/max
22467 instructions that don't need -ffast-math.
22468 (s<minmax><mode>3): Likewise.
22469 (smax<mode>3_vsx): Likewise.
22470 (smin<mode>3): Likewise.
22471 (s<minmax><mode>3_vsx): Likewise.
22472 (smin<mode>3_vsx): Likewise.
22473 (pre-VSX min/max splitters): Likewise.
22474 (s<minmax><mode>3_fpr): Likewise.
22475 (movsfcc): Rewrite floating point conditional moves to combine
22476 SFmode/DFmode into a single insn.
22477 (mov<mode>cc): Likewise.
22478 (movdfcc): Likewise.
22479 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
22480 SFDF2 iterators to handle all combinations.
22481 (fseldfsf4): Likewise.
22482 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
22483 (fseldfdf4): Likewise.
22484 (fselsfdf4): Likewise.
22485 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
22486 comparison instructions that set a 0/-1 mask, and use it for
22487 floating point conditional move via XXSEL.
22488 (fpmask<mode>): Likewise.
22489 (xxsel<mode>): Likewise.
22490 * config/rs6000/predicates.md (min_max_operator): Delete, no
22491 longer used.
22492 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
22493 instructions that generate a 0/-1 mask for use with XXSEL.
22494 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
22495 say whether floating point min/max is available, either through
22496 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
22497 (TARGET_MINMAX_DF): Likewise.
22498
22499 2016-05-27 Alan Modra <amodra@gmail.com>
22500
22501 PR rtl-optimization/71275
22502 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
22503 for update_equiv_regs and combine_and_move_insns.
22504
22505 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
22506
22507 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
22508 if_then_else or cond RTXes to calculate attribute value.
22509 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
22510 <attr "length_immediate>: Ditto.
22511 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
22512 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
22513 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
22514 <attr "type">: Ditto.
22515 <attr "prefix_data16">: Ditto.
22516 <attr "prefix_extra">: Ditto.
22517 <attr "length_immediate">: Ditto.
22518 <attr "prefix">: Ditto.
22519 (vec_set<mode>_0) <attr "isa">: Ditto.
22520 <attr "prefix_extra">: Ditto.
22521 <attr "length_immediate">: Ditto.
22522 <attr "prefix">: Ditto.
22523 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
22524 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
22525 (sse2_storelpd) <attr "prefix_data16">: Ditto.
22526 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
22527 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
22528 <attr "length_immediate">: Ditto.
22529 <attr "prefix">: Ditto.
22530 (sse2_movsd) <attr "length_immediate">: Ditto.
22531 <attr "prefix">: Ditto.
22532 (vec_concatv2df) <attr "isa">: Ditto.
22533 <attr "prefix">: Ditto.
22534 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
22535 (*vec_extractv2di_1) <attr "isa">: Ditto.
22536 <attr "type">: Ditto.
22537 <attr "length_immediate">: Ditto.
22538 <attr "prefix_rex">: Ditto.
22539 <attr "prefix_extra">: Ditto.
22540 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
22541 <attr "prefix_extra">: Ditto.
22542 <attr "length_immediate">: Ditto.
22543 (vec_concatv2di) <attr "isa">: Ditto.
22544 <attr "prefix_extra">: Ditto.
22545 <attr "length_immediate">: Ditto.
22546 <attr "prefix">: Ditto.
22547
22548 2016-05-26 Martin Liska <mliska@suse.cz>
22549
22550 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
22551 function.
22552 (operator+): Likewise.
22553 (operator-): Likewise.
22554 (comp_cost::operator+=): Likewise.
22555 (comp_cost::operator-=): Likewise.
22556 (comp_cost::operator/=): Likewise.
22557 (comp_cost::operator*=): Likewise.
22558 (operator<): Likewise.
22559 (operator==): Likewise.
22560 (operator<=): Likewise.
22561 (new_cost): Remove.
22562 (infinite_cost_p): Likewise.
22563 (add_costs): Likewise.
22564 (sub_costs): Likewise.
22565 (compare_costs): Likewise.
22566 (set_group_iv_cost): Use the newly introduced functions.
22567 (get_address_cost): Likewise.
22568 (get_shiftadd_cost): Likewise.
22569 (force_expr_to_var_cost): Likewise.
22570 (split_address_cost): Likewise.
22571 (ptr_difference_cost): Likewise.
22572 (difference_cost): Likewise.
22573 (get_computation_cost_at): Likewise.
22574 (determine_group_iv_cost_generic): Likewise.
22575 (determine_group_iv_cost_address): Likewise.
22576 (determine_group_iv_cost_cond): Likewise.
22577 (autoinc_possible_for_pair): Likewise.
22578 (determine_group_iv_costs): Likewise.
22579 (cheaper_cost_pair): Likewise.
22580 (iv_ca_recount_cost): Likewise.
22581 (iv_ca_set_no_cp): Likewise.
22582 (iv_ca_set_cp): Likewise.
22583 (iv_ca_cost): Likewise.
22584 (iv_ca_new): Likewise.
22585 (iv_ca_dump): Likewise.
22586 (iv_ca_narrow): Likewise.
22587 (iv_ca_prune): Likewise.
22588 (iv_ca_replace): Likewise.
22589 (try_add_cand_for): Likewise.
22590 (try_improve_iv_set): Likewise.
22591 (find_optimal_iv_set): Likewise.
22592
22593 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
22594
22595 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
22596 that internal functions will clobber all caller-saved registers.
22597
22598 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22599
22600 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
22601 Return a better case_values_threshold when optimizing.
22602
22603 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
22604
22605 * config/aarch64/aarch64-simd.md (aarch64_combinez):
22606 Add ? to integer variant.
22607 (aarch64_combinez_be): Likewise.
22608
22609 2016-05-26 Jakub Jelinek <jakub@redhat.com>
22610
22611 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
22612 instead of x constraint.
22613 (vcvtps2ph256<mask_name>): Likewise.
22614
22615 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
22616 alternative. Formatting fix.
22617
22618 * config/i386/sse.md
22619 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
22620 to ...
22621 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
22622 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
22623 maybe_evex prefix instead of vex.
22624 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
22625 EXT_REX_SSE_REG_P (op0) case in the splitter.
22626
22627 2016-05-25 Jeff Law <law@redhat.com>
22628
22629 PR tree-optimization/71272
22630 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
22631 Update comments. Add test for empty path.
22632
22633 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22634
22635 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
22636 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
22637 special case builtin.
22638 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
22639 code for ALTIVEC_BUILTIN_VEC_CMPNE.
22640 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
22641 for __builtin_vec_cmpne.
22642
22643 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
22644
22645 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
22646 redundant test and bail out if the type of the new operand is not
22647 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
22648
22649 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22650
22651 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
22652 (x_ix86_target_flags_explicit): Remove.
22653 * config/i386/i386.c (ix86_function_specific_save): Do not copy
22654 x_ix86_target_flags_explicit.
22655 (ix86_function_specific_restore): Ditto.
22656
22657 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
22658 H.J. Lu <hongjiu.lu@intel.com>
22659
22660 PR target/70738
22661 * common/config/i386/i386-common.c
22662 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
22663 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
22664 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
22665 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
22666 (-mgeneral-regs-only): Add new option.
22667 * config/i386/i386.c (ix86_option_override_internal): Don't enable
22668 x87 instructions if only general registers are allowed.
22669 (ix86_target_string): Add ix86_flags argument. Handle additional
22670 flags options through ix86_flags argument. Update all callers.
22671 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
22672
22673 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22674
22675 PR rtl-optimization/66940
22676 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
22677 decrementing desired_val will not overflow before performing these
22678 operations.
22679
22680 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
22681
22682 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
22683 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
22684 * config/i386/i386.c (enum ix86_builtins): Add
22685 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
22686 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
22687 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
22688 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
22689 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
22690 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
22691 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
22692 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
22693 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
22694 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
22695 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
22696 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
22697 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
22698 __builtin_ia32_cvtps2dq512_mask.
22699 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
22700 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
22701 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
22702 * config/i386/sse.md
22703 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
22704 Rename to ...
22705 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
22706 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
22707 to ...
22708 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
22709 (avx512f_vec_pack_sfix_v8df): New define_expand.
22710 (avx512f_roundpd512): Rename to ...
22711 (avx512f_round<castmode>512): ... this. Change iterator.
22712 (avx512f_roundps512_sfix): New define_expand.
22713 (round<mode>2_sfix): Change iterator.
22714
22715 2016-05-25 Nick Clifton <nickc@redhat.com>
22716
22717 * config/msp430/msp430.c (msp430_attr): Produce an error if a
22718 static interrupt handler is detected.
22719 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
22720 default linker script.
22721 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
22722 the low part of a symbolic pointer.
22723
22724 2016-05-25 Richard Biener <rguenther@suse.de>
22725
22726 PR tree-optimization/71261
22727 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
22728 interesting stmt instead of immediate uses when looking
22729 for the use operand to replace.
22730
22731 2016-05-25 Martin Liska <mliska@suse.cz>
22732
22733 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
22734
22735 2016-05-25 Richard Biener <rguenther@suse.de>
22736
22737 PR tree-optimization/71264
22738 * tree-vect-stmts.c (vect_init_vector): Properly deal with
22739 vector type val.
22740
22741 2016-05-25 Martin Liska <mliska@suse.cz>
22742
22743 PR tree-optimization/71239
22744 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
22745 if DECL_SIZE is NULL.
22746
22747 2016-05-25 Richard Biener <rguenther@suse.de>
22748
22749 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
22750 * tree-if-conv.c (pass_data_if_conversion): Use it.
22751
22752 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
22753
22754 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
22755 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
22756 * varpool.c (varpool_node::get_availability): Likewise.
22757
22758 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22759
22760 * config/rs6000/altivec.md (VNEG iterator): New iterator for
22761 VNEGW/VNEGD instructions.
22762 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
22763 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
22764 support for ISA 3.0 VNEGW/VNEGD instructions.
22765
22766 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
22767
22768 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
22769 pointers inside OACC_DATA regions.
22770 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
22771 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
22772 (gimplify_adjust_omp_clauses): Fix typo in comment.
22773
22774 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22775
22776 * config/rs6000/altivec.md (VParity): New mode iterator for vector
22777 parity built-in functions.
22778 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
22779 zeros.
22780 (p9v_parity<mode>2): Likewise.
22781 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
22782 parity.
22783 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
22784 (parity<mode>2): ISA 3.0 expander for vector parity.
22785 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
22786 power9 built-ins.
22787 (BU_P9_64BIT_MISC_0): Likewise.
22788 (BU_P9_MISC_0): Likewise.
22789 (BU_P9V_AV_1): Likewise.
22790 (BU_P9V_AV_2): Likewise.
22791 (BU_P9V_AV_3): Likewise.
22792 (BU_P9V_AV_P): Likewise.
22793 (BU_P9V_VSX_1): Likewise.
22794 (BU_P9V_OVERLOAD_1): Likewise.
22795 (BU_P9V_OVERLOAD_2): Likewise.
22796 (BU_P9V_OVERLOAD_3): Likewise.
22797 (VCTZB): Add vector count trailing zeros support.
22798 (VCTZH): Likewise.
22799 (VCTZW): Likewise.
22800 (VCTZD): Likewise.
22801 (VPRTYBD): Add vector parity support.
22802 (VPRTYBQ): Likewise.
22803 (VPRTYBW): Likewise.
22804 (VCTZ): Add overloaded vector count trailing zeros support.
22805 (VPRTYB): Add overloaded vector parity support.
22806 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22807 overloaded vector count trailing zeros and parity instructions.
22808 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
22809 vector parity support.
22810 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
22811 trailing zeros support.
22812 (vec_cntlz): Likewise.
22813 (vec_vctzb): Likewise.
22814 (vec_vctzd): Likewise.
22815 (vec_vctzh): Likewise.
22816 (vec_vctzw): Likewise.
22817 (vec_vprtyb): Add ISA 3.0 vector parity support.
22818 (vec_vprtybd): Likewise.
22819 (vec_vprtybw): Likewise.
22820 (vec_vprtybq): Likewise.
22821 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
22822 the ISA 3.0 vector count trailing zeros and vector parity built-in
22823 functions.
22824
22825 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
22826
22827 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
22828 when there is stmt_to_insert.
22829
22830 2016-05-24 Martin Sebor <msebor@redhat.com>
22831
22832 PR c++/71147
22833 * tree.h (complete_or_array_type_p): New inline function.
22834
22835 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22836
22837 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
22838 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
22839 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
22840
22841 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
22842 Limit 1st alternative to noavx isa, split 2nd alternative into one
22843 noavx and one avx alternative, use *x and Bm in the former and
22844 x and m in the latter.
22845
22846 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
22847 of sse4 for the first alternative, drop %v from the template
22848 and d operand modifier. Split second alternative into one sse4_noavx
22849 and one avx alternative, use *x instead of *v in the former and v
22850 instead of *v in the latter.
22851 (*sse4_1_extractps): Use noavx isa instead of * for the first
22852 alternative, drop %v from the template. Split second alternative into
22853 one noavx and one avx alternative, use *x instead of *v in the
22854 former and v instead of *v in the latter.
22855 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
22856 with noavx and the last one with avx.
22857 (sse4_1_phminposuw): Guard first alternative with noavx isa,
22858 split the second one into one noavx and one avx alternative,
22859 use *x and Bm in the former and x and m in the latter one.
22860 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
22861 alternatives.
22862
22863 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
22864 first two alternatives to noavx, use *x instead of *v in the second
22865 one, add avx alternative without *.
22866 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
22867 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
22868 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
22869
22870 2016-05-24 Jeff Law <law@redhat.com>
22871
22872 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
22873 New function, extracted from...
22874 (fsm_find_control_statement_thread_paths): Here. Use the new function.
22875 Allow simple copies and constant initializations in the SSA chain.
22876
22877 2016-05-24 Marek Polacek <polacek@redhat.com>
22878
22879 PR c/71249
22880 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
22881 scope.
22882
22883 2016-05-24 Jakub Jelinek <jakub@redhat.com>
22884
22885 PR c++/71257
22886 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
22887 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
22888 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
22889 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
22890 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
22891
22892 2016-05-24 Richard Biener <rguenther@suse.de>
22893
22894 PR tree-optimization/71240
22895 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
22896 has integral type.
22897
22898 2016-05-24 Richard Biener <rguenther@suse.de>
22899
22900 PR tree-optimization/71230
22901 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
22902
22903 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
22904
22905 * tree-vectorizer.h (vectorizable_comparison): Delete.
22906 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
22907 PURE_SLP_STMT check.
22908 * tree-vect-stmts.c (vectorizable_call): Likewise.
22909 (vectorizable_simd_clone_call): Likewise.
22910 (vectorizable_conversion): Likewise.
22911 (vectorizable_assignment): Likewise.
22912 (vectorizable_shift): Likewise.
22913 (vectorizable_operation): Likewise.
22914 (vectorizable_load): Likewise.
22915 (vectorizable_condition): Likewise.
22916 (vectorizable_store): Likewise. Assert that we don't have
22917 hybrid SLP.
22918 (vectorizable_comparison): Make static. Remove redundant
22919 PURE_SLP_STMT check.
22920 (vect_transform_stmt): Assert that we always have an slp_node
22921 if PURE_SLP_STMT.
22922
22923 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22924
22925 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
22926 operands[2] against 1 with comparison against CONST1_RTX.
22927 (<shift>di3_neon): Likewise.
22928 * config/arm/predicates.md (const0_operand): Replace with comparison
22929 against CONST0_RTX.
22930
22931 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22932
22933 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
22934 operands[2] against 1 with comparison against CONST1_RTX.
22935 (ashrdi3): Likewise.
22936 (lshrdi3): Likewise.
22937 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
22938 UINTVAL.
22939 (ashrsi3): Likewise.
22940 (lshrsi3): Likewise.
22941 (rotrsi3): Likewise.
22942 (define_split above *compareqi_eq0): Likewise.
22943 (define_split above "prologue"): Likewise.
22944 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
22945 * config/arm/predicates.md (shift_operator): Likewise.
22946 (shift_nomul_operator): Likewise.
22947 (sat_shift_operator): Likewise.
22948 (thumb1_cmp_operand): Likewise.
22949 (const_neon_scalar_shift_amount_operand): Replace manual range
22950 check with IN_RANGE.
22951 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
22952 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
22953
22954 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22955
22956 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
22957 with HOST_WIDE_INT_1.
22958 (insv): Likewise.
22959 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
22960 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
22961 (arm_canonicalize_comparison): Likewise.
22962 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
22963 HOST_WIDE_INT_1.
22964 (thumb1_size_rtx_costs): Likewise.
22965 (vfp_const_double_index): Replace cast of 1 to unsigned
22966 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22967 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
22968 HOST_WIDE_INT_1.
22969 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
22970 HOST_WIDE_INT with HOST_WIDE_INT_1U.
22971 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
22972 HOST_WIDE_INT with HOST_WIDE_INT_1.
22973
22974 2016-05-24 Marek Polacek <polacek@redhat.com>
22975
22976 * tree-cfg.h (should_remove_lhs_p): New predicate.
22977 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
22978 * gimplify.c (gimplify_modify_expr): Likewise.
22979 * tree-cfg.c (verify_gimple_call): Likewise.
22980 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22981 * gimple-fold.c: Include "tree-cfg.h".
22982 (gimple_fold_call): Use should_remove_lhs_p.
22983
22984 2016-05-24 Richard Biener <rguenther@suse.de>
22985
22986 PR tree-optimization/71253
22987 * cfganal.h (control_dependences): Make robust against edge
22988 and BB removal.
22989 (control_dependences::control_dependences): Remove edge_list argument.
22990 (control_dependences::get_edge): Remove.
22991 (control_dependences::get_edge_src): Add.
22992 (control_dependences::get_edge_dest): Likewise.
22993 (control_dependences::m_el): Make a vector of edge src/dest index.
22994 * cfganal.c (control_dependences::find_control_dependence): Adjust.
22995 (control_dependences::control_dependences): Likewise.
22996 (control_dependences::~control_dependence): Likewise.
22997 (control_dependences::get_edge): Remove.
22998 (control_dependences::get_edge_src): Add.
22999 (control_dependences::get_edge_dest): Likewise.
23000 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
23001 get_edge_src.
23002 (perform_tree_ssa_dce): Adjust.
23003 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
23004 get_edge_src.
23005 (pass_loop_distribution::execute): Adjust. Do loop destroying
23006 conditional on changed.
23007
23008 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23009
23010 PR target/69857
23011 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
23012 return. Reindent transformation comment and mention the ARM state
23013 behavior.
23014
23015 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
23016
23017 PR middle-end/71252
23018 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
23019 after build_and_add_sum creates new use stmt.
23020
23021 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
23022
23023 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
23024 load_lanes/grouped_load classification comes first. Don't check
23025 whether the vectorization factor is a multiple of the group size
23026 for load_lanes.
23027
23028 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
23029
23030 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
23031 GROUP_GAP for single-element interleaving.
23032 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
23033 variable.
23034
23035 2016-05-24 Richard Biener <rguenther@suse.de>
23036
23037 PR middle-end/70434
23038 PR c/69504
23039 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
23040 bases which are accessed with non-invariant indices.
23041 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
23042 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
23043
23044 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
23045
23046 PR middle-end/71170
23047 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
23048 (add_to_ops_vec): Add stmt_to_insert.
23049 (add_repeat_to_ops_vec): Init stmt_to_insert.
23050 (insert_stmt_before_use): New.
23051 (transform_add_to_multiply): Remove mult_stmt insertion and add it
23052 to ops vector.
23053 (get_ops): Init stmt_to_insert.
23054 (maybe_optimize_range_tests): Likewise.
23055 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
23056 (rewrite_expr_tree_parallel): Likewise.
23057 (reassociate_bb): Likewise.
23058
23059 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23060
23061 PR target/71201
23062 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
23063 ISA 3.0 xxperm fusion alternative.
23064 (altivec_vperm_v8hiv16qi): Likewise.
23065 (altivec_vperm_<mode>_uns_internal): Likewise.
23066 (vperm_v8hiv4si): Likewise.
23067 (vperm_v16qiv8hi): Likewise.
23068
23069 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23070 Kelvin Nilsen <kelvin@gcc.gnu.org>
23071
23072 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
23073 vpermr/xxpermr on ISA 3.0.
23074 (altivec_expand_vec_perm_le): Likewise.
23075 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
23076 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
23077 ISA 3.0.
23078
23079 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
23080
23081 * config/i386/i386.h (IS_STACK_MODE): Enable for
23082 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
23083 SSE_FLOAT_MODE_P macros.
23084 * config/i386/i386.c (ix86_preferred_reload_class): Use
23085 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
23086 Cleanup regclass processing for CONST_DOUBLE_P.
23087 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
23088 (ix86_rtx_costs): Remove redundant TARGET_80387 check
23089 with IS_STACK_MODE macro.
23090 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
23091 with TARGET_SSE2.
23092 (*movdf_internal): Use IS_STACK_MODE macro.
23093 (*movsf_internal): Ditto.
23094
23095 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
23096
23097 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
23098 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
23099
23100 2016-05-23 Jeff Law <law@redhat.com>
23101
23102 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
23103 extracted from ...
23104 (fsm_find_control_statement_thread_paths): Call it.
23105
23106 2016-05-23 Martin Jambor <mjambor@suse.cz>
23107
23108 PR ipa/71234
23109 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
23110 from_global_constant if t is not NULL.
23111
23112 2016-05-23 Marek Polacek <polacek@redhat.com>
23113
23114 PR c/49859
23115 * common.opt (Wswitch-unreachable): New option.
23116 * doc/invoke.texi: Document -Wswitch-unreachable.
23117 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
23118 warning.
23119
23120 2016-05-23 Bin Cheng <bin.cheng@arm.com>
23121
23122 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
23123 TMR_INDEX is non-NULL.
23124
23125 2016-05-23 Richard Biener <rguenther@suse.de>
23126
23127 PR tree-optimization/71230
23128 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
23129 (try_special_add_to_ops): ... here. Always test for single-use.
23130
23131 2016-05-23 Martin Jambor <mjambor@suse.cz>
23132
23133 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
23134 default block if a PHI node in the original one would be resized.
23135
23136 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23137
23138 PR tree-optimization/58135
23139 * tree-vect-slp.c: When group size is not multiple
23140 of vector size, allow splitting of store group at
23141 vector boundary.
23142
23143 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
23144
23145 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
23146
23147 2016-05-22 Jakub Jelinek <jakub@redhat.com>
23148
23149 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
23150 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
23151 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
23152 of 64x2.
23153
23154 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
23155 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
23156 v constraint instead of x and vinserti32x4 insn.
23157
23158 * config/i386/sse.md (i128vldq): New mode iterator.
23159 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
23160 avx512dq and avx512vl alternatives.
23161
23162 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
23163 constraint, use maybe_evex prefix instead of vex.
23164 (vec_dupv4sf): Use v constraint instead of x for output
23165 operand except for noavx alternative, use Yv constraint
23166 instead of x for input. Use maybe_evex prefix instead of vex.
23167 (*vec_dupv4si): Likewise.
23168 (*vec_dupv2di): Likewise.
23169
23170 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23171
23172 PR middle-end/40921
23173 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
23174 (linearize_expr_tree): Call try_special_add_to_ops.
23175 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
23176
23177 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23178
23179 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
23180 to computed stack_usage.
23181
23182 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23183
23184 PR target/71103
23185 * config/avr/avr.md (define_expand "mov<mode>"): If the source
23186 operand is subreg (symbol_ref) then move the symbol ref to register.
23187
23188 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
23189
23190 * tree.c (array_at_struct_end_p): Look through MEM_REF.
23191
23192 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
23193
23194 PR middle-end/71179
23195 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
23196 VECTOR type.
23197
23198 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23199
23200 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
23201 ranges by calling get_single_symbol and tidy up. Look more closely
23202 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
23203
23204 2016-05-20 Jeff Law <law@redhat.com>
23205
23206 * bitmap.c (bitmap_find_bit): Remove useless test.
23207
23208 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23209
23210 * function.c (thread_prologue_and_epilogue_insns): Commit the
23211 insertion of the epilogue.
23212
23213 2016-05-20 Martin Jambor <mjambor@suse.cz>
23214
23215 PR tree-optimization/70884
23216 * tree-sra.c (initialize_constant_pool_replacements): Do not check
23217 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
23218 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
23219 of constant pool data as a reason for scalarization.
23220
23221 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
23222
23223 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
23224 for naked functions.
23225 (thumb1_expand_prologue): Likewise.
23226
23227 2016-05-20 Nathan Sidwell <nathan@acm.org>
23228
23229 * config/nvptx/nptx.c (nvptx_option_override): Only set
23230 flag_toplevel_reorder, if not explicitly specified. Set
23231 flag_no_common, unless explicitly specified.
23232
23233 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23234
23235 * calls.c (can_implement_as_sibling_call_p): Mark param
23236 reg_parm_stack_space with ATTRIBUTE_UNUSED.
23237
23238 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
23239
23240 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
23241 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
23242 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
23243 constants.
23244 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
23245 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
23246 and CASE_CONST_ANY.
23247
23248 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
23249
23250 * config/nvptx/nvptx.md (sincossf3): New pattern.
23251
23252 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23253
23254 * calls.c (maybe_complain_about_tail_call): New function.
23255 (initialize_argument_information): Call
23256 maybe_complain_about_tail_call when clearing *may_tailcall.
23257 (can_implement_as_sibling_call_p): Call
23258 maybe_complain_about_tail_call when returning false.
23259 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
23260 ensure try_tail_call is set. Call maybe_complain_about_tail_call
23261 if tail-call optimization fails.
23262 * cfgexpand.c (expand_call_stmt): Initialize
23263 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
23264 * gimple-pretty-print.c (dump_gimple_call): Dump
23265 gimple_call_must_tail_p.
23266 * gimple.c (gimple_build_call_from_tree): Call
23267 gimple_call_set_must_tail with the value of
23268 CALL_EXPR_MUST_TAIL_CALL.
23269 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
23270 (gimple_call_set_must_tail): New function.
23271 (gimple_call_must_tail_p): New function.
23272 * print-tree.c (print_node): Update printing of TREE_STATIC
23273 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
23274 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
23275 trailing comment listing applicable flags.
23276 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
23277
23278 2016-05-20 David Malcolm <dmalcolm@redhat.com>
23279
23280 * calls.c (expand_call): Move "Rest of purposes for tail call
23281 optimizations to fail" to...
23282 (can_implement_as_sibling_call_p): ...this new function, and
23283 split into multiple "if" statements.
23284
23285 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23286
23287 * cfgloop.h (expected_loop_iterations_unbounded,
23288 expected_loop_iterations): Unconstify.
23289 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
23290 profile with known upper bound; return 3 when profile is absent.
23291 (expected_loop_iterations): Update.
23292
23293 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23294
23295 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
23296 and get_max_loop_iterations_int.
23297
23298 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
23299
23300 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
23301 realistic upper bounds here.
23302
23303 2016-05-20 Jakub Jelinek <jakub@redhat.com>
23304
23305 PR c++/71210
23306 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
23307 calls if the LHS is variable length or has addressable type.
23308 If targets[0]->decl is a noreturn call with void return type and
23309 zero arguments, adjust fntype and remove lhs in that case.
23310
23311 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
23312
23313 PR tree-optimization/71079
23314 PR tree-optimization/71206
23315 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
23316
23317 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23318
23319 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
23320 (get_vec_alignment_for_array_decl): Likewise.
23321 (get_vec_alignment_for_record_decl): Likewise.
23322 (increase_alignment::execute): Move code to find alignment to
23323 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
23324 (type_align_map): New hash_map.
23325
23326 2016-05-20 Richard Guenther <rguenther@suse.de>
23327
23328 PR tree-optimization/29756
23329 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
23330 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
23331 * fold-const.c (operand_equal_p): Likewise.
23332 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
23333 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
23334 * tree-inline.c (estimate_operator_cost): Likewise.
23335 * tree-pretty-print.c (dump_generic_node): Likewise.
23336 * tree-ssa-operands.c (get_expr_operands): Likewise.
23337 * cfgexpand.c (expand_debug_expr): Likewise.
23338 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23339 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
23340 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
23341 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
23342 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
23343 (execute_update_addresses_taken): Do it.
23344
23345 2016-05-20 Richard Biener <rguenther@suse.de>
23346
23347 PR tree-optimization/71185
23348 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
23349 register operations.
23350
23351 2016-05-20 Richard Biener <rguenther@suse.de>
23352
23353 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
23354 gimple_seq_add_seq_without_update.
23355 (release_bb_predicate): Assert we have no operands to free.
23356 (if_convertible_loop_p_1): Calculate post dominators later.
23357 Do not free BB predicates here.
23358 (combine_blocks): Do not recompute BB predicates.
23359 (version_loop_for_if_conversion): Save BB predicates around
23360 loop versioning.
23361
23362 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23363
23364 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
23365 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
23366 code. Ignore sibcalls on EDGE_IGNORE edges.
23367 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
23368 on edges for sibcalls that run without prologue. The rest of the
23369 function is combined from...
23370 (fix_fake_fallthrough_edge): ... this, and ...
23371 (try_shrink_wrapping): ... a part of this. Remove the bb_with
23372 function argument, make it a local variable.
23373
23374 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
23375
23376 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
23377 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
23378 for 32-bit mode and SEH for 64-bit.
23379 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
23380 TARGET_64BIT_DEFAULT.
23381
23382 2016-05-19 Ryan Burn <contact@rnburn.com>
23383
23384 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
23385 * gengtype.c (open_base_files): Add cilk.h to ifiles.
23386
23387 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
23388
23389 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
23390 force pending loads from memory.
23391
23392 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
23393
23394 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
23395 (UNSPEC_DARN_32): New unspec constant.
23396 (UNSPEC_DARN_RAW): New unspec constant.
23397 (darn_32): New instruction.
23398 (darn_raw): New instruction.
23399 (darn): New instruction.
23400 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
23401 support and documentation for this macro.
23402 (BU_P9_MISC_1): New macro definition.
23403 (BU_P9_64BIT_MISC_0): New macro definition.
23404 (BU_P9_MISC_0): New macro definition.
23405 (darn_32): New builtin definition.
23406 (darn_raw): New builtin definition.
23407 (darn): New builtin definition.
23408 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
23409 RS6000_BUILTIN_0 directives to surround each occurrence of
23410 #include "rs6000-builtin.def".
23411 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
23412 RS6000_BTM_64BIT flags to the returned mask, depending on
23413 configuration.
23414 (def_builtin): Correct an error in the assignments made to the
23415 debugging variable attr_string.
23416 (rs6000_expand_builtin): Add support for no-operand built-in
23417 functions.
23418 (builtin_function_type): Remove fatal_error assertion that is no
23419 longer valid.
23420 (rs6000_common_init_builtins): Add support for no-operand built-in
23421 functions.
23422 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
23423 definition.
23424 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
23425 definition.
23426 (RS6000_BTM_64BIT): New macro definition.
23427 * doc/extend.texi: Document __builtin_darn (void),
23428 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
23429 functions.
23430
23431 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
23432
23433 * tree-vect-loop.c (vect_analyze_loop_2): Use also
23434 max_loop_iterations_int.
23435
23436 2016-05-19 Marek Polacek <polacek@redhat.com>
23437
23438 PR tree-optimization/71031
23439 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
23440 condition and adjust the code a bit.
23441
23442 2016-05-19 Martin Liska <mliska@suse.cz>
23443
23444 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
23445 auto_vec instead of vec.
23446
23447 2016-05-19 Martin Liska <mliska@suse.cz>
23448
23449 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
23450
23451 2016-05-19 Martin Liska <mliska@suse.cz>
23452
23453 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
23454
23455 2016-05-19 Martin Liska <mliska@suse.cz>
23456
23457 * ipa-pure-const.c (set_function_state): Remove an existing
23458 funct_state.
23459 (remove_node_data): Do not free it as it's released
23460 in set_function_state.
23461
23462 2016-05-19 Martin Liska <mliska@suse.cz>
23463
23464 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
23465 bitmap.
23466
23467 2016-05-19 Martin Liska <mliska@suse.cz>
23468
23469 * omp-simd-clone.c (simd_clone_adjust): Release vector.
23470
23471 2016-05-19 Martin Liska <mliska@suse.cz>
23472
23473 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
23474 an auto_vec instead of re-creating it.
23475
23476 2016-05-19 Martin Liska <mliska@suse.cz>
23477
23478 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
23479 auto_vec instead of vec.
23480
23481 2016-05-19 Martin Liska <mliska@suse.cz>
23482
23483 * lto-section-in.c (lto_get_section_data): Call
23484 lto_check_version with additional argument.
23485 * lto-streamer.c (lto_check_version): Add new argument.
23486 * lto-streamer.h (lto_check_version): Likewise.
23487
23488 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23489
23490 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
23491 Don't add cost of inner memory when handling sign-extended loads.
23492
23493 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
23494
23495 PR rtl-optimization/71148
23496 * cse.c (cse_main): Free dominance info.
23497 (rest_of_handle_cse): Don't free dominance info.
23498 (rest_of_handle_cse2): Likewise.
23499 (rest_of_handle_cse_after_global_opts): Likewise.
23500
23501 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23502
23503 PR target/71056
23504 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
23505 NULL_TREE early if NEON is not available. Remove now redundant check
23506 in ARM_CHECK_BUILTIN_MODE.
23507
23508 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
23509
23510 PR sanitizer/64354
23511 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
23512 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
23513 * doc/cpp.texi: Document new macros.
23514
23515 2016-05-19 Bin Cheng <bin.cheng@arm.com>
23516
23517 PR tree-optimization/69848
23518 * tree-vect-loop.c (vectorizable_reduction): Don't factor
23519 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
23520
23521 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23522
23523 * function.c (thread_prologue_and_epilogue_insn): Move the
23524 "goto epilogue_done" one block later.
23525
23526 2016-05-19 Richard Biener <rguenther@suse.de>
23527
23528 PR tree-optimization/70729
23529 * passes.def: Move LIM pass before PRE. Remove no longer
23530 required copyprop and move first DCE out of the loop pipeline.
23531
23532 2016-05-18 David Malcolm <dmalcolm@redhat.com>
23533
23534 PR driver/69265
23535 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
23536 (OBJS-libcommon-target): ...here.
23537 * opts-common.c: Include spellcheck.h.
23538 (cmdline_handle_error): Build a vec of valid options and use it
23539 to suggest provide hints for misspelled arguments.
23540
23541 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23542
23543 PR c++/71100
23544 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
23545 lhs if it has TREE_ADDRESSABLE type.
23546
23547 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
23548
23549 PR target/71145
23550 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
23551 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
23552
23553 2016-05-18 Martin Jambor <mjambor@suse.cz>
23554
23555 PR ipa/69708
23556 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
23557 input for NOP_EXPR pass-through functions.
23558 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
23559 aggregate global constant VAR_DECLs in constant jump functions.
23560
23561 2016-05-18 Martin Jambor <mjambor@suse.cz>
23562
23563 PR ipa/69708
23564 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
23565 from TREE_READONLY parameters.
23566
23567 2016-05-18 Martin Jambor <mjambor@suse.cz>
23568
23569 PR ipa/69708
23570 * cgraph.h (cgraph_indirect_call_info): New field
23571 guaranteed_unmodified.
23572 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
23573 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23574 appropriate.
23575 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
23576 pass the parameter value to ipa_find_agg_cst_for_param.
23577 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
23578 guaranteed_unmodified, store AA results there instead of bailing out
23579 if present.
23580 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
23581 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
23582 (find_constructor_constant_at_offset): New function.
23583 (ipa_find_agg_cst_from_init): Likewise.
23584 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
23585 static initializers of contants, report back through a new paameter
23586 from_global_constant if that was the case.
23587 (try_make_edge_direct_simple_call): Also pass parameter value to
23588 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
23589 appropriate.
23590 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
23591 (ipa_read_indirect_edge_info): Likewise.
23592 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
23593 (ipa_load_from_parm_agg): Likewise.
23594
23595 2016-05-18 Jiong Wang <jiong.wang@arm.com>
23596
23597 PR rtl-optimization/71150
23598 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
23599 check.
23600
23601 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23602
23603 PR target/70915
23604 * config/rs6000/constraints.md (wE constraint): New constraint
23605 for a vector constant that can be loaded with XXSPLTIB.
23606 (wM constraint): New constraint for a vector constant of a 1's.
23607 (wS constraint): New constraint for a vector constant that can be
23608 loaded with XXSPLTIB and a vector sign extend instruction.
23609 * config/rs6000/predicates.md (xxspltib_constant_split): New
23610 predicates for wE/wS constraints.
23611 (xxspltib_constant_nosplit): Likewise.
23612 (easy_vector_constant): Add support for constants that can be
23613 loaded via XXSPLTIB.
23614 (all_ones_constant): New predicate for vector constant with all
23615 1's set.
23616 (splat_input_operand): Add support for ISA 3.0 word splat operations.
23617 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
23618 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
23619 instruction and possibly with a sign extension.
23620 (output_vec_const_move): Add support for XXSPLTIB. If we are
23621 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
23622 instead of XXLXOR/XXLORC.
23623 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
23624 operations.
23625 (rs6000_legitimize_reload_address): Likewise.
23626 (rs6000_output_move_128bit): Use output_vec_const_move to emit
23627 constants.
23628 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
23629 combine VSX_M and VSX_M2 into one iterator.
23630 (VSX_M2): Likewise.
23631 (VSINT_84): New iterators for loading constants with XXSPLTIB.
23632 (VSINT_842): Likewise.
23633 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
23634 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
23635 XXSPLTIB instruction.
23636 (xxspltib_<mode>_nosplit): Likewise.
23637 (xxspltib_<mode>_split): New insn to load up constants with
23638 XXSPLTIB and a sign extend instruction.
23639 (vsx_mov<mode>): Replace single move that handled all vector types
23640 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
23641 moves (when -mvsx-timode is in effect) into the main vector
23642 moves. Eliminate separate moves for <VSr> <VSa>, where the
23643 preferred register class (<VSr>) is listed first, and the
23644 secondary register class (<VSa>) is listed second with a '?' to
23645 discourage use. Prefer loading 0/-1 in any VSX register for ISA
23646 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
23647 that if the register was involved in a slow operation, the
23648 clear/set operation does not wait for the slow operation to
23649 finish. Adjust the length attributes for 32-bit mode. Use
23650 rs6000_output_move_128bit and drop the use of the string
23651 instructions for 32-bit movti when -mvsx-timode is in effect. Use
23652 spacing so that the alternatives and attributes don't generate
23653 long lines, and put things in columns, so that it is easier to
23654 match up the operands and attributes with the insn alternatives.
23655 (vsx_mov<mode>_64bit): Likewise.
23656 (vsx_mov<mode>_32bit): Likewise.
23657 (vsx_movti_64bit): Fold movti into normal vector moves.
23658 (vsx_movti_32bit): Likewise.
23659 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
23660 splat instructions.
23661 (vsx_splat_v4si_internal): Likewise.
23662 (vsx_splat_v4sf_internal): Likewise.
23663 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
23664 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
23665 extend vector elements.
23666 (vsx_sign_extend_hi_<mode>): Likewise.
23667 (vsx_sign_extend_si_v2di): Likewise.
23668 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
23669 declaration.
23670 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
23671 constraints. Add trailing period to wL documentation.
23672
23673 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
23674
23675 PR middle-end/71020
23676 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
23677 * tree-dfa.c (replace_abnormal_ssa_names): New function.
23678 * tree-call-cdce.c: Include tree-dfa.h.
23679 (can_guard_call_p): New function, extracted from...
23680 (can_use_internal_fn): ...here.
23681 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
23682 and return void.
23683 (shrink_wrap_one_built_in_call): Likewise.
23684 (use_internal_fn): Likewise.
23685 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
23686 and return void. Call replace_abnormal_ssa_names.
23687 (pass_call_cdce::execute): Check can_guard_call_p during the
23688 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
23689 will always change something.
23690
23691 2016-05-18 Martin Jambor <mjambor@suse.cz>
23692
23693 PR ipa/70646
23694 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
23695 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
23696
23697 2016-05-18 Martin Jambor <mjambor@suse.cz>
23698
23699 PR ipa/70646
23700 * ipa-inline.h (condition): New field size.
23701 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
23702 for comaprison and store it into the new condition.
23703 (evaluate_conditions_for_known_args): Use condition size to check
23704 access sizes for all but CHANGED conditions.
23705 (unmodified_parm_1): New parameter size_p, store access size into it.
23706 (unmodified_parm): Likewise.
23707 (unmodified_parm_or_parm_agg_item): Likewise.
23708 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
23709 (set_cond_stmt_execution_predicate): Extract access sizes and store
23710 them to conditions.
23711 (set_switch_stmt_execution_predicate): Likewise.
23712 (will_be_nonconstant_expr_predicate): Likewise.
23713 (will_be_nonconstant_predicate): Likewise.
23714 (inline_read_section): Stream condition size.
23715 (inline_write_summary): Likewise.
23716
23717 2016-05-18 Richard Biener <rguenther@suse.de>
23718
23719 * tree-ssa-loop-im.c (determine_max_movement): Properly add
23720 condition cost to PHI cost instead of total_cost.
23721
23722 2016-05-18 Martin Liska <mliska@suse.cz>
23723
23724 PR fortran/70856
23725 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
23726 merged variables.
23727
23728 2016-05-18 Richard Biener <rguenther@suse.de>
23729
23730 * lto-streamer.h (LTO_major_version): Bump to 6.
23731
23732 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23733
23734 * function.c (make_split_prologue_seq, make_prologue_seq,
23735 make_epilogue_seq): New functions, factored out from...
23736 (thread_prologue_and_epilogue_insns): Here.
23737
23738 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
23739
23740 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
23741 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
23742 of before. Add a comment.
23743
23744 2016-05-18 Bin Cheng <bin.cheng@arm.com>
23745
23746 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
23747 expression pointer, not pointer to the pointer.
23748
23749 2016-05-18 Jakub Jelinek <jakub@redhat.com>
23750
23751 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
23752 (avx2_pbroadcast<mode>): Add another alternative with v instead
23753 of x constraints in it, using <pbroadcast_evex_isa> isa.
23754 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
23755
23756 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
23757 constraint x instead of v in second alternative, add avx512bw
23758 alternative.
23759
23760 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
23761 constraint x instead of v in second alternative, add avx512bw
23762 alternative.
23763
23764 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
23765 constraint x instead of v in second alternative, add avx512bw
23766 alternative.
23767
23768 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
23769 avx512bw alternative.
23770
23771 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23772
23773 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
23774 array to 128 chars.
23775 (define_insn "*andnottf3"): Ditto.
23776 (define_insn "*<code><mode>3"/any_logic): Ditto.
23777 (define_insn "*<code>tf3"/any_logic): Ditto.
23778 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
23779 operand to block AVX-512VL insn variant emit when it is not enabled.
23780
23781 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
23782
23783 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
23784 constraint fot SF mode.
23785
23786 2016-05-18 Petr Murzin <petr.murzin@intel.com>
23787 Kirill Yukhin <kirill.yukhin@intel.com>
23788
23789 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
23790 modifiers.
23791 (define_insn "rsqrt14<mode>"): Ditto.
23792 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
23793 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
23794 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
23795 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
23796 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
23797 Ditto.
23798 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
23799 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
23800 * config/i386/i386.c (ix86_print_operand): Expand check for size
23801 override codes for Intel syntax.
23802
23803 2016-05-18 Richard Biener <rguenther@suse.de>
23804
23805 PR tree-optimization/71168
23806 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
23807 initialization earlier.
23808
23809 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
23810
23811 * config/aarch64/aarch64-simd.md
23812 (aarch64_reduc_plus_internal<mode>): Rename to...
23813 (reduc_plus_scal): ...This, and remove previous implementation.
23814
23815 2016-05-18 Richard Biener <rguenther@suse.de>
23816
23817 * passes.def: Put late dse and cd_dce in canonical order.
23818
23819 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
23820
23821 * ipa-inline-transform.c (preserve_function_body_p): Look for
23822 first non-thunk clone.
23823 (save_function_body): Save into first non-thunk.
23824 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
23825 up call stmt id.
23826 (lto_output_node): Inline thunks don't need body in every
23827 partition.
23828 * lto-streamer-in.c: Do not fixup thunk clones.
23829 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
23830 thunks.
23831 * tree-inline.c (copy_bb): Be prepared for target node to be new after
23832 folding suceeds.
23833
23834 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23835
23836 PR middle-end/63586
23837 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
23838 (reassociate_bb): Call transform_add_to_multiply.
23839
23840 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
23841
23842 * config/aarch64/aarch64.c (all_extensions): Removed unused
23843 static variable.
23844
23845 2016-05-17 Nathan Sidwell <nathan@acm.org>
23846
23847 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
23848 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
23849
23850 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
23851
23852 PR tree-optimization/54579
23853 PR middle-end/55299
23854 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
23855
23856 2016-05-17 Marek Polacek <polacek@redhat.com>
23857
23858 PR ipa/71146
23859 * tree-inline.c (expand_call_inline): Call
23860 maybe_remove_unused_call_args.
23861
23862 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
23863
23864 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
23865 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
23866 * doc/md.texi (fmin@var{m}3): Likewise.
23867
23868 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23869
23870 * match.pd (X & C): New transformation.
23871
23872 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23873
23874 * match.pd (~X & Y): New transformation.
23875
23876 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
23877
23878 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
23879 information for new SSA_NAME.
23880 (simplify_conversion_using_ranges): Get range through get_range_info
23881 instead of get_value_range.
23882
23883 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23884
23885 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
23886 Remove inline assembly.
23887 (vmvn_s16): Likewise.
23888 (vmvn_s32): Likewise.
23889 (vmvn_u8): Likewise.
23890 (vmvn_u16): Likewise.
23891 (vmvn_u32): Likewise.
23892 (vmvnq_s8): Likewise.
23893 (vmvnq_s16): Likewise.
23894 (vmvnq_s32): Likewise.
23895 (vmvnq_u8): Likewise.
23896 (vmvnq_u16): Likewise.
23897 (vmvnq_u32): Likewise.
23898 (vmvn_p8): Likewise.
23899 (vmvnq_p16): Likewise.
23900
23901 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23902
23903 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
23904 Use builtin.
23905 (vmul_n_s16): Likewise.
23906 (vmul_n_s32): Likewise.
23907 (vmul_n_u16): Likewise.
23908 (vmul_n_u32): Likewise.
23909 (vmulq_n_f32): Likewise.
23910 (vmulq_n_f64): Likewise.
23911 (vmulq_n_s16): Likewise.
23912 (vmulq_n_s32): Likewise.
23913 (vmulq_n_u16): Likewise.
23914 (vmulq_n_u32): Likewise.
23915
23916 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23917
23918 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
23919 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
23920
23921 2016-05-17 Jiong Wang <jiong.wang@arm.com>
23922
23923 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
23924 to *aarch64_fma4_elt_from_dup<mode>.
23925 (*aarch64_fnma4_elt_to_128df): Rename to
23926 *aarch64_fnma4_elt_from_dup<mode>.
23927 * config/aarch64/arm_neon.h (vfma_n_f64): New.
23928 (vfms_n_f32): Likewise.
23929 (vfms_n_f64): Likewise.
23930 (vfmsq_n_f32): Likewise.
23931 (vfmsq_n_f64): Likewise.
23932
23933 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
23934
23935 * wide-int.h: Change fixed_wide_int_storage from class to struct.
23936
23937 2016-05-17 Richard Biener <rguenther@suse.de>
23938
23939 PR tree-optimization/71132
23940 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
23941 Only add control dependences for blocks in the loop.
23942 (build_rdg): Adjust.
23943 (generate_code_for_partition): Return whether loop should
23944 be destroyed and delay that.
23945 (distribute_loop): Likewise.
23946 (pass_loop_distribution::execute): Record loops to be destroyed
23947 and perform delayed destroying of loops.
23948
23949 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23950
23951 PR target/70809
23952 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
23953
23954 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23955
23956 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
23957
23958 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
23959
23960 PR target/71114
23961 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
23962 insertion point for instructions generated by validize_mem.
23963
23964 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23965
23966 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
23967 in brackets.
23968
23969 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
23970
23971 * config/aarch64/aarch64.c
23972 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
23973 rather than a macro.
23974
23975 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
23976
23977 * doc/invoke.texi (AArch64 Options): Various updates.
23978
23979 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
23980
23981 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
23982 into instrumentation thunks.
23983 * cif-code.def (CIF_CHKP): New.
23984
23985 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
23986
23987 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
23988
23989 2016-05-16 Martin Jambor <mjambor@suse.cz>
23990
23991 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
23992 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
23993
23994 2016-05-16 Marek Polacek <polacek@redhat.com>
23995
23996 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
23997 commentary.
23998
23999 2016-05-16 Martin Jambor <mjambor@suse.cz>
24000
24001 PR hsa/70857
24002 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
24003 the outlined kernel function.
24004
24005 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
24006
24007 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
24008 (ISA_HAS_DLSA): Ditto.
24009
24010 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
24011
24012 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
24013
24014 2016-05-16 Nathan Sidwell <nathan@acm.org>
24015
24016 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
24017 (nvptx_name_replacement): Restore. Add comment.
24018 (write_fn_proto, write_fn_proto_from_insn,
24019 nvptx_output_call_insn): Restore
24020 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
24021
24022 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
24023
24024 * config/aarch64/aarch64.md
24025 (add<mode>3_compareC_cconly_imm): Remove use of %w.
24026 (add<mode>3_compareC_imm): Likewise.
24027 (<optab>si3_uxtw): Split into register and immediate variants.
24028 (andsi3_compare0_uxtw): Likewise.
24029 (and<mode>3_compare0): Likewise.
24030 (and<mode>3nr_compare0): Likewise.
24031 (stack_protect_test_<mode>): Don't use %x for memory operands.
24032
24033 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
24034
24035 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
24036
24037 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
24038
24039 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
24040 Split integer shifts into shift_reg and bfm.
24041 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
24042 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
24043 (ror<mode>3_insn): Likewise.
24044 (<optab>si3_insn_uxtw): Likewise.
24045 (<optab><mode>3_insn): Change to rotate_imm.
24046 (extr<mode>5_insn_alt): Likewise.
24047 (extrsi5_insn_uxtw): Likewise.
24048 (extrsi5_insn_uxtw_alt): Likewise.
24049
24050 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24051
24052 * doc/tm.texi: Regenerate.
24053 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
24054 (TARGET_INVALID_RETURN_TYPE): Remove.
24055 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
24056 TARGET_INVALID_RETURN_TYPE.
24057 * target.def (invalid_parameter_type): Remove.
24058 (invalid_return_type): Remove.
24059
24060 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24061
24062 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
24063 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
24064 calls from thunk.
24065 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
24066 gimple body.
24067 (preserve_function_body_p): No need to preserve function body
24068 * cif-codes.def (CIF_THUNK): Remove.
24069 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
24070
24071 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24072
24073 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
24074
24075 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24076
24077 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
24078 for thunks.
24079
24080 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24081
24082 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
24083 (inline_small_functions): Do not look for function symbol when
24084 resetting caches.
24085
24086 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
24087
24088 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
24089 of inline thunks
24090
24091 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24092 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24093 Jiong Wang <jiong.wang@arm.com>
24094
24095 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
24096 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
24097 Define __ARM_FP16_ARGS when appropriate.
24098 * config/arm/arm.c (arm_invalid_parameter_type): Remove
24099 declaration.
24100 (arm_invalid_return_type): Likewise.
24101 (TARGET_INVALID_PARAMETER_TYPE): Remove.
24102 (TARGET_INVALID_RETURN_TYPE): Remove.
24103 (aapcs_vfp_sub_candidate): Allow HFmode.
24104 (aapcs_vfp_allocate): Add comment. Support HFmode.
24105 (aapcs_vfp_allocate_return_reg): Likewise.
24106 (struct aapcs_cp_arg_layout): Slightly reword comments for
24107 is_return_candidate and allocate_return_reg.
24108 (output_mov_vfp): Update assert.
24109 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
24110 condition.
24111 (arm_invalid_parameter_type): Remove.
24112 (amr_invalid_return_type): Remove.
24113 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
24114 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
24115 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
24116
24117 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
24118
24119 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24120 * config/aarch64/arch64-protos.h
24121 (aarch64_legitimize_reload_address): Remove.
24122 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
24123 Remove.
24124
24125 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
24126
24127 * configure.ac: Add ACX_NONCANONICAL_HOST.
24128 * configure: Regenerate.
24129 * Makefile.in: Set host_noncanonical.
24130
24131 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
24132
24133 PR target/71097
24134 * config/i386/i386.md (*movtf_internal): Before register allocation,
24135 do not allow FP constants for CM_MEDIUM memory model, allow only
24136 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
24137 (*movxf_internal): Ditto.
24138 (*movdf_internal): Ditto.
24139 (*movsf_internal): Ditto.
24140
24141 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24142
24143 PR rtl-optimization/67483
24144 * combine.c (make_compound_operation): Don't call extract_left_shift
24145 with negative shift amounts.
24146
24147 2016-05-13 Jakub Jelinek <jakub@redhat.com>
24148
24149 PR bootstrap/71071
24150 * fold-const.c (fold_checksum_tree): Allow modification
24151 of TYPE_ALIAS_SET during folding.
24152
24153 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
24154 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
24155 (ix86_split_to_parts): Likewise. Fix up formatting.
24156
24157 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
24158
24159 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
24160 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
24161 printf format.
24162
24163 2016-05-13 Nathan Sidwell <nathan@acm.org>
24164
24165 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
24166 (nvptx_name_replacement): Delete.
24167 (write_fn_proto, write_fn_proto_from_insn,
24168 nvptx_output_call_insn): Remove nvptx_name_replacement call.
24169 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
24170 * langhooks.c (add_builtin_funcction_common): Call
24171 targetm.mangle_decl_assembler_name.
24172
24173 * config/nvptx/nvptx.c (write_fn_proto): Handle
24174 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
24175
24176 2016-05-13 Martin Liska <mliska@suse.cz>
24177
24178 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
24179 and PRIu64 in printf format.
24180
24181 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24182
24183 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
24184 comment.
24185
24186 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24187
24188 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
24189 Change --param max-completely-peeled-times to
24190 --param max-completely-peel-times in dump file printing.
24191
24192 2016-05-13 Richard Biener <rguenther@suse.de>
24193
24194 PR tree-optimization/42587
24195 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
24196 (find_bswap_or_nop_1): Likewise.
24197 (bswap_replace): Likewise.
24198
24199 2016-05-13 Martin Liska <mliska@suse.cz>
24200
24201 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
24202 Initialize a variable with default value.
24203
24204 2016-05-13 Martin Liska <mliska@suse.cz>
24205
24206 * doc/invoke.texi: Enhance explanation of error recovery
24207 of sanitizers.
24208
24209 2016-05-13 Martin Liska <mliska@suse.cz>
24210
24211 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
24212 (struct cost_pair): Change inv_expr_id (int) to inv_expr
24213 (iv_inv_expr_ent *).
24214 (struct iv_inv_expr_ent): Comment struct fields.
24215 (sort_iv_inv_expr_ent): New function.
24216 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
24217 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
24218 a hash_map between iv_inv_expr_ent and number of usages.
24219 (niter_for_exit): Fix coding style.
24220 (tree_ssa_iv_optimize_init): Use renamed variable.
24221 (determine_base_object): Fix coding style.
24222 (alloc_iv): Likewise.
24223 (find_interesting_uses_outside): Likewise.
24224 (add_candidate_1): Likewise.
24225 (add_standard_iv_candidates): Likewise.
24226 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
24227 (prepare_decl_rtl): Fix coding style.
24228 (get_address_cost): Likewise.
24229 (get_shiftadd_cost): Likewise.
24230 (force_expr_to_var_cost): Likewise.
24231 (compare_aff_trees): Likewise.
24232 (get_expr_id): Restructure the function.
24233 (get_loop_invariant_expr_id): Renamed to
24234 get_loop_invariant_expr.
24235 (get_computation_cost_at): Replace usage of inv_expr_id with
24236 inv_expr.
24237 (get_computation_cost): Likewise.
24238 (determine_group_iv_cost_generic): Likewise.
24239 (determine_group_iv_cost_address): Likewise.
24240 (iv_period): Fix coding style.
24241 (iv_elimination_compare_lt): Likewise.
24242 (may_eliminate_iv): Likewise.
24243 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
24244 inv_expr.
24245 (determine_group_iv_costs): Dump invariant expressions.
24246 (iv_ca_recount_cost): Use the newly added hash_map.
24247 (iv_ca_set_remove_invariants): Fix coding style.
24248 (iv_ca_set_add_invariants): Fix coding style.
24249 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
24250 invariants.
24251 (iv_ca_set_cp): Likewise.
24252 (iv_ca_new): Initialize the newly added hash_map and remove
24253 initialization of fields.
24254 (iv_ca_free): Delete the hash_map.
24255 (iv_ca_dump): Dump invariant expressions.
24256 (iv_ca_extend): Fix coding style.
24257 (try_add_cand_for): Likewise.
24258 (create_new_ivs): Dump information about # of avg iterations and
24259 # of used invariant expressions.
24260 (rewrite_use_compare): Fix coding style.
24261 (free_loop_data): Set default value for max_inv_expr_id.
24262
24263 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24264
24265 * cse.c (rest_of_handle_cse): Use cleanup_cfg
24266 returned value cse_cfg_altered computation.
24267 (rest_of_handle_cse2): Likewise.
24268 (rest_of_handle_cse_after_global_opts): Likewise.
24269
24270 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24271
24272 PR target/53440
24273 * config/arm/arm.c (arm32_output_mi_thunk): New.
24274 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
24275 to split Thumb1 vs TARGET_32BIT functionality.
24276 (arm_thumb1_mi_thunk): New.
24277
24278 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24279
24280 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
24281 to true.
24282
24283 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24284
24285 PR target/71080
24286 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
24287
24288 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
24289
24290 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
24291 (expand_builtin_trap): Emit a regular call.
24292 (set_builtin_user_assembler_name): Remove obsolete cases.
24293 * dse.c (scan_insn): Adjust.
24294 * except.c: Include calls.h.
24295 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
24296 emit a regular call to setjmp.
24297 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
24298 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
24299 (emit_block_move_via_libcall): Delete.
24300 (block_move_fn): Delete.
24301 (init_block_move_fn): Likewise.
24302 (emit_block_move_libcall_fn): Likewise.
24303 (emit_block_op_via_libcall): New function.
24304 (set_storage_via_libcall): Tidy up and use memset builtin.
24305 (block_clear_fn): Delete.
24306 (init_block_clear_fn): Likewise.
24307 (clear_storage_libcall_fn): Likewise.
24308 (expand_assignment): Call emit_block_move_via_libcall.
24309 Do not include gt-expr.h.
24310 * expr.h (emit_block_op_via_libcall): Declare.
24311 (emit_block_copy_via_libcall): New inline function.
24312 (emit_block_move_via_libcall): Likewise.
24313 (emit_block_comp_via_libcall): Likewise.
24314 (block_clear_fn): Delete.
24315 (init_block_move_fn): Likewise.
24316 (init_block_clear_fn): Likewise.
24317 (emit_block_move_via_libcall): Likewise.
24318 (set_storage_via_libcall): Add default parameter value.
24319 * libfuncs.h (enum libfunc_index): Remove obsolete values.
24320 (abort_libfunc): Delete.
24321 (memcpy_libfunc): Likewise.
24322 (memmove_libfunc): Likewise.
24323 (memcmp_libfunc): Likewise.
24324 (memset_libfunc): Likewise.
24325 (setbits_libfunc): Likewise.
24326 (setjmp_libfunc): Likewise.
24327 (longjmp_libfunc): Likewise.
24328 (profile_function_entry_libfunc): Likewise.
24329 (profile_function_exit_libfunc): Likewise.
24330 (gcov_flush_libfunc): Likewise.
24331 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
24332 and DECL_VISIBILITY on the declaration.
24333 (init_optabs): Do not initialize obsolete libfuncs.
24334 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
24335 * tree-core.h (ECF_RET1): Define.
24336 (ECF_TM_PURE): Adjust.
24337 (ECF_TM_BUILTIN): Likewise.
24338 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
24339 (build_common_builtin_nodes): Initialize abort builtin.
24340 Add ECF_RET1 on memcpy, memmove and memset builtins.
24341 Pass final flags for alloca and alloca_with_align builtins.
24342 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
24343 obsolete builtins.
24344 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
24345 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
24346 set_storage_via_libcall and call emit_block_copy_via_libcall.
24347
24348 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
24349
24350 * config/i386/i386.md (*call_got_x32): Change operand 0 to
24351 DImode before it is passed to ix86_output_call_operand.
24352 (*call_value_got_x32): Ditto for operand 1.
24353
24354 2016-05-12 Jiong Wang <jiong.wang@arm.com>
24355
24356 PR rtl-optimization/70904
24357 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
24358 reload for wide mode.
24359
24360 2016-05-12 Marek Polacek <polacek@redhat.com>
24361
24362 PR c/70756
24363 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
24364 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
24365 * langhooks.h (incomplete_type_error): Likewise.
24366 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
24367 parameter, pass it down to incomplete_type_error.
24368 * tree.h (size_in_bytes): New inline overload.
24369 (size_in_bytes_loc): Renamed from size_in_bytes.
24370
24371 2016-05-12 Richard Biener <rguenther@suse.de>
24372
24373 PR tree-optimization/71059
24374 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
24375 nary before looking up or entering the expression into the VN
24376 hashes.
24377 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
24378 Make sure to re-use NARYs without result as inserted by
24379 phi-translation.
24380
24381 2016-05-12 Richard Biener <rguenther@suse.de>
24382
24383 PR tree-optimization/71062
24384 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
24385 field.
24386 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24387 vars_contains_restrict if the var is a restrict tag.
24388 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
24389 do not disambiguate pointers against it.
24390 (dump_points_to_solution): Re-structure and adjust for new
24391 vars_contains_restrict flag.
24392 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
24393
24394 2016-05-12 Martin Liska <mliska@suse.cz>
24395
24396 * doc/invoke.texi: Explain connection between
24397 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
24398
24399 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
24400
24401 PR tree-optimization/71006
24402 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
24403 consider COND_EXPR as a mask producer.
24404
24405 2016-05-12 Marek Polacek <polacek@redhat.com>
24406
24407 PR driver/71063
24408 * opts.c (common_handle_option): Detect missing argument for --help^.
24409
24410 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24411
24412 PR target/70830
24413 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
24414 when popping the PC and within an interrupt handler routine.
24415 Add missing tab to output of "ldmfd".
24416 (output_return_instruction): Output LDMFD with SP update rather
24417 than POP when returning from interrupt handler.
24418
24419 2016-05-12 Jakub Jelinek <jakub@redhat.com>
24420
24421 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
24422 TARGET_64BIT && TARGET_AVX512DQ.
24423 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
24424 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
24425 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
24426 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
24427 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
24428 (*vec_extractv4si_zext): Add avx512dq alternative.
24429 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
24430 use v instead of x constraint in other alternatives where possible.
24431
24432 * config/i386/sse.md (sse2_loadld): Use v instead of x
24433 constraint in alternatives 0,1,4.
24434
24435 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
24436 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
24437 v constraints instead of x and <pinsr_evex_isa> isa attribute.
24438
24439 PR target/71019
24440 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
24441 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
24442 is not emitted unless TARGET_AVX512BW.
24443 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
24444 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
24445 for the result operand.
24446
24447 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
24448 constraint instead of x in avx alternatives. Use maybe_evex instead
24449 of vex prefix.
24450
24451 * config/i386/constraints.md (Yv): New constraint.
24452 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
24453 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
24454 * config/i386/i386.md (avx512fvecmode): New mode attr.
24455 (*pushtf): Use v constraint instead of x.
24456 (*movtf_internal): Likewise. For TARGET_AVX512VL and
24457 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
24458 (*absneg<mode>2): Use Yv constraint instead of x constraint.
24459 (*absnegtf2_sse): Likewise.
24460 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
24461 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
24462 avx512f alternatives.
24463 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
24464
24465 2016-05-12 Richard Biener <rguenther@suse.de>
24466
24467 PR tree-optimization/71060
24468 * tree-data-ref.c (initialize_data_dependence_relation): Do not
24469 require exact match of DR_BASE_OBJECT but only matching address and
24470 type.
24471
24472 2016-05-12 Richard Biener <rguenther@suse.de>
24473
24474 PR tree-optimization/70986
24475 * cfganal.c: Include cfgloop.h.
24476 (dfs_find_deadend): Prefer to take edges exiting loops.
24477
24478 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24479
24480 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
24481 compile and run time.
24482
24483 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
24484
24485 PR c/43651
24486 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
24487
24488 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
24489
24490 * config/i386/i386.c (legitimize_pic_address): Use
24491 copy_to_suggested_reg instead of gen_movsi.
24492
24493 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24494
24495 * config/rs6000/predicates.md (quad_memory_operand): Move most of
24496 the code into quad_address_p and call it to share code with
24497 vsx_quad_dform_memory_operand.
24498 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
24499 d-form support.
24500 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
24501 bit instead of being a separate word. Split -mpower9-dform into
24502 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24503 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
24504 for the register class supporting 128-bit quad word memory offsets.
24505 (mode_supports_vsx_dform_quad): Helper function to return if the
24506 register class uses quad word memory offsets.
24507 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
24508 (rs6000_debug_reg_global): Always print if we are using LRA or not.
24509 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
24510 instructions are enabled, set up the appropriate addr_masks for
24511 128-bit types.
24512 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
24513 -mpower9-dform-scalar, instead of -mpower9-dform.
24514 (rs6000_option_override_internal): Split -mpower9-dform into two
24515 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
24516 -mpower9-dform switch sets or clears both. If we are not using
24517 the LRA register allocator, do not enable -mpower9-dform-vector by
24518 default. If we are using LRA, enable -mpower9-dform-vector and
24519 -mvsx-timode if it is appropriate. Issue a warning if either
24520 -mpower9-dform-vector or -mvsx-timode are explicitly used without
24521 enabling LRA.
24522 (quad_address_offset_p): New helper function to return if the
24523 offset is legal for quad word memory instructions.
24524 (quad_address_p): New function to determin if GPR or vector
24525 register quad word memory addresses are legal.
24526 (mem_operand_gpr): Validate quad word address offsets.
24527 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
24528 d-form (register + offset) instructions.
24529 (offsettable_ok_by_alignment): Likewise.
24530 (rs6000_legitimate_offset_address_p): Likewise.
24531 (legitimate_lo_sum_address_p): Likewise.
24532 (rs6000_legitimize_address): Likewise.
24533 (rs6000_legitimize_reload_address): Add more debug statements for
24534 -mdebug=addr.
24535 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
24536 d-form instructions.
24537 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
24538 d-form instructions. Distinguish different cases in debug
24539 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
24540 d-form instructions.
24541 (rs6000_preferred_reload_class): Likewise.
24542 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
24543 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
24544 of the ISA 2.06 indexed memory instructions.
24545 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
24546 use them to save/restore the saved vector registers instead of
24547 using Altivec instructions.
24548 (rs6000_emit_epilogue): Likewise.
24549 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
24550 (rs6000_opt_masks): Split -mpower9-dform into
24551 -mpower9-dform-scalar and -mpower9-dform-vector.
24552 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
24553 was not selected.
24554 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
24555 ISA 3.0 vector indexed memory instructions, and fold the code into
24556 the normal mov<mode> patterns.
24557 (p9_vecstore_<mode>): Likewise.
24558 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
24559 instructions.
24560 (vsx_movti_64bit): Likewise.
24561 (vsx_movti_32bit): Likewise.
24562 * config/rs6000/constraints.md (wO constraint): New constraint for
24563 ISA 3.0 vector d-form support.
24564 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
24565 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
24566 include -mpower9-dform-vector until we switch over to LRA.
24567 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
24568 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
24569 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
24570 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
24571 for -mpower9-dform and -mlra.
24572 * doc/md.texi (wO constraint): Document wO constraint.
24573
24574 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
24575
24576 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
24577 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
24578 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
24579 Move handling of non-insn arguments inline into the sole user:
24580 (output_trans_func): ...here.
24581 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
24582 in emitted function prototype.
24583 (output_internal_insn_latency_func): Ditto. Simplify.
24584 (output_internal_maximal_insn_latency_func): Ditto. Delete
24585 always-unused argument.
24586 (output_insn_latency_func): Ditto.
24587 (output_maximal_insn_latency_func): Ditto.
24588
24589 2016-05-11 Richard Biener <rguenther@suse.de>
24590
24591 PR tree-optimization/71055
24592 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
24593 sth with precision not equal to access size verify we don't chop
24594 off bits.
24595
24596 2016-05-11 Richard Biener <rguenther@suse.de>
24597
24598 PR debug/71057
24599 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
24600 (dwarf2out_finish): Move retry_incomplete_types call ...
24601 (dwarf2out_early_finish): ... here.
24602
24603 2016-05-11 Richard Biener <rguenther@suse.de>
24604
24605 PR middle-end/71002
24606 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
24607 if the langhook insists on it.
24608 * fold-const.c (make_bit_field_ref): Add arg for the original
24609 reference and preserve its alias-set.
24610 (decode_field_reference): Take exp by reference and adjust it
24611 to the original memory reference.
24612 (optimize_bit_field_compare): Adjust callers.
24613 (fold_truth_andor_1): Likewise.
24614 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
24615
24616 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
24617
24618 PR middle-end/70807
24619 * cfgrtl.h (delete_insn_and_edges): Now return bool.
24620 * cfgrtl.c (delete_insn_and_edges): Likewise.
24621 * config/i386/i386.c (convert_scalars_to_vector): Remove
24622 redundant code.
24623 * cse.c (cse_insn): Compute cse_cfg_altered.
24624 (delete_trivially_dead_insns): Likewise.
24625 (cse_cc_succs): Likewise.
24626 (rest_of_handle_cse): Free dominance info if required.
24627 (rest_of_handle_cse2): Likewise.
24628 (rest_of_handle_cse_after_global_opts): Likewise.
24629
24630 2016-05-11 Alan Modra <amodra@gmail.com>
24631
24632 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
24633 abi_v4_pass_in_fpr): New functions.
24634 (rs6000_function_arg_boundary): Exclude complex IBM long double
24635 from 64-bit alignment when ABI_V4.
24636 (rs6000_function_arg, rs6000_function_arg_advance_1,
24637 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
24638
24639 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
24640
24641 PR rtl-optimization/71028
24642 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
24643 jump with just a return in the fallthrough block if the branch
24644 block contains just a return as well.
24645
24646 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
24647
24648 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
24649 * match.pd ((X & Y) ^ Y): ... this.
24650 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
24651 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
24652
24653 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24654
24655 * read-md.c (require_char_ws): New function.
24656 (read_string): Simplify using require_char_ws.
24657 (handle_constants): Likewise.
24658 (handle_enum): Likewise.
24659 (handle_file): Likewise.
24660 * read-md.h (require_char_ws): New declaration.
24661 * read-rtl.c (read_conditions): Simplify using require_char_ws.
24662 (read_mapping): Likewise.
24663 (read_rtx_code): Likewise.
24664 (read_nested_rtx): Likewise.
24665
24666 2016-05-10 James Norris <jnorris@codesourcery.com>
24667
24668 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
24669 if offloading is enabled and -fopenacc or -fopenmp is specified.
24670 (CRTOFFLOADEND): Likewise.
24671 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
24672 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
24673
24674 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
24675
24676 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
24677 gotoff_operand code paths. Use copy_to_suggested_regs and
24678 expand_simple_binop where appropriate. Cleanup.
24679
24680 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24681
24682 PR target/70799
24683 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
24684 integer constants.
24685 (dimode_scalar_chain::vector_const_cost): New.
24686 (dimode_scalar_chain::compute_convert_gain): Handle constants.
24687 (dimode_scalar_chain::convert_op): Likewise.
24688 (dimode_scalar_chain::convert_insn): Likewise.
24689
24690 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24691
24692 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
24693 unary operation, not a binary one.
24694
24695 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24696
24697 PR middle-end/70877
24698 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
24699 calls with type casted fndecl.
24700
24701 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
24702
24703 PR tree-optimization/70786
24704 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
24705 * calls.c (initialize_argument_information): Bind bounds
24706 with corresponding args passed by reference.
24707
24708 2016-05-10 Jakub Jelinek <jakub@redhat.com>
24709
24710 PR target/70927
24711 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
24712 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
24713 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
24714 accordingly.
24715
24716 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24717
24718 PR target/70963
24719 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
24720 code for a zero scale factor.
24721 (vsx_xvcvdpuxds_scale): Likewise.
24722
24723 2016-05-10 David Malcolm <dmalcolm@redhat.com>
24724
24725 * diagnostic-show-locus.c (layout::layout): Call show_ruler
24726 if show_ruler_p was set on the context.
24727 (layout::show_ruler): New method.
24728 * diagnostic.h (struct diagnostic_context): Add field
24729 "show_ruler_p".
24730
24731 2016-05-10 Richard Biener <rguenther@suse.de>
24732
24733 PR tree-optimization/71039
24734 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
24735 (chk_uses): New function.
24736 (propagate_with_phi): Verify we can safely replicate the lhs of an
24737 aggregate assignment on all incoming edges.
24738
24739 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
24740
24741 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
24742 Forward declare.
24743 (rx_atomic_sequence): New class.
24744 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
24745 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
24746 non-inline.
24747 (rx_atomic_sequence::rx_atomic_sequence,
24748 rx_atomic_sequence::~rx_atomic_sequence): New functions.
24749 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
24750 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
24751 CTRLREG_INTB): New constants.
24752 (FETCHOP): New code iterator.
24753 (fethcop_name, fetchop_name2): New iterator code attributes.
24754 (QIHI): New mode iterator.
24755 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
24756 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
24757 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
24758
24759 2016-05-10 Martin Liska <mliska@suse.cz>
24760
24761 * tree-inline.c (remap_dependence_clique): Do not remap
24762 debugging statements.
24763
24764 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24765
24766 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
24767 ("*fixuns_truncdfdi2_z13")
24768 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
24769 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
24770 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
24771
24772 2016-05-10 Richard Biener <rguenther@suse.de>
24773
24774 PR tree-optimization/70497
24775 PR tree-optimization/28367
24776 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
24777 split out from ...
24778 (visit_reference_op_load): ... here.
24779 (vn_reference_lookup_3): Use it to handle subreg-like accesses
24780 with simplified BIT_FIELD_REFs.
24781 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
24782 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
24783 correctly.
24784
24785 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
24786
24787 * dwarf2out.c (add_abstract_origin_attribute): Adjust
24788 documentation comment. For BLOCK nodes, add a
24789 DW_AT_abstract_origin attribute that points to the DIE generated
24790 for the origin BLOCK.
24791 (gen_lexical_block_die): Call add_abstract_origin_attribute for
24792 blocks from inlined functions.
24793
24794 2016-05-10 Alan Modra <amodra@gmail.com>
24795
24796 PR target/70947
24797 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
24798 regrename modifying insns saving lr before __morestack call.
24799 * config/rs6000/rs6000.md (split_stack_return): Similarly for
24800 insns restoring lr after __morestack call.
24801
24802 2016-05-09 Jakub Jelinek <jakub@redhat.com>
24803
24804 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
24805 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
24806 expanders.
24807 * config/i386/sse.md (vec_interleave_high<mode>,
24808 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
24809 <avx512>_vpermt2var<mode>3_maskz): Likewise.
24810
24811 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24812
24813 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
24814 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
24815 parallel reassociation for power8 and forward.
24816
24817 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
24818
24819 * config/i386/i386.md (absneg splitters with general regs): Use
24820 general_reg_operand predicate.
24821 (btsq peephole2): Use x86_64_immediate_operand to check if new
24822 value is suitable for immediate operand. Generate emitted insn
24823 using RTL expressions.
24824 (btcq peephole2): Ditto.
24825 (btrq peephole2): Ditto. Generate correct immediate operand
24826 for AND masking.
24827
24828 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24829
24830 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
24831 bitpos.
24832
24833 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
24834
24835 * tree-affine.c (wide_int_constant_multiple_p): Add missing
24836 pointer dereference.
24837
24838 2016-05-09 Richard Biener <rguenther@suse.de>
24839
24840 PR tree-optimization/70985
24841 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
24842 op0 isn't a gimple register.
24843
24844 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
24845
24846 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
24847 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
24848 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
24849 (i6400_fpu_mult): New cpu units.
24850 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
24851 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
24852 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
24853 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
24854 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
24855 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
24856 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
24857 (i6400_msa_long_float4, i6400_msa_long_float5)
24858 (i6400_msa_long_float8, i6400_msa_fdiv_df)
24859 (i6400_msa_fdiv_sf): New reservations.
24860 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
24861 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
24862 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
24863 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
24864 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
24865 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
24866 (msa_short_cmp, msa_short_float2, msa_short_logic3)
24867 (msa_short_store4, msa_long_load, msa_short_store)
24868 (msa_long_logic, msa_long_float2, msa_long_float4)
24869 (msa_long_float5, msa_long_float8, msa_long_mult)
24870 (msa_long_fdiv, msa_long_div): New reservations.
24871
24872 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
24873 Sameera Deshpande <sameera.deshpande@imgtec.com>
24874 Matthew Fortune <matthew.fortune@imgtec.com>
24875 Graham Stott <graham.stott@imgtec.com>
24876 Chao-ying Fu <chao-ying.fu@imgtec.com>
24877
24878 * config.gcc: Add MSA header file for mips*-*-* target.
24879 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
24880 (Ubv8i, Urv8): New constraints.
24881 * config/mips/mips-ftypes.def: Add function types for MSA
24882 builtins.
24883 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
24884 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
24885 * config/mips/mips-msa.md: New file.
24886 * config/mips/mips-protos.h
24887 (mips_split_128bit_const_insns): New prototype.
24888 (mips_msa_idiv_insns): Likewise.
24889 (mips_split_128bit_move): Likewise.
24890 (mips_split_128bit_move_p): Likewise.
24891 (mips_split_msa_copy_d): Likewise.
24892 (mips_split_msa_insert_d): Likewise.
24893 (mips_split_msa_fill_d): Likewise.
24894 (mips_expand_msa_branch): Likewise.
24895 (mips_const_vector_same_val_p): Likewise.
24896 (mips_const_vector_same_bytes_p): Likewise.
24897 (mips_const_vector_same_int_p): Likewise.
24898 (mips_const_vector_shuffle_set_p): Likewise.
24899 (mips_const_vector_bitimm_set_p): Likewise.
24900 (mips_const_vector_bitimm_clr_p): Likewise.
24901 (mips_msa_vec_parallel_const_half): Likewise.
24902 (mips_msa_output_division): Likewise.
24903 (mips_ldst_scaled_shift): Likewise.
24904 (mips_expand_vec_cond_expr): Likewise.
24905 * config/mips/mips.c (enum mips_builtin_type): Add
24906 MIPS_BUILTIN_MSA_TEST_BRANCH.
24907 (mips_gen_const_int_vector_shuffle): New prototype.
24908 (mips_const_vector_bitimm_set_p): New function.
24909 (mips_const_vector_bitimm_clr_p): Likewise.
24910 (mips_const_vector_same_val_p): Likewise.
24911 (mips_const_vector_same_bytes_p): Likewise.
24912 (mips_const_vector_same_int_p): Likewise.
24913 (mips_const_vector_shuffle_set_p): Likewise.
24914 (mips_symbol_insns): Forbid loading symbols via immediate for
24915 MSA.
24916 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
24917 stores.
24918 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
24919 MSA.
24920 (mips_lx_address_p): Add support load indexed address for MSA.
24921 (mips_address_insns): Add calculation of instructions needed for
24922 stores and loads for MSA.
24923 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
24924 CONST_VECTOR for MSA and let it fall through.
24925 (mips_ldst_scaled_shift): New function.
24926 (mips_subword_at_byte): Likewise.
24927 (mips_msa_idiv_insns): Likewise.
24928 (mips_legitimize_move): Validate MSA moves.
24929 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
24930 calculation of costs for MSA division.
24931 (mips_split_move_p): Check if MSA moves need splitting.
24932 (mips_split_move): Split MSA moves if necessary.
24933 (mips_split_128bit_move_p): New function.
24934 (mips_split_128bit_move): Likewise.
24935 (mips_split_msa_copy_d): Likewise.
24936 (mips_split_msa_insert_d): Likewise.
24937 (mips_split_msa_fill_d): Likewise.
24938 (mips_output_move): Handle MSA moves.
24939 (mips_expand_msa_branch): New function.
24940 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
24941 Reinstate 'y' modifier.
24942 (mips_file_start): Add MSA .gnu_attribute.
24943 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
24944 FPRs.
24945 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
24946 (mips_class_max_nregs): Add register size for MSA supported mode.
24947 (mips_cannot_change_mode_class): Allow conversion between MSA
24948 vector modes and TImode.
24949 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
24950 instruction.
24951 (mips_secondary_reload_class): Force MSA loads/stores via memory.
24952 (mips_preferred_simd_mode): Add preffered modes for MSA.
24953 (mips_vector_mode_supported_p): Add MSA supported modes.
24954 (mips_autovectorize_vector_sizes): New function.
24955 (mips_msa_output_division): Likewise.
24956 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
24957 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
24958 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
24959 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
24960 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
24961 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
24962 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
24963 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
24964 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
24965 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
24966 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
24967 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
24968 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
24969 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
24970 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
24971 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
24972 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
24973 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
24974 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
24975 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
24976 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
24977 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
24978 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
24979 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
24980 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
24981 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
24982 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
24983 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
24984 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
24985 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
24986 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
24987 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
24988 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
24989 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
24990 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
24991 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
24992 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
24993 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
24994 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
24995 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
24996 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
24997 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
24998 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
24999 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
25000 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25001 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25002 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25003 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25004 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
25005 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
25006 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
25007 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
25008 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
25009 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
25010 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
25011 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
25012 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
25013 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
25014 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
25015 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
25016 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
25017 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
25018 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
25019 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
25020 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
25021 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
25022 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
25023 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
25024 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
25025 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
25026 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
25027 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
25028 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
25029 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
25030 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
25031 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
25032 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
25033 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
25034 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
25035 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
25036 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
25037 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
25038 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
25039 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
25040 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
25041 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
25042 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
25043 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
25044 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
25045 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
25046 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
25047 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
25048 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
25049 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
25050 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
25051 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
25052 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
25053 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
25054 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
25055 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
25056 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
25057 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
25058 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
25059 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
25060 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
25061 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
25062 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
25063 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
25064 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
25065 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
25066 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
25067 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
25068 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
25069 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
25070 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
25071 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
25072 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
25073 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
25074 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
25075 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
25076 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
25077 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
25078 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
25079 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
25080 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
25081 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
25082 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
25083 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
25084 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
25085 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
25086 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
25087 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
25088 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
25089 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
25090 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
25091 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
25092 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
25093 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
25094 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
25095 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
25096 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
25097 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
25098 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
25099 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
25100 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
25101 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
25102 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
25103 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
25104 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
25105 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
25106 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
25107 move_v builtins.
25108 (mips_get_builtin_decl_index): New array.
25109 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
25110 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
25111 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
25112 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
25113 (mips_init_builtins): Initialize mips_get_builtin_decl_index
25114 array.
25115 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
25116 hook.
25117 (mips_expand_builtin_insn): Prepare operands for
25118 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
25119 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
25120 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
25121 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
25122 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
25123 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
25124 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
25125 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
25126 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
25127 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
25128 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
25129 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
25130 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
25131 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
25132 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
25133 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
25134 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
25135 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
25136 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
25137 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
25138 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
25139 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
25140 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
25141 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
25142 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
25143 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
25144 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
25145 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
25146 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
25147 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
25148 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
25149 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
25150 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
25151 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
25152 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
25153 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
25154 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
25155 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
25156 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
25157 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
25158 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
25159 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
25160 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
25161 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
25162 These are set implicitly and an error is reported if overridden.
25163 (mips_expand_builtin_msa_test_branch): New function.
25164 (mips_expand_msa_shuffle): Likewise.
25165 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
25166 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
25167 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
25168 (mips_expand_vec_unpack): Add support for MSA.
25169 (mips_expand_vector_init): Likewise.
25170 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
25171 instead of const0_rtx.
25172 (mips_msa_vec_parallel_const_half): New function.
25173 (mips_gen_const_int_vector): Likewise.
25174 (mips_gen_const_int_vector_shuffle): Likewise.
25175 (mips_expand_msa_cmp): Likewise.
25176 (mips_expand_vec_cond_expr): Likewise.
25177 * config/mips/mips.h
25178 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
25179 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
25180 specified.
25181 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
25182 (ISA_HAS_MSA): New macro.
25183 (UNITS_PER_MSA_REG): Likewise.
25184 (BITS_PER_MSA_REG): Likewise.
25185 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
25186 (MSA_REG_FIRST): New macro.
25187 (MSA_REG_LAST): Likewise.
25188 (MSA_REG_NUM): Likewise.
25189 (MSA_REG_P): Likewise.
25190 (MSA_REG_RTX_P): Likewise.
25191 (MSA_SUPPORTED_MODE_P): Likewise.
25192 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
25193 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
25194 * config/mips/mips.md: Include mips-msa.md.
25195 (alu_type): Add simd_add.
25196 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
25197 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
25198 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
25199 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
25200 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
25201 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
25202 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
25203 simd_move, simd_load, simd_store. Choose "multi" for moves
25204 for "qword_mode".
25205 (qword_mode): New attribute.
25206 (insn_count): Add instruction count for quad moves.
25207 Increase the count for MIPS SIMD division.
25208 (UNITMODE): Add UNITMODEs for vector types.
25209 (addsub): New code iterator.
25210 * config/mips/mips.opt (mmsa): New option.
25211 * config/mips/msa.h: New file.
25212 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
25213 specified.
25214 * config/mips/mti-linux.h: Likewise.
25215 * config/mips/predicates.md
25216 (const_msa_branch_operand): New constraint.
25217 (const_uimm3_operand): Likewise.
25218 (const_uimm4_operand): Likewise.
25219 (const_uimm5_operand): Likewise.
25220 (const_uimm8_operand): Likewise.
25221 (const_imm5_operand): Likewise.
25222 (aq10b_operand): Likewise.
25223 (aq10h_operand): Likewise.
25224 (aq10w_operand): Likewise.
25225 (aq10d_operand): Likewise.
25226 (const_m1_operand): Likewise.
25227 (reg_or_m1_operand): Likewise.
25228 (const_exp_2_operand): Likewise.
25229 (const_exp_4_operand): Likewise.
25230 (const_exp_8_operand): Likewise.
25231 (const_exp_16_operand): Likewise.
25232 (const_vector_same_val_operand): Likewise.
25233 (const_vector_same_simm5_operand): Likewise.
25234 (const_vector_same_uimm5_operand): Likewise.
25235 (const_vector_same_uimm6_operand): Likewise.
25236 (const_vector_same_uimm8_operand): Likewise.
25237 (par_const_vector_shf_set_operand): Likewise.
25238 (reg_or_vector_same_val_operand): Likewise.
25239 (reg_or_vector_same_simm5_operand): Likewise.
25240 (reg_or_vector_same_uimm6_operand): Likewise.
25241 * doc/extend.texi (MIPS SIMD Architecture Functions): New
25242 section.
25243 * doc/invoke.texi (-mmsa): Document new option.
25244
25245 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25246
25247 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
25248 * configure: Regenerate.
25249 * config.in: Regenerate.
25250 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
25251 on -fvtable-verify.
25252 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
25253 (ENDFILE_VTV_SPEC): Define.
25254
25255 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
25256
25257 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
25258 registers in all interrupt handlers if necessary.
25259 (rl78_option_override): Add warning.
25260 (MUST_SAVE_MDUC_REGISTERS): New macro.
25261 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
25262 * config/rl78/rl78.c (check_mduc_usage): New function.
25263 (mduc_regs): New structure to hold MDUC register data.
25264 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
25265 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
25266 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
25267 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
25268 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
25269 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
25270
25271 2016-05-09 Bin Cheng <bin.cheng@arm.com>
25272
25273 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
25274 (tree-ssa-loop-niter.h): Ditto.
25275 (idx_within_array_bound, ref_within_array_bound): New functions.
25276 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
25277 Factor out check on writable base object to ...
25278 (base_object_writable): ... here.
25279
25280 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25281
25282 * config/arm/arm.md (probe_stack): Add modes to set source
25283 and destination.
25284
25285 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
25286
25287 * regrename.c (base_reg_class_for_rename): New static function.
25288 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
25289
25290 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
25291
25292 * cgraph.c (thunk_adjust): Export.
25293 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
25294 * cgraphunit.c (thunk_adjust): Export.
25295 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
25296 thunks.
25297 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
25298 inlinable.
25299 * tree-inline.c (expand_call_inline): Expand thunks inline.
25300
25301 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
25302
25303 PR target/70998
25304 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
25305 (*sse2_vd_cvtss2sd): Ditto.
25306 * config/i386/i386.md
25307 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
25308 Generate *sse2_vd_cvtsd2ss pattern.
25309 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
25310 Generate *sse2_vd_cvtss2sd pattern.
25311
25312 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25313
25314 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
25315 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
25316 users.
25317
25318 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
25319
25320 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
25321 * config/sh/sh.c: Define and declare variables on first use throughout
25322 the file.
25323 (current_function_interrupt): Change to bool type.
25324 (frame_insn): Rename to emit_frame_insn and update users.
25325 (push_regs): Use bool for 'interrupt_handler' argument.
25326 (save_schedule_s): Remove.
25327 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
25328 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
25329 targetm.asm_out.unaligned_op.di.
25330 (gen_far_branch): Remove redundant forward declaration.
25331 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
25332 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
25333 (sh_set_return_address, sh_function_ok_for_sibcall,
25334 scavenge_reg): Update comments.
25335 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
25336 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
25337 (sh_attr_renesas_p): Remove unnecessary parentheses.
25338 (branch_dest): Simplify.
25339 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
25340 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
25341 (CUMULATIVE_ARGS): Change macro to typedef.
25342 (current_function_interrupt): Change to bool type.
25343 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
25344 Surround with __cplusplus ifdef.
25345 (sh_compare_op0, sh_compare_op1): Remove.
25346 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
25347
25348 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
25349
25350 * config/arm/arm.md (arch): Add neon.
25351 (arch_enabled): Return yes for arch neon when TARGET_NEON.
25352 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
25353 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
25354 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
25355 attributes for alt renumbering. Mark alt 3 as non-predicable.
25356 (thumb2_movdf_vfp): Likewise.
25357
25358 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
25359
25360 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
25361 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
25362 (*andqi_1): Add preferred_for_speed attribute to disparage
25363 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
25364 (*<code>qi_1): Ditto.
25365 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
25366 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
25367 (*ashlqi3_1): Ditto.
25368 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
25369 Add preferred_for_size attribute to disparage alternative 0 and
25370 preferred_for_speed attribute to disparage alternative 1 for
25371 TARGET_PARTIAL_REG_STALL targets.
25372
25373 2016-05-07 Tom de Vries <tom@codesourcery.com>
25374
25375 PR tree-optimization/70956
25376 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
25377 def.
25378
25379 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25380
25381 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
25382 * config/sh/sh.c (sh_cbranch_distance): Implement it.
25383 * config/sh/sh.md (branch_zero): Remove define_attr.
25384 (define_delay): Disable delay slot if branch distance is one insn.
25385
25386 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25387
25388 * config/i386/i386.md (LEAMODE): New mode attribute.
25389 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
25390 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
25391 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
25392 operand 2 predicate.
25393 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
25394 (*lea<mode>_general_3): Ditto.
25395 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
25396
25397 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25398
25399 * genmddump.c (main): Convert argv from char ** to const char **.
25400
25401 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25402
25403 * coretypes.h (OVERRIDE): New macro.
25404 (FINAL): New macro.
25405
25406 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
25407
25408 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
25409 allow coalescing if the types are compatible.
25410
25411 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25412
25413 * pass_manager.h (pass_manager::register_pass_name): New method.
25414 (pass_manager::get_pass_by_name): New method.
25415 (pass_manager::create_pass_tab): New method.
25416 (pass_manager::m_name_to_pass_map): New field.
25417 * passes.c (name_to_pass_map): Delete global in favor of field
25418 "m_name_to_pass_map" of pass_manager.
25419 (register_pass_name): Rename from a function to...
25420 (pass_manager::register_pass_name): ...this method, updating
25421 for renaming of global "name_to_pass_map" to field
25422 "m_name_to_pass_map".
25423 (create_pass_tab): Rename from a function to...
25424 (pass_manager::create_pass_tab): ...this method, updating
25425 for renaming of global "name_to_pass_map" to field.
25426 (get_pass_by_name): Rename from a function to...
25427 (pass_manager::get_pass_by_name): ...this method.
25428 (enable_disable_pass): Convert use of get_pass_by_name to
25429 a method call, locating the pass_manager singleton.
25430
25431 2016-05-06 David Malcolm <dmalcolm@redhat.com>
25432
25433 * genattr-common.c (main): Convert argv from char ** to const char **.
25434 * genattr.c (main): Likewise.
25435 * genattrtab.c (main): Likewise.
25436 * genautomata.c (initiate_automaton_gen): Likewise.
25437 (main): Likewise.
25438 * gencodes.c (main): Likewise.
25439 * genconditions.c (main): Likewise.
25440 * genconfig.c (main): Likewise.
25441 * genconstants.c (main): Likewise.
25442 * genemit.c (main): Likewise.
25443 * genenums.c (main): Likewise.
25444 * genextract.c (main): Likewise.
25445 * genflags.c (main): Likewise.
25446 * genmddeps.c (main): Likewise.
25447 * genopinit.c (main): Likewise.
25448 * genoutput.c (main): Likewise.
25449 * genpeep.c (main): Likewise.
25450 * genpreds.c (main): Likewise.
25451 * genrecog.c (main): Likewise.
25452 * gensupport.c (init_rtx_reader_args_cb): Likewise.
25453 (init_rtx_reader_args): Likewise.
25454 * gensupport.h (init_rtx_reader_args_cb): Likewise.
25455 (init_rtx_reader_args): Likewise.
25456 * gentarget-def.c (main): Likewise.
25457 * read-md.c (read_md_files): Likewise.
25458 * read-md.h (read_md_files): Likewise.
25459
25460 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25461
25462 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
25463 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
25464 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
25465 Remove unused predicate.
25466 (register_and_not_fp_reg_operand): Ditto.
25467
25468 2016-05-06 Martin Liska <mliska@suse.cz>
25469
25470 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
25471 instead of vec as the vector is local to the function.
25472
25473 2016-05-06 Jakub Jelinek <jakub@redhat.com>
25474
25475 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
25476 avx512bw alternative.
25477
25478 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
25479 before the ashr<mode>3 pattern.
25480
25481 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
25482 v instead of x in vex or maybe_vex alternatives, use
25483 maybe_evex instead of vex in prefix.
25484
25485 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
25486 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
25487 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
25488 in vex or maybe_vex alternatives, use maybe_evex instead of vex
25489 in prefix.
25490
25491 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
25492 v instead of x in vex or maybe_vex alternatives, use
25493 maybe_evex instead of vex in prefix.
25494
25495 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
25496 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
25497 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
25498 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
25499 alternatives, use maybe_evex instead of vex in prefix.
25500
25501 * config/i386/sse.md (vec_interleave_lowv4sf,
25502 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
25503 v instead of x in vex or maybe_vex alternatives, use
25504 maybe_evex instead of vex in prefix.
25505
25506 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
25507 v instead of x in vex or maybe_vex alternatives, use
25508 maybe_evex instead of vex in prefix.
25509
25510 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
25511 v constraint instead of x.
25512
25513 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
25514
25515 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
25516 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
25517 equality first.
25518
25519 2016-05-06 Richard Biener <rguenther@suse.de>
25520
25521 PR tree-optimization/70948
25522 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
25523 Properly clobber all fields of va_list for __builtin_va_start.
25524
25525 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
25526
25527 PR debug/70935
25528 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
25529 loop latch destination.
25530
25531 2016-05-06 Martin Liska <mliska@suse.cz>
25532
25533 * tree-ssa-uninit.c: Apply manual changes
25534 to the GNU coding style.
25535 (prune_uninit_phi_opnds): Rename from
25536 prune_uninit_phi_opnds_in_unrealizable_paths.
25537
25538 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25539
25540 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
25541 mspace): Remove deprecated options.
25542 * doc/invoke.texi (SH options): Remove -mspace.
25543
25544 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25545
25546 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
25547
25548 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25549
25550 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
25551 corresponding combine split pattern.
25552
25553 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25554
25555 PR target/58219
25556 * config/sh/predicates.md (long_displacement_mem_operand): New.
25557 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
25558 Add movi20, movi20s alternatives. Adjust length attribute for
25559 alternatives.
25560 (movsi_ie): Allow for any FPU. Adjust length attribute for
25561 alternatives.
25562 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
25563 attribute for alternatives.
25564 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
25565 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
25566 length attribute for alternatives.
25567
25568 2016-05-06 Richard Biener <rguenther@suse.de>
25569
25570 PR tree-optimization/70960
25571 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
25572
25573 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25574
25575 PR target/52933
25576 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
25577 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
25578
25579 2016-05-06 Marek Polacek <polacek@redhat.com>
25580
25581 PR sanitizer/70875
25582 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
25583
25584 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
25585
25586 PR target/54089
25587 * config/sh/sh.md (*rotcr): Add another variant.
25588
25589 2016-05-06 Richard Biener <rguenther@suse.de>
25590
25591 PR middle-end/70931
25592 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
25593
25594 2016-05-06 Richard Biener <rguenther@suse.de>
25595
25596 PR middle-end/70941
25597 * fold-const.c (split_tree): Always convert to the original type
25598 before negating.
25599
25600 2016-05-06 Richard Biener <rguenther@suse.de>
25601
25602 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
25603 (fwprop_addr): Likewise.
25604
25605 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
25606
25607 PR target/70873
25608 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
25609 New prototype.
25610 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
25611 * config/i386/i386.md (push mem splitter): Use find_constant_src in
25612 the splitter condition.
25613 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
25614 the splitter condition.
25615 (FP float_extend load splitter): Ditto.
25616
25617 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
25618
25619 * config/i386/i386.md (peehole2 patterns): Change true_regnum
25620 to REGNO in all peephole2 patterns.
25621 (post-reload splitters): Change true_regnum to REGNO in
25622 post-reload splitters.
25623 (zero_extend splitters): Use general_reg_operand and
25624 nonimmediate_gr_operand predicates.
25625
25626 2016-05-05 Jakub Jelinek <jakub@redhat.com>
25627
25628 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
25629 v constraint instead of x.
25630
25631 2016-05-05 Alan Modra <amodra@gmail.com>
25632
25633 PR target/68662
25634 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
25635 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
25636 TARGET_NO_FP_IN_TOC for -mrelocatable.
25637 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
25638 TARGET_RELOCATABLE test.
25639 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25640 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25641 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25642 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25643 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25644 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
25645 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
25646 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
25647 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
25648 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25649 Likewise.
25650 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
25651 (rs6000_stack_info): Likewise.
25652 (rs6000_elf_asm_out_constructor): Likewise.
25653 (rs6000_elf_asm_out_destructor): Likewise.
25654 (rs6000_elf_declare_function_name): Likewise.
25655 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
25656 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
25657 Don't define.
25658
25659 2016-05-05 Alan Modra <amodra@gmail.com>
25660
25661 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
25662
25663 2016-05-05 Alan Modra <amodra@gmail.com>
25664
25665 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
25666 out-of-line gpr restore for one or two regs if that would add
25667 a save of lr.
25668
25669 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
25670
25671 PR target/70873
25672 * config/i386/i386.md
25673 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
25674 Change to post-epilogue_completed late splitter. Use sse_reg_operand
25675 as operand 0 predicate.
25676 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
25677 Ditto.
25678 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
25679 Ditto. Emit the pattern using RTX.
25680
25681 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
25682 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
25683 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
25684 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
25685 Ditto.
25686 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
25687 sse_reg_operand as operand 0 predicate.
25688
25689 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
25690 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
25691 instead of gen_rtx_REG.
25692 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
25693 Ditto.
25694
25695 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25696
25697 * function.c (emit_use_return_register_into_block): Delete.
25698 (gen_return_pattern): Delete.
25699 (emit_return_into_block): Delete.
25700 (active_insn_between): Delete.
25701 (convert_jumps_to_returns): Delete.
25702 (emit_return_for_exit): Delete.
25703 (thread_prologue_and_epilogue_insns): Delete all code dealing with
25704 simple_return for shrink-wrapped blocks.
25705 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
25706 end of blocks that need one.
25707 (get_unconverted_simple_return): Delete.
25708 (convert_to_simple_return): Delete.
25709 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
25710 (convert_to_simple_return): Ditto.
25711
25712 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25713
25714 * cfgcleanup.c (bb_is_just_return): New function.
25715 (try_optimize_cfg): Simplify jumps to return, branches to return,
25716 and branches around return.
25717
25718 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
25719
25720 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
25721 branch to a return.
25722
25723 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25724
25725 PR c++/70906
25726 PR c++/70933
25727 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
25728 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
25729 assert flags & OEP_HASH_CHECK, instead of asserting it
25730 never happens. Handle TARGET_EXPR.
25731 * fold-const.c (operand_equal_p): For hash verification,
25732 or in OEP_HASH_CHECK into flags.
25733
25734 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
25735
25736 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
25737 comment.
25738 (compute_samebase_partition_bases): Fix typo.
25739
25740 2016-05-04 Jakub Jelinek <jakub@redhat.com>
25741
25742 * config/i386/sse.md (vec_interleave_highv8sf,
25743 vec_interleave_lowv8sf, vec_interleave_highv4df,
25744 vec_interleave_lowv4df): Remove constraints from expanders.
25745
25746 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
25747
25748 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25749
25750 * tree-inline.c (expand_call_inline): Fix path dealing with
25751 making lhs of call statement undefined.
25752
25753 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
25754
25755 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
25756 Check availability on NODE, too.
25757 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
25758 (cgraph_node::call_for_symbol_and_aliases): Likewise.
25759 (varpool_node::call_for_symbol_and_aliase): Likewise.
25760 * ipa-pure-const.c (add_new_function): Analyze all bodies.
25761 (propagate_pure_const): Propagate across interposable functions, too.
25762 (skip_function_for_local_pure_const): Do not skip interposable bodies
25763 with aliases.
25764 (pass_local_pure_const::execute): Update.
25765
25766 2016-05-04 Marek Polacek <polacek@redhat.com>
25767
25768 * doc/invoke.texi: Document -Wdangling-else.
25769
25770 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
25771
25772 * config.gcc: Error out when conflicting multilib is detected. Do not
25773 loop over multilibs since no combination is legal.
25774
25775 2016-05-04 Alan Modra <amodra@gmail.com>
25776
25777 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
25778 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
25779 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
25780 Align .toc.
25781
25782 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
25783
25784 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
25785 Clean up p5600 comments.
25786
25787 2016-05-04 Richard Biener <rguenther@suse.de>
25788
25789 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
25790 constructor simplifications.
25791 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
25792
25793 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
25794
25795 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
25796 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
25797 result.set_rtx is null instead of aborting.
25798 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
25799 Always enable.
25800 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
25801 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
25802 *mov<mode>_store_postinc): New patterns.
25803
25804 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
25805
25806 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
25807 as commutative. Check both conversions are NOP.
25808 ((A & B) OP (C & B)): Remove.
25809
25810 2016-05-04 Alan Modra <amodra@gmail.com>
25811
25812 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
25813
25814 2016-05-04 Alan Modra <amodra@gmail.com>
25815
25816 PR target/70866
25817 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
25818 when cr2,3,4 are all fixed regs.
25819
25820 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
25821
25822 PR rtl-optimization/57193
25823 * opts.c (default_options_table): Revert OPT_frename_registers change.
25824 * doc/invoke.texi (-frename-registers, -O2): Likewise.
25825
25826 2016-05-03 Martin Sebor <msebor@redhat.com>
25827
25828 PR c++/66561
25829 * builtins.c (fold_builtin_FILE): New function.
25830 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
25831 (fold_builtin_0): Call them.
25832 * gimplify.c (gimplify_call_expr): Remove the handling of
25833 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
25834
25835 PR c++/66561
25836 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
25837 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
25838 constants.
25839
25840 PR c++/66639
25841 * doc/extend.texi (Function Names as Strings): Update __func__,
25842 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
25843 constants.
25844
25845 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25846 Richard Biener <rguenther@suse.de>
25847
25848 PR tree-optimization/70916
25849 * tree-if-conv.c: Include cfganal.h.
25850 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
25851 and remove_fake_exit_edges around the optimization pass.
25852
25853 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
25854
25855 * cgraph.c (symbol_table::create_edge): Set inline_failed.
25856 (cgraph_edge::make_direct): Likewise.
25857 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
25858 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
25859 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
25860 (CIF_THUNK): New code.
25861 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
25862 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
25863 (compute_inline_parameters): Set inline_failed for thunks.
25864 (inline_analyze_function): Cleanup.
25865 * ipa-inline.c (can_inline_edge_p): Do not deal with
25866 call_stmt_cannot_inline_p.
25867 (can_early_inline_edge_p): Likewise.
25868 (early_inliner): Initialize inline_failed.
25869 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
25870
25871 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
25872
25873 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
25874 from nonimm_ssenomem_operand.
25875 (nonimm_ssenomem_operand): New predicate.
25876 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25877 as operand 0 predicate.
25878 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
25879 Disable unsupported alternatives using "enabled" attribute.
25880 Use register_ssemem_operand as operand 0 predicate.
25881 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
25882
25883 2016-05-03 Marek Polacek <polacek@redhat.com>
25884
25885 PR c/70859
25886 * input.c (expansion_point_location): New function.
25887 * input.h (expansion_point_location): Declare.
25888
25889 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
25890
25891 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
25892 occurence with frame_offset_ ones.
25893
25894 2016-05-03 Alan Modra <amodra@gmail.com>
25895
25896 PR rtl-optimization/70890
25897 * ira.c (combine_and_move_insns): When moving def_insn, remove
25898 equivs on use_insn.
25899
25900 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
25901
25902 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
25903 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
25904 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
25905 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
25906
25907 2016-05-03 Alan Modra <amodra@gmail.com>
25908
25909 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
25910 for SAVE_MULTIPLE/STORE_MULTIPLE.
25911
25912 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25913
25914 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
25915 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
25916
25917 2016-05-03 Richard Biener <rguenther@suse.de>
25918
25919 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
25920 default true.
25921 (gimplify_arg): Likewise.
25922 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
25923 re-writing the result to a decl if required.
25924 (internal_get_tmp_var): Add allow_ssa parameter
25925 and override into_ssa with it.
25926 (get_formal_tmp_var): Adjust.
25927 (get_initialized_tmp_var): Add allow_ssa parameter.
25928 (gimplify_arg): Add allow_ssa parameter and avoid generating
25929 SSA names for the result false.
25930 (gimplify_call_expr): If the call may return twice do not
25931 gimplify parameters into SSA.
25932 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
25933 (gimplify_modify_expr): Adjust assert. For noreturn calls
25934 with a SSA name LHS adjust its def.
25935 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
25936 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
25937 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
25938 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
25939 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
25940 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
25941 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
25942 (optimize_target_teams): Do not allow SSA names for clause operands.
25943 (gimplify_expr): Likewise for where we mark the result addressable.
25944 * passes.def (pass_init_datastructures): Remove.
25945 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
25946 (rewrite_stmt): Likewise.
25947 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
25948 (replace_locals_op): Replace SSA names.
25949 (copy_gimple_seq_and_replace_locals): Init src_cfun.
25950 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
25951 * cgraph.c (release_function_body): Free CFG annotations only
25952 when we have a CFG. Simplify.
25953 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25954 force_gimple_operand instead of get_initialized_tmp_var.
25955 * tree-pass.h (make_pass_init_datastructures): Remove.
25956 * tree-ssa.c (execute_init_datastructures): Remove.
25957 (pass_data_init_datastructures): Likewise.
25958 (class pass_init_datastructures): Likewise.
25959 (make_pass_init_datastructures): Likewise.
25960 * omp-low.c (create_omp_child_function): Init SSA data structures.
25961 (grid_expand_target_grid_body): Likewise.
25962 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
25963 name before adding it to names_to_release.
25964 (remove_bb): Always release SSA defs.
25965 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
25966 before dereferencing it.
25967 * cgraphunit.c (init_lowered_empty_function): Always
25968 int SSA data structures.
25969 * tree-ssanames.c (release_defs): Remove assert that we are in
25970 SSA form.
25971 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
25972
25973 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25974 Uros Bizjak <ubizjak@gmail.com>
25975
25976 PR rtl-optimization/70467
25977 * config/i386/predicates.md (x86_64_hilo_int_operand,
25978 x86_64_hilo_general_operand): New predicates.
25979 * config/i386/constraints.md (Wd): New constraint.
25980 * config/i386/i386.md (mode attr di): Use Wd instead of e.
25981 (general_hilo_operand): New mode attr.
25982 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
25983 instead of <general_operand>.
25984 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
25985 x86_64_hilo_general_operand instead of <general_operand>.
25986
25987 2016-05-03 Jakub Jelinek <jakub@redhat.com>
25988
25989 PR tree-optimization/70916
25990 * tree-if-conv.c (constant_or_ssa_name): Removed.
25991 (fold_build_cond_expr): Use is_gimple_val instead of
25992 constant_or_ssa_name.
25993
25994 PR tree-optimization/70916
25995 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
25996 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
25997
25998 PR target/49244
25999 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
26000 (optimize_atomic_bit_test_and): New function.
26001 (pass_fold_builtins::execute): Use it.
26002 * optabs.def (atomic_bit_test_and_set_optab,
26003 atomic_bit_test_and_complement_optab,
26004 atomic_bit_test_and_reset_optab): New optabs.
26005 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
26006 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
26007 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
26008 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
26009 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
26010 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
26011 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
26012 * doc/md.texi (atomic_bit_test_and_set@var{mode},
26013 atomic_bit_test_and_complement@var{mode},
26014 atomic_bit_test_and_reset@var{mode}): Document.
26015 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
26016 atomic_bit_test_and_complement<mode>,
26017 atomic_bit_test_and_reset<mode>): New expanders.
26018 (atomic_bit_test_and_set<mode>_1,
26019 atomic_bit_test_and_complement<mode>_1,
26020 atomic_bit_test_and_reset<mode>_1): New insns.
26021
26022 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
26023
26024 PR rtl-optimization/70687
26025 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
26026 instead of unsigned HOST_WIDE_INT.
26027
26028 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
26029
26030 PR rtl-optimization/44281
26031 * hard-reg-set.h (struct target_hard_regs): New field
26032 x_fixed_nonglobal_reg_set.
26033 (fixed_nonglobal_reg_set): New macro.
26034 * reginfo.c (init_reg_sets_1): Initialize it.
26035 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
26036 of fixed_reg_set.
26037 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
26038
26039 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26040
26041 PR tree-optimization/56541
26042 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
26043 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
26044 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
26045 (any_complicated_phi): new static variable.
26046 (aggressive_if_conv): delete.
26047 (if_convertible_phi_p): support phis with more than two arguments.
26048 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
26049 critical pred edges.
26050 (ifcvt_split_critical_edges): support phis with more than two
26051 arguments by checking new parameter. only split critical edges
26052 if needed.
26053 (tree_if_conversion): handle simd pragma marked loop using new
26054 local variable aggressive_if_conv. check any_complicated_phi.
26055
26056 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26057
26058 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
26059 before using it.
26060
26061 2016-05-03 Bin Cheng <bin.cheng@arm.com>
26062
26063 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26064 cbase.
26065
26066 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26067
26068 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
26069 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
26070 define_insn_and_split.
26071 (mulsi3_i): New define_insn_and_split.
26072 (mulsi3_call): Convert to define_insn.
26073 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
26074 Remove constraints.
26075
26076 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
26077
26078 * machmode.h (mode_complex): Add support to give the complex mode
26079 for a given mode.
26080 (GET_MODE_COMPLEX_MODE): Likewise.
26081 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
26082 stored by build_complex_type and gfc_build_complex_type instead of
26083 trying to figure out the appropriate mode based on the size. Raise
26084 an assertion error, if the type was not set.
26085 * genmodes.c (struct mode_data): Add field for the complex type of
26086 the given type.
26087 (blank_mode): Likewise.
26088 (make_complex_modes): Remember the complex mode created in the
26089 base type.
26090 (emit_mode_complex): Write out the mode_complex array to map a
26091 type mode to the complex version.
26092 (emit_insn_modes_c): Likewise.
26093 * tree.c (build_complex_type): Set the complex type to use before
26094 calling layout_type.
26095 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
26096 support for __float128 complex datatypes.
26097 (rs6000_hard_regno_mode_ok): Likewise.
26098 (rs6000_setup_reg_addr_masks): Likewise.
26099 (rs6000_complex_function_value): Likewise.
26100 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
26101 __float128 and __ibm128 complex.
26102 (FLOAT128_IBM_P): Likewise.
26103 (ALTIVEC_ARG_MAX_RETURN): Likewise.
26104 * doc/extend.texi (Additional Floating Types): Document that
26105 -mfloat128 must be used to enable __float128. Document complex
26106 __float128 and __ibm128 support.
26107
26108 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26109
26110 PR target/49244
26111 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
26112 char/short arguments promoted to int because of promote_prototypes.
26113
26114 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26115
26116 * config/i386/predicates.md (register_ssemem_operand): New predicate.
26117 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
26118 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
26119 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
26120 alternatives using "enabled" attribute. Use register_ssemem_operand
26121 as operand 1 predicate.
26122 (*cmpi<unord>xf_i387): Split XFmode pattern from
26123 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
26124 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
26125 *absneg<mode>2_i387. Disable unsupported alternatives using
26126 "enabled" attribute.
26127 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
26128
26129 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26130
26131 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
26132 marker.
26133 (oacc_loop_process): Check mask for loop termination.
26134
26135 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26136
26137 * cif-code.def (CIF_THUNK): Add.
26138 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
26139 accidental change.
26140
26141 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
26142
26143 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
26144 (dump_inline_summary): Dump it.
26145 (fp_expression_p): New predicate.
26146 (estimate_function_body_sizes): Use it.
26147 (inline_merge_summary): Merge fp_expressions.
26148 (inline_read_section): Read fp_expressions.
26149 (inline_write_summary): Write fp_expressions.
26150 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
26151 codegen boundary if either caller or callee is !fp_expressions.
26152 * ipa-inline.h (inline_summary): Add fp_expressions.
26153 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
26154 to fp_expressions be sure the fp generation flags are updated.
26155
26156 2016-05-02 Jakub Jelinek <jakub@redhat.com>
26157
26158 PR rtl-optimization/70467
26159 * cse.c (cse_insn): Handle no-op MEM moves after folding.
26160
26161 PR rtl-optimization/70467
26162 * ipa-pure-const.c (check_call): Handle internal calls even in
26163 ipa mode like in local mode.
26164
26165 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
26166
26167 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
26168
26169 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26170
26171 * match.pd (X u< X, X u> X): New transformations.
26172
26173 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
26174
26175 * flag-types.h (enum warn_strict_overflow_code): Move ...
26176 * coretypes.h: ... here.
26177 * fold-const.h (fold_overflow_warning): Declare.
26178 * fold-const.c (fold_overflow_warning): Make non-static.
26179 (fold_comparison): Move the transformation of X +- C1 CMP C2
26180 into X CMP C2 -+ C1 ...
26181 * match.pd: ... here.
26182 * gimple-fold.c (fold_stmt_1): Protect with
26183 fold_defer_overflow_warnings.
26184
26185 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
26186
26187 * omp-low.c (struct oacc_loop): Add 'inner' field.
26188 (new_oacc_loop_raw): Initialize it to zero.
26189 (oacc_loop_fixed_partitions): Initialize it.
26190 (oacc_loop_auto_partitions): Partition outermost loop to outermost
26191 available partitioning.
26192
26193 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26194
26195 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
26196 register_operand.
26197 (umulsidi3): Likewise.
26198 (indirect_jump): Fix jump instruction assembly patterns.
26199
26200 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
26201
26202 PR target/70860
26203 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
26204 (nvptx_function_value): Assert non-NULL cfun.
26205
26206 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
26207
26208 PR rtl-optimization/70886
26209 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
26210
26211 * cselib.h (rtx_equal_for_cselib_1): Declare.
26212 (rtx_equal_for_cselib_p: New inline function.
26213 * cselib.c (rtx_equal_for_cselib_p): Delete.
26214 (rtx_equal_for_cselib_1): Make public.
26215
26216 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
26217
26218 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
26219 (register_mixssei387nonimm_operand): Remove predicate.
26220 * config/i386/i386.md (*fop_<mode>_comm): Merge from
26221 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
26222 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
26223 for TARGET_MIX_SSE_I387 alternatives.
26224 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
26225 Disable unsupported alternatives using "enabled" attribute. Use
26226 nonimm_ssenomem_operand as operand 1 predicate. Also check
26227 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
26228
26229 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26230
26231 * tree.c (cst_and_fits_in_hwi): Simplify.
26232
26233 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26234
26235 * tree.h (wi::to_wide): New function.
26236 * expr.c (expand_expr_real_1): Use wi::to_wide.
26237 * fold-const.c (int_const_binop_1): Likewise.
26238 (extract_muldiv_1): Likewise.
26239
26240 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26241
26242 * wide-int.h: Update offset_int and widest_int documentation.
26243 (WI_SIGNED_SHIFT_RESULT): New macro.
26244 (wi::binary_shift): Define signed_shift_result_type for
26245 shifts on offset_int- and widest_int-like types.
26246 (generic_wide_int): Support <<= and >>= if << and >> are supported.
26247 * tree.h (int_bit_position): Use shift operators instead of wi::
26248 shifts.
26249 * alias.c (adjust_offset_for_component_ref): Likewise.
26250 * expr.c (get_inner_reference): Likewise.
26251 * fold-const.c (fold_comparison): Likewise.
26252 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
26253 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26254 * tree-dfa.c (get_ref_base_and_extent): Likewise.
26255 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26256 (stmt_kills_ref_p): Likewise.
26257 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
26258 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
26259 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
26260 (ao_ref_init_from_vn_reference): Likewise.
26261
26262 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
26263
26264 * wide-int.h: Update offset_int and widest_int documentation.
26265 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
26266 (wi::binary_traits): Allow ordered comparisons between offset_int and
26267 offset_int, between widest_int and widest_int, and between either
26268 of these types and basic C types.
26269 (operator <, <=, >, >=): Define for the same combinations.
26270 * tree.h (tree_int_cst_lt): Use comparison operators instead
26271 of wi:: comparisons.
26272 (tree_int_cst_le): Likewise.
26273 * gimple-fold.c (fold_array_ctor_reference): Likewise.
26274 (fold_nonarray_ctor_reference): Likewise.
26275 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
26276 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
26277 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
26278 * tree-sra.c (completely_scalarize): Likewise.
26279 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
26280 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
26281 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
26282 (check_for_binary_op_overflow): Likewise.
26283 (search_for_addr_array): Likewise.
26284 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
26285
26286 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26287
26288 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
26289 (arc_save_restore): Likewise.
26290 (arc_dwarf_register_span): Likewise.
26291 (arc_output_pic_addr_const): Initialize suffix variable.
26292
26293 2016-05-02 Martin Liska <mliska@suse.cz>
26294
26295 * symbol-summary.h (function_summary::function_summary):
26296 Remove checking assert for all cgraph nodes.
26297 (function_summary::get): Check summary_uid.
26298 (symtab_insertion): Check summary_uid.
26299
26300 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
26301
26302 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
26303 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
26304 bmaskn instruction.
26305 (arc_dwarf_register_span): Remove enum keyword.
26306 (compact_memory_operand_p): New function.
26307 * config/arc/arc.h (reg_class): Add code density register classes.
26308 (REG_CLASS_NAMES): Likewise.
26309 (REG_CLASS_CONTENTS): Likewise.
26310 * config/arc/arc.md (*movqi_insn): Add code density instructions.
26311 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
26312 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
26313 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
26314 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
26315 constraints.
26316 (h, Rcd, Rsd, Rzd): New register constraints.
26317 (T): Use compact_memory_operand_p function.
26318 * config/arc/predicates.md (compact_load_memory_operand): Remove.
26319
26320 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26321
26322 * config/sh/sh.md (*negnegt, *movtt): Remove.
26323
26324 2016-05-02 Marek Polacek <polacek@redhat.com>
26325 Tom de Vries <tom@codesourcery.com>
26326
26327 PR tree-optimization/70700
26328 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
26329 bigger than FIRST_REF_NODE.
26330
26331 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
26332
26333 PR target/52898
26334 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
26335 TARGET_CMPEQDI_T.
26336 (prepare_cbranch_operands): Don't use scratch register. Assume that
26337 function is used when pseudos can be created.
26338 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
26339 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
26340 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
26341 define_expand. Allow it only when pseudos can be created.
26342 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
26343
26344 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
26345
26346 * config/i386/constraints.md (BC): Only allow -1 operands.
26347 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
26348 Add "enabled" attribute. Update XI mode attribute calculation.
26349 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
26350 (*movoi_internal_avx): Update XI mode attribute calculation.
26351 (*movti_internal): Ditto.
26352
26353 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26354
26355 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
26356 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
26357
26358 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
26359
26360 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
26361 statement on instruction code. Remove trailing spaces.
26362 (altivec_expand_stv_builtin): Likewise.
26363
26364 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26365
26366 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
26367 (TARGET_FPU_DOUBLE): Simplify.
26368 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
26369 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
26370 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
26371 with 'TARGET_FPU_DOUBLE'.
26372 * config/sh/sh.md: Likewise.
26373
26374 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
26375
26376 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
26377 SH_DIV_STR_FOR_SIZE): Remove.
26378 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
26379 SH_DIV_STR_FOR_SIZE): Remove.
26380
26381 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26382
26383 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
26384 logical_reg_operand): Delete.
26385 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
26386 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
26387 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
26388 match_operand and match_test.
26389 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
26390 variables on their first use. Return bool values.
26391 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
26392 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
26393 arith_reg_operand for input operand. Remove empty constraints.
26394 (xorsi3): Delete.
26395 (*xorsi3_compact): Rename to xorsi3.
26396 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
26397 (*zero_extend<mode>si2_disp_mem): Update comment.
26398 (mov_nop): Delete.
26399
26400 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26401
26402 * config/sh/t-sh: Remove SH5 support.
26403 * config.gcc: Likewise.
26404 * configure: Likewise.
26405
26406 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26407
26408 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
26409
26410 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
26411
26412 * config/sh/sh.c (register_sh_passes, sh_option_override,
26413 sh_print_operand, prepare_move_operands,
26414 sh_can_follow_jump): Remove TARGET_SH1 checks.
26415 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
26416 PROMOTE_MODE): Likewise.
26417 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
26418 movdi): Likewise.
26419
26420 2016-04-30 Alan Modra <amodra@gmail.com>
26421
26422 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
26423 restoring when fixed_reg_p, but allow out-of-line or stmw save.
26424 Check for user regs later to avoid unnecessary looping over regs.
26425 Merge user reg check with non-saved reg check. Don't force
26426 inline VR restore when static chain used.
26427 (rs6000_frame_related): Omit eh_frame info for user regs when
26428 saving.
26429 (fixed_regs_p): Delete.
26430
26431 2016-04-30 Alan Modra <amodra@gmail.com>
26432
26433 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
26434 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
26435 Update all uses.
26436
26437 2016-04-30 Alan Modra <amodra@gmail.com>
26438
26439 PR target/69645
26440 * config/rs6000/rs6000.c (fixed_reg_p): New function.
26441 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
26442 Update all uses.
26443
26444 2016-04-30 Alan Modra <amodra@gmail.com>
26445
26446 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
26447 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
26448 flag_pic test for Darwin.
26449
26450 2016-04-30 Alan Modra <amodra@gmail.com>
26451
26452 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
26453 throw_calls_crossed.
26454 (REG_FREQ_CALLS_CROSSED): Delete.
26455 (REG_N_THROWING_CALLS_CROSSED): Delete.
26456 * regstat.c (regstat_bb_compute_ri): Don't calculate
26457 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
26458 (dump_reg_info): Don't print call cross frequency.
26459 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
26460 and REG_N_THROWING_CALLS_CROSSED.
26461
26462 2016-04-30 Alan Modra <amodra@gmail.com>
26463
26464 * regs.h (struct reg_info_t): Delete live_length.
26465 (REG_LIVE_LENGTH): Delete macro.
26466 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
26467 local_live, local_processed and local_live_last_luid params.
26468 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
26469 Formatting fixes.
26470 (regstat_compute_ri): Adjust for above. Don't set
26471 REG_LIVE_LENGTH.
26472 (dump_reg_info): Don't print live length.
26473 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
26474 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
26475 Localize loop_depth var.
26476
26477 2016-04-30 Alan Modra <amodra@gmail.com>
26478
26479 * ira.c (enum valid_equiv): New.
26480 (validate_equiv_mem): Return enum.
26481 (update_equiv_mem): Create replacement in more cases.
26482 (add_store_equivs): Update validate_equiv_mem call.
26483
26484 2016-04-30 Alan Modra <amodra@gmail.com>
26485
26486 * ira.c (combine_and_move_insns): Rather than scanning insns,
26487 use DF infrastucture to find use and def insns.
26488
26489 2016-04-30 Alan Modra <amodra@gmail.com>
26490
26491 ira.c (combine_and_move_insns): Move invariant conditions..
26492 (ira.c): ..to here. Call combine_and_move_insns before
26493 add_store_equivs. Call grow_reg_equivs later. Allocate
26494 req_equiv later using max_reg_num() rather than global max_regno.
26495 (contains_replace_regs): Delete.
26496 (add_store_equivs): Remove contains_replace_regs test.
26497
26498 2016-04-30 Alan Modra <amodra@gmail.com>
26499
26500 * ira.c (struct equiv_mem_data): New.
26501 (equiv_mem, equiv_mem_modified): Delete static vars.
26502 (validate_equiv_mem_from_store): Use "data" param to communicate..
26503 (validate_equiv_mem): ..from here.
26504
26505 2016-04-30 Alan Modra <amodra@gmail.com>
26506
26507 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
26508 split out from..
26509 (update_reg_equivs): ..here. Move allocation and freeing of
26510 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
26511 end_alias_analysis to..
26512 (ira): ..here.
26513
26514 2016-04-30 Alan Modra <amodra@gmail.com>
26515
26516 * ira.c (pdx_subregs): Delete.
26517 (struct equivalence): Add pdx_subregs field.
26518 (set_paradoxical_subreg): Remove pdx_subregs param. Update
26519 pdx_subregs access.
26520 (update_equiv_regs): Don't create or free pdx_subregs. Update
26521 pdx_subregs access.
26522
26523 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26524
26525 * config/rs6000/altivec.h: Change definitions of vec_xl and
26526 vec_xst.
26527 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
26528 (LD_ELEMREV_V2DI): New.
26529 (LD_ELEMREV_V4SF): New.
26530 (LD_ELEMREV_V4SI): New.
26531 (LD_ELEMREV_V8HI): New.
26532 (LD_ELEMREV_V16QI): New.
26533 (ST_ELEMREV_V2DF): New.
26534 (ST_ELEMREV_V2DI): New.
26535 (ST_ELEMREV_V4SF): New.
26536 (ST_ELEMREV_V4SI): New.
26537 (ST_ELEMREV_V8HI): New.
26538 (ST_ELEMREV_V16QI): New.
26539 (XL): New.
26540 (XST): New.
26541 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26542 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
26543 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
26544 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
26545 (altivec_expand_builtin): Add handling for
26546 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
26547 (rs6000_invalid_builtin): Add error-checking for
26548 RS6000_BTM_P9_VECTOR.
26549 (altivec_init_builtins): Define builtins used to implement vec_xl
26550 and vec_xst.
26551 (rs6000_builtin_mask_names): Define power9-vector.
26552 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
26553 (RS6000_BTM_P9_VECTOR): Define.
26554 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
26555 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
26556 (vsx_ld_elemrev_v2df): Likewise.
26557 (vsx_ld_elemrev_v4sf): Likewise.
26558 (vsx_ld_elemrev_v4si): Likewise.
26559 (vsx_ld_elemrev_v8hi): Likewise.
26560 (vsx_ld_elemrev_v16qi): Likewise.
26561 (vsx_st_elemrev_v2df): Likewise.
26562 (vsx_st_elemrev_v2di): Likewise.
26563 (vsx_st_elemrev_v4sf): Likewise.
26564 (vsx_st_elemrev_v4si): Likewise.
26565 (vsx_st_elemrev_v8hi): Likewise.
26566 (vsx_st_elemrev_v16qi): Likewise.
26567 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
26568 grammar.
26569
26570 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
26571
26572 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
26573 out into ...
26574 (simplify_control_stmt_condition_1): ... here. Recurse into
26575 BIT_AND_EXPRs and BIT_IOR_EXPRs.
26576
26577 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
26578
26579 PR target/69810
26580 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
26581 (zero_extendqi<mode>2_dot): Revert earlier conversion from
26582 define_insn_and_split to define_insn.
26583 (zero_extendqi<mode>2_dot2): Same.
26584 (extendqi<mode>2_dot): Same.
26585 (extendqi<mode>2_dot2): Same.
26586
26587 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26588
26589 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
26590 (probe_stack): New expander.
26591 (probe_stack_<mode>): New insn pattern.
26592
26593 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26594
26595 * config/i386/i386.md
26596 (operations with memory inputs setting flags peephole2):
26597 Remove uneeded REG_P checks. Cleanup pattern generation.
26598
26599 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
26600
26601 * tree-vect-loop.c (vect_transform_loop): Fix
26602 nb_iterations_upper_bound computation for vectorized loop.
26603
26604 2016-04-29 Marek Polacek <polacek@redhat.com>
26605 Jakub Jelinek <jakub@redhat.com>
26606
26607 PR sanitizer/70342
26608 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
26609 TARGET_EXPR_SLOT as a base.
26610
26611 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
26612
26613 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
26614 with 'rCm2' constraints to limit possible immediate size.
26615 (*load_zeroextendqisi_update): Likewise.
26616 (*load_signextendqisi_update): Likewise.
26617 (*loadhi_update): Likewise.
26618 (*load_zeroextendhisi_update): Likewise.
26619 (*load_signextendhisi_update): Likewise.
26620 (*loadsi_update): Likewise.
26621 (*loadsf_update): Likewise.
26622
26623 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26624
26625 * config/i386/predicates.md (constm1_operand): Fix comparison.
26626
26627 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26628
26629 * testsuite/gcc.target/arc/ieee_eq.c: New test.
26630
26631 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
26632
26633 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
26634 remaining SH5 related settings.
26635 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
26636 shmedia_prepare_call_address): Delete.
26637 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
26638 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
26639 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
26640 UNSUPPORTED_SH2A): Remove m5 checks.
26641 (sh_divide_strategy_e): Remove SH5 division strategies.
26642 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
26643 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
26644
26645 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
26646
26647 * config/s390/s390.c (s390_rtx_costs): Update documentation.
26648
26649 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26650
26651 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
26652 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
26653 Change lder to ldr.
26654 * config/s390/vector.md ("mov<mode>"): Likewise.
26655
26656 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
26657
26658 * config/s390/constraints.md ("U", "W"): Invoke
26659 s390_mem_constraint with "ZR" and "ZT".
26660 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
26661 addresses when using LRA. Accept also short displacements for S
26662 and T constraints. Do not check for long displacement target for
26663 S and T constraints.
26664 (s390_mem_constraint): Remove handling of U and W constraints.
26665 * config/s390/s390.md (various patterns): Remove the short
26666 displacement constraints (Q and R) if a long displacement
26667 constraint is present. Add longdisp as required CPU capability.
26668 * config/s390/vector.md: Likewise.
26669 * config/s390/vx-builtins.md: Likewise.
26670
26671 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26672
26673 PR target/60040
26674 * reload1.c (reload): Call finish_spills before
26675 restarting reload loop. Skip select_reload_regs
26676 if update_eliminables_and_spill returns true.
26677
26678 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
26679
26680 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
26681 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
26682 (umulhisi3_imm): Update predicates and constraint letters.
26683 (umulhisi3_reg): Declare instruction as commutative.
26684 * config/arc/constraints.md (J12, J16): New constraints.
26685 * config/arc/predicates.md (short_unsigned_const_operand): New
26686 predicate.
26687 (arc_short_operand): Likewise.
26688 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
26689
26690 2016-04-29 Richard Biener <rguenther@suse.de>
26691
26692 PR tree-optimization/13962
26693 PR tree-optimization/65686
26694 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
26695 * tree-ssa-alias.c (ptrs_compare_unequal): New function
26696 using PTA to compare pointers.
26697 * match.pd: Add pattern for pointer equality compare simplification
26698 using ptrs_compare_unequal.
26699
26700 2016-04-29 Richard Biener <rguenther@suse.de>
26701
26702 * stor-layout.c (layout_type): Do not build a pointer-to-element
26703 type for arrays.
26704
26705 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
26706
26707 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
26708 Use SWI mode iterator. Use general_reg_operand predicate.
26709 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
26710 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
26711 predicates.
26712
26713 2016-04-29 Jakub Jelinek <jakub@redhat.com>
26714
26715 PR middle-end/70843
26716 * fold-const.c (operand_equal_p): Don't verify hash value equality
26717 if arg0 == arg1.
26718 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
26719 and OMP_CLAUSE.
26720
26721 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26722
26723 PR target/70858
26724 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
26725 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
26726 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
26727 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
26728 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
26729
26730 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26731
26732 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
26733 to info. Don't initialize separate fields to 0. Clean up
26734 formatting a bit.
26735
26736 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26737
26738 * config/i386/i386.md (peephole2s for operations with memory inputs):
26739 Use SWI mode iterator.
26740 (peephole2s for operations with memory outputs): Ditto.
26741 Do not check for stack checking probe.
26742
26743 (probe_stack): Remove expander.
26744
26745 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26746 Andrew Burgess <andrew.burgess@embecosm.com>
26747
26748 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
26749 operands as 32-bits.
26750
26751 2016-04-28 Jason Merrill <jason@redhat.com>
26752
26753 * gdbinit.in: Skip line-map.h.
26754
26755 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26756 Andrew Burgess <andrew.burgess@embecosm.com>
26757
26758 * config/arc/arc.c (arc_conditional_register_usage): Take
26759 TARGET_RRQ_CLASS into account.
26760 (arc_print_operand): Support printing 'p' and 's' operands.
26761 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
26762 as 0.
26763 (TARGET_RRQ_CLASS): Define.
26764 (IS_POWEROF2_OR_0_P): Define.
26765 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
26766 alternatives.
26767 (*tst_movb): New define_insn.
26768 (*tst): Avoid recognition if it could prevent '*tst_movb'
26769 combination; replace c/CnL with c/Chs alternative.
26770 (*tst_bitfield_tst): New define_insn.
26771 (*tst_bitfield_asr): New define_insn.
26772 (*tst_bitfield): New define_insn.
26773 (andsi3_i): Add Rrq variant.
26774 (extzv): New define_expand.
26775 (insv): New define_expand.
26776 (*insv_i): New define_insn.
26777 (*movb): New define_insn.
26778 (*movb_signed): New define_insn.
26779 (*movb_high): New define_insn.
26780 (*movb_high_signed): New define_insn.
26781 (*movb_high_signed + 1): New define_split pattern.
26782 (*mrgb): New define_insn.
26783 (*mrgb + 1): New define_peephole2 pattern.
26784 (*mrgb + 2): New define_peephole2 pattern.
26785 * config/arc/arc.opt (mbitops): New option for nps400, uses
26786 TARGET_NPS_BITOPS_DEFAULT.
26787 * config/arc/constraints.md (q): Make register class conditional.
26788 (Rrq): New register constraint.
26789 (Chs): New constraint.
26790 (Clo): New constraint.
26791 (Chi): New constraint.
26792 (Cbf): New constraint.
26793 (Cbn): New constraint.
26794 (C18): New constraint.
26795 (Cbi): New constraint.
26796
26797 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26798
26799 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
26800 dst->popcount.
26801 (bitmap_intersection_of_preds): Ditto.
26802 (bitmap_union_of_succs): Ditto.
26803 (bitmap_union_of_preds): Ditto.
26804 * sbitmap.c (do_popcount): Delete.
26805 (BITMAP_DEBUGGING): Delete.
26806 (sbitmap_verify_popcount): Delete.
26807 (sbitmap_alloc): Don't initialize the popcount field.
26808 (sbitmap_alloc_with_popcount): Delete.
26809 (sbitmap_resize): Don't resize the popcount array.
26810 (sbitmap_vector_alloc): Don't initialize the popcount field.
26811 (bitmap_copy): Don't copy the popcount array.
26812 (bitmap_clear): Don't clear the popcount array.
26813 (bitmap_clear): Delete the popcount array handling.
26814 (bitmap_ior_and_compl): Delete the popcount assert.
26815 (bitmap_not): Ditto.
26816 (bitmap_and_compl): Ditto.
26817 (bitmap_and): Delete the popcount array handling.
26818 (bitmap_xor): Ditto.
26819 (bitmap_ior): Ditto.
26820 (bitmap_or_and): Delete the popcount assert.
26821 (bitmap_and_or): Ditto.
26822 (popcount_table): Delete.
26823 (sbitmap_elt_popcount): Delete.
26824 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
26825 (bitmap_set_bit): Delete the popcount assert.
26826 (bitmap_clear_bit): Ditto.
26827 (sbitmap_free): Don't free the popcount array.
26828 (sbitmap_alloc_with_popcount): Delete declaration.
26829 (sbitmap_popcount): Ditto.
26830
26831 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26832 Andrew Burgess <andrew.burgess@embecosm.com>
26833
26834 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
26835 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
26836 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
26837 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
26838 * config/arc/arc.opt (mcmem): New option.
26839 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
26840 supply length for r/m alternative.
26841 (*extendqisi2_ac): Likewise.
26842 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
26843 r/Uex alternative.
26844 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
26845 (movhi_insn): Likewise.
26846 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
26847 (*zero_extendqihi2_i): Add r/Ucm alternative.
26848 (*zero_extendqisi2_ac): Likewise.
26849 (*zero_extendhisi2_i): Likewise.
26850 * config/arc/constraints.md (Uex): New memory constraint.
26851 (Ucm): New define_constraint.
26852 * config/arc/predicates.md (long_immediate_loadstore_operand):
26853 Return 0 for MEM with cmem_address address.
26854 (cmem_address_0): New predicates.
26855 (cmem_address_1): Likewise.
26856 (cmem_address_2): Likewise.
26857 (cmem_address): Likewise.
26858
26859 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26860
26861 * config/rs6000/rs6000.c (machine_function): Rename
26862 insn_chain_scanned_p to spe_insn_chain_scanned_p.
26863 (rs6000_stack_info): Adjust.
26864
26865 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
26866 Andrew Burgess <andrew.burgess@embecosm.com>
26867
26868 * config/arc/constraints.md (Usd): Convert to define_constraint.
26869 (Us<): Likewise.
26870 (Us>): Likewise.
26871
26872 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26873
26874 PR target/70821
26875 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
26876 Add new peephole2 where the first insn is *mov<mode>_or instead of
26877 *mov<mode>_internal.
26878
26879 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
26880
26881 * tracer.c (bb_seen): Make static.
26882
26883 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
26884
26885 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
26886 support, setup defaults.
26887 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
26888 * config/arc/arc.c (arc_init): Add NPS400 support.
26889 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
26890 (TARGET_ARC700): NPS400 is also an ARC700.
26891 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
26892
26893 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
26894
26895 PR target/70668
26896 * config/nds32/nds32.md (casesi): Don't access the operands array
26897 out of bounds.
26898
26899 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26900
26901 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
26902 (or $-1,reg peephole2): Ditto.
26903 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
26904
26905 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26906
26907 * doc/extend.texi (Common Function Attributes) [optimize]:
26908 Discourage use of the optimize attribute.
26909
26910 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
26911
26912 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
26913 special case builtin.
26914 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26915 ALTIVEC_BUILTIN_VEC_ADDE.
26916 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
26917 support for ALTIVEC_BUILTIN_VEC_ADDE.
26918 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
26919 for __builtin_vec_adde.
26920
26921 2016-04-28 Jakub Jelinek <jakub@redhat.com>
26922
26923 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
26924 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
26925
26926 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26927
26928 PR testsuite/70595
26929 * doc/sourcebuild.texi (Effective-Target Keywords, Other
26930 attributes): Document cilkplus_runtime.
26931
26932 2016-04-28 Martin Jambor <mjambor@suse.cz>
26933
26934 * tree-cfg.c (verify_expr): Verify that local declarations belong to
26935 this function. Call verify_expr on MEM_REFs and bases of other
26936 handled_components.
26937
26938 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26939
26940 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
26941 for WORD_REGISTER_OPERATIONS to runtime check.
26942
26943 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26944
26945 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
26946
26947 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26948
26949 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
26950 big-endian compilation.
26951 * config/arc/arc.md (addf3): Likewise.
26952 (subdf3): Likewise.
26953 (muldf3): Likewise.
26954
26955 2016-04-28 Richard Biener <rguenther@suse.de>
26956
26957 PR tree-optimization/70840
26958 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
26959 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
26960 Mark x * pow(x,c) -> pow(x,c+1) commutative.
26961 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
26962
26963 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26964
26965 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
26966 and explain why in a comment.
26967
26968 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26969
26970 * config/arc/arc.md (cpu_facility): Add fpx variant.
26971 (subdf3): Prohibit use reverse sub when assist operations option
26972 is enabled.
26973 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
26974 instructions only when FPX is enabled.
26975 * testsuite/gcc.target/arc/trsub.c: New test.
26976
26977 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
26978
26979 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
26980 mult_operator when calculating "type" attribute.
26981 (*fop_<mode>_1_i387): Ditto.
26982 (*fop_xf_1_i387): Ditto.
26983 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
26984 Use std::swap to swap operands. Use RTL expressions to generate
26985 converted pattern.
26986
26987 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
26988 Joern Rennecke <joern.rennecke@embecosm.com>
26989
26990 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
26991 declaration.
26992 (emit_pic_move): Remove.
26993 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
26994 * config/arc/arc.c (emit_pic_move): Removed.
26995 (TARGET_HAVE_TLS): Define.
26996 (arc_conditional_register_usage): Test for arc_tp_regno.
26997 (arc_print_operand, arc_print_operand_address): Handle TLS
26998 unspecs.
26999 (arc_needs_pcl_p): New function.
27000 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
27001 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
27002 (arc_raw_symbolic_reference_mentioned_p): Likewise.
27003 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
27004 (arc_legitimize_tls_address): Likewise.
27005 (DTPOFF_ZERO_SYM): Define.
27006 (arc_legitimize_pic_address): Make it static, handle TLS cases.
27007 (arc_output_pic_addr_const): Print TLS unspecs.
27008 (prepare_pic_move): New function, replaces emit_pic_move.
27009 (arc_legitimate_constant_p): Handle TLS unspecs.
27010 (arc_legitimate_address_p): Likewise.
27011 (arc_rewrite_small_data_p): Use assert for TLS constants.
27012 (prepare_move_operands): Use prepare_pic_move.
27013 (arc_legitimize_address): Legitimize tls addresses.
27014 (arc_epilogue_uses): Check for arc_tp_regno.
27015 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
27016 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
27017 Define.
27018 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
27019 Likewise.
27020 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
27021 %(arc_tls_extra_start_spec).
27022 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
27023 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
27024 (EH_USES): Define.
27025 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
27026 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
27027 (UNSPEC_TLS_OFF): Add.
27028 (R10_REG): Define.
27029 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
27030 (get_thread_pointersi): New patterns.
27031 * config/arc/arc.opt (mtp-regno): New option.
27032 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
27033 (move_dest_operand): Likewise.
27034 * configure: Regenerate.
27035 * configure.ac: Add arc*-*-* case to test for tls.
27036 * doc/invoke.texi (ARC options): Document mtp-regno.
27037
27038 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
27039
27040 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
27041 the new ARC HS SIMD instructions.
27042 (arc_preferred_simd_mode): New function.
27043 (arc_autovectorize_vector_sizes): Likewise.
27044 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
27045 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
27046 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
27047 (arc_init_builtins): Add new SIMD builtin types.
27048 (arc_split_move): Handle 64 bit vector moves.
27049 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
27050 (TARGET_PLUS_QMACW): Define.
27051 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
27052 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
27053 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
27054 (VSUBADD4H): New builtins.
27055 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
27056 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
27057
27058 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
27059 Matthias Klose <doko@debian.org>
27060
27061 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
27062
27063 2016-04-28 Richard Biener <rguenther@suse.de>
27064
27065 PR middle-end/70777
27066 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
27067 canonicalization.
27068
27069 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
27070
27071 * common/config/sh/sh-common.c: Remove SH5 support.
27072 * config/sh/constraints.md: Likewise.
27073 * config/sh/config/sh/elf.h: Likewise.
27074 * config/sh/linux.h: Likewise.
27075 * config/sh/netbsd-elf.h: Likewise.
27076 * config/sh/predicates.md: Likewise.
27077 * config/sh/sh-c.c: Likewise.
27078 * config/sh/sh-protos.h: Likewise.
27079 * config/sh/sh.c: Likewise.
27080 * config/sh/sh.h: Likewise.
27081 * config/sh/sh.md: Likewise.
27082 * config/sh/sh.opt: Likewise.
27083 * config/sh/sync.md: Likewise.
27084 * config/sh/sh64.h: Delete.
27085 * config/sh/shmedia.h: Likewise.
27086 * config/sh/shmedia.md: Likewise.
27087 * config/sh/sshmedia.h: Likewise.
27088 * config/sh/t-netbsd-sh5-64: Likewise.
27089 * config/sh/t-sh64: Likewise.
27090 * config/sh/ushmedia.h: Likewise.
27091
27092 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
27093
27094 * config/i386/i386.md (sign_extend to memory peephole2s): Use
27095 general_reg_operand instead of register_operand predicate.
27096
27097 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27098
27099 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
27100
27101 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
27102
27103 * match.pd (A - B > A, A + B < A): New transformations.
27104
27105 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
27106
27107 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
27108 which defaults to true. Emit an outer pair of parentheses only if
27109 EMIT_PARENS. When continuing a chain of && or || (or & or |),
27110 don't emit parentheses for the right-hand operand.
27111
27112 2016-04-27 Jeff Law <law@redhat.com>
27113
27114 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
27115
27116 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27117
27118 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
27119 (altivec_lvx_<mode>_internal): Document.
27120 (altivec_lvx_<mode>_2op): New define_insn.
27121 (altivec_lvx_<mode>_1op): Likewise.
27122 (altivec_lvx_<mode>_2op_si): Likewise.
27123 (altivec_lvx_<mode>_1op_si): Likewise.
27124 (altivec_stvx_<mode>): Remove.
27125 (altivec_stvx_<mode>_internal): Document.
27126 (altivec_stvx_<mode>_2op): New define_insn.
27127 (altivec_stvx_<mode>_1op): Likewise.
27128 (altivec_stvx_<mode>_2op_si): Likewise.
27129 (altivec_stvx_<mode>_1op_si): Likewise.
27130 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27131 Expand vec_ld and vec_st during parsing.
27132 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
27133 changes.
27134 (altivec_expand_stvx_be): Likewise.
27135 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
27136 address-masking behavior in RTL.
27137 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
27138 address-masking behavior in RTL.
27139 (altivec_expand_builtin): Change builtin code arguments for calls
27140 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
27141 (insn_is_swappable_p): Avoid incorrect swap optimization in the
27142 presence of lvx/stvx patterns.
27143 (alignment_with_canonical_addr): New function.
27144 (alignment_mask): Likewise.
27145 (find_alignment_op): Likewise.
27146 (recombine_lvx_pattern): Likewise.
27147 (recombine_stvx_pattern): Likewise.
27148 (recombine_lvx_stvx_patterns): Likewise.
27149 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
27150 stvx patterns from expand.
27151 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
27152 expansions.
27153 (vector_altivec_store_<mode>): Likewise.
27154
27155 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
27156
27157 * config/aarch64/aarch64.md
27158 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
27159 remove the "fp" attributes.
27160 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
27161 add the "simd" attributes.
27162 (*movdf_aarch64): Likewise.
27163 (*movtf_aarch64): Remove the "fp" attributes.
27164 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
27165 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
27166
27167 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27168
27169 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
27170 rtx to rtx_code_label *.
27171 * rtl.h (maybe_set_first_label_num): Likewise.
27172
27173 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27174
27175 * df-core.c (df_add_problem): Make the problem param be const.
27176 (df_remove_problem): Make local "problem" be const.
27177 * df-problems.c (problem_RD): Make const.
27178 (problem_LR): Likewise.
27179 (problem_LIVE): Likewise.
27180 (problem_MIR): Likewise.
27181 (problem_CHAIN): Likewise.
27182 (problem_WORD_LR): Likewise.
27183 (problem_NOTE): Likewise.
27184 (problem_MD): Likewise.
27185 * df-scan.c (problem_SCAN): Likewise.
27186 * df.h (struct df_problem): Make field "dependent_problem" be
27187 const.
27188 (struct dataflow): Likewise for field "problem".
27189 (df_add_problem): Make param const.
27190
27191 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27192
27193 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
27194 inter-unit moves to/from vector registers are enabled. Do not disable
27195 for TARGET_MMX.
27196
27197 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27198
27199 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
27200 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
27201 #define to...
27202 (enum df_problem_id): ...this new enum.
27203 (struct df_problem): Convert field "id" from "int" to
27204 enum df_problem_id.
27205
27206 2016-04-27 David Malcolm <dmalcolm@redhat.com>
27207
27208 * rtl.def: Update comment for "things in the instruction chain" to
27209 reflect the removal of the leading "i" field for INSN_UID in
27210 r210360. Fix bogus apostrophe.
27211
27212 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
27213
27214 * config/i386/i386.md
27215 (lea arith with mem operand + setcc peephole2): Set operator mode.
27216
27217 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
27218
27219 PR target/70155
27220 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
27221 (dimode_scalar_to_vector_candidate_p): This.
27222 (timode_scalar_to_vector_candidate_p): New function.
27223 (scalar_to_vector_candidate_p): Likewise.
27224 (timode_check_non_convertible_regs): Likewise.
27225 (timode_remove_non_convertible_regs): Likewise.
27226 (remove_non_convertible_regs): Likewise.
27227 (remove_non_convertible_regs): Renamed to ...
27228 (dimode_remove_non_convertible_regs): This.
27229 (scalar_chain::~scalar_chain): Make it virtual.
27230 (scalar_chain::compute_convert_gain): Make it pure virtual.
27231 (scalar_chain::mark_dual_mode_def): Likewise.
27232 (scalar_chain::convert_insn): Likewise.
27233 (scalar_chain::convert_registers): Likewise.
27234 (scalar_chain::add_to_queue): Make it protected.
27235 (scalar_chain::emit_conversion_insns): Likewise.
27236 (scalar_chain::replace_with_subreg): Likewise.
27237 (scalar_chain::replace_with_subreg_in_insn): Likewise.
27238 (scalar_chain::convert_op): Likewise.
27239 (scalar_chain::convert_reg): Likewise.
27240 (scalar_chain::make_vector_copies): Likewise.
27241 (scalar_chain::convert_registers): New pure virtual function.
27242 (class dimode_scalar_chain): New class.
27243 (class timode_scalar_chain): Likewise.
27244 (scalar_chain::mark_dual_mode_def): Renamed to ...
27245 (dimode_scalar_chain::mark_dual_mode_def): This.
27246 (timode_scalar_chain::mark_dual_mode_def): New function.
27247 (timode_scalar_chain::convert_insn): Likewise.
27248 (dimode_scalar_chain::convert_registers): Likewise.
27249 (scalar_chain::compute_convert_gain): Renamed to ...
27250 (dimode_scalar_chain::compute_convert_gain): This.
27251 (scalar_chain::replace_with_subreg): Renamed to ...
27252 (dimode_scalar_chain::replace_with_subreg): This.
27253 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
27254 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
27255 (scalar_chain::make_vector_copies): Renamed to ...
27256 (dimode_scalar_chain::make_vector_copies): This.
27257 (scalar_chain::convert_reg): Renamed to ...
27258 (dimode_scalar_chain::convert_reg ): This.
27259 (scalar_chain::convert_op): Renamed to ...
27260 (dimode_scalar_chain::convert_op): This.
27261 (scalar_chain::convert_insn): Renamed to ...
27262 (dimode_scalar_chain::convert_insn): This.
27263 (scalar_chain::convert): Call convert_registers.
27264 (convert_scalars_to_vector): Change to scalar_chain pointer to
27265 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
27266 in 32-bit mode. Delete scalar_chain pointer. Call
27267 free_dominance_info in 64-bit mode.
27268 (pass_stv::gate): Remove TARGET_64BIT check.
27269 (ix86_option_override): Put the 64-bit STV pass before the CSE
27270 pass.
27271
27272 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
27273
27274 * dwarf2out.h (struct dw_loc_descr_node): Remove the
27275 dw_loc_frame_offset field.
27276 * dwarf2out.c (new_loc_descr): Likewise.
27277 (resolve_args_picking_1): Turn the VISITED hash set into a
27278 FRAME_OFFSET hash map. Use it to associate a frame offset to
27279 visited nodes. Remove uses of the CHECKING_P macro.
27280 (resolve_args_picking): Update call to resolve_args_picking_1.
27281
27282 2016-04-27 Martin Liska <mliska@suse.cz>
27283
27284 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
27285 (free_loop_data): Release vuses of groups.
27286
27287 2016-04-27 Bin Cheng <bin.cheng@arm.com>
27288
27289 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
27290 instead of redundant use_id and boolean have_use_for.
27291 (struct iv_use): Change sub_id into group_id. Remove field next.
27292 Move fields: related_cands, n_map_members, cost_map and selected
27293 to ...
27294 (struct iv_group): ... here. New structure.
27295 (struct iv_common_cand): Use structure declaration directly.
27296 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
27297 (MAX_CONSIDERED_USES): Rename macro to ...
27298 (MAX_CONSIDERED_GROUPS): ... here.
27299 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
27300 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
27301 (dump_uses): Rename to ...
27302 (dump_groups): ... here. Update all uses.
27303 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
27304 (find_induction_variables): Refactor format of dump information.
27305 (record_sub_use): Delete.
27306 (record_use): Update all uses.
27307 (record_group): New function.
27308 (record_group_use, find_interesting_uses_op): Call above functions.
27309 Update all uses.
27310 (find_interesting_uses_cond): Ditto.
27311 (group_compare_offset): New function.
27312 (split_all_small_groups): Rename to ...
27313 (split_small_address_groups_p): ... here. Update all uses.
27314 (split_address_groups): Update all uses.
27315 (find_interesting_uses): Refactor format of dump information.
27316 (add_candidate_1): Update all uses. Remove redundant check on iv,
27317 base and step.
27318 (add_candidate, record_common_cand): Remove redundant assert.
27319 (add_iv_candidate_for_biv): Update use.
27320 (add_iv_candidate_derived_from_uses): Update all uses.
27321 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
27322 (alloc_use_cost_map): Ditto.
27323 (set_use_iv_cost, get_use_iv_cost): Rename to ...
27324 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
27325 (determine_use_iv_cost_generic): Ditto.
27326 (determine_group_iv_cost_generic): Ditto.
27327 (determine_use_iv_cost_address): Ditto.
27328 (determine_group_iv_cost_address): Ditto.
27329 (determine_use_iv_cost_condition): Ditto.
27330 (determine_group_iv_cost_cond): Ditto.
27331 (determine_use_iv_cost): Ditto.
27332 (determine_group_iv_cost): Ditto.
27333 (set_autoinc_for_original_candidates): Update all uses.
27334 (find_iv_candidates): Update all uses. Refactor dump information.
27335 (determine_use_iv_costs): Ditto.
27336 (determine_iv_costs): Ditto.
27337 (iv_ca_cand_for_use): Rename to ...
27338 (iv_ca_cand_for_group): ... here. Update all uses.
27339 (iv_ca_add_use, iv_ca_add_group): Ditto.
27340 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
27341 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
27342 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
27343 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
27344 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
27345 (create_new_iv, adjust_iv_update_pos): Ditto.
27346 (rewrite_use_address): Delete.
27347 (rewrite_use_address_1): Rename to ...
27348 (rewrite_use_address): ... here.
27349 (rewrite_use_compare): Update all uses.
27350 (rewrite_use): Delete.
27351 (rewrite_uses): Rename to ...
27352 (rewrite_groups): ... here. Update all uses.
27353 (remove_unused_ivs, free_loop_data): Update all uses.
27354 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
27355
27356 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27357
27358 * rtlanal.c (nonzero_bits1): Convert preprocessor check
27359 for WORD_REGISTER_OPERATIONS to runtime check.
27360
27361 2016-04-27 Richard Biener <rguenther@suse.de>
27362
27363 PR ipa/70760
27364 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
27365 aggregate_value_p to determine if a function result is
27366 returned by reference.
27367 (ipa_pta_execute): Functions having their address taken are
27368 not automatically nonlocal.
27369
27370 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27371
27372 PR sanitizer/70683
27373 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
27374 * fold-const.c (operand_equal_p): If flag_checking and
27375 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
27376 and if it returns non-zero, assert iterative_hash_expr on both
27377 args is the same.
27378
27379 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27380
27381 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
27382
27383 2016-04-27 Nick Clifton <nickc@redhat.com>
27384
27385 PR middle-end/49889
27386 * varasm.c (merge_weak): Generate an error if an attempt is made
27387 to convert a non-weak static function into a weak, public function.
27388
27389 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27390
27391 * params.def (MAX_PARTITION_SIZE): New param.
27392 * doc/invoke.texi: Document lto-max-partition.
27393
27394 2016-04-27 Richard Biener <rguenther@suse.de>
27395
27396 PR ipa/70785
27397 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
27398 function cummulating used_from_other_partition, externally_visible
27399 and force_output from aliases.
27400 (refered_from_nonlocal_var): Likewise.
27401 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
27402 node flags properly.
27403
27404 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
27405
27406 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
27407 (-Wmemset-elt-size): New item.
27408
27409 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
27410
27411 PR ada/70759
27412 * stor-layout.h (internal_reference_types): Delete.
27413 * stor-layout.c (reference_types_internal): Likewise.
27414 (internal_reference_types): Likewise.
27415 (layout_type) <REFERENCE_TYPE>: Adjust.
27416
27417 2016-04-27 Jakub Jelinek <jakub@redhat.com>
27418
27419 PR sanitizer/70683
27420 * tree.h (inchash::add_expr): Add FLAGS argument.
27421 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
27422 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
27423 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
27424 Formatting fix. Adjust recursive calls. For tcc_comparison,
27425 if swap_tree_comparison (code) is smaller than code, hash that
27426 and arguments in the other order. Hash CONVERT_EXPR the same
27427 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
27428 of ADDR_EXPR of decl as the decl itself. Add or remove
27429 OEP_ADDRESS_OF from recursive flags as needed. For
27430 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
27431 operands commutatively and only the third one normally.
27432 For internal CALL_EXPR hash in CALL_EXPR_IFN.
27433
27434 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
27435
27436 * config/rtems.h (LIB_SPEC): Add -latomic.
27437
27438 2016-04-27 Joel Sherrill <joel@rtems.org>
27439
27440 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
27441 xilink.ld and flags not relevant to RTEMS.
27442
27443 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27444
27445 * toplev.c (backend_init_target): Avoid calling init_reload when using
27446 LRA.
27447
27448 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27449
27450 * reorg.c (try_merge_delay_insns): Declare i and j inside the
27451 for loops rather than one for the whole function.
27452
27453 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27454
27455 * match.pd (X + CST CMP X): New transformation.
27456
27457 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
27458
27459 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
27460 * fold-const.c (fold_binary_loc): Remove 2 transformations
27461 superseded by match.pd.
27462 * match.pd (x+x -> x*2): Generalize to integers.
27463
27464 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
27465
27466 * config/i386/i386.md (operation on memory peephole): Duplicate an
27467 existing peephole and adapt it to match lea rather than an operation
27468 that clobbers CC.
27469
27470 PR rtl-optimization/57193
27471 * opts.c (default_options_table): Add OPT_frename_registers at -O2
27472 and above.
27473 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
27474
27475 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27476
27477 * tree-if-conv.c (any_pred_load_store): New static variable.
27478 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
27479 any_pred_load_store instead of and_mask_load_store.
27480 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
27481 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
27482 (combine_blocks, tree_if_conversion): Ditto.
27483
27484 2016-04-26 Bin Cheng <bin.cheng@arm.com>
27485
27486 PR tree-optimization/70771
27487 PR tree-optimization/70775
27488 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
27489 virtual PHI nodes. Delete parameter.
27490 (if_convertible_loop_p_1): Delete argument to above function.
27491 (predicate_all_scalar_phis): Delete code handling single-argument
27492 PHIs.
27493 (tree_if_conversion): Mark and update virtual SSA.
27494
27495 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27496
27497 PR target/61821
27498 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
27499 (x86_elf_aligned_common): Rename to ...
27500 (x86_elf_aligned_decl_common): ... this.
27501 Add decl arg. Switch to .lbss for largecomm object. Use
27502 LARGECOMM_SECTION_ASM_OP.
27503 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
27504 renaming.
27505 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
27506 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
27507 Pass new decl arg.
27508 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
27509 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
27510
27511 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27512
27513 PR target/59407
27514 * config/i386/i386.c (SECTION_LARGE): Define.
27515 (x86_64_elf_select_section): Set it for large data/bss sections.
27516 Only clear SECTION_WRITE for .lrodata.
27517 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
27518 data/bss sections.
27519 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
27520 * varasm.c (default_elf_asm_named_section): Grow flagchars.
27521 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
27522 SECTION_MACH_DEP.
27523 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
27524 * doc/tm.texi: Regenerate.
27525
27526 2016-04-26 Jakub Jelinek <jakub@redhat.com>
27527
27528 PR bootstrap/70704
27529 * configure.ac (--enable-checking): Document extra flag, for
27530 non-release builds default to --enable-checking=yes,extra.
27531 If misc checking and extra checking, define CHECKING_P to 2 instead
27532 of 1.
27533 * common.opt (fchecking=): Add.
27534 * doc/invoke.texi (-fchecking=): Document.
27535 * doc/install.texi: Document --enable-checking changes.
27536 * configure: Regenerated.
27537 * config.in: Regenerated.
27538
27539 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27540
27541 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
27542 attribute instead of which_alternative.
27543 * config/i386/sse.md (*mov<mode>_internal): Ditto.
27544 Use EXT_REX_SSE_REG_P where appropriate.
27545
27546 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27547
27548 * config/i386/predicates.md (const0_operand): Do not match
27549 const_wide_int code.
27550 (const1_operand): Ditto.
27551
27552 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27553
27554 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
27555 for SSE constm1 operands and TARGET_AVX512VL.
27556 (*movti_internal): Ditto.
27557 (*mov<mode>_or): Use constm1_operand predicate.
27558 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
27559 for SSE vector_all_ones operands and TARGET_AVX512VL.
27560 * config/i386/predicates.md (constm1_operand): New predicate.
27561 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
27562 emission of constant -1 load.
27563
27564 2016-04-25 Jason Merrill <jason@redhat.com>
27565
27566 * gdbinit.in: Skip is-a.h.
27567
27568 * attribs.c (register_scoped_attributes): Fix logic.
27569 * attribs.h: Declare register_scoped_attributes.
27570
27571 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27572
27573 * config/rs6000/rs6000-builtin.def: Correct pasto error for
27574 stxvd2x and stxvw4x built-in functions.
27575
27576 2016-04-25 DJ Delorie <dj@redhat.com>
27577
27578 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
27579 (ashrhi3): Likewise.
27580 (lshrhi3): Likewise.
27581
27582 2016-04-25 Richard Biener <rguenther@suse.de>
27583
27584 PR tree-optimization/70780
27585 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
27586 wasn't visited yet.
27587 (compute_antic): Mark blocks with abnormal preds as visited as
27588 they have a final empty antic-in solution already.
27589
27590 2016-04-25 Michael Collison <michael.collison@linaro.org>
27591
27592 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
27593
27594 2016-04-25 Michael Collison <michael.collison@linaro.org>
27595
27596 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
27597 mode is VQI to improve mixed mode vectorization.
27598 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
27599 define_insn to match low half of signed vaddw.
27600 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
27601 define_insn to match high half of signed vaddw.
27602 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
27603 define_insn to match low half of unsigned vaddw.
27604 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
27605 define_insn to match high half of unsigned vaddw.
27606 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
27607 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27608 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
27609 for new function.
27610 (arm_simd_check_vect_par_cnst_half_p): Likewise.
27611 * config/arm/predicates.md (vect_par_constant_high): Support
27612 big endian and simplify by calling
27613 arm_simd_check_vect_par_cnst_half
27614 (vect_par_constant_low): Likewise.
27615
27616 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
27617
27618 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
27619 predicate for operand 2.
27620
27621 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
27622 H.J. Lu <hongjiu.lu@intel.com>
27623
27624 * config/i386/i386-protos.h (standard_sse_constant_p): Add
27625 machine_mode argument.
27626 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
27627 constm1_rtx operands. For VOIDmode constants, get mode from
27628 pred_mode. Check mode size if the mode is supported by ABI.
27629 (standard_sse_constant_opcode): Do not use standard_constant_p.
27630 Strictly check ABI support for all-ones operands.
27631 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
27632 immediates. Update calls to standard_sse_constant_p.
27633 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
27634 (ix86_rtx_costs): Ditto.
27635 * config/i386/i386.md (*movxi_internal_avx512f): Use
27636 nonimmediate_or_sse_const_operand instead of vector_move_operand.
27637 Use (v,BC) alternative instead of (v,C). Use register_operand
27638 checks instead of MEM_P.
27639 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
27640 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
27641 isa attribute. Use register_operand checks instead of MEM_P.
27642 (*movti_internal): Use nonimmediate_or_sse_const_operand for
27643 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
27644 alternative and corresponding sse2 isa attribute.
27645 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
27646 to standard_sse_constant_p.
27647 (FP constant splitters): Ditto.
27648 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
27649 (C): Ditto.
27650 * config/i386/predicates.md (constm1_operand): Remove.
27651 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
27652 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
27653 vector_all_ones_operand instead of constm1_operand.
27654
27655 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27656
27657 * print-rtl.c (print_rtx_insn_vec): New function.
27658 * print-rtl.h: New prototype.
27659 * store-motion.c (struct st_expr): Make avail_stores a vector.
27660 (st_expr_entry): Adjust.
27661 (free_st_expr_entry): Likewise.
27662 (print_store_motion_mems): Likewise.
27663 (find_moveable_store): Likewise.
27664 (compute_store_table): Likewise.
27665 (delete_store): Likewise.
27666 (build_store_vectors): Likewise.
27667
27668 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27669
27670 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
27671
27672 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27673
27674 * vec.h (vec_safe_contains): New function.
27675 (vec::contains): Likewise.
27676 (vec::begin): Likewise.
27677 (vec::end): Likewise.
27678
27679 2016-04-23 Jakub Jelinek <jakub@redhat.com>
27680
27681 PR sanitizer/70712
27682 * cfgexpand.c (expand_stack_vars): Fix typo.
27683
27684 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27685
27686 * system.h (list, map, set, vector): Include conditionally.
27687 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
27688 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
27689 * ipa-icf.c (INCLUDE_LIST): Define.
27690 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27691 * config/sh/sh.c (INCLUDE_VECTOR): Define.
27692 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
27693 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
27694 * cp/logic.cc (INCLUDE_LIST): Define.
27695 * fortran/trans-common.c (INCLUDE_MAP): Define.
27696
27697 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27698
27699 * auto-profile.c: Remove <string.h> include.
27700 * ipa-icf-gimple.c: Remove <list> include.
27701 * diagnostic.c: Remove <new> include.
27702 * genmatch.c: Likewise.
27703 * pretty-print.c: Likewise.
27704 * toplev.c: Likewise
27705 * c/c-objc-common.c: Likewise.
27706 * cp/error.c: Likewise.
27707 * fortran/error.c: Likewise.
27708
27709 2016-04-22 Richard Biener <rguenther@suse.de>
27710
27711 * lto-streamer-in.c (input_ssa_names): Do not allocate
27712 GIMPLE_NOP for all SSA names.
27713 * lto-streamer-out.c (output_ssa_names): Do not output
27714 SSA names that should have been released.
27715
27716 2016-04-22 Richard Biener <rguenther@suse.de>
27717
27718 PR tree-optimization/70740
27719 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
27720 VDEF.
27721
27722 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
27723
27724 PR target/70750
27725 * config/i386/predicates.md (call_insn_operand): Replace
27726 sibcall_memory_operand with memory_operand.
27727
27728 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
27729
27730 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
27731 has_single_use() tests.
27732 (register_edge_assert_for_1): Likewise.
27733 (find_assert_locations_1): Check the liveness bitmap instead of
27734 checking has_single_use().
27735
27736 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
27737
27738 PR target/70728
27739 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
27740 Extract AVX-512BW constraint from AVX.
27741
27742 2016-04-21 Richard Biener <rguenther@suse.de>
27743
27744 PR tree-optimization/70725
27745 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
27746 for phi_convertible_by_degenerating_args.
27747 (predicate_all_scalar_phis): Handle single-argument PHIs.
27748
27749 2016-04-21 Richard Biener <rguenther@suse.de>
27750
27751 PR middle-end/70747
27752 * fold-const.c (fold_comparison): Return properly typed
27753 constant boolean.
27754
27755 2016-04-21 Bin Cheng <bin.cheng@arm.com>
27756
27757 PR tree-optimization/70715
27758 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
27759 after expanding BASE using expand_simple_operations.
27760
27761 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27762
27763 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
27764 New transformations.
27765
27766 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
27767
27768 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
27769
27770 2016-04-20 Jan Hubicka <jh@suse.cz>
27771
27772 * ipa-inline.c (can_inline_edge_p): Pass caller info to
27773 ultiimate_alias_target.
27774 (update_callee_keys): Likewise.
27775 (lookup_recursive_calls): Likewise.
27776 (speculation_useful_p): Likewise.
27777
27778 2016-04-20 Jan Hubicka <jh@suse.cz>
27779
27780 PR ipa/70018
27781 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
27782 (set_nothrow_flag_1): ... this; handle interposition correctly;
27783 recurse on aliases and thunks.
27784 (cgraph_node::set_nothrow_flag): New.
27785 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
27786 functions compiled with non-call exceptions that binds to current
27787 def.
27788 (propagate_nothrow): Be safe WRT interposition.
27789 * cgraph.h (set_nothrow_flag): Update prototype.
27790
27791 2016-04-18 Jan Hubicka <jh@suse.cz>
27792
27793 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27794 max_loop_iterations_int.
27795 (tree_unswitch_outer_loop): Likewise.
27796
27797 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27798
27799 PR tree-optimization/69489
27800 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
27801 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
27802 Revise dump message.
27803 (if_convertible_bb_p): Remove check on edge count of basic block's
27804 predecessors.
27805
27806 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27807
27808 PR tree-optimization/56625
27809 PR tree-optimization/69489
27810 * tree-data-ref.h (DR_INNERMOST): New macro.
27811 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
27812 hashing struct innermost_loop_behavior.
27813 (ref_DR_map): Remove.
27814 (innermost_DR_map): New map.
27815 (baseref_DR_map): Revise comment.
27816 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
27817 to innermost_DR_map accroding to its innermost loop behavior.
27818 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
27819 to its innermost loop behavior.
27820 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
27821 Add initialization for innermost_DR_map. Record memory reference
27822 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
27823 have innermost loop behavior.
27824 (if_convertible_loop_p): Remove release for ref_DR_map. Release
27825 innermost_DR_map.
27826
27827 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
27828
27829 * config/i386/i386.md (*lea<mode>_general_1): Rename from
27830 *lea_general_1. Use explicit SWI12 mode interator.
27831 (*lea<mode>_general_2): Rename from *lea_general_2.
27832 Use explicit SWI12 mode interator.
27833 (*lea<mode>_general_3): Rename from *lea_general_3.
27834 Use explicit SWI12 mode interator.
27835 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
27836 Use explicit SWI12 mode interator.
27837 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
27838 Use explicit SWI48 mode interator.
27839
27840 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27841
27842 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
27843 Short-cut unaligned load and store cases. Handle all integer
27844 vector modes.
27845 (ix86_expand_vector_move_misalign): Short-cut unaligned load
27846 and store cases. Call ix86_avx256_split_vector_move_misalign
27847 directly without checking mode class.
27848
27849 2016-04-20 Andrew Pinski <apinski@cavium.com>
27850 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27851
27852 PR target/64971
27853 * config/aarch64/aarch64.md (sibcall): Force call
27854 address to be DImode for ILP32.
27855 (sibcall_value): Likewise.
27856
27857 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
27858
27859 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
27860
27861 2016-04-20 Richard Biener <rguenther@suse.de>
27862
27863 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
27864 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
27865 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
27866 (maybe_push_res_to_seq): Adjust.
27867 * gimple-fold.c (maybe_build_generic_op): Likewise.
27868
27869 2016-04-20 Marek Polacek <polacek@redhat.com>
27870
27871 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
27872 rather than true.
27873
27874 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
27875
27876 * config/i386/sse.md (vec_unpacks_lo_hi): Always
27877 use kmovw to support AVX512F target.
27878
27879 2016-04-20 Bin Cheng <bin.cheng@arm.com>
27880
27881 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
27882
27883 2016-04-20 Marek Polacek <polacek@redhat.com>
27884
27885 PR tree-optimization/70725
27886 * tree-if-conv.c (is_false_predicate): New function.
27887 (predicate_mem_writes): Use it.
27888
27889 2016-04-20 Richard Biener <rguenther@suse.de>
27890
27891 PR tree-optimization/70726
27892 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
27893 shift amounts from a pattern stmt operand.
27894
27895 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27896
27897 PR target/70674
27898 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
27899 stack_restore_from_fpr pattern when restoring r15.
27900 (s390_optimize_prologue): Strip away the memory barrier in the
27901 parallel when trying to get rid of restore insns.
27902 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
27903 definition for loading the stack pointer from an FPR. Compared to
27904 the normal move insn this pattern includes a full memory barrier.
27905
27906 2016-04-19 Jakub Jelinek <jakub@redhat.com>
27907
27908 PR middle-end/70680
27909 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
27910 implicitly linear or lastprivate iterator on the outer context.
27911
27912 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27913
27914 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
27915 alignment check.
27916 * config/i386/i386.md (ssememalign): Removed.
27917 * config/i386/sse.md: Remove ssememalign attribute from patterns.
27918
27919 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
27920
27921 PR target/69201
27922 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
27923 const short * to __builtin_ia32_loaddquhi512_mask.
27924 (_mm512_maskz_loadu_epi16): Likewise.
27925 (_mm512_mask_storeu_epi16): Pass short * to
27926 __builtin_ia32_storedquhi512_mask.
27927 (_mm512_mask_loadu_epi8): Pass const char * to
27928 __builtin_ia32_loaddquqi512_mask.
27929 (_mm512_maskz_loadu_epi8): Likewise.
27930 (_mm512_mask_storeu_epi8): Pass char * to
27931 __builtin_ia32_storedquqi512_mask.
27932 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
27933 const double * to __builtin_ia32_loadupd512_mask.
27934 (_mm512_mask_loadu_pd): Likewise.
27935 (_mm512_maskz_loadu_pd): Likewise.
27936 (_mm512_storeu_pd): Pass double * to
27937 __builtin_ia32_storeupd512_mask.
27938 (_mm512_mask_storeu_pd): Likewise.
27939 (_mm512_loadu_ps): Pass const float * to
27940 __builtin_ia32_loadups512_mask.
27941 (_mm512_mask_loadu_ps): Likewise.
27942 (_mm512_maskz_loadu_ps): Likewise.
27943 (_mm512_storeu_ps): Pass float * to
27944 __builtin_ia32_storeups512_mask.
27945 (_mm512_mask_storeu_ps): Likewise.
27946 (_mm512_mask_loadu_epi64): Pass const long long * to
27947 __builtin_ia32_loaddqudi512_mask.
27948 (_mm512_maskz_loadu_epi64): Likewise.
27949 (_mm512_mask_storeu_epi64): Pass long long *
27950 to __builtin_ia32_storedqudi512_mask.
27951 (_mm512_loadu_si512): Pass const int * to
27952 __builtin_ia32_loaddqusi512_mask.
27953 (_mm512_mask_loadu_epi32): Likewise.
27954 (_mm512_maskz_loadu_epi32): Likewise.
27955 (_mm512_storeu_si512): Pass int * to
27956 __builtin_ia32_storedqusi512_mask.
27957 (_mm512_mask_storeu_epi32): Likewise.
27958 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
27959 char * to __builtin_ia32_storedquqi256_mask.
27960 (_mm_mask_storeu_epi8): Likewise.
27961 (_mm256_mask_loadu_epi16): Pass const short * to
27962 __builtin_ia32_loaddquhi256_mask.
27963 (_mm256_maskz_loadu_epi16): Likewise.
27964 (_mm_mask_loadu_epi16): Pass const short * to
27965 __builtin_ia32_loaddquhi128_mask.
27966 (_mm_maskz_loadu_epi16): Likewise.
27967 (_mm256_mask_loadu_epi8): Pass const char * to
27968 __builtin_ia32_loaddquqi256_mask.
27969 (_mm256_maskz_loadu_epi8): Likewise.
27970 (_mm_mask_loadu_epi8): Pass const char * to
27971 __builtin_ia32_loaddquqi128_mask.
27972 (_mm_maskz_loadu_epi8): Likewise.
27973 (_mm256_mask_storeu_epi16): Pass short * to.
27974 __builtin_ia32_storedquhi256_mask.
27975 (_mm_mask_storeu_epi16): Pass short * to.
27976 __builtin_ia32_storedquhi128_mask.
27977 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
27978 const double * to __builtin_ia32_loadupd256_mask.
27979 (_mm256_maskz_loadu_pd): Likewise.
27980 (_mm_mask_loadu_pd): Pass onst double * to
27981 __builtin_ia32_loadupd128_mask.
27982 (_mm_maskz_loadu_pd): Likewise.
27983 (_mm256_mask_storeu_pd): Pass double * to
27984 __builtin_ia32_storeupd256_mask.
27985 (_mm_mask_storeu_pd): Pass double * to
27986 __builtin_ia32_storeupd128_mask.
27987 (_mm256_mask_loadu_ps): Pass const float * to
27988 __builtin_ia32_loadups256_mask.
27989 (_mm256_maskz_loadu_ps): Likewise.
27990 (_mm_mask_loadu_ps): Pass const float * to
27991 __builtin_ia32_loadups128_mask.
27992 (_mm_maskz_loadu_ps): Likewise.
27993 (_mm256_mask_storeu_ps): Pass float * to
27994 __builtin_ia32_storeups256_mask.
27995 (_mm_mask_storeu_ps): ass float * to
27996 __builtin_ia32_storeups128_mask.
27997 (_mm256_mask_loadu_epi64): Pass const long long * to
27998 __builtin_ia32_loaddqudi256_mask.
27999 (_mm256_maskz_loadu_epi64): Likewise.
28000 (_mm_mask_loadu_epi64): Pass const long long * to
28001 __builtin_ia32_loaddqudi128_mask.
28002 (_mm_maskz_loadu_epi64): Likewise.
28003 (_mm256_mask_storeu_epi64): Pass long long * to
28004 __builtin_ia32_storedqudi256_mask.
28005 (_mm_mask_storeu_epi64): Pass long long * to
28006 __builtin_ia32_storedqudi128_mask.
28007 (_mm256_mask_loadu_epi32): Pass const int * to
28008 __builtin_ia32_loaddqusi256_mask.
28009 (_mm256_maskz_loadu_epi32): Likewise.
28010 (_mm_mask_loadu_epi32): Pass const int * to
28011 __builtin_ia32_loaddqusi128_mask.
28012 (_mm_maskz_loadu_epi32): Likewise.
28013 (_mm256_mask_storeu_epi32): Pass int * to
28014 __builtin_ia32_storedqusi256_mask.
28015 (_mm_mask_storeu_epi32): Pass int * to
28016 __builtin_ia32_storedqusi128_mask.
28017 * config/i386/i386-builtin-types.def (PCSHORT): New.
28018 (PINT64): Likewise.
28019 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
28020 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
28021 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
28022 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
28023 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
28024 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
28025 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
28026 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
28027 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
28028 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
28029 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
28030 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
28031 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
28032 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
28033 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
28034 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
28035 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
28036 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
28037 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
28038 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
28039 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
28040 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
28041 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
28042 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
28043 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
28044 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
28045 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
28046 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
28047 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
28048 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
28049 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
28050 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
28051 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
28052 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
28053 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
28054 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
28055 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
28056 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
28057 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
28058 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
28059 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
28060 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
28061 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
28062 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
28063 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
28064 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
28065 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
28066 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
28067 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
28068 use UNSPEC_STOREU.
28069 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
28070 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
28071 load nor store.
28072 (ix86_expand_vector_move_misalign): Likewise.
28073 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
28074 to scalar function prototype for unaligned load/store builtins.
28075 (ix86_expand_special_args_builtin): Updated.
28076 * config/i386/sse.md (UNSPEC_LOADU): Removed.
28077 (UNSPEC_STOREU): Likewise.
28078 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
28079 (VI_ULOADSTORE_F_AVX512VL): Likewise.
28080 (ssescalarsize): Handle V4TI, V2TI and V1TI.
28081 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28082 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
28083 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
28084 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
28085 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
28086 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
28087 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
28088 (<avx512>_storedqu<mode>_mask): Likewise.
28089 (*sse4_2_pcmpestr_unaligned): Likewise.
28090 (*sse4_2_pcmpistr_unaligned): Likewise.
28091 (*mov<mode>_internal): Renamed to ...
28092 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
28093 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
28094 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
28095 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
28096
28097 2016-04-19 Richard Biener <rguenther@suse.de>
28098
28099 PR tree-optimization/70171
28100 * tree-ssa-phiprop.c: Include stor-layout.h.
28101 (phiprop_insert_phi): Handle the aggregate copy case.
28102 (propagate_with_phi): Likewise.
28103
28104 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
28105
28106 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
28107 instead of simplify_gen_subreg (... , 0).
28108 (ix86_delegitimize_address): Ditto.
28109 (ix86_split_divmod): Ditto.
28110 (ix86_split_copysign_const): Ditto.
28111 (ix86_split_copysign_var): Ditto.
28112 (ix86_expand_args_builtin): Ditto.
28113 (ix86_expand_round_builtin): Ditto.
28114 (ix86_expand_special_args_builtin): Ditto.
28115 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
28116 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
28117 (udivmodqi4): Ditto.
28118 (absneg splitters): Ditto.
28119 (*jcc_bt<mode>_1): Ditto.
28120
28121 2016-04-19 Richard Biener <rguenther@suse.de>
28122
28123 PR tree-optimization/70724
28124 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
28125 restoring out from ...
28126 (free_scc_vn): ... here.
28127 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
28128 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
28129 tail merging.
28130 (pass_fre::execute): Restore SSA info.
28131
28132 2016-04-19 Richard Biener <rguenther@suse.de>
28133
28134 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
28135 * gimple-walk.c (walk_gimple_op): Initialize it.
28136 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
28137 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
28138 remapping SSA names of defs.
28139 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
28140 adjustment.
28141
28142 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
28143
28144 PR middle-end/70689
28145 * lra-constraints.c (equiv_substition_p): New.
28146 (process_alt_operands): Use it.
28147 (swap_operands): Swap it.
28148 (curr_insn_transform): Update it.
28149
28150 2016-04-18 Michael Matz <matz@suse.de>
28151
28152 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
28153 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
28154 * tree-core.h (tree_type_common.align): Use bit-field.
28155 (tree_type_common.spare): New.
28156 (tree_decl_common.off_align): Make smaller.
28157 (tree_decl_common.align): Use bit-field.
28158
28159 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
28160 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
28161 (scan_sharing_clauses): Ditto.
28162 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28163 (omp_finish_file): Ditto.
28164 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
28165 (layout_decl): Ditto.
28166 (relayout_decl): Ditto.
28167 (finalize_record_size): Use SET_TYPE_ALIGN.
28168 (finalize_type_size): Ditto.
28169 (finish_builtin_struct): Ditto.
28170 (layout_type): Ditto.
28171 (initialize_sizetypes): Ditto.
28172 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
28173 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
28174 (lookup_field_for_decl): Use SET_DECL_ALIGN.
28175 (get_chain_field): Ditto.
28176 (get_trampoline_type): Ditto.
28177 (get_nl_goto_field): Ditto.
28178 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
28179 SET_DECL_ALIGN.
28180 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
28181 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
28182 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
28183 (build_qualified_type): Use SET_TYPE_ALIGN.
28184 (build_aligned_type, build_range_type_1): Ditto.
28185 (build_atomic_base): Ditto.
28186 (build_common_tree_nodes): Ditto.
28187 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
28188 (expand_one_stack_var_at): Ditto.
28189 * coverage.c (build_var): Use SET_DECL_ALIGN.
28190 * except.c (init_eh): Ditto.
28191 * function.c (assign_parm_setup_block): Ditto.
28192 * symtab.c (increase_alignment_1): Ditto.
28193 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
28194 * tree-vect-stmts.c (ensure_base_align): Ditto.
28195 * varasm.c (align_variable): Ditto.
28196 (assemble_variable): Ditto.
28197 (build_constant_desc): Ditto.
28198 (output_constant_def_contents): Ditto.
28199
28200 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
28201 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
28202 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
28203 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
28204 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
28205
28206 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
28207
28208 PR target/70708
28209 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
28210 replace %vmovsd with "%vmovq".
28211 (vec_concatv2df): Likewise.
28212
28213 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
28214
28215 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
28216 (*vec_extractv2si_0): Ditto.
28217 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
28218 (zero_extended_scalar_load_operand splitters): Ditto.
28219 (vec_extract splitters): Ditto.
28220 (*vec_extractv4si_0_zext): Ditto.
28221 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
28222 and lowpart_subreg.
28223 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
28224 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
28225 (*sse4_1_extractps): Use lowpart_subreg.
28226 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
28227
28228 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28229
28230 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
28231 gld requirements.
28232 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
28233 Mention Solaris 11 packaging changes.
28234 Update gas and gld requirements.
28235 Remove reference to pre-Solaris 10 bug.
28236 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
28237 systems and bugs.
28238 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
28239 with cc.
28240
28241 2016-04-17 Jan Hubicka <jh@suse.cz>
28242
28243 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
28244 max_loop_iterations_int.
28245
28246 2016-04-18 Richard Biener <rguenther@suse.de>
28247
28248 PR tree-optimization/43434
28249 * tree-ssa-structalias.c (struct vls_data): New.
28250 (visit_loadstore): Handle all pointer-based accesses.
28251 (compute_dependence_clique): Compute a bitmap of restrict tags
28252 assigned bases and pass it to visit_loadstore.
28253
28254 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
28255
28256 PR target/70711
28257 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
28258 armv8.1-a and armv8.1-a+crc.
28259
28260 2016-04-18 Richard Biener <rguenther@suse.de>
28261
28262 PR tree-optimization/70701
28263 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
28264 references after translating through a memcpy.
28265
28266 2016-04-18 Richard Biener <rguenther@suse.de>
28267
28268 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
28269 (compute_antic): ... here. For partial antic use regular
28270 postorder and scrap iteration.
28271 (compute_partial_antic_aux): Remove unused return value.
28272 (init_pre): Do not allocate postorder.
28273 (fini_pre): Do not free postorder.
28274
28275 2016-04-18 Richard Biener <rguenther@suse.de>
28276
28277 PR middle-end/37870
28278 * expmed.c (extract_bit_field_1): Remove broken case
28279 using a wider MODE_INT mode.
28280
28281 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
28282
28283 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
28284 unless compiling with at least GCC-4.8.
28285
28286 2016-04-17 Jan Hubicka <jh@suse.cz>
28287
28288 PR bootstrap/70706
28289 * graphite.c (graphite_finalize): Update call to
28290 tree_estimate_probability.
28291 * predict.h (tree_estimate_probability): Update prototype.
28292
28293 2016-04-17 Jan Hubicka <jh@suse.cz>
28294
28295 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
28296 (tree_estimate_probability): Likewise.
28297 (pass_profile::execute): Update.
28298 (report_predictor_hitrates): New function.
28299 * profile.c (compute_branch_probabilities): Use it.
28300 * predict.h (report_predictor_hitrates): Declare.
28301
28302 2016-04-17 Jan Hubicka <jh@suse.cz>
28303
28304 PR ipa/70018
28305 * cgraph.h (cgraph_node::set_const_flag,
28306 cgraph_node::set_pure_flag): Update prototype to return bool;
28307 update comment.
28308 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
28309 of interposable symbol are interposable, too.
28310 (cgraph_set_const_flag_1): Rename to ...
28311 (set_const_flag_1): ... this one; change to self recursive function
28312 instead of call_for_symbol_thunks_and_aliases. Handle correctly
28313 clearnig the flag in all variants and also virtual thunks of const
28314 functions are pure; track if any change was done.
28315 (cgraph_node::set_const_flag): Update.
28316 (struct set_pure_flag_info): New struct.
28317 (cgraph_set_pure_flag_1): Rename to ...
28318 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
28319 rather than pointer encoded flags; track if any changes was done;
28320 handle correctly clearning flag and setting flag of aliases already
28321 declared const.
28322 (cgraph_node::set_pure_flag): Update.
28323 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
28324
28325 2016-04-17 Tom de Vries <tom@codesourcery.com>
28326
28327 PR other/70433
28328 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
28329 backslash in label.
28330
28331 2016-04-17 Tom de Vries <tom@codesourcery.com>
28332
28333 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
28334 '{}<> ' as escape-for-record.
28335
28336 2016-04-17 Tom de Vries <tom@codesourcery.com>
28337
28338 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
28339 structure.
28340
28341 2016-04-17 Tom de Vries <tom@codesourcery.com>
28342
28343 PR other/70185
28344 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
28345 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
28346 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
28347 * passes.c (finish_optimization_passes): Only call
28348 finish_graph_dump_file if dfi->graph_dump_initialized.
28349 (execute_function_dump, pass_init_dump_file): Use
28350 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
28351
28352 2016-04-17 Tom de Vries <tom@codesourcery.com>
28353
28354 PR tree-optimization/70256
28355 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
28356 (debug_varmap): New function.
28357
28358 2016-04-17 Tom de Vries <tom@codesourcery.com>
28359
28360 PR other/70183
28361 * passes.c (pass_manager::register_pass): Propagate pflags.
28362
28363 2016-04-17 Tom de Vries <tom@codesourcery.com>
28364
28365 PR other/68875
28366 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
28367 * passes.c (pass_manager::pass_manager): Declare and init p_start in
28368 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
28369 check if it's equal to p_start.
28370 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
28371
28372 2016-04-15 Jan Hubicka <jh@suse.cz>
28373
28374 PR ipa/70018
28375 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
28376 function does not bind to current def.
28377 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
28378 handle conservatively calls to functions that does not need to bind
28379 to current def.
28380 (check_call): Update call of worse_state.
28381 (ignore_edge_for_nothrow): Update.
28382 (ignore_edge_for_pure_const): Likewise.
28383 (propagate_pure_const): Update calls to worse_state.
28384 (skip_function_for_local_pure_const): Reformat comments.
28385
28386 2016-04-15 Jan Hubicka <jh@suse.cz>
28387
28388 PR ipa/70018
28389 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
28390 (cgraph_node::function_symbol): Likewise.
28391 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28392 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
28393 (symtab_node::ultimate_alias_target): Add REF parameter.
28394 (symtab_node::binds_to_current_def_p): Declare.
28395 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
28396 (cgraph_node::function_symbol): Likewise.
28397 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
28398 (cgraph_node::get_availability): Likewise.
28399 (cgraph_edge::binds_to_current_def_p): New inline function.
28400 (varpool_node::get_availability): Add REF parameter.
28401 (varpool_node::ultimate_alias_target): Likewise.
28402 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
28403 (symtab_node::binds_to_current_def_p): Likewise.
28404 * varpool.c (varpool_node::get_availability): Likewise.
28405
28406 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28407
28408 PR target/70662
28409 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
28410 Fix mode size check.
28411
28412 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28413
28414 * BASE-VER: Set to 7.0.0.
28415
28416 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
28417
28418 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
28419
28420 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28421
28422 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
28423 architecture revisions.
28424
28425 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
28426
28427 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
28428 * config/i386/i386.c (ix86_using_red_zone): No longer static.
28429 * config/i386/i386.md (stack decrement to push peepholes): Guard
28430 with !x86_using_red_zone ().
28431
28432 2016-04-15 Jakub Jelinek <jakub@redhat.com>
28433
28434 PR c++/70675
28435 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
28436 to dump_generic_node.
28437 (NIY): Pass also flags to do_niy.
28438
28439 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
28440
28441 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
28442 (simd_clone_vector_of_formal_parm_types)
28443 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
28444 (simd_clone_mangle, simd_clone_create)
28445 (simd_clone_adjust_return_type, create_tmp_simd_array)
28446 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28447 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
28448 (ipa_simd_modify_function_body, simd_clone_linear_addend)
28449 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
28450 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
28451 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
28452 * omp-simd-clone.c: ... this new file.
28453 (simd_clone_vector_of_formal_parm_types): Make it static.
28454 * Makefile.in (OBJS): Add omp-simd-clone.o.
28455
28456 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
28457
28458 PR target/70662
28459 * config/i386/sse.md: Use proper memory operand modifiers.
28460
28461
28462 2016-04-15 Richard Biener <rguenther@suse.de>
28463 Alan Modra <amodra@gmail.com>
28464
28465 PR tree-optimization/70130
28466 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
28467 when alignment stays not the same and no not use the realign
28468 scheme then.
28469
28470 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28471
28472 PR target/70669
28473 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
28474 direct move handlers for KFmode. Change TFmode handlers test from
28475 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
28476
28477 2016-04-14 Jakub Jelinek <jakub@redhat.com>
28478
28479 PR c++/70594
28480 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
28481 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
28482 (inlined_polymorphic_ctor_dtor_block_p): Use it.
28483 * tree-ssa-live.c (remove_unused_scope_block_p): When
28484 in_ctor_dtor_block, avoid discarding not just BLOCKs with
28485 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
28486 block_ultimate_origin is FUNCTION_DECL.
28487 (remove_unused_locals): If current_function_decl is
28488 polymorphic_ctor_dtor_p, pass initial true to
28489 remove_unused_scope_block_p' is_ctor_dtor_block.
28490
28491 2016-04-14 Martin Sebor <msebor@redhat.com>
28492
28493 PR c++/69517
28494 PR c++/70019
28495 PR c++/70588
28496 * doc/extend.texi (Variable Length): Revert.
28497
28498 2016-04-14 Marek Polacek <polacek@redhat.com>
28499 Jan Hubicka <hubicka@ucw.cz>
28500
28501 PR c++/70029
28502 * tree.c (verify_type): Disable the canonical type of main variant
28503 check.
28504
28505 2016-04-14 Jason Merrill <jason@redhat.com>
28506
28507 * cfgexpand.c, expr.c: Revert previous change.
28508
28509 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
28510
28511 PR middle-end/70643
28512 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
28513 when building a mem ref for the incoming reduction variable.
28514
28515 2016-04-14 Richard Biener <rguenther@suse.de>
28516
28517 PR tree-optimization/70614
28518 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
28519 loop if the evolution dropped to chrec_dont_know.
28520 (interpret_condition_phi): Likewise.
28521
28522 2016-04-14 Richard Biener <rguenther@suse.de>
28523
28524 PR tree-optimization/70623
28525 * tree-ssa-pre.c (changed_blocks): Make global ...
28526 (compute_antic): ... local here. Move and fix worklist
28527 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
28528 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
28529 worklist handling, dump when ANTIC_IN changed.
28530 (compute_partial_antic_aux): Remove worklist handling.
28531 (init_pre): Do not compute post dominators. Add a comment about
28532 the CFG order chosen.
28533 (fini_pre): Do not free post dominators.
28534
28535 2016-04-13 Martin Sebor <msebor@redhat.com>
28536
28537 PR c++/69517
28538 PR c++/70019
28539 PR c++/70588
28540 * doc/extend.texi (Variable Length): Document C++ specifics.
28541
28542 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28543
28544 PR c++/70641
28545 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
28546 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
28547 eh edges have been purged.
28548
28549 PR c++/70594
28550 * tree-sra.c (create_access_replacement,
28551 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
28552 gets fancy name.
28553 * tree-pretty-print.c (dump_fancy_name): New function.
28554 (dump_decl_name, dump_generic_node): Use it.
28555
28556 2016-04-13 Jason Merrill <jason@redhat.com>
28557
28558 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
28559 * expr.c (expand_expr_real_1): Likewise.
28560
28561 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
28562
28563 * config/i386/i386.md (kunpckhi): Swap operands.
28564 (kunpcksi): Likewise.
28565 (kunpckdi): Likewise.
28566 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
28567 (vec_pack_trunc_<mode>): Likewise.
28568
28569 2016-04-13 Jakub Jelinek <jakub@redhat.com>
28570
28571 PR debug/70628
28572 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
28573
28574 PR middle-end/70633
28575 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
28576 gimplification turns some element into non-constant.
28577
28578 PR debug/70628
28579 * rtl.h (convert_memory_address_addr_space_1): New prototype.
28580 * explow.c (convert_memory_address_addr_space_1): No longer static,
28581 add NO_EMIT argument and don't call convert_modes if true, pass
28582 it down recursively, remove break after return.
28583 (convert_memory_address_addr_space): Adjust caller.
28584 * simplify-rtx.c (simplify_unary_operation_1): Call
28585 convert_memory_address_addr_space_1 instead of convert_memory_address,
28586 if it returns NULL, don't simplify.
28587
28588 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
28589
28590 PR target/70630
28591 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
28592
28593 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28594
28595 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28596 Bump the upper SIMDLEN limits, so that if the return type or
28597 characteristic type if the return type is void can be passed in
28598 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
28599 allowed.
28600
28601 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
28602
28603 PR target/70640
28604 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
28605 Do not use "=" constraint on an input constraint.
28606 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
28607 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
28608 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
28609 generates (neg (abs ...)) instead of (abs ...).
28610
28611 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28612
28613 PR rtl-optimization/70596
28614 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
28615 just invalidate LRA data and reset them. Adjust dump wording.
28616
28617 2016-04-12 Martin Liska <mliska@suse.cz>
28618
28619 Revert
28620 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28621
28622 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
28623 estimates here.
28624 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
28625 max_loop_iterations_int.
28626 (tree_unswitch_outer_loop): Likewise.
28627 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
28628 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
28629
28630 2016-04-12 Tom de Vries <tom@codesourcery.com>
28631
28632 PR tree-optimization/68756
28633 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
28634 instead of new_name.
28635
28636 2016-04-12 Jakub Jelinek <jakub@redhat.com>
28637
28638 PR tree-optimization/70602
28639 * tree-sra.c (generate_subtree_copies): Don't write anything into
28640 constant pool decls.
28641
28642 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
28643 regardless whether there are depend clauses or not.
28644
28645 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28646
28647 PR target/70381
28648 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
28649 target attribute and pragma from changing the -mfloat128
28650 and -mfloat128-hardware options.
28651
28652 * doc/extend.texi (Additional Floating Types): Document PowerPC
28653 __float128 restrictions.
28654
28655 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28656
28657 PR target/70133
28658 * config/aarch64/driver-aarch64.c
28659 (aarch64_get_extension_string_for_isa_flags): New.
28660 (arch_extension): Rename to...
28661 (aarch64_arch_extension): ...This.
28662 (ext_to_feat_string): Rename to...
28663 (aarch64_extensions): ...This.
28664 (aarch64_core_data): Keep track of architecture extension flags.
28665 (cpu_data): Rename to...
28666 (aarch64_cpu_data): ...This.
28667 (aarch64_arch_driver_info): Keep track of architecture extension
28668 flags.
28669 (get_arch_name_from_id): Rename to...
28670 (get_arch_from_id): ...This, change return type.
28671 (host_detect_local_cpu): Update and reformat for renames, handle
28672 extensions through common infrastructure.
28673
28674 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28675
28676 PR target/70133
28677 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
28678 track of a canonical flag name.
28679 (all_extensions): Likewise.
28680 (arch_to_arch_name): Also track extension flags enabled by the arch.
28681 (all_architectures): Likewise.
28682 (aarch64_parse_extension): Move to here.
28683 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
28684 rework.
28685 (aarch64_rewrite_selected_cpu): Update for above change.
28686 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
28687 are handled, such that the single explicit value enabled by an
28688 extension is kept seperate from the implicit values it also enables.
28689 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
28690 to here.
28691 (aarch64_parse_extension): New.
28692 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
28693 here to config/aarch64/aarch64-protos.h.
28694 (aarch64_parse_extension): Move from here to
28695 common/config/aarch64/aarch64-common.c.
28696 (aarch64_option_print): Update.
28697 (aarch64_declare_function_name): Likewise.
28698 (aarch64_start_file): Likewise.
28699 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
28700 the canonical flag for extensions.
28701 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
28702 flags.
28703
28704 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
28705
28706 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
28707 AARCH64_FL_CRC.
28708
28709 2016-04-09 Tom de Vries <tom@codesourcery.com>
28710
28711 PR tree-optimization/68953
28712 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
28713 first to last subscript.
28714
28715 2016-04-09 Jakub Jelinek <jakub@redhat.com>
28716
28717 PR tree-optimization/70586
28718 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
28719 for any calls.
28720
28721 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
28722
28723 PR lto/70289
28724 PR ipa/70348
28725 PR tree-optimization/70373
28726 PR middle-end/70533
28727 PR middle-end/70534
28728 PR middle-end/70535
28729 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
28730 clauses for acc parallel reductions as necessary. Error on those
28731 that are private.
28732 * omp-low.c (scan_sharing_clauses): Don't install variables which
28733 are used in acc parallel reductions.
28734 (lower_rec_input_clauses): Remove dead code.
28735 (lower_oacc_reductions): Add support for reference reductions.
28736 (lower_reduction_clauses): Remove dead code.
28737 (lower_omp_target): Don't remap variables appearing in acc parallel
28738 reductions.
28739 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
28740
28741 2016-04-08 Jakub Jelinek <jakub@redhat.com>
28742
28743 PR middle-end/70593
28744 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
28745 with multiple SSA_NAME defs, force the outputs other than first
28746 to be live before calling live_track_process_def on each output.
28747
28748 PR rtl-optimization/70574
28749 * fwprop.c (forward_propagate_and_simplify): Don't add
28750 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
28751 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
28752 paradoxical subregs within *loc.
28753
28754 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
28755
28756 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
28757 -ftree-parallelize-loops={0,1}.
28758 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
28759 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
28760 * config/ia64/hpux.h (LIB_SPEC): Likewise.
28761 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
28762 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
28763
28764 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
28765
28766 PR sanitizer/70541
28767 * asan.c (instrument_derefs): If we get unknown location, extract it
28768 with EXPR_LOCATION.
28769 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
28770
28771 2016-04-08 Tom de Vries <tom@codesourcery.com>
28772
28773 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
28774 implicit firstprivate clause.
28775
28776 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28777
28778 PR target/70566
28779 * config/arm/thumb2.md (tst + branch-> lsls + branch
28780 peephole below *orsi_not_shiftsi_si): Require that condition
28781 register is dead after the peephole.
28782 (second peephole after the above): Likewise.
28783
28784 2016-04-08 Alan Modra <amodra@gmail.com>
28785
28786 PR target/70117
28787 * builtins.c (fold_builtin_classify): For IBM extended precision,
28788 look at just the high-order double to test for NaN.
28789 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
28790 test just the high double for Inf but both doubles for subnormal
28791 limit.
28792
28793 2016-04-07 Jakub Jelinek <jakub@redhat.com>
28794
28795 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
28796 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
28797 node->simdclone->mask_mode != VOIDmode masks.
28798 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
28799 earlier, use it instead of node->simdclone.
28800 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28801 Set clonei->mask_mode.
28802
28803 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28804
28805 PR c/70436
28806 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
28807 Pass it through to cp_parser_already_scoped_statement.
28808 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
28809 it through to cp_parser_statement.
28810 (cp_parser_statement): Pass IF_P through to
28811 cp_parser_iteration_statement.
28812 (cp_parser_pragma): Adjust call to
28813 cp_parser_iteration_statement.
28814
28815 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
28816
28817 PR c/70436
28818 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
28819 resolve a future -Wparentheses warning.
28820 * omp-low.c (scan_sharing_clauses): Likewise.
28821 * tree-parloops.c (eliminate_local_variables): Likewise.
28822
28823 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
28824
28825 PR rtl-optimization/70398
28826 * lra-constraints.c (process_address_1): Check zero scale and code
28827 for reloading with zero scale.
28828
28829 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
28830
28831 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
28832 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
28833
28834 2016-04-06 Jakub Jelinek <jakub@redhat.com>
28835
28836 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
28837 Add support for AVX512F clones, include them by default for
28838 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
28839 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
28840 up to 128.
28841
28842 PR middle-end/70550
28843 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
28844 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
28845 firstprivate clauses.
28846 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
28847 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
28848 (lower_omp_target): Set TREE_NO_WARNING for
28849 non-addressable possibly uninitialized vars which are copied into
28850 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
28851
28852 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
28853
28854 * config/pa/predicates.md (integer_store_memory_operand): Accept
28855 REG+D operands with a large offset when reload_in_progress is true.
28856 (floating_point_store_memory_operand): Likewise.
28857
28858 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28859
28860 PR c++/70336
28861 * match.pd (nested int casts): Limit to GIMPLE.
28862
28863 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
28864
28865 PR ipa/66223
28866 * ipa-devirt.c (maybe_record_node): Fix comment; use
28867 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
28868
28869 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28870
28871 PR rtl-optimization/70542
28872 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
28873 if there are any uses other than insn or debug insns.
28874
28875 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
28876 Jakub Jelinek <jakub@redhat.com>
28877
28878 PR tree-optimization/70509
28879 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
28880 Shift HOST_WIDE_INT_1U instead of 1.
28881
28882 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
28883
28884 PR tree-optimization/70509
28885 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
28886 of the vector base type for index.
28887
28888 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
28889
28890 PR target/70510
28891 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
28892
28893 2016-04-05 Richard Biener <rguenther@suse.de>
28894
28895 PR tree-optimization/70526
28896 * tree-sra.c (build_ref_for_offset): Use prev_base to
28897 extract the alias pointer type.
28898
28899 2016-04-05 Richard Biener <rguenther@suse.de>
28900
28901 * dse.c (struct store_info): Remove alias_set member.
28902 (struct read_info_type): Likewise.
28903 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
28904 spill_deleted, clear_alias_set_lookup): Remove.
28905 (get_group_info): Remove dead base == NULL_RTX case.
28906 (dse_step0): Remove initialization of removed variables.
28907 (delete_dead_store_insn): Reomve alias set dumping.
28908 (free_read_records): Remove alias_set handling.
28909 (canon_address): Remove alias_set_out parameter.
28910 (record_store): Remove spill_alias_set, it's always zero.
28911 (check_mem_read_rtx): Likewise.
28912 (dse_step2): Rename from ...
28913 (dse_step2_nospill): ... this. Adjust.
28914 (scan_stores): Rename from ...
28915 (scan_stores_nospill): ... this.
28916 (scan_reads): Rename from ...
28917 (scan_reads_nospill): ... this.
28918 (scan_stores_spill, scan_reads_spill): Remove.
28919 (dse_step3_scan): Remove for_spills argument which is always false.
28920 (dse_step3): Likewise.
28921 (dse_step5): Rename from ...
28922 (dse_step5_nospill): ... this. Remove alias_set handling.
28923 (rest_of_handle_dse): Adjust.
28924
28925 2016-04-05 Jakub Jelinek <jakub@redhat.com>
28926
28927 PR target/70525
28928 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
28929 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
28930 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
28931 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
28932
28933 2016-04-05 Richard Biener <rguenther@suse.de>
28934
28935 PR middle-end/70499
28936 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
28937 non-register type temporaries into SSA.
28938
28939 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
28940
28941 PR ipa/66223
28942 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
28943 calls when sanitizing.
28944 (possible_polymorphic_call_target_p): Fix formatting.
28945
28946 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28947 Jakub Jelinek <jakub@redhat.com>
28948
28949 PR middle-end/70457
28950 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
28951 to ensure a call statement is compatible with a built-in's
28952 prototype.
28953 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
28954 Likewise.
28955
28956 2016-04-04 Richard Biener <rguenther@suse.de>
28957
28958 PR rtl-optimization/70484
28959 * rtl.h (canon_output_dependence): Declare.
28960 * alias.c (canon_output_dependence): New function.
28961 * dse.c (record_store): Use canon_output_dependence rather
28962 than canon_true_dependence.
28963
28964 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
28965
28966 PR ipa/68881
28967 * cgraph.h (symtab_node::copy_visibility_from): New function.
28968 * symtab.c (symtab_node::copy_visibility_from): New function.
28969 * ipa-visibility.c (optimize_weakref): New function.
28970 (function_and_variable_visibility): Use it.
28971
28972 2016-04-04 Martin Liska <mliska@suse.cz>
28973
28974 PR hsa/70402
28975 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
28976 value that is really in range handled by SBR instruction.
28977 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
28978 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
28979 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
28980
28981 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
28982
28983 PR target/70416
28984 PR target/67391
28985 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
28986 set, but not for SP_REG operands.
28987
28988 2016-04-02 Martin Sebor <msebor@redhat.com>
28989
28990 PR c++/67376
28991 * fold-const.c (maybe_nonzero_address): New function.
28992 (fold_comparison): Call it. Fold equality and relational
28993 expressions involving null pointers.
28994 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
28995
28996 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
28997
28998 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
28999 the "Y" constraint (scalar FP 0.0 immediate).
29000
29001 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
29002 Add the "const_double" to the list of operand constraints.
29003
29004 2016-04-01 Jakub Jelinek <jakub@redhat.com>
29005
29006 PR rtl-optimization/70467
29007 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
29008 If low word of the last operand is 0, just emit addition/subtraction
29009 for the high word.
29010
29011 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29012
29013 PR target/70404
29014 * config/s390/s390.c (s390_expand_insv): Check for everything
29015 constant instead of just VOIDmode stuff.
29016
29017 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29018
29019 PR target/70496
29020 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
29021
29022 2016-04-01 Nathan Sidwell <nathan@acm.org>
29023
29024 * tree.def (TRY_CATCH_EXPR): Correct documentation.
29025
29026 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
29027
29028 PR rtl-optimization/70461
29029 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
29030 is necessary.
29031
29032 2016-03-31 Martin Liska <mliska@suse.cz>
29033
29034 PR hsa/70399
29035 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
29036 a tree value or an immediate integer value to a buffer
29037 that is eventually copied to a BRIG section.
29038 (emit_immediate_operand): Call the function here.
29039 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
29040 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
29041 of class' fields that are removed.
29042 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
29043 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
29044 m_brig_repr_size fields.
29045
29046 2016-03-31 Martin Liska <mliska@suse.cz>
29047
29048 PR hsa/70391
29049 * hsa-gen.c (hsa_function_representation::update_dominance): New
29050 function.
29051 (convert_addr_to_flat_segment): Likewise.
29052 (gen_hsa_memory_set): New alignment argument.
29053 (gen_hsa_ctor_assignment): Likewise.
29054 (gen_hsa_insns_for_single_assignment): Provide alignment
29055 to gen_hsa_ctor_assignment.
29056 (gen_hsa_insns_for_direct_call): Add new argument.
29057 (expand_lhs_of_string_op): New function.
29058 (expand_string_operation_builtin): Likewise.
29059 (expand_memory_copy): New function.
29060 (expand_memory_set): New function.
29061 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
29062 (convert_switch_statements): Change signature.
29063 (generate_hsa): Use a return value of the function.
29064 (pass_gen_hsail::execute): Do not call
29065 convert_switch_statements here.
29066 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
29067 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
29068 (hsa_function_representation::update_dominance): New function.
29069
29070 2016-03-31 Martin Liska <mliska@suse.cz>
29071
29072 PR hsa/70391
29073 * hsa-brig.c (emit_directive_variable): Emit alignment
29074 according to hsa_symbol::m_align.
29075 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
29076 (dump_hsa_symbol): Dump alignment of HSA symbols.
29077 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
29078 (gen_hsa_addr_with_align): New function.
29079 (hsa_bitmemref_alignment): Use newly added function.
29080 (gen_hsa_insns_for_load): Likewise.
29081 (gen_hsa_insns_for_store): Likewise.
29082 (gen_hsa_memory_copy): New argument added.
29083 (gen_hsa_insns_for_single_assignment): Respect
29084 alignment for assignments processed via gen_hsa_memory_copy.
29085 (gen_hsa_insns_for_direct_call): Likewise.
29086 (gen_hsa_insns_for_return): Likewise.
29087 (gen_function_def_parameters): Set default alignment.
29088 * hsa.c (hsa_object_alignment): New function.
29089 (hsa_byte_alignment): Pasted function.
29090 * hsa.h (hsa_symbol::m_align): New field.
29091
29092 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29093
29094 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
29095 scratch field for goto case.
29096
29097 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
29098
29099 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
29100
29101 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
29102
29103 PR target/70442
29104 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
29105 (scalar_chain::convert_insn): Call convert_op for reg
29106 moves to handle undefined registers.
29107
29108 2016-03-31 Nathan Sidwell <nathan@acm.org>
29109
29110 PR c++/70393
29111 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
29112 Assert we don't want to move backwards.
29113
29114 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
29115
29116 PR target/70453
29117 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
29118
29119 2016-03-31 Jakub Jelinek <jakub@redhat.com>
29120
29121 PR rtl-optimization/70460
29122 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
29123 with operand from REG_LABEL_OPERAND, instead substitute
29124 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
29125 Don't do anything for REG_NON_LOCAL_GOTO jumps.
29126
29127 2016-03-31 Martin Liska <mliska@suse.cz>
29128
29129 * passes.c (execute_one_pass): Do not call
29130 todo_after for a discarded function.
29131
29132 2016-03-31 Bin Cheng <bin.cheng@arm.com>
29133
29134 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
29135 (no_cost, infinite_cost): Initialize the new field.
29136 (get_computation_cost_at): Record setup cost.
29137 (determine_use_iv_cost_address): Skip cost computation for sub
29138 uses if we can estimate it without losing accuracy.
29139
29140 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
29141
29142 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
29143 estimates here.
29144 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
29145 max_loop_iterations_int.
29146 (tree_unswitch_outer_loop): Likewise.
29147 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
29148 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
29149
29150 2016-03-30 Richard Biener <rguenther@suse.de>
29151
29152 PR middle-end/70450
29153 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
29154
29155 2016-03-30 Jakub Jelinek <jakub@redhat.com>
29156
29157 PR target/70421
29158 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
29159 in gen_blendm expander.
29160
29161 2016-03-30 Nick Clifton <nickc@redhat.com>
29162
29163 PR target/62254
29164 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
29165 case where we are already provided with an SImode SUBREG.
29166
29167 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
29168
29169 PR target/70439
29170 * config/i386/i386.c (ix86_expand_epilogue): Properly check
29171 conflict between DRAP register and __builtin_eh_return.
29172
29173 2016-03-30 Michael Matz <matz@suse.de>
29174 Richard Biener <rguenther@suse.de>
29175
29176 PR ipa/12392
29177 * ipa-polymorphic-call.c (struct type_change_info): Change
29178 speculative to an unsigned allowing to limit the work we do.
29179 (csftc_abort_walking_p): New inline function..
29180 (check_stmt_for_type_change): Limit the number of may-defs
29181 skipped for speculative devirtualization to
29182 max-speculative-devirt-maydefs.
29183 * params.def (max-speculative-devirt-maydefs): New param.
29184 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
29185
29186 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
29187
29188 PR target/63890
29189 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
29190 and TARGET_MACHO.
29191
29192 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
29193
29194 PR tree-optimization/59124
29195 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
29196 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
29197
29198 2016-03-29 Jeff Law <law@redhat.com>
29199
29200 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
29201
29202 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29203
29204 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
29205 to HOST_WIDE_INT.
29206
29207 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
29208
29209 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
29210 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
29211 gcrt0.o if linking dynamically.
29212
29213 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
29214
29215 PR ipa/70283
29216 * ipa-devirt.c (methods_equal_p): New function.
29217 (compare_virtual_tables): Use it.
29218 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
29219 * cgraphclones.c (clone_function_name_1): Use
29220 symbol_table::symbol_suffix_separator.
29221 * coverage.c (build_var): Likewise.
29222 * symtab.c (symbol_table::symbol_suffix_separator): New.
29223
29224 2016-03-29 Jakub Jelinek <jakub@redhat.com>
29225
29226 PR rtl-optimization/70429
29227 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
29228 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
29229 mode != result_mode.
29230
29231 PR c++/70353
29232 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
29233
29234 PR tree-optimization/70405
29235 * ssa-iterators.h (num_imm_uses): Add missing braces.
29236
29237 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
29238
29239 PR rtl-optimization/68695
29240 * ira-color.c (allocno_copy_cost_saving): New.
29241 (improve_allocation): Use it.
29242
29243 2016-03-29 Richard Henderson <rth@redhat.com>
29244
29245 PR middle-end/70355
29246 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
29247
29248 2016-03-29 Richard Biener <rguenther@suse.de>
29249
29250 PR middle-end/70424
29251 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
29252 use alignment returned by get_pointer_alignment_1 if it is
29253 bigger than BITS_PER_UNIT.
29254 * builtins.c (get_pointer_alignment_1): Do not return true
29255 for alignment extracted from SSA info.
29256
29257 2016-03-28 James Bowman <james.bowman@ftdichip.com>
29258
29259 * config/ft32/ft32.opt (mnodiv): New.
29260 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
29261 * doc/invoke.texi (FT32 Options -mnodiv): New.
29262
29263 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
29264
29265 PR target/70406
29266 * config/i386/i386.md (define_split, andn): Fix modes.
29267
29268 2016-03-26 Richard Biener <rguenther@suse.de>
29269 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29270
29271 PR ipa/70366
29272 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
29273 instead of
29274 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
29275 as 2nd argument to cl_optimization_restore().
29276
29277 2016-03-25 Richard Henderson <rth@redhat.com>
29278
29279 PR target/70120
29280 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
29281 * config/aarch64/aarch64-protos.h: Declare it.
29282 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
29283
29284 2016-03-25 Alan Modra <amodra@gmail.com>
29285
29286 PR target/70052
29287 * config/rs6000/constraints.md (j): Simplify.
29288 * config/rs6000/predicates.md (easy_fp_constant): Exclude
29289 decimal float 0.D.
29290 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
29291 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
29292 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
29293 in all constraint alternatives.
29294 (movtd_64bit_nodm): Delete "j" constraint alternative.
29295
29296 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29297
29298 * tree-ssa-propagate.c: Enhance docs for
29299 SSA_PROP_NOT_INTERESTING.
29300
29301 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
29302
29303 * doc/extend.texi: Fix typo in documentation to pure attribute.
29304
29305 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
29306
29307 PR target/70319
29308 * config/pa/pa.md (bswapdi2): Use a scratch register.
29309
29310 2016-03-24 Richard Henderson <rth@redhat.com>
29311
29312 PR middle-end/69845
29313 * fold-const.c (extract_muldiv_1): Correct test for multiplication
29314 overflow.
29315
29316 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
29317
29318 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
29319 using ix86_expand_binary_operator instead of gen_andsi3.
29320
29321 2016-03-24 Richard Biener <rguenther@suse.de>
29322
29323 PR tree-optimization/70396
29324 * tree-vect-stmts.c (vectorizable_comparison): Use
29325 get_vectype_for_scalar_type.
29326
29327 2016-03-24 Richard Biener <rguenther@suse.de>
29328
29329 PR middle-end/70370
29330 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29331 with register bases.
29332
29333 2016-03-24 Richard Biener <rguenther@suse.de>
29334
29335 PR tree-optimization/70372
29336 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
29337 build_all_ones_cst to also handle vector types correctly.
29338
29339 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29340
29341 PR target/70381
29342 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
29343 -mfloat128 here.
29344
29345 2016-03-23 Marek Polacek <polacek@redhat.com>
29346
29347 PR c++/69884
29348 * doc/invoke.texi: Document -Wignored-attributes.
29349
29350 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29351
29352 PR tree-optimization/69042
29353 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
29354 parameter from 30 to 40.
29355
29356 2016-03-23 Bin Cheng <bin.cheng@arm.com>
29357
29358 PR tree-optimization/69042
29359 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
29360 for use with constant offset stripped in base.
29361
29362 2016-03-23 Richard Biener <rguenther@suse.de>
29363
29364 PR middle-end/70251
29365 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
29366 mode compatibility check.
29367 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29368
29369 2016-03-23 Jeff Law <law@redhat.com>
29370
29371 PR tree-optimization/64058
29372 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
29373 CONFLICT_COUNT.
29374 (struct ssa_conflicts): Move up earlier in the file.
29375 (conflicts_, var_map_): New static variables.
29376 (initialize_conflict_count): New function to initialize the
29377 CONFLICT_COUNT field for each conflict pair.
29378 (compare_pairs): Lazily initialize the conflict count and use it
29379 as the first tie-breaker.
29380 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
29381 and wipe conflicts_ and map_ around the call to qsort. Remove
29382 special case for 2 coalesce pairs.
29383 * bitmap.c (bitmap_count_unique_bits): New function.
29384 (bitmap_count_bits_in_word): New function, extracted from
29385 bitmap_count_bits.
29386 (bitmap_count_bits): Use bitmap_count_bits_in_word.
29387 * bitmap.h (bitmap_count_unique_bits): Declare it.
29388
29389 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
29390
29391 PR target/69917
29392 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
29393 transparent alias chain for decl assembler name.
29394 * config/sol2.c (solaris_assemble_visibility): Likewise.
29395
29396 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29397
29398 * config/arm/arm1020e.md (1020call_op): Reduce reservation
29399 duration.
29400 (v10_fdivs): Likewise.
29401 (v10_fdivd): Likewise.
29402
29403 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29404
29405 PR driver/70132
29406 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
29407 to not call fclose twice on file.
29408
29409 2016-03-23 Jakub Jelinek <jakub@redhat.com>
29410
29411 PR tree-optimization/70354
29412 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29413 oprnd0 is wider than oprnd1 and there is a cast from the wider
29414 type to oprnd1, mask it with the mask of the narrower type.
29415
29416 PR target/70321
29417 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
29418 Optimize TARGET_STV splitters, if high or low word of last argument
29419 is 0 or -1.
29420
29421 2016-03-22 Jeff Law <law@redhat.com>
29422
29423 PR target/70232
29424 tree-ssa-threadbackward.c
29425 (fsm_find_control_statement_thread_paths): Correctly distinguish
29426 between old style jump threads vs FSM jump threads.
29427
29428 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
29429
29430 PR target/70302
29431 * config/i386/i386.c (scalar_chain::convert_op): Support
29432 uninitialized register usage case.
29433
29434 2016-03-22 Richard Biener <rguenther@suse.de>
29435
29436 PR middle-end/70251
29437 * genmatch.c (gen_transform): Adjust last parameter to a three-state
29438 int...
29439 (capture::gen_transform): ... to change behavior when substituting
29440 a condition into cond or not-cond expr context.
29441 (dt_simplify::gen_1): Adjust.
29442 * gimple-match-head.c: Include gimplify.h for unshare_expr.
29443 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
29444 last change and instead change to
29445 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
29446 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29447
29448 2016-03-22 Anthony Green <green@moxielogic.com>
29449
29450 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
29451 issue for moxiebox targets.
29452 (CC1PLUS_SPEC): Ditto.
29453
29454 2016-03-22 Richard Biener <rguenther@suse.de>
29455
29456 PR middle-end/70333
29457 * fold-const.c (extract_muldiv_1): Properly perform multiplication
29458 in the wide type.
29459
29460 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29461
29462 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
29463
29464 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
29465
29466 PR target/70325
29467 * config/i386/i386.c (def_builtin): Handle
29468 OPTION_MASK_ISA_AVX512VL to be and-ed with other
29469 bits.
29470 (const struct builtin_description bdesc_special_args[]):
29471 Remove duplicate ISA bits.
29472
29473 2016-03-22 Jakub Jelinek <jakub@redhat.com>
29474
29475 PR target/70329
29476 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
29477 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
29478 in a way that works also for AVX512BW.
29479
29480 PR target/70300
29481 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
29482 instead of source if operands[1] is xmm16 and above and
29483 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
29484 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
29485
29486 PR c++/70295
29487 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
29488 on assign if (*from_p) is a comparison, set it to
29489 TREE_NO_WARNING (*from_p).
29490
29491 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29492
29493 PR middle-end/70326
29494 * lra.c (restore_scratches): Ignore deleted insns.
29495
29496 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
29497 Jakub Jelinek <jakub@redhat.com>
29498
29499 PR tree-optimization/70317
29500 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
29501 to HONOR_NANS.
29502
29503 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
29504
29505 PR target/70327
29506 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
29507 of ix86_expand_move.
29508 (movoi): Ditto.
29509 (movti): Use general_operand for operand 1 predicate.
29510
29511 2016-03-21 Martin Liska <mliska@suse.cz>
29512
29513 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
29514 insns.
29515 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
29516
29517 2016-03-21 Martin Liska <mliska@suse.cz>
29518
29519 PR ipa/70306
29520 * ipa-icf.c (sem_function::parse): Skip static
29521 constructors and destructors.
29522
29523 2016-03-21 Jakub Jelinek <jakub@redhat.com>
29524
29525 PR target/70296
29526 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
29527 function-like macro, peek following token(s) if it is followed
29528 by CPP_OPEN_PAREN token with optional padding in between, and
29529 if not, don't treat it like a macro.
29530
29531 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
29532 Alexander Monakov <amonakov@ispras.ru>
29533
29534 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
29535 for the stabs debug format.
29536
29537 2016-03-21 Richard Biener <rguenther@suse.de>
29538
29539 PR tree-optimization/70310
29540 * tree-vect-generic.c (expand_vector_condition): Fold the built
29541 condition.
29542
29543 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
29544
29545 PR target/70293
29546 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
29547 Block third alternative for AVX-512VL target,
29548
29549 2016-03-21 Martin Liska <mliska@suse.cz>
29550
29551 PR hsa/70234
29552 * hsa-brig.c (emit_function_directives): Mark unemitted
29553 global variables for emission.
29554 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
29555 (get_symbol_for_decl): Likewise.
29556 * hsa.h (struct hsa_symbol): New flag.
29557
29558 2016-03-21 Richard Biener <rguenther@suse.de>
29559
29560 PR tree-optimization/70288
29561 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
29562 we do not estimate unsimplified all-constant conditionals or
29563 switches as optimized away.
29564
29565 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
29566
29567 PR rtl-optimization/69102
29568 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
29569 when we have a readonly dependency context.
29570
29571 2016-03-18 Jeff Law <law@redhat.com>
29572
29573 PR rtl-optimization/70263
29574 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
29575 (update_equiv_regs): When trying to move a store to after the insn
29576 that sets the source of the store, make sure the store occurs after
29577 the insn that sets the source of the store. When successful note
29578 the REG_EQUIV note created in the dump file.
29579
29580 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
29581 Bernd Schmidt <bschmidt@redhat.com>
29582
29583 * doc/extend.texi: Document more potential problems with basic asms.
29584
29585 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
29586
29587 PR rtl-optimization/70278
29588 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
29589 VOIDmode.
29590
29591 2016-03-18 Jason Merrill <jason@redhat.com>
29592
29593 * calls.c (load_register_parameters): Fix zero size sibcall logic.
29594
29595 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
29596
29597 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
29598 values to 128b regs.
29599
29600 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29601
29602 PR tree-optimization/70252
29603 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
29604 boolean vector has a proper number of elements.
29605 (supportable_narrowing_operation): Likewise.
29606
29607 2016-03-18 Tom de Vries <tom@codesourcery.com>
29608
29609 PR ipa/70269
29610 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
29611
29612 2016-03-18 Jakub Jelinek <jakub@redhat.com>
29613
29614 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
29615 instead of replace_rtx for DEBUG_INSNs.
29616
29617 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29618
29619 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
29620 load type reservations.
29621
29622 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
29623
29624 PR target/70188
29625 * config/pa/constraints.md: Revert 2015-02-13 change. Use
29626 define_constraint for "Q" and "T" constraints.
29627
29628 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
29629
29630 Tweak the pipeline model for Exynos M1
29631
29632 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
29633 model.
29634
29635 2016-03-17 David Malcolm <dmalcolm@redhat.com>
29636
29637 PR c/70264
29638 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
29639 where one or both locations aren't within a line_map.
29640
29641 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
29642
29643 PR driver/70192
29644 * opts.c (finish_options): Don't set flag_pie to the default if
29645 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
29646 if it is -1.
29647
29648 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
29649
29650 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
29651 true as ALL_REGS argument to replace_rtx.
29652
29653 2016-03-17 Richard Biener <rguenther@suse.de>
29654
29655 PR debug/70271
29656 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
29657 last.
29658
29659 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29660
29661 PR target/70245
29662 * rtl.h (replace_rtx): Add ALL_REGS argument.
29663 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
29664 equality and assert mode is the same, instead of just rtx pointer
29665 equality.
29666 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
29667 true as ALL_REGS argument to replace_rtx.
29668
29669 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
29670
29671 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
29672 for boolean vector with vector mode only.
29673 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
29674
29675 2016-03-17 Nick Clifton <nickc@redhat.com>
29676
29677 PR target/70162
29678 * config/rx/rx.c (rx_print_integer): Print negative constants in
29679 decimal.
29680
29681 2016-03-17 Jakub Jelinek <jakub@redhat.com>
29682
29683 PR target/70261
29684 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
29685
29686 2016-03-16 Richard Henderson <rth@redhat.com>
29687 Richard Biener <rguenth@suse.de>
29688
29689 PR middle-end/70240
29690 PR middle-end/68215
29691 PR tree-opt/68714
29692 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
29693 first operand as is_gimple_condexpr.
29694
29695 PR middle-end/70240
29696 PR middle-end/68215
29697 Revert r231575
29698 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
29699 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
29700 Do not gimplify the result.
29701 (do_unop): Adjust call to tree_vec_extract.
29702 (do_binop): Likewise.
29703 (do_compare): Likewise.
29704 (do_plus_minus): Likewise.
29705 (do_negate): Likewise.
29706 (expand_vector_condition): Likewise.
29707 (do_cond): Likewise.
29708
29709 2016-03-16 Richard Henderson <rth@redhat.com>
29710
29711 PR target/70048
29712 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
29713 (aarch64_classify_address): Use it.
29714 (aarch64_legitimize_address): Force all subexpressions of PLUS
29715 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
29716
29717 2016-03-16 Jakub Jelinek <jakub@redhat.com>
29718 Richard Biener <rguenth@suse.de>
29719
29720 PR target/70245
29721 * rtlanal.c (replace_rtx): For REG, if from is a REG,
29722 return to even if only REGNO is equal, and assert
29723 mode is the same.
29724
29725 2016-03-11 Jeff Law <law@redhat.com>
29726
29727 PR rtl-optimization/70224
29728 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
29729
29730 2016-03-16 Richard Henderson <rth@redhat.com>
29731
29732 PR middle-end/70199
29733 * function.h (struct function): Add has_forced_label_in_static.
29734 * gimplify.c (force_labels_r): Set it.
29735 * lto-streamer-in.c (input_struct_function_base): Read it.
29736 * lto-streamer-out.c (output_struct_function_base): Write it.
29737 * tree-inline.c (has_label_address_in_static_1): Remove.
29738 (copy_forbidden): Remove fndecl parameter; test
29739 has_forced_label_in_static.
29740 (inline_forbidden_p): Update call to copy_forbidden.
29741 (tree_versionable_function_p): Likewise.
29742 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
29743 (chkp_versioning): Likewise.
29744 * tree-inline.h (copy_forbidden): Update decl.
29745
29746 2016-03-16 Marek Polacek <polacek@redhat.com>
29747
29748 PR c/70093
29749 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
29750 function being thunked if the result type doesn't have fixed size.
29751 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
29752 doesn't have fixed size.
29753
29754 2016-03-16 Bin Cheng <bin.cheng@arm.com>
29755
29756 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
29757 reporting malformed loop nest.
29758
29759 2016-03-16 Tom de Vries <tom@codesourcery.com>
29760
29761 PR lto/70187
29762 * ipa-devirt.c (possible_polymorphic_call_targets): Move
29763 nodes.length () == 1 test to before first nodes[0] access.
29764
29765 2016-03-16 Tom de Vries <tom@codesourcery.com>
29766
29767 PR tree-optimization/68715
29768 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
29769 single_pred_p test.
29770
29771 2016-03-16 Tom de Vries <tom@codesourcery.com>
29772
29773 PR tree-optimization/68809
29774 * graphite-scop-detection.c (same_close_phi_node): Test if result types
29775 are the same.
29776
29777 2016-03-16 Carlos O'Donell <carlos@redhat.com>
29778 Sandra Loosemore <sandra@codesourcery.com>
29779
29780 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
29781 on leaf attribute. Mention ELF interposition problems.
29782
29783 2016-03-16 Alan Modra <amodra@gmail.com>
29784
29785 PR rtl-optimization/69195
29786 PR rtl-optimization/47992
29787 * ira.c (indirect_jump_optimize): Ignore artificial defs.
29788 Add comments.
29789
29790 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
29791
29792 PR bootstrap/69513
29793 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
29794
29795 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
29796
29797 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
29798
29799 2016-03-15 Jakub Jelinek <jakub@redhat.com>
29800
29801 PR rtl-optimization/70222
29802 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
29803 optimization if mode is different from result_mode, queue up masking
29804 of the result in outer_op. Formatting fix.
29805
29806 PR middle-end/70239
29807 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
29808 of safe_grow.
29809
29810 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29811
29812 PR rtl-optimization/69032
29813 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
29814 looping backwards over basic block insns.
29815
29816 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29817
29818 PR target/66660
29819 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
29820 to non-speculative when propagating trap bits.
29821
29822 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29823
29824 PR rtl-optimization/63384
29825 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
29826 DEBUG_INSN_P insns.
29827
29828 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
29829
29830 PR target/64411
29831 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
29832 factored out from ...
29833 (sched_analyze_insn): ... here.
29834 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
29835 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
29836 get_implicit_reg_pending_clobbers in it.
29837 (setup_id_reg_sets): Use setup_id_implicit_regs.
29838 (deps_init_id): Ditto.
29839
29840 2016-03-15 Tom de Vries <tom@codesourcery.com>
29841
29842 PR ipa/70161
29843 * cgraph.c (cgraph_node::get_body): Save, reset and restore
29844 dump_file_name.
29845 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
29846 execute_function_dump.
29847 (execute_one_pass): Don't dump function if it will be dumped after ipa
29848 transform.
29849
29850 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
29851
29852 * genrecog.c (match_pattern_2): If pred is NULL don't call
29853 safe_predicate_mode on it.
29854
29855 2016-03-14 Jakub Jelinek <jakub@redhat.com>
29856
29857 PR middle-end/70219
29858 * lra-constraints.c (delete_move_and_clobber): Change assertion
29859 to also allow dregno == 0.
29860
29861 2016-03-14 Richard Henderson <rth@redhat.com>
29862
29863 PR tree-opt/68714
29864 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
29865 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
29866 (reassociate_bb): Use optimize_vec_cond_expr; avoid
29867 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
29868 on vectors.
29869
29870 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
29871
29872 PR target/70083
29873 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
29874 regs.
29875 (lra_create_live_ranges_1): initialize hard register biggest_mode to
29876 VOIDmode.
29877 * lra-constraints.c (split_reg): For hard regs, try to find the
29878 biggest single-register mode used in the function.
29879
29880 2016-03-14 Richard Biener <rguenther@suse.de>
29881
29882 PR tree-optimization/56365
29883 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
29884 constants to compare against.
29885
29886 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
29887
29888 PR target/70098
29889 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
29890 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
29891 (define_split for the GPR case): Use int_reg_operand instead of
29892 gpc_reg_operand for the output.
29893
29894 2016-03-14 Tom de Vries <tom@codesourcery.com>
29895
29896 PR tree-optimization/70045
29897 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
29898 create_empty_if_region_on_edge argument.
29899
29900 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
29901
29902 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
29903 (STACK_CHECK_PROTECT): Likewise.
29904 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29905 (STACK_CHECK_PROTECT): Likewise.
29906 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
29907 (STACK_CHECK_PROTECT): Likewise.
29908 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
29909 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
29910 (STACK_CHECK_PROTECT): Likewise.
29911
29912 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
29913
29914 PR rtl-optimization/69307
29915 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
29916 registers in modes that span more than one register.
29917
29918 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
29919
29920 PR target/69614
29921 * lra-constraints.c (delete_move_and_clobber): New.
29922 (remove_inheritance_pseudos): Use it.
29923
29924 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
29925
29926 PR ada/70017
29927 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
29928 the libcall is LCT_THROW.
29929 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
29930 for the checking routine.
29931
29932 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29933
29934 PR target/70131
29935 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
29936 optimization if we have direct move.
29937 (roundu32<mode>2_fprs): Likewise.
29938
29939 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
29940
29941 PR target/70123
29942 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
29943 be rematerialized.
29944 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
29945 Arguments swapped. All callers changed. Take reg_renumber into
29946 account, and Calculate and compare register ranges for hard regs.
29947
29948 2016-03-11 Jeff Law <law@redhat.com>
29949
29950 PR tree-optimization/70190
29951 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29952 Handle cases where we can not extract the taken edge, even though we
29953 found a constant value.
29954
29955 PR tree-optimization/64058
29956 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
29957 (num_coalesce_pairs): Move up earlier in file.
29958 (find_coalesce_pair): Initialize the INDEX field for each pair
29959 discovered.
29960 (compare_pairs): No longer sort on the elements in each pair.
29961 Instead break ties with the index of the coalesce pair.
29962
29963 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29964
29965 PR target/70002
29966 * config/aarch64/aarch64-protos.h
29967 (aarch64_save_restore_target_globals): New prototype.
29968 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
29969 Call the above when popping pragma.
29970 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
29971 New function.
29972 (aarch64_set_current_function): Rewrite using the above.
29973
29974 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29975
29976 PR tree-optimization/70177
29977 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
29978 (extract_ops_from_tree): ... this. In the 2 argument
29979 overload remove _1 suffix.
29980 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
29981 (extract_ops_from_tree): ... this.
29982 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
29983 Adjust callers.
29984 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
29985 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
29986 extract_ops_from_tree instead of 2 operand one.
29987
29988 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
29989
29990 PR tree-optimization/70013
29991 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
29992 for constant-pool entries.
29993
29994 2016-03-11 Jakub Jelinek <jakub@redhat.com>
29995
29996 PR rtl-optimization/70174
29997 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
29998 followed by gen_lowpart on force_reg instead of just gen_lowpart.
29999
30000 PR tree-optimization/70169
30001 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
30002 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
30003 for unknown codes.
30004
30005 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
30006 Jakub Jelinek <jakub@redhat.com>
30007
30008 PR target/70160
30009 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
30010 of uninitialized values.
30011
30012 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30013
30014 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
30015 define_expand.
30016 ("*trunctddd2"): New pattern definition.
30017 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
30018 TD->DD truncation.
30019
30020 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30021
30022 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
30023 definitions for BFP and DFP rounding modes.
30024 ("fixuns_truncdddi2", "fixuns_trunctddi2")
30025 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
30026 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
30027 ("fix_trunctf<mode>2"): Use the new constants instead of magic
30028 numbers.
30029
30030 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30031
30032 * config/s390/constraints.md: Adjust comment.
30033 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
30034 s390_decompose_addrstyle_without_index.
30035 * config/s390/predicates.md (shift_count_or_setmem_operand):
30036 Rename to setmem_operand.
30037 * config/s390/s390-protos.h
30038 (s390_decompose_shift_count): Rename to
30039 s390_decompose_addrstyle_without_index.
30040 * config/s390/s390.c (s390_decompose_shift_count)
30041 (s390_mem_constraint, print_shift_count_operand)
30042 (print_operand_address, print_operand): Rename
30043 s390_decompose_shift_count to
30044 s390_decompose_addrstyle_without_index and rename
30045 print_shift_count_operand to print_addrstyle_operand troughout the
30046 file.
30047 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
30048 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
30049 Rename shift_count_or_setmem_operand to setmem_operand.
30050 * config/s390/vx-builtins.md ("vec_insert<mode>")
30051 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
30052 nonmemory_operand.
30053
30054 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30055
30056 PR target/70168
30057 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
30058 Handle overlapping retval and newval.
30059
30060 2016-03-10 Nick Clifton <nickc@redhat.com>
30061
30062 PR target/7044
30063 * config/aarch64/aarch64.c
30064 (aarch64_override_options_after_change_1): When forcing
30065 flag_omit_frame_pointer to be true, use a special value that can
30066 be detected if this function is called again, thus preventing
30067 flag_omit_leaf_frame_pointer from being forced to be false.
30068
30069 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30070
30071 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
30072 Set x_flag_omit_leaf_frame_pointer when handling
30073 -momit-leaf-frame-pointer.
30074
30075 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30076
30077 PR lto/69589
30078 * cgraph.c (cgraph_node::dump): Dump split_part and
30079 indirect_call_target.
30080 * cgraph.h (cgraph_node): Add indirect_call_target flag.
30081 * ipa.c (has_addr_references_p): Cleanup.
30082 (is_indirect_call_target_p): New.
30083 (walk_polymorphic_call_targets): Do not mark virtuals that may be
30084 called indirectly as local.
30085 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
30086
30087 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30088
30089 PR ipa/69630
30090 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
30091 on cxa_pure_virtual.
30092
30093 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30094
30095 PR lto/69589
30096 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
30097
30098 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
30099
30100 PR lto/69589
30101 * tree.c (need_assembler_name_p): Only record main variant type names.
30102
30103 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30104
30105 PR target/70113.
30106 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
30107 Always define to 0 or 1.
30108 (TARGET_FIX_ERR_A53_843419): New macro.
30109 * config/aarch64/aarch64-elf-raw.h
30110 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
30111 * config/aarch64/aarch64-linux.h: Likewise.
30112 * config/aarch64/aarch64.c
30113 (aarch64_override_options_after_change_1): Do not default
30114 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
30115 843419 is on.
30116 (aarch64_attributes): Handle fix-cortex-a53-843419.
30117 (aarch64_can_inline_p): Likewise.
30118 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
30119
30120 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
30121 Jakub Jelinek <jakub@redhat.com>
30122
30123 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
30124 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
30125 DECL_COMMONS if flag_unconstrained_commons is set.
30126 * tree-dfa.c (get_ref_base_and_extent): Likewise.
30127 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
30128 (funconstrained-commons): Document.
30129
30130 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
30131
30132 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
30133 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
30134
30135 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
30136
30137 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
30138 has a proper number of elements.
30139
30140 2016-03-10 Alan Modra <amodra@gmail.com>
30141
30142 PR rtl-optimization/69195
30143 PR rtl-optimization/47992
30144 * ira.c (recorded_label_ref): Delete.
30145 (update_equiv_regs): Return void.
30146 (indirect_jump_optimize): New function.
30147 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
30148 before regstat_compute_ri. Don't rebuild_jump_labels here.
30149 Delete update_regstat.
30150
30151 2016-03-10 Richard Biener <rguenther@suse.de>
30152
30153 PR tree-optimization/70128
30154 * tree-ssa-structalias.c (set_uids_in_ptset): Set
30155 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
30156
30157 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30158
30159 PR tree-optimization/70152
30160 * tree-sra.c (replace_removed_params_ssa_names): Copy over
30161 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
30162
30163 PR target/70086
30164 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
30165 instead of gen_sse2_loadlpd.
30166 * config/i386/sse.md (*vec_concatv2df): Rename to...
30167 (vec_concatv2df): ... this.
30168
30169 PR tree-optimization/70127
30170 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
30171
30172 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30173
30174 PR c/68473
30175 PR c++/70105
30176 * diagnostic-show-locus.c (compatible_locations_p): New function.
30177 (layout::layout): Sanitize ranges using compatible_locations_p.
30178
30179 2016-03-09 David Malcolm <dmalcolm@redhat.com>
30180
30181 PR c/68473
30182 PR c++/70105
30183 * diagnostic-show-locus.c (layout_range::layout_range): Replace
30184 location_range param with three const expanded_locations * and a
30185 bool.
30186 (layout::layout): Replace call to
30187 rich_location::lazily_expand_location with get_expanded_location.
30188 Extract the range and perform location expansion here, passing
30189 the results to the layout_range ctor.
30190 * diagnostic.c (source_range::debug): Delete.
30191 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
30192 of rich_location::get_expanded_location.
30193 * gcc-rich-location.c (get_range_for_expr): Delete.
30194 (gcc_rich_location::add_expr): Reimplement to avoid the
30195 rich_location::add_range overload that took a location_range,
30196 passing a location_t instead.
30197
30198 2016-03-09 Richard Biener <rguenther@suse.de>
30199 Jakub Jelinek <jakub@redhat.com>
30200
30201 PR tree-optimization/70138
30202 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
30203 Also skip vect_double_reduction_def.
30204
30205 2016-03-09 Jakub Jelinek <jakub@redhat.com>
30206
30207 PR target/70049
30208 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
30209 if the operand is "m".
30210
30211 2016-03-09 Nathan Sidwell <nathan@acm.org>
30212
30213 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
30214
30215 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30216
30217 * config/i386/i386.c (processor_target_table): Fix cost table
30218 intialization order for znver1.
30219
30220 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30221
30222 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
30223 - becuase -> because.
30224 * ipa-reference.c (ignore_module_statics): Likewise.
30225 * cgraph.c (cgraph_node::get_body): Likewise.
30226 * ipa-inline.c (early_inliner): Likewise.
30227 * ipa-devirt.c (types_same_for_odr): Likewise.
30228 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
30229 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
30230
30231 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30232
30233 * tree-ssa-math-opts.c: Fix typo in comment.
30234
30235 2016-03-08 Jakub Jelinek <jakub@redhat.com>
30236
30237 PR target/70110
30238 * config/i386/i386.c (scalar_chain::make_vector_copies,
30239 scalar_chain::convert_reg): Call end_sequence in between
30240 get_insns and emit_conversion_insns rather than after both
30241 calls.
30242
30243 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
30244
30245 PR target/70064
30246 * config/i386/i386.h (machine_function): Add
30247 pc_thunk_call_expanded flag.
30248 (ix86_pc_thunk_call_expanded): New define.
30249 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
30250 (*set_got): Rename insn pattern from set_got.
30251 (*set_got_labelled): Rename inst pattern from set_got_labelled.
30252 * config/i386/i386.c (ix86_compute_frame_layout): Use
30253 ix86_pc_thunk_call_expanded to prevent red-zone.
30254
30255 2016-03-07 Martin Jambor <mjambor@suse.cz>
30256
30257 * hsa.h (hsa_get_ctor_statements): Declare.
30258 (hsa_get_dtor_statements): Likewise.
30259 (hsa_get_kernel_dispatch_type): Likewise.
30260 * hsa.c (hsa_get_ctor_statements): New function.
30261 (hsa_get_dtor_statements): Likewise.
30262 (hsa_get_kernel_dispatch_type): Likewise.
30263 * hsa-brig.c (hsa_cdtor_statements): Removed.
30264 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
30265 hsa_get_dtor_statements.
30266 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
30267 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
30268
30269 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30270
30271 * config/arm/arm-cores.def (cortex-r8): New.
30272 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
30273 * config/arm/arm-tune.md: Likewise.
30274 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
30275
30276 2016-03-07 Martin Sebor <msebor@redhat.com>
30277
30278 PR rtl-optimization/19705
30279 * doc/invoke.texi (Options That Control Optimization): Clarify
30280 -fno-branch-count-reg.
30281
30282 2016-02-26 Richard Biener <rguenther@suse.de>
30283 Jeff Law <law@redhat.com>
30284
30285 PR tree-optimization/69740
30286 * cfghooks.c (remove_edge): Request loop fixups if we delete
30287 an edge that might turn an irreducible loop into a natural
30288 loop.
30289 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
30290 Move after definition of loops_state_clear.
30291
30292 2016-03-07 Bin Cheng <bin.cheng@arm.com>
30293
30294 PR rtl-optimization/69052
30295 * rtlanal.c (commutative_operand_precedence): Set higher precedence
30296 to CONST_WIDE_INT.
30297
30298 2016-03-07 Tom de Vries <tom@codesourcery.com>
30299
30300 PR tree-optimization/70116
30301 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
30302 is_tm_ending stmts and ubsan/asan internal functions.
30303 (find_duplicate): Use it. Don't test is_tm_ending here.
30304
30305 2016-03-07 Richard Biener <rguenther@suse.de>
30306
30307 PR tree-optimization/70115
30308 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
30309 (propagate_constants_for_unrolling): Use replace_uses_by.
30310
30311 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
30312
30313 PR middle-end/69916
30314 * omp-low.c (struct oacc_loop): Add ifns.
30315 (new_oacc_loop_raw): Initialize it.
30316 (finish_oacc_loop): Clear mask & flags if no ifns.
30317 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
30318 (oacc_loop_xform_loop): Add ifns arg & adjust.
30319 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
30320
30321 2016-03-07 Richard Henderson <rth@redhat.com>
30322
30323 PR rtl-opt/70061
30324 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
30325 (insert_value_copy_on_edge): Likewise.
30326
30327 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30328
30329 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
30330
30331 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30332
30333 PR target/62281
30334 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
30335
30336 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30337
30338 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
30339
30340 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
30341
30342 Fix sseimul type attribute.
30343 * config/i386/znver1.md
30344 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
30345 znver1_sseimul_avx256_load) : Fix the type attribute.
30346 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
30347 pipe usage and latency.
30348
30349 2016-03-05 Jakub Jelinek <jakub@redhat.com>
30350
30351 PR c++/70084
30352 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
30353 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
30354 to the right type.
30355
30356 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30357
30358 PR c/69973
30359 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
30360
30361 PR rtl-optimization/69941
30362 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
30363 the reg share its mode.
30364
30365 2016-03-04 Jeff Law <law@redhat.com>
30366
30367 PR tree-optimization/69196
30368 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30369 If the both SSA_NAMEs are anonymous, then consider them unassociated
30370 and include the PHI in the statement count.
30371
30372 2016-03-05 Tom de Vries <tom@codesourcery.com>
30373
30374 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
30375 construct in oacc routine. Check for oacc region in oacc routine.
30376
30377 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30378
30379 PR target/70062
30380 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
30381 2016-02-22 changes, instead don't recurse if RECUR is already true.
30382 Don't change *dynamic_check if RECUR. Adjust recursive caller
30383 to pass true to the new argument.
30384 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
30385
30386 PR target/70059
30387 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
30388 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
30389 fixes.
30390 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
30391
30392 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
30393
30394 PR rtl-optimization/57676
30395 * lra-assigns.c (lra_assign): Guard test for maximum iterations
30396 with flag_checking.
30397
30398 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
30399
30400 * tree-vect-patterns.c (search_type_for_mask): Handle
30401 comparison of booleans.
30402
30403 2016-03-04 Jakub Jelinek <jakub@redhat.com>
30404
30405 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
30406 Fix @xref usage.
30407
30408 PR debug/69947
30409 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
30410 all other ops that have dw_val_class_die_ref operands,
30411 and DW_OP_GNU_entry_value.
30412
30413 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30414
30415 PR rtl-optimization/69904
30416 * config/arm/arm.c (arm_cannot_copy_insn_p):
30417 Return true for load-exclusive instructions.
30418
30419 2016-03-03 Jakub Jelinek <jakub@redhat.com>
30420
30421 PR target/70021
30422 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
30423 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
30424 the pattern no matter if it is used just by non-pattern, pattern
30425 or mix thereof.
30426 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
30427 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
30428 oprnd1 def_stmt is in pattern, don't look through it.
30429
30430 2016-03-03 Marek Polacek <polacek@redhat.com>
30431
30432 PR middle-end/70050
30433 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
30434
30435 2016-03-03 Martin Liska <mliska@suse.cz>
30436
30437 PR tree-optimization/70043
30438 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
30439 previous statement if we see a debug statement.
30440
30441 2016-03-03 Richard Biener <rguenther@suse.de>
30442
30443 PR tree-optimization/55936
30444 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
30445 parameter and guard unsafe equivalence use.
30446 (vrp_evaluate_conditional_warnv_with_ops): Always use
30447 safe equivalences but not via the quadratic compare_names
30448 helper.
30449
30450 2016-03-03 Michael Collison <michael.collison@linaro.org>
30451
30452 PR target/70014
30453 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
30454 for operand 1 to s_register_operand. Change predicate for operand
30455 2 to arm_not_immediate_operand.
30456
30457 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
30458
30459 * doc/tm.texi: Regenerated.
30460
30461 2016-03-02 Richard Henderson <rth@redhat.com>
30462
30463 PR rtl-opt/67145
30464 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
30465 simplification when all args are positive non-fixed registers.
30466
30467 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
30468
30469 * target.def (lra_p): Specify that new ports should use LRA.
30470
30471 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30472
30473 PR libgomp/69555
30474 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
30475 gimplify_type_sizes the type they refer to.
30476 (omp_notice_variable): Handle reference vars to VLAs.
30477 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
30478 reference to VLA decls in the second pass instead of first pass.
30479
30480 2016-03-02 Tom de Vries <tom@codesourcery.com>
30481
30482 PR tree-optimization/68659
30483 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
30484 new_expr == NULL_TREE.
30485 (get_new_name): Handle ADDR_EXPR.
30486
30487 2016-03-02 Bin Cheng <bin.cheng@arm.com>
30488
30489 PR rtl-optimization/69052
30490 * loop-invariant.c (canonicalize_address): New function.
30491 (inv_can_prop_to_addr_use): Check validity of address expression
30492 which is canonicalized by above function.
30493
30494 2016-03-02 Alan Modra <amodra@gmail.com>
30495
30496 PR ipa/69990
30497 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
30498 larger alignment.
30499
30500 2016-03-02 Jakub Jelinek <jakub@redhat.com>
30501
30502 PR target/70028
30503 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
30504 (*movhi_internal): Put mask moves from and to memory separately
30505 from moves from/to GPRs.
30506
30507 2016-03-02 Richard Biener <rguenther@suse.de>
30508
30509 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
30510 GENERIC expressions in GIMPLE.
30511
30512 2016-03-02 Richard Biener <rguenther@suse.de>
30513
30514 * config/i386/i386.c (type_natural_mode): Fix typo.
30515
30516 2016-03-02 Nick Clifton <nickc@redhat.com>
30517
30518 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
30519
30520 2016-03-02 Richard Biener <rguenther@suse.de>
30521 Uros Bizjak <ubizjak@gmail.com>
30522
30523 PR target/67278
30524 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
30525
30526 2016-03-02 Richard Biener <rguenther@suse.de>
30527
30528 PR middle-end/67278
30529 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
30530
30531 2016-03-02 Marek Polacek <polacek@redhat.com>
30532
30533 PR c/67854
30534 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
30535 "is promoted to" warning.
30536
30537 2016-03-01 DJ Delorie <dj@redhat.com>
30538
30539 * config.gcc: Deprecate mep-*.
30540
30541 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
30542
30543 PR middle-end/70025
30544 * lra-constraints.c (regno_val_use_in): New.
30545 (match_reload): Use it instead of regno_use_in.
30546
30547 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30548
30549 PR rtl-optimization/70007
30550 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
30551 references present in REG_EQUAL notes attached to non-SET patterns.
30552
30553 2016-03-01 Jeff Law <law@redhat.com>
30554
30555 PR tree-optimization/69196
30556 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30557 Appropriately clamp the number of statements to copy when the
30558 thread path does not traverse a loop backedge.
30559
30560 PR tree-optimization/69196
30561 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
30562 Do count some PHIs in the thread path against the insn count. Decrease
30563 final statement count by one as the control statement in the last
30564 block will get removed. Remove special cased code for handling PHIs
30565 in the last block.
30566
30567 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
30568
30569 PR target/70027
30570 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
30571 asm dialect alternatives to explicit GOTPCREL calls.
30572
30573 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
30574
30575 PR ada/70017
30576 * ira.c (do_reload): Issue warning for generic stack checking here...
30577 * reload1.c (reload): ...instead of here and streamline it.
30578
30579 2016-03-01 Nick Clifton <nickc@redhat.com>
30580
30581 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
30582
30583 2016-03-01 Richard Biener <rguenther@suse.de>
30584
30585 PR tree-optimization/69983
30586 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
30587 types and fall back to operand_equal_p.
30588
30589 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30590
30591 Revert
30592 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30593
30594 * config/s390/constraints.md ("jm8"): New constraint.
30595 * config/s390/predicates.md ("const_int_8bitset_operand"): New
30596 predicate.
30597 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
30598 into ...
30599 ("*setmem_long<setmem_and>"): New pattern.
30600 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
30601 into ...
30602 ("*setmem_long_31z<setmem_and>"): New pattern.
30603 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
30604 New substitution rules with the required attributes.
30605
30606
30607 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30608
30609 Revert
30610 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30611
30612 * gensupport.c (process_substs_on_one_elem): Split loop to
30613 complete mark_operands_used_in_match_dup on all expressions in the
30614 vector first.
30615 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30616 and remove function.
30617
30618 2016-03-01 Richard Biener <rguenther@suse.de>
30619
30620 PR middle-end/70022
30621 * fold-const.c (fold_indirect_ref_1): Fix range checking for
30622 vector BIT_FIELD_REF extract.
30623
30624 2016-03-01 Richard Biener <rguenther@suse.de>
30625
30626 PR tree-optimization/69994
30627 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
30628
30629 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
30630
30631 PR tree-optimization/69956
30632 * tree-vect-stmts.c (supportable_widening_operation): Support
30633 multi-step conversion of boolean vectors.
30634 (supportable_narrowing_operation): Likewise.
30635
30636 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30637
30638 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
30639 anymore.
30640
30641 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30642
30643 * config/s390/subst.md (DSI_VI): New mode iterator.
30644 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
30645 * config/s390/vector.md ("vec_set<mode>"): Move expander before
30646 the insn definition.
30647 ("*vec_set<mode>"): Change predicate and add alternative to
30648 support only either register or const_int operands as element
30649 selector.
30650 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
30651 operands.
30652 ("vec_extract<mode>"): New expander.
30653 ("*vec_extract<mode>"): New insn definition supporting reg and
30654 const_int element selectors.
30655 ("*vec_extract<mode>_plus"): New insn definition supporting
30656 reg+const_int element selectors.
30657 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
30658 following expander+insn definition.
30659 ("<vec_shifts_name><mode>3"): New expander.
30660 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
30661
30662 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30663
30664 * config/s390/s390.md ("*tabort_1"): Change predicate to
30665 nonmemory_operand. Add a second alternative to cover
30666 register as well as const int operands.
30667 ("*tabort_1_plus"): New pattern definition.
30668
30669 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30670
30671 * config/s390/s390.md ("*ashrdi3_cc_31")
30672 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
30673 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
30674 Merge insn definitions into ...
30675 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30676 New pattern definition.
30677 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
30678 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
30679 ("*ashr<mode>3_and"): Merge insn definitions into ...
30680 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
30681 New pattern definition.
30682 * config/s390/subst.md ("addr_style_op_cc_subst")
30683 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
30684 substitutions patterns plus attributes.
30685 Add ashiftrt to SUBST iterator.
30686
30687 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30688
30689 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
30690 op2 to nonmemory_operand.
30691 ("*<shift>di3_31", "*<shift>di3_31_and"):
30692 Merge into single pattern definition ...
30693 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
30694 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
30695 pattern definition ...
30696 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
30697 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
30698 iterator.
30699
30700 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30701
30702 * config/s390/predicates.md (const_int_6bitset_operand): New
30703 predicate.
30704 * config/s390/s390.md: Include subst.md.
30705 ("rotl<mode>3"): New expander.
30706 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
30707 ...
30708 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
30709 * config/s390/subst.md: New file.
30710
30711 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30712
30713 * config/s390/s390.md ("op_type", "atype", "length" attributes):
30714 Remove RRR type. It doesn't really exist.
30715 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
30716 attributes.
30717 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
30718 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
30719 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
30720 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
30721 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
30722 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
30723 `enabled' attribute.
30724
30725 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30726
30727 * gensupport.c (process_substs_on_one_elem): Split loop to
30728 complete mark_operands_used_in_match_dup on all expressions in the
30729 vector first.
30730 (adjust_operands_numbers): Inline into process_substs_on_one_elem
30731 and remove function.
30732
30733 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30734
30735 PR target/69706
30736 * config/sparc/sparc.c (NWORDS_UP): Rename to...
30737 (CEIL_NWORDS): ...this. Use CEIL macro.
30738 (compute_fp_layout): Adjust to above renaming.
30739 (function_arg_union_value): Likewise.
30740 (sparc_arg_partial_bytes): Likewise.
30741 (sparc_function_arg_advance): Likewise.
30742
30743 2016-02-29 Jeff Law <law@redhat.com>
30744
30745 PR tree-optimization/70005
30746 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
30747 where an object with a boolean range is compared against a value
30748 outside [0..1].
30749
30750 PR tree-optimization/69999
30751 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
30752 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
30753 loop cleanups.
30754
30755 2016-02-29 Richard Biener <rguenther@suse.de>
30756
30757 PR tree-optimization/69994
30758 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
30759 (get_unary_op): Look through nop conversions.
30760 (ops_equal_values_p): New function, look for equality diregarding
30761 nop conversions.
30762 (eliminate_plus_minus_pair): Use ops_equal_values_p
30763 (repropagate_negates): Do not use get_unary_op here.
30764
30765 2016-02-29 Martin Liska <mliska@suse.cz>
30766
30767 * system.h: Poison ENABLE_CHECKING macro.
30768
30769 2016-02-29 Martin Liska <mliska@suse.cz>
30770
30771 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
30772 is presented in dump flags.
30773 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30774 (hsa_regalloc): Likewise.
30775
30776 2016-02-19 Richard Biener <rguenther@suse.de>
30777
30778 PR tree-optimization/69980
30779 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
30780 permutation of those we need to keep.
30781
30782 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
30783
30784 PR target/69706
30785 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
30786 (NWORDS_UP): ...this
30787 (init_cumulative_args): Minor tweaks.
30788 (sparc_promote_function_mode): Likewise.
30789 (scan_record_type): Delete.
30790 (traverse_record_type): New function template.
30791 (classify_data_t): New structure type.
30792 (classify_registers): New inline function.
30793 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
30794 exhausted. Instantiate traverse_record_type on classify_registers and
30795 deal with the case of a structure passed in slot #15 with no FP field
30796 in the first word.
30797 (assign_data_t): New structure type.
30798 (compute_int_layout): New static function.
30799 (compute_fp_layout): Likewise.
30800 (count_registers): New inline function.
30801 (assign_int_registers): New static function.
30802 (assign_fp_registers): Likewise.
30803 (assign_registers): New inline function.
30804 (function_arg_record_value_1): Delete.
30805 (function_arg_record_value_2): Likewise.
30806 (function_arg_record_value_3): Likewise.
30807 (function_arg_record_value): Adjust to above changes. Instantiate
30808 traverse_record_type on count_registers to first count the number of
30809 registers to be used and then on assign_registers to assign them.
30810 (function_arg_union_value): Adjust to above renaming.
30811 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
30812 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
30813 case of a structure passed in slot #15
30814 (sparc_function_arg_advance): Likewise.
30815 (function_arg_padding): Minor tweak.
30816
30817 2016-02-29 Richard Biener <rguenther@suse.de>
30818
30819 PR tree-optimization/69720
30820 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
30821 the adjustment_def path for possibly vectorized defs.
30822 (vect_create_epilog_for_reduction): Handle vectorized initial
30823 defs properly.
30824
30825 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
30826
30827 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
30828
30829 2016-02-27 Jeff Law <law@redhat.com>
30830
30831 Revert
30832 2016-02-26 Richard Biener <rguenther@suse.de>
30833 Jeff Law <law@redhat.com>
30834
30835 PR tree-optimization/69740
30836 * cfghooks.c (remove_edge): Request loop fixups if we delete
30837 an edge that might turn an irreducible loop into a natural
30838 loop.
30839
30840 2016-02-27 Jakub Jelinek <jakub@redhat.com>
30841
30842 PR rtl-optimization/69896
30843 * tree-vect-generic.c (get_compute_type): Avoid single element
30844 vector types.
30845
30846 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
30847
30848 Rename the AArch64 tuning option and related functions to enable the
30849 Newton series for the reciprocal square root to reflect its
30850 approximative characteristic.
30851
30852 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
30853 function to "aarch64_emit_approx_rsqrt".
30854 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
30855 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
30856 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
30857 (xgene1_tunings): Likewise.
30858 (use_rsqrt_p): Likewise.
30859 (aarch64_emit_swrsqrt): Use new function name.
30860 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
30861 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
30862 text explaining this option.
30863 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
30864
30865 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30866
30867 PR target/69969
30868 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
30869 complain about -mallow-movmisalign without -mvsx if
30870 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
30871
30872 2016-02-26 Joel Sherrill <joel@rtems.org>
30873
30874 * config.gcc: Add x86_64-*-rtems*.
30875 * config/i386/rtems-64.h: New file.
30876
30877 2016-02-26 Joel Sherrill <joel@rtems.org>
30878
30879 * config.gcc: Add aarch64-*-rtems*.
30880 * config/aarch64/rtems.h: New file.
30881
30882 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
30883
30884 PR target/69946
30885 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
30886 shift amount using %h. Add comment.
30887
30888 2016-02-26 Richard Biener <rguenther@suse.de>
30889 Jeff Law <law@redhat.com>
30890
30891 PR tree-optimization/69740
30892 * cfghooks.c (remove_edge): Request loop fixups if we delete
30893 an edge that might turn an irreducible loop into a natural
30894 loop.
30895
30896 2016-02-26 Martin Jambor <mjambor@suse.cz>
30897
30898 PR middle-end/69920
30899 * tree-sra.c (sra_modify_assign): Do not remove loads of
30900 uninitialized aggregates to SSA_NAMEs.
30901
30902 2016-02-26 Richard Henderson <rth@redhat.com>
30903
30904 PR target/69709
30905 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
30906 pseudo in case the target rtx matches the source of the left
30907 shift.
30908
30909 2016-02-26 Martin Jambor <mjambor@suse.cz>
30910
30911 PR hsa/69568
30912 * hsa.h (hsa_type_packed_p): Declare.
30913 * hsa.c (hsa_type_packed_p): New function.
30914 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
30915 loads.
30916 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
30917 * hsa-brig.c (emit_basic_insn): Likewise.
30918
30919 2016-02-26 Martin Jambor <mjambor@suse.cz>
30920
30921 pr hsa/69674
30922 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
30923 pointers.
30924 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
30925
30926 2016-02-26 Martin Jambor <mjambor@suse.cz>
30927
30928 * hsa.h (is_a_helper): New overload for hsa_op_immed for
30929 hsa_op_with_type operands.
30930 (hsa_unsigned_type_for_type): Declare.
30931 * hsa.c (hsa_unsigned_type_for_type): New function.
30932 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
30933 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
30934 the finalizer. Do not emit extra move.
30935
30936 2016-02-26 Martin Jambor <mjambor@suse.cz>
30937
30938 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
30939 atomic operations in private segment.
30940
30941 2016-02-26 Martin Jambor <mjambor@suse.cz>
30942
30943 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
30944 statements to wi->info. Also disallow omp simd constructs.
30945 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
30946 for not gridifying. Dump special string for omp_for.
30947
30948 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30949
30950 PR target/69245
30951 * config/aarch64/aarch64.c (aarch64_set_current_function):
30952 Save/restore target globals when switching to
30953 target_option_default_node.
30954
30955 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30956
30957 PR target/69613
30958 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
30959 Return 0 if !SHIFT_COUNT_TRUNCATED.
30960
30961 2016-02-26 Jakub Jelinek <jakub@redhat.com>
30962 Eric Botcazou <ebotcazou@adacore.com>
30963
30964 PR rtl-optimization/69891
30965 * dse.c (scan_insn): If we can't figure out memset arguments
30966 or they are non-constant, call clear_rhs_from_active_local_stores.
30967
30968 2016-02-26 Martin Liska <mliska@suse.cz>
30969
30970 * doc/extend.texi: Mention clog10, clog10f an clog10l
30971 in Builtins section.
30972
30973 2016-02-26 Martin Liska <mliska@suse.cz>
30974
30975 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
30976 CHECKING_P.
30977 (resolve_args_picking_1): Likewise.
30978 * dwarf2out.h (struct GTY): Likewise.
30979
30980 2016-02-26 Martin Liska <mliska@suse.cz>
30981
30982 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
30983 with flag_checking.
30984 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
30985
30986 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
30987 Martin Liska <mliska@suse.cz>
30988
30989 * doc/install.texi: Mention --enable-valgrind-annotations.
30990
30991 2016-02-26 Richard Biener <rguenther@suse.de>
30992
30993 PR tree-optimization/69551
30994 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
30995 looking through aliases adjust DECL_PT_UID to refer to the
30996 ultimate alias target.
30997
30998 2016-02-25 Martin Liska <mliska@suse.cz>
30999
31000 PR middle-end/69919
31001 * alloc-pool.c (after_memory_report): New variable.
31002 * alloc-pool.h (base_pool_allocator ::release): Do not use
31003 the infrastructure if after_memory_report.
31004 * toplev.c (toplev::main): Mark after memory report.
31005
31006 2016-02-25 Richard Biener <rguenther@suse.de>
31007
31008 PR tree-optimization/48795
31009 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
31010
31011 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
31012
31013 PR driver/68463
31014 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
31015 offloading is enabled and -fopenacc or -fopenmp is specified.
31016 (CRTOFFLOADEND): Likewise.
31017 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
31018 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
31019 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
31020 (offload_objects_file_name): New static var.
31021 (tool_cleanup): Remove offload_objects_file_name file.
31022 (find_offloadbeginend): Replace with ...
31023 (find_crtoffloadtable): ... this.
31024 (run_gcc): Remove offload_argc and offload_argv.
31025 Get offload_objects_file_name from -foffload-objects=... option.
31026 Read names of object files with offload from this file, pass them to
31027 compile_images_for_offload_targets. Don't call find_offloadbeginend and
31028 don't pass offloadbegin and offloadend to the linker. Don't pass
31029 offload non-LTO files to the linker, because now they're not claimed.
31030
31031 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
31032
31033 PR ipa/69630
31034 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
31035 on builtin_unreachable.
31036
31037 2016-02-25 Jakub Jelinek <jakub@redhat.com>
31038
31039 PR rtl-optimization/69896
31040 * regcprop.c: Include cfgrtl.h.
31041 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
31042 than remembered mode, either delete it (if noop_move_p), or
31043 treat like copy_p but not noop_p instruction.
31044
31045 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31046
31047 PR debug/69705
31048 * dwarf2out.c (gen_variable_die): Work around buggy LTO
31049 - allow NULL decl for Fortran DW_TAG_common_block variables.
31050
31051 2016-02-24 Jason Merrill <jason@redhat.com>
31052
31053 * common.opt (flifetime-dse): Add -flifetime-dse=1.
31054
31055 2016-02-24 Richard Biener <rguenther@suse.de>
31056 Jakub Jelinek <jakub@redhat.com>
31057
31058 PR middle-end/69760
31059 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
31060 conditionally executed ops to well-defined overflow behavior.
31061
31062 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31063
31064 PR middle-end/69915
31065 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
31066 elements.
31067
31068 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31069
31070 PR rtl-optimization/69886
31071 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
31072 argument. Use it when checking validity of set instructions.
31073 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
31074 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
31075 callsite.
31076 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
31077 * store-motion.c (find_moveable_store): Update
31078 can_assign_to_reg_without_clobbers_p callsite.
31079
31080 2016-02-24 Richard Biener <rguenther@suse.de>
31081
31082 PR middle-end/68963
31083 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
31084 bogus check.
31085 (record_nonwrapping_iv): Do not fall back to the low/high bound
31086 for non-constant IV bases if the stmt is not always executed.
31087
31088 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31089
31090 * config/arm/arm-cores.def (cortex-a32): New entry.
31091 * config/arm/arm-tables.opt: Regenerate.
31092 * config/arm/arm-tune.md: Regenerate.
31093 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
31094 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
31095 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
31096 for -mcpu and -mtune.
31097
31098 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31099
31100 PR target/69875
31101 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
31102 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
31103 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
31104 (atomic_loaddi_1): Delete.
31105 (atomic_loaddi): Rewrite expander using the above changes.
31106
31107 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31108
31109 PR c/69918
31110 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
31111 2 to 3.
31112
31113 2016-02-24 Jakub Jelinek <jakub@redhat.com>
31114 Richard Biener <rguenth@suse.de>
31115
31116 PR middle-end/69909
31117 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
31118 set_mem_attributes if tem is SSA_NAME which got expanded
31119 as a MEM.
31120
31121 2016-02-24 Richard Biener <rguenther@suse.de>
31122
31123 PR tree-optimization/69907
31124 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
31125 end of permutations for BB vectorization.
31126
31127 2016-02-24 Christian Bruel <christian.bruel@st.com>
31128
31129 * config/arm/arm-c.c (arm_option_override): Initialize
31130 target_option_current_node.
31131 * config/arm/arm.c (arm_pragma_target_parse): Replace
31132 build_target_option_node call by target_option_current_node.
31133 Set target_option_current_node.
31134 Fix comments.
31135
31136 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
31137
31138 PR target/69810
31139 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
31140 define_insn_and_split to define_insn.
31141 (zero_extendqi<mode>2_dot2): Same.
31142 (extendqi<mode>2_dot): Same.
31143 (extendqi<mode>2_dot2): Same.
31144
31145 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31146
31147 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
31148 and add bypass for AES{D,E} and AESMC pairs.
31149 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
31150 and AESMC pairs.
31151
31152 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
31153
31154 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
31155 series for reciprocal square root in Exynos M1.
31156
31157 2016-02-23 Martin Sebor <msebor@redhat.com>
31158
31159 PR c/69759
31160 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
31161 __builtin_alloca_with_align.
31162
31163 2016-02-23 Richard Henderson <rth@redhat.com>
31164
31165 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
31166 (ix86_register_pragmas): Remove __seg_tls.
31167 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
31168 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
31169 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
31170 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
31171 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
31172 * doc/extend.texi (__seg_tls): Remove item.
31173
31174 2016-02-23 Richard Biener <rguenther@suse.de>
31175
31176 * alloc-pool.h (struct allocation_object): Make id member
31177 conditional on CHECKING_P again.
31178 (get_instance): Adjust.
31179 (base_pool_allocator): Likewise.
31180
31181 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
31182
31183 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
31184 (parallelize_loops): In OpenACC kernels mode, set n_threads to
31185 zero.
31186 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
31187 flag_openacc.
31188 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
31189
31190 2016-02-23 Richard Biener <rguenther@suse.de>
31191
31192 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
31193 * bitmap.h (struct bitmap_usage): Likewise.
31194 (bitmap_move): Declare.
31195 * bitmap.c (register_overhead): Take size_t argument.
31196 (bitmap_move): New function.
31197 * df-problems.c (df_rd_transfer_function): Use bitmap_move
31198 to properly account overhead.
31199 * tree.c (free_node): Use tree_size.
31200
31201 2016-02-23 Jakub Jelinek <jakub@redhat.com>
31202
31203 PR c++/69902
31204 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
31205 when inverting comparison.
31206
31207 PR c/69900
31208 * common.opt (Wunreachable-code): Add Warning flag.
31209
31210 2016-02-23 Mark Wielaard <mjw@redhat.com>
31211 Jakub Jelinek <jakub@redhat.com>
31212
31213 PR c/69911
31214 * cgraphunit.c (check_global_declaration): Check main_input_filename
31215 and DECL_SOURCE_FILE are not NULL.
31216
31217 2016-02-23 Martin Jambor <mjambor@suse.cz>
31218
31219 PR tree-optimization/69666
31220 * tree-sra.c (sra_modify_assign): Do not attempt to create
31221 default_def replacements for unscalarizable regions.
31222
31223 2016-02-20 Mark Wielaard <mjw@redhat.com>
31224
31225 PR c/28901
31226 * cgraphunit.c (check_global_declaration): Check level of
31227 warn_unused_const_variable and main_input_filename.
31228 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
31229 (-Wunused-variable): For C implies -Wunused-const-variable=1.
31230 (-Wunused-const-variable): Explain levels 1 and 2.
31231
31232 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31233
31234 PR target/69888
31235 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
31236 identical arguments. Formatting and spelling fixes.
31237
31238 PR target/69885
31239 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
31240 be specified.
31241
31242 PR target/69894
31243 PR target/69895
31244 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
31245 and m68k-devices.def.
31246 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
31247 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
31248
31249 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
31250
31251 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
31252 and HImode registers.
31253
31254 2016-02-22 Richard Biener <rguenther@suse.de>
31255
31256 PR tree-optimization/69882
31257 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
31258 preserve permutations present because of gaps.
31259 (vect_supported_load_permutation_p): Always continue checking
31260 permutations after vect_attempt_slp_rearrange_stmts.
31261
31262 2016-02-22 Bin Cheng <bin.cheng@arm.com>
31263
31264 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
31265 min_profitable_estimate, rather than min_profitable_iters.
31266
31267 2016-02-22 Jakub Jelinek <jakub@redhat.com>
31268
31269 PR target/69885
31270 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
31271 SImode for last match_operand.
31272
31273 2016-02-22 Martin Liska <mliska@suse.cz>
31274
31275 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
31276 return bitsize - 1 as the return value.
31277
31278 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
31279
31280 PR target/69806
31281 PR target/54089
31282 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
31283 Handle negative shift counts.
31284 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
31285 force_reg on the shift constant.
31286 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
31287 (lshrsi3_d): Handle negative shift counts.
31288
31289 2016-02-22 Richard Biener <rguenther@suse.de>
31290 Tom de Vries <tom@codesourcery.com>
31291
31292 * graph.c: Include dumpfile.h.
31293 (print_graph_cfg): Split into three overloads.
31294 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
31295
31296 2016-02-22 Tom de Vries <tom@codesourcery.com>
31297
31298 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
31299 dump-fn.
31300
31301 2016-02-22 Richard Biener <rguenther@suse.de>
31302
31303 PR ipa/37448
31304 * ipa-inline-transform.c (inline_call): When not updating
31305 overall summaries adjust self size by the growth estimate.
31306 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
31307 hash-set, do not update overall summaries here. Renamed from ...
31308 (inline_to_all_callers): ... this which is now wrapping the
31309 above and performing delayed overall summary update.
31310 (early_inline_small_functions): Delay updating of the overall
31311 summary.
31312
31313 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
31314
31315 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
31316 variable.
31317
31318 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31319
31320 PR driver/69805
31321 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
31322 :%* in %:gt() argument.
31323 (greater_than_spec_func): Adjust for expecting only numbers,
31324 if there are more than two numbers, compare the last two.
31325
31326 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
31327
31328 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
31329 -Wnarrowing with -std.
31330
31331 2016-02-19 Jakub Jelinek <jakub@redhat.com>
31332
31333 PR c++/69851
31334 * expr.c (store_field): Don't use bit-field path if exp is
31335 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
31336 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
31337 and the assignment can be performed by bitwise copy. Formatting
31338 fix.
31339
31340 PR middle-end/69838
31341 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
31342 call copy_reg_eh_region_note_forward on before and/or after sequences
31343 and remove note from insn if it no longer can throw.
31344
31345 PR target/69820
31346 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
31347 if TARGET_AVX512BW.
31348
31349 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31350
31351 * config/s390/vector.md: Add missing commutative operand markers
31352 to the patterns which qualify for one.
31353 * config/s390/vx-builtins.md: Likewise.
31354
31355 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31356
31357 * config/s390/vector.md (VI, VI_QHS): Add single element vector
31358 types to mode iterators.
31359 (vec_double): ... and mode attribute.
31360 * config/s390/vx-builtins.md (non_vec_int): Likewise.
31361
31362 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31363
31364 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
31365 Change the predicate of op2 from nonimmediate to general and let
31366 reload fix it if necessary.
31367
31368 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31369
31370 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
31371
31372 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31373
31374 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
31375 mode.
31376
31377 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31378
31379 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
31380 * config/s390/s390.c (s390_expand_vec_movstr): New function.
31381 * config/s390/s390.md ("movstr<P:mode>"): Call
31382 s390_expand_vec_movstr.
31383
31384 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31385
31386 * config/s390/s390.md: Add missing output modifier for operand 1
31387 to print it as address properly.
31388
31389 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31390
31391 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
31392 * config/s390/2964.md: New file.
31393 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
31394 of insn grouping attributes depending on the CPU level.
31395 (s390_get_unit_mask): New function.
31396 (s390_sched_score): Remove the OOO from the scheduling macros.
31397 Add loop to calculate a score for the instruction mix.
31398 (s390_sched_reorder): Likewise plus improve debug output.
31399 (s390_sched_variable_issue): Rename macros as above. Calculate
31400 the unit distances after actually scheduling an insn. Improve
31401 debug output.
31402 (s390_sched_init): Clear last_scheduled_unit_distance array.
31403 * config/s390/s390.md: Include 2964.md.
31404
31405 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31406
31407 PR target/69671
31408 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
31409 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
31410 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
31411 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
31412 *avx512f_<code>v8div16qi2_mask_1): New insns.
31413
31414 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31415
31416 PR target/68404
31417 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
31418 2016-02-09 change.
31419
31420 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
31421 earlyclobber from target. Use wF constraint for fused memory
31422 address.
31423 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
31424
31425 2016-02-18 Jakub Jelinek <jakub@redhat.com>
31426 Martin Liska <mliska@suse.cz>
31427
31428 PR sanitizer/69863
31429 * cfgexpand.c (asan_sanitize_stack_p): New function.
31430 (partition_stack_vars): Use the function.
31431 (expand_stack_vars): Likewise.
31432 (defer_stack_allocation): Likewise.
31433 (expand_used_vars): Likewise.
31434
31435 2016-02-18 Richard Biener <rguenther@suse.de>
31436
31437 PR middle-end/69553
31438 * fold-const.c (operand_equal_p): Properly compare offsets for
31439 IMAGPART_EXPR and ARRAY_REF.
31440
31441 2016-02-18 Nick Clifton <nickc@redhat.com>
31442
31443 PR target/62254
31444 PR target/69610
31445 * config/arm/arm.c (arm_option_override_internal): Disable
31446 interworking if the target does not support thumb instructions.
31447 (arm_reload_in_hi): Handle the case where a register to register
31448 move needs reloading because there is no simple pattern to handle
31449 it.
31450 (arm_reload_out_hi): Likewise.
31451
31452 2016-02-18 Richard Biener <rguenther@suse.de>
31453
31454 PR middle-end/69854
31455 * match.pd: Don't use fold_binary or fold_unary for folding
31456 constants.
31457
31458 2016-02-17 Jakub Jelinek <jakub@redhat.com>
31459
31460 PR c++/69850
31461 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
31462 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
31463 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
31464 warn on gimple_no_warning_p statements.
31465
31466 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
31467
31468 * doc/extend.texi (C++ Attributes): Correct description of
31469 warn_unused type attribute.
31470
31471 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31472
31473 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
31474 correct instruction.
31475
31476 2016-02-17 Richard Biener <rguenther@suse.de>
31477
31478 PR rtl-optimization/69609
31479 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
31480 (find_traces_1_round): When ending a trace update cached priority
31481 of successors.
31482 (bb_to_key): Use cached priority when available.
31483 (copy_bb): Initialize cached priority.
31484 (reorder_basic_blocks_software_trace_cache): Likewise.
31485
31486 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31487
31488 PR target/69161
31489 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
31490 New predicate.
31491 (aarch64_comparison_operator): Break overly long line into two.
31492 (aarch64_comparison_operation): Likewise.
31493 * config/aarch64/aarch64.md (cstorecc4): Use
31494 aarch64_comparison_operator_mode instead of
31495 aarch64_comparison_operator.
31496 (cstore<mode>4): Likewise.
31497 (aarch64_cstore<mode>): Likewise.
31498 (*cstoresi_insn_uxtw): Likewise.
31499 (cstore<mode>_neg): Likewise.
31500 (*cstoresi_neg_uxtw): Likewise.
31501
31502 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31503
31504 PR target/69161
31505 * config/arm/predicates.md (arm_comparison_operator_mode):
31506 New predicate.
31507 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
31508 instead of arm_comparison_operator.
31509 (*mov_negscc): Likewise.
31510 (*mov_notscc): Likewise.
31511 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
31512 (*thumb2_mov_negscc): Likewise.
31513 (*thumb2_mov_negscc_strict_it): Likewise.
31514 (*thumb2_mov_notscc): Likewise.
31515 (*thumb2_mov_notscc_strict_it): Likewise.
31516
31517 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
31518
31519 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
31520 Add missing return.
31521
31522 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
31523
31524 * config/visium/visium.c (machine_libfunc_index): New enum.
31525 (machine_libfuncs): New structure.
31526 (visium_libfuncs): New static variable.
31527 (TARGET_INIT_LIBFUNCS): Define to...
31528 (visium_init_libfuncs): ...this. New function.
31529 (expand_block_move_4): Use the appropriate libfunc.
31530 (expand_block_move_2): Likewise.
31531 (expand_block_move_1): Likewise.
31532 (expand_block_set_4): Likewise.
31533 (expand_block_set_2): Likewise.
31534 (expand_block_set_1): Likewise.
31535 (visium_trampoline_init): Likewise.
31536
31537 2016-02-17 Nick Clifton <nickc@redhat.com>
31538
31539 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
31540 TI's devices.csv file as of March 2016.
31541
31542 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
31543
31544 PR Target/48344
31545 * opts-global.c (handle_common_deferred_options): Introduce and
31546 initialize two global variables to remember command-line options
31547 specifying a stack-limiting register.
31548 * opts.h: Add extern declarations of the two new global variables.
31549 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
31550 variable based on the values of the two new global variables.
31551
31552 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31553
31554 PR c/69835
31555 * common.opt (Wnonnull-compare): New warning.
31556 * doc/invoke.texi (-Wnonnull): Remove text about comparison
31557 of arguments against NULL.
31558 (-Wnonnull-compare): Document.
31559 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
31560 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
31561 * passes.def (pass_warn_nonnull_compare): Add.
31562 * gimple-ssa-nonnull-compare.c: New file.
31563
31564 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31565
31566 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
31567 AARCH64_EXTRA_TUNE_RECIP_SQRT.
31568
31569 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31570
31571 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
31572 reciprocal sqrt for -mlow-precision-recip-sqrt.
31573
31574 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31575 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31576
31577 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
31578 always use lane loads to construct non-constant vectors.
31579
31580 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31581
31582 * config/aarch64/aarch64.md
31583 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
31584 constraints for operand 3.
31585 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
31586
31587 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31588 Richard Biener <rguenther@suse.de>
31589
31590 PR tree-optimization/69820
31591 * tree-vect-patterns.c (type_conversion_p): Return false if
31592 *orig_type is unsigned single precision or boolean.
31593 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
31594 Formatting fix.
31595
31596 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31597
31598 PR rtl-optimization/69764
31599 PR rtl-optimization/69771
31600 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
31601 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
31602
31603 2016-02-16 Richard Biener <rguenther@suse.de>
31604
31605 PR tree-optimization/69776
31606 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
31607 sets from caller.
31608 (indirect_refs_may_alias_p): Likewise.
31609 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
31610 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
31611 according to tbaa_p.
31612 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
31613 (optimize_stmt): For redundant store discovery do not allow tbaa.
31614
31615 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
31616
31617 PR tree-optimization/69714
31618 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
31619 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
31620
31621 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
31622
31623 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
31624 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
31625 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
31626 * config/arc/arc.c (arc_init): Check FPU options.
31627 (get_arc_condition_code): Handle new CC_FPU* modes.
31628 (arc_select_cc_mode): Likewise.
31629 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
31630 register pair only. Allow access for ARCv2 accumulator.
31631 (gen_compare_reg): Whenever we have FPU support use FPU compare
31632 instructions.
31633 (arc_reorg): Don't generate brcc insns when FPU compare
31634 instructions are involved.
31635 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
31636 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
31637 floating point emulation.
31638 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
31639 (REVERSE_CONDITION): Add new CC_FPU* modes.
31640 (TARGET_FP_SP_BASE): Define.
31641 (TARGET_FP_DP_BASE): Likewise.
31642 (TARGET_FP_SP_FUSED): Likewise.
31643 (TARGET_FP_DP_FUSED): Likewise.
31644 (TARGET_FP_SP_CONV): Likewise.
31645 (TARGET_FP_DP_CONV): Likewise.
31646 (TARGET_FP_SP_SQRT): Likewise.
31647 (TARGET_FP_DP_SQRT): Likewise.
31648 (TARGET_FP_DP_AX): Likewise.
31649 * config/arc/arc.md (ARCV2_ACC): New constant.
31650 (type): New fpu type attribute.
31651 (SDF): Conditional iterator.
31652 (cstore<mode>, cbranch<mode>): Change expand condition.
31653 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
31654 handles FPU/FPX cases as well.
31655 * config/arc/arc.opt (mfpu): New option.
31656 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
31657 Renamed.
31658 (adddf3, muldf3, subdf3): Removed.
31659 * config/arc/predicates.md (proper_comparison_operator): Recognize
31660 CC_FPU* modes.
31661 * config/arc/fpu.md: New file.
31662 * doc/invoke.texi (ARC Options): Document mfpu option.
31663
31664 2016-02-16 Richard Biener <rguenther@suse.de>
31665
31666 PR rtl-optimization/69291
31667 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
31668 noce_operand_ok check.
31669
31670 2016-02-16 Tom de Vries <tom@codesourcery.com>
31671
31672 PR lto/67709
31673 * omp-low.c (simd_clone_create): Remove call to
31674 symtab->call_cgraph_insertion_hooks.
31675
31676 2016-02-16 Jakub Jelinek <jakub@redhat.com>
31677
31678 PR tree-optimization/69802
31679 * tree-ssa-reassoc.c (update_range_test): If op is
31680 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
31681 op == 1 test of precision 1 integral op, otherwise handle
31682 that case as op itself. Fix up formatting.
31683 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
31684 up formatting.
31685
31686 2016-02-16 Richard Biener <rguenther@suse.de>
31687
31688 PR tree-optimization/69586
31689 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
31690 types for conversion sources.
31691
31692 2016-02-16 Richard Biener <rguenther@suse.de>
31693
31694 PR middle-end/69801
31695 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
31696 mask OEP_ADDRESS_OF.
31697
31698 2016-02-16 Alan Modra <amodra@gmail.com>
31699
31700 PR target/68973
31701 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
31702 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
31703 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
31704 (p8_mtvsrwz): New.
31705 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31706 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
31707 (p8_fmrgow_<mode>): Likewise.
31708 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
31709 changes.
31710 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
31711 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
31712 to use movdi_internal64. Remove op0_di.
31713 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
31714
31715 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
31716
31717 Add support for the FCCMP insn types
31718
31719 * config/aarch64/aarch64.md (fccmp): Change insn type.
31720 (fccmpe): Likewise.
31721 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
31722 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
31723 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
31724 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
31725 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
31726 * config/arm/types.md (fccmps): Add new insn type.
31727 (fccmpd): Likewise.
31728
31729 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
31730
31731 * alias.c (get_alias_set): Fix a typo in comment.
31732
31733 2016-02-15 Richard Biener <rguenther@suse.de>
31734
31735 PR tree-optimization/69595
31736 * match.pd: Complete range test simplification to true.
31737
31738 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
31739
31740 PR rtl-optimization/69648
31741 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
31742 pic_offset_table_rtx.
31743
31744 PR rtl-optimization/69752
31745 * ira.c (update_equiv_regs): When looking for more than a single SET,
31746 also take other side effects into account.
31747
31748 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31749
31750 * config/s390/s390.c (s390_function_profiler): Add a new sequence
31751 for z900+ CPUs in 31-bit mode.
31752
31753 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
31754
31755 * common/config/s390/s390-common.c (s390_supports_split_stack):
31756 New function.
31757 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
31758 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
31759 * config/s390/s390.c (struct machine_function): New field
31760 split_stack_varargs_pointer.
31761 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
31762 in s390_emit_prologue.
31763 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
31764 vararg pointer.
31765 (morestack_ref): New global.
31766 (SPLIT_STACK_AVAILABLE): New macro.
31767 (s390_expand_split_stack_prologue): New function.
31768 (s390_live_on_entry): New function.
31769 (s390_va_start): Use split-stack vararg pointer if appropriate.
31770 (s390_asm_file_end): Emit the split-stack note sections.
31771 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
31772 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
31773 (UNSPECV_SPLIT_STACK_CALL): New unspec.
31774 (UNSPECV_SPLIT_STACK_DATA): New unspec.
31775 (split_stack_prologue): New expand.
31776 (split_stack_space_check): New expand.
31777 (split_stack_data): New insn.
31778 (split_stack_call): New expand.
31779 (split_stack_call_*): New insn.
31780 (split_stack_cond_call): New expand.
31781 (split_stack_cond_call_*): New insn.
31782
31783 2016-02-15 Richard Biener <rguenther@suse.de>
31784
31785 PR tree-optimization/69783
31786 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
31787 Add trivially correct cases.
31788
31789 2016-02-15 Tom de Vries <tom@codesourcery.com>
31790
31791 PR lto/69655
31792 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
31793 do_force_output.
31794 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
31795
31796 2016-02-15 Richard Biener <rguenther@suse.de>
31797
31798 PR tree-optimization/69776
31799 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
31800 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
31801 indicate whether we can use TBAA to disambiguate against stores.
31802 Use alias-set zero if not.
31803 (visit_reference_op_store): Do not use TBAA when looking up
31804 redundant stores.
31805 * tree-ssa-pre.c (compute_avail): Use TBAA here.
31806 (eliminate_dom_walker::before_dom_children): But not when looking
31807 up redundant stores.
31808
31809 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
31810
31811 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
31812
31813 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31814
31815 * config/i386/znver1.md
31816 (znver1_pop, znver1_pop_mem,
31817 znver1_load_imov_double_store,
31818 znver1_load_imov_direct_store,
31819 znver1_load_imov_direct_load,
31820 znver1_load_imov_double_load): Add new.
31821 (znver1_insn, znver1_insn_load): Add icmov type.
31822 (znver1_sseavx_fma,
31823 znver1_sseavx_fma_load,
31824 znver1_avx256_fma,
31825 znver1_avx256_fma_load): Fix pipe usage.
31826
31827 2016-02-14 Alan Modra <amodra@gmail.com>
31828
31829 PR target/68973
31830 * reload.c (find_reloads_address_1): For pre/post-inc/dec
31831 with an invalid hard reg, reload just the reg not the entire
31832 pre/post-inc/dec address expression.
31833
31834 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31835
31836 PR target/67260
31837 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
31838 fixed R1_REG scratch reg.
31839 (sibcall_value_pcrel_fdpic): Likewise.
31840
31841 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
31842
31843 PR target/67636
31844 PR target/64345
31845 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
31846
31847 2016-02-12 Walter Lee <walt@tilera.com>
31848
31849 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
31850 * config/tilegx/t-tilegx: Likewise.
31851
31852 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31853
31854 PR other/69554
31855 * diagnostic-show-locus.c (struct line_span): New struct.
31856 (layout::get_first_line): Delete.
31857 (layout::get_last_line): Delete.
31858 (layout::get_num_line_spans): New member function.
31859 (layout::get_line_span): Likewise.
31860 (layout::print_heading_for_line_span_index_p): Likewise.
31861 (layout::get_expanded_location): Likewise.
31862 (layout::calculate_line_spans): Likewise.
31863 (layout::m_first_line): Delete.
31864 (layout::m_last_line): Delete.
31865 (layout::m_line_spans): New field.
31866 (layout::layout): Update comment. Replace m_first_line and
31867 m_last_line with m_line_spans, replacing their initialization
31868 with a call to calculate_line_spans.
31869 (diagnostic_show_locus): When printing source lines and
31870 annotations, rather than looping over a single span
31871 of lines, instead loop over each line_span within
31872 the layout, with an inner loop over the lines within them.
31873 Call the context's start_span callback when changing line spans.
31874 * diagnostic.c (diagnostic_initialize): Initialize start_span.
31875 (diagnostic_build_prefix): Break out the building of the location
31876 part of the string into...
31877 (diagnostic_get_location_text): ...this new function, rewriting
31878 it from nested ternary expressions to a sequence of "if"
31879 statements.
31880 (default_diagnostic_start_span_fn): New function.
31881 * diagnostic.h (diagnostic_start_span_fn): New typedef.
31882 (diagnostic_context::start_span): New field.
31883 (default_diagnostic_start_span_fn): New prototype.
31884
31885 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31886
31887 PR driver/69779
31888 * gcc.c (driver::finalize): Fix cleanup of "specs".
31889
31890 2016-02-12 David Malcolm <dmalcolm@redhat.com>
31891
31892 PR driver/69265
31893 PR driver/69453
31894 * gcc.c (driver::driver): Initialize m_option_suggestions.
31895 (driver::~driver): Clean up m_option_suggestions.
31896 (suggest_option): Convert to...
31897 (driver::suggest_option): ...this, and split out into
31898 driver::build_option_suggestions and find_closest_string.
31899 (driver::build_option_suggestions): New function, from
31900 first half of suggest_option. Special-case
31901 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
31902 the sanitizer_opts array. For options of enum types, add the
31903 various enum values to the candidate strings.
31904 (driver::handle_unrecognized_options): Remove "const".
31905 * gcc.h (driver::handle_unrecognized_options): Likewise.
31906 (driver::build_option_suggestions): New decl.
31907 (driver::suggest_option): New decl.
31908 (driver::m_option_suggestions): New field.
31909 * opts-common.c (add_misspelling_candidates): New function.
31910 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
31911 and make non-static.
31912 * opts.h (sanitizer_opts): New array decl.
31913 (add_misspelling_candidates): New function decl.
31914 * spellcheck.c (find_closest_string): New function.
31915 * spellcheck.h (find_closest_string): New function decl.
31916
31917 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31918
31919 PR rtl-optimization/69764
31920 PR rtl-optimization/69771
31921 * optabs.c (expand_binop_directly): For shift_optab_p, force
31922 convert_modes with VOIDmode if xop1 has VOIDmode.
31923
31924 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
31925
31926 PR target/69729
31927 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
31928 to correctly determine instrumentation thunks.
31929
31930 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31931
31932 PR ipa/69241
31933 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
31934 type by reference, force lhs on the call.
31935
31936 PR ipa/68672
31937 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
31938 Compute retval and retbnd early in all cases if split_part_return_p
31939 and return_bb is not EXIT. Remove all clobber stmts and reset
31940 all debug stmts that refer to SSA_NAMEs defined in split part,
31941 except if it is retval, in that case replace the old retval with the
31942 lhs of the call to the split part.
31943
31944 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31945
31946 revert:
31947 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31948
31949 PR middle-end/66726
31950 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31951 whose result is used in PHI.
31952 (maybe_optimize_range_tests): Likewise.
31953 (final_range_test_p): Likweise.
31954
31955 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
31956
31957 PR middle-end/66726
31958 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
31959 whose result is used in PHI.
31960 (maybe_optimize_range_tests): Likewise.
31961 (final_range_test_p): Likweise.
31962
31963 2016-02-12 Jakub Jelinek <jakub@redhat.com>
31964
31965 * cgraph.c: Spelling fixes - behaviour -> behavior and
31966 neighbour -> neighbor.
31967 * target.def: Likewise.
31968 * sel-sched.c: Likewise.
31969 * config/mips/mips.c: Likewise.
31970 * config/arc/arc.md: Likewise.
31971 * config/arm/cortex-a57.md: Likewise.
31972 * config/arm/arm.c: Likewise.
31973 * config/arm/neon.md: Likewise.
31974 * config/arm/arm-c.c: Likewise.
31975 * config/vms/vms-c.c: Likewise.
31976 * config/s390/s390.c: Likewise.
31977 * config/i386/znver1.md: Likewise.
31978 * config/i386/i386.c: Likewise.
31979 * config/ia64/hpux-unix2003.h: Likewise.
31980 * config/msp430/msp430.md: Likewise.
31981 * config/rx/rx.c: Likewise.
31982 * config/rx/rx.md: Likewise.
31983 * config/aarch64/aarch64-simd.md: Likewise.
31984 * config/aarch64/aarch64.c: Likewise.
31985 * config/nvptx/nvptx.c: Likewise.
31986 * config/bfin/bfin.c: Likewise.
31987 * config/cris/cris.opt: Likewise.
31988 * config/rs6000/rs6000.c: Likewise.
31989 * target.h: Likewise.
31990 * spellcheck.c: Likewise.
31991 * ira-build.c: Likewise.
31992 * tree-inline.c: Likewise.
31993 * builtins.c: Likewise.
31994 * lra-constraints.c: Likewise.
31995 * explow.c: Likewise.
31996 * hwint.h: Likewise.
31997 * targhooks.c: Likewise.
31998 * tree-vect-data-refs.c: Likewise.
31999 * expr.c: Likewise.
32000 * doc/tm.texi: Likewise.
32001 * doc/extend.texi: Likewise.
32002 * doc/install.texi: Likewise.
32003 * doc/md.texi: Likewise.
32004 * tree-ssa-tail-merge.c: Likewise.
32005 * sched-int.h: Likewise.
32006 * match.pd: Likewise.
32007 * sched-ebb.c: Likewise.
32008 * target.def (omit_struct_return_reg): Likewise.
32009 * gimple-ssa-isolate-paths.c: Likewise.
32010 (find_implicit_erroneous_behaviour): Renamed to...
32011 (find_implicit_erroneous_behavior): ... this.
32012 (find_explicit_erroneous_behaviour): Renamed to...
32013 (find_explicit_erroneous_behavior): ... this.
32014 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
32015
32016 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
32017
32018 PR rtl-optimization/64682
32019 PR rtl-optimization/69567
32020 PR rtl-optimization/69737
32021 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
32022 in I2 as well, just lose it.
32023
32024 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32025
32026 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
32027 New variable.
32028 (aarch64_last_printed_tune_string): Likewise.
32029 (aarch64_declare_function_name): Only output .arch assembler
32030 directive if it will be different from the previously output
32031 directive. Same for .tune comment but only if -dA is set.
32032 (aarch64_start_file): New function.
32033 (TARGET_ASM_FILE_START): Define.
32034
32035 2016-02-11 David Malcolm <dmalcolm@redhat.com>
32036
32037 PR plugins/69758
32038 * Makefile.in (PLUGIN_HEADERS): Add params.list.
32039
32040 2016-02-11 Jakub Jelinek <jakub@redhat.com>
32041
32042 PR target/65313
32043 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
32044 -Wmaybe-uninitialized warning.
32045
32046 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
32047
32048 PR target/69713
32049 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
32050
32051 2016-02-11 Richard Biener <rguenther@suse.de>
32052
32053 PR rtl-optimization/69291
32054 * ifcvt.c (noce_try_store_flag_constants): Do not allow
32055 subexpressions affected by changing the result.
32056
32057 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
32058
32059 PR target/69148
32060 * lra-constraints.c (curr_insn_transform): Find in/out operands
32061 for secondary memory moves. Update dups.
32062
32063 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
32064
32065 PR tree-optimization/69652
32066 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
32067 to nested loop, did source re-formatting, skip debug statements,
32068 add check on statement with volatile operand, remove dead scalar
32069 statements.
32070
32071 2016-02-10 Jakub Jelinek <jakub@redhat.com>
32072 Patrick Palka <ppalka@gcc.gnu.org>
32073
32074 PR ipa/69241
32075 PR c++/69649
32076 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
32077 calls if the return type is TREE_ADDRESSABLE.
32078 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
32079 * ipa-split.c (split_function): Fix doubled "we" in comment.
32080 Use void return type for the split part even if
32081 !split_point->split_part_set_retval.
32082
32083 2016-02-10 Bin Cheng <bin.cheng@arm.com>
32084
32085 PR tree-optimization/68021
32086 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
32087 when computing the value of biv cand by itself.
32088
32089 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32090
32091 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
32092 (cortexa57_tunings): Likewise.
32093 (cortexa72_tunings): Likewise.
32094 (arch_macro_fusion_pair_p): Add support for AES fusion.
32095 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
32096 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
32097 Allow virtual registers before reload so early scheduling works.
32098 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
32099 correct latency and pipeline.
32100 (cortex_a57_crypto_complex): Likewise.
32101 (cortex_a57_crypto_xor): Likewise.
32102 (define_bypass): Add AES bypass.
32103
32104 2016-02-10 Richard Biener <rguenther@suse.de>
32105
32106 PR tree-optimization/69726
32107 * passes.def: Add DCE pass before late uninit.
32108 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
32109 really fixup if-conversions job.
32110
32111 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
32112
32113 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
32114 (arm_cortex_a57_tune): Likewise.
32115 (aarch_macro_fusion_pair_p): Add support for AES fusion.
32116 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
32117
32118 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
32119
32120 * timevar.def (TV_PHASE_DBGINFO): Delete.
32121 (TV_PHASE_CHECK_DBGINFO): Likewise.
32122 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
32123
32124 2016-02-10 Richard Biener <rguenther@suse.de>
32125
32126 PR tree-optimization/69719
32127 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32128 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
32129
32130 2016-02-09 Andrew Pinski <apinski@cavium.com>
32131
32132 PR tree-opt/69282
32133 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
32134 get_vcond_mask_icode returns false.
32135
32136 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32137
32138 PR target/68404
32139 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
32140 an ADDIS that adds a pointer to a large constant that sets the
32141 upper16 bits with a load operation.
32142
32143 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32144
32145 PR target/68532
32146 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
32147 order.
32148 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
32149 endian.
32150 (vzipq_s16): Likewise.
32151 (vzipq_s32): Likewise.
32152 (vzipq_f32): Likewise.
32153 (vzipq_u8): Likewise.
32154 (vzipq_u16): Likewise.
32155 (vzipq_u32): Likewise.
32156 (vzipq_p8): Likewise.
32157 (vzipq_p16): Likewise.
32158
32159 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
32160
32161 PR target/68532
32162 * config/arm/arm.c (neon_endian_lane_map): New function.
32163 (neon_vector_pair_endian_lane_map): New function.
32164 (arm_evpc_neon_vuzp): Allow for big endian lane order.
32165 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
32166 endian.
32167 (vuzpq_s16): Likewise.
32168 (vuzpq_s32): Likewise.
32169 (vuzpq_f32): Likewise.
32170 (vuzpq_u8): Likewise.
32171 (vuzpq_u16): Likewise.
32172 (vuzpq_u32): Likewise.
32173 (vuzpq_p8): Likewise.
32174 (vuzpq_p16): Likewise.
32175
32176 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
32177
32178 PR target/69634
32179 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
32180 debug insns.
32181
32182 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
32183
32184 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
32185 truncate const_int operand 1 to QImode.
32186
32187 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
32188
32189 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
32190 corresponding to an abnormal edge.
32191
32192 2016-02-09 Tom de Vries <tom@codesourcery.com>
32193
32194 PR tree-optimization/69599
32195 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
32196 function.
32197 (find_func_aliases_for_builtin_call, find_func_clobbers)
32198 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
32199 partition.
32200
32201 2016-02-09 Richard Biener <rguenther@suse.de>
32202
32203 PR tree-optimization/69715
32204 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
32205 LHS on calls as non-rewritable.
32206
32207 2016-02-09 Tom de Vries <tom@codesourcery.com>
32208
32209 PR lto/69707
32210 * lto-wrapper.c (append_diag_options): New function.
32211 (compile_offload_image): Call append_diag_options.
32212
32213 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
32214
32215 PR other/69722
32216 * doc/extend.texi (Flag Output Operands): Correct sectioning.
32217 Minor copy-edit to fix verb tenses.
32218
32219 2016-02-08 Jakub Jelinek <jakub@redhat.com>
32220
32221 PR tree-optimization/69209
32222 * ipa-split.c (split_function): If split part is not
32223 returning retval, retval has gimple type but is not
32224 gimple value, force it into a SSA_NAME first.
32225
32226 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
32227
32228 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
32229 outdated section.
32230
32231 2016-02-08 Jason Merrill <jason@redhat.com>
32232
32233 PR c++/69631
32234 * convert.c (convert_to_integer_1): Check dofold on truncation
32235 distribution.
32236 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
32237 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
32238 Rename from *_nofold.
32239 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
32240 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
32241
32242 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
32243
32244 PR target/60410
32245 * tree.c (build_common_tree_nodes): Remove short_double argument.
32246 All callers changed.
32247 * tree.h (build_common_tree_nodes): Adjust declaration.
32248 * doc/invoke.texi (-fshort-double): Remove documentation.
32249 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
32250 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
32251 * lto-wrapper.c (merge_and_complain, append_compiler_options)
32252 (append_linker_options): Don't handle OPT_fshort_double.
32253
32254 PR rtl-optimization/68730
32255 * lra-remat.c (insn_to_cand_activation): New static variable.
32256 (lra_remat): Allocate and free it.
32257 (create_cand): New arg activation. Initialize a field in
32258 insn_to_cand_activation if it is nonnull.
32259 (create_cands): Pass the activation insn to create_cand when making
32260 a candidate involving an output reload. Reorganize code a little.
32261 (do_remat): Keep track of active status of candidates in a separate
32262 bitmap.
32263
32264 2016-02-08 Richard Biener <rguenther@suse.de>
32265
32266 PR tree-optimization/69719
32267 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32268 Properly use absolute of the difference of the two offsets to
32269 compare or adjust the segment length.
32270
32271 2016-02-08 Richard Biener <rguenther@suse.de>
32272 Jeff Law <law@redhat.com>
32273
32274 PR target/68273
32275 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
32276 types for anonymous SSA names.
32277
32278 2016-02-08 Richard Biener <rguenther@suse.de>
32279
32280 PR rtl-optimization/69274
32281 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
32282
32283 2016-02-08 Jeff Law <law@redhat.com>
32284
32285 PR tree-optimization/65917
32286 * tree-ssa-dom.c (record_temporary_equivalences): Record both
32287 equivalences from if (x == y) style conditionals.
32288 (loop_depth_of_name): Remove.
32289 (record_equality): Remove loop depth check.
32290 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
32291 (const_and_copies::record_const_or_copy_raw): New member function.
32292 * tree-ssa-scopedtables.c
32293 (const_and_copies::record_const_or_copy_raw): New, factored out of
32294 (const_and_copies::record_const_or_copy): Call new member function.
32295
32296 2016-02-05 Jeff Law <law@redhat.com>
32297
32298 PR tree-optimization/68541
32299 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
32300 (count_stmts_in_block): New function.
32301 (poor_ifcvt_candidate_code): Likewise.
32302 (is_feasible_trace): Add some heuristics to determine when path
32303 splitting is profitable.
32304 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
32305 is a diamond with a single exit.
32306
32307 2016-02-05 Martin Sebor <msebor@redhat.com>
32308
32309 PR c++/69662
32310 * doc/invoke.texi: Update -Wplacement-new to take an optional
32311 argument.
32312
32313 2016-02-06 Richard Henderson <rth@redhat.com>
32314
32315 PR c/69643
32316 * tree.c (tree_nop_conversion_p): Do not strip casts into or
32317 out of non-standard address spaces.
32318
32319 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32320
32321 PR rtl-optimization/69691
32322 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
32323
32324 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
32325
32326 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
32327 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
32328 (*ieee128_mfvsrd_64bit): Likewise.
32329 (*ieee128_mfvsrd_32bit): Likewise.
32330
32331 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
32332
32333 PR target/69369
32334 Revert r232560:
32335 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32336
32337 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32338 instrumented_version.
32339
32340 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
32341
32342 * doc/invoke.texi (Optimize Options): In table of --param options
32343 rename second occurrence of tracer-min-branch-ratio to
32344 tracer-min-branch-probability, rename
32345 tracer-min-branch-ratio-feedback to
32346 tracer-min-branch-probability-feedback and clarify description,
32347 rename sched-spec-state-edge-prob-cutoff to
32348 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
32349 to selsched-insns-to-rename, rename lto-minpartition to
32350 lto-min-partition, delete reorder-blocks-duplicate and
32351 reorder-blocks-duplicate-feedback.
32352
32353 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32354
32355 * config/s390/s390.c (s390_register_info_set_ranges): Remove
32356 superfluous loops.
32357
32358 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
32359
32360 * doc/extend.texi: S/390: Correct some typos.
32361
32362 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32363
32364 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
32365
32366 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32367
32368 PR target/69625
32369 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
32370 (s390_register_info_gprtofpr): Use new macros above.
32371 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
32372 its name.
32373 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
32374 its name. Adjust restore and save gpr ranges.
32375 (s390_register_info_set_ranges): New function.
32376 (s390_register_info): Use new macros above. Call
32377 s390_register_info_set_ranges.
32378 (s390_optimize_register_info): Likewise.
32379 (s390_hard_regno_rename_ok): Use new macros.
32380 (s390_hard_regno_scratch_ok): Likewise.
32381 (s390_emit_epilogue): Likewise.
32382 (s390_can_use_return_insn): Likewise.
32383 (s390_optimize_prologue): Likewise.
32384 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
32385
32386 2016-02-05 Jakub Jelinek <jakub@redhat.com>
32387
32388 PR bootstrap/69677
32389 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
32390 alignment fixes.
32391 (ix86_option_override_internal): Disable TARGET_STV even for
32392 -m{incoming,preferred}-stack-boundary=3.
32393
32394 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32395
32396 * config.gcc: Mark deprecated rtems targets as obsolete.
32397
32398 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
32399
32400 PR rtl-optimization/64682
32401 PR rtl-optimization/69567
32402 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
32403 before I2 only if the register is both used and set in I2.
32404
32405 2016-02-04 DJ Delorie <dj@redhat.com>
32406
32407 * config/msp430/msp430.c (msp430_start_function): Add function type.
32408
32409 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32410
32411 PR fortran/69368
32412 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
32413
32414 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
32415
32416 PR rtl-optimization/69577
32417 Revert:
32418 2015-10-29 Richard Henderson <rth@redhat.com>
32419
32420 PR target/68124
32421 PR rtl-opt/67609
32422 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
32423 sse check to the exact conditions of PR 67609.
32424
32425 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
32426
32427 PR target/69667
32428 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
32429 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
32430 not allowed into the traditional Altivec registers.
32431 (movtd_64bit_nodm): Likewise.
32432 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
32433
32434 2016-02-04 David Malcolm <dmalcolm@redhat.com>
32435
32436 * config/aarch64/cortex-a57-fma-steering.c
32437 (aarch64_register_fma_steering): Remove "static" from arguments
32438 to register_pass.
32439
32440 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
32441
32442 PR target/69619
32443 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
32444 twice when complex.
32445
32446 2016-02-04 Mike Frysinger <vapier@gentoo.org>
32447
32448 * doc/invoke.texi: Delete -mno-fma4.
32449
32450 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
32451
32452 PR rtl-optimization/69577
32453 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
32454 (find_subregs_of_mode): Update accordingly. Iterate over partial
32455 definitions.
32456
32457 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
32458
32459 * config/arm/arm-protos.h (neon_reinterpret): Remove.
32460 * config/arm/arm.c (neon_reinterpret): Remove.
32461 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
32462 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
32463 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
32464 vreinterpretti): Remove.
32465 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
32466 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
32467 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
32468 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
32469 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
32470 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
32471 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
32472 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
32473 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
32474 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
32475 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
32476 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
32477 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
32478 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
32479 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
32480 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
32481 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
32482 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
32483 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
32484 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
32485 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
32486 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
32487 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
32488 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
32489 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
32490 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
32491 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
32492 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
32493 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
32494 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
32495 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
32496 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
32497 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
32498 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
32499 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
32500 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
32501 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
32502 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
32503 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
32504 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
32505 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
32506 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
32507 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
32508 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
32509 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
32510 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
32511 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
32512 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
32513 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
32514 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
32515 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
32516 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
32517 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
32518 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
32519 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
32520 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
32521 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
32522 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
32523 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
32524 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
32525 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
32526 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
32527 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
32528 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
32529 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
32530 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
32531 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
32532 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
32533 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
32534 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
32535 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
32536 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
32537 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
32538 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
32539 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
32540 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
32541 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
32542 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
32543 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
32544 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
32545 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
32546 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
32547 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
32548 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
32549 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
32550 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
32551 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
32552 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
32553 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
32554 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
32555 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
32556 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
32557 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
32558 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
32559 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
32560 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
32561 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
32562 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
32563 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
32564 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
32565 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
32566 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
32567 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
32568
32569 2016-02-04 Martin Liska <mliska@suse.cz>
32570
32571 PR sanitizer/69276
32572 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
32573 that are gimple_store_p.
32574 (maybe_instrument_call): Likewise.
32575
32576 2016-02-04 Bin Cheng <bin.cheng@arm.com>
32577
32578 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
32579 register scaling out of memory reference and comment why.
32580
32581 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32582
32583 PR target/65932
32584 PR target/67714
32585 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
32586 folding the source of a SET.
32587
32588 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32589
32590 PR target/65932
32591 PR target/67714
32592 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
32593 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
32594
32595 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
32596
32597 PR target/65932
32598 PR target/67714
32599 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
32600 HImode.
32601
32602 2016-02-04 Christian Bruel <christian.bruel@st.com>
32603
32604 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
32605 * config/arm/arm.c (arm_set_current_function): Likewise.
32606
32607 2016-02-04 Jakub Jelinek <jakub@redhat.com>
32608 Ilya Enkovich <enkovich.gnu@gmail.com>
32609 H.J. Lu <hongjiu.lu@intel.com>
32610
32611 PR target/69454
32612 * config/i386/i386.c (convert_scalars_to_vector): Remove
32613 stack alignment fixes.
32614 (ix86_option_override_internal): Disable TARGET_STV if stack
32615 might not be aligned enough.
32616 (ix86_minimum_alignment): Assert that TARGET_STV is false.
32617
32618 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
32619
32620 * config/i386/x86-tune.def: Disable default prefetching
32621 for -march=znver1.
32622
32623 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32624 Vladimir Makarov <vmakarov@redhat.com>
32625
32626 PR target/69461
32627 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
32628 in validating fused toc addresses.
32629
32630 2016-02-03 Jakub Jelinek <jakub@redhat.com>
32631
32632 PR c/69627
32633 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
32634 range->m_caret fields if range->m_show_caret_p is false.
32635
32636 PR target/69644
32637 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
32638 Force oldval into register if it does not satisfy reg_or_short_operand
32639 predicate. Fix up formatting.
32640
32641 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
32642 Alexandre Oliva <aoliva@redhat.com>
32643
32644 PR target/69461
32645 * lra-constraints.c (simplify_operand_subreg): Check additionally
32646 address validity after potential reloading.
32647 (process_address_1): Check insns validity. In case of failure do
32648 nothing.
32649
32650 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
32651
32652 PR target/69118
32653 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
32654 Fix target.
32655
32656 2016-02-02 Jakub Jelinek <jakub@redhat.com>
32657
32658 * wide-int.cc (canonize_uhwi): New function.
32659 (wi::divmod_internal): Use it.
32660
32661 2016-02-02 James Norris <jnorris@codesourcery.com>
32662
32663 * gimplify.c (omp_notice_variable): Add usage check.
32664
32665 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
32666
32667 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
32668 like LE, GE, LT, GT when emitting relational operator.
32669
32670 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32671
32672 * ira-costs.c (find_costs_and_classes): Add extra argument.
32673 * target.def (ira_change_pseudo_allocno_class): Add parameter.
32674 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
32675 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
32676 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
32677 Add best_class parameter, and return it if not ALL_REGS.
32678 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
32679 Add parameter.
32680 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
32681 Update target hook.
32682
32683 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
32684
32685 * config/aarch64/aarch64.c
32686 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
32687 (aarch64_ira_change_pseudo_allocno_class): New function.
32688
32689 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
32690
32691 PR target/67032
32692 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
32693
32694 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32695
32696 * config/avr/avr.c (avr_option_override): Set
32697 PARAM_ALLOW_STORE_DATA_RACES to 1.
32698
32699 2016-02-02 Richard Biener <rguenther@suse.de>
32700
32701 PR tree-optimization/69595
32702 * match.pd: Add range test simplifications to true/false.
32703
32704 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
32705
32706 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
32707 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
32708 instead.
32709
32710 2016-02-02 Richard Biener <rguenther@suse.de>
32711
32712 PR tree-optimization/69606
32713 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
32714 info on the result before moving a stmt.
32715
32716 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
32717
32718 PR middle-end/68542
32719 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
32720 branch with vector comparison.
32721 * config/i386/sse.md (VI48_AVX): New mode iterator.
32722 (define_expand "cbranch<mode>4): Add support for conditional branch
32723 with vector comparison.
32724 * tree-vect-loop.c (optimize_mask_stores): New function.
32725 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
32726 has_mask_store field of vect_info.
32727 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
32728 vectorized loops having masked stores after vec_info destroy.
32729 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
32730 correspondent macros.
32731 (optimize_mask_stores): Add prototype.
32732
32733 2016-02-02 Alan Modra <amodra@gmail.com>
32734
32735 PR target/69548
32736 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
32737 allow subregs.
32738
32739 2016-02-02 Alan Modra <amodra@gmail.com>
32740
32741 PR target/68662
32742 * config/rs6000/rs6000.c (need_toc_init): New var, set it
32743 whenever toc_label_name used.
32744 (rs6000_file_start): Don't set up toc section here,
32745 (rs6000_output_function_epilogue): do so here instead,
32746 (rs6000_xcoff_file_start): and here.
32747 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
32748 (load_toc_aix_di): Likewise.
32749
32750 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32751
32752 PR rtl-optimization/69592
32753 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
32754 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
32755 (num_sign_bit_copies_binary_arith_p): New inline function.
32756 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
32757
32758 2016-02-01 Jeff Law <law@redhat.com>
32759
32760 PR tree-optimization/69580
32761 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
32762 * tree-ssa-threadbackward.c
32763 (fsm_find_control_statement_thread_paths): Do not try to walk
32764 through large PHI nodes.
32765
32766 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32767
32768 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
32769 when count is incremented above limit, don't analyze further
32770 insns afterwards.
32771
32772 * omp-low.c (oacc_parse_default_dims): Avoid
32773 -Wsign-compare warning, make sure value fits into int
32774 rather than just unsigned int.
32775
32776 2016-02-01 Bin Cheng <bin.cheng@arm.com>
32777
32778 PR tree-optimization/67921
32779 * fold-const.c (split_tree): New parameters. Convert pointer
32780 type variable part to proper type before negating.
32781 (fold_binary_loc): Pass new arguments to split_tree.
32782
32783 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
32784
32785 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
32786 (nvptx_goacc_validate_dims): Extend to handle global defaults.
32787 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
32788 * doc/tm.texti: Rebuilt.
32789 * doc/invoke.texi (fopenacc-dim): Document.
32790 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
32791 (append_compiler_options): Likewise.
32792 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
32793 (oacc_parse_default_dims): New.
32794 (oacc_validate_dims): Add USED arg. Select non-unity default when
32795 possible.
32796 (oacc_loop_fixed_partitions): Return mask of used partitions.
32797 (oacc_loop_auto_partitions): Emit dump info.
32798 (oacc_loop_partition): Return mask of used partitions.
32799 (execute_oacc_device_lower): Parse default dimension arg. Adjust
32800 loop partitioning and validation calls.
32801
32802 2016-02-01 Richard Biener <rguenther@suse.de>
32803
32804 PR middle-end/69556
32805 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
32806
32807 2016-02-01 Richard Biener <rguenther@suse.de>
32808
32809 PR tree-optimization/69574
32810 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
32811 of asserting return chrec_dont_know.
32812
32813 2016-02-01 Martin Liska <mliska@suse.cz>
32814
32815 * mem-stats-traits.h: Add copyright header.
32816 * mem-stats.h: Likewise.
32817
32818 2016-02-01 Richard Biener <rguenther@suse.de>
32819
32820 PR tree-optimization/69579
32821 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
32822 Do not propagate through abnormal PHI results.
32823
32824 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
32825
32826 * postreload.c (reload_cse_simplify): Remove dead code.
32827
32828 2016-02-01 Jakub Jelinek <jakub@redhat.com>
32829
32830 PR rtl-optimization/69570
32831 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
32832 if there is more than one set, not if there is a single set.
32833
32834 2016-02-01 Richard Henderson <rth@redhat.com>
32835
32836 PR rtl-opt/69535
32837 * combine.c (make_compound_operation): When looking through a
32838 subreg, make sure to re-extend to the width of the outer mode.
32839
32840 2016-01-30 Jakub Jelinek <jakub@redhat.com>
32841
32842 PR tree-optimization/69546
32843 * wide-int.cc (wi::divmod_internal): For unsigned division
32844 where both operands fit into uhwi, if o1 is 1 and o0 has
32845 msb set, if divident_prec is larger than bits per hwi,
32846 clear another quotient word and return 2 instead of 1.
32847 Similarly for remainder with msb in HWI set, if dividend_prec
32848 is larger than bits per hwi.
32849
32850 2016-01-29 Martin Jambor <mjambor@suse.cz>
32851
32852 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
32853 Use short lowercase names.
32854 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
32855 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
32856 acq_rel one. Protect warning agains segfaults if
32857 get_memory_order_name returns NULL.
32858 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
32859 with release semantics. Do not warn if get_memory_order already did.
32860 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
32861 semantics. Fix check for relaxed or acquire semantics. Do not warn
32862 if get_memory_order already did.
32863
32864 2016-01-29 Sebastian Pop <s.pop@samsung.com>
32865
32866 * doc/install.texi: Document that isl-0.16 is supported.
32867
32868 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
32869
32870 PR target/69299
32871 * config/i386/constraints.md (Bm): Describe as special memory
32872 constraint.
32873 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
32874 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32875 * genpreds.c (struct constraint_data): Add is_special_memory.
32876 (have_special_memory_constraints, special_memory_start): New
32877 static vars.
32878 (special_memory_end): Ditto.
32879 (add_constraint): Add new arg is_special_memory. Add code to
32880 process its true value. Update have_special_memory_constraints.
32881 (process_define_constraint): Pass the new arg.
32882 (process_define_register_constraint): Ditto.
32883 (choose_enum_order): Process special memory.
32884 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
32885 function insn_extra_special_memory_constraint.
32886 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32887 * gensupport.c (process_rtx): Process
32888 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
32889 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
32890 * ira-lives.c (single_reg_class): Use
32891 insn_extra_special_memory_constraint.
32892 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
32893 * lra-constraints.c (process_alt_operands): Ditto.
32894 (curr_insn_transform): Use insn_extra_special_memory_constraint.
32895 * recog.c (asm_operand_ok, preprocess_constraints): Process
32896 CT_SPECIAL_MEMORY.
32897 * reload.c (find_reloads): Ditto.
32898 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
32899 * stmt.c (parse_input_constraint): Use
32900 insn_extra_special_memory_constraint.
32901
32902 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32903
32904 PR target/69530
32905 * lra-splill.c (lra_final_code_change): Revert r229087 by
32906 removing all sub-registers.
32907
32908 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
32909
32910 PR target/65604
32911 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
32912
32913 2016-01-29 Jakub Jelinek <jakub@redhat.com>
32914
32915 PR target/69551
32916 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
32917 SSE1, copy target into the temporary reg first before recursing
32918 on it.
32919
32920 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
32921
32922 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
32923 with vm.
32924
32925 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32926
32927 * ginclude/stdarg.h: Test __cplusplus instead of
32928 __GXX_EXPERIMENTAL_CXX0X__.
32929
32930 2016-01-29 Richard Biener <rguenther@suse.de>
32931
32932 PR tree-optimization/69547
32933 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
32934 Do not mark clobbers necessary.
32935 (mark_all_reaching_defs_necessary_1): Likewise.
32936
32937 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32938
32939 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
32940 declaration name with %qs and print it in both error messages.
32941 Also fix indentation.
32942
32943 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32944
32945 PR other/69006
32946 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
32947 trailing blank line from error message.
32948
32949 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
32950
32951 PR c++/69462
32952 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
32953 for C++-11.
32954
32955 2016-01-29 Richard Biener <rguenther@suse.de>
32956
32957 PR middle-end/69537
32958 * match.pd: Allow all integral types when simplifying a
32959 widening or sign-changing conversion.
32960
32961 2016-01-28 Sebastian Pop <s.pop@samsung.com>
32962
32963 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
32964 back to setting codegen_error to fail codegen.
32965
32966 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
32967
32968 PR target/69459
32969 * config/i386/constraints.md (C): Only accept constant zero operand.
32970 (BC): New constraint.
32971 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
32972 instead of C constraint.
32973 * doc/md.texi (Machine Constraints): Update description
32974 of C constraint.
32975
32976 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
32977
32978 PR target/68400
32979 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
32980
32981 2016-01-28 Jakub Jelinek <jakub@redhat.com>
32982
32983 PR middle-end/69542
32984 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
32985 non-debug insns.
32986
32987 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
32988
32989 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
32990 branches if using guessed profile.
32991
32992 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
32993
32994 * graphite-optimize-isl.c (optimize_isl): Fix dump.
32995
32996 2016-01-28 Richard Henderson <rth@redhat.com>
32997
32998 PR target/69305
32999 * config/aarch64/aarch64-modes.def (CC_Cmode): New
33000 * config/aarch64/aarch64-protos.h: Update.
33001 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
33002 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
33003 (aarch64_get_condition_code_1): Handle CC_Cmode.
33004 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
33005 (*add<mode>3_compareC_cconly_imm): New.
33006 (*add<mode>3_compareC_cconly): New.
33007 (*add<mode>3_compareC_imm): New.
33008 (add<mode>3_compareC): New.
33009 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
33010 to be first. Use aarch64_carry_operation.
33011 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
33012 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
33013 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
33014 (subti3): Use subdi3_compare1.
33015 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
33016 (sub<mode>3_compare1): New.
33017 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
33018 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
33019 (*subsi3_carryin_uxtw): Likewise.
33020 (*ngc<mode>, *ngcsi_uxtw): Likewise.
33021 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
33022 * config/aarch64/iterators.md (DWI): New.
33023 * config/aarch64/predicates.md (aarch64_carry_operation): New.
33024 (aarch64_borrow_operation): New.
33025
33026 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33027
33028 * graphite-optimize-isl.c (optimize_isl): Print a different debug
33029 message when isl does not return a valid schedule.
33030
33031 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33032
33033 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
33034 Remove comments from class declarations: they are already in the code
33035 close by the defs.
33036
33037 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33038
33039 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
33040 codegen_error_p.
33041 (ternary_op_to_tree): Same.
33042 (unary_op_to_tree): Same.
33043 (nary_op_to_tree): Same.
33044 (gcc_expression_from_isl_expr_op): Same.
33045 (gcc_expression_from_isl_expression): Same.
33046 (graphite_create_new_loop): Same.
33047 (graphite_create_new_loop_guard): Same.
33048 (build_iv_mapping): Same.
33049 (graphite_create_new_guard): Same.
33050 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
33051 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
33052
33053 2016-01-28 Sebastian Pop <s.pop@samsung.com>
33054
33055 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
33056 instead of setting codegen_error to fail codegen.
33057
33058 2016-01-28 Jason Merrill <jason@redhat.com>
33059
33060 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
33061
33062 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33063
33064 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
33065 Remove CONST_INT_P check in CCMP cost calculation.
33066
33067 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33068
33069 * config/aarch64/aarch64.c (generic_vector_cost):
33070 Set vec_permute_cost.
33071 (cortexa57_vector_cost): Likewise.
33072 (exynosm1_vector_cost): Likewise.
33073 (xgene1_vector_cost): Likewise.
33074 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
33075 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
33076 Add vec_permute_cost entry.
33077
33078 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
33079
33080 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
33081 immediate as %1.
33082 (add<mode>3_compare0): Likewise.
33083 (addsi3_compare0_uxtw): Likewise.
33084 (add<mode>3nr_compare0): Likewise.
33085 (compare_neg<mode>): Likewise.
33086 (<optab><mode>3): Likewise.
33087
33088 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
33089
33090 * tree-vect-stmts.c (vectorizable_comparison): Add
33091 NULL check for vectype.
33092
33093 2016-01-28 Richard Biener <rguenther@suse.de>
33094
33095 PR tree-optimization/69466
33096 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
33097 Account for PHIs we couldn't duplicate.
33098
33099 2016-01-28 Martin Liska <mliska@suse.cz>
33100
33101 PR pch/68758
33102 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
33103 instead of ENABLE_VALGRIND_CHECKING.
33104
33105 2016-01-27 Richard Henderson <rth@redhat.com>
33106
33107 PR rtl-opt/69447
33108 * lra-remat.c (subreg_regs): New.
33109 (dump_candidates_and_remat_bb_data): Dump it.
33110 (operand_to_remat): Reject if operand in subreg_regs.
33111 (set_bb_regs): Collect subreg_regs.
33112 (lra_remat): Init and free subreg_regs. Compute
33113 calculate_local_reg_remat_bb_data before create_cands.
33114
33115 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
33116
33117 PR target/68986
33118 * config/i386/i386.c (ix86_update_stack_boundary): Don't
33119 change stack_alignment_needed for __tls_get_addr call.
33120
33121 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
33122
33123 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
33124
33125 2016-01-27 Jeff Law <law@redhat.com>
33126
33127 PR tree-optimization/68398
33128 PR tree-optimization/69196
33129 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
33130 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
33131 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33132 Only count PHIs in the last block in the path. The others will
33133 const/copy propagate away. Add heuristic to allow more irreducible
33134 subloops to be created when it is likely profitable to do so.
33135
33136 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
33137 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
33138 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
33139
33140 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33141
33142 PR lto/69254
33143 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
33144 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
33145 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
33146 * tree-streamer-in.c: Include asan.h.
33147 (streamer_get_builtin_tree): For builtins in sanitizer
33148 range call initialize_sanitizer_builtins and retry.
33149
33150 2016-01-27 Ian Lance Taylor <iant@google.com>
33151
33152 * common.opt (fkeep-gc-roots-live): New undocumented option.
33153 * tree-ssa-loop-ivopts.c (add_candidate_1): If
33154 -fkeep-gc-roots-live, skip pointers.
33155 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
33156 NULL.
33157
33158 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
33159
33160 PR target/69512
33161 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
33162 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
33163
33164 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
33165
33166 PR target/68380
33167 * configure.ac: NetBSD provides SSP in its C library.
33168 * configure: Updated.
33169
33170 2016-01-27 Richard Biener <rguenther@suse.de>
33171
33172 PR tree-optimization/69166
33173 * tree-vect-loop.c (vect_is_simple_reduction): Always check
33174 reduction code for commutativity / associativity.
33175
33176 2016-01-27 Martin Jambor <mjambor@suse.cz>
33177
33178 PR tree-optimization/69355
33179 * tree-sra.c (analyze_access_subtree): Correct hole detection when
33180 total_scalarization fails.
33181
33182 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
33183
33184 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
33185 power9.
33186
33187 2016-01-27 Christian Bruel <christian.bruel@st.com>
33188
33189 PR target/69245
33190 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
33191 Move arm_reset_previous_fndecl and set_target_option_current_node in
33192 the conditional part. Call save_restore_target_globals.
33193 * config/arm/arm.c (arm_set_current_function):
33194 Refactor to better support #pragma target and attribute mix.
33195 Call save_restore_target_globals.
33196 * config/arm/arm-protos.h (save_restore_target_globals): New function.
33197
33198 2016-01-27 Martin Liska <mliska@suse.cz>
33199
33200 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
33201 reference for an HSA kernel and its host function.
33202
33203 2016-01-27 Jakub Jelinek <jakub@redhat.com>
33204
33205 PR tree-optimization/69399
33206 * wide-int.h (wi::lrshift): For larger precisions, only
33207 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
33208
33209 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
33210
33211 * config/arc/predicates.md (proper_comparison_operator): Reject
33212 constant-constant comparison.
33213
33214 2016-01-26 Tom de Vries <tom@codesourcery.com>
33215
33216 PR tree-optimization/69110
33217 * tree-data-ref.c (initialize_data_dependence_relation): Handle
33218 DR_NUM_DIMENSIONS == 0.
33219
33220 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
33221 Sebastian Pop <s.pop@samsung.com>
33222
33223 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
33224 isl_ast_op_cond and isl_ast_op_select.
33225 (gcc_expression_from_isl_expr_op): Same.
33226
33227 2016-01-26 Jason Merrill <jason@redhat.com>
33228
33229 PR c++/68782
33230 * tree.c (recompute_constructor_flags): Split out from
33231 build_constructor.
33232 (verify_constructor_flags): New.
33233 * tree.h: Declare them.
33234
33235 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
33236
33237 PR rtl-optimization/69217
33238 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
33239 are no TYPE_FIELDS set for the record type.
33240
33241 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33242
33243 PR target/68662
33244 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
33245 toc_label_name unconditionally.
33246 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
33247 SYMBOL_REF string. Use toc_label_name instead of constructing
33248 LCTOC1.
33249 (rs6000_elf_declare_function_name): Use toc_label_name instead of
33250 constructing LCTOC1.
33251
33252 2016-01-26 Martin Sebor <msebor@redhat.com>
33253
33254 PR other/69477
33255 * doc/extend.texi (Common Type Attributes): Move text that talks about
33256 attribute packed from attribute aligned to the section discussing
33257 the former attribute for clarity.
33258
33259 2016-01-26 Richard Henderson <rth@redhat.com>
33260
33261 PR middle-end/60908
33262 * trans-mem.c (tm_region_init): Mark entry block as visited.
33263
33264 2016-01-26 David Malcolm <dmalcolm@redhat.com>
33265
33266 PR other/69006
33267 * diagnostic-show-locus.c (layout::print_source_line): Replace
33268 call to pp_newline with call to layout::print_newline.
33269 (layout::print_annotation_line): Likewise.
33270 (layout::move_to_column): Likewise.
33271 (layout::print_any_fixits): After printing any fixits, print a
33272 trailing newline, if necessary.
33273 (layout::print_newline): New method, resetting any colorization
33274 before a newline.
33275 (diagnostic_show_locus): Move the pp_newline to before the
33276 early bailout. Remove dummy block enclosing the layout instance.
33277 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
33278 of pp_newline_and_flush with pp_flush.
33279 (diagnostic_append_note): Delete use of pp_newline.
33280 (diagnostic_append_note_at_rich_loc): Delete.
33281 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
33282 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
33283 when newline characters are added to the buffer.
33284
33285 2016-01-26 Michael Matz <matz@suse.de>
33286
33287 * configure.ac (ac_cv_std_swap_in_utility): New test.
33288 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
33289 * configure: Regenerate.
33290 * config.in: Regenerate.
33291
33292 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
33293
33294 * config/arc/arc.md (cstoresi4): Force operand into register.
33295 (arcset<code>): Fix predicate.
33296 (arcsetltu): Likewise.
33297 (arcsetgeu): Likewise.
33298 (arcsethi): Likewise.
33299 (arcsetls): Likewise.
33300
33301 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33302
33303 PR tree-optimization/69483
33304 * gimple-fold.c (canonicalize_constructor_val): Return NULL
33305 if base has error_mark_node type.
33306
33307 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
33308
33309 PR target/68620
33310 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
33311 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
33312 New helper macros.
33313 (vget_lane_f16): Handle big-endian.
33314 (vgetq_lane_f16): Likewise.
33315 (vset_lane_f16): Likewise.
33316 (vsetq_lane_f16): Likewise.
33317 * config/arm/iterators.md (VQXMOV): Add V8HF.
33318 (VDQ): Add V4HF and V8HF.
33319 (V_reg): Handle V4HF and V8HF.
33320 (Is_float_mode): Likewise.
33321 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
33322 neon_vdup_nv8hf): New patterns.
33323 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
33324 Use VD_LANE iterator.
33325 (neon_vld1_dup<mode>): Use VQ2 iterator.
33326
33327 2016-01-26 Nathan Sidwell <nathan@acm.org>
33328
33329 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
33330 (set_oacc_fn_attrib): Add IS_KERNEL arg.
33331 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
33332 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
33333 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
33334 (oacc_validate_dims): Add LEVEL arg, don't return level.
33335 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
33336 oacc_validate_dims.
33337 (execute_oacc_device_lower): Adjust, add more dump output.
33338 * tree-ssa-loop.c (gate_oacc_kernels): Use
33339 oacc_fn_attrib_kernels_p.
33340 * tree-parloops.c (create_parallel_loop): Adjust
33341 set_oacc_fn_attrib call.
33342
33343 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33344
33345 PR lto/69254
33346 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
33347 (append_compiler_options): Handle -fcilkplus.
33348 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
33349
33350 2016-01-26 Nick Clifton <nickc@redhat.com>
33351
33352 PR target/66655
33353 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
33354 been marked as DECL_ONE_ONLY but we do not the means to make it
33355 so, then do not allow it to bind locally.
33356
33357 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33358
33359 PR lto/69254
33360 * opts.h (parse_sanitizer_options): New prototype.
33361 * opts.c (sanitizer_opts): New array.
33362 (parse_sanitizer_options): New function.
33363 (common_handle_option): Use parse_sanitizer_options.
33364
33365 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
33366
33367 PR target/68986
33368 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
33369 alignment adjustment to ...
33370 (ix86_update_stack_boundary): Here. Don't over-align stack for
33371 __tls_get_addr.
33372 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
33373 if __tls_get_addr is called.
33374
33375 2016-01-26 Christian Bruel <christian.bruel@st.com>
33376
33377 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
33378
33379 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
33380
33381 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
33382
33383 2016-01-26 Richard Biener <rguenther@suse.de>
33384
33385 PR middle-end/69467
33386 * match.pd: Guard X * CST CMP 0 pattern with single_use.
33387
33388 2016-01-26 Richard Biener <rguenther@suse.de>
33389
33390 PR tree-optimization/69452
33391 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
33392 (move_computations_dom_walker::before_dom_children): Rename
33393 to ...
33394 (move_computations_worker): This.
33395 (move_computations): Perform an RPO rather than a DOM walk.
33396
33397 2016-01-26 Jakub Jelinek <jakub@redhat.com>
33398
33399 PR target/69442
33400 * combine.c (combine_instructions): For REG_EQUAL note with
33401 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
33402 to the underlying register.
33403 * doc/rtl.texi (REG_EQUAL): Document the behavior of
33404 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
33405
33406 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
33407
33408 PR target/67896
33409 * config/aarch64/aarch64-builtins.c
33410 (aarch64_init_simd_builtin_types): Do not set structural
33411 equality to __Poly{8,16,64,128}_t types.
33412
33413 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
33414
33415 PR tree-optimization/69400
33416 * wide-int.cc (wi_pack): Take the precision as argument and
33417 perform canonicalization here rather than in the callers.
33418 Use the main loop to handle all full-width HWIs. Add a
33419 zero HWI if in_len isn't a full result.
33420 (wi::divmod_internal): Update accordingly.
33421 (wi::mul_internal): Likewise. Simplify.
33422
33423 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33424 Sebastian Pop <s.pop@samsung.com>
33425
33426 * graphite-poly.c (apply_poly_transforms): Simplify.
33427 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
33428 (print_isl_map): Same.
33429 (print_isl_union_map): Same.
33430 (print_isl_schedule): New.
33431 (debug_isl_schedule): New.
33432 * graphite-dependences.c (scop_get_reads): Do not call
33433 isl_union_map_add_map that is undocumented isl functionality.
33434 (scop_get_must_writes): Same.
33435 (scop_get_may_writes): Same.
33436 (scop_get_original_schedule): Remove.
33437 (scop_get_dependences): Do not call isl_union_map_compute_flow that
33438 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
33439 (compute_deps): Remove.
33440 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
33441 (debug_schedule_ast): New.
33442 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
33443 set_separate_option.
33444 (graphite_regenerate_ast_isl): Add dump.
33445 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
33446 from scop->transformed_schedule.
33447 (graphite_regenerate_ast_isl): Add more dump.
33448 * graphite-optimize-isl.c (optimize_isl): Set
33449 scop->transformed_schedule. Check whether schedules are equal.
33450 (apply_poly_transforms): Move here.
33451 * graphite-poly.c (apply_poly_transforms): ... from here.
33452 (free_poly_bb): Static.
33453 (free_scop): Static.
33454 (pbb_number_of_iterations_at_time): Remove.
33455 (print_isl_ast): New.
33456 (debug_isl_ast): New.
33457 (debug_scop_pbb): New.
33458 * graphite-scop-detection.c (print_edge): Move.
33459 (print_sese): Move.
33460 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
33461 (build_scop_scattering): Remove.
33462 (create_pw_aff_from_tree): Assert instead of bailing out.
33463 (add_condition_to_pbb): Remove unused code, do not fail.
33464 (add_conditions_to_domain): Same.
33465 (add_conditions_to_constraints): Remove.
33466 (build_scop_context): New.
33467 (add_iter_domain_dimension): New.
33468 (build_iteration_domains): Initialize pbb->iterators.
33469 Call add_conditions_to_domain.
33470 (nested_in): New.
33471 (loop_at): New.
33472 (index_outermost_in_loop): New.
33473 (index_pbb_in_loop): New.
33474 (outermost_pbb_in): New.
33475 (add_in_sequence): New.
33476 (add_outer_projection): New.
33477 (outer_projection_mupa): New.
33478 (add_loop_schedule): New.
33479 (build_schedule_pbb): New.
33480 (build_schedule_loop): New.
33481 (embed_in_surrounding_loops): New.
33482 (build_schedule_loop_nest): New.
33483 (build_original_schedule): New.
33484 (build_poly_scop): Call build_original_schedule.
33485 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
33486 (free_poly_dr): Remove.
33487 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
33488 (free_poly_bb): Remove.
33489 (debug_loop_vec): Remove.
33490 (print_isl_ast): Declare.
33491 (debug_isl_ast): Declare.
33492 (scop_do_interchange): Remove.
33493 (scop_do_strip_mine): Remove.
33494 (scop_do_block): Remove.
33495 (flatten_all_loops): Remove.
33496 (optimize_isl): Remove.
33497 (pbb_number_of_iterations_at_time): Remove.
33498 (debug_scop_pbb): Declare.
33499 (print_schedule_ast): Declare.
33500 (debug_schedule_ast): Declare.
33501 (struct scop): Remove schedule. Add original_schedule,
33502 transformed_schedule.
33503 (free_gimple_poly_bb): Remove.
33504 (print_generated_program): Remove.
33505 (debug_generated_program): Remove.
33506 (unify_scattering_dimensions): Remove.
33507 * sese.c (print_edge): ... here.
33508 (print_sese): ... here.
33509 (debug_edge): ... here.
33510 (debug_sese): ... here.
33511 * sese.h (print_edge): Declare.
33512 (print_sese): Declare.
33513 (dump_edge): Declare.
33514 (dump_sese): Declare.
33515
33516 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
33517 Sebastian Pop <s.pop@samsung.com>
33518
33519 * Makefile.in: Set ISLVER in site.exp.
33520
33521 2016-01-25 Jakub Jelinek <jakub@redhat.com>
33522
33523 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
33524 DECL_VALUE_EXPR of new_var even for the non-array case. Look
33525 through DECL_VALUE_EXPR for expansion.
33526
33527 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
33528
33529 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
33530 the frame info after reload completed.
33531
33532 2016-01-25 Jeff Law <law@redhat.com>
33533
33534 PR tree-optimization/69196
33535 PR tree-optimization/68398
33536 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
33537 tree-ssa-threadupdate.c.
33538 (determine_bb_domination_status): Prototype
33539 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
33540 (determine_bb_domination_status): No longer static.
33541 (valid_jump_thread_path): Remove code to detect characteristics
33542 of the jump thread path not associated with correctness.
33543 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
33544 Correct test for thread path length. Count PHIs for real operands as
33545 statements that need to be copied. Do not count ASSERT_EXPRs.
33546 Look at all the blocks in the thread path. Compute and selectively
33547 filter thread paths based on threading through the latch, threading
33548 a multiway branch or crossing a multiway branch.
33549
33550 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33551
33552 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
33553 decl with __attribute__ ((unused)) annotation.
33554
33555 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
33556
33557 PR target/69421
33558 * tree-vect-stmts.c (vectorizable_condition): Check vectype
33559 of operands is compatible with a statement vectype.
33560
33561 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
33562
33563 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
33564 improve wording for mixed storage order support.
33565
33566 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
33567
33568 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
33569 (vcvt_u64_f64): Likewise.
33570 (vcvta_s64_f64): Likewise.
33571 (vcvta_u64_f64): Likewise.
33572 (vcvtm_s64_f64): Likewise.
33573 (vcvtm_u64_f64): Likewise.
33574 (vcvtn_s64_f64): Likewise.
33575 (vcvtn_u64_f64): Likewise.
33576 (vcvtp_s64_f64): Likewise.
33577 (vcvtp_u64_f64): Likewise.
33578
33579 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
33580
33581 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
33582 (arc_init): Check validity mll64 option.
33583 (arc_save_restore): Use double load/store instruction.
33584 (arc_expand_movmem): Likewise.
33585 (arc_split_move): Don't split if we have double load/store
33586 instructions. Returns a boolean.
33587 (arc_process_double_reg_moves): Change function to return boolean
33588 instead of a sequence of instructions.
33589 (arc_dwarf_register_span): New function.
33590 * config/arc/arc-protos.h (arc_split_move): Change prototype.
33591 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
33592 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
33593 (*movdf_insn): Likewise.
33594 * config/arc/arc.opt (mll64): New option.
33595 * config/arc/predicates.md (even_register_operand): New predicate.
33596 * doc/invoke.texi (ARC Options): Add mll64 documentation.
33597
33598 2016-01-25 Richard Biener <rguenther@suse.de>
33599
33600 PR lto/69393
33601 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
33602 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
33603 DECL_NAMELESS.
33604 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
33605
33606 2016-01-25 Richard Biener <rguenther@suse.de>
33607
33608 PR tree-optimization/69376
33609 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
33610 flag.
33611 (VN_INFO_ANTI_RANGE_P): New inline.
33612 (VN_INFO_RANGE_TYPE): Likewise.
33613 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
33614 SSA_NAME_ANTI_RANGE_P.
33615 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
33616 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
33617 Properly query VN_INFO_RANGE_TYPE.
33618
33619 2016-01-25 Nick Clifton <nickc@redhat.com>
33620
33621 PR target/66655
33622 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
33623
33624 2016-01-23 Tom de Vries <tom@codesourcery.com>
33625
33626 PR tree-optimization/69426
33627 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
33628 removed clobber.
33629
33630 2016-01-23 Jakub Jelinek <jakub@redhat.com>
33631
33632 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
33633 "the the" with "the" in the comments.
33634 * ipa-devirt.c (build_type_inheritance_graph,
33635 update_type_inheritance_graph): Likewise.
33636 * tree.c (build_function_type_list_1): Likewise.
33637 * cfgloopmanip.c (scale_loop_profile): Likewise.
33638 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
33639 * gimple-ssa-split-paths.c
33640 (find_block_to_duplicate_for_splitting_paths): Likewise.
33641 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
33642 * expr.c (convert_move): Likewise.
33643 * var-tracking.c (vt_stack_adjustments): Likewise.
33644 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
33645 * tree-vrp.c (test_for_singularity): Likewise.
33646
33647 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
33648 directly instead of building a temporary tree.
33649
33650 PR bootstrap/69434
33651 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
33652 remove <algorithm> include.
33653
33654 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33655
33656 PR target/69432
33657 * config/i386/i386.c: Include dojump.h.
33658 (expand_small_movmem_or_setmem,
33659 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
33660 fixes.
33661 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
33662 if dynamic_check != -1.
33663
33664 2016-01-21 Jeff Law <law@redhat.com>
33665
33666 PR middle-end/69347
33667 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
33668 record_temporary_equivalences. Rewritten to avoid unnecessary calls
33669 into dominated_by_p.
33670 (cprop_into_successor_phis): Avoid unnecessary tests.
33671
33672 2016-01-22 Richard Henderson <rth@redhat.com>
33673
33674 PR target/69416
33675 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
33676 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
33677
33678 2016-01-22 Michael Matz <matz@suse.de>
33679
33680 * system.h (string, algorithm): Include only conditionally.
33681 (new): Include always under C++.
33682 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
33683 * final.c (toplevel): Ditto.
33684 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
33685 * genconditions.c (write_header): Make gencondmd.c define
33686 INCLUDE_STRING.
33687 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
33688
33689 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
33690 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
33691
33692 2016-01-22 Christian Bruel <christian.bruel@st.com>
33693
33694 PR target/68674
33695 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
33696
33697 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33698
33699 PR target/69403
33700 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
33701 define_insn_and_split. Ensure operands[1] and operands[0] do not
33702 get assigned the same register.
33703
33704 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
33705
33706 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
33707
33708 2016-01-22 Christian Bruel <christian.bruel@st.com>
33709
33710 * config/arm/arm-c.c (arm_pragma_target_parse):
33711 Remove warn_builtin_macro_redefined overwrite.
33712
33713 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33714
33715 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
33716 flag_non_call_exceptions compatibility.
33717
33718 2016-01-22 Jakub Jelinek <jakub@redhat.com>
33719
33720 PR debug/66668
33721 * dwarf2out.c (add_child_die_after): New function.
33722 (dwarf_qual_info_t): New type.
33723 (dwarf_qual_info): New variable.
33724 (qualified_die_p): New function.
33725 (modified_type_die): For -fdebug-types-section, ensure
33726 canonical order of qualifiers. Put qualified DIEs adjacent
33727 to the corresponding non-qualified type DIE and search there
33728 for existing qualified DIEs.
33729
33730 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
33731
33732 * doc/extend.texi (scalar_storage_order type attribute): Document
33733 restriction on type punning and aliasing, and remove future tense.
33734
33735 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
33736
33737 PR target/69252
33738 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
33739 first stage.
33740
33741 2016-01-21 Jeff Law <law@redhat.com>
33742
33743 PR middle-end/69347
33744 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
33745 useless call to record_temporary_equivalences.
33746 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
33747 allocate 10 slots in the bb_path vector and let it grow as needed.
33748 (fsm_find_control_statement_thread_paths): Similarly for the next_path
33749 vector.
33750
33751 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33752
33753 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
33754 Detangle.
33755 * configure: Regenerate.
33756
33757 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
33758
33759 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
33760 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
33761
33762 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
33763
33764 PR middle-end/66178
33765 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
33766 drop EXPAND_INITIALIZER.
33767 * rtl.h (contains_symbolic_reference_p): Declare.
33768 * rtlanal.c (contains_symbolic_reference_p): New function.
33769 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
33770 a subtraction into a NOT if symbolic constants are involved.
33771
33772 2016-01-21 Anton Blanchard <anton@samba.org>
33773 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33774
33775 PR target/63354
33776 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
33777 #define.
33778 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
33779 function.
33780
33781 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33782
33783 * config/microblaze/microblaze.c
33784 (get_branch_target): New.
33785 (insert_wic_for_ilb_runout): New.
33786 (insert_wic): New.
33787 (microblaze_machine_dependent_reorg): New.
33788 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
33789 * config/microblaze/microblaze.md
33790 (UNSPEC_IPREFETCH): Define.
33791 (iprefetch): New pattern
33792 * config/microblaze/microblaze.opt
33793 (mxl-prefetch): New flag.
33794
33795 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
33796
33797 * config/microblaze/microblaze.h
33798 (FIXED_REGISTERS): Update in macro.
33799 (CALL_USED_REGISTERS): Update in macro.
33800
33801 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
33802
33803 PR rtl-optimization/68920
33804 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
33805 moves.
33806
33807 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
33808
33809 PR rtl-optimization/68990
33810 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
33811 pseudo instead of inheritance ones.
33812
33813 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33814 Nick Clifton <nickc@redhat.com>
33815
33816 PR target/69129
33817 PR target/69012
33818 * config/mips/mips.c (mips_compute_frame_info): Initialise
33819 args_size and hard_frame_pointer_offset fields of the frame
33820 structure before calling mips_global_pointer.
33821
33822 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
33823
33824 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
33825 label reference.
33826 * configure: Regenerate.
33827
33828 2016-01-21 Richard Biener <rguenther@suse.de>
33829
33830 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
33831
33832 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33833
33834 * config/s390/s390.c (s390_asm_declare_function_size): Add code
33835 to actually emit the .size directive.
33836
33837 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
33838 Jakub Jelinek <jakub@redhat.com>
33839
33840 PR target/69187
33841 PR target/65624
33842 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
33843 args array size by one to avoid buffer overflow.
33844
33845 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
33846
33847 * config/s390/s390.md (pool_section_start): Use switch_to_section
33848 to select proper read-only data section instead of hardcoding
33849 .rodata.
33850 (pool_section_end): Use switch_to_section to match the above.
33851
33852 2016-01-21 Richard Biener <rguenther@suse.de>
33853
33854 PR tree-optimization/69378
33855 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
33856 (set_ssa_val_to): Use it for dominance checks taking into
33857 account not executable edges.
33858
33859 2016-01-21 Jakub Jelinek <jakub@redhat.com>
33860
33861 PR c++/69355
33862 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
33863 for bitsize instead of GET_MODE_PRECISION (mode).
33864
33865 2016-01-20 Martin Sebor <msebor@redhat.com>
33866
33867 PR c/52291
33868 * extend.texi (__sync Builtins): Clarify the semantics of
33869 __sync_fetch_and_OP built-ins on pointers.
33870 (__atomic Builtins): Same.
33871
33872 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33873 Sebastian Pop <s.pop@samsung.com>
33874
33875 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
33876 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
33877 (is_valid_rename): Same.
33878 (translate_isl_ast_to_gimple::get_rename): Same.
33879 (translate_isl_ast_to_gimple::rename_all_uses): Same.
33880 (translate_isl_ast_to_gimple::rename_uses): Same.
33881 (get_new_name): Check for close_phi nodes.
33882 (copy_loop_phi_args): Use phi_node_kind.
33883 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
33884 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
33885
33886 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33887 Sebastian Pop <s.pop@samsung.com>
33888
33889 Revert commit r229783.
33890 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
33891 Remove use of parameter_rename_map.
33892 (copy_def): Remove.
33893 (copy_internal_parameters): Remove.
33894 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
33895 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
33896 (free_sese_info): Do not free parameter_rename_map.
33897 (set_rename): Do not use parameter_rename_map.
33898 (rename_uses): Update call to set_rename.
33899 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
33900 * sese.h (parameter_rename_map_t): Remove.
33901 (struct sese_info_t): Remove field parameter_rename_map.
33902
33903 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33904 Sebastian Pop <s.pop@samsung.com>
33905
33906 * graphite-isl-ast-to-gimple.c: Fix comment.
33907 * graphite-scop-detection.c (defined_in_loop_p): New.
33908 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
33909 names defined in loop.
33910
33911 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33912 Sebastian Pop <s.pop@samsung.com>
33913
33914 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
33915 Discard unstructured if-then-else regions.
33916
33917 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33918 Sebastian Pop <s.pop@samsung.com>
33919
33920 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
33921 (cleanup_loop_iter_dom): Remove.
33922 (build_loop_iteration_domains): Remove.
33923 (build_scop_context): Remove.
33924 (build_scop_iteration_domain): Remove.
33925 (add_loop_constraints): New.
33926 (build_iteration_domains): New.
33927 (build_poly_scop): Call build_iteration_domains.
33928
33929 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33930 Sebastian Pop <s.pop@samsung.com>
33931
33932 * graphite-scop-detection.c
33933 (scop_detection::harmful_loop_in_region): Free dom and loops.
33934 (scop_detection::loop_body_is_valid_scop): Free bbs.
33935
33936 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33937 Sebastian Pop <s.pop@samsung.com>
33938
33939 * graphite-scop-detection.c (record_loop_in_sese): New.
33940 (gather_bbs::before_dom_children): Call record_loop_in_sese.
33941 (build_scops): Remove call to build_sese_loop_nests.
33942 * sese.c (sese_record_loop): Remove.
33943 (build_sese_loop_nests): Remove.
33944 (new_sese_info): Remove region->loops.
33945 (free_sese_info): Same.
33946 * sese.h (sese_contains_loop): Same.
33947 (build_sese_loop_nests): Remove.
33948 (sese_contains_loop): Remove.
33949
33950 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33951 Sebastian Pop <s.pop@samsung.com>
33952
33953 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
33954 loop_is_valid_in_scop.
33955 (scop_detection::harmful_stmt_in_region): Renamed
33956 harmful_loop_in_region.
33957 Call loop_is_valid_in_scop.
33958
33959 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33960 Sebastian Pop <s.pop@samsung.com>
33961
33962 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
33963 isl_ast_node_mark.
33964
33965 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33966 Sebastian Pop <s.pop@samsung.com>
33967
33968 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
33969 * graphite.h (struct poly_bb): Remove field is_reduction.
33970 (PBB_IS_REDUCTION): Remove.
33971
33972 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
33973 Sebastian Pop <s.pop@samsung.com>
33974
33975 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
33976 (add_pdr_constraints): Same.
33977 (scop_get_reads): Same.
33978 (scop_get_must_writes): Same.
33979 (scop_get_may_writes): Same.
33980 (scop_get_original_schedule): Same.
33981 (extend_schedule): Same.
33982 (apply_schedule_on_deps): Same.
33983 (carries_deps): Same.
33984 (compute_deps): Same.
33985 (scop_get_dependences): Same.
33986 * graphite-isl-ast-to-gimple.c
33987 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
33988 * graphite-optimize-isl.c (get_schedule_for_band): Same.
33989 (get_schedule_for_band_list): Same.
33990 (get_schedule_map): Same.
33991 (apply_schedule_map_to_scop): Same.
33992 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
33993 (build_loop_iteration_domains): Same.
33994 (add_condition_to_pbb): Same.
33995 (add_param_constraints): Same.
33996 (pdr_add_memory_accesses): Same.
33997 (pdr_add_data_dimensions): Same.
33998
33999 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
34000
34001 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
34002 requirements.
34003
34004 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
34005
34006 * common.opt (feliminate-dwarf2-dups): Replace references to
34007 "DWARF 2" with just "DWARF".
34008 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
34009 * doc/extend.texi: Likewise.
34010 * doc/cpp.texi: Likewise.
34011 * doc/invoke.texi: Likewise.
34012 (Option Summary): Add -gdwarf to list of Debugging Options.
34013 (Debugging Options): Document -gdwarf.
34014 * doc/contrib.texi: Spell "DWARF" like that.
34015
34016 2016-01-21 Jakub Jelinek <jakub@redhat.com>
34017
34018 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
34019 warning. Fix up formatting.
34020
34021 PR middle-end/67653
34022 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
34023 attempt to mark memory input operand addressable and
34024 call prepare_gimple_addressable in that case. Don't adjust
34025 input_location for diagnostics, use error_at instead.
34026
34027 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
34028
34029 * config/rs6000/ppc-auxv.h: New file.
34030 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
34031 (cpu_is): Likewise.
34032 (cpu_supports): Likewise.
34033 * config/rs6000/rs6000.c: include "ppc-auxv.h".
34034 (cpu_is_info): New variable.
34035 (cpu_supports_info): Likewise.
34036 (tcb_verification_symbol): Likewise.
34037 (cpu_builtin_p): Likewise.
34038 (cpu_expand_builtin): New function.
34039 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
34040 (rs6000_init_builtins): Likewise.
34041 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
34042 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
34043 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
34044 * configure: Regenerate.
34045 * config.in: Likewise.
34046 * doc/extend.texi (PowerPC Built-in Functions): Document
34047 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
34048
34049 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
34050
34051 PR target/68609
34052 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
34053 domain check.
34054 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
34055 for V4SFmode.
34056
34057 2016-01-20 Richard Henderson <rth@redhat.com>
34058
34059 PR bootstrap/69343
34060 PR bootstrap/69339
34061 PR tree-opt/68964
34062 Revert:
34063 * tree.c (tm_define_builtin): New.
34064 (find_tm_vector_type): New.
34065 (build_tm_vector_builtins): New.
34066 (build_common_builtin_nodes): Call it.
34067
34068 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
34069
34070 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
34071 (arm_fp_ok): Likewise.
34072 (arm_fp): Likewise.
34073 (arm_crypto): Likewise.
34074
34075 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
34076 Richard Biener <rguenther@suse.de>
34077
34078 PR tree-optimization/69328
34079 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
34080 vectors have same number of elements.
34081 (vectorizable_condition): Fix masked version recognition.
34082
34083 2016-01-20 Richard Biener <rguenther@suse.de>
34084
34085 PR tree-optimization/69345
34086 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
34087 (VN_INFO_PTR_INFO): Likewise.
34088 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
34089 info when it is equal between non-dominating SSA names.
34090 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
34091 Make sure to look at original SSA infos.
34092
34093 2016-01-20 Jeff Law <law@redhat.com>
34094
34095 PR target/25114
34096 * config/m68k/predicates.md (pow2_m1_operand): New predicate
34097 extracted from ...
34098 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
34099 (pc_or_label_operand): New predicate.
34100 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
34101 tests for small integers that are 2^n - 1.
34102
34103 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
34104
34105 * doc/invoke.texi (Options Summary): Add '.' after @xref.
34106
34107 2016-01-19 Jeff Law <law@redhat.com>
34108
34109 PR middle-end/69347
34110 * tree-ssa-threadbackwards.c
34111 (fsm_find_control_statement_thread_paths): Do not try to lookup
34112 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
34113
34114 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
34115
34116 * doc/lto.texi: Remove text that says only Gold has linker plugin
34117 support.
34118
34119 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
34120
34121 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
34122 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
34123 the DIE accordingly.
34124 (modified_type_die): Add REVERSE parameter and pass it recursively,
34125 as well as to base_type_die. Adjust presence check accordingly.
34126 (base_type_for_mode): Adjust call to modified_type_die.
34127 (add_type_attribute): Add REVERSE parameter and pass it to
34128 modified_type_die.
34129 (generic_parameter_die): Adjust call to add_type_attribute.
34130 (add_scalar_info): Likewise.
34131 (add_subscript_info): Likewise.
34132 (gen_array_type_die): Likewise.
34133 (gen_descr_array_type_die): Likewise.
34134 (gen_entry_point_die): Likewise.
34135 (gen_enumeration_type_die): Likewise.
34136 (gen_formal_parameter_die): Likewise.
34137 (gen_subprogram_die): Likewise.
34138 (gen_variable_die ): Likewise.
34139 (gen_const_die): Likewise.
34140 (gen_field_die): Likewise.
34141 (gen_pointer_type_die): Likewise.
34142 (gen_reference_type_die): Likewise.
34143 (gen_ptr_to_mbr_type_die): Likewise.
34144 (gen_inheritance_die): Likewise.
34145 (gen_subroutine_type_die): Likewise.
34146 (gen_typedef_die): Likewise.
34147 (force_type_die): Adjust call to modified_type_die.
34148
34149 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
34150
34151 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
34152 flow throughout the file. Fix broken link to Objective-C 2.0
34153 documentation.
34154 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
34155 errors.
34156
34157 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34158
34159 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
34160
34161 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34162
34163 PR ipa/66223
34164 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
34165 (maybe_record_node): Record cxa_pure_virtual as the only possible
34166 target if there are not ohter candidates.
34167 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
34168
34169 2016-01-19 Richard Biener <rguenther@suse.de>
34170
34171 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
34172 (get_memory_order): Likewise.
34173
34174 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
34175
34176 * tree-vect-stmts.c (vectorizable_store): Check
34177 rhs vectype.
34178
34179 2016-01-19 David Malcolm <dmalcolm@redhat.com>
34180
34181 PR jit/68446
34182 * gcc.c (driver::decode_argv): Add call to
34183 init_opts_obstack before init_options_struct.
34184 * opts.c (init_opts_obstack): Remove idempotency.
34185 (init_options_struct): Replace call to init_opts_obstack
34186 with a gcc_assert to verify that it has already been called.
34187 * toplev.c (toplev::main): Add call to init_opts_obstack before
34188 calls to init_options_struct.
34189 (toplev::finalize): Move cleanup of opts_obstack next to
34190 cleanup of save_decoded_options, clearing the latter, and
34191 save_decoded_options_count.
34192
34193 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34194
34195 PR target/69135
34196 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
34197 attribute to unconditional. Remove %? from output template.
34198
34199 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34200 Jiong Wang <jiong.wang@arm.com>
34201
34202 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
34203 generated from different expand order.
34204
34205 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34206
34207 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
34208 Add support for CCMP costing.
34209
34210 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34211
34212 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
34213 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
34214 (fccmpe<mode>): Likewise.
34215 (fcmp): Rename to fcmp and globalize pattern.
34216 (fcmpe): Likewise.
34217 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
34218 (aarch64_gen_ccmp_next): Add FP support.
34219
34220 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
34221
34222 * target.def (gen_ccmp_first): Update documentation.
34223 (gen_ccmp_next): Likewise.
34224 * doc/tm.texi (gen_ccmp_first): Update documentation.
34225 (gen_ccmp_next): Likewise.
34226 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
34227 expand_ccmp_expr_1. Improve comments.
34228 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
34229 (ccmp_ior<mode>): Remove pattern.
34230 (cmp<mode>): Remove expand.
34231 (cmp): Globalize pattern.
34232 (cstorecc4): Use cc_register.
34233 (mov<mode>cc): Remove ccmp_cc_register check.
34234 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
34235 Simplify after removal of CC_DNE/* modes.
34236 (aarch64_ccmp_mode_to_code): Remove.
34237 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
34238 In 'k' case use integer as condition.
34239 (aarch64_nzcv_codes): Remove inverted cases.
34240 (aarch64_code_to_ccmode): Remove.
34241 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
34242 comparison with CC register to be used in folowing CCMP/branch/CSEL.
34243 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
34244 pattern. Return the comparison with CC register. Invert conditions
34245 when bitcode is OR.
34246 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
34247 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
34248
34249 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34250
34251 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
34252 instrumented_version.
34253
34254 2016-01-19 Richard Biener <rguenther@suse.de>
34255
34256 PR tree-optimization/69336
34257 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
34258 handled components with get_ref_base_and_extent.
34259 (equal_mem_array_ref_p): Adjust.
34260
34261 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34262
34263 PR debug/65779
34264 * shrink-wrap.c: Include valtrack.h.
34265 (move_insn_for_shrink_wrap): Add DEBUG argument. If
34266 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
34267 in between insn and where it will be moved to. Call
34268 dead_debug_insert_temp.
34269 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
34270 first and dead_debug_local_finish at the end.
34271 For uses and defs bitmap, handle all regs in between REGNO and
34272 END_REGNO, not just the first one.
34273
34274 2016-01-19 Richard Biener <rguenther@suse.de>
34275
34276 PR tree-optimization/69352
34277 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
34278 (equal_mem_array_ref_p): Constrain size and max size properly.
34279 Compare the reverse flag.
34280
34281 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
34282
34283 * ira.c (ira): Update regstat data if we deleted insns.
34284
34285 2016-01-19 Jakub Jelinek <jakub@redhat.com>
34286
34287 PR rtl-optimization/68955
34288 PR rtl-optimization/64557
34289 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
34290 here. Fix up formatting.
34291 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
34292
34293 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34294
34295 PR lto/69133
34296 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
34297 assume that the node has body.
34298 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
34299 check.
34300
34301 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34302
34303 * lto-streamer-out.c (lto_output): Do not stream instrumentation
34304 thunks.
34305
34306 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
34307
34308 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
34309 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
34310
34311 2016-01-19 Martin Jambor <mjambor@suse.cz>
34312 Martin Liska <mliska@suse.cz>
34313 Michael Matz <matz@suse.de>
34314
34315 * Makefile.in (OBJS): Add new source files.
34316 (GTFILES): Add hsa.c.
34317 * common.opt (disable_hsa): New variable.
34318 (-Whsa): New warning.
34319 * config.in (ENABLE_HSA): New.
34320 * configure.ac: Treat hsa differently from other accelerators.
34321 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
34322 $enable_offloading.
34323 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
34324 * doc/install.texi (Configuration): Document --with-hsa-runtime,
34325 --with-hsa-runtime-include, --with-hsa-runtime-lib and
34326 --with-hsa-kmt-lib.
34327 * doc/invoke.texi (-Whsa): Document.
34328 (hsa-gen-debug-stores): Likewise.
34329 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
34330 to invoke offload compiler for hsa acclerator.
34331 * opts.c (common_handle_option): Determine whether HSA offloading
34332 should be performed.
34333 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
34334 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
34335 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
34336 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
34337 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
34338 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
34339 GF_OMP_FOR_KIND_GRID_LOOP.
34340 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
34341 (pp_gimple_stmt_1): Likewise.
34342 * gimple-walk.c (walk_gimple_stmt): Likewise.
34343 * gimple.c (gimple_build_omp_grid_body): New function.
34344 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
34345 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
34346 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
34347 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
34348 GF_OMP_TEAMS_GRID_PHONY.
34349 (gimple_statement_omp_single_layout): Updated comments.
34350 (gimple_build_omp_grid_body): New function.
34351 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
34352 (gimple_omp_for_grid_phony): New function.
34353 (gimple_omp_for_set_grid_phony): Likewise.
34354 (gimple_omp_parallel_grid_phony): Likewise.
34355 (gimple_omp_parallel_set_grid_phony): Likewise.
34356 (gimple_omp_teams_grid_phony): Likewise.
34357 (gimple_omp_teams_set_grid_phony): Likewise.
34358 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
34359 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
34360 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
34361 (BUILT_IN_GOMP_TARGET): Updated type.
34362 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
34363 (adjust_for_condition): New function.
34364 (get_omp_for_step_from_incr): Likewise.
34365 (extract_omp_for_data): Moved parts to adjust_for_condition and
34366 get_omp_for_step_from_incr.
34367 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
34368 (fixup_child_record_type): Bail out if receiver_decl is NULL.
34369 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
34370 (scan_omp_parallel): Do not create child functions for phony
34371 constructs.
34372 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
34373 (scan_omp_1_op): Checking assert we are not remapping to
34374 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
34375 (parallel_needs_hsa_kernel_p): New function.
34376 (expand_parallel_call): Register apprpriate parallel child
34377 functions as HSA kernels.
34378 (grid_launch_attributes_trees): New type.
34379 (grid_attr_trees): New variable.
34380 (grid_create_kernel_launch_attr_types): New function.
34381 (grid_insert_store_range_dim): Likewise.
34382 (grid_get_kernel_launch_attributes): Likewise.
34383 (get_target_argument_identifier_1): Likewise.
34384 (get_target_argument_identifier): Likewise.
34385 (get_target_argument_value): Likewise.
34386 (push_target_argument_according_to_value): Likewise.
34387 (get_target_arguments): Likewise.
34388 (expand_omp_target): Call get_target_arguments instead of looking
34389 up for teams and thread limit.
34390 (grid_expand_omp_for_loop): New function.
34391 (grid_arg_decl_map): New type.
34392 (grid_remap_kernel_arg_accesses): New function.
34393 (grid_expand_target_kernel_body): New function.
34394 (expand_omp): Call it.
34395 (lower_omp_for): Do not emit phony constructs.
34396 (lower_omp_taskreg): Do not emit phony constructs but create for them
34397 a temporary variable receiver_decl.
34398 (lower_omp_taskreg): Do not emit phony constructs.
34399 (lower_omp_teams): Likewise.
34400 (lower_omp_grid_body): New function.
34401 (lower_omp_1): Call it.
34402 (grid_reg_assignment_to_local_var_p): New function.
34403 (grid_seq_only_contains_local_assignments): Likewise.
34404 (grid_find_single_omp_among_assignments_1): Likewise.
34405 (grid_find_single_omp_among_assignments): Likewise.
34406 (grid_find_ungridifiable_statement): Likewise.
34407 (grid_target_follows_gridifiable_pattern): Likewise.
34408 (grid_remap_prebody_decls): Likewise.
34409 (grid_copy_leading_local_assignments): Likewise.
34410 (grid_process_kernel_body_copy): Likewise.
34411 (grid_attempt_target_gridification): Likewise.
34412 (grid_gridify_all_targets_stmt): Likewise.
34413 (grid_gridify_all_targets): Likewise.
34414 (execute_lower_omp): Call grid_gridify_all_targets.
34415 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
34416 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
34417 (tree_omp_clause): Added union field dimension.
34418 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
34419 * tree.c (omp_clause_num_ops): Added number of arguments of
34420 OMP_CLAUSE__GRIDDIM_.
34421 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
34422 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
34423 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
34424 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
34425 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
34426 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
34427 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
34428 * tree-pass.h (make_pass_gen_hsail): Declare.
34429 (make_pass_ipa_hsa): Likewise.
34430 * ipa-hsa.c: New file.
34431 * lto-section-in.c (lto_section_name): Add hsa section name.
34432 * lto-streamer.h (lto_section_type): Add hsa section.
34433 * timevar.def (TV_IPA_HSA): New.
34434 * hsa-brig-format.h: New file.
34435 * hsa-brig.c: New file.
34436 * hsa-dump.c: Likewise.
34437 * hsa-gen.c: Likewise.
34438 * hsa.c: Likewise.
34439 * hsa.h: Likewise.
34440 * toplev.c (compile_file): Call hsa_output_brig.
34441 * hsa-regalloc.c: New file.
34442
34443 2016-01-18 Jeff Law <law@redhat.com>
34444
34445 PR tree-optimization/69320
34446 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
34447 ranged object, do nothing if the RHS constant is not [0..1].
34448 (optimize_stmt): Comparing a boolean ranged object against a
34449 constant outside [0..1] results in a compile-time constant.
34450
34451 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
34452 test.
34453
34454 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
34455
34456 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34457 (Option Summary): Update to reflect new section and moved options.
34458 (C++ Dialect Options): Move -fstats to new section.
34459 (Debugging Options): Move all dump, statistics, and other GCC
34460 developer options to new section. Rewrite section introduction
34461 and re-order remaining options to put the more basic ones first.
34462 (Optimization Options): Move -fira-verbose and -flto-report* to
34463 new section.
34464 (Developer Options): New section incorporating moved options.
34465 * doc/cppopts.texi (-dM): Update cross-reference.
34466
34467 2016-01-18 Richard Henderson <rth@redhat.com>
34468
34469 PR target/69176
34470 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
34471 operands to pseudo only if CSE is expected. Split long immediate
34472 operands only after reload, and for the stack pointer.
34473 (*add<GPI>3_pluslong): Remove.
34474 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
34475 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
34476 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
34477 (*add<GPI>3 peepholes): New.
34478 (*add<GPI>3 splitters): New.
34479 * config/aarch64/constraints.md (Upl): New.
34480 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
34481
34482 2016-01-18 Richard Biener <rguenther@suse.de>
34483
34484 PR tree-optimization/69297
34485 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
34486 stmt at most once.
34487 (vect_bb_vectorization_profitable_p): Clear visited flag again.
34488
34489 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
34490
34491 PR middle-end/68542
34492 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
34493 of mixind vector and scalar types.
34494 (fold_relational_const): Add handling of vector
34495 comparison with boolean result.
34496 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
34497 comparison of vector operands with boolean result for EQ/NE only.
34498 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
34499 (verify_gimple_cond): Likewise.
34500 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
34501 valid type of VAL.
34502
34503 2016-01-18 Joseph Myers <joseph@codesourcery.com>
34504
34505 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
34506 !TARGET_OCTEON.
34507
34508 2016-01-18 Richard Biener <rguenther@suse.de>
34509
34510 PR middle-end/69308
34511 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
34512
34513 2016-01-18 Tom de Vries <tom@codesourcery.com>
34514
34515 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
34516
34517 2016-01-18 Tom de Vries <tom@codesourcery.com>
34518
34519 * omp-low.c (set_oacc_fn_attrib): Make extern.
34520 * omp-low.h (set_oacc_fn_attrib): Declare.
34521 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
34522 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
34523 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
34524 Add and handle function parameter oacc_kernels_p.
34525 (find_reduc_addr, get_omp_data_i_param): New function.
34526 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
34527 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
34528 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
34529 Calculate dominance info. Skip loops that are not in a kernels region
34530 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
34531 (pass_parallelize_loops::execute): Call parallelize_loops with
34532 oacc_kernels_p argument.
34533 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
34534 New member function.
34535 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
34536 * passes.def: Add argument to pass_parallelize_loops instantation.
34537
34538 2016-01-18 Tom de Vries <tom@codesourcery.com>
34539
34540 * tree-parloops.c (pass_parallelize_loops::execute): Allow
34541 pass_parallelize_loops to be run outside the loop pipeline.
34542
34543 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34544
34545 * tree-scalar-evolution.c (follow_copies_to_constant): New.
34546 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
34547
34548 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34549
34550 PR target/63679
34551 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
34552 using get_ref_base_and_extent.
34553 (equal_mem_array_ref_p): New.
34554 (hashable_expr_equal_p): Add call to previous.
34555
34556 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
34557
34558 PR target/63679
34559 * tree-sra.c (disqualified_constants, constant_decl_p): New.
34560 (sra_initialize): Allocate disqualified_constants.
34561 (sra_deinitialize): Free disqualified_constants.
34562 (disqualify_candidate): Update disqualified_constants when appropriate.
34563 (create_access): Scan for constant-pool entries as we go along.
34564 (scalarizable_type_p): Add check against type_contains_placeholder_p.
34565 (maybe_add_sra_candidate): Allow constant-pool entries.
34566 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
34567 (initialize_constant_pool_replacements): New.
34568 (sra_modify_assign): Avoid mangling assignments created by previous,
34569 and don't generate writes into constant pool.
34570 (sra_modify_function_body): Call initialize_constant_pool_replacements.
34571
34572 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
34573
34574 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
34575 andnot instruction.
34576 (scalar_chain::convert_op): Likewise.
34577 * config/i386/i386.md (*andndi3_doubleword): New.
34578
34579 2016-01-18 Richard Biener <rguenther@suse.de>
34580
34581 PR tree-optimization/69170
34582 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
34583 building a vector from scalar results of a pattern stmt.
34584
34585 2016-01-18 Jakub Jelinek <jakub@redhat.com>
34586
34587 * haifa-sched.c (autopref_multipass_init): Work around
34588 -Wmaybe-uninitialized warning.
34589
34590 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
34591
34592 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
34593 against the constant 0.
34594
34595 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34596
34597 PR tree-optimization/68799
34598 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
34599 look up phi candidates in the statement-candidate map.
34600 (phi_add_costs): Likewise.
34601 (record_phi_increments): Likewise.
34602 (phi_incr_cost): Likewise.
34603 (ncd_with_phi): Likewise.
34604 (all_phi_incrs_profitable): Likewise.
34605
34606 2016-01-17 Jakub Jelinek <jakub@redhat.com>
34607
34608 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
34609 -Wmaybe-uninitialized warning.
34610
34611 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
34612
34613 * doc/invoke.texi (Invoking GCC): Add new section to menu.
34614 (Option Summary): Update to reflect new section and moved options.
34615 (C++ Dialect Options): Move -fvtable-verify and related options.
34616 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
34617 and profiling-related options.
34618 (Optimization Options): Move profile generation options and
34619 -fstack-protector and related options.
34620 (Instrumentation Options): New section incorporating moved options.
34621 (Code Generation Options): Move -finstrument-functions and
34622 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
34623
34624 2016-01-16 Tom de Vries <tom@codesourcery.com>
34625
34626 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
34627
34628 2016-01-16 Tom de Vries <tom@codesourcery.com>
34629
34630 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
34631
34632 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
34633
34634 * hash-table.h (hash_table::empty): Turn into an inline wrapper
34635 that checks whether the table is already empty. Rename the
34636 original implementation to...
34637 (hash_table::empty_slot): ...this new private function.
34638
34639 2016-01-15 David Malcolm <dmalcolm@redhat.com>
34640
34641 PR diagnostic/68899
34642 * diagnostic-show-locus.c (layout::print_source_line): Move x
34643 offset of line until after call to
34644 get_line_width_without_trailing_whitespace.
34645
34646 2016-01-15 Jeff Law <law@redhat.com>
34647
34648 PR tree-optimization/69270
34649 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
34650 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
34651 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
34652 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
34653 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
34654 ssa_name_has_boolean_range and constant_boolean_node.
34655
34656 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
34657
34658 PR rtl-optimization/69030
34659 * lra-spills.c (remove_pseudos): Check nrefs and make the function
34660 returning bool.
34661 (spill_pseudos): Delete debug insn for dead pseudo.
34662 (lra_spill): Initiate spill_hard_reg and slots memory separately.
34663
34664 2016-01-15 Jiong Wang <jiong.wang@arm.com>
34665
34666 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
34667 New.
34668 (TYPES_UNOPUS): Likewise.
34669 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
34670 builtin type, from UNOP to UNOPUS.
34671 (lbtruncuv4sf): Likewise.
34672 (lbtruncuv2df): Likewise.
34673 (lrounduv2sf): Likewise.
34674 (lrounduv4sf): Likewise.
34675 (lrounduv2df): Likewise.
34676 (lroundusf): Likewise.
34677 (lroundusf): Likewise.
34678 (lceiluv2sf): Likewise.
34679 (lceiluv4sf): Likewise.
34680 (lceiluv2df): Likewise.
34681 (lceilusf): Likewise.
34682 (lceiludf): Likewise.
34683 (lflooruv2sf): Likewise.
34684 (lflooruv4sf): Likewise.
34685 (lflooruv2df): Likewise.
34686 (lfloorusf): Likewise.
34687 (lfloorudf): Likewise.
34688 (lfrintnuv2sf): Likewise.
34689 (lfrintnuv4sf): Likewise.
34690 (lfrintnuv2df): Likewise.
34691 (lfrintnusf): Likewise.
34692 (lfrintnudf): Likewise.
34693 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
34694 conversion.
34695 (vcvtq_u32_f32): Likewise.
34696 (vcvtq_u64_f64): Likewise.
34697 (vcvta_u32_f32): Likewise.
34698 (vcvtaq_u32_f32): Likewise.
34699 (vcvtaq_u64_f64): Likewise.
34700 (vcvtm_u32_f32): Likewise.
34701 (vcvtmq_u32_f32): Likewise.
34702 (vcvtmq_u64_f64): Likewise.
34703 (vcvtn_u32_f32): Likwise.
34704 (vcvtnq_u32_f32): Likewise.
34705 (vcvtnq_u64_f64): Likewise.
34706 (vcvtp_u32_f32): Likewise.
34707 (vcvtpq_u32_f32): Likewise.
34708 (vcvtpq_u64_f64): Likewise.
34709 (vcvtmd_u64_f64): Likewise.
34710 (vcvtms_u32_f32): Likewise.
34711 (vcvtad_u64_f64): Likewise.
34712 (vcvtas_u32_f32): Likewise.
34713 (vcvtnd_u64_f64): Likewise.
34714 (vcvtns_u32_f32): Likewise.
34715 (vcvtpd_u64_f64): Likewise.
34716 (vcvtps_u32_f32): Likewise.
34717
34718 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34719
34720 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
34721 CSEL of zero_extended registers.
34722
34723 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34724
34725 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34726 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
34727
34728 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34729
34730 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
34731 false when argument string is not found in the attributes table
34732 at all.
34733
34734 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
34735
34736 PR target/68609
34737 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
34738 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
34739 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
34740 precision estimate.
34741
34742 2016-01-15 Richard Biener <rguenther@suse.de>
34743
34744 PR tree-optimization/66856
34745 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
34746 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
34747 (vect_create_new_slp_node): Increment stmt reference count.
34748 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
34749 an SLP tree before swapping operands.
34750 (vect_build_slp_tree): Likewise.
34751 (destroy_bb_vec_info): Free stmt info after SLP instances.
34752 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
34753 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
34754 (STMT_VINFO_NUM_SLP_USES): New macro.
34755
34756 2016-01-15 Richard Biener <rguenther@suse.de>
34757
34758 PR debug/69137
34759 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
34760 (add_linkage_name): ... here.
34761 (gen_typedef_die): Use add_linkage_name_raw instead of
34762 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
34763 if necessary.
34764
34765 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
34766
34767 * gimplify.c (oacc_default_clause): Decode reference and pointer
34768 types for both kernels and parallel regions.
34769
34770 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
34771
34772 PR middle-end/69246
34773 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
34774
34775 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34776
34777 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
34778 (convert_scalars_to_vector): Likewise.
34779
34780 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
34781
34782 * doc/extend.texi (Type Traits): Fix grammar.
34783
34784 2016-01-15 Martin Jambor <mjambor@suse.cz>
34785
34786 * tree-inline.c (remap_decl): Use existing dclarations if
34787 remapping a type and prevent_decl_creation_for_types.
34788 (replace_locals_stmt): Do an initial remapping of non-VLA typed
34789 decls first. Do real remapping with
34790 prevent_decl_creation_for_types set.
34791 * tree-inline.h (copy_body_data): New field
34792 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
34793 padding.
34794
34795 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34796
34797 * config/s390/s390.opt (mmvcle): More verbose help text.
34798
34799 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
34800
34801 * config/s390/s390.opt: Add period to -mzvector option text.
34802
34803 2016-01-15 Richard Biener <rguenther@suse.de>
34804
34805 PR tree-optimization/68961
34806 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
34807 of invariants in stores again.
34808
34809 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34810
34811 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
34812
34813 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
34814
34815 * config/i386/i386.c (ix86_expand_branch): Don't split
34816 DI mode xor instruction to SI mode.
34817
34818 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34819
34820 PR ipa/68148
34821 * ipa-icf.c (sem_function::merge): Virtual functions may become
34822 reachable even if they address is not taken and there are no
34823 idrect calls.
34824
34825 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
34826
34827 * lto-streamer-out.c (subtract_estimated_size): New function.
34828 (get_symbol_initial_value): Use it.
34829
34830 2016-01-15 Christian Bruel <christian.bruel@st.com>
34831
34832 PR target/65837
34833 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
34834 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
34835 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
34836 use add_builtin_function_ext_scope instead of add_builtin_function.
34837 (neon_set_p, neon_crypto_set_p): Remove.
34838 (arm_init_builtins): Always call arm_init_neon_builtins and
34839 arm_init_crypto_builtins.
34840 (arm_expand_builtin): Check that builtins are allowed for the arch.
34841 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
34842 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
34843 arm_init_neon_builtins call.
34844
34845 2016-01-15 Richard Biener <rguenther@suse.de>
34846
34847 PR tree-optimization/69117
34848 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
34849 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
34850 of the leader conservatively.
34851 (free_scc_vn): Restore original SSA name infos.
34852
34853 2016-01-14 Jeff Law <law@redhat.com>
34854
34855 PR tree-optimization/69270
34856 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
34857 single bit of precision, verify it's also unsigned.
34858 (record_edge_info): Use constant_boolean_node rather than fold_convert
34859 to convert boolean_true/boolean_false to the right type.
34860
34861 2016-01-14 Richard Henderson <rth@redhat.com>
34862
34863 PR rtl-opt/69014
34864 * loop-doloop.c (record_reg_sets): New.
34865 (doloop_optimize): Reject the transform if the sequence
34866 clobbers registers live at the end of the loop block.
34867 (doloop_optimize_loops): Enable df_live if needed.
34868
34869 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
34870
34871 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
34872 * config/rs6000/rs6000.c: Likewise.
34873 * config/rs6000/rs6000.h: Likewise.
34874 * config/rs6000/rs6000.md: Likewise.
34875 * doc/extend.texi: Likewsie.
34876
34877 2016-01-14 Jeff Law <law@redhat.com>
34878
34879 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
34880 typo.
34881
34882 2016-01-14 Richard Henderson <rth@redhat.com>
34883
34884 PR c/69272
34885 PR tree-opt/68964
34886 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
34887 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
34888 instead of builtin_decl_declared_p to test for declaration.
34889
34890 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
34891
34892 * doc/loop.texi (Loop Analysis and Representation): Document
34893 loop_depth function.
34894
34895 2016-01-14 Tom de Vries <tom@codesourcery.com>
34896
34897 PR tree-optimization/68773
34898 * omp-low.c (expand_omp_target): Don't set force_output.
34899 * varpool.c (varpool_node::get_create): Same.
34900 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
34901 offload_funcs with force_output.
34902
34903 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34904
34905 PR debug/69244
34906 * lra-eliminations.c (move_plus_up): Don't change anything if either
34907 the outer or inner subreg mode is not MODE_INT.
34908 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
34909 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
34910
34911 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34912
34913 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
34914 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
34915 reduc_uplus_@var{m}): Remove.
34916 * expr.c (expand_expr_real_2): Remove expansion path for
34917 reduc_[us](min|max|plus) optabs.
34918 * optabs-tree.c (scalar_reduc_to_vector): Remove.
34919 * optabs-tree.h (scalar_reduc_to_vector): Remove.
34920 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
34921 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
34922 * tree-vect-loop.c (vectorizable_reduction): Remove test for
34923 reduc_[us](min|max|plus) optabs.
34924
34925 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
34926
34927 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
34928 (reduc_plus_scal_v2sf): New.
34929 (reduc_smax_v2sf): Rename to...
34930 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
34931 (reduc_smin_v2sf): Rename to...
34932 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
34933
34934 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
34935
34936 * alias.c (compare_base_symbol_refs): New function.
34937 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
34938 it.
34939
34940 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34941
34942 PR middle-end/68146
34943 PR tree-optimization/69155
34944 * tree-complex.c: Include cfganal.h.
34945 (phis_to_revisit): New variable.
34946 (extract_component): Add phiarg_p argument. Assert that returned
34947 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
34948 (update_phi_components): Partly rewrite to use loop over real/imag
34949 components instead of code duplication. If extract_component returns
34950 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
34951 create_tmp_reg into the PHI node instead, and mention the phi triplet
34952 in phis_to_revisit.
34953 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
34954 in phis_to_revisit at the end.
34955
34956 2016-01-14 Richard Biener <rguenther@suse.de>
34957
34958 PR tree-optimization/68060
34959 * tree-vect-loop.c (vect_is_simple_reduction): Check the
34960 outer loop reduction is only used in the inner loop before
34961 detecting a double reduction.
34962
34963 2016-01-14 Jakub Jelinek <jakub@redhat.com>
34964
34965 PR target/68269
34966 * combine.c (expand_field_assignment): Punt if compute_mode is
34967 unsupported scalar mode.
34968
34969 2016-01-14 Richard Biener <rguenther@suse.de>
34970
34971 PR tree-optimization/66856
34972 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
34973 SLP node only if it built successfully.
34974 (vect_analyze_slp_instance): Adjust.
34975
34976 2016-01-14 Jeff Law <law@redhat.com>
34977
34978 PR tree-optimization/69270
34979 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
34980 (record_edge_info): Use it. Convert boolean_{true,false}_node
34981 to the type of op0.
34982
34983 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
34984
34985 PR ipa/66487
34986 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
34987 use block_ultimate_origin
34988 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
34989
34990 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34991
34992 * doc/invoke.texi (Submodel Options): Rename section to
34993 "Machine-Dependent Options" to better reflect its content.
34994 Rewrite introductory text to remove archaic CPU names.
34995 Update references.
34996
34997 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
34998
34999 * doc/invoke.texi (Code Gen Options): Move section up in file,
35000 before target-specific options. Update menu and option summary
35001 to reflect the new section ordering.
35002
35003 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35004
35005 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
35006 (C++ Dialect Options): Add cross-reference to -std option.
35007 * doc/standards.texi (C++ Language): Document C++14 support.
35008
35009 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
35010
35011 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
35012 for pack/unpack functions for __ibm128.
35013 (PACK_IF): Likewise.
35014 (UNPACK_IF): Likewise.
35015
35016 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
35017 support for __ibm128 pack/unpack functions.
35018 (rs6000_invalid_builtin): Likewise.
35019 (rs6000_init_builtins): Likewise.
35020 (rs6000_opt_masks): Likewise.
35021
35022 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
35023 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
35024 functions
35025 (RS6000_BTM_COMMON): Likewise.
35026
35027 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
35028 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
35029 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
35030 128-bit floating point. Add support for the double values to be
35031 in Altivec registers for TF/IF packing and unpacking, but restrict
35032 TD packing sub-fields to be FPR registers. Don't allow overlapped
35033 register support for packing. Allow pack inputs to be memory
35034 locations. Don't build generator functions for unpack<mode>_dm
35035 and unpack<mode>_nodm.
35036 (unpack<mode>_dm): Likewise.
35037 (unpack<mode>_nodm): Likewise.
35038 (pack<mode>): Likewise.
35039
35040 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
35041 built-in functions to pack/unpack explicit __ibm128 values.
35042 (__builtin_unpack_ibm128): Likewise.
35043
35044 * doc/extend.texi (PowerPC Built-in Functions): Document
35045 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
35046
35047 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
35048
35049 PR c/66208
35050 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
35051 Add new arg loc and pass it down as context.
35052 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
35053 to the location to use for the warning.
35054 (check_function_arguments): New arg loc. All callers changed. Pass
35055 it to check_function_nonnull.
35056 * c-common.h (check_function_arguments): Adjust declaration.
35057
35058 2016-01-13 Jakub Jelinek <jakub@redhat.com>
35059
35060 PR tree-optimization/69156
35061 * gimple.c (validate_type): Removed.
35062 (gimple_builtin_call_types_compatible_p): Use
35063 useless_type_conversion_p instead of validate_type.
35064 * value-prof.c (gimple_stringop_fixed_value): Fold
35065 icall_size to correct type.
35066
35067 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
35068
35069 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
35070 effects.
35071
35072 2016-01-13 Richard Henderson <rth@redhat.com>
35073
35074 PR tree-opt/68964
35075 * target.def (builtin_tm_load, builtin_tm_store): Remove.
35076 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
35077 (ix86_builtin_tm_store): Remove.
35078 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35079 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35080 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
35081 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
35082 * doc/tm.texi: Rebuild.
35083
35084 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
35085 (BUILT_IN_TM_MEMCPY_RTWN): New.
35086 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
35087 fallback from vector to integer helpers.
35088 (build_tm_load): Handle vector types directly, instead of
35089 via target hook.
35090 (build_tm_store): Likewise.
35091 (expand_assign_tm): Prepare for register types not handled by
35092 the above. Copy them to memory and use memcpy.
35093 * tree.c (tm_define_builtin): New.
35094 (find_tm_vector_type): New.
35095 (build_tm_vector_builtins): New.
35096 (build_common_builtin_nodes): Call it.
35097
35098 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
35099
35100 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
35101 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
35102
35103 2016-01-13 Tom de Vries <tom@codesourcery.com>
35104
35105 PR tree-optimization/69169
35106 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
35107 handled_struct_type param.
35108 (create_variable_info_for, intra_create_variable_infos): Call
35109 create_variable_info_for_1 with extra arg.
35110
35111 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
35112
35113 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
35114 and "armv8.1-a+crc" entries.
35115
35116 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
35117
35118 PR target/69228
35119 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
35120 Change first operand predicate from register_or_constm1_operand
35121 to register_operand.
35122 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
35123 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
35124 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
35125 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
35126 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
35127 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
35128 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
35129 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
35130 comparison with constm1_rtx from vec_prefetch_gen part.
35131
35132 2016-01-13 Richard Biener <rguenther@suse.de>
35133
35134 PR tree-optimization/69013
35135 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
35136 Exchange assert for a test.
35137
35138 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35139
35140 PR target/69247
35141 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
35142
35143 2016-01-13 Richard Biener <rguenther@suse.de>
35144
35145 PR tree-optimization/69242
35146 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
35147 assert with a check.
35148
35149 2016-01-13 Richard Biener <rguenther@suse.de>
35150
35151 PR tree-optimization/69186
35152 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35153 Properly guard vect_update_misalignment_for_peel call.
35154
35155 2016-01-12 Jeff Law <law@redhat.com>
35156
35157 PR tree-optimization/pr67755
35158 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
35159 "need_profile_correction".
35160 (thread_block_1): Initialize new field to false by default. If we
35161 have multiple thread paths through a common joiner to different
35162 final targets, then set new field to true.
35163 (compute_path_counts): Only do count adjustment when it's really
35164 needed.
35165
35166 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35167
35168 * doc/invoke.texi (Spec Files): Move section down in file, past
35169 all command-line option descriptions.
35170
35171 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35172
35173 PR middle-end/54809
35174 * doc/gty.texi: Remove documentation of mark_hook.
35175 * gengtype.c (struct write_types_data): Remove code to support
35176 mark_hook attribute.
35177 (walk_type): Likewise.
35178 (write_func_for_structure): Likewise.
35179
35180 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35181
35182 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
35183 Directory Options, and -specs= to Overall Options.
35184 (Overall Options): Adjust similarly. Reorder to group related
35185 options together. Make -specs= cross-reference the spec file details.
35186 (Directory Options): Adjust similarly.
35187
35188 2016-01-12 Jeff Law <law@redhat.com>
35189
35190 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
35191
35192 2016-01-12 Olivier Hainque <hainque@adacore.com>
35193
35194 * gcc.c (spec_undefvar_allowed): New global.
35195 (process_command): Set to true when running for --version or --help,
35196 alone or together.
35197 (getenv_spec_function): When the variable is not defined, use the
35198 variable name as the variable value if we're allowed not to issue
35199 a fatal error.
35200
35201 2016-01-12 Bin Cheng <bin.cheng@arm.com>
35202
35203 PR tree-optimization/68911
35204 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
35205 information computed for expression "init + nit * step".
35206
35207 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
35208
35209 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
35210 about name of GCC executable. Remove deleted node from menu.
35211 (Directory Options) <-B>: Remove cross-reference to deleted node.
35212 (Target Options): Delete section.
35213
35214 2016-01-12 Christian Bruel <christian.bruel@st.com>
35215
35216 PR target/69180
35217 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
35218 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
35219
35220 2016-01-12 Jakub Jelinek <jakub@redhat.com>
35221
35222 PR target/69198
35223 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
35224 aligned_mem is properly set for AVX512-VL floating point masked
35225 stores.
35226
35227 PR target/69175
35228 * ifcvt.c (cond_exec_process_if_block): When removing the last
35229 insn from then_bb, remove also any possible barriers that follow it.
35230
35231 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
35232
35233 PR target/68456
35234 PR target/69226
35235 * config/i386/iamcu.h (SIZE_TYPE): New macro.
35236 (PTRDIFF_TYPE): Likewise.
35237 (WCHAR_TYPE): Likewise.
35238 (WCHAR_TYPE_SIZE): Likewise.
35239 (STDINT_LONG32): Likewise.
35240
35241 2016-01-12 Richard Biener <rguenther@suse.de>
35242
35243 PR tree-optimization/69053
35244 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
35245 convert initial value for cond reductions.
35246
35247 2016-01-12 Richard Biener <rguenther@suse.de>
35248
35249 PR tree-optimization/69007
35250 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
35251 widen_sum after dot_prod and sad.
35252
35253 2016-01-12 Richard Biener <rguenther@suse.de>
35254
35255 PR tree-optimization/69168
35256 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
35257 pattern stmt SLP type.
35258 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
35259 end up unused so cope with that case.
35260
35261 2016-01-12 Richard Biener <rguenther@suse.de>
35262
35263 PR tree-optimization/69157
35264 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
35265 stmts def type only during analyze phase.
35266 (vectorizable_call): Likewise.
35267 (vectorizable_simd_clone_call): Likewise.
35268 (vectorizable_conversion): Likewise.
35269 (vectorizable_assignment): Likewise.
35270 (vectorizable_shift): Likewise.
35271 (vectorizable_operation): Likewise.
35272 (vectorizable_store): Likewise.
35273 (vectorizable_load): Likewise.
35274
35275 2016-01-12 Richard Biener <rguenther@suse.de>
35276
35277 PR tree-optimization/69174
35278 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
35279 space.
35280 (vectorizable_load): Properly compute the number of loads needed
35281 for permuted strided SLP loads and do not spuriously assign
35282 to SLP_TREE_VEC_STMTS.
35283
35284 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
35285
35286 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
35287 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
35288 (MD_EXEC_PREFIX): Remove.
35289 (MD_STARTFILE_PREFIX) Removee.
35290 (FILE_NAME_ABSOLUTE_P): Remove.
35291 (CPP_SPEC): Do not read macros from sys/version.h.
35292 (LINK_COMMAND_SPEC): Remove.
35293 (LOCAL_INCLUDE_DIR): Remove.
35294 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
35295 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
35296 (POST_LINK_SPEC): Define to invoke stubify after linker
35297 (LIBSTDCXX): Remove define
35298 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
35299 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
35300 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
35301 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
35302 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
35303 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
35304 (i386_djgpp_asm_named_section): Add propotype of new procedure
35305
35306 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
35307 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
35308 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
35309 in config/i386/djgpp.h).
35310 (STANDARD_STARTFILE_PREFIX_2): Define identical to
35311 STANDARD_STARTFILE_PREFIX_1.
35312 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
35313 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
35314 installation errors.
35315 (MAX_OFILE_ALIGNMENT): Define to 128.
35316 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
35317
35318 * config/i386/djgpp.c: New file. Add implementation of
35319 i386_djgpp_asm_named_section.
35320
35321 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
35322
35323 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
35324 Add rule for building djgpp.o.
35325
35326 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35327
35328 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
35329 (rtx_is_swappable_p): Reductions are swappable.
35330 (insn_is_swappable_p): V2DF reductions are swappable.
35331
35332 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
35333
35334 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
35335 reloads for other unsupported memory operands.
35336
35337 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
35338 Jim Wilson <jim.wilson@linaro.org>
35339
35340 PR target/69194
35341 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
35342 copy_to_mode_reg instead of force_reg.
35343
35344 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35345
35346 PR target/69225
35347 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
35348 TARGET_80387 is true.
35349
35350 2016-01-11 Jakub Jelinek <jakub@redhat.com>
35351
35352 PR target/69071
35353 * lra-eliminations.c (move_plus_up): Only move plus up
35354 if subreg of the constant can be simplified into constant
35355 and use the simplified subreg of the constant instead of
35356 the original constant.
35357
35358 * fold-const.c (fold_convertible_p): Don't return true
35359 for conversion of VECTOR_TYPE to same sized integral type.
35360 (fold_convert_loc): Fix up formatting. Fold conversion of
35361 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
35362 instead of NOP_EXPR.
35363
35364 PR tree-optimization/69214
35365 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
35366 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
35367 Formatting fix.
35368
35369 PR tree-optimization/69207
35370 * tree-vect-slp.c (vect_get_constant_vectors): For
35371 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
35372 fold_convertible_p to vector_type's element type, and always
35373 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
35374
35375 2016-01-11 Richard Biener <rguenther@suse.de>
35376
35377 PR tree-optimization/69173
35378 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
35379 fixup the cycle if all stmts are in a pattern.
35380
35381 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
35382
35383 PR middle-end/68999
35384 * alias.c (base_alias_check): Move check for addresses with
35385 alignment ANDs before the call for compare_base_decls.
35386 (memrefs_conflict_p): Return -1 for different decls
35387 that went through alignment adjustments.
35388
35389 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35390
35391 PR rtl-optimization/68796
35392 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
35393 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
35394 and QImode comparisons against zero with CC_NZmode.
35395 * config/aarch64/iterators.md (short_mask): New mode_attr.
35396
35397 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
35398
35399 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
35400 (<avx512>_store<mode>_mask): Likewise.
35401
35402 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
35403 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35404
35405 PR rtl-optimization/68841
35406 * ifcvt.c (struct noce_if_info): Add orig_x field.
35407 (bbs_ok_for_cmove_arith): Add to_rename parameter.
35408 Don't record conflicts on to_rename if it's present.
35409 Allow memory destinations in sets.
35410 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
35411 blocks, passing orig_x to the checks.
35412 (noce_process_if_block): Set if_info->orig_x appropriately.
35413
35414 2016-01-11 Tom de Vries <tom@codesourcery.com>
35415
35416 PR tree-optimization/69069
35417 * tree-parloops.c (create_parallel_loop): Add missing phi args.
35418
35419 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
35420
35421 PR rtl-optimization/68920
35422 * config/i386/i386.c (ix86_option_override_internal): Restrict number
35423 of conditional moves for RTL if-conversion to 1 for
35424 TARGET_ONE_IF_CONV_INSN.
35425 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
35426 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
35427 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
35428 parameter to restirct number of conditional moves for
35429 RTL if-conversion.
35430 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
35431 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
35432 conditionl moves.
35433
35434 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
35435
35436 PR bootstrap/69123
35437 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
35438 onepart vars. Fix typo in comment. Fix reversed condition in
35439 unshare test.
35440 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
35441
35442 PR bootstrap/69123
35443 * var-tracking.c (dump_onepart_variable_differences): New.
35444 (dataflow_set_different): If a detailed dump is requested,
35445 delay early returns and dump differences between onepart
35446 variables present before and after, and added variables.
35447
35448 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
35449
35450 PR target/69010
35451 * expr.c (expand_expr_real_1): For boolean vector constants
35452 with a scalar mode use const_scalar_mask_from_tree.
35453 (const_scalar_mask_from_tree): New.
35454 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
35455 assigned to a mask type to handle constants.
35456
35457 2016-01-11 Martin Jambor <mjambor@suse.cz>
35458
35459 PR ipa/69044
35460 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
35461 useless parameters if we cannot change function signature.
35462
35463 2016-01-11 Martin Jambor <mjambor@suse.cz>
35464
35465 PR ipa/66616
35466 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
35467 flag.
35468
35469 2016-01-11 Tom de Vries <tom@codesourcery.com>
35470
35471 PR tree-optimization/69109
35472 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
35473 latch with phi.
35474
35475 2016-01-11 Tom de Vries <tom@codesourcery.com>
35476
35477 PR tree-optimization/69108
35478 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
35479 res is not used in a phi.
35480
35481 2016-01-11 Yury Gribov <y.gribov@samsung.com>
35482
35483 PR 67425
35484 * common.opt (frandom-seed): Fix parameter name.
35485 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
35486
35487 2016-01-11 Tom de Vries <tom@codesourcery.com>
35488
35489 PR tree-optimization/69058
35490 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
35491 not supported.
35492
35493 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
35494
35495 * config/arc/arc.opt (mdiv-rem): Add period to the end.
35496 (mcode-density): Likewise.
35497
35498 2016-01-10 Tom de Vries <tom@codesourcery.com>
35499
35500 PR tree-optimization/69062
35501 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
35502 (parallelize_loops): Don't paralelize loop that has phi with address
35503 arg.
35504
35505 2016-01-10 Tom de Vries <tom@codesourcery.com>
35506
35507 PR tree-optimization/69039
35508 * tree-parloops.c (try_create_reduction_list): Only allow single exit
35509 phi for reduction.
35510
35511 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
35512
35513 PR middle-end/68743
35514 * match.pd: Require target has function_c99_misc before doing
35515 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
35516
35517 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
35518
35519 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
35520 use GMPINC.
35521 * configure: Regenerate.
35522
35523 2016-01-09 Jakub Jelinek <jakub@redhat.com>
35524
35525 PR middle-end/50865
35526 PR tree-optimization/69097
35527 * fold-const.h (expr_not_equal_to): New prototype.
35528 * fold-const.c: Include stringpool.h and tree-ssanames.h.
35529 (expr_not_equal_to): New function.
35530 * match.pd (X % -Y is the same as X % Y): Don't optimize
35531 unless X is known not to be equal to minimum or Y is known
35532 not to be equal to -1.
35533 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
35534 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
35535 (simplify_stmt_using_ranges): Adjust caller.
35536 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
35537 substitute_and_fold.
35538
35539 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
35540
35541 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
35542 w/o DECL_NAME.
35543
35544 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35545
35546 PR tree-optimization/69167
35547 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
35548 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
35549 ops[0] comparison.
35550 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
35551
35552 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35553 Richard Biener <rguenther@suse.de>
35554
35555 PR tree-optimization/68707
35556 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
35557 instances that can be handled via vect_load_lanes.
35558
35559 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
35560
35561 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
35562 if we can't determine address equivalence.
35563 * alias.c (compare_base_decl): Update for changed return value of
35564 symtab_node::equal_address_to.
35565
35566 2016-01-08 Jason Merrill <jason@redhat.com>
35567
35568 PR c++/68983
35569 PR c++/67557
35570 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
35571 * expr.c (store_field): Not here.
35572 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
35573 call with TREE_ADDRESSABLE type.
35574 * tree-cfg.c (verify_gimple_call): Adjust.
35575
35576 2016-01-08 Olivier Hainque <hainque@adacore.com>
35577
35578 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
35579 libc_internal.
35580
35581 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
35582
35583 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
35584 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
35585 (reduc_smin_v2sf): Rename to...
35586 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
35587 (reduc_splus_v2sf): Rename to...
35588 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
35589
35590 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35591
35592 PR tree-optimization/69162
35593 * gimplify.c (gimplify_va_arg_expr): Encode original type of
35594 valist argument in another argument.
35595 (gimplify_modify_expr): Adjust for the above change. Cleanup.
35596 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
35597 to determine the va_list type, build a MEM_REF instead of
35598 build_fold_indirect_ref.
35599
35600 PR tree-optimization/69172
35601 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
35602 gimple_build.
35603
35604 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
35605
35606 PR tree-optimization/67781
35607 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
35608 and cmpnop in two steps: first the ones not accessed in original
35609 gimple expression in a endian independent way and then the ones not
35610 accessed in the final result in an endian-specific way.
35611
35612 2016-01-08 Jakub Jelinek <jakub@redhat.com>
35613
35614 PR tree-optimization/69083
35615 * tree-vect-slp.c (vect_get_constant_vectors): For
35616 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
35617 element type. If op is fold_convertible_p to vector_type's element
35618 type, use NOP_EXPR instead of VCE.
35619
35620 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
35621
35622 PR rtl-optimization/67778
35623 PR rtl-optimization/68634
35624 PR rtl-optimization/68909
35625 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
35626 block from the stack until done with it. Remove a superfluous
35627 bitmap set. Remove a superfluous bitmap test.
35628
35629 2016-01-07 Martin Sebor <msebor@redhat.com>
35630
35631 PR c/68966
35632 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
35633 constraint on the type of arguments.
35634
35635 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
35636
35637 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
35638 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
35639 unaligned_access on the gcc_options set.
35640 * config/arm/arm.c (arm_option_override_internal): Use
35641 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
35642
35643 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35644
35645 PR target/69140
35646 * config/i386/i386.c (ix86_frame_pointer_required): Enable
35647 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
35648
35649 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
35650
35651 Revert
35652 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35653
35654 PR target/69140
35655 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35656 depending on frame_pointer_needed before remaining integer and SSE
35657 registers are saved.
35658
35659 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
35660
35661 PR 1078
35662 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
35663
35664 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
35665
35666 PR target/69171
35667 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
35668 Use the "xBm" constraint.
35669 (float<sseintvecmodelower><mode>2<mask_name><round_name):
35670 Likewise.
35671 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
35672 (sse_cvtsi2ssq<round_name>): Likewise.
35673 (sse_cvtss2si<round_name>): Likewise.
35674 (sse_cvtss2siq<round_name>): Likewise.
35675 (sse2_cvtsi2sdq<round_name>): Likewise.
35676 (sse2_cvtsd2si<round_name>): Likewise.
35677 (sse2_cvtsd2siq<round_name>): Likewise.
35678 * config/i386/subst.md (round_nimm_scalar_predicate): New
35679 predicate.
35680
35681 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
35682
35683 PR middle-end/67639
35684 * varasm.c (make_decl_rtl): Mark invalid register vars as
35685 DECL_EXTERNAL.
35686
35687 PR rtl-optimization/66206
35688 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
35689 All callers changed.
35690
35691 2016-01-07 Jakub Jelinek <jakub@redhat.com>
35692
35693 PR tree-optimization/69141
35694 * tree-ssa-pre.c: Include langhooks.h.
35695 (eliminate_dom_walker::before_dom_children): Use
35696 lang_hooks.decl_printable_name instead of
35697 cgraph_node::get ()->name ().
35698
35699 PR middle-end/68960
35700 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
35701 it and DECL_ALIGN too.
35702
35703 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
35704
35705 * config/mips/mips-ftypes.def: Sort to lexicographical order.
35706
35707 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
35708
35709 PR target/69140
35710 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
35711 depending on frame_pointer_needed before remaining integer and SSE
35712 registers are saved.
35713
35714 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35715
35716 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
35717 mode iterator with VSX_M2.
35718 (*p9_vecstore_<mode>): Likewise.
35719 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
35720 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
35721 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
35722 (define_split for VSX_LE128 stores): Likewise.
35723 (define_peephole2 for TImode LE swaps): Likewise.
35724 (define_split for VSX_LE128 post-reload stores): Likewise.
35725
35726 2016-01-06 Marek Polacek <polacek@redhat.com>
35727
35728 PR sanitizer/69099
35729 * convert.c (convert_to_integer_1): Adjust call to
35730 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
35731 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
35732 EXPR instead of ARG.
35733 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
35734
35735 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35736
35737 PR 1078
35738 * doc/extend.texi (RL78 Variable Attributes): New section.
35739
35740 2016-01-05 Marek Polacek <polacek@redhat.com>
35741
35742 PR c/69104
35743 * builtins.c (get_memmodel): Use expansion point location rather than
35744 the input location. Call warning_at rather than warning.
35745 (expand_builtin_atomic_compare_exchange): Likewise.
35746 (expand_builtin_atomic_load): Likewise.
35747 (expand_builtin_atomic_store): Likewise.
35748 (expand_builtin_atomic_clear): Likewise.
35749
35750 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35751
35752 PR target/68991
35753 * config/i386/i386.c (ix86_expand_vector_logical_operator):
35754 Replace nonimmediate_operand with vector_operand.
35755 * config/i386/predicates.md (vector_operand): New predicate.
35756 (general_vector_operand): Replace nonimmediate_operand with
35757 vector_operand.
35758 * config/i386/sse.md: Replace nonimmediate_operand with
35759 vector_operand and m constraint with Bm constraint on SSE
35760 patterns with 16-byte memory operand.
35761 * config/i386/subst.md (round_nimm_predicate): Replace
35762 nonimmediate_operand with vector_operand.
35763 (round_saeonly_nimm_predicate): Likewise.
35764 (round_saeonly_nimm_scalar_predicate): New.
35765
35766 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
35767
35768 PR target/68991
35769 * config/i386/constraints.md (Bm): New constraint.
35770 * config/i386/predicates.md (vector_memory_operand): New
35771 predicate.
35772 * config/i386/sse.md: Replace xm with xBm in plusminus and
35773 any_logic patterns.
35774
35775 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35776
35777 PR 1078
35778 * doc/extend.texi (V850 Function Attributes): New section.
35779 (V850 Variable Attributes): New section.
35780
35781 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
35782
35783 PR 1078
35784 * doc/extend.texi (MicroBlaze Function Attributes): Document
35785 interrupt_handler and fast_interrupt attributes.
35786
35787 2016-01-05 Sergei Trofimovich <siarheit@google.com>
35788
35789 PR other/60465
35790 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
35791 for local symbolic operands.
35792 * config/ia64/predicates.md (local_symbolic_operand64): New
35793 predicate.
35794
35795 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35796
35797 PR rtl-optimization/68651
35798 * combine.c (combine_simplify_rtx): Canonicalize x + x into
35799 x << 1.
35800
35801 2016-01-05 Nathan Sidwell <nathan@acm.org>
35802
35803 * alias.c (compare_base_decls): Use symtab_node::get.
35804
35805 2016-01-05 Nick Clifton <nickc@redhat.com>
35806
35807 PR target/68770
35808 * ira-costs.c (copy_cost): Initialise the t_icode field of the
35809 secondary_reload_info structure.
35810
35811 PR target/66655
35812 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
35813 decls if weak support is available.
35814
35815 2016-01-04 Martin Sebor <msebor@redhat.com>
35816
35817 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
35818
35819 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
35820
35821 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
35822 OPTION_MASK_P9_DFORM.
35823
35824 * config/rs6000/constraints.md (wo constraint): New constraint for
35825 ISA 3.0 (power9).
35826
35827 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
35828 for wo constraint.
35829 (rs6000_init_hard_regno_mode_ok): Likewise.
35830
35831 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
35832 wo constraint.
35833
35834 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
35835 expanders not to have constraints. Add support for ISA 3.0 xxperm
35836 instruction. Add support for fusing xxlor with xxperm.
35837 (altivec_vperm_<mode>_internal): Likewise.
35838 (altivec_vperm_v8hiv16qi): Likewise.
35839 (altivec_vperm_<mode>v16q): Likewise.
35840 (altivec_vperm_<mode>_uns): Likewise.
35841 (vperm_v8hiv4si): Likewise.
35842 (vperm_v16qiv8hi): Likewise.
35843
35844 * doc/md.texi (RS/6000 constraints): Document wo constraint.
35845
35846 2016-01-04 Jakub Jelinek <jakub@redhat.com>
35847
35848 Update copyright years.
35849
35850 * gcc.c (process_command): Update copyright notice dates.
35851 * gcov-dump.c (print_version): Ditto.
35852 * gcov.c (print_version): Ditto.
35853 * gcov-tool.c (print_version): Ditto.
35854 * gengtype.c (create_file): Ditto.
35855 * doc/cpp.texi: Bump @copying's copyright year.
35856 * doc/cppinternals.texi: Ditto.
35857 * doc/gcc.texi: Ditto.
35858 * doc/gccint.texi: Ditto.
35859 * doc/gcov.texi: Ditto.
35860 * doc/install.texi: Ditto.
35861 * doc/invoke.texi: Ditto.
35862
35863 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35864
35865 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
35866 modes larger than TImode as TImode if NEON is not enabled.
35867
35868 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35869
35870 PR target/69100
35871 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
35872 mode for %f0-%f31 only if TARGET_FPU.
35873
35874 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
35875
35876 PR target/69072
35877 * config/sparc/sparc.c (scan_record_type): Take into account subfields
35878 to compute the PACKED_P predicate.
35879 (function_arg_record_value): Minor tweaks.
35880
35881 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
35882
35883 * doc/install.texi (--with-multilib-list): Describe the meaning of the
35884 option for arm*-*-* targets.
35885
35886 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
35887
35888 * doc/extend.texi (Common Function Attributes): Move docs for
35889 MSP430-specific attributes to....
35890 (MSP430 Function Attributes): ...here. Delete the redundant
35891 entries and copy-edit the remaining text.
35892 (MSP430 Variable Attributes): Use uniform format for index
35893 entries and add a cross-reference to the corresponding function
35894 attribute docs.
35895
35896 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
35897
35898 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
35899 -finite-math typo.
35900 (x86 Options): Likewise.
35901
35902 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35903
35904 PR 1078
35905
35906 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
35907 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
35908 to corresponding attribute.
35909
35910 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
35911
35912 * doc/extend.texi (Common Function Attributes) <noplt>: Move
35913 to correct alphabetization of table. Copy-edit and correct
35914 markup.
35915 <stack_protect>: Likewise.
35916 <target_clones>: Likewise.
35917 <simd>: Likewise.
35918 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
35919 Correct punctuation.
35920 (Code Gen Options) <-fno-plt>: Copy-edit.
35921
35922 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35923
35924 PR target/68917
35925 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
35926 SI values. Explicitly convert SI to DI and vice-versa.
35927
35928 2016-01-01 Jakub Jelinek <jakub@redhat.com>
35929
35930 PR tree-optimization/69070
35931 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
35932 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
35933
35934 PR sanitizer/69055
35935 * ubsan.c (ubsan_instrument_float_cast): Call
35936 initialize_sanitizer_builtins.
35937
35938 PR target/69015
35939 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
35940 \f
35941 Copyright (C) 2016 Free Software Foundation, Inc.
35942
35943 Copying and distribution of this file, with or without modification,
35944 are permitted in any medium without royalty provided the copyright
35945 notice and this notice are preserved.
This page took 1.464703 seconds and 6 git commands to generate.